![]() |
RibbonBar System Button |
Post Reply
|
| Author | |
davidsimmonds
Newbie
Joined: 16 December 2005 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: RibbonBar System ButtonPosted: 09 January 2007 at 1:34pm |
|
What exactly is needed to be authored for bitmaps and icons for the System Button fora RibbonBar? I see the example, but it uses a PNG file. I assume a bitmap can be used instead? What are the requirements?uploads/20070109_133315_untitled.zip
The zip file contains a screen shot of what my System Button looks like. I have obviously done something incorrect.
|
|
![]() |
|
davidsimmonds
Newbie
Joined: 16 December 2005 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2007 at 5:28pm |
|
I have used the following code to create the RibbonBar:
CMyRibbonBar* pRibbonBar = (CMyRibbonBar*)pCommandBars->Add(_T( "The Ribbon"), xtpBarTop, RUNTIME_CLASS(CMyRibbonBar));if (!pRibbonBar)
return FALSE;
pRibbonBar->EnableDocking(0); CMenu mnuMain; mnuMain.LoadMenu(IDR_MAINFRAME_EX); CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar->AddSystemButton(ID_MENU_FILE); pControlFile->SetCommandBar(mnuMain.GetSubMenu(0)); pControlFile->SetIconId(IDB_MAINFRAME); UINT uCommand = {IDB_MAINFRAME}; pCommandBars->GetImageManager()->SetIcons(IDB_MAINFRAME, &uCommand, 1, xtpImageNormal); pCommandBars->GetImageManager()->SetIcons(IDB_MAINFRAME, &uCommand, 1, xtpImageHot); pCommandBars->GetImageManager()->SetIcons(IDB_MAINFRAME, &uCommand, 1, xtpImagePressed); pRibbonBar->GetQuickAccessControls()->Add(xtpControlButton, ID_FILE_RUNINBACKGROUND); pRibbonBar->GetQuickAccessControls()->Add(xtpControlButton, ID_EDIT_PREFERENCES); pRibbonBar->GetQuickAccessControls()->CreateOriginalControls(); pRibbonBar->SetCloseable(FALSE); pRibbonBar->EnableFrameTheme(); uploads/20070109_172405_mainframe.zip This is the image that I am using.Also, the images in the QuickAccess are too small. They are 16x16 bitmaps, but they dont appear correct. Here is a screen shot:
What do I need to do to fix this?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 January 2007 at 1:28am |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |