Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

Nodes and Image in TTreeview

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Mace

Hi,
If I add Child nodes with images into a TTreeview, everything looks great until I actually select the child node, at which point the image disappears until I select another node. Then, the image comes back, but disappears on the new node that I have just selected.
Is there a way of adjusting this so that the images always appear regardless of if there selected or not?

Thanks in advance.

Lazarus 1.0.12 FPC 2.6.2 Windows 8 (and XP)

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130920/7416d883/attachment.html>

Reply by email

Mattias Gaertner
to Richard Mace
Show quoted text 7 lines
Hi, If I add Child nodes with images into a TTreeview, everything looks great until I actually select the child node, at which point the image disappears until I select another node. Then, the image comes back, but disappears on the new node that I have just selected. Is there a way of adjusting this so that the images always appear regardless of if there selected or not?

Set Node.SelectedIndex.

Mattias

Reply by email

Richard Mace
to Mattias Gaertner

That sorted it.
Thanks Mattias.

Mattias Gaertner wrote 23 lines
On Fri, 20 Sep 2013 07:43:12 +0100 Richard Mace wrote: > Hi, > If I add Child nodes with images into a TTreeview, everything looks great > until I actually select the child node, at which point the image disappears > until I select another node. Then, the image comes back, but disappears on > the new node that I have just selected. > Is there a way of adjusting this so that the images always appear > regardless of if there selected or not? Set Node.SelectedIndex. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130921/12b71e59/attachment.html>

Reply by email