Version 6.3.8 für Windows
 —  Dialog Component Reference  —

CONTEXT MENU

Specifies the handle of the context menu associated with the dialog or dialog element. A value of NULL-HANDLE indicates that no context menu assigned. The context menu specified here overrides any default context menu displayed by the system. Note that, for table controls, the specified context menu is not displayed for a cell which is being edited. For MDI frames, the context menu applies to the MDI client area.

Before this attribute is evaluated by Natural, the dialog or dialog element receives a Context-Menu Event (if not suppressed), allowing dynamic assignment to this attribute and, hence, dynamic context menu selection.

Note:
For some ActiveX controls, depending on their internal implementation, the associated context menu may not be displayed when the user attempts to invoke it. However, if the control offers a MouseDown event (or equivalent), this event may be used to open a specific context menu explicitly via the SHOW-CONTEXT-MENU action.

For more information, please refer to the article Defining and Using Context Menus.

Applies to ActiveX control, bitmap control, canvas control, date/time picker control, dialog (all types), dialog bar control, edit area control, input field control,

list box control, list view control, push button control, progress bar control, radio button control, scroll bar control, selection box control, slider control, spin control, status bar control, tab control, table control, toggle button control, tool bar control, tree view control.

Data Type HANDLE
Default Value NULL-HANDLE
Possible Values NULL-HANDLE / handle value of context menu.

Top of page