If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Hello,
I hope you don't mind if I come into your discussion. Does anyone know what is the RGB value for the command button? It's kind of grey, but I cannot find the values, so that I could apply it as background of graphics I build. Thanks, Rocco "John Vinson" wrote: On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo" .(donotspam) wrote: However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. The color code is a "packed" long integer: the RGB code is the Red value + 255 * the Green value + 65536 * the Blue value. Essentially, it's three 8-bit numbers packed into a 24 bit value. John W. Vinson[MVP] |
#12
|
|||
|
|||
Not sure where I got this list from: probably Stephen Lebans:
System colours: ============== Scroll bar -2147483648 Desktop -2147483647 Active window title bar -2147483646 Inactive window title bar -2147483645 Menu bar -2147483644 Window -2147483643 Window frame -2147483642 Menu text -2147483641 Window text -2147483640 Title bar text -2147483639 Active window border -2147483638 Inactive window border -2147483637 Application background -2147483636 Highlight -2147483635 Highlight text -2147483634 3-D face -2147483633 3-D shadow -2147483632 Dimmed (disabled) text -2147483631 Button text -2147483630 Inactive window title bar text -2147483629 3-D highlight -2147483628 3-D dark shadow -2147483627 3-D light -2147483626 ToolTip text -2147483625 ToolTip background -2147483624 -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "rocco" wrote in message ... Hello, I hope you don't mind if I come into your discussion. Does anyone know what is the RGB value for the command button? It's kind of grey, but I cannot find the values, so that I could apply it as background of graphics I build. Thanks, Rocco "John Vinson" wrote: On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo" .(donotspam) wrote: However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. The color code is a "packed" long integer: the RGB code is the Red value + 255 * the Green value + 65536 * the Blue value. Essentially, it's three 8-bit numbers packed into a 24 bit value. John W. Vinson[MVP] |
#13
|
|||
|
|||
Thank you Allen,
can I ask you another question? How can I use the values you listed in RGB? I mean RGb is usually made by thre numbers (i.e. red is RGB(255,0,0)). How can I tralslate your liste into RGB? Thanks anyway. "Allen Browne" wrote: Not sure where I got this list from: probably Stephen Lebans: System colours: ============== Scroll bar -2147483648 Desktop -2147483647 Active window title bar -2147483646 Inactive window title bar -2147483645 Menu bar -2147483644 Window -2147483643 Window frame -2147483642 Menu text -2147483641 Window text -2147483640 Title bar text -2147483639 Active window border -2147483638 Inactive window border -2147483637 Application background -2147483636 Highlight -2147483635 Highlight text -2147483634 3-D face -2147483633 3-D shadow -2147483632 Dimmed (disabled) text -2147483631 Button text -2147483630 Inactive window title bar text -2147483629 3-D highlight -2147483628 3-D dark shadow -2147483627 3-D light -2147483626 ToolTip text -2147483625 ToolTip background -2147483624 -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "rocco" wrote in message ... Hello, I hope you don't mind if I come into your discussion. Does anyone know what is the RGB value for the command button? It's kind of grey, but I cannot find the values, so that I could apply it as background of graphics I build. Thanks, Rocco "John Vinson" wrote: On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo" .(donotspam) wrote: However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. The color code is a "packed" long integer: the RGB code is the Red value + 255 * the Green value + 65536 * the Blue value. Essentially, it's three 8-bit numbers packed into a 24 bit value. John W. Vinson[MVP] |
#14
|
|||
|
|||
I find these useful: http://www.cybernet3000.com/cybersource/couleurs/ http://www.seoconsultants.com/css/colors/conversion/ Robin Chapple On Sat, 2 Jul 2005 12:01:02 -0700, "rocco" wrote: Thank you Allen, can I ask you another question? How can I use the values you listed in RGB? I mean RGb is usually made by thre numbers (i.e. red is RGB(255,0,0)). How can I tralslate your liste into RGB? Thanks anyway. "Allen Browne" wrote: Not sure where I got this list from: probably Stephen Lebans: System colours: ============== Scroll bar -2147483648 Desktop -2147483647 Active window title bar -2147483646 Inactive window title bar -2147483645 Menu bar -2147483644 Window -2147483643 Window frame -2147483642 Menu text -2147483641 Window text -2147483640 Title bar text -2147483639 Active window border -2147483638 Inactive window border -2147483637 Application background -2147483636 Highlight -2147483635 Highlight text -2147483634 3-D face -2147483633 3-D shadow -2147483632 Dimmed (disabled) text -2147483631 Button text -2147483630 Inactive window title bar text -2147483629 3-D highlight -2147483628 3-D dark shadow -2147483627 3-D light -2147483626 ToolTip text -2147483625 ToolTip background -2147483624 -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "rocco" wrote in message ... Hello, I hope you don't mind if I come into your discussion. Does anyone know what is the RGB value for the command button? It's kind of grey, but I cannot find the values, so that I could apply it as background of graphics I build. Thanks, Rocco "John Vinson" wrote: On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo" .(donotspam) wrote: However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. The color code is a "packed" long integer: the RGB code is the Red value + 255 * the Green value + 65536 * the Blue value. Essentially, it's three 8-bit numbers packed into a 24 bit value. John W. Vinson[MVP] |
#15
|
|||
|
|||
rocco wrote:
Thank you Allen, can I ask you another question? How can I use the values you listed in RGB? I mean RGb is usually made by thre numbers (i.e. red is RGB(255,0,0)). How can I tralslate your liste into RGB? As posted in your other thread these "system colors" don't always produce the same actual colors. It depends on the coloring scheme that the user sets up. All you can do is match the default one (which will likely work on most systems), but anyone using a different theme or color scheme will end upi with the buttons not matching the form background. -- I don't check the Email account attached to this message. Send instead to... RBrandt at Hunter dot com |
#16
|
|||
|
|||
The code's Allen's given you are "special" ones. They don't correspond to an
RGB value: they correspond to an official "System" colour (set through the Appearance tab under Screen Properties) In general, though, the colour values Access uses actually are RGB, except they're in a reverse order. If you convert the Access colour code to a 6 character Hex string (using Right$("000000" & Hex(AccessColour), 6)), the left most two characters will be the Blue value, the middle two the Green value, and the right most two the Red value: Function Red(ColourValue As Long) As Long Dim strHexColour As String strHexColour = Right$("000000" & Hex(ColourValue), 6) Red = CLng("&H" & Right$(strHexColour, 2)) End Function Function Green(ColourValue As Long) As Long Dim strHexColour As String strHexColour = Right$("000000" & Hex(ColourValue), 6) Green = CLng("&H" & Mid$(strHexColour, 3, 2)) End Function Function Blue(ColourValue As Long) As Long Dim strHexColour As String strHexColour = Right$("000000" & Hex(ColourValue), 6) Blue = CLng("&H" & Left$(strHexColour, 2)) End Function -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "rocco" wrote in message ... Thank you Allen, can I ask you another question? How can I use the values you listed in RGB? I mean RGb is usually made by thre numbers (i.e. red is RGB(255,0,0)). How can I tralslate your liste into RGB? Thanks anyway. "Allen Browne" wrote: Not sure where I got this list from: probably Stephen Lebans: System colours: ============== Scroll bar -2147483648 Desktop -2147483647 Active window title bar -2147483646 Inactive window title bar -2147483645 Menu bar -2147483644 Window -2147483643 Window frame -2147483642 Menu text -2147483641 Window text -2147483640 Title bar text -2147483639 Active window border -2147483638 Inactive window border -2147483637 Application background -2147483636 Highlight -2147483635 Highlight text -2147483634 3-D face -2147483633 3-D shadow -2147483632 Dimmed (disabled) text -2147483631 Button text -2147483630 Inactive window title bar text -2147483629 3-D highlight -2147483628 3-D dark shadow -2147483627 3-D light -2147483626 ToolTip text -2147483625 ToolTip background -2147483624 -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "rocco" wrote in message ... Hello, I hope you don't mind if I come into your discussion. Does anyone know what is the RGB value for the command button? It's kind of grey, but I cannot find the values, so that I could apply it as background of graphics I build. Thanks, Rocco "John Vinson" wrote: On Sat, 2 Apr 2005 14:29:02 -0800, "Sam Kuo" .(donotspam) wrote: However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. The color code is a "packed" long integer: the RGB code is the Red value + 255 * the Green value + 65536 * the Blue value. Essentially, it's three 8-bit numbers packed into a 24 bit value. John W. Vinson[MVP] |
#17
|
|||
|
|||
Where can I find all the "color codes"?
Hi Sam, would you have Mr. Greenbergs RGB tool? I can't seem to find him.
Thank you. Rob S. "Sam Kuo" wrote: Thanks Steven. Your RGB is indeed very handy. it means I can now just use that to quickly find out the RGB values of whatever color I want even when I am not in Access, rather than having to indirectly go to the buil-in palette everytime. However, It seems Access defines the color constant differently? For example, color constant for Grey would be 8421504, but its RGB is 128, 128, 128. Therefore, I also found out another way of manually finding out the color constants for Access. If I just go to the color property of whatever control I want to use, and click on the button on the right, which would then open up the palette. Then I can just pick whatever color I want and click OK. The equivalent color constant would then be shown in the color property box Regards, Sam "Steven Greenberg" wrote: "=?Utf-8?B?U2FtIEt1bw==?=" .(donotspam) wrote in : Hi, I am trying to change Back Color of some rectangles, but I don't know what "code" is for which color (except black=0 and red=225) in Visual Basic. Can anyone please help? I'm actually after dark grey and light grey, but it'd be nice to know a list of color codes for all colors in the palette. Many thanks Regards, Sam Hi, I got fed up with trying to calculate the color codes also, so I created this application (via VB) called RGB which lets me play with all values of Red, Green and Blue via sliders and shows the result along with the decimal, hex and full decimal number. Feel free to download it and try it out. It can be found at: http://shgreenberg.home.comcast.net/otherpgms.htm Anyone else feel free to try it out. it has certainly helped me many times before. There is no help but it is self explanatory, plus there are many other convenient things it can do. email me with any questions or suggestions. Steve Greenberg |
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using "find and replace" box to navigate through forms | Lucas | Using Forms | 0 | December 20th, 2004 03:27 PM |
Paste into a field in Find and Replace | Nottinghambay | General Discussion | 1 | November 2nd, 2004 05:15 PM |
How to find the gap? | Gnter Brandsttter | General Discussion | 6 | September 3rd, 2004 12:02 PM |
Specify Find options | Dave The Brain | General Discussion | 3 | July 29th, 2004 04:55 PM |
decipher log of scanpst.exe | km | General Discussion | 0 | July 18th, 2004 09:00 AM |