Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right-mouse click pulldown with Treeview control
Message
 
À
25/01/1999 09:08:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00179777
Message ID:
00180921
Vues:
24
Hello Gary,

If you are using VFP6.0, you can use the Foundation Class/Menus/Shortcutmenu class. You can then call the class from your TreeView in the following fashion:

In your TreeView.MouseDown Event:

*-- Pop up shortcut menu if the right mouse button has been clicked.
IF button == 2 && Right Click

PRIVATE oTHISForm
oTHISForm = THISFORM
THISFORM.oMenu.ClearMenu()
THISFORM.oMenu.SetMenu()
THISFORM.oMenu.ShowMenu()
ENDIF

*-- Look at the example provided for this class. Your menu options are defined in the SetMenu() method in which you should test for the TreeView.SelectedItem in order to determine what shortcut menu options you will provide the user with.

Good luck
Juan L. Romero
gcandela@javanet.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform