![]() |
CXTPToolBar Flicker |
Post Reply
|
| Author | |
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPToolBar FlickerPosted: 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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 July 2007 at 1:18am |
|
Hello,
try to create CComboBoxEx with WS_CLIPCHILDRED|WS_CLIPSIBLINGS style.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
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().
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |