Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AddMenu - method of object PmMenu

Description:
Add one item to the menu.
Syntax:
AddMenu(sName As String, sText As String, [sOptions As String])
Calling:
pEvent.Menu.AddMenu sId, sText
Parameters:
sName(String) Identifier of the menu item. This identifier can be used in onMenuSelect event to detect which menu item has been selected.
sText(String) Displaid text of the menu item. Macro expression can be used for input ($.text ..) (it is evaluated while calling a method).
sOptions[optional] (String) Additional parameters added items. Entries are in format PmNamedValues, for example "type:checkedtext;enabled:0;".
"type:sss;" (optional) - Defines the type of added item.
text (default) - The added item is text.
checkedtext - The added item is text, marked as selected (checkbox on the left from the text).
separator - The added item is a separator, i.e. a horizontal line is created. Parameter sText has no meaning.
"enabled:n;" (optional) - Defines whether the added item is allowed or disabled (1 = enabled (default), 0 = disabled).
Note:
This property is also functional for Web panels. So far not functional type:checktext;.
Example:
See: Example for JavaScript or Example for VBScript in description of the PmMenu object
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice