次の方法で共有


How to: Create Shortcut Menus (Visual FoxPro)

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

  1. From the Project Manager Window, select the Other tab, select Menus, and then choose New.

  2. 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.

See Also

Tasks

How to: Group Menu Items

Concepts

Menu System Creation

Other Resources

Creating Menus, Shortcut Menus, Menu Items, and Submenus

Designing Menus and Toolbars

Compiling an Application