[Lazarus] TTreeview fires lots and lots of events
zeljko at holobit.net
Tue Oct 25 16:33:47 CEST 2011
On Tuesday 25 of October 2011 16:23:36 Graeme Geldenhuys wrote:
> The TTreeview seems to fire a lot of events which doesn't seem right.
> Attached are two images showing what I did.
> 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
> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus