Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Group box flicker on resize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Group box flicker on resize

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Group box flicker on resize
    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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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 :(
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2007 at 2:25am
Hi,
No. You don't need this style.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.