[Newbies] Morphic Layout
herbertkoenig at gmx.net
Wed Oct 29 20:51:21 UTC 2008
GM> Can anyone help me learn the modern way oflaying out
GM> morphs? Im trying to create a stack-based (RPN)calculate in
GM> So, what is the best way to layout a set of morphs? At
GM> leastfor now, all I need is a grid of buttons, that will look
GM> sensible when theparent calculator morph is resized.
TableLayout is your friend here. The class comment gives some hints. A
week or so ago there was a discussion about Morphic table layouts,
there you can find hints where to get grid layouts.
In general you can send a Morph
layoutPolicy: TableLayout new
I suggest you create a Morph, add a TableLayout like above, bring up
the halo, the red button offers layout.
There you can experiment and see the options you have.
If you don't look into the thread in Squeak dev, beware TableLayout
is no real table layout but a row or column layout.
More information about the Beginners