Since menus are normally created dynamically I'd simply replace with
nothing!
(see MenuItemMorph>>initialize)
Regards, Gary
----- Original Message -----
From: "Stéphane Ducasse" <
[hidden email]>
To: "Pharo-project Development" <
[hidden email]>
Sent: Sunday, January 31, 2010 8:54 PM
Subject: [Pharo-project] MenuMorph help
> Hi all
>
> I want to replace
>
> PopUpMenu setMenuFontTo: self menuFont].
>
> by its equivalent in MenuMorph.
>
> Does anybody has a magic invocation?
>
>
> I also would like to get rid of PopUpMenu in the following
>
>
> installAsDefault "FontSetNewYork installAsDefault"
> (self confirm: 'Do you want to install' translated, '
> ''' , self fontName , ''' as default font?' translated)
> ifFalse: [^ self].
> self installAsTextStyle.
> "TextConstants at: #OldDefaultTextStyle put: TextStyle default."
> TextConstants at: #DefaultTextStyle put: (TextStyle named: self fontName).
> ListParagraph initialize.
> "rbb 2/18/2005 13:20 - How should this change for UIManger, if at all?"
> PopUpMenu initialize.
> "SelectionMenu notify: 'The old text style has been saved
> as ''OldDefaultTextStyle''.'"
>
> _______________________________________________
> Pharo-project mailing list
>
[hidden email]
>
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project