Jump to content


TNxTreeColumn: Display an icon next to the caption

  • Please log in to reply
2 replies to this topic

#1 ag74

  • Members
  • 9 posts

Posted 04 December 2013 - 12:11 PM


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.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,196 posts
  • Gender:Male

Posted 05 December 2013 - 02:38 PM


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.

#3 ag74

  • Members
  • 9 posts

Posted 11 December 2013 - 06:13 PM

Yes that works !

Thanks !

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users