Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - System popupbar buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

System popupbar buttons

 Post Reply Post Reply
Author
Message
pascal View Drop Down
Groupie
Groupie


Joined: 07 February 2005
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote pascal Quote  Post ReplyReply Direct Link To This Post Topic: System popupbar buttons
    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
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: 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
Back to Top
pascal View Drop Down
Groupie
Groupie


Joined: 07 February 2005
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote pascal Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2007 at 7:59am
Thanks Oleg.
Pascal Verdier
Software Engineer Manager
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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

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: 14 February 2007 at 1:01am
Hi,
Check first note. It was about CXTPRibbonControlSystemPopupBarButton...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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

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: 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
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.045 seconds.