Morphic Question

Ned Konz ned at squeakland.org
Wed Dec 22 06:12:39 UTC 2004


On Tuesday 21 December 2004 2:59 pm, Michael Latta wrote:
> I would like to have a morph that has a collection of sub-morphs that
> can be hidden and shown on command.  Is it kosher to have morphs that
> are not displayed but still active?  

Sure. We have a 'visible' property for that.

> Would it be better to remove the 
> sub-tree from the parent morph or just override the display methods so
> that the sub-tree is not being called to render itself?

Or just tell them to be hidden. They won't be drawn, and (by default) they 
won't get user input either.


 someMorph hide.

or 

 someMorph visible: false;
  changed.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list