Shortcut menus appear when you click the right mouse button on a control or object, and provide a quick way to expose all of the functions that apply to just that object. You can use Visual FoxPro to create shortcut menus, then attach these menus to controls. For example, you can create a shortcut menu containing the commands Cut, Copy, and Paste that will appear when a user right-clicks on data contained in a Grid Control.
To create a shortcut menu
-
From the Project Manager Window, select the Other tab, select Menus, and then choose New.
-
Choose Shortcut.
The Shortcut Designer appears.
When you are in the Shortcut Menu designer, the process for adding menu items is the same as it is for creating menus.
For an example of shortcut menus, run Solution.app in the Visual FoxPro ...\Samples\Solution\Solution directory.