GetSystemColor
(Engine-Level Function)
Description: |
Returns the colors for the user-configured Windows™ colors. |
Returns: |
Text (RGB color string) |
Usage: |
Script or steady state. |
Function Groups: |
Color, Graphics |
Related to: |
PalStatus |
Format: |
GetSystemColor(Option) |
Parameters: |
|
Option |
Required. Any numeric expression that determines which color to return, as indicated in the following table.Option | Color |
---|
0 | Scroll bar | 1 | Desk top | 2 | Active window title bar | 3 | Inactive window title bar | 4 | Menu background | 5 | Window background | 6 | Window frame | 7 | Text in menus | 8 | Text in windows | 9 | Active window title text, size button, scroll bar arrow button | 10 | Active window border | 11 | Inactive window border | 12 | Background in MDI window | 13 | Background of selected control item | 14 | Text of selected item in control | 15 | Button face | 16 | Button shadow | 17 | Grayed text | 18 | Text on buttons | 19 | Inactive text title | 20 | Button highlight |
|
Comments: |
This function is session aware. It will get VIC colors if called from within the VIC session. |
Example:
ZText(25, 25, "Standard text", GetSystemColor(8), 0);
This puts text in the upper left corner of the screen in the standard Windows™ text color.
Trihedral and VTScada are registered trade marks of Trihedral Engineering Limited
© Trihedral Engineering Limited 1983- 2024 All rights reserved.