This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
OBJECT Get context menu

OBJECT Get context menu 


 

OBJECT Get context menu ( {* ;} object ) -> Function result 
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)
Function result  Boolean in True = context menu enabled, False = context menu disabled

The OBJECT Get context menu command returns the current state of the "Context Menu" option for the object(s) designated by the object and * parameters.

You can set the "Context Menu" option in Design mode using the Property List, or using the OBJECT SET CONTEXT MENU command.

Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, this 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). 

The command returns True if the context menu is enabled for the object and False otherwise.



See also 

OBJECT SET CONTEXT MENU

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)