background image
C H A P T E R 3
Views
About Views
3-17
1
For views of the
clParagraphView
class, the vertical alignment constants
vjTopV
,
vjCenterV
, and
vjBottomV
apply only to paragraphs that also have the
oneLineOnly viewJustify
flag set.
2
If you are applying horizontal sibling-relative alignment and the view is the first child, it is positioned according
to the horizontal parent-relative alignment setting.
3
If you are applying vertical sibling-relative alignment and the view is the first child, it is positioned according to
the vertical parent-relative alignment setting.
Text limits
noLineLimits
0
(Default) No limits, text wraps to next line.
oneLineOnly
8388608
Allows only a single line of text, with no wrapping.
oneWordOnly
16777216
Allows only a single word. (If the user writes another
word, it replaces the first.)
Indicate that a bounds value is a ratio
vjNoRatio
0
(Default) Do not use proportional alignment.
vjLeftRatio
67108864
The value of the slot
viewBounds.left
is
interpreted as a percentage of the width of the parent
or sibling view to which this view is horizontally
justified.
vjRightRatio
134217728
The value of the slot
viewBounds.right
is
interpreted as a percentage of the width of the parent
or sibling view to which this view is horizontally
justified.
vjTopRatio
268435456
The value of the slot
viewBounds.top
is
interpreted as a percentage of the height of the parent
or sibling view to which this view is vertically
justified.
vjBottomRatio
­536870912
The value of the slot
viewBounds.bottom
is
interpreted as a percentage of the height of the parent
or sibling view to which this view is vertically
justified.
vjParentAnchored
256
The view is anchored at its location in its parent view,
even if the origin of the parent view is changed. Other
sibling views will be offset, but not child views with
this flag set.
Table 3-1
viewJustify
constants (continued)
Constant
Value
Description
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна