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

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

User, date Message
Written by TheEdge
4 years ago
Category: Feature discussion
15 posts since Thu, 07 Oct 10
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
Written by ansgar
4 years ago
4940 posts since Fri, 07 Apr 06
There is no way to have multiple icons in VirtualTree. So I guess this won't happen..
Written by TheEdge
4 years ago
15 posts since Thu, 07 Oct 10
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
Written by ansgar
4 years ago
4940 posts since Fri, 07 Apr 06
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);


Written by TheEdge
4 years ago
15 posts since Thu, 07 Oct 10
Logged as: http://bugs.heidisql.com/2211
 

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