Home Search

DriveWorks Pro 24
Unit Background Color

Send Feedback

Unit Background Color, Unit Background Color (Disabled), Unit Background Color (Hover)

Unit Background Color

Specifies the background color of the unit select.

Property Type: Static

Hierarchical Reference: ControlName.UnitBackgroundColor

Default Value:

Unit Background Color (Disabled)

Specifies the background color of the unit select when the control is disabled.

Property Type: Static

Hierarchical Reference: ControlName.UnitBackgroundColorDisabled

Default Value:

Unit Background Color (Hover)

Specifies the background color of the unit select when in a hovered state.

Property Type: Static

Hierarchical Reference: ControlName.UnitBackgroundColorHover

Default Value:

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, see Web Safe Colors below)

    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 to white
TransparentChanges the color to be transparent
#644B47Changes the color 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 to be the hexadecimal equivalent of the RGB values 56, 129, 205 with an Opacity value of 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.

Web Safe Colors

When selecting a color, we strongly recommend using colors selected only from the Web or Custom tabs, or manually entering as a hexadecimal value (for example #000000 for black).

Named colors selected from the System tab (for example ControlText) are very unreliable.

System colors will vary per browser, and/or the user's chosen color scheme.

System colors were deprecated in CSS 2.1, and should be avoided.

Default Property values previously using System colors (for example ControlText) were replaced with safe alternatives in DriveWorks 22.0.

New Controls made from this version onwards will no longer use System colors by default.

Existing Controls created before this version will use the old defaults, we suggest existing controls that use System colors are replaced with alternative web safe values.

For example:

ControlText → Black

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

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

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