How to Display .BMP on Push Button in Its Original Colors

Last reviewed: November 28, 1995
Article ID: Q106488
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

In order for FoxPro for Windows to display a .BMP file on a push button in its original colors, you must create an .MSK file for the .BMP file. An .MSK file is a .BMP file of the same picture that has two colors, black and white.

When you are using a .BMP file with an associated .MSK file, the black areas in the .MSK file allow the original colors in the corresponding areas of the .BMP file to be displayed. However, if there are ANY white areas in the .MSK file, the color of the push button will show through the .BMP file, therefore blending the push button's color and the .BMP's color. To display the .BMP file in its original colors, create an all-black .MSK file.

NOTE: Be sure to save the .MSK file as Monochrome Bitmap type from your graphic editing program. Paintbrush or Paint can be used to do this.

For more information about masking .BMP files, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q94344
   TITLE     : Masking .BMP Files in FoxPro for Windows


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a pushbutton
graphic @ ... GET
KBCategory: kbprg
KBSubcategory: FxprgGeneral


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