Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for visual error indicator I saw somewhere
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00598343
Message ID:
00599285
Views:
23
Tom,

You can easily use a VFP Shape control for this. Set the BackColor to 255,0,0 and then fiddle around with the DrawMode until you get the desired effect. The Merge, Mask and XOR pens work best for this situation.

Your Textbox subclass could easily be setup to automatically add the shape to this.parent during it's Init. Create the name from the name of the control itself like this.parent.AddObject( "shp" + this.Name, "shpErrorMarker" ). You can control the .Visible property to turn the highlight on and off.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform