WinStudio
Setting the Background Color to a Linear Gradient
Each form and valid form component can have its own background color
settings. These settings can come from background color definition variables
or you can set them directly in the form or component property sheet in
Design Mode.
NOTE: Be aware
that whatever color definition you set in the property sheets applies
only to the specified form or
component. If you want to reuse color definitions for a consistent look-and-feel,
you should define and use background color definition variables in the
Edit
Color dialog box.
To set the background color of a form or component to a single, solid
color with no transparency:
- Open a form in Design Mode.
- Select the appropriate property sheet for the form or component.
- Locate the Ext. Color
Type attribute field (below the Background
Color property) and select the Gradient
option.
- Use the color picker or type a set of numbers to specify
an RGB value for the Ext.
Color 0 and Ext.
Color 1 attributes.
- (Optional) For the Ext.
Color Alpha 0 and Ext.
Color Alpha 1 attributes, specify values for transparency
between 0 (fully transparent) and 255 (fully opaque).
- (Optional) In the Ext.
Color - Gradient Direction attribute field, specify the
direction for the gradient to use.
Notice that the Background Color
property field displays:
- V(bgc_Form) for a
form background
- V(bgc_componentName) for a component background,
where componentName
is the name of the component as displayed in the Name
field.
Related Topics
About Setting Form and Component
Background Colors
BACKCOLOR Keyword
Setting the Background Color to a
Solid Color without Transparency
Setting the Background Color to
a Single Color with Transparency
Background
Color Property