Toolbars on a pane |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
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 :
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |