[Lazarus] TTreeview fires lots and lots of events

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Oct 25 16:42:21 CEST 2011

On 25 October 2011 16:33, zeljko wrote:
>> 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).

OK, I can probably take that as an answer, because the unfocused
Window (or Treeview) paints the selected node differently.  But why
the odd number of events?  The treeview only has 6 nodes, but there
was 10 events fired.

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the Lazarus mailing list