MenuMorph pops up but not down

Andreas Raab andreas.raab at gmx.de
Tue Feb 3 21:30:26 UTC 2004


Try this:

MenuMorph example popUpInWorld: World.

(will go away when you click anywhere) vs.

MenuMorph example popUpInWorld: World.
ActiveHand mouseFocus: nil.

(will stay up when you click somewhere else)

So most likely you're changing the mouse focus someplace else.

  - Andreas

----- Original Message ----- 
From: "Trygve Reenskaug" <trygver at ifi.uio.no>
To: <squeak-dev at lists.squeakfoundation.org>
Sent: Tuesday, February 03, 2004 9:26 PM
Subject: MenuMorph pops up but not down


> I'm working on a variant of Jacaranda to be used for reverse engineering
of
> Squeak systems. I create a MenuMorph and fill it with entries. I then say
>       aMenu popUpEvent: evt in: self world.
>       evt wasHandled: true.
> (I subclass JacarandaShape and the invokeMenu: evt method is actually in
> the superclass. I try to do the same as in an existing subclass,
> ClassShape, but my menu stays up so I have to close it manually. I have
> inspected the menu, and its stayUp variable = false when i inspect it.)
>
> Is this a known novice problem?
>
> Thanks
> --Trygve
>
> -- 
>
> Trygve Reenskaug      mailto: trygver at ifi.uio.no
> Morgedalsvn. 5A       http://heim.ifi.uio.no/~trygver
> N-0378 Oslo           Tel: (+47) 22 49 57 27
> Norway
>
>
>




More information about the Squeak-dev mailing list