Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy Internet stuff in a desktop app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01303196
Message ID:
01303487
Vues:
19
>Well, by now we've probably all seen the fancy new thing that many web sites are doing sometimes when they need you to make a choice. They "dim out" the page and put up a "window" over it that focuses your attention on what they need you to do. I've seen it on various sites and they use JQuery or some other JavaScript library to do it, I assume. Anyway, it's kind of a nice technique and I was wondering about doing something like it in a VFP form. Perhaps it could be done with the GDIx tools. I don't think it can be done with a standard image control in VFP. I'm not sure they offer that type of transparancy, but perhaps I've just not hit on the right combination of properties. Anyway, just wondering . . .
>
>Russell Campbell

Check out my blog entry as Thomas suggested. You need to use a PNG with a transparent mask. This is the only way you can get transparency on a form. Basically you hide the image, then resize it to cover the desired area and then make it visible. Also set its zorder to topmost. You will have to handle the fact that the user can tab to your control even if they cannot click on it.

There are a number of tutorials about using transparent masks in PNG's. I use Paint Shop Pro and it is fairly easy to create a mask.

Also check out this post:

http://weblogs.foxite.com/bernardbout/archive/2006/11/04/2798.aspx
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform