Microsoft KB Archive/126982

= Microsoft Knowledge Base =

XL: Custom Button Image Distorted When Button Size Changed
Last reviewed: September 13, 1996

Article ID: Q126982

The information in this article applies to:


 * Microsoft Excel for Windows, versions 5.0, 5.0c
 * Microsoft Excel for the Macintosh, versions 5.0, 5.0a
 * Microsoft Excel for Windows 95, versions 7.0, 7.0a

SYMPTOMS
A toolbar button image may become distorted when you edit it in the Button Editor and you then change the size of the button from small to large or vice versa.

CAUSE
When you change a button's size, the new button image is not scaled in proportion to the old button image, which causes the image to become distorted.

WORKAROUNDS
Method 1: To scale the toolbar buttons so that the button images are not

distorted, create the image with small buttons displayed. That way, when large buttons are displayed, the button image will not be distorted. Method 2: If you know that the user will be using a button in one size or

the other, create the button image in that size.

MORE INFORMATION
Toolbar buttons are saved with the button resolution that they are displayed in. Small toolbar buttons have a grid of 16 pixels wide by 17 pixels high, while a large toolbar button has a pixel grid of 24 pixels by 23 pixels (a difference of 49 pixels). Therefore, a toolbar button edited while it is displayed as a large button will be able to store more information on the tool image. When the button is changed from large to small, the number of pixels in the grid is reduced and the image becomes distorted.

For more information about the Edit Button Image Command, choose the Search button in Help and type the following:

button images