AddMenu - method of object PmMenu

Add one item to the menu.
AddMenu(sName As String, sText As String, [sOptions As String])
pEvent.Menu.AddMenu sId, sText
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) Entries with assigned value are separated by a semicolon, 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 to the left from the text).
separator - The added item is a separator, i.e. a horizontal line is created. The sText parameter holds no meaning.
"enabled:n;" (optional) - Defines whether the added item is allowed or disabled (1 = enabled (default), 0 = disabled).
This property is also functional for Web Panels. So far not functional type:checktext;.
See: Example for JavaScript or Example for VBScript in description of the PmMenu object
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice