Print Page | Close Window

Vista and ribbon drawing bug

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=9779
Printed Date: 27 September 2024 at 9:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Vista and ribbon drawing bug
Posted By: adrien
Subject: Vista and ribbon drawing bug
Date Posted: 03 March 2008 at 6:24pm
If you have a ribbon on vista, there's a redraw bug.
 
Whenever you select another app (so the main frame is deactivated), it draws a line through the icon... e.g the icon isn't redrawn over the frame properly.
 
Also happens if you open a dialog in the app.. basically whenever the frame window loses focus.
 



Replies:
Posted By: terrym
Date Posted: 04 March 2008 at 8:27am
Which version of XTP are you using???


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: adrien
Date Posted: 05 March 2008 at 11:10pm
latest - 11.2.2


Posted By: terrym
Date Posted: 06 March 2008 at 4:25am
Strange as fine for our app, http://www.my-software.co.uk/temp/an-setup.exe - http://www.my-software.co.uk/temp/an-setup.exe (if you could try this one to see if same happens)
 
Cheers
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 06 March 2008 at 8:13am
HI,
 
Do you you also SkinFramework ? if so, try temporary comment it.


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


Posted By: adrien
Date Posted: 12 March 2008 at 6:47am
Hi
 
No skin framework included.
 
I'll try that download and see if it helps.


Posted By: adrien
Date Posted: 13 March 2008 at 6:14am
That example didn't have the problem.  But we aren't doing anything special in our code.
 
Also, we noticed if you select "show below the ribbon", then the line moves down about 8 px.
 
We don't have any tabs in the ribbon.....


Posted By: adrien
Date Posted: 17 March 2008 at 11:53pm
Found the answer to this
 
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 if( !CXTPFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 cs.lpszClass = _T("XTPMainFrame");
 CXTPDrawHelpers::RegisterWndClass(AfxGetInstanceHandle(), cs.lpszClass,
  CS_DBLCLKS, AfxGetApp()->LoadIcon(IDR_MAINFRAME));
 cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
 return TRUE;
}
 
if you don't remove WS_EX_CLIENTEDGE, there is this bug


-------------
http://www.wingate.com - http://www.wingate.com


Posted By: Oleg
Date Posted: 18 March 2008 at 3:51am
Thanks.

-------------
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