How to find background color value?

M

me

In Win 2000/Access 2000 background color normally is grey, then they (at
work) rolled our computers to Win XP/ Access 2003, and now background is (I
beleive) "Steel Blue".
When I started (in Access 2000 ) with my borderless form - I matched the
grey color with no problems, so all my controls are floating.
Now I cannot exactly match the color, but I thought if I can read the color
of background, I can assign that color to form "On Open", so Floating effect
will work in Win 2000/Access 2000 and Win XP/ Access 2003.

I hope I make enough sense and enough info for you help me

Artem
 
M

Marshall Barton

me said:
In Win 2000/Access 2000 background color normally is grey, then they (at
work) rolled our computers to Win XP/ Access 2003, and now background is (I
beleive) "Steel Blue".
When I started (in Access 2000 ) with my borderless form - I matched the
grey color with no problems, so all my controls are floating.
Now I cannot exactly match the color, but I thought if I can read the color
of background, I can assign that color to form "On Open", so Floating effect
will work in Win 2000/Access 2000 and Win XP/ Access 2003.


There is a set of special color codes that you can use to
match the system's color settings. You may have noticed
this when an object's colors default to a negative number.
I think the one you want is -2147483636, which is called
Application Background.

For details of these system color codes search help on
"color scheme"
 
M

me

Thanks for looking into it

Unfortunatelly it seems that MS Office "Application Background" differes
from rest of apps.
I already explored "Application Background" and changing that color doesn't
make any effect on MS Office apps, but changes for the others.

I'll be digging some more

P.S. I didn't know that negative values are for system colors.
Thanks
 
M

Marshall Barton

Application Background works on my system, but then I'm
using the Classic theme.
 
M

me

Yes, in this case "Application Background" and MS Office App background have
the same color.

In Appearance settings cannot find anything that will change that color,
without changing the whole Scheme.

Oh well, I guess I have to put "Floating" effect on the shelf for now.

Thanks for looking into it

Artem


Marshall Barton said:
Application Background works on my system, but then I'm
using the Classic theme.
--
Marsh
MVP [MS Access]

Unfortunatelly it seems that MS Office "Application Background" differes
from rest of apps.
I already explored "Application Background" and changing that color
doesn't
make any effect on MS Office apps, but changes for the others.

I'll be digging some more

P.S. I didn't know that negative values are for system colors.
Thanks
 
M

Marshall Barton

I don't understand your problem. If the user changes the
Theme or just the setting of Application Background in
Appearances, the color code -2147483636 will pick it up.
 
M

me

Ok. Forgive me if I didn't explained it clearly.
I am quite fruastrated with this, sinse it doesn't make any sense to me
eather.

I am using Windows XP/MS Office 2003

When Color Scheme is set to "Windows Classic style" - your suggestion works
like a charm.
When Color Scheme is set to "Windows XP Style" - that when problems comes
up. Default "Application Background" color is Grey but in MS Office Apps its
blueish grey.
Changing "Application Background" in Advanced Appearance settings make no
effect on MS Office apps background color - it still stays blueish grey.
Just make sure I am not crazy, I did change "Application Background" to RED
and opening Word, Excel, Access etc. still blueish grey.
Opening Remedy app or even Visual Basic Editor - it's red.
Color code -2147483636 returnes exact color of "Application Background",
whatever I'll change it to in Advanced Appearance.
And if it matches to MS Office background then it works great.

I hope this explains it.

This thing tires me out and all this trouble is for appearance :)

Thanks again for looking into it

Artem





Marshall Barton said:
I don't understand your problem. If the user changes the
Theme or just the setting of Application Background in
Appearances, the color code -2147483636 will pick it up.
--
Marsh
MVP [MS Access]

Yes, in this case "Application Background" and MS Office App background
have
the same color.

In Appearance settings cannot find anything that will change that color,
without changing the whole Scheme.

Oh well, I guess I have to put "Floating" effect on the shelf for now.
 
M

Marshall Barton

Maybe there's something funny going on, but I can not
reproduce that effect. Then again, I am using Office XP so
maybe, regardless of how difficult for me to believe, it's a
new thing in Office 2003??

You may want to try checking in with a windows display or
office newsgroup to see if anyone there can shed more light
on the issue.
 
M

me

Beleive me, if you'd tell me same thing I would doubt it too.

I appreciate your time

Artem


Marshall Barton said:
Maybe there's something funny going on, but I can not
reproduce that effect. Then again, I am using Office XP so
maybe, regardless of how difficult for me to believe, it's a
new thing in Office 2003??

You may want to try checking in with a windows display or
office newsgroup to see if anyone there can shed more light
on the issue.
--
Marsh
MVP [MS Access]

Ok. Forgive me if I didn't explained it clearly.
I am quite fruastrated with this, sinse it doesn't make any sense to me
eather.

I am using Windows XP/MS Office 2003

When Color Scheme is set to "Windows Classic style" - your suggestion
works
like a charm.
When Color Scheme is set to "Windows XP Style" - that when problems comes
up. Default "Application Background" color is Grey but in MS Office Apps
its
blueish grey.
Changing "Application Background" in Advanced Appearance settings make no
effect on MS Office apps background color - it still stays blueish grey.
Just make sure I am not crazy, I did change "Application Background" to
RED
and opening Word, Excel, Access etc. still blueish grey.
Opening Remedy app or even Visual Basic Editor - it's red.
Color code -2147483636 returnes exact color of "Application Background",
whatever I'll change it to in Advanced Appearance.
And if it matches to MS Office background then it works great.


"Marshall Barton" wrote
 
Top