Print Page | Close Window

System popupbar buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6396
Printed Date: 12 November 2025 at 11:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: System popupbar buttons
Posted By: pascal
Subject: System popupbar buttons
Date Posted: 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



Replies:
Posted By: Oleg
Date 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


Posted By: pascal
Date Posted: 13 February 2007 at 7:59am
Thanks Oleg.

-------------
Pascal Verdier
Software Engineer Manager


Posted By: Fredrik
Date 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



Posted By: Oleg
Date Posted: 14 February 2007 at 1:01am
Hi,
Check first note. It was about CXTPRibbonControlSystemPopupBarButton...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Fredrik
Date 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



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net