Skip to main content
Version: 20 R7 BETA

OBJECT SET CONTEXT MENU

OBJECT SET CONTEXT MENU ( {* ;} object ; contextMenu )

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)
If omitted, object is a field or variable
objectanyObject name (if * is specified) or
Field or variable (if * is omitted)
contextMenuBooleanTrue = enable context menu, False = disable context menu

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 safe