Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Color Palette & Hex Code for Colors in Access

Status
Not open for further replies.

MoGryph

Programmer
Nov 1, 2000
99
US
A long time ago, I found a web site that talked about System Color Palette codes... It's reason for discussing this, was that it stated that supposedly, you cannot include a Windows Logo on a package (ie, saying that the program is 'Window Compliant', and include the logo) unless the package met a number of specifications- one being that it must correctly follow the dynamic changing of colors, as they relate to System colors.

It listed a number of Hex codes that you could use that would dynamically change an object's color, in reference to the System Color Palette.

For instance... if I wanted the background color for my form, to be the same as the color for the background of an open folder, I would just put in the color code for "Window".

I'm almost certain I remember making a test database and form, and trying it, then changing system colors through the Appearance tab under Display Properties, and it actually changed the form's colors correctly.

I've since totally forgotten the web-site that I found this on, and can't find the test database/form that I tested it on.

The only other way I can duplicate this, is through some API calls but this ends up being bulky, and since I know the functionality is built in already, it pains me to have to add such extra over-head.

Does anyone know the color-codes, or be able to point me toward a web-site that lists them?
 
Sometimes I jump to asking questions too quickly.
I found this in Access' Help...

Screen element Value
Scroll bar -2147483648
Desktop -2147483647
Active window title bar -2147483646
Inactive window title bar -2147483645
Menu bar -2147483644
Window -2147483643
Window frame -2147483642
Menu text -2147483641
Window text -2147483640
Title bar text -2147483639
Active window border -2147483638
Inactive window border -2147483637
Application background -2147483636
Highlight -2147483635
Highlight text -2147483634
3-D face -2147483633
3-D shadow -2147483632
Dimmed (disabled) text -2147483631
Button text -2147483630
Inactive window title bar text -2147483629
3-D highlight -2147483628
3-D dark shadow -2147483627
3-D light -2147483626
ToolTip text -2147483625
ToolTip background -2147483624
 
I would like to establish a palette that I could load when working on a particular project, and use the colors in all Office Applications (including Power Point and Access). The reason you are getting this memo is that this post is one of the few regarding palette use.

Comments, please ::) Deb Koplen
deb.koplen@verizon.com

A person can stand almost anything except a succession of ordinary days.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top