Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » How to have two sized icons? Collapse All
Subject Author Date
Offer Har May 9, 2006 - 9:06 AM

Hi,
I would like to have two sized icons in my application:
1. For toolbars i would like to have a 24x24 icons
2. For menus and tabs, bars etc. i would like to have a 16x16 icons.
What is the way to achieve this behavior?
Currently, when i change the icons in the toolbar to be 24x24, all icons are 24x24, which does not look good in menus for example.
Thanks in advance

Technical Support May 10, 2006 - 4:36 AM

First of all, you should have two toolbar resources (one with 16x16 images and another with 24x24 images) and you should update the command manager from both of them. Second, use two sets of command identifiers for the commands which need images of different sizes in menus and in the toolbar. For example, if you have ID_FILE_NEW in the toolbar and in the menu, divide it into two commands: the ID_FILE_NEW_SMALL command, which will be used in menus and in toolbar resource with 16x16 images, the ID_FILE_NEW_LARGE command, which will be used in the toolbar resource with 24x24 images and this resource should be used for the toolbar window. You should use "small" commands to code your application regardless of whether you are using or not using the Visual Studio’s wizard. After you added a command handler or command updating method for the ID_FILE_NEW_SMALL command in some class, you need to add the message map entry for the ID_FILE_NEW_LARGE command manually. The manually added message map entry should refer to the same method.