GetSystemColor

Description:              This function returns the colors for the user-configured Windows™ colors.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      GetSystemColor(Option)

Parameters:             Option     { numeric }  { required }  { no default }

                                              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

 

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.

See Also:

Palette | PalStatus