Brush.property DataWindow object property
Description
Settings for the fill pattern and color of a graphic control.
Controls
Oval, Rectangle, and RoundRectangle controls
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.<span>controlname</span>.Brush.<span>property</span> |
Describe and Modify argument:
|
1 |
"<span>controlname</span>.Brush.<span>property </span>{ = ' <span>value</span> ' }" |
|
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 |
|
Property for Brush |
Value |
|---|---|
|
Color |
(exp) A long expression |
|
Hatch |
(exp) A number expression Values are:
|
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 |
string ls_data |
|
1 |
ls_data = dw1.Object.oval_1.Brush.Hatch |
|
1 |
dw1.Object.oval_1.Brush.Hatch = 5 |
|
1 |
ls_data = dw1.Describe("oval_1.Brush.Hatch") |
|
1 |
dw1.Modify("oval_1.Brush.Hatch='5'") |
|
1 |
dw1.Modify("oval_1.Brush.Color='16731766'") |