Group box flicker on resize |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
use CXTResizeGroupBox classes:
Add CXTResizeGroupBox m_groupColor;
and
m_groupColor.SubclassDlgItem(IDC_GBOX_COLOR, this);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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 :( |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
What do you mean by "transparency is enabled". How do you enable it?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
No. You don't need this style.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |