menus: menu item numbers?
Peter Fink
peter.fink at tiscali.ch
Thu Dec 12 06:24:00 EST 2002
Is it possible to work with menu items by item number, instead of by name
(label)?
I would need it
- to set the currently selected item ("set the menuItem of btn "optionmenu"
to 3")
- to find the currently selected item ("put the menuItem of btn "optionmenu"
into V")
instead of the scripted workarounds:
- setting the label myself ("set the label of btn "optionmenu" to line 3 of
btn "optionmenu")
and on menupick pItem
- finding the item number myself ("put lineoffset(pItem,text of btn
"optionmenu") into V")
Peter
More information about the use-livecode
mailing list