Converting Bitmaps to Toolbars

Home Page (Toolbar Editor)OverviewHow Do I ... Topics

You can create a new toolbar by converting a bitmap. You can also create a new toolbar using the Insert menu (see Creating New Toolbar Resources).

The graphic from the bitmap converts to the button images for a toolbar. Usually the bitmap contains several button images on a single bitmap, with one image for each button. Images can be any size; the default is 16 x 16 pixels. You can specify the size of the button images in the New Toolbar dialog box when you choose Toolbar Editor from the Image menu in the Graphics editor.

You can change the command IDs of the buttons on the new toolbar by using the button property pages. For information on editing the new toolbar, see Creating, Moving and Editing Toolbar Buttons.

To convert bitmaps to a toolbar

  1. Open an existing bitmap resource in the Graphics editor.

  2. From the Image menu, choose Toolbar Editor.

    The New Toolbar Resource dialog box appears. You can change the width and height of the icon images to match the bitmap. The toolbar image is then displayed in the Toolbar editor.

  3. To finish the conversion, change the command IDs of the buttons on the toolbar:
    • Open the property page for the toolbar button. (From the View menu, choose Properties.)

    • Type in the new ID, or select an ID from the drop-down list.

Tip   Click the Pushpin button on the property page to cycle through all the toolbar buttons without having to reopen the individual property pages.