This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SET MENU ITEM PROPERTY
|
SET MENU ITEM PROPERTY ( menu ; menuItem ; property ; value {; process} ) | ||||||||
Parameter | Type | Description | ||||||
menu | Longint, MenuRef |
![]() |
Menu reference or menu number | |||||
menuItem | Longint |
![]() |
Number of menu item or -1 for the last item added to the menu | |||||
property | String |
![]() |
Property type | |||||
value | Text, Number, Boolean |
![]() |
Property value | |||||
process | Longint |
![]() |
Process number | |||||
The SET MENU ITEM PROPERTY command sets the value of the property for the menu item designated by the menu and menuItem parameters.
You can pass -1 in menuItem to specify the last item added to menu.
In menu, you can pass a menu reference (MenuRef) or a menu number. If you pass a menu reference, the command will apply to all the instances of the menu in all the processes. In this case, the process parameter is ignored if it is passed. If you pass a menu number, the command will take the corresponding menu in the main menu bar of the current process into account. If you want to designate another process, pass its number in the optional process parameter.
In the property parameter, pass the property whose value you want to modify and pass the new value in value. For the property parameter, you can use a standard property (one of the constants of the “Menu Item Properties” theme) or a custom property:
Constant | Type | Value | Comment |
Access privileges | String | 4D_access_group | Assign an access group to the command 0 = All Groups >0 = Group ID |
Associated standard action | String | 4D_standard_action | Associate a standard action with a menu item See the constants of the Standard Action theme. |
n/a | String | 4D_execute_without_validating | Enable the Execute without validating option (for menu items associated to standard actions). |
Start a new process | String | 4D_start_new_process | Activate the "Start New Process" option 0 = No, 1 = Yes |
Product: 4D
Theme: Menus
Number:
973
Created: 4D v11 SQL
Modified: 4D v16 R3
4D Language Reference ( 4D v20 R7)