Brush.property
(DataWindow object)
Description
Settings for the fill pattern and color of a graphic
control.
Applies to
Oval, Rectangle, and RoundRectangle controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Brush.property |
Describe and Modify argument:
|
1 |
"controlname.Brush.property { = 'value ' }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the Line, Oval, Rectangle, |
|
property |
A property that applies to the Brush |
|
value |
Values for the properties are shown in the next |
|
Property for Brush |
Value |
|---|---|
|
Color |
(exp) A long expression specifying the color (the |
|
Hatch |
(exp) A number expression specifying the fill Values are: 0 — 1 — Bdiagonal (lines from lower left to 2 — Vertical 3 — 4 — Fdiagonal (lines from upper left to lower 5 — DiagCross 6 — 7 — Transparent 8 – Background |
Usage
In the painter
Select the control and set the value in the Properties view,
General tab.
When you choose a Brush Hatch fill pattern other than Solid or
Transparent, the Background Color and the Brush Color are used for the
pattern colors.
Examples
|
1 2 3 4 5 6 |
string ls_data ls_data = dw1.Object.oval_1.Brush.Hatch dw1.Object.oval_1.Brush.Hatch = 5 ls_data = dw1.Describe("oval_1.Brush.Hatch") dw1.Modify("oval_1.Brush.Hatch='5'") dw1.Modify("oval_1.Brush.Color='16731766'") |