Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/100446

From BetaArchive Wiki

How to Combine Text and Bitmaps on Push Buttons

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.

5. From the Text menu, choose Font, and select the desired font and

   point size.

6. Click the Text tool (it has the lowercase letters "abc" on it). 7. Click in the FOX.BMP work area where you want the text to appear

   and type the word "Next".

8. 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


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.