Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Using multiple icon sizes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using multiple icon sizes

 Post Reply Post Reply
Author
Message
sandeepa View Drop Down
Groupie
Groupie


Joined: 10 June 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote sandeepa Quote  Post ReplyReply Direct Link To This Post Topic: Using multiple icon sizes
    Posted: 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2006 at 1:48am
Hi,
 
pCommandBars->GetCommandBarsOptions()->szIcons = ...
pCommandBars->GetCommandBarsOptions()->szLargeIcons= ...
pCommandBars->GetCommandBarsOptions()->szPopupIcons= ...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
sandeepa View Drop Down
Groupie
Groupie


Joined: 10 June 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote sandeepa Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2006 at 10:54am
yes. just add icons to imagemanager:
 
pCommandBars->GetImageManager()->SetIcons(...);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
sandeepa View Drop Down
Groupie
Groupie


Joined: 10 June 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote sandeepa Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.