Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview Click/Double-click
Message
 
À
18/08/2002 20:28:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00690912
Message ID:
00690956
Vues:
13
>Anyone with more experience with treeview (that's just about everybody <g>) figured out how to get a different action with a single click (CLICK or NODECLICK events) and still preserve the normal expand collapse behavior of the double-click? AFAIK both click and nodeclick will fire every time doubleclick does, making separate actions just about impossible without some very funky code.

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
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform