![]() |
System popupbar buttons |
Post Reply
|
| Author | |
pascal
Groupie
Joined: 07 February 2005 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Topic: System popupbar buttonsPosted: 13 February 2007 at 4:36am |
|
Hi,
We are using the ribbon interface. The icon size for the system menu is set to 32X32 to look like the system menu of Office 2007. How can we set the size to 16x16 for the icons of the 'option' and 'exit' buttons (the buttons at the bottom of the sys. menu)? These two buttons are CXTPRibbonControlSystemPopupBarButton. N.B: We are using as basis for our implementation youtr RibbonSample application. best regards |
|
|
Pascal Verdier
Software Engineer Manager |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 February 2007 at 7:36am |
|
Hi, Please download 10.4.2. we added code to automatically use 16*16 icons for these buttons.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
pascal
Groupie
Joined: 07 February 2005 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 February 2007 at 7:59am |
|
Thanks Oleg.
|
|
|
Pascal Verdier
Software Engineer Manager |
|
![]() |
|
Fredrik
Senior Member
Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 February 2007 at 2:23pm |
|
Hi Oleg,
This doesn't seem to work for me: I have version 10.4.2 and a icon with 16x16, 32x32 and 48x48 images but I always get the 32x32 image as the system menu button and I want the 16x16 version of it. I have the following code: anything wrong with it? CXTPControlPopup* pControlFile = (CXTPControlPopup*)mpRibbonBar->AddSystemButton(IDR_MAINFRAME); pControlFile->SetCommandBar(menu.GetSubMenu(0)); UINT uCommand = {IDR_MAINFRAME}; pCommandBars->GetImageManager()->SetIcons(IDR_MAINFRAME, &uCommand, 1, CSize(16, 16)); Thanks, Fredrik |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 February 2007 at 1:01am |
|
Hi,
Check first note. It was about CXTPRibbonControlSystemPopupBarButton...
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Fredrik
Senior Member
Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 February 2007 at 11:24am |
|
ah... it seems like I cannot read...
anyway, I still have the same question - can I add a 16x16 icon using AddSystemButton? Or perhaps a better question: how to I change the system menu to my own menu? Thanks, Fredrik |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 February 2007 at 1:16am |
|
Hi,
Something like this:
CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(pCommandBars);
pControlFile->SetCommandBar(pPopupBar );
...
pPopupBar->InternalRelease();
|
|
|
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 |