Print Page | Close Window

Group box flicker on resize

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6251
Printed Date: 22 June 2024 at 11:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Group box flicker on resize
Posted By: znakeeye
Subject: Group box flicker on resize
Date Posted: 28 January 2007 at 10:30am
I have a Vista-skin enabled form view with a number of controls. When the main window is resized, the view is also resized and all controls are resized according to the anchors defined by my calls to SetResize(...).
 
It works, but during resize the group boxes flicker. It has something to do with the transparency setting; when I remove it the flickering goes away. Please note that I have the "Show windows contents while dragging" option enabled.
 
Any ideas?
Thanks!



Replies:
Posted By: Oleg
Date Posted: 29 January 2007 at 1:03am
Hi,
 
use CXTResizeGroupBox  classes:
 
 
Add CXTResizeGroupBox m_groupColor;
 
and
 m_groupColor.SubclassDlgItem(IDC_GBOX_COLOR, this);


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


Posted By: znakeeye
Date Posted: 29 January 2007 at 1:53pm
DDX_Control(pDX, IDC_GBOX_COLOR, m_groupColor);
That's the same as the above, right?

It does not help. As long as transparency is enabled, it flickers on resize :(


Posted By: Oleg
Date Posted: 29 January 2007 at 2:40pm
Hi,
What do you mean by "transparency is enabled". How do you enable it?


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


Posted By: znakeeye
Date Posted: 29 January 2007 at 11:16pm
Via the resource editor: WS_EX_TRANSPARENT
As far as I know that style is needed for correctly painted group boxes when skinning is enabled.


Posted By: Oleg
Date Posted: 30 January 2007 at 2:25am
Hi,
No. You don't need this style.


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


Posted By: znakeeye
Date Posted: 30 January 2007 at 4:42pm
If I don't set the transparent style, the group box is painted in black. It is painted correctly if set, though it flickers when resizing the window.


Posted By: Oleg
Date Posted: 31 January 2007 at 1:15am
Hi,
 
I opened our Samples\PropertyGrid\GridSample sample that has Resize functionality and resized groub boxes. I added  XTPSkinManager()->LoadSkin("Styles\\Vista.cjstyles");
no flickers, no black boxes.


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



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