Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbonnar support
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbonnar support

 Post Reply Post Reply
Author
Message Reverse Sort Order
himanshu View Drop Down
Groupie
Groupie


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Topic: Ribbonnar support
    Posted: 11 January 2008 at 5:40am
is there any difference in setting themes by
CXTPPaintManager::SetTheme(xtpThemeRibbon); and
pCommandBars->SetTheme(xtpThemeRibbon);

as the second one is working perfectly all right for  me

himanshu
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 11 January 2008 at 1:28am
Call
 
pCommandBars->SetTheme(xtpThemeRibbon);
before you add ribbon.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
himanshu View Drop Down
Groupie
Groupie


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2008 at 12:45am
hi
 
after adding the below line in rc2 i am facing the same crash at the same line
 
 
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 10 January 2008 at 11:14am
Think you didn't add ribbon resources.
Add
#include "Styles\Office2007Blue\Office2007Blue.rc"
in res\xxx.rc2 file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
himanshu View Drop Down
Groupie
Groupie


Joined: 04 January 2008
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote himanshu Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2008 at 6:43am
Hi
 
I want ribbonbar support in my application
I have added following lines of code from Ribbonbar Sample
 
CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars->Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));
if (!pRibbonBar)
{return FALSE;}
pRibbonBar->EnableDocking(0);
 
When i try to add a tab into it it throws an exception
at this line
CXTPRibbonTab* pTabHome = pRibbonBar->AddTab(Id);
 
Could u suggest any solution
 
Thanks in advance
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.047 seconds.