Hi,
here's a documentation on Layout with Morphic GUI. Comments are welcome, and thanks to all native english people who can check the text :) http://book.pharo-project.org/book/GUI/PolymorphTutorial/Layout/ Laurent Laffont http://pharocasts.blogspot.com/ http://magaloma.blogspot.com/ _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Administrator
|
Great document! It was clear and the english was very good. I made some small grammatical/clarity enhancements. Also: * should we include info on LayoutPolicies? * there are some good examples at http://wiki.squeak.org/squeak/2141. Maybe add a link? Sean
Cheers,
Sean |
On Sat, Jun 5, 2010 at 9:33 PM, Sean P. DeNigris <[hidden email]> wrote:
Thank you ! Also: Yes ! Do you know how it works ? We should (must) add a section on this. Could you write it ? * there are some good examples at http://wiki.squeak.org/squeak/2141. Maybe Thanks for the link. I'd rather write a new section with screenshots as the Layout section is. Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Administrator
|
Absolutely :) I'll have more input as I learn more. I'm writing some test cases for different facets of layouts so that I'm sure I understand. When they're done, I'll upload them to the inbox and write about what I learned. LayoutPolicies shouldn't be a problem. Sean
Cheers,
Sean |
Administrator
|
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
Cheers,
Sean |
On Sun, Jun 6, 2010 at 8:42 PM, Sean P. DeNigris <[hidden email]> wrote:
Yes, another section is better for a start I think. Here's what I have so far: We need to explains what are halos and how to bring them up.
OK and thanks for your time :). Laurent -- _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |