Antwort: Re: Antwort: Re: [Newbies] closing/deleting a morph
Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Tue Jun 5 12:45:54 UTC 2007
El 6/5/07 9:20 AM, "Dietmar Schielke" <Dietmar.Schielke at data-experts.de>
> Thank for your links. I'll try to dig further into it.
> A first look into SwitchMorph raises a first question in me:
> When you call addDependent: should'nt be there a corresponding
> removeDependent: in the code?
> Maybe connection: should first call removeDependent: for the old connection
> before setting a new connection?
> Further, then I delete a SwitchMorph maybe it should also disconnect from
> its's connections?
At the time I have
do: [:each |
ifTrue: [each notifyRemoveMe].
each color: Color yellow]
And I raise this with yellow click on the choosed Morph.
here how to have your own colored menu !!!
addMenuItemsTo: aMenu hand: aHandMorph
| menu |
menu := MenuMorph new.
menu color: Color blue.
color: (menu color alpha: 0.3).
add: 'descablear '
do: [:i | i color: Color yellow;
familyName: 'Comic Bold'
Maybe today I do all different ....
As said, I have many different versions for you cook your own ideas.
More information about the Beginners