![]() |
Using multiple icon sizes |
Post Reply
|
| Author | |
sandeepa
Groupie
Joined: 10 June 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Using multiple icon sizesPosted: 02 December 2006 at 12:24pm |
|
Hello,
We'd like to use multiple versions of our icons (hinted at different sizes to look good at that size). 1. For instance, we'd like to use the 24x24 resources for toolbar icons, the 16x16 resources for the menu item buttons, 32x32 for the large buttons option. How can this be achieved? 2. In addition, we would like to use 24x24 icons for tear-off menus (after it is torn off), so that it looks consistent with our toolbars. How can we do this? 3. Is it possible to use 24x24 icons in the Menu items? If so, how can this be specified? -S |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 December 2006 at 1:48am |
|
Hi,
pCommandBars->GetCommandBarsOptions()->szIcons = ...
pCommandBars->GetCommandBarsOptions()->szLargeIcons= ...
pCommandBars->GetCommandBarsOptions()->szPopupIcons= ... |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
sandeepa
Groupie
Joined: 10 June 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 December 2006 at 10:24am |
|
This answers part of my question. The other problem that I have is that our toolbar icons (24x24) look fine in our toolbar but look like crap when they are drawn in the menu (with fuzzies etc). Looks like the 24x24 resource is being badly scaled to 16x16 for the menu bar items.
Is there a method to specify a separate 16x16 resource for icons in the menus? -S |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 December 2006 at 10:54am |
|
yes. just add icons to imagemanager:
pCommandBars->GetImageManager()->SetIcons(...);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
sandeepa
Groupie
Joined: 10 June 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 December 2006 at 11:52am |
|
Oleg,
Actually, re-reading your e-mail. My initial question is not answered. What I'd like to do is to use multiple icons sets, each set optimized for its size. ie, I have an iconset at 48x48 icons for large toolbar. 24x24 for regular toolbar 16x16 for menu items. I do not want to depend upon "Scaling these icons" as it looses its clarity (slightly, but we are nigglers for details...) Rather than setting the size as in pCommandBars->GetCommandBarsOptions()->szIcons = ... pCommandBars->GetCommandBarsOptions()->szLargeIcons= ... pCommandBars->GetCommandBarsOptions()->szPopupIcons= ... I want to specify separate bitmap resources for Icons, LargeIcons, PopupIcons and Menubar Icons. How do I achieve this? -Sandeep |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 December 2006 at 1:00pm |
|
And seems you didn't try suggested
pCommandBars->GetImageManager()->SetIcons...
try it. it will help.
Also check Samples\CommandBars\CommandBarIcons sample it will show how iamgemanager can be used.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |