Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transparent GIF images on buttons
Message
 
To
19/01/2012 18:33:40
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01533051
Message ID:
01533536
Views:
182
I haven't been able to get that to work in any way shape or form...

What are you doing exactly to load up the Image controls? Just set the Picture property?

For me this doesn't work I always see the non-clear background. This even happens if I stick the image control on the same page and make sure it renders before the button with the Picture. Even then I see the button show with background while the image control does not...

Like Cesar I've resigned myself to converting images to BMP and filling in white space with an an off white color. It's more work but at least it works reliably.

+++ Rick ---

>>Hi Rick,
>>
>>There is something wrong in VFP caching the pictures.
>>
>>the trick is to load the image first in a picture object (e.g. on _Screen) without necessarily display them. This way the pictures transparancy information is cached correctly so that when the same picture is used for a command/option button etc, it is respecting its transparancy.
>>
>>I'd consider this am internal bug with PNG and GIF pictures.
>>
>>Walter,
>>
>
>We load all of our transparent PNGs into a collection of image objects at application startup before any UI or menus are displayed. We keep the collection alive for the duration of the app. We don't have any problems, but you have to load the images early. If VFP gets to them first on a button or menu, loading them into an image may not help.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform