banner graphic
Reference

Designing Toolbar Icons for Internet Explorer 5

To create a toolbar icon, you will need to provide each image in two sizes for two toolbar states (grayscale for the default state and color for the active state, when the user's mouse is pointing to it), and in two color depths. The following is a summary of the images that are needed:

These images would look like the following:

Images needed for icons

Designing toolbar icons

Here are some general points to keep in mind when designing toolbar icons:

Creating .ico files

You will need to create two .ico files for one icon:

It is recommended that you use a graphics program to draw your icons and a development environment, such as Microsoft Visual C++ Development Studio, to create the .ico files.

The two icon files would contain the following graphics:

Two icons

Drawing your images

  1. After drawing your images in a graphics program, place the 16-color and 256-color images in separate files.
  2. Index each file to the appropriate palette, either the Windows 16-color palette or the Windows half-tone palette.
  3. Save each file as a .bmp.

Creating your icon files in Visual C++:

  1. Open each .bmp file.
  2. On the File menu, click New, and then click Icon. By default, the icon window that opens displays a standard 32-pixel-by-32-pixel device image.
  3. In the Icon window, click New Device Image. Click Custom, and then create these image devices:
  4. Note that the device images are two pixels wider than the images, which reflects the actual width of the button. Center your images in the device image area.

  5. Delete the default 32-pixel-by-32-pixel device image.
  6. Copy and paste the color images from your .bmp files into the appropriate device image size and color depth.
  7. To make the background transparent, select the transparent color in the color palette and fill the background of each image where you want transparency.
  8. Save this file as an .ico file.
  9. To create your default (grayscale) .ico file, follow the same steps.