Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Click/Double-click
Message
From
20/08/2002 07:36:01
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00690912
Message ID:
00691383
Views:
19
>Ray,
>I just set a flag in the Expand and Collapse to say that it was done then ignore that in the click ie.
>
* Expand/Collapse methods
>Lparameters Node
>
>ThisForm.lIgnoreClick = .T.
>DoDefault(Node)
>
>* Click method
>*-- Ignore the click as it was used to Expand/Collapse a node.
>If ThisForm.lIgnoreClick
>	Return
>EndIf
>
>HTH

I was a little skeptical on this because it depends on the Expand/Collapse events firing _before_ the click. But I tried it and it does appear to work. Unfortunately, it doesn't solve my problem, because I have code in the dblclick that adds nodes (expands) on-the-fly, and I can't seem to get around the fact that the click always fires on the first click of a double-click. I finally gave up and added a command button to the form.

Thanks for your suggestion; I'll probably use it in the future.
Ray Roper
Previous
Reply
Map
View

Click here to load this message in the networking platform