4D v14.3SET MENU ITEM PROPERTY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SET MENU ITEM PROPERTY
SET MENU ITEM PROPERTY
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 one of the constants of the “Menu Item Properties” theme or any custom value: Standard property: The constants of the “Menu Item Properties” theme as well as their possible values are described below. Note that in the case of the Associated Standard Action property, you can pass one of the constants of the “Value for Associated Standard Action” theme in the value parameter:
Here are the constants for the “Value for Associated Standard Action” theme:
For more information about standard menu item properties, refer to the “Building menus” section of the Design Reference manual. Custom property: In property, you can pass any custom text and associate a value of the text, number or Boolean type with it. This value will be stored with the item and can be retrieved using the GET MENU ITEM PROPERTY command. You can use any custom string in the property parameter, simply make sure not to use a title used by 4D (by convention, properties set by 4D begin with “4D_”).Note: If the menu item corresponds to the title of a hierarchical sub-menu, the standard action will not be called when the menu item is selected. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v11 SQL SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||