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 » Using CExtResizablePropertySheet to dynamically switch dialogs Collapse All
Subject Author Date
Kirby Zhang Jul 14, 2005 - 12:38 AM

I’m using property sheets inside a CExtPanelControlBar to allow me to switch dialogs as the user selects objects in another window. Therefore I’ve turned off tabs with GetTabControl()->DeleteAllItems(). This looks dangerous but it seems to work.

The problem is the property sheet class is drawing an ugly resizing frame around itself inside the control bar. I just want to turn this off. The tab control also leaves a color discontinuity. How can I get rid of the resizing frame and tab control completely?

Technical Support Jul 15, 2005 - 4:23 AM

Try to apply the TCS_FLATBUTTONS style which means that the selected tabs appear as being indented into the background while other tabs appear as being on the same plane as the background. This style only affects tab controls with the TCS_BUTTONS style.

Kirby Zhang Jul 14, 2005 - 12:49 PM

There is a long flicker when I use CExtGroupBox inside CExtResizablePropertyPage, which is in turn inside CExtPanelControlBar. If I use the CExtWFF template, the groupbox background is no longer drawn correctly (and Ithink the flicker is still there).

Technical Support Jul 15, 2005 - 4:32 AM

We guess you are using a dialog window and a group box in the control bar. It is strongly recommended to turn on the WS_CLIPCHILDREN style for your dialog (the ClipChildren property in the dialog template resource). This will let you avoid fully any flicker effects especially when you deal with the controls with "holes" inside like a group box control or a tab control. After that you may need to modify the tab order for the dialog controls. This is necessary because otherwise the group may cover up other controls behind it.