Home Search

DriveWorks Pro 24
Track Color

Send Feedback

Track Color

Specifies the color of the sliders track.

Requires Track Border Width to be greater than 0.

Property Type: Static

Default Value: Gainsboro

Hierarchical Reference: ControlName.TrackColor

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 were deprecated in CSS 2.1, and should be avoided.

Default Property values that previously used a System color (for example ControlText) were replaced with safe alternatives in DriveWorks 22.0.

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

Existing Controls created before this version will still have the old System color defaults applied but from DriveWorks 24.1, a conversion will automatically be applied wherever the user form is rendered.

When using a version prior to DriveWorks 24.1 with controls that have System colors applied, we suggest replacing these with alternative web safe values.

For a complete list of conversions applied to System colors please see System Color Conversion.

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