Windows Border Color Formula 
Author Message
 Windows Border Color Formula

Does anyone know the formula microsoft uses to calculate the RGB values for
the light and dark borders that surround windows boxes and other standard
windows objects?  Like when the user selects the background color for
3d-objects in the control panel display properties, it automatically
calculates related light and dark colors based on the background color and
uses that for the borders.  I'd like to create similar looking windows boxes
in DHTML using javascript, but I'd like to know the formula to come up with
these border color values.

Any help is appreciated.  Thanks.



Mon, 09 Dec 2002 03:00:00 GMT  
 Windows Border Color Formula



Quote:
> Does anyone know the formula microsoft uses to calculate the RGB values
for
> the light and dark borders that surround windows boxes and other standard
> windows objects?  Like when the user selects the background color for
> 3d-objects in the control panel display properties, it automatically
> calculates related light and dark colors based on the background color and
> uses that for the borders.  I'd like to create similar looking windows
boxes
> in DHTML using javascript, but I'd like to know the formula to come up
with
> these border color values.

> Any help is appreciated.  Thanks.

Why not taking this value right from the registry? (or easier, using
GetSysColor(...)) ?

--
Tenebrax
http://graff.ctw.net



Mon, 09 Dec 2002 03:00:00 GMT  
 Windows Border Color Formula
Check msdn.microsoft.com for system colors. I think there are predefined
names which you can use. If you don't find the reference check
webfx.eae.net which are masters of building windows like guis with dhtml

Quote:

> Does anyone know the formula microsoft uses to calculate the RGB values for
> the light and dark borders that surround windows boxes and other standard
> windows objects?  Like when the user selects the background color for
> 3d-objects in the control panel display properties, it automatically
> calculates related light and dark colors based on the background color and
> uses that for the borders.  I'd like to create similar looking windows boxes
> in DHTML using javascript, but I'd like to know the formula to come up with
> these border color values.

> Any help is appreciated.  Thanks.

--

        Martin Honnen
        http://javascript.faqts.com/
        http://home.t-online.de/home/martin.honnen/jsgoddies.html



Mon, 09 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to change my child window's border color and title bar color

2. - Windows 95 system colours formula?

3. Border Color

4. TextBox Border Color

5. Color of the textBox border

6. looking for interior floodfill routine... without border color

7. How to change a dialog box border color???

8. toolbar drag border color

9. dialog border color

10. CRichEditCtrl border color

11. How to change dialog box border color?

12. Changing window Border Color?

 

 
Powered by phpBB® Forum Software