How to Combine Text and Bitmaps on Push Buttons

Last reviewed: June 27, 1995
Article ID: Q100446
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

In Microsoft FoxPro for Windows, the prompts for push buttons can be either text or a bitmap (.BMP file), but not both.

To work around this limitation, include the text within the bitmap that is to be used as the prompt for the push button. To do this, you can use any graphics editor capable of modifying bitmap (.BMP) files. The Paintbrush utility in Windows is an example of such a graphics program.

For example, to place the word "Next" in the FOX.BMP file that is located in the FOXPROW directory:

  1. Choose the Paintbrush icon in the Accessories group in the Windows Program Manager.

  2. From the File menu, choose Open.

  3. Select the FOX.BMP file in the FOXPROW directory.

    The FOX.BMP file will appear in the Paintbrush work area.

  4. From the Text menu, choose Font, and select the desired font and point size.

  5. Click the Text tool (it has the lowercase letters "abc" on it).

  6. Click in the FOX.BMP work area where you want the text to appear and type the word "Next".

  7. When you are done typing, choose Save As from the File menu, give the file a new name, and then quit Paintbrush.

This bitmap can now be used as the prompt for a push button. When the button is displayed on-screen, it will appear as though there is both text and a bitmap on the push button.


Additional reference words: FoxWin 2.50 2.50a pushbutton bmp name label
KBCategory: kbprg
KBSubcategory: FxtoolGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.