Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a BUG in vfp8?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00809698
Message ID:
00811326
Views:
22
Bingo Garrett

It looks like VFP7 does NOT respect the transparent setting in the GIF but 8 does the right thing. Making white the transparent colour solved the issue for GIF's. Does not work for BMP's though as they do not have this transparent attribute. Anyway that is easy to solve by changin the BMP's to GIF's.

Thank you for your reply

Bernard

>>>>I have a button class created by using an image and label in a container. The image is a .GIF file
>>>>which is rectangularish in shape and has WHITE around it as well as in the middle of it. I made the
>>>>image.BackStyle = Transparent and placed the label behind the white area in the middle of the button
>>>>and the label shows through. This is in VFP 7.
>>>>When I upgraded to VFP 8, the same class, same button now shows transparent on the background of the
>>>>button but the middle part which was transparent in VFP7 is now opaque white in VFP8, and the label
>>>>is hidden.
>>>Actually, the VFP7 behavior may have been the bug. Is white marked as the transparent color in the GIF? If not,
>>>try setting white to be transparent, and see if VFP8/GDI+ respects that.
>>Well white is the colour around the main button and GDI+ and VFP8 respects THAT! So why not other parts
>>of the same GIF. Changing it to a BMP and JPG did not change this strange behaviour. The central part
>>of the button still showed up as opaque white, while the surrounding part of the button was made transparent.
>
>But did you try setting the transparent color, as I suggested above?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform