Ribbon frame error in Windows 7 |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 26 January 2010 at 5:04pm |
Windows 7 (64-bit, Aero) Ultimate. XTP 13.2.1. Just ran my ribbon application for the first time, and noticed a GUI glitch.
When I show my about dialog this strange blue line becomes visible on the main frame. It will stay there until I resize the window:
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
No news regarding this? Showing a modal dialog in Windows 7 Aero always produces this artifact...
Surely, some repaint-message is needed somewhere in your code.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
We previously had issues with the ribbon not updating correctly (underlying windows menu bar would bleed thru). I had to strategically place this code:
pMainFrame->RecalcLayout(); JCXTPRibbonBar* pRibbon = pMainFrame->GetRibbonBar(); if( pRibbon ){ pRibbon->Redraw(0,FALSE); }
Can't tell from your image if you are using a ribbon so you might just have to call RecalcLayout. The pain is determining just when/where to make the extra call.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
This is indeed a ribbon application. I cannot reproduce this problem with the Ribbon Sample :(
It seems an empty rectangle is drawn immediately when the about dialog goes modal. The rectangle is drawn on the center of the file button and all the way to the right side of the main window. The glitch goes away after a resize. This only happens with Aero enabled...
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Smucker
Senior Member Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
|
I don't know if this is the problem, or part of it, but Aero does not like applications that draw directly on the desktop DC.
|
|
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)
Platform: Windows 200x/XP/Vista/Win7 (32/64 bit) Language: Visual C++ 9.0 (Studio 2008) |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Hmm, don't see this problem in the Ribbon sample. I think I have to contact support on this one. It could have something to do with the docking pane manager...
Anyway, thanks for your help.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Oleg, please check out support ticket on this one!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |