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 » Flicker Problem Collapse All
Subject Author Date
ahmad hassan Apr 28, 2004 - 6:55 AM

Hello,


I was working with the free version of this library and i found it to be really freeing me of gui complexities.


However i had one problem I was a little uncomfortable with. In the sample FixedSize Panels there is this problem that when you drag resizeable panel 1 or 2(in fixed mode) to left of right there is this problem of leaving trails especially when shrinking.


I want the redrawing to be smooth without  trails. It does show the contents but with trails which is not a good behaviour(flickering). I would like to know how to take care of that.


Thank You.

Technical Support Apr 29, 2004 - 3:12 AM

Dear Ahmad,

Thank you for the interesting question. First of all, please note that FixedSizePanels is an application which extremely overloads Windows OS. If you take a look at Microsoft Office applications, you note that they contain only one or two resizable panel bars (we mean the control bar which has at least one child window with quite complex layout like in the Internet Explorer’s WebBrowser2 COM control). You can minimize the "flicker" effect of the panel bar when resizing (shrinking) it by specifying the WS_CLIPSIBLINGS|WS_CLIPCHILDREN styles when calling the CExtControlBar::Create method for all the control bars in the CMainFrame::OnCreate method of the FixedSizePanels sample application.

ahmad hassan Apr 30, 2004 - 1:17 AM

hello,


Ok fine there might be some problem with com child control fine but that flickering and leaving trail thing also happens for any sample you work on.


Try FullScreenSatate sample for that matter with _IsShowContentWhenDragging returning true.


I don’t know why you get this flicker or leaving trail thing.


Also WS_CLIPSIBLINGS|WS_CLIPCHILDREN  are set for CExtControlBar already.


I actually have the same CExtcontrolbar with a child window of my own and i want to be able to draw flickerless when resizing all the painting and drawing in child is done through CExtMemoryDC.

Technical Support May 5, 2004 - 7:37 AM

Dear Ahmad,

We have improved several methods relating to the control bar resizing. We sent you an updated version of the FixedSizePanels sample by e-mail and interested in your opinion.