Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right-mouse click pulldown with Treeview control
Message
 
To
25/01/1999 09:08:38
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00179777
Message ID:
00180921
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform