Disable Expand/Collapse when double-clicking on nodes in TreeView?

Both FNC TreeView and WebTreeView automatically trigger Expand / Collapse when you double-click a node with children. But when that happens, you get an OnDblClick event, but no OnExpand / OnCollapse event.

I'd like the double-click to be distinct from the Expand / Collapse since you can click the icon at the left to do that and get the proper events.

Is there any way to disable the Expand / Collapse on double-click? Or else get the events to trigger properly.

We fixed this issue in TWebTreeView.
Next update will address this.
It will also involve OnExpanding, OnCollapsing and setting Allow = false from this event will block the expand/collaps.

1 Like