Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 4.9/5.0, builds 850-998 > 980 - 18 Jan 07

Extended TAB function SYSCOLOR

Scroll Prev Top Next More

Extended TAB function SYSCOLOR (63) allows you to change the Windows RGB value for certain parts of the Windows user interface. Note that this is offered on an as-is basis, and is not recommended due to:

Conflicts between these settings and the current Theme
Conflicts with the "approved" way of changing Windows desktop settings (via the Control Panel)
Differences in the way it may work under different versions of Windows
Possible problems with the way other applications may respond to the fact of color changes (since any such change triggers a notification message to be sent to all affected applications).

That said, if want to experiment with such changes, the syntax is:

? TAB(-10,AG_SYSCOLOR);id{,r,g,b};chr(127);

Where the id values are:

Symbol

Value

 

Symbol

Value

COLOR_SCROLLBAR

0

 

COLOR_INACTIVEBORDER

11

COLOR_BACKGROUND

1

 

COLOR_APPWORKSPACE

12

COLOR_ACTIVECAPTION

2

 

COLOR_HIGHLIGHT

13

COLOR_INACTIVECAPTION

3

 

COLOR_HIGHLIGHTTEXT

14

COLOR_MENU

4

 

COLOR_BTNFACE

15

COLOR_WINDOW

5

 

COLOR_BTNSHADOW

16

COLOR_WINDOWFRAME

6

 

COLOR_GRAYTEXT

17

COLOR_MENUTEXT

7

 

COLOR_BTNTEXT

18

COLOR_WINDOWTEXT

8

 

COLOR_INACTIVECAPTIONTEXT

19

COLOR_CAPTIONTEXT

9

 

COLOR_BTNHIGHLIGHT

20

COLOR_ACTIVEBORDER

10

 

 

 

 

The RGB values r,g,b range from 0 to 255 (0,0,0=black; 255,255,255=white).

If you don't specify the r,g,b values, the TAB function will return a string in the keyboard buffer containing the current r,g,b values for the specified interface component.

Note that if you are associated A-Shell palette numbers with the standard Windows dialog background, window background, or text, you must do that first before using the TAB(-10,63) command.