Contextual click

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.8.1


Contextual click Boolean

ParameterTypeDescription
This command does not require any parameters
Function resultBooleanTrue if a contextual click was detected,
otherwise False

Description

The command Contextual click returns True if a contextual click has been made:

Under Windows, contextual clicks are made using the right button of the mouse.

Under MacOS, contextual clicks are made using a Control+click combination.

This command should be used only in the context of the On clicked form event. It is therefore necessary to verify in Structure mode that the event has been properly selected in the Form properties and/or in the specific object.

Example

This method, combined with a scrollable area, enables you to change the value of an array element using a contextual menu:

   If(Contextual click)
      If (Pop up menu("True;False")=1)
         myArray{myArray}:="True"
      Else 
         myArray{myArray}:="False"
      End if
   End if

See Also

Form event, Right click.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next