Print Page | Close Window

Ribbon system menu button icon size

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11346
Printed Date: 07 October 2024 at 6:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon system menu button icon size
Posted By: apierini
Subject: Ribbon system menu button icon size
Date Posted: 08 July 2008 at 12:22pm
Hi to all,

I have CodeJock Suite Pro 2008 and a problem with the icon size of the buttons on the system menu: in fact even if the images are 32x32 they are always scaled to 16x16.
For example with the following code:

m_SystemButton = m_RibbonBar.AddSystemButton();
CommandBars.Icons.LoadBitmap("C:\\...\\Home 3 32 n p.png", new object[] { 999 }, XtremeCommandBars.XTPImageState.xtpImageNormal);
XtremeCommandBars.CommandBarControl control = m_SystemButton.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, 999, "test", false, false);
control.DescriptionText = "prova prova";
control.Style = XtremeCommandBars.XTPButtonStyle.xtpButtonCaptionAndDescription;

I get this result:



If I add the line:

control.SetIconSize(32, 32);

I get this result:



which is wrong because the icon and text overlaps.
The image is 32x32, the code works fine if I add the button on a ribbon group ... what am I missing? I would like the same menu with big icons as in Word 2007 ...

Thanks in advance
Andrea Pierini



Replies:
Posted By: Oleg
Date Posted: 08 July 2008 at 12:38pm

Hi,

Add
 
m_SystemButton.CommandBar.SetIconSize(32, 32);


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


Posted By: apierini
Date Posted: 09 July 2008 at 11:51am
Thanks, it works ...

Andrea


Posted By: ChrisPaulson
Date Posted: 16 March 2009 at 10:46am
Use SetPopupIconSize( 32, 32 )






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