This document covers the following topics:
The context menu allows you to define menus which appear when the user clicks a dialog or dialog element with the right mouse button. You can retrieve the position of the click via the INQ-CLICKPOSITION action, should this be necessary.
Context menus are defined separately from the dialog elements and associated with the relevant dialog element(s) via the CONTEXT-MENU attribute. The context menu can be modified before it is displayed via the Before-Open Event.
The context menu is constructed and handled almost identically to the submenu control. Like the submenu control, a context menu can contain menu items which open up submenus when selected. Each submenu in such a multi-level context menu receives its own Before-Open Event each time the submenu is displayed.
| Attribute Name | Query | Set/Modify | In Attr. Window |
|---|---|---|---|
| CLIENT-DATA | X | X/X | |
| CLIENT-HANDLE | X | X/X | |
| CLIENT-KEY | X | X/X | |
| CLIENT-VALUE | X | X/X | |
| CONTROL | X | -/- | |
| ENABLED | X | X/X | X |
| FIRST-CHILD | X | -/- | |
| HELP-ID | X | X/X | |
| LAST-CHILD | X | -/- | |
| PARENT | X | X/- | |
| PREDECESSOR | X | -/- | |
| STYLE | X | X/- | X |
| SUCCESSOR | X | -/- | |
| SUPPRESS-BEFORE-OPEN-EVENT | X | X/X | |
| TYPE | X | X/- |
Before-Open Event (may be suppressed).