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