Menu¶
Note
Menu is derived from Object class.
A menu is a popup (or pull down) list of items, one of which may be selected before the menu goes away (clicking elsewhere dismisses the menu).
Menus may be used to construct either menu bars or popup menus.
Constructor¶
Menu class has a single constructor:
object Menu:new {
number ID, string Name,
number Style, number Text,
}
Arguments¶
These arguments are received by class constructor.
| Argument | Description |
|---|---|
| Name | The Menu name |
| Text | The Menu text |
| Style | Menu Style |
| ID | Menu’s identificator |
Events¶
The following events are emitted by this class:
| Event name | Description |
|---|---|
| Menu.onEnter_ | When the mouse moves onto this Menu. |
| Menu.onLeave_ | When the mouse moves out to this Menu. |
Inherited Methods¶
These methods are inherited from its super classes:
| Class Method | Description |
|---|---|
| Object:getID | Returns Menu’s identifier. |
| Object:setID | Sets the Menu identifier. |
| Object:getName | Returns Menu’s name. |
| Object:setName | Sets the Menu name. |