Board index » delphi » HELP TreeView Images

HELP TreeView Images

Hi ,

I need to be able to give some nodes different icons,
how can i do this programatically?
(i know it can be done easily using the editor,
i can assign a diff. icon index from an image)

Thanks in advance

Jun

 

Re:HELP TreeView Images


Hi,

TreeNode.ImageIndex := goalindex;
TreeNode.SelectedIndex := goalselectedindex;

or use Events

OnGetImageIndex
OnGetSelectedIndex

Igor Shekhounov

Quote
Egberto Paragas <egbe...@home.com> wrote in message

news:KMvl3.833$cM2.11982@news1.rdc2.on.home.com...
Quote
> Hi ,

> I need to be able to give some nodes different icons,
> how can i do this programatically?
> (i know it can be done easily using the editor,
> i can assign a diff. icon index from an image)

> Thanks in advance

> Jun

Other Threads