[Lazarus] VirtualTreeView: Expand/Collapse without OnNodeClick

Jürgen Hestermann juergen.hestermann at gmx.de
Tue Sep 6 17:46:59 CEST 2016


Am 2016-09-06 um 17:22 schrieb Balázs Székely:
 >>> Still I am wondering why such a workaround is needed at all.
 >>> The NodeClick-event should not be fired when nodes are just
 > expanded/collapsed.
 > Did you try the OnFocusChanged event instead of OnNodeClick? You can replace
 > the OnNodeClick functionality in most cases(depends on the specific code
 > though).

Well, yet another workaround.

I think this will not work because when
someone clicks twice on the same node then
OnFocusChanged would not be called (I think)
as the focused node does not change.



More information about the Lazarus mailing list