Navigation:  thinBasic Modules > UI (User Interface) > Windows >

Win_GetSysColor

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the current color of the specified display element.

Display elements are the parts of a window and the display that appear on the system display screen.

 

Syntax

 

n = Win_GetSysColor(nIndex)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

nIndex

Number

No

The display element whose color is to be retrieved. This parameter can be one of the following values:

 

%COLOR_SCROLLBAR

%COLOR_BACKGROUND

%COLOR_ACTIVECAPTION

%COLOR_INACTIVECAPTION

%COLOR_MENU

%COLOR_MSGBOX

%COLOR_WINDOW

%COLOR_WINDOWFRAME

%COLOR_MENUTEXT

%COLOR_MSGBOXTEXT

%COLOR_WINDOWTEXT

%COLOR_CAPTIONTEXT

%COLOR_ACTIVEBORDER

%COLOR_INACTIVEBORDER

%COLOR_APPWORKSPACE

%COLOR_HIGHLIGHT

%COLOR_HIGHLIGHTTEXT

%COLOR_BTNFACE

%COLOR_BTNSHADOW

%COLOR_GRAYTEXT

%COLOR_BTNTEXT

%COLOR_INACTIVECAPTIONTEXT

%COLOR_BTNHIGHLIGHT

%COLOR_3DDKSHADOW

%COLOR_3DLIGHT

%COLOR_INFOTEXT

%COLOR_INFOBK

%COLOR_HOTLIGHT

%COLOR_GRADIENTACTIVECAPTION

%COLOR_GRADIENTINACTIVECAPTION

%COLOR_MENUHILIGHT

%COLOR_MENUBAR

%COLOR_DESKTOP

%COLOR_3DFACE

%COLOR_3DSHADOW            

 

See following page for additional documentation:

http://msdn.microsoft.com/en-us/library/ms724371(VS.85).aspx

 

Remarks

 

Restrictions

 

See also

 

Examples