> We use system colors and dialog control for pretty much all our GUIs,
> but we've run into a problem when using a system background color on
> text labels on tab controls: There seems to be no system color that
> will match the theme color of a dialog tab control...
> 
> We use the text labels as names on dialog frames so we cannot use a
> transparent label, it must have a background color that matches the
> tab color. With the XP theme that color is a shade of white...so the
> "Panel and object" color does not match (it's a light shade of grey).
> With the classic theme the tab has the panel and object color
> allright, but the XP theme is different.
> 
> Is there a system color we've overlooked, or?

Or perhaps system colors that aren't in the color picker?  In fact there 
are lots of system colors.  MS and Apple seemed to go wild with 
something like fifty colors on Apple's and 18 or so on MS's.  Since MS 
went away from their theme for each holiday scheme, very few are used, 
so the color picker shows six of them I think.

If you feel up to the experiment, build an array of numeric U32's with 
01 in the upper byte and 000000 through 000040 or so in the lower three 
bytes.  In otherwords, start with the first value, then loop for about 
50 or 60 iterations adding one each time.  Then wire this to an array of 
color numerics.  The tricky part will be moving this on top of the tab 
control and see which matches.  It may help to color the array and 
border of the color numeric transparent.  Hopefully the XP color is 
there.  I can't help more since I don't have a PC to do the experiment on.

Greg McKaskle


Reply via email to