Skip to main content
Version: Next

OBJECT SET CONTEXT MENU

OBJECT SET CONTEXT MENU ( * ; object : Text ; contextMenu : Boolean )
OBJECT SET CONTEXT MENU ( object : Variable, Field ; contextMenu : Boolean )

ParameterTypeDescription
*Operator→If specified, object is an object name (string) ; if omitted, object is a variable or a field
objectText, Variable, Field→Object name (if * is specified) or
Variable or field (if * is omitted)
contextMenuBoolean→True = enable context menu, False = disable context menu
History
ReleaseChanges
14Created

Description​

The OBJECT SET CONTEXT MENU command enables or disables, for the current process, the association of a context menu by default with the object(s) designated by the object and * parameters.

The "Context Menu" option is available for text type entry areas, Web areas and pictures. You can use it to associate a standard action menu with these objects depending on their type (for example Copy/Paste for text objects). For more information, refer to the Design Reference manual.

Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string (field or variable object only).

Pass True in the contextMenu parameter to enable the context menu, and False to disable it.

See also​

OBJECT Get context menu

Properties​

Command number1251
Thread safeno