Pen.property DataWindow object property
Description
Settings for a line or the outline of a control.
Controls
Line, Oval, Rectangle, and RoundRectangle controls
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.<span>controlname</span>.Pen.<span>property</span> |
Describe and Modify argument:
|
1 |
"<span>controlname</span>.Pen.<span>property </span>{ = <span>value</span> }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the control whose Pen property |
|
property |
A property that applies to the Pen characteristics |
|
value |
The value of the property, as shown in |
|
Property for Pen |
Value |
|---|---|
|
Color |
(exp) A long specifying Painter: Pen Color option. |
|
Style |
(exp) A number specifying Values are:
Painter: Pen Style option. |
|
Width |
(exp) A number specifying Painter: Pen Width option (not available when Style is a value |
Usage
In the painter
Select the control and set values in the Properties view, General
tab.
Examples
|
1 |
string setting |
|
1 |
setting = dw1.Object.line_1.Pen.Width |
|
1 |
dw1.Object.line_1.Pen.Width = 10 |
|
1 |
setting = dw1.Describe("line_1.Pen.Width") |
|
1 |
dw1.Modify("line_1.Pen.Width=10") |