Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change control fore color question.
Message
From
07/12/2001 13:07:23
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
 
 
To
07/12/2001 10:12:55
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00591146
Message ID:
00591299
Views:
16
>Hi folks!
>Here is what I am trying to do. Every time user goes to control I’d like to change it’s color to yellow and when user left the control it’s color should goes back to default. I think I should add new property (ChangeForeColor = .T. is default) and a method (if ChangeForeColor = .T. then change fore color to yellow) to the control and call this method form GotFocus Event( change fore color to yellow and set ChangeForeColor to .F.) and LostFocus Event (change color to white and set ChangeForeColor back to .T.). I am working with MM 6.1
>
>How it is sounds?
>Thank you everybody!
>Igor


Igor,

I think you would want to change the BackColor (Black text on yellow) as opposed to forecolor (yellow text on white)

Be sure to add a property to your subclass of the framework control classes that you can use to store the current backcolor as you GetFocus so you can restore it as it loses focus.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform