ADD | Add menu item. |
CLEAR | Clear menu. |
DISABLE | Disable menu item. |
ENABLE | Make menu item active. |
GETELEMENT | Get object of menu item by its index. |
ISENABLED | Get flag of activity of menu item. |
REMOVE | Delete item from menu. |
SETKEY | Set menu item activation by shortcut. |
UIMENU | Constructor. Create horizontal menubar. |
UNSETKEY | Unset menu item activation from shortcut. |
add([<pic>],<name>,<action>,[<isEnabled>]) --> <nItem>
In this method the object UIMenuItem is placed in the <elem> array. Method returns index of added object in this array.
<pic> | - Object UIImage. Icon of menu item. |
<name> | - String. Menu item label. You can define accel key for widget activation. Just place symbol "&" before accel letter. This letter will be underlined and widget will be activated with key Alt-letter. |
<action> | - Code block or UIPopupMenu object. Executed code block or sub-menu. |
<isEnabled> | - Boolean. Flag of activity menu item. |
Returns : | Index of added object UIMenuItem in array <elem>. |
getElement(<pos>) --> <oItem>
<pos> | - Number. Index of menu item. |
Returns : | UIMenuItem or UIPopupMenu object. Menu item object. |