Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent treview collapse and expand
Message
De
06/04/2007 17:17:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01212973
Message ID:
01213106
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform