Icon(s) to show both primary key and foreign key....

[expired user #5214]'s profile image [expired user #5214] posted 14 years ago in Feature discussion Permalink
G'Day,

- My first post here and first off I need to say that HeidiSQL is a great application. Very well done.

- 5.1.0.3550

- My feature request is that when a column is part of a primary key as well as a foreign key you only get the foreign key icon in the "#" Column. I realise the primary key is bold but it would be nicer if you got to see the additional icons as well. Naturally they would all be assigned the same vertical slot (with primary key being far right) so that they all lined up.

--D
ansgar's profile image ansgar posted 14 years ago Permalink
There is no way to have multiple icons in VirtualTree. So I guess this won't happen..
[expired user #5214]'s profile image [expired user #5214] posted 14 years ago Permalink
Hi Anse,

Couple of options....

1) Custom draw that column
2) Add additional columns (one for each icon)

2 is easier to implement. You could leave the existing behaviour and add new columns and then toggle the new or existing behaviour. As long as you have const for icon access in the current code this should not be a breaking change for the code.

--D
ansgar's profile image ansgar posted 14 years ago Permalink
One column per index icon would be ugly - there are already many columns. Probably possible in a VT.OnAfterCellPaint event, like it's done in the datagrid with the red triangles when having edited content:
ImageListMain.Draw(TargetCanvas, CellRect.Left, CellRect.Top, 111);

[expired user #5214]'s profile image [expired user #5214] posted 14 years ago Permalink
Logged as: http://bugs.heidisql.com/2211

Please login to leave a reply, or register at first.