Hi,
I have a bunch of UltraGroupBox and UltraExpandableGroupBox controls in my application. I have their ViewStyle = VisualStudio2005.
My App runs on windows XP. I have changed the background colors of the groupboxs' headers and content area to shades of blue, with a gradient.
When I install and run my application on computers that have their appearance style set to Windows Classic style, my specified colors do not show on the group boxes and they just show in a solid gray (no gradient).
The appearance property changed on the computer is gotten to by:
Right-clicking the desktop background and choosing Properties. From the Display Properties dialog, choose the Appearance tab. In the first combo box labeled Windows and buttons, choose Windows Classic style.
It seems like the background colors must be getting inheritted from this style change. Does anyone know how to stop the control from inheritting the colors in the style?
Thanks,
~Karen
aha!
Thanks very much. It had never occurred to me that the system colors tab was based on the current system colors. I have a feeling I have a lot of controls to change the colors on :-)
Thanks for the help!
Karen,
The reason that this is happening is that you're setting the GroupBox's colors to System colors (i.e. "Menu" or "InactiveCaptionText"). When you change to the classic theme, these colors are also changed, so the GroupBox will pick them up. The ExpandableGroupBox isn't having these issues because you are using constant-value colors instead of System colors.
-Matt
Matt,
Nope, I'm not doing anything with AppStyling. Haven't gotten around to trying that overall app styling stuff out yet, but it sounds neat.
I've attached a very simple sample. It's got a groupbox and an expandable group box. The expandable group box does not appear to have the same problem that the regular group box does, but I thought i'd seen it have the appearance problem too (maybe not though).
Thanks for the help!~Karen
By loading I meant an ISL file or something AppStyling related. A sample would help, it's hard to tell what's going on since I couldn't reproduce the issue in my test.
Thanks for the quick reply! I am running with version 8.1, build 2013. I have been seeing this problem for quite some time (since version 7), but just now got to investigating it. I don't understand what you mean by loading anything else with the group box. I will post a sample on Monday so you can see exactly what I'm doing.
Thanks,~Karen