Queation:
How do I set C++ Builder Forms and Components to Web Safe colors?
Answer:The surest and safest way to set web safe colors for Builder forms and components is by using HTML color codes in the color property of the form or component. Also, be aware of three things: 1. Some components do not have a color property that can be set through the object inspector. One must use the Windows API directly, and doing so is not covered here. 2. Instead of using the standard RGB (Red, Green, Blue) color scheme, you must use BGR. 3. You must also procede the HTML code with 0x00 (zero-ex-zero-zero). Examples: Standard HTML code for red: FF0000 C++ Builder color property: 0x00 + 0000FF = 0x000000FF Standard HTML code for red: 00FF00 C++ Builder color property: 0x00 + 00FF00 = 0x0000FF00 Standard HTML code for red: 0000FF C++ Builder color property: 0x00 + FF0000 = 0x00FF0000
Last Modified: 22-NOV-00