views:

155

answers:

5

What are the recommended colors for an application's background, button faces, etc.?

In the past I've just chosen a color scheme but I'd like to be more compatible with the Windows Accessibility Options, etc.

I see that VB6 has System Colors like Application Workspace.

Edit: I'd like to find an explanation of all of those colors (like what's the difference between Application Workspace and Window Background?

A: 

It depends on the language and framework you use. .Net for example has an entire SystemColors class full of static properties like SystemColors.Control that are 'changed' to the corresponding system color in runtime.

I think most office applications conform to the system colors, while most graphics intensive applications (e.g. games) use their own color scheme.

Webleeuw
Yes, VB6 has something similar like the Application Workspace that I mentioned. What I'm looking for is an explanation of those colors. I'm using VB6
Clay Nichols
Ok, in that case I can't help you, sorry :).
Webleeuw
A: 

It is best if you try to use the colors of the current system (like the .NET SystemColors), that way if the user changes his settings (for example if he uses a high-contrast color scheme or some fancy black theme he likes) your application will adapt those colors and that way conforms to the users preferences/needs.

dbemerlin
+2  A: 

This PDF http://www.johnsmiley.com/cis18/Smiley009.pdf [ explanation of VB6 System Color values ]should help you. It lists all the system color constants and what they mean. For instance vbApplicationWorkspace is the "Background color of multipledocument interface (MDI) applications."

AUSteve
+4  A: 

In my opinion, you should leave the colors as they are if you are using standard controls; they'll get the right color according to che current color scheme by themselves. You need to use the color constants only if you have to draw your own UI elements; in that case, the meaning of those constants is explained briefly in their documentation.

Matteo Italia
+1. Nearly always true but there are some controls that default to non-standard colours so you have to be careful (e.g. some of the SS controls from `threed32.ocx`)
MarkJ
That's what I've done so far but the VB6 Forms are defaulting to a backgroundcolor of ButtonFace which of course makes the buttons hard to see. So then I tried to figure out what's a better System color, hence the need to know what they mean.
Clay Nichols
That default is correct and "by design": if you dig depper in the documentation, you'll get to the GetSysColor API (http://msdn.microsoft.com/en-us/library/ms724371%28VS.85%29.aspx) and to its constants (that are renamed in VB for the sake of consistency). There, you'll find that the constant COLOR_BTNFACE (=vbButtonFace) is descripted as "Face color for three-dimensional display elements and for *dialog box backgrounds*." So, if you want to conform to the standard Windows UI you are forced to use the same color for dialogs BG and for the face of 3D elements.
Matteo Italia
Window Background is for content. This is why controls like a Textbox default to this as the background color. To improve visibility in XP and later you can apply the CC 6.0 themeing to your UI elements.
Bob Riemersma
I believe Application Workspace is the background color for an MDI parent form.
Bob Riemersma
+1  A: 

If you're interested in the whole MS Windows UI/UX guidelines, they are available online here and for download here. Page 618 deals with how to "Use theme or system Colors"

Gordon Mackie JoanMiro
An alternative to trawling through the user experience guidelines is to go into control panel and look at the applet for changing the system colours. The names used there are similar to the VB6 constant names, and the preview shows you the meaning. Just change a few items to colours like magenta and you'll be able to tell which bit of the UI they represent.
MarkJ
Yeah, I tried that (and you can do the same by just applying the color in VB6 but I felt I should know more about it.
Clay Nichols