Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for visual error indicator I saw somewhere
Message
De
27/12/2001 08:59:22
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00598343
Message ID:
00598392
Vues:
18
>I once watched an H+R Block employee fill out a tax declaration for me. When the system detected an error, a lovely red circle drew itself around each field in error, right in front of your eyes.
>
>Has anyone seen this object and know where I could buy it? It was really cute.

Hi Tom

Don't know about buying it, but it's not to hard to create a class that does this for you - providing that it sits directly on a Form. The trick is to use OBJTOCLIENT() to determine where to start drawing, then use the Form CIRCLE() method to draw an appropriately dimensioned ellipse (set aspect < 1). It's a bit of a fiddle, but you only need to do it once in the class!

The snag is that a Page doesn't have a Circle/Draw methods so if you want one that works in a pageframe than you'd need to go with one of the other ooptions.
----
Regards
Andy Kramek
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform