Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Where in XTP does it draw the ribbon tab text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Where in XTP does it draw the ribbon tab text

 Post Reply Post Reply
Author
Message
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: Where in XTP does it draw the ribbon tab text
    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
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 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
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 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
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: 01 July 2009 at 8:07am
Hi,
yes, it will fix it. Do you build statically ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.