Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1581 > unrolled thread
| Started by | -mhd <not_real@invalid.com> |
|---|---|
| First post | 2012-10-08 13:12 -0400 |
| Last post | 2012-10-09 13:09 -0400 |
| Articles | 5 on this page of 25 — 11 participants |
Back to article view | Back to comp.lang.basic.visual.misc
Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-08 13:12 -0400
Re: Color names in color picker used in font common dialog "Jeff Johnson" <i.get@enough.spam> - 2012-10-08 14:07 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-08 16:47 -0400
Re: Color names in color picker used in font common dialog "Mayayana" <mayayana@invalid.nospam> - 2012-10-08 17:20 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-08 19:29 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-08 20:14 -0400
Re: Color names in color picker used in font common dialog Schmidt <sss@online.de> - 2012-10-09 06:21 +0200
Re: Color names in color picker used in font common dialog "Norm Cook" <normcook@cableone.net> - 2012-10-09 07:08 -0500
Re: Color names in color picker used in font common dialog Schmidt <sss@online.de> - 2012-10-09 16:05 +0200
Re: Color names in color picker used in font common dialog "Mayayana" <mayayana@invalid.nospam> - 2012-10-09 10:28 -0400
Re: Color names in color picker used in font common dialog "CoderX" <coder@x.com> - 2012-10-09 16:38 -0400
Re: Color names in color picker used in font common dialog Ulrich Korndoerfer <ulrich_wants_nospam@prosource.de> - 2012-10-09 23:05 +0200
Re: Color names in color picker used in font common dialog "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-10-08 22:42 +0100
Re: Color names in color picker used in font common dialog "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-10-08 22:49 +0100
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-08 20:15 -0400
Re: Color names in color picker used in font common dialog Deanna Earley <dee.earley@icode.co.uk> - 2012-10-09 09:30 +0100
Re: Color names in color picker used in font common dialog "Jeff Johnson" <i.get@enough.spam> - 2012-10-09 13:52 -0400
Re: Color names in color picker used in font common dialog "DaveO" <djo@dial.pipex.com> - 2012-10-09 11:57 +0100
Re: Color names in color picker used in font common dialog "DaveO" <djo@dial.pipex.com> - 2012-10-09 15:21 +0100
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-09 13:10 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-09 12:58 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-09 15:14 -0400
Re: Color names in color picker used in font common dialog "Mayayana" <mayayana@invalid.nospam> - 2012-10-09 17:33 -0400
Re: Color names in color picker used in font common dialog -mhd <not_real@invalid.com> - 2012-10-09 17:49 -0400
Re: Color names in color picker used in font common dialog Stan Weiss <srweiss@erols.com> - 2012-10-09 13:09 -0400
Page 2 of 2 — ← Prev page 1 [2]
| From | -mhd <not_real@invalid.com> |
|---|---|
| Date | 2012-10-09 12:58 -0400 |
| Message-ID | <m1k878th7jfo8gj25ivtfsteemddte3bhj@4ax.com> |
| In reply to | #1592 |
"DaveO" <djo@dial.pipex.com> wrote: >Am I right to assume you intend to provide a combo box with the names of the >colours? >Not the best interface as the names are a bit arbitary, far better to have a >combo box with bars of each colour so they can be chosen directly. The 16 names used by MS in their Font common dialog are well established and don't seem arbitrary to me. Remember I am rolling my own dialog for fonts and Windows users have been seeing these same color names for years. I would love to have the color bars in my combobox but owner drawing Codejock themed controls could be a headache with no help from Codejock. >The >combobox does not provide that functionality out-of-the-box but it's not too >tricky to manage (or so I'm led to understand, I've seen it but I've not >actually tried it myself). Googling of "vb6 colour picker" only returned >23,900 results but I'm sure one or two of them will do exactly what you >need. I Googled and Googled and it seems that VB6 means .net to Google. Trying to get a color picker in the context of being within the Font dialog and not a full blown color dialog doesn't leave much to pick from either. Plus I wasn't looking for a code sample - just wanted info on what the difference is between QBColor names and the names used in font dialogs which is now resolved. Anyway my custom dialog is now working just the way I like it (minus the bonus color bars). -mhd
[toc] | [prev] | [next] | [standalone]
| From | -mhd <not_real@invalid.com> |
|---|---|
| Date | 2012-10-09 15:14 -0400 |
| Message-ID | <kqt878t75nlj52tun7q708svtil7c0r67h@4ax.com> |
| In reply to | #1597 |
-mhd <not_real@invalid.com> wrote: >I would love to have the color bars in my combobox but owner drawing Codejock >themed controls could be a headache with no help from Codejock. Actually it seems that newer versions of their controls support this but license renewal is expensive for that one missing feature. -mhd
[toc] | [prev] | [next] | [standalone]
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Date | 2012-10-09 17:33 -0400 |
| Message-ID | <k5258p$ri8$1@dont-email.me> |
| In reply to | #1601 |
>I would love to have the color bars in my combobox but owner drawing >Codejock >themed controls could be a headache with no help from Codejock. I don't know anything about Codejock, but I know there are samples around for drawing colors in listboxes. I use code like that myself to put a colored block on the left of each item and shift the text over. One just has to trap the WM_DRAWITEM message and then draw the item content "by hand". It may be that under the hood the Codejock control is using a Windows window that you can do that with.
[toc] | [prev] | [next] | [standalone]
| From | -mhd <not_real@invalid.com> |
|---|---|
| Date | 2012-10-09 17:49 -0400 |
| Message-ID | <jt6978l8btkjnt145o5j5r2eerp96us1el@4ax.com> |
| In reply to | #1604 |
"Mayayana" <mayayana@invalid.nospam> wrote: >>I would love to have the color bars in my combobox but owner drawing >>Codejock >>themed controls could be a headache with no help from Codejock. > > I don't know anything about Codejock, but I know >there are samples around for drawing colors in listboxes. >I use code like that myself to put a colored block on >the left of each item and shift the text over. One >just has to trap the WM_DRAWITEM message and then >draw the item content "by hand". It may be that under >the hood the Codejock control is using a Windows window >that you can do that with. > I'll play with that and see its doable. -Maurice
[toc] | [prev] | [next] | [standalone]
| From | Stan Weiss <srweiss@erols.com> |
|---|---|
| Date | 2012-10-09 13:09 -0400 |
| Message-ID | <50745A49.3591420B@erols.com> |
| In reply to | #1581 |
Some thing that I got about 4 1/2 year ago probable from this news group. I have no used the code only some of the colors. Stan Private Function GetColourName(lColour As Long) As String Dim S As String Select Case lColour Case 16775408: S = "Alice Blue" 'HEX F0F8FF: RGB(240, 248, 255) Case 14150650: S = "Antique White" 'HEX FAEBD7: RGB(250, 235, 215) Case 16776960: S = "Aqua" 'HEX 00FFFF: RGB(0, 255, 255) Case 13959039: S = "Aquamarine" 'HEX 7FFFD4: RGB(127, 255, 212) Case 16777200: S = "Azure" 'HEX F0FFFF: RGB(240, 255, 255) Case 14480885: S = "Beige" 'HEX F5F5DC: RGB(245, 245, 220) Case 12903679: S = "Bisque" 'HEX FFE4C4: RGB(255, 228, 196) Case 0: S = "Black" 'HEX 000000: RGB(0, 0, 0) Case 13495295: S = "Blanched Almond" 'HEX FFEBCD: RGB(255, 235, 205) Case 16711680: S = "Blue" 'HEX 0000FF: RGB(0, 0, 255) Case 14822282: S = "Blue Violet" 'HEX 8A2BE2: RGB(138, 43, 226) Case 2763429: S = "Brown" 'HEX A52A2A: RGB(165, 42, 42) Case 8894686: S = "Burly Wood" 'HEX DEB887: RGB(222, 184, 135) Case 10526303: S = "Cadet Blue" 'HEX 5F9EA0: RGB(95, 158, 160) Case 65407: S = "Chartreuse" 'HEX 7FFF00: RGB(127, 255, 0) Case 1993170: S = "Chocolate" 'HEX D2691E: RGB(210, 105, 30) Case 5275647: S = "Coral" 'HEX FF7F50: RGB(255, 127, 80) Case 15570276: S = "Cornflower Blue" 'HEX 6495ED: RGB(100, 149, 237) Case 14481663: S = "Cornsilk" 'HEX FFF8DC: RGB(255, 248, 220) Case 4039917: S = "Crimson" 'HEX DC143C: RGB(237, 164, 61) Case 16776960: S = "Cyan" 'HEX 00FFFF: RGB(0, 255, 255) Case 9109504: S = "Dark Blue" 'HEX 00008B: RGB(0, 0, 139) Case 9145088: S = "Dark Cyan" 'HEX 008B8B: RGB(0, 139, 139) Case 755384: S = "Dark Golden Rod" 'HEX B8860B: RGB(184, 134, 11) Case 11119017: S = "Dark Gray" 'HEX A9A9A9: RGB(169, 169, 169) Case 25600: S = "Dark Green" 'HEX 006400: RGB(0, 100, 0) Case 7059389: S = "Dark Khaki" 'HEX BDB76B: RGB(189, 183, 107) Case 9109643: S = "Dark Magenta" 'HEX 8B008B: RGB(139, 0, 139) Case 3107669: S = "Dark Olive Green" 'HEX 556B2F: RGB(85, 107, 47) Case 36095: S = "Dark orange" 'HEX FF8C00: RGB(255, 140, 0) Case 13382297: S = "Dark Orchid" 'HEX 9932CC: RGB(153, 50, 204) Case 139: S = "Dark Red" 'HEX 8B0000: RGB(139, 0, 0) Case 8034025: S = "Dark Salmon" 'HEX E9967A: RGB(233, 150, 122) Case 9419919: S = "Dark Sea Green" 'HEX 8FBC8F: RGB(143, 188, 143) Case 9125192: S = "Dark Slate Blue" 'HEX 483D8B: RGB(72, 61, 139) Case 5197615: S = "Dark Slate Gray" 'HEX 2F4F4F: RGB(47, 79, 79) Case 13749760: S = "Dark Turquoise" 'HEX 00CED1: RGB(0, 206, 209) Case 13828244: S = "Dark Violet" 'HEX 9400D3: RGB(148, 0, 211) Case 9639167: S = "Deep Pink" 'HEX FF1493: RGB(255, 20, 147) Case 16760576: S = "Deep Sky Blue" 'HEX 00BFFF: RGB(0, 191, 255) Case 6908265: S = "Dim Gray" 'HEX 696969: RGB(105, 105, 105) Case 16748574: S = "Dodger Blue" 'HEX 1E90FF: RGB(30, 144, 255) Case 2237106: S = "Fire Brick" 'HEX B22222: RGB(178, 34, 34) Case 15792895: S = "Floral White" 'HEX FFFAF0: RGB(255, 250, 240) Case 2263842: S = "Forest Green" 'HEX 228B22: RGB(34, 139, 34) Case 16711935: S = "Fuchsia" 'HEX FF00FF: RGB(255, 0, 255) Case 14474460: S = "Gainsboro" 'HEX DCDCDC: RGB(220, 220, 220) Case 16775416: S = "Ghost White" 'HEX F8F8FF: RGB(248, 248, 255) Case 55295: S = "Gold" 'HEX FFD700: RGB(255, 215, 0) Case 2139610: S = "Golden Rod" 'HEX DAA520: RGB(218, 165, 32) Case 8421504: S = "Gray" 'HEX 808080: RGB(128, 128, 128) Case 32768: S = "Green" 'HEX 008000: RGB(0, 128, 0) Case 3145645: S = "Green Yellow" 'HEX ADFF2F: RGB(173, 255, 47) Case 15794160: S = "HoneyDew" 'HEX F0FFF0: RGB(240, 255, 240) Case 11823615: S = "Hot Pink" 'HEX FF69B4: RGB(255, 105, 180) Case 6053069: S = "Indian Red" 'HEX CD5C5C: RGB(205, 92, 92) Case 8519755: S = "Indigo" 'HEX 4B0082: RGB(75, 0, 130) Case 15794175: S = "Ivory" 'HEX FFFFF0: RGB(255, 255, 240) Case 9234160: S = "Khaki" 'HEX F0E68C: RGB(240, 230, 140) Case 16443110: S = "Lavender" 'HEX E6E6FA: RGB(230, 230, 250) Case 16118015: S = "Lavender Blush" 'HEX FFF0F5: RGB(255, 240, 245) Case 64636: S = "Lawn Green" 'HEX 7CFC00: RGB(124, 252, 0) Case 13499135: S = "Lemon Chiffon" 'HEX FFFACD: RGB(255, 250, 205) Case 15128749: S = "Light Blue" 'HEX ADD8E6: RGB(173, 216, 230) Case 8421616: S = "Light Coral" 'HEX F08080: RGB(240, 128, 128) Case 16777184: S = "Light Cyan" 'HEX E0FFFF: RGB(224, 255, 255) Case 13826810: S = "Light Golden Rod Yellow " 'HEX FAFAD2: RGB(250, 250, 210) Case 13882323: S = "Light Gray" 'HEX D3D3D3: RGB(211, 211, 211) Case 9498256: S = "Light Green" 'HEX 90EE90: RGB(144, 238, 144) Case 12695295: S = "Light Pink" 'HEX FFB6C1: RGB(255, 182, 193) Case 8036607: S = "Light Salmon" 'HEX FFA07A: RGB(255, 160, 122) Case 11186720: S = "Light Sea Green" 'HEX 20B2AA: RGB(32, 178, 170) Case 16436871: S = "Light Sky Blue" 'HEX 87CEFA: RGB(135, 206, 250) Case 10061943: S = "Light Slate Gray" 'HEX 778899: RGB(119, 136, 153) Case 14599344: S = "Light Steel Blue" 'HEX B0C4DE: RGB(176, 196, 222) Case 14745599: S = "Light Yellow" 'HEX FFFFE0: RGB(255, 255, 224) Case 65280: S = "Lime" 'HEX 00FF00: RGB(0, 255, 0) Case 3329330: S = "Lime Green" 'HEX 32CD32: RGB(50, 205, 50) Case 15134970: S = "Linen" 'HEX FAF0E6: RGB(250, 240, 230) Case 16711935: S = "Magenta" 'HEX FF00FF: RGB(255, 0, 255) Case 128: S = "Maroon" 'HEX 800000: RGB(128, 0, 0) Case 11193702: S = "Medium Aqua Marine" 'HEX 66CDAA: RGB(102, 205, 170) Case 13434880: S = "Medium Blue" 'HEX 0000CD: RGB(0, 0, 205) Case 13850042: S = "Medium Orchid" 'HEX BA55D3: RGB(186, 85, 211) Case 14381203: S = "Medium Purple" 'HEX 9370D8: RGB(147, 112, 219) Case 7451452: S = "Medium Sea Green" 'HEX 3CB371: RGB(60, 179, 113) Case 15624315: S = "Medium Slate Blue" 'HEX 7B68EE: RGB(123, 104, 238) Case 10156544: S = "Medium Spring Green" 'HEX 00FA9A: RGB(0, 250, 154) Case 13422920: S = "Medium Turquoise" 'HEX 48D1CC: RGB(72, 209, 204) Case 8721863: S = "Medium Violet Red" 'HEX C71585: RGB(199, 21, 133) Case 7346457: S = "Midnight Blue" 'HEX 191970: RGB(25, 25, 112) Case 16449525: S = "Mint Cream" 'HEX F5FFFA: RGB(245, 255, 250) Case 14804223: S = "Misty Rose" 'HEX FFE4E1: RGB(255, 228, 225) Case 11920639: S = "Moccasin" 'HEX FFE4B5: RGB(255, 228, 181) Case 11394815: S = "Navajo White" 'HEX FFDEAD: RGB(255, 222, 173) Case 8388608: S = "Navy" 'HEX 000080: RGB(0, 0, 128) Case 15136253: S = "Old Lace" 'HEX FDF5E6: RGB(253, 245, 230) Case 32896: S = "Olive" 'HEX 808000: RGB(128, 128, 0) Case 2330219: S = "Olive Drab" 'HEX 6B8E23: RGB(107, 142, 35) Case 42495: S = "Orange" 'HEX FFA500: RGB(255, 165, 0) Case 17919: S = "Orange Red" 'HEX FF4500: RGB(255, 69, 0) Case 14053594: S = "Orchid" 'HEX DA70D6: RGB(218, 112, 214) Case 11200750: S = "Pale GoldenRod" 'HEX EEE8AA: RGB(238, 232, 170) Case 10025880: S = "Pale Green" 'HEX 98FB98: RGB(152, 251, 152) Case 15658671: S = "Pale Turquoise" 'HEX AFEEEE: RGB(175, 238, 238) Case 9662683: S = "Pale Violet Red" 'HEX D87093: RGB(219, 112, 147) Case 14020607: S = "Papaya Whip" 'HEX FFEFD5: RGB(255, 239, 213) Case 12180223: S = "Peach Puff" 'HEX FFDAB9: RGB(255, 218, 185) Case 4163021: S = "Peru" 'HEX CD853F: RGB(205, 133, 63) Case 13353215: S = "Pink" 'HEX FFC0CB: RGB(255, 192, 203) Case 14524637: S = "Plum" 'HEX DDA0DD: RGB(221, 160, 221) Case 15130800: S = "Powder Blue" 'HEX B0E0E6: RGB(176, 224, 230) Case 8388736: S = "Purple" 'HEX 800080: RGB(128, 0, 128) Case 255: S = "Red" 'HEX FF0000: RGB(255, 0, 0) Case 9408444: S = "Rosy Brown" 'HEX BC8F8F: RGB(188, 143, 143) Case 14772545: S = "Royal Blue" 'HEX 4169E1: RGB(65, 105, 225) Case 1262987: S = "Saddle Brown" 'HEX 8B4513: RGB(139, 69, 19) Case 7504122: S = "Salmon" 'HEX FA8072: RGB(250, 128, 114) Case 6333684: S = "Sandy Brown" 'HEX F4A460: RGB(244, 164, 96) Case 5737262: S = "Sea Green" 'HEX 2E8B57: RGB(46, 139, 87) Case 15660543: S = "Sea Shell" 'HEX FFF5EE: RGB(255, 245, 238) Case 2970272: S = "Sienna" 'HEX A0522D: RGB(160, 82, 45) Case 12632256: S = "Silver" 'HEX C0C0C0: RGB(192, 192, 192) Case 15453831: S = "Sky Blue" 'HEX 87CEEB: RGB(135, 206, 235) Case 13458026: S = "Slate Blue" 'HEX 6A5ACD: RGB(106, 90, 205) Case 9470064: S = "Slate Gray" 'HEX 708090: RGB(112, 128, 144) Case 16448255: S = "Snow" 'HEX FFFAFA: RGB(255, 250, 250) Case 8388352: S = "Spring Green" 'HEX 00FF7F: RGB(0, 255, 127) Case 11829830: S = "Steel Blue" 'HEX 4682B4: RGB(70, 130, 180) Case 9221330: S = "Tan" 'HEX D2B48C: RGB(210, 180, 140) Case 8421376: S = "Teal" 'HEX 008080: RGB(0, 128, 128) Case 14204888: S = "Thistle" 'HEX D8BFD8: RGB(216, 191, 216) Case 4678655: S = "Tomato" 'HEX FF6347: RGB(255, 99, 71) Case 13688896: S = "Turquoise" 'HEX 40E0D0: RGB(64, 224, 208) Case 15631086: S = "Violet" 'HEX EE82EE: RGB(238, 130, 238) Case 11788021: S = "Wheat" 'HEX F5DEB3: RGB(245, 222, 179) Case 16777215: S = "White" 'HEX FFFFFF: RGB(255, 255, 255) Case 16119285: S = "White Smoke" 'HEX F5F5F5: RGB(245, 245, 245) Case 65535: S = "Yellow" 'HEX FFFF00: RGB(255, 255, 0) Case 3329434: S = "Yellow Green" 'HEX 9ACD32: RGB(154, 205, 50) Case Else: S = "Unknown Colour" End Select GetColourName = S End Function -mhd wrote: > > I'm now rolling my own font dialog and want to match the list of 16 colors used > by the color dropbox in the MS font common dialog. > > The color names in the MS version do not match the 16 QBCcolors so where can I > get the long rgb values of these colors? I sure would like to find a reference > (I Googled) but I am coming up short. > > -mike
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.basic.visual.misc
csiph-web