Next: Bitmap Object
Prev: Drawing Object
Up: stdwin
Top: Top
8.1.4. Menu Object Methods
A menu object represents a menu.
The menu is destroyed when the menu object is deleted.
The following methods are defined:
- additem (text, shortcut) -- Method on menu
-
Add a menu item with given text.
The shortcut must be a string of length 1, or omitted (to specify no
shortcut).
- setitem (i, text) -- Method on menu
-
Set the text of item number
i.
- enable (i, flag) -- Method on menu
-
Enable or disables item
i.
- check (i, flag) -- Method on menu
-
Set or clear the
check mark
for item
i.
- close () -- Method on menu
-
Discard the menu object. It should not be used again.