Print Page | Close Window

Toolbars on a pane

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=17300
Printed Date: 28 September 2024 at 10:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbars on a pane
Posted By: ddlittle
Subject: Toolbars on a pane
Date Posted: 22 September 2010 at 8:29pm
I have a toolbar on a pane, and i have all the icons in a separate DLL.  I load all the icons and set the toolbars using :
 

CXTPImageManagerIconHandle hIcon;

hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds[x].icon),sz32, TRUE);

XTPImageManager()->SetIcon(hIcon,iconIds[x].cmd);

hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds[x].icon),sz16, TRUE);

XTPImageManager()->SetIcon(hIcon,iconIds[x].cmd);

I get my custom icons on every toolbar, but the toolbars inside panes don't use the custom icons unless I also set the button style in OnCreateControl to xtpButtonIconAndCaptionBelow, and using that style seems to force the buttons to 32x32.  The text really isn't necessary, but if I use xtpButtonIcon as the style, I get 16x16, but with the default button tops.  Any ideas how to fix this up?

Thanks!
- David



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