DispAttr.fontproperty
property (DataWindow object)
Description
Settings for the appearance of various text components of a
graph.
Applies to
Properties of Graph controls, as noted throughout this
discussion
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.graphname.property.DispAttr.fontproperty |
Describe and Modify argument:
|
1 |
"graphname.property.DispAttr.fontproperty { = value }" |
|
Parameter |
Description |
||
|---|---|---|---|
|
graphname |
The Graph control in a DataWindow for which you |
||
|
property |
A text component of the graph, such as an Axis You can also set
|
||
|
fontproperty |
A property that controls the appearance of text in |
||
|
value |
The value to be assigned to fontproperty. Value can |
|
Property for DispAttr |
Value |
|---|---|
|
Alignment |
(exp) The alignment of the text. Values 0 — Left 1 — Right 2 Painter: Alignment Alignment for axis labels and text not |
|
AutoSize |
(exp) Whether the text element should be autosized Values are: 0 — Do not 1 — Autosize Painter: Autosize |
|
BackColor |
(exp) A long value specifying the background color Painter: BackColor |
|
DisplayExpression |
An expression whose value is the label for the Painter: Display Expression |
|
Font.CharSet |
(exp) An integer specifying the character set to be Values are: 0 — 1 — The default character set for the 2 — Symbol 128 — Shift 255 — OEM Painter: FontCharSet |
|
Font.Escapement |
(exp) An integer specifying the rotation for the Painter: Escapement |
|
Font.Face |
(exp) A string specifying the name of the font Painter: FaceName |
|
Font.Family |
(exp) An integer specifying the font family Values are: 0 — 1 — Roman 2 — 3 — Modern 4 — 5 — Decorative Painter: Family |
|
Font.Height |
(exp) An integer specifying the height of the text Painter: Size option, specified in |
|
Font.Italic |
(exp) Whether the text should be Values are: 0 — Not italic 1 — Italic Painter: Italic |
|
Font.Orientation |
Same as Escapement. |
|
Font.Pitch |
(exp) The pitch of the font. Values 0 — The default pitch for your 1 — Fixed 2 — Painter: Pitch option. |
|
Font.Strikethrough |
(exp) Whether the text should be crossed Values are: 0 — Not crossed out 1 — Crossed out Painter: |
|
Font.Underline |
(exp) Whether the text should be Values are: 0 — Not 1 — Painter: Underline option. |
|
Font.Weight |
(exp) An integer specifying the weight of the text, Painter: Set indirectly using the Bold |
|
Font.Width |
(exp) An integer specifying the width of the font Painter: Width |
|
Format |
(exp) A string containing the display format for Painter: Format option. |
|
TextColor |
(exp) A long specifying the color to be used for Painter: TextColor option. |
Usage
In the painter
Select the control and set values in the Properties view, Text
tab. Settings apply to the selected item in the Text Object list
box.
Examples
|
1 2 3 4 5 6 7 8 9 |
setting = dw1.Object.Category.LabelDispAttr.Font.Face dw1.Object.Category.LabelDispAttr.Font.Face = "Arial" setting = & dw1.Describe("Category.LabelDispAttr.Font.Face") dw1.Modify("gr_1.Category.LabelDispAttr.Font.Face= & 'Arial'") dw1.Modify("gr_1.Title.DispAttr.DisplayExpression=" & "'Title + ~"~n~" + Today()'") |