Font.property
property (DataWindow object)
Description
Settings that control the appearance of fonts within a DataWindow,
except for graphs, which have their own settings (see DispAttr).
Applies to
Button, Column, Computed Field, GroupBox, and Text controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Font.property |
Describe and Modify argument:
|
1 |
"controlname.Font.property { = ' value ' }" |
SyntaxFromSql:
|
1 2 |
Column(Font.property = value) Text(Font.property = value) |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of a column, computed field, or text When you generate |
|
property |
A property of the text. The properties and their |
|
value |
The value to be assigned to the property. Value can |
|
Property for Font |
Value |
|---|---|
|
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: Font tab, |
|
Escapement |
(exp) An integer specifying the rotation for the Painter: Font tab, Escapement |
|
Face |
(exp) A string specifying the name of the font Painter: Font tab, |
|
Family |
(exp) An integer specifying the font family Values are: 0 — 1 — Roman 2 — 3 — Modern 4 — 5 — Decorative Painter: Font |
|
Height |
(exp) An integer specifying the height of the text Painter: Font |
|
Italic |
(exp) Whether the text should be italic. The Painter: Font tab, Italic check box |
|
Pitch |
(exp) The pitch of the font. Values 0 — The default pitch for your 1 — Fixed 2 — Painter: Font tab, Pitch |
|
Strikethrough |
(exp) Whether the text should be crossed out. The Painter: Font tab, Strikeout check |
|
Underline |
(exp) Whether the text should be underlined. The Painter: Font tab, Underline check |
|
Weight |
(exp) An integer specifying the weight of the text; Painter: Set indirectly using the Font tab, |
|
Width |
(exp) An integer specifying the average character Painter: Set indirectly using the font |
Usage
In the painter
Select the control and set the value using the:
-
Properties view, Font tab
-
For some font settings, StyleBar
Examples
|
1 2 3 4 |
dw1.Object.emp_name_t.Font.Face dw1.Object.emp_name_t.Font.Face = "Arial" dw1.Describe("emp_name_t.Font.Face") dw1.Modify("emp_name_t.Font.Face='Arial'") |
See also