Context menus can be associated with controls on your form. These menus appear when the user right-button clicks on the control.
To add a context menu to a form
Note Any of the methods used to add a control to a form may be used. You can also highlight the ContextMenu control on the Toolbox and, holding down the left mouse button, drag the control onto your form.
The ContextMenu control is inserted onto your form.
Context menu controls can be edited in the same way as MainMenu controls.
To assign a context menu to a control
To add access keys to a menu
-or-
To enable check marks on a menu
To move a menu
The actual menu caption moves and snaps into place. Other menu captions that are affected by this change are moved as appropriate.
Note Moving top-level menu captions will move all child members, as well. Child members will not be displayed during the move.
To modify a menu
To create a menu separator bar
A separator bar appears directly below your menu caption.
-or-
Separator bars may be moved and deleted in the same manner as regular menu captions.
To delete a menu item from your form
Note To delete the entire menu, highlight each menu caption and press DELETE, or click the ContextMenu1 control and use Ctrl+Delete from the context menu.
Confirmation on deletion only occurs on menu captions with sub-menus.