Justification

Text and Graphics Justification

You can also use viewJustify to affect where graphics and text are drawn within a view. For example, you can have text within a protoStaticText drawn so that it is at the bottom left or the top right of a view. As another example, a picture within a clPictureView could be drawn at the top of the view, so that it is centered exactly within the view.

Horizontally, your choices are:

left
Left alignment.

center
Center alignment.

right
Right alignment.

full
Stretches the graphics or text to fill the width of the view.

Vertically, your choices are:

top
Top alignment.

center
Center alignment.

bottom
Bottom alignment.

full
Stretches the graphics to fill the width of the view. Does nothing for text.

Text templates can also specify how much text is in them. Choices are:

No Limit
Text can be multiline.

One Line Only
One line of text.

One Word Only
One word of text.

One Character Only
One character of text.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996