4D v16.3

OBJECT SET CONTEXT MENU

Home

 
4D v16.3
OBJECT SET CONTEXT MENU

OBJECT SET CONTEXT MENU 


 

OBJECT SET CONTEXT MENU ( {* ;} object ; contextMenu ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a field or variable
object  Form object in Object name (if * is specified) or
Field or variable (if * is omitted)
contextMenu  Boolean in True = enable context menu, False = disable context menu

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 

Product: 4D
Theme: Objects (Forms)
Number: 1251

 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)