>This is an example.
>
>The new.bmp from the Visual Studio bitmap collection shows a white page with the corner turned down. Just what I wanted.
>
>When I put this bmp on a button on a form, the page shows up grey, not white, without regard to whether the button is enabled or not.
>
>Can someone explain what is controlling the color (or colour) of the bmp?
>
>Many Thanks,
Hello
You have to use masks. In VFP the mask can be done with another bitmap, with the same name, but with extension .msk: 'NEW.MSK'.
Open new.bmp in Paint, and change the colors as follows: everything you want to be opaque on the button (the white portion of the page, for example) color it black, and what you want to be transparent, make it white. Save the bitmap with the same name + .msk in the same directory as the original bitmap. Place the original bitmap on the button and the white area will be opaque i.e. white.
Hope this helps
Grigore Dolghin
Class Software.