Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the color of the selected textbox
Message
 
To
27/05/2005 09:44:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018113
Message ID:
01018115
Views:
15
>Hi all,
>
>My user doesn't have very good eyesight and asked me if I could make the currently-selected field change background color so he could more easily recognize which field he was in (just looking for the cursor isn't very easy for him). Is this doable? If so, how?
>
>Thanks much!
>
>John

Create a class based on TextBox. In GotFocus Event put:
this.Tag = TRANSFORM(this.BackColor)
this.BackColor = RGB(whatever)

in LostFocus Event put:
this.BackColor = VAL(this.Tag)

and use this class in your forms
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform