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


KBCategory: kbtool
KBSubcategory:

Additional reference words: 5.00 7.00 toolface face buttonface



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 13, 1996
©1997 Microsoft Corporation. All rights reserved. Legal Notices.