[Etoys] [FIX]MenuMorph>>delete Re: pinup issues
karl.ramberg at comhem.se
Sat Oct 13 07:54:33 EDT 2007
The fix with your suggestion added
> On Monday 08 October 2007 1:57 am, karl wrote:
>> Yet another fix to the fix :-)
> Thanks, Karl. The submenu stays put when pinned now. Just a small
> observation - when the submenu is pinned, the main menu stays up and gets
> deleted only when the first menu item in the submenu is picked. Shouldn't it
> be deleted when the submenu gets pinned?
> Apologies for the delayed response. I was on vacation.
> Etoys mailing list
> Etoys at lists.laptop.org
-------------- next part --------------
'From etoys2.2 of 22 September 2007 [latest update: #1699] on 13 October 2007 at 1:52:08 pm'!
"Change Set: MenuMorph
Date: 13 October 2007
Author: Karl Ramberg
Fixes issues with deletion of menus and submenus with 'StayUp' items"!
!MenuMorph methodsFor: 'accessing' stamp: 'kfr 10/13/2007 13:48'!
stayUp := aBoolean.
ifTrue: [self removeStayUpBox.
(self rootMenu ~= self
and: [self rootMenu stayUp = false])
ifTrue: [self rootMenu delete]]! !
!MenuMorph methodsFor: 'control' stamp: 'kfr 10/7/2007 22:21'!
activeSubMenu ifNotNil:[activeSubMenu stayUp ifFalse:[activeSubMenu delete]].
activeSubMenu _ aSubmenu.! !
!MenuMorph methodsFor: 'initialization' stamp: 'kfr 10/7/2007 22:24'!
"Delete the receiver."
activeSubMenu ifNotNil: [activeSubMenu stayUp ifFalse:[activeSubMenu delete]].
self isFlexed ifTrue: [^ owner delete].
^ super delete! !
More information about the etoys-dev