distal-attribute
distal-attribute
distal-attribute
distal-attribute

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

TheEdge posted 4 years ago in Feature discussion
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 posted 4 years ago
There is no way to have multiple icons in VirtualTree. So I guess this won't happen..
TheEdge posted 4 years ago
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 posted 4 years ago
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);


TheEdge posted 4 years ago
Logged as: http://bugs.heidisql.com/2211

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