Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for visual error indicator I saw somewhere
Message
From
27/12/2001 08:59:22
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00598343
Message ID:
00598392
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform