Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent treview collapse and expand
Message
From
06/04/2007 17:17:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01212973
Message ID:
01213106
Views:
18
>Hi all,
>
>Is there any way to prevent a treeview from collapsing and expanding when a user double click on a root node, i need to show a form on a node double- click and have the user expand and collapse with the + or - only.

You may try with checking seconds() in NodeClick, and run your form (and have a NoDefault) if the time since last NodeClick is less than _dblclick (or else do nothing).

Last few times I had a treeview in role of a menu, any expandable node was doing nothing (except expanding and collapsing); only end nodes spurred the system into action, on just a click. You may just revise your tree and put the form itself to be activated on the first end node in a branch - which would be a new node, before any of your existing nodes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform