PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Robert Rioja on March 02, 2016, 07:18:06 PM

Title: TreeView problem
Post by: Robert Rioja on March 02, 2016, 07:18:06 PM
I am having trouble getting a TreeView to respond to a right mouse click.  Both FORM1_TREEVIEW1_WM_CONTEXTMENU and FORM1_TREEVIEW1_WM_RBUTTONUP respond to a double right mouse click, but not to a single click.  Can anyone explain ?
Thanks,
Robert
Title: Re: TreeView problem
Post by: Paul Squires on March 02, 2016, 07:59:45 PM
Maybe try this code instead:  http://www.planetsquires.com/protect/forum/index.php?topic=1935.msg15937
Title: Re: TreeView problem
Post by: Robert Rioja on March 10, 2016, 12:39:59 AM
Paul,
I think that the code only works for "leaf" nodes that have no children nodes.  But it does not work for nodes that do have children.  I want to trap right-clicks on any node.  The only way I have found that works is using the %WM_CONTEXTMENU case.  But I have not found a way to trap double right-clicks.
Thanks,
Robert