Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you respond to a double click on a Tree View node
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00301013
Message ID:
00301760
Vues:
43
Hi Charlie.

>I'm working with the TreeView control for the first time. I see a node click event that responds to a single node click, but I don't see a double node click event. I want to run code off a child node that responds to a double click.

Use the DblClick event for the TreeView. The SelectedItem property of the TreeView will give you an object reference to the node the user double-clicked on. One caveat: double-clicking on a parent node causes it to expand or collapse, which you may not want. In the NodeClick event, save a property which indicates the current Expanded status of the node, then in DblClick, restore it to that status.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform