Project layout

Jesse Welton jwelton at pacific.mps.ohio-state.edu
Thu Feb 15 12:51:36 UTC 2001


Karl Ramberg wrote:
> 
> Is it possible to use the recently added layout stuff within the 
> World. And then say this guy should be 5% from the edge and this one
> 245 pixels down from that ?

As a matter of fact, yes.  If you give the World a layoutPolicy, it
will arrange its submorphs according to their layout properties just
like any other Morph.  It is probably not the best way to deal with
this problem, though, since it doesn't permit the submorphs to be
moved around normally.

> This is usefull for some stuff, but other projects could scale to the 
> screen size on loading/ opening and have their content scale or not on
> creators demand.

One way to do this could be to make projects check for a property when
they are opened or resized; the value of the property (if present)
would be a block to call, to perform any necessary initialization or
resizing.

> Some options like these in the project/authoring tools/playfield
> settings would be nice ;-)

Yes.  We'll have to figure out just what those settings should be
first, though.  :)

-Jesse





More information about the Squeak-dev mailing list