Adds a command to the current drop-down menu definition.
Informal Syntax:
MenuAddCheckedEntry( Label, Id )
Formal Syntax:
MenuAddCheckedEntry( Label:=Expression, Id:=Expression )
Parameter | Type | Description |
---|---|---|
Text | ANY_STRING | The text of the menu entry. |
Checked | BOOL | Whether the menu entry is checked (TRUE), or not checked (FALSE). |
Id | UDINT | The command value associated with the menu entry. |
None.
The function MenuAddCheckedEntry() adds a text entry with a check mark to the current drop-down menu definition.
If the operator, selects this menu entry, the Id parameter will be returned from the MenuOpen Function.
Make sure each entry in the drop-down menu definition has different Id parameter values.
The maximum number of menu entries in 50.
In the following example, the menu entry "Running:" with a check mark is added to the current drop-down menu definition:
MenuAddCheckedEntry( "Running", 1 );
For a more detailed example on how to use the menu functions see the MenuOpen() Function.
To add a menu entry without a check mark to the current drop-down menu definition.
MenuAddSeparator() functionTo add a separator to the current drop-down menu definition.
MenuAddSubMenu() functionTo add a submenu to the current drop-down menu definition.
To learn where you can use this function.
For the meaning of terms used in Fernhill SCADA.