Print Page | Close Window

Where in XTP does it draw the ribbon tab text

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=14624
Printed Date: 22 June 2025 at 5:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Where in XTP does it draw the ribbon tab text
Posted By: terrym
Subject: Where in XTP does it draw the ribbon tab text
Date Posted: 26 June 2009 at 5:34am
We have an application which is having issues with the Whte theme for ribbons, does anybody know where it draws the actual text for these tabs within the XTP library source code???  As we want to debug this to find out why


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

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



Replies:
Posted By: Oleg
Date Posted: 29 June 2009 at 7:12am
Hi,
See CXTPRibbonPaintManager::CRibbonAppearanceSet::DrawText method, pleae check if bComposite is TRUE when White theme is used.


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


Posted By: terrym
Date Posted: 29 June 2009 at 10:27am
Hi
 
Thanks, checking now.  Also in answer to your question we do NOT use skinframeworks
 
 


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

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


Posted By: terrym
Date Posted: 29 June 2009 at 10:57am
Originally posted by oleg oleg wrote:

Hi,
See CXTPRibbonPaintManager::CRibbonAppearanceSet::DrawText method, pleae check if bComposite is TRUE when White theme is used.
 
bComposite is FALSE for our applicaton but true for your sample???
 


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

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


Posted By: terrym
Date Posted: 29 June 2009 at 11:15am
Originally posted by oleg oleg wrote:

Hi,
See CXTPRibbonPaintManager::CRibbonAppearanceSet::DrawText method, pleae check if bComposite is TRUE when White theme is used.
 
However it goes into the IsCompositeRect and then IntersectRect it has two rectangles of:

 

Ribbon:

Top = 0, Bottom = 30, Left = -4 and Right = 1013

 

Tab:

Top = 33, Bottom = 53, Left = 302 and Right = 327

 

And this is reason it passes back FALSE for bIsComposite for white theme for us, but what could be causing this?

 

We are running Vista x64 with multiple monitors (1920 x 1600 resolution on each monitor)



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

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


Posted By: terrym
Date Posted: 29 June 2009 at 11:23am

Ah for some reason your sample is calling:

 

AFX_INLINE BOOL IsCompositeRect(CXTPCommandBar* pRibbonBar, const CRect& rc)

 

Which is found in the XTPRibbonPaintManager.cpp class however our application for some reason is calling:

 

AFX_INLINE BOOL IsCompositeRect(CXTPCommandBar* pRibbonBar, const CRect& rc)

 

from XTPRibbonTheme.cpp

 

Any ideas why this would happen lol



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

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


Posted By: terrym
Date Posted: 29 June 2009 at 12:34pm
IsCompositeRect in XTPRibbonPaintManager has some extra code which adds the tab height to the rectangle???  But IsCompositeRect which our application calls does not have this extra code???


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

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


Posted By: Oleg
Date Posted: 29 June 2009 at 1:59pm
weird. these marked as inline and have to work only inside this cpp :( Please rename IsCompositeRect to IsCompositeRect2 inside XTPRibbonPaintManager.cpp.

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


Posted By: terrym
Date Posted: 29 June 2009 at 2:03pm
Sure, but I did send via support ticket reply how I fixed.  Please confirm if this is a bad way of fixing???


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

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


Posted By: terrym
Date Posted: 29 June 2009 at 2:04pm
Originally posted by oleg oleg wrote:

weird. these marked as inline and have to work only inside this cpp :( Please rename IsCompositeRect to IsCompositeRect2 inside XTPRibbonPaintManager.cpp.
 
So change ALL occurances of IsCompositeRect inside XTPRibbonPaintManager.cpp to IsCompositeRect2
 


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

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


Posted By: terrym
Date Posted: 29 June 2009 at 4:53pm
Originally posted by oleg oleg wrote:

weird. these marked as inline and have to work only inside this cpp :( Please rename IsCompositeRect to IsCompositeRect2 inside XTPRibbonPaintManager.cpp.
 
Hi
 
Ok this fixed the issue???  Any ideas why this happens for some applications and not others :( and are you investigating further.
 


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

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


Posted By: Oleg
Date Posted: 01 July 2009 at 8:07am
Hi,
yes, it will fix it. Do you build statically ?


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


Posted By: terrym
Date Posted: 01 July 2009 at 9:26am
Hi Oleg
 
We sure do link Statically, was this the problem?
 
Also did you see my new ticket with a bug that we hope you can supply a patch urgently?
 


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

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



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