Using windows colors and fonts in access forms

R

rudy.grigar

I have an Access application I'm developing for an internship and my
familiarity with access is pretty low. I am developing in Access 2002
and VBA and would like to make my forms look "pretty" by inheriting
the color settings (and font settings if possible, but I'm more
interested in color) from the windows display properties.

I'm guessing that the color inheritance is possible using the Windows
API, but I don't know where or how to accomplish this.

Thanks,
Rudy
 
M

missinglinq via AccessMonster.com

Don't have a clue on the fonts, but the colors are easy! Just place any of
the Color IDs in the control's backcolor property box and leave the rest to
Windows. Be sure to preface the ID # with the
minus (-) sign; this tells Windows that the number is a Color ID number.

For instance, -2147483647 is the ID # for the Desktop. If you place

-2147483647 in the BackColor property box for the form's Detail section, the
Detail section will *always* be the same color as the PC's Desktop, no matter
what color the user has his/her Desktop set to! It's a way to allow your
users to continue having their colors, even when using your db!

Color ID... Color Description
----------- -----------------
-2147483648 Scroll bar
-2147483647 Desktop
-2147483646 Active window title bar
-2147483645 Inactive window title bar
-2147483644 Menu bar
-2147483643 Window
-2147483642 Window frame
-2147483641 Menu Text
-2147483640 Window Text
-2147483639 Title bar text
-2147483638 Active window border
-2147483637 Inactive window border
-2147483636 Application background
-2147483635 Highlight
-2147483634 Highlight Text
-2147483633 3-D face
-2147483632 3-D shadow
-2147483631 Dimmed (disabled) text
-2147483630 Button Text
-2147483629 Inactive window title bar text
-2147483628 3-D highlight
-2147483627 3-D dark shadow
-2147483626 3-D light
-2147483625 ToolTip Text
-2147483624 ToolTip background
-2147483621 Active window title bar color2

Hope this helps.

Linq
 
R

rudy.grigar

Thank you, that's exactly what I was looking for, my forms look much
nicer now :)
 
Top