(newbee) CustomMenu problem.
Bert Freudenberg
bert at impara.de
Mon Nov 7 22:32:04 UTC 2005
Am 07.11.2005 um 23:14 schrieb Marcus Pedersén:
> Hi!
> I have made a class say: MyClass.
> In that class I have made a SimpleButtonMorph that calls a metod in
> MyClass: myMethod.
> In myMethod I start up a CustomMenu similar to this:
>
> | menu |
> menu := CustomMenu new.
> menu title: 'Delete?'.
> menu
> add: 'Yes'
> target: self
> selector: #myMethod2
> argument: nil.
>
> and I have made a method in MyClass called: myMethod2.
> I want the CustomMenu to call myMethod2 in MyClass but this does
> not happen!?
> The CustomMenu appears when I click the button but after that
> nothing happens.
> I must be thinking wrong somehow?
Are you sure you show the menu using "menu invokeOn: self" and not
just using "menu startUp"?
- Bert -
More information about the Squeak-dev
mailing list
|