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)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
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)
|
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)
|
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
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
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 |