Aargh!
I swore I would remember how to do this stuff!
Up to Delphi 3 you Can make it work, but it is fiddly.
Have you used the StateIndex and OverlayIndex to set the TreeNode 's
index to be the State/Overlay Image?
ie. TMyTree.Selected.StateIndex := n;
TMyTree.Selected.OverlayIndex := n+1;
(using 'Selected' as an example only).
Also, you might have to refresh the TreeView
ie. TMyTree.Refresh;
Neven MacEwan wrote:
>
> Hi All
>
> Has anyone any suggestion re why TreeView StateImage and OverlayImage don't
> seem to do anything?
>
> TIA
>
> Regards Neven
> N.K. MacEwan B.E. E&E
> Ph 649 574 0027
> Fax 649 570 2706
> Mobile 025 749 062
> [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"