Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transparent Buttons
Message
From
14/02/2006 22:31:03
 
 
To
14/02/2006 21:58:08
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01096388
Message ID:
01096395
Views:
11
>I have some .ico images on buttons on a toolbar. I was hoping that the part of the image that is the background would take on the color of the button. Instead it takes on the color of the screen background. I can't figure out if it is my .ico file or if it is a setting in VFP. I have tried other images as well - .png, .bmp, .jpg, .gif. It seems that SOME images will work correctly, but most don't.
>
>Does anyone know exactly what controls this?
>
>-Randy

In previous versions of FoxPro, I have used .bmp files and matching .msk files. The .msk file uses the same root name as the .bmp file. The easiest way I've found is to open the .bmp file in MS Paint, mask out in black what you want to show and leave white the part you don't want to show (invisible). Save the file as a monochrome bitmap with .msk as the extension. In Win XP it will actually save it as picfile.msk.bmp. Rename it to picfile.msk. So now you should have 2 files in the same folder: picfile.bmp and picfile.msk where "picfile" is the name of your bitmap.

Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform