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 Tech Support » CExtPageContainerWnd Issues... Collapse All
Subject Author Date
Emil Pop May 5, 2004 - 5:33 AM

Hi,


The context
I am working on an MDI application based on Prof-UIS. This app contains a CExtPageContainerWnd holding several pages. Each page incorporates a resizable dialog box inside of which I have several controls (icons, slide bars, static texts).


The issues:


1. Whenever I swap between any two child views of my MDI app., the controls in the page container get refreshed at least twice, generating an annoying flickering. The same effect is somehow visible (especially on slower machines - 1GHz) in the examples coming with PROF-UIS (see PageContainer project, the Dialog tab: keep checking/unchecking rapidly "show tooltips on caption"- and you’ll notice the flickering too)


2. One of the controls in the page container is a static text I change from time to time. While everything works OK on 2K and XP look-and-feel, on 2003 look-and-feel, the older text remains visible under the new one. Eventually, the whole text gets blacked-out by overlapping. I am not sure whether this is related to the page container as to any dialog box containing static texts.


Thanks a lot,


Emil

Technical Support May 6, 2004 - 6:30 AM

Dear Emil,

We confirm this bug but so far we haven’t found a good ready-to-use solution. Please give us a few days time to fix it. We will notify you via e-mail.

Technical Support May 15, 2004 - 11:12 AM

Dear Emil,

The flicker bug in the resizable dialog placed onto the page container control can be fixed only in the dialog code locally. First of all, you should use child dialogs with the "Clip Children" option set on. The WS_CLIPCHILDREN style is not compatible with several controls like static text and check box because these controls use background of their parent window "as is". You should use CExtLabel and CExtCheckBox classes to subclass these controls in the dialog. We have updated the PageContainer sample application and it no longer produces flickering. We sent you the updated code by e-mail.

Emil Pop May 27, 2004 - 8:31 AM

Thanks,


Everything works OK now in the page container:


- the pages do not flicker anymore


- deriving from CExtLabel and CExtCheckBox, combined with Update window, solves the background problem and the overwriting issue, respectively.


It looks like I need to use the 225 version, isn’t that so?


Emil

Technical Support May 28, 2004 - 7:00 AM

Dear Emil

You can definitely use it. It’s a complete working version.