Color

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Color values are typically four-byte integers and commonly use little-endian and big-endian format. Microsoft Windows and ActiveX use the little-endian format, which stores red, green, and blue color components in the 0x00BBGGRR byte positions. LabVIEW and LabWindows/CVI use the big-endian format, which stores the color components in the 0x00RRGGBB byte positions.

If you are specifying a color value in an expression, you can use a predefined little-endian color constant, such as tsRed or tsDarkBlue. Refer to Constants»Color on the Operators/Functions tab of the Expression Browser dialog box for the list of available expression color constants. Use the ConvertColor expression function to convert the two color value formats.

Some Windows and ActiveX functions support specifying a system color using the 0x800000xx byte format, where xx is a valid Win32 GetSysColor index. The possible values are listed below.

  • 0x00bbggrr—Where bb specifies the intensity of the color blue, gg specifies the intensity of the color green, and rr specifies the intensity of the color red.
  • 0x800000xx—Where xx is a valid Win32 GetSysColor index. The possible values are listed below.

    ConstantValue
    COLOR_SCROLLBAR0
    COLOR_BACKGROUND1
    COLOR_ACTIVECAPTION2
    COLOR_INACTIVECAPTION3
    COLOR_MENU4
    COLOR_WINDOW5
    COLOR_WINDOWFRAME6
    COLOR_MENUTEXT7
    COLOR_WINDOWTEXT8
    COLOR_CAPTIONTEXT9
    COLOR_ACTIVEBORDER10
    COLOR_INACTIVEBORDER11
    COLOR_APPWORKSPACE12
    COLOR_HIGHLIGHT13
    COLOR_HIGHLIGHTEXT14
    COLOR_BTNFACE15
    COLOR_BTNSHADOW16
    COLOR_GRAYTEXT17
    COLOR_BTNTEXT18
    COLOR_INACTIVECAPTIONTEXT19
    COLOR_BTNHIGHLIGHT20
    COLOR_3DDKSHADOW21
    COLOR_3DLIGHT22
    COLOR_INFOTEXT23
    COLOR_INFOBK24
    COLOR_HOTLIGHT26
    COLOR_GRADIENTACTIVECAPTION27
    COLOR_GRADIENTINACTIVECAPTION28
    COLOR_MENUHILIGHT29
    COLOR_MENUBAR30

WAS THIS ARTICLE HELPFUL?

Not Helpful