How to determine windows theme color...

P

PeterM

Is there a way in AC2003 to find out the current windows theme color. I'm
talking the blue, olive green or gray.

I would like to set the color scheme of my AC database to match the current
windows theme colors.

Thanks for your help!
 
D

Douglas J. Steele

Go into the VB Editor and do a search for System Color Constants in Help.
 
P

PeterM

Doug... thanks for responding. However, the constants used to identify
windows theme colors does no good. I need to know the value of the constant.
For example, the constant for the window desktop is VBDesktop, I need to
know the value for the VBDesktop constant...I've tried the following with no
success.

me.text11.backcolor = vbDesktop.Value

It doesn't like the .value which is what I need. I need to color (RGB or
similar) of the constant.

Any ideas?
 
D

Douglas J. Steele

vbDesktop is an intrinsic constant.

If you're doing this in code, you'd use

Me.text11.BackColor = vbDesktop

If you're trying to set the value through the Properties window, you can get
the value of vbDesktop by going to the Immediate Window (Ctrl-G), typing
?vbDesktop and hitting Enter. You'll see that the value of vbDesktop
is -2147483647

Note that that value does NOT equate to an RGB colour. It tells Access to
use whatever colour is currently associated with the desktop so that if user
A has his desktop as blue and user B has her desktop as red, those are the
colours you'll see.
 
G

Guest

PeterM said:
Is there a way in AC2003 to find out the current windows theme color. I'm
talking the blue, olive green or gray.

I would like to set the color scheme of my AC database to match the
current
windows theme colors.

Thanks for your help!

__________ Information from ESET Smart Security, version of virus
signature database 4980 (20100328) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4980 (20100328) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 
G

Guest

PeterM said:
Is there a way in AC2003 to find out the current windows theme color. I'm
talking the blue, olive green or gray.

I would like to set the color scheme of my AC database to match the
current
windows theme colors.

Thanks for your help!

__________ Information from ESET Smart Security, version of virus
signature database 4980 (20100328) __________

The message was checked by ESET Smart Security.

http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 4980 (20100328) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top