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 » Toolbar icon size Collapse All
Subject Author Date
Robert Hofstetter Jun 21, 2010 - 1:23 AM

Is it possible to have three different toolbar icon size, e.g. small, normal and large?


 

Robert Hofstetter Jun 21, 2010 - 6:29 PM

If you select the option "Large icons in toolbars" in the Customize window, the current toolbar buttons are doubled in size. I am just wondering if it possible to have an extra option "Small icons in toolbars". When selected, toolbar buttons are reduced to a half of the normal icon size. So, Users can choose toolbars of three different sizes at the run-time. At the design time, we only have one set of toolbar icons in normal size. Could you give me some suggestions, some sample code would be even better. Thanks

Technical Support Jun 21, 2010 - 12:08 PM

The CExtCmdIcon class implements an icon in Prof-UIS. It supports normal/hover/pressed/disabled images of one size only. The CExtCmdIcon are stored in the command manager. The CExtToolControlBar toolbar control uses icons in the command manager for measuring and painting toolbar buttons. You can access the command manager, reload the command icons of preferred size and recompute layout of the main frame window. As result, all the reloaded icons will have new preferred size. I.e. your app can implement support for several icon types of any sizes. But this requires complete reloading of icons.