Graeme Geldenhuys wrote 8 lines
Hi,
The TTreeview seems to fire a lot of events which doesn't seem right.
Attached are two images showing what I did.
treeview_form_gets_focus.png
Here the form containing the treeview simply got focus. Note all the
events that fired - as shown in the debug server.
As mentioned below, OnGetImageIndex is probably triggered from paint method, it triggers per item (because each item can have different image or no image at all).
treeview_select_node_changed.png
Here I simply selected a different tree node. Again, note all the events
that fired due to that action - all events inside the red rectangle.
This one seem ok. Selection is changed, OnGetImageIndex is probably called from paint method.
Is this normal?
Looks good
zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111025/42a2b0b4/attachment.html>