Home Search

DriveWorks Pro 21
Color

Send Feedback

Color

Property Type: Static

Applies to the following properties:

PropertyDefault ValueHierarchical Reference
Background ColorTakes the color of the user form the control is added to.ControlName.BackgroundColor
Caption ColorControlTextControlName.CaptionColor
Grid Line ColorLightGrayControlName.GridLineColor
Header Background ColorGainsboroControlName.HeaderBackgroundColor
Header Text ColorControlTextControlName.HeaderTextColor
Hover ColorRedControlName.HoverColor
Input Background ColorWhiteControlName.InputBackgroundColor
List Item ColorControlTextControlName.ListItemColor
Loading Progress Bar ColorControlTextControlName.LoadingProgressBarColor
Option Item ColorControlTextControlName.OptionItemColor
Row Hover Background ColorWhiteSmokeControlName.RowHoverBackgroundColor
Row Hover Text ColorControlTextControlName.RowHoverTextColor
Selected Row Background ColorDodgerBlueControlName.SelectedRowBackgroundColor
Selected Row Text ColorWhiteControlName.SelectedRowTextColor
Text ColorBlue (Hyperlink), ControlText(All other controls)ControlName.TextColor
Unit ColorControlTextControlName.UnitColor

The default background color of all controls is set to the same value as the background color of the user form they exist on.

Web Browsers and System Colors

Colors selected from the System tab (see image below), of the color chooser, may not display exactly as shown in the Form Designer when a form is viewed in a browser.

Image highlighting the System tab of the color chooser.

System color mapping occurs server side which means if these colors are used, the server theme colors will be sent down to the client.

System colors defined in CSS2 are very unreliable, and indeed, deprecated in CSS 2.1.

A web system color can be forced on the browser by prefixing the system color name with "!", in a rule, for example the rule:

="!ActiveBorder"

This will cause the system color ActiveBorder to be sent all the way to the browser.

We strongly recommend using hexadecimal values or colors selected from the Web tab of the color chooser for the Web.

To Change the Default Value

Ensure the property is a static property (the gray orb  will be displayed alongside the property name)

The default value of the static property can be changed by one of the following methods:

  • Using the Color Chooser.
    1. Click in the property for the control to be changed
    2. Click the drop down list at the end of the property value field
    3. Select the color tab to use (Custom or Web)

    4. Select the required color from the list.
  • Typing the Color name or Hexadecimal value.
    1. Click in the property for the control to be changed
    2. Type the name of the color or it's hexadecimal value directly into the property field.

Examples

Color Property Value (static)Result
WhiteChanges the color of the control to white
TransparentChanges the color of the control to be transparent
#644B47Changes the color of the control to be the color of the hexadecimal value #644B47

A rule can also be built for this property by changing the type to dynamic.

See How To: Change A Static Property To A Dynamic Property.

Color Property Value (dynamic)Result
ColorHex(56,129,205,255)Changes the color of the control to be the hexadecimal equivalent of the RGB and Opacity values 56, 129, 205, 255.
ColorHex(RedReturn, GreenReturn, BlueReturn, OpacityReturn)Changes the color of the control to be the hexadecimal equivalent of the RGB and Opacity values coming from the corresponding controls.

Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.