Font.property DataWindow object property
Description
Settings that control the appearance of fonts within a DataWindow,
except for graphs, which have their own settings (see DispAttr).
Controls
Button, Column, Computed Field, GroupBox, and Text controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>controlname</span>.Font.<span>property</span> |
Describe and Modify argument:
1 |
"<span>controlname</span>.Font.<span>property</span> { = '<span> value</span> ' }" |
DataWindowSyntaxFromSql:
1 |
Column(Font.<span>property </span>=<span> value</span>) |
1 |
Text(Font.<span>property </span>= <span>value</span>) |
Parameter |
Description |
---|---|
controlname |
The name of a column, computed field, When you generate DataWindow syntax with DataWindowSyntaxFromSql, the Font |
property |
A property of the text. The properties |
value |
The value to be assigned to the property. Value can |
Property for Font |
Value |
---|---|
CharSet |
(exp) An integer Values are:
Painter: Font tab, CharSet option. |
Escapement |
(exp) An integer Painter: Font tab, Escapement option. |
Face |
(exp) A string specifying Painter: Font tab, FaceName option or StyleBar. |
Family |
(exp) An integer Values are:
Painter: Font tab, Family option. |
Height |
(exp) An integer Painter: Font tab, Size option (specified in points) or StyleBar |
Italic |
(exp) Whether the Painter: Font tab, Italic check box or StyleBar. |
Pitch |
(exp) The pitch Values are:
Painter: Font tab, Pitch option. |
Strikethrough |
(exp) Whether the Painter: Font tab, Strikeout check box. |
Underline |
(exp) Whether the Painter: Font tab, Underline check box or StyleBar. |
Weight |
(exp) An integer Painter: Set indirectly using the Font tab, Bold option or |
Width |
(exp) An integer Painter: Set indirectly using the font selection. |
Usage
In the painter
Select the control and set the value using the:
-
Properties view, Font tab
-
For some font settings, StyleBar
Examples
1 |
dw1.Object.emp_name_t.Font.Face |
1 |
dw1.Object.emp_name_t.Font.Face = "Arial" |
1 |
dw1.Describe("emp_name_t.Font.Face") |
1 |
dw1.Modify("emp_name_t.Font.Face='Arial'") |
See Also
Transparency (columns and
controls)