Print Page | Close Window

How to add large icons for the dynamical toolbar

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=12531
Printed Date: 20 July 2025 at 10:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add large icons for the dynamical toolbar
Posted By: Howard Farseer
Subject: How to add large icons for the dynamical toolbar
Date Posted: 26 October 2008 at 8:20am
I've create a toolbar that is created dynamically with CXTPToolbar::GetControls()->Add(..)

I set the icon of its' buttons with pControl->SetIconId(nIndex). nIndex is the one I had added to the imaglist of XTPImageManager.
The question is: When the toolbar is shown as small icon the toolbar works fine but the icons disappears when the toolbar is shown as large icons.
How can I add large icons for the toolbar or let the toolbar to resize the small icons for use of large icons?



Replies:
Posted By: Oleg
Date Posted: 27 October 2008 at 3:27am
Hi,
 
seems you have some additional code... have to resize it automatically.
Try don't call SetIconId but set Icons to ImageMaanger with id of buttons.


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


Posted By: Howard Farseer
Date Posted: 27 October 2008 at 11:17am
Hi,
Thank you. I'll have a try.



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