Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement