[Etoys] [FIX]MenuMorph>>delete Re: pinup issues

karl karl.ramberg at comhem.se
Sun Oct 7 16:47:30 EDT 2007


Yet another fix to the fix :-)
Karl

karl wrote:
> I fixed the issue here with a check for stayUp in active submenu.
> Karl
>
>
> karl wrote:
>> subbukk wrote:
>>  
>>> Hi,
>>>
>>> In any BorderedMorph (say a Rectangle), popup the border .. menu, 
>>> click its pinup. Both border menu and its parent menu stays up. If 
>>> any button on border menu is clicked, both the menus disappear. I 
>>> find this very annoying. If I want to experiment with different 
>>> border styles, I have to dig into the halo menu all over or stick 
>>> both the border and its parent menu up.
>>>
>>> Did I miss an easier way to keep such menus up? I prefer the doPopUp 
>>> style menus of items like "new morph...". 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys


-------------- next part --------------
'From etoys2.2 of 21 September 2007 [latest update: #1689] on 7 October 2007 at 10:25:08 pm'!

!MenuMorph methodsFor: 'control' stamp: 'kfr 10/7/2007 22:21'!
activeSubmenu: aSubmenu
	activeSubMenu ifNotNil:[activeSubMenu stayUp ifFalse:[activeSubMenu delete]].
	activeSubMenu _ aSubmenu.! !

!MenuMorph methodsFor: 'initialization' stamp: 'kfr 10/7/2007 22:24'!
delete
	"Delete the receiver."
        
	activeSubMenu ifNotNil: [activeSubMenu stayUp ifFalse:[activeSubMenu delete]].
	self isFlexed ifTrue: [^ owner delete].
	^ super delete! !




More information about the etoys-dev mailing list