Re: Why does Access not use Windows system colors ???
- From: "Arvin Meyer [MVP]" <a@xxxxx>
- Date: Thu, 25 Sep 2008 18:01:36 -0400
The default text box color is: 16777215
which is a system color for form textbox backgrounds. Access always uses
system colors unless you change them, or use a template which changes them.
This should help:
http://allapi.mentalis.org/apilist/GetSysColor.shtml
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
"mscertified" <rupert@xxxxxxxxxxxxx> wrote in message
news:B0B14533-A6BF-456B-9115-C3AF79844F03@xxxxxxxxxxxxxxxx
Thanks for response.
I already have that list but it does not answer my question. For instance
what is backcolor of a text box set to?
-Dorian
"Arvin Meyer [MVP]" wrote:
"mscertified" <rupert@xxxxxxxxxxxxx> wrote in message
news:0EE9A826-FD29-47B8-B86C-900028140F84@xxxxxxxxxxxxxxxx
I'm trying to create forms that use nothing but Windows system colors
(negative values). In a new database and a new form, I added a text
box, a
label, a combo box, a listbox and a tab control, to see what default
colors
were used. To my dismay, Access is not using the system colors at all.
E.g.
For textbox backcolor I have 16777215 for label forecolor I have 0.
Why is this or am I missing something?
Is there any easy way to convert forms to use all Windows system
colors?
I'm using Access 2003.
I'm not sure that these are current, but here is a list of Windows System
Colors that I have used in the past:
ColorID ColorDesc
----------- ----------------
-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
* Use for text box forecolors (font color)
** Form detail backcolor
*** Disabled text box back color
**** Label text
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
.
- References:
- Why does Access not use Windows system colors ???
- From: mscertified
- Re: Why does Access not use Windows system colors ???
- From: Arvin Meyer [MVP]
- Re: Why does Access not use Windows system colors ???
- From: mscertified
- Why does Access not use Windows system colors ???
- Prev by Date: Re: Word Automation Form
- Next by Date: Values do not display in list box
- Previous by thread: Re: Why does Access not use Windows system colors ???
- Next by thread: Prompting a user to "Are U sure Yes/No" pop-up when changing data
- Index(es):
Loading