[Lazarus] TTreeview fires lots and lots of events
zeljko
zeljko at holobit.net
Tue Oct 25 16:33:47 CEST 2011
On Tuesday 25 of October 2011 16:23:36 Graeme Geldenhuys wrote:
> 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-ide.org/pipermail/lazarus/attachments/20111025/42a2b0b4/attachment-0003.html>
More information about the Lazarus
mailing list