|
Contents | Previous | Next | Subchapters |
| Syntax |
addmenu(parent, item)parent, item, call back)
|
If a
call back
command is specified, the corresponding command is executed when the
menu item is selected.
If call back is not present,
item specifies a draw right menu item
that can be the parent of other menu items.
clear
parent = "Tools"
item = "Beep"
callback = "beep;"
addmenu(parent, item)
parent = "Beep"
item = "5 times"
callback = "Beep(5)"
function Beep(n) begin
for i = 1 to n begin
beep;
sleep(1)
end
end
addmenu(parent, item, callback)