Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Brushmode – PB Docs 2019 – PowerBuilder Library

Brushmode – PB Docs 2019

Brushmode

property (DataWindow object)

Description

Setting that controls the type of “brush” used for the background
or primary gradient.

Applies to

DataWindows

Syntax

PowerBuilder dot notation:

Describe and Modify argument:

Parameter

Description

integer

The value to be assigned to the
property:

0 — Solid

1 —
HorizontalGradient

2 —
VerticalGradient

3 — AngleGradient

4 —
ScaledAngleGradient

5 —
RadialGradient

6 — Picture

Usage

In the painter

Set the brushmode value on the Background tab of the Properties
view.

If you save to an EMF or WMF, the properties on the Background tab
are not saved with the DataWindow.

The following table explains the possible values for
Brushmode:

Value

Description

0 – Solid

The background is a solid color as
selected

1 – HorizontalGradient

The color changes horizontally from the primary
color (and transparency) to the secondary color (and
transparency). The primary values are defined by the
datawindow.color and datawindow.transparency, and the secondary
values are defined by datawindow.gradient.color and
datawindow.gradient.transparency. The gradient can be repeated
using the datawindow.gradient.repetition.mode
property.

2 – VerticalGradient

The color changes vertically from the background
color (and transparency) to the secondary color (and
transparency). The primary values are defined by the
datawindow.color and datawindow.transparency, and the secondary
values are defined by datawindow.gradient.color and
datawindow.gradient.transparency. The gradient can be repeated
using the datawindow.gradient.repetition.mode
property.

3 – AngleGradient

The color changes at a specific angle off the
horizontal from the background color (and transparency) to the
secondary color (and transparency). The angle is specified in
datawindow.gradient.angle. The primary values are defined by the
datawindow.color and datawindow.transparency, and the secondary
values are defined by datawindow.gradient.color and
datawindow.gradient.transparency. The gradient can be repeated
using the datawindow.gradient.repetition.mode
property.

4 – ScaledAngleGradient

The color changes at an angle, which adjusts
according to the changes in the aspect ratio of the DataWindow
control. The starting angle is specified in
datawindow.gradient.angle. The primary values are defined by the
datawindow.color and datawindow.transparency, and the secondary
values are defined by datawindow.gradient.color and
datawindow.gradient.transparency. The gradient can be repeated
using the datawindow.gradient.repetition.mode
property.

5 – RadialGradient

The background color (and transparency) starts at
the center and slow changes to the gradient color (and
transparency) at the boundaries of the DataWindow. The primary
values are defined by the datawindow.color and
datawindow.transparency, and the secondary values are defined by
datawindow.gradient.color and
datawindow.gradient.transparency.

6 – Picture

A picture is used as the background. The image is
specified in datawindow.picture.file.

See also

Color

Transparency (DataWindow
objects)

Gradient.property

Picture.property


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x