How to determine windows theme color...

  • Thread starter Thread starter PeterM
  • Start date Start date
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!
 
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?
 
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.
 
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
 
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
 
Back
Top