MenuMorph help !!!!!
Gary McGovern
gary.play at btopenworld.com
Thu Jan 31 02:51:45 UTC 2002
Hello,
I am hoping to get some help with some menu code using Squeak 2.7.
menu
ordereCollection do: [: each | menu add: (each printString) subMenu: (self sub)].
menu openInWorld.
sub
add: 'i' action: #i
and so on
sub openInWorld.
Both menu and sub are methods.
When I open the menus on a program and click any of the items in menu to reach the
submenu, I get two exceptions.
MessageNotUnderstood: delete
MessageNotUnderstood: delete ifPopUp.
Then when I delete the menu underneath are a number of subs (to the size of the
OrderedCollection).
Where am I going wrong ?
Thanks!
Gary
More information about the Squeak-dev
mailing list
|