[Pharo-project] GUI Layouts doc, request for comments
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/
laurent laffont wrote:
here's a documentation on Layout with Morphic GUI. Comments are welcome, and thanks to all native english people who can check the text :)
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 -- View this message in context: http://forum.world.st/GUI-Layouts-doc-request-for-comments-tp2244374p2244503... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Sat, Jun 5, 2010 at 9:33 PM, Sean P. DeNigris <sean@clipperadams.com>wrote:
laurent laffont wrote:
here's a documentation on Layout with Morphic GUI. Comments are welcome, and thanks to all native english people who can check the text :)
Great document! It was clear and the english was very good. I made some small grammatical/clarity enhancements.
Thank you !
Also: * should we include info on LayoutPolicies?
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 add a link?
Thanks for the link. I'd rather write a new section with screenshots as the Layout section is. Laurent
Sean -- View this message in context: http://forum.world.st/GUI-Layouts-doc-request-for-comments-tp2244374p2244503... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
laurent laffont wrote:
Thank you !
Absolutely :) I'll have more input as I learn more. laurent laffont wrote:
* should we include info on LayoutPolicies? Yes ! Do you know how it works ? We should (must) add a section on this. Could you write it ?
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 -- View this message in context: http://forum.world.st/GUI-Layouts-doc-request-for-comments-tp2244374p2245013... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
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... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Sun, Jun 6, 2010 at 8:42 PM, Sean P. DeNigris <sean@clipperadams.com>wrote:
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?
Yes, another section is better for a start I 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.
We need to explains what are halos and how to bring them up.
**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
OK and thanks for your time :). Laurent
-- View this message in context: http://forum.world.st/GUI-Layouts-doc-request-for-comments-tp2244374p2245188... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (2)
-
laurent laffont -
Sean P. DeNigris