Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a transparent rectangle with GDI+X
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01387556
Message ID:
01387563
Vues:
84
>I'm working on an interface where I'd like a grid to display as disabled when the form is in a state which shouldn't allow entry into it.
>
>In the first attempt, I created a small transparent PNG that had a darkening effect. I put this on my form and stretched it across the grid and moved it in or out of view when I wanted the grid to appear unavailable. This worked but seemed to be a big graphic hit to VFP. The screen would flicker and the image would take about 2 seconds to draw itself and sometimes is would draw itself twice. Not sure why.
>
>So I thought I'd give GDI+X a try and draw a rectangle with a low alpha channel value set for transparency. I'm fairly new to GDI+X and I'm not seeing a way to do this. If I use the imagecanvas, I can't seem to make that transparent.
>
>Can anyone point me in the right direction?
>
>Thanks.
>
>-m@

Hi Mathew,
With Gdi+ you can create any kind of image, but for your specific case, the most recommended is to use a "lightBox"technique.
Check Bernard Bout's blog for more details

http://weblogs.foxite.com/bernardbout

Or google for Bernard bout lightbox


HTH

Cesar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform