Hello,
I use a TNextGrid with a TNxTreeColumn to display items in a tree style and everything works fine but I can't display an icon next to the caption.
I set the NxTreeColumn.Images property to an existing TImageList but I don't know how to specify which image index each cells are associated to.
The NextGrid draws a white rectangle instead of the icon, as when ImageIndex = -1.
I tried to set the image index using Cell[ Col ][ Row ]->AsInterger = 1 but it replaces the caption with the string "1".
Could you please tell me how to display an icon next to the caption of a TNxTreeColumn.
TNxTreeColumn: Display an icon next to the caption
Started by ag74, Dec 04 2013 12:11 PM
2 replies to this topic
#1
Posted 04 December 2013 - 12:11 PM
#2
Posted 05 December 2013 - 02:38 PM
Hello,
You need to set ImageIndex of Row[x] property.
I think that this will helps.
You need to set ImageIndex of Row[x] property.
I think that this will helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 11 December 2013 - 06:13 PM
Yes that works !
Thanks !
Thanks !
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users