I started a high-level overview of layouts. I first inserted it at the top
of your layout page in the book, but it's so general that it didn't seem to
flow with the rest of the tutorial. I'm thinking maybe putting it in a
separate reference section and we can refer to it from the tutorial. What
do you think?
Here's what I have so far:
**The default behavior**
By default, when a morph is embedded into another morph, the geometries of
the two morphs remain independent.
Let's see this in action...
First, execute the following:
m := Morph new
color: Color green;
extent: 200 @ 200;
position: 300 @ 300;
openInWorld.
m addMorph: Morph new openInWorld.
*Owner and submorph positions are linked*
Now, click and drag the green square. As you will see, it moves in
lock-step with the blue square that's been added to it. If you drag the
blue square, again, the green square moves with it.
*Owner and submorph sizes are still independent*
Bring up halos on either morph and resize it. The other morph remains
unchanged while you do this.
**Specifying the geometric relationship between an owner and its
submorphs"**
There are two built-in ways to lay out submorphs in their owner:
* proportional layouts - specify a particular area for the submorph to
cover, either:
- as a percentage of the owner's total area
- with offsets from the owner's edges
- a combination of both
* table layouts - organize submorphs either in a row or column within the
owner
--
View this message in context:
http://forum.world.st/GUI-Layouts-doc-request-for-comments-tp2244374p2245188.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project