![]() |
Creating a RibbonBar |
Post Reply
|
| Author | |
baerten
Newbie
Joined: 28 September 2006 Location: Germany Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Topic: Creating a RibbonBarPosted: 28 September 2006 at 4:52am |
|
Hi,
i like to create a RibbonBar like in the "Ribbon MDI Sample" So i create a new Project in VS2003, choose ToolkitPro Project, MDI layout, Office2003 Style, ... if i begin to applicate the sample code on my project, there is directly an error on this line : // Get a pointer to the command bars object. CXTPCommandBars* pCommandBars = GetCommandBars(); if(pCommandBars == NULL) { TRACE0("Failed to create command bars object.\n"); return -1; // fail to create } pCommandBars->SetTheme(xtpThemeRibbon); Which configuration must i set to create a RibbonBar? Is there a step-by-step Tutorial to add a RibbonBar? Thanks ! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2006 at 8:56am |
|
Hi,
You need add bitmaps of Ribbon to your exe.
If you use 10.3.1 just add
#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc"
in your res\app.rc2 file.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
baerten
Newbie
Joined: 28 September 2006 Location: Germany Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2006 at 10:18am |
|
Thanks for the help
Now it works fine ![]() |
|
![]() |
|
baerten
Newbie
Joined: 28 September 2006 Location: Germany Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2006 at 10:56am |
![]() Where i can add these large icons to the RibbonBar? I inserted the 4 .png files to my "res" directory. So, how i can create my own icons and insert them into the Bar Big thanks |
|
![]() |
|
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 |