Microsoft KB Archive/106488

From BetaArchive Wiki

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

ID: Q106488

2.5x 2.6x WINDOWS kbprg

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

Keywords          : FxprgGeneral 
Version           : 2.5x 2.6x
Platform          : WINDOWS

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