Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pictures on buttons
Message
From
15/06/1998 19:04:40
 
 
To
15/06/1998 16:18:49
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108369
Message ID:
00108444
Views:
36
I have a problem with pictures on my buttons. The white collor area's in my picture becomes transparant when the pictures appear on a button. Its really crazy you know, At first I had a reference to a picture file in a directory. When I copied the picture to another directory and I changed the reference, the white area's in my picture became tranparant.

Hi Luco,

You have to mask the picture. Create the mask by editing the .bmp using Paint or some (more suitable) picture editor. Change all of the white parts of the .bmp to black. Save the .bmp as a .msk with the same root name.

For example if you have a picture arrow.bmp, load it in Paint and change all the white parts to black. Save the new picture as arrow.msk. (Paint will save it as arrow.bmp.msk -- just rename it)

In your image control, set the background to opaque. Now all your white parts will appear white. If there are some parts of the .bmp that you want to be transparent, color them white and do not blacken this part.

Luco, basic membership in the Universal Thread is free. Why don't you join?
We would love to have you.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform