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 » Disappearing dialog resources Collapse All
Subject Author Date
Matthew Gates Jan 10, 2005 - 7:42 PM

I replicated this problem in my evaluation app of shareware ver2.27 and in SDIDOCVIEW.

In SDIDOCVIEW I added a static text box with the transparent property set to TRUE in the IDD_DIALOG_FOR_RESIZABLE_BAR dialog resouce. The static text box is just a generic resource not associated with any variable in the app.

When the Office2003 or VS2005 themes are in use, there is a major amount of flickering of my static text box when the dialog is resized. Once resizing is complete, the static text box disappears until you mouse click outside the dialog area. Then, the static text re-appears. This does NOT happen with the other UI themes (although the filcker is always present for my static text box).

If the static text box has its transparent property set to FALSE, there is no flicker. However, the text gets distorted if the dialog is resized to hide the text, and then is resized again to reveal it. FYI: This happens with other dialog resources I added, when using the Office2003 and VS2005 themes.

Any ideas? I am sure this is a common newbie problem for this version. TIA.

Win XP Pro, VS7.0

Technical Support Jan 11, 2005 - 4:49 AM

To avoid the flicker effect, just set the Clip Children option on for all your child dialogs.

Please note that the WS_CLIPCHILDREN style is not compatible with some controls like the static text because they use the background of their parent window "AS IS". Instead, please use the corresponding Prof-UIS classes: CExtCheckBox (a check box), CExtRadioButton(a radio button), CExtGroupBox(a group box), and CExtLabel(a static text control). Unlike those available in MFC, these classes are fully consistent with the Office 2003/VS 2005 theme and include some additional features. It is not necessary to apply the transparent style for these controls.