[Newbies] Morphic Layout

Gauland, Michael Michael.Gauland at airways.co.nz
Wed Nov 5 20:39:16 UTC 2008


Thanks for the tip--that's really a good way to get a feel for how things behave. 

For anyone else interested in this thread, I'll also pass on a couple of pages I found helpful:

http://www.visoracle.com/squeak/faq/morphic-layout.html
http://coweb.cc.gatech.edu/cs2340/3659

-----Original Message-----
From: beginners-bounces at lists.squeakfoundation.org [mailto:beginners-bounces at lists.squeakfoundation.org] On Behalf Of Herbert König
Sent: Tuesday, 4 November 2008 8:07 p.m.
To: A friendly place to get answers to even the most basic questions aboutSqueak.
Subject: Re[2]: [Newbies] Morphic Layout

Hello Michael,

GM> I've done some poking around with TableLayout, and I'm
GM> starting to get a feel for how it works. One that I haven't
GM> puzzled out is how to make a morph (I'm using a TextMorph inside a
GM> BorderedMorph) expand and contract as its containing morph (in my
GM> case, another BorderedMorph) is resized.  Any advice on this would
GM> be appreciated.

the inner Morph must have its childLayout horizontalResizing set to
#spaceFill. same with verticalResizing.

I never know this when I need it, so I take a rectangle and an
EllipseMorph from the object catalog, put the ellipse inside the
rectangle (red halo, embed into) and then I play with both Morphs
layout options.

Don't forget to pin both Morphs Menus to the screen.


-- 
Cheers,

Herbert   

_______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

**********************************************************************
This electronic message together with any attachments is confidential. If
you receive it in error: (i) you must not use, disclose, copy or retain
it; (ii) please contact the sender immediately by reply email and then
delete the emails. Views expressed in this email may not be those of the
Airways Corporation of New Zealand Limited
**********************************************************************



More information about the Beginners mailing list