next up previous contents index
Next: 16.1.5 Bitmap Objects Up: 16.1 Built-in Module stdwin Previous: 16.1.3 Drawing Objects

16.1.4 Menu Objects

A menu object represents a menu. The menu is destroyed when the menu object is deleted. The following methods are defined:

additem(text, shortcut)
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)
Set the text of item number i.

enable(i, flag)
Enable or disables item i.

check(i, flag)
Set or clear the check mark for item i.

close()
Discard the menu object. It should not be used again.



guido@cnri.reston.va.us