Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual
Page 98

C H A P T E R 3
Views
3-14
About Views
■
horizontal alignment of the view relative to its parent or sibling view
■
vertical alignment of the view relative to its parent or sibling view
■
text limits
For example, you could specify these alignment attributes for a button view that has
its text centered within the view and is placed relative to its parent and sibling views:
vjCenterH+vjCenterV+vjSiblingRightH+vjParentBottomV+oneLineOnly
If you don’t specify an attribute from a group, the default attribute for that group
is used.
The view alignment attributes and the defaults are listed and described in Table 3-1.
The effects of these attributes are illustrated in Figure 3-7, following the table.
Sibling setting are not used if the view has not previous setting, instead the parent
settings are used.
Table 3-1
viewJustify
constants
Constant
Value
Description
Horizontal alignment of view contents
vjLeftH
0
Left alignment (default).
vjCenterH
2
Center alignment (default for
clPictureView
only).
vjRightH
1
Right alignment.
vjFullH
3
Stretches the view contents to fill the entire view width.
Vertical alignment of view contents
1
vjTopV
0
Top alignment (default).
vjCenterV
4
Center alignment (default for
clPictureView
only).
vjBottomV
8
Bottom alignment.
vjFullV
12
For views of the
clPictureView
class only;
stretches the picture to fill the entire view height.
Horizontal alignment of the view relative to its parent or sibling view
2
vjParentLeftH
0
The left and right view bounds are relative to the
parent’s left side (default).
continued