Difference between revisions of "Menu"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | ====Description==== | ||
[[{{ns:file}}:menus.png|link={{filepath:menus.png}}|Menubar, Menu, Menuitem]] | [[{{ns:file}}:menus.png|link={{filepath:menus.png}}|Menubar, Menu, Menuitem]] | ||
+ | |||
+ | A [[MenuBar]] can contain multiple Menu controls, which in turn can contain [[MenuItem]] controls. | ||
====Properties==== | ====Properties==== |
Revision as of 11:10, 29 March 2018
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
A MenuBar can contain multiple Menu controls, which in turn can contain MenuItem controls.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Caption | RW | Character | Text displayed in the caption |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
AddObject | existing as Object | newobject as Character, class as Character | Add an existing MenuItem object or a new MenuItem object, in which case the MenuItem class must also be specified |
AddSeparator | None | Add a separator line |
Clear | None | Clear the menu |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|