Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Dialog Bar color schame Collapse All
Subject Author Date
Ron Hashimshony Apr 28, 2006 - 8:38 AM

Hi,
I am using V 2.52 shareware (waiting for license to arrive...) and is very happy with it.

I am using the Studio2005 schema, added a dialog bar using CExtPanelControlBar, and all is well.
The problem is that the controls background color looks bad... the background color of the bar does not match the one of the controls in it (i have a slider and static boxes)
The more interesting thing is that when you drag the bar from left side to right side of the window, the back ground colors changes (become darker as i move the bar to the right)

How can this be fixed?

10x

Technical Support Apr 30, 2006 - 7:50 AM

There is a child dialog window inside a panel control bar in the FixedSizePanels sample. The dialog window has the background consistent both with the current location of the panel bar and with the currently used theme. First of all please check that you are using the CExtResizableDialog class instead of CDialog. Second, please check the properties of the dialog template resource: the WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles should be applied. Finally, subclass all the controls on your dialog with Prof-UIS classes: CExtLabel for all static controls, CExtSliderWnd for sliders, CExtButton/CExtCheckBox/CExtRadioButton for buttons, CExtGroupBox for group boxes, and CExtComboBox for combo boxes.

You can also implement a custom background which covers the dialog’s client area and the background of all controls. For instance, the TabbedBars sample uses custom colored backgrounds for dialog pages in the main view window that is the One Note tab page container. Please let us know the details about the background you need so we can provide you with a solution.

Ron Hashimshony May 1, 2006 - 11:20 AM

Thanks, that solved the problem (was missing the deviation of the slider from CExtSliderWnd) almost completely.

Only one concert is left - the background. I am using the VS2005 style, and i am happy with the defaults. In this style, the bars are drawn using a grey gradient (darker on the left side), what happens is that the control bars also follow that schema, but in a strange way - the more right they are, the more grey the bar is... also, the bars keep their light grey frame, no matter where the bar is located.

If you want, i can send you a capture depicting this phenomenon.

Technical Support May 1, 2006 - 12:21 PM

Would you send us a screenshot? This will clear what you mean.