![]() |
Where in XTP does it draw the ribbon tab text |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Topic: Where in XTP does it draw the ribbon tab textPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2009 at 10:57am |
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2009 at 11:15am |
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2009 at 2:04pm |
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 June 2009 at 4:53pm |
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 July 2009 at 8:07am |
|
Hi,
yes, it will fix it. Do you build statically ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |