Print Page | Close Window

CXTPToolBar Flicker

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7528
Printed Date: 03 March 2025 at 12:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar Flicker
Posted By: Kenneth
Subject: CXTPToolBar Flicker
Date Posted: 04 July 2007 at 2:56pm
Whenever you add an external control(s) to a toolbar such as in the ActionsSamples and controls such as CComboBoxEx using the CXTPCustonControl, all the controls flicker when you size the main window.  This can be seen in the ActionsSample and Common Controls example.
 
Is there anything one can do to elimate the flicker?



Replies:
Posted By: Oleg
Date Posted: 05 July 2007 at 1:18am
Hello,
try to create CComboBoxEx  with WS_CLIPCHILDRED|WS_CLIPSIBLINGS style.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Kenneth
Date Posted: 05 July 2007 at 11:21am
Oleg
 
Thanks, that works for the CComboBoxEx!
 
I have one toolbar created in the same manner as the ActionsSample (CDialogActions) that contains 32 CXTPButtons arranged in 4 rows of 8 buttons within the CDialog.  All of these buttons flicker when the frame is resized.
 
In our production program, this control is created using a standard Microsoft CDialogBar control where the 32 buttons are contained within the CDialogBar itself.  There is no flicker in this configuration.
 
Any idea what is causing the flicker?  You can also see this flicker in the ActionsSample (CDialogActions), although not as bad.


Posted By: Kenneth
Date Posted: 05 July 2007 at 2:46pm
Oleg
 
I found the solution.  The 32 CXTPButtons are positioned/sized when the frame is sized with some special resize code.  All we had to do is place
ModifyStyle(0,WS_CLIPCHILDREN) in the CDialog OnInitDialog().



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net