473,378 Members | 1,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Standard Form Color?

Does anyone know what the RGB values are for the standard Access form color?

Thanks!
Apr 10 '08 #1
9 6817
I don't think RGB color values will work in access but here is the default form color access value -2147483633
Apr 10 '08 #2
missinglinq
3,532 Expert 2GB
You can use RGB color values in Access VBA, but I know no one who does and have no clue how they're used or the paticular combinations.

What Trevor2007 gave you is the Windows ColorID for the standard Access background. The advantage in using these in Access is that it assures you that your app will reflect the end users' preferences, if they've gone into Windows Control Panel and changed things from the defaults. For instance, a user that's modified his/her color scheme in Windows may have bluish green command buttons, which is the color they'll be in your app, since you can't set this property in Access.

If you've used a pallette and chosen a bright red as your form backcolor , it may look fine with your Windows color scheme, but bluish green command buttons will certainly clash with the red on the user's machine! But if you only use the Windows color codes, you know that they'll blend in with the user's choices.

These color codes can be used in VBA code as well as in the Property Sheet.

Expand|Select|Wrap|Line Numbers
  1. Color ID..... Color Description
  2.  
  3.   ---------------------------------
  4.  
  5.   -2147483648 Scroll bar
  6.  
  7.   -2147483647 Desktop
  8.  
  9.   -2147483646 Active window title bar
  10.  
  11.   -2147483645 Inactive window title bar
  12.  
  13.   -2147483644 Menu bar
  14.  
  15.   -2147483643 Window
  16.  
  17.   -2147483642 Window frame
  18.  
  19.   -2147483641 Menu Text
  20.  
  21.   -2147483640 Window Text 
  22.  
  23.  
  24.    -2147483639 Title bar text
  25.  
  26.   -2147483638 Active window border
  27.  
  28.   -2147483637 Inactive window border
  29.  
  30.   -2147483636 Application background
  31.  
  32.   -2147483635 Highlight
  33.  
  34.    -2147483634 Highlight Text
  35.  
  36.   -2147483633 3-D face 
  37.  
  38.   -2147483632 3-D shadow
  39.  
  40.   -2147483631 Dimmed (disabled) text
  41.  
  42.   -2147483630 Button Text
  43.  
  44.   -2147483629 Inactive window title bar text
  45.  
  46.   -2147483628 3-D highlight  
  47.  
  48. -2147483627 3-D dark shadow
  49.  
  50.   -2147483626 3-D light
  51.  
  52.   -2147483625 ToolTip Text
  53.  
  54.   -2147483624 ToolTip background
  55.  
  56.   -2147483621 Active window title bar color2
Linq ;0)>
Apr 11 '08 #3
missinglinq
3,532 Expert 2GB
Life is strange! Doing something totally unrelated to your post, I came scross the numbers you need:

R 192
G 192
B 192

Linq ;0)>
Apr 11 '08 #4
Life is strange! Doing something totally unrelated to your post, I came scross the numbers you need:

R 192
G 192
B 192

Linq ;0)>
Wow, thanks for all the information! I'll be sure to use your recommendations from your first post. Is there a way to contribute to these forums? The experts here are so useful!
Apr 11 '08 #5
missinglinq
3,532 Expert 2GB
The way to "contribute" is to the site is to
  1. Tell friends who program about us
  2. Come back often
  3. Once you've gained some experience, help to answer questions
Linq ;0)>
Apr 11 '08 #6
NeoPa
32,556 Expert Mod 16PB
To determine the RGB factors for a colour given in a colour property consider it as a number where Red, Green & Blue are all assigned 8 bits each.
Red is the least-significant portion of the number, then Green and then Blue.

Consider (for simplicity of explanation) you have three factors - {R}, {G} & {B}. The number in the property would be {R} + ({G} * 256) + ({B} * 65536).
256 = 2^8 & 65536 = 2^16.

Reversing this process I have created a simple spreadsheet (formulae shown below) which determines the three factors when you enter the property value in cell A1 :
Expand|Select|Wrap|Line Numbers
  1. .   A             B
  2. 8421631   =MOD($A$1,2^8)
  3.           =INT(MOD($A$1,2^16)/2^8)
  4.           =INT(MOD($A$1,2^24)/2^16)
This value is for a dark pink I found in the top left of the colour grid. The values displayed in my spreadsheet were :
Expand|Select|Wrap|Line Numbers
  1. .  A      B
  2. 8421631  255
  3.          128
  4.          128
Apr 11 '08 #7
NeoPa
32,556 Expert Mod 16PB
Any of the negative numbers quoted so far are predefined constants and they are NOT RGB values.

As explained, an RGB value is constrained to the least significant 24 bits of a 32-bit value. Negative numbers, by definition, use the most significant bit (bit#31) so cannot be an RGB value.
Apr 11 '08 #8
Any of the negative numbers quoted so far are predefined constants and they are NOT RGB values.

As explained, an RGB value is constrained to the least significant 24 bits of a 32-bit value. Negative numbers, by definition, use the most significant bit (bit#31) so cannot be an RGB value.
Thanks again for the excellent information! I knew there had to be some conversion algorithm for the numbers, so here it is then!
Apr 14 '08 #9
NeoPa
32,556 Expert Mod 16PB
No worries CB.

Glad it helped :)
Apr 14 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Magnus Lie Hetland | last post by:
Is there any interest in a (hypothetical) standard graph API (with 'graph' meaning a network, consisting of nodes and edges)? Yes, we have the standard ways of implementing graphs through (e.g.)...
10
by: Andres Eduardo Hernando | last post by:
Hi, I'm not entirely sure this is the right group to ask this question, but I saw a similar one above, and the group's charter is not clear enough about it, so, here I go: ;) What is the...
2
by: Raghavendran Muraleetharan | last post by:
I am having an existing VB 6 standard .EXE application. Now I am developing a wrapper application in .Net and I want to launch the VB 6 exe app embedded with in the .Net App window. That is, the...
20
by: skoco | last post by:
Hello! Do you know when will be the new standard for c++ approved? And WHAT will be inside? Hope there will be some thread and synchro classes, text and XML parsing, new containers and other new...
19
by: Steven T. Hatton | last post by:
The short sample program listed below has some features that I find to be bad style. In particular, they fail to communicate the connection between names used in this program and the location in...
29
by: David Eng | last post by:
In replying to P.J. Plauger (...
4
by: Steven T. Hatton | last post by:
Are the Standard Headers as described in ISO/IEC 14882:2003 available in source file form as they appear in the standard? What I mean by this is, for example §20.4 describes the Header<memory> and...
43
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own...
3
by: Jim Heavey | last post by:
Hello, my company has a standard format that I must follow when creating a page. The top portion of the page contains a standard heading which should be placed on each page. This "heading" has a...
9
by: Richard Brown | last post by:
Can anyone give me a good argument one way or another? I have an 'address' set of fields that are used in various situations (a client has an address, a destination has an address, etc). These...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.