Settings for a line or the outline of a control.
Line, Oval, Rectangle, and RoundRectangle controls
Describe and Modify argument:
"controlname.Pen.property { = value }"
Parameter |
Description |
---|---|
controlname |
The name of the control whose Pen property you want to get or set. |
property |
A property that applies to the Pen characteristics of controlname, as listed in the table below. |
value |
The value of the property, as shown in the table below. Value can be a quoted DataWindow expression. |
Property for Pen |
Value |
---|---|
Color |
(exp) A long specifying the color (the red, green, and blue values) to be used as the control’s line color. Painter: Pen Color option. |
Style |
(exp) A number specifying the style of the line. Values are:
Painter: Pen Style option. |
Width |
(exp) A number specifying the width of the line in the unit of measure specified for the DataWindow. Painter: Pen Width option (not available when Style is a value other than Solid). |
Select the control and set values in the Properties view, General tab.
setting = dw1.Describe("line_1.Pen.Width")
dw1.Modify("line_1.Pen.Width=10")