[Newbies] How to find owner morph?
K. K. Subramaniam
subbukk at gmail.com
Wed Jul 15 14:21:37 UTC 2009
On Wednesday 15 Jul 2009 6:19:28 pm 杨帅军 wrote:
> When I click my button, I wish destroy button's owner and then display
> another morph.Now I can't find button's owner morph when I design this
> press-down event, I can't send a hide or destroy message to button's owner
> morph
Have you tried saving the old owner?
oldowner _ self owner.
oldowner removeMorph: self.
newowner addMorph: self.
oldowner delete.
newowner show.
HTH .. Subbu
More information about the Beginners
mailing list