WinStudio
Creating Sprite Images for Toolbar Buttons
When creating a toolbar component, one option for the display of the
toolbar icon is to use a "sprite image" which allows the icon
to change its appearance—say, its color—whenever the mouse pointer is
over the icon. This is a good visual cue to let users know that they are
in the active area for the button.
Specifications for the sprite image
The sprite image must meet very these specifications:
Implementing the sprite image
To implement the sprite image on a toolbar button:
- Prepare the sprite image according to the specifications in the
previous section.
- Place the sprite image file in an appropriate location on the application
server, according to the specifications in the previous section.
- In Design Mode, select the toolbar button component in the Component property sheet.
- In the Bitmap File Name
property (Appearance
property group), specify your sprite image file, using:
- The ellipses (...) button to reference the image file in the
Mongoose file system
- The drop-down list, if you imported the image file
- Save your work, close the form, refresh the metadata cache (Ctrl
+ U), and reopen the form.
- Verify that the image changes when you move the mouse pointer over
the icon.
Related Topics
About ToolbarButton Components