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:

  1. Prepare the sprite image according to the specifications in the previous section.
  2. Place the sprite image file in an appropriate location on the application server, according to the specifications in the previous section.
  3. In Design Mode, select the toolbar button component in the Component property sheet.
  4. In the Bitmap File Name property (Appearance property group), specify your sprite image file, using:
  5. Save your work, close the form, refresh the metadata cache (Ctrl + U), and reopen the form.
  6. Verify that the image changes when you move the mouse pointer over the icon.

Related Topics

About ToolbarButton Components