Pen.property
property (DataWindow object)
Description
Settings for a line or the outline of a control.
Applies to
Line, Oval, Rectangle, and RoundRectangle controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Pen.property |
Describe and Modify argument:
|
1 |
"controlname.Pen.property { = value }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the control whose Pen property you want |
|
property |
A property that applies to the Pen characteristics |
|
value |
The value of the property, as shown in the table |
|
Property for Pen |
Value |
|---|---|
|
Color |
(exp) A long specifying the color (the red, green, Painter: Pen Color option. |
|
Style |
(exp) A number specifying the style of the Values are: 0 — 1 — Dash 2 — 3 — Dash-dot pattern 4 — 5 — Null (no visible Painter: Pen Style option. |
|
Width |
(exp) A number specifying the width of the line in Painter: Pen Width option (not available |
Usage
In the painter
Select the control and set values in the Properties view, General
tab.
Examples
|
1 2 3 4 5 |
string setting setting = dw1.Object.line_1.Pen.Width dw1.Object.line_1.Pen.Width = 10 setting = dw1.Describe("line_1.Pen.Width") dw1.Modify("line_1.Pen.Width=10") |