Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change control fore color question.
Message
From
10/12/2001 12:23:55
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
 
 
To
10/12/2001 09:13:48
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00591146
Message ID:
00592198
Views:
22
>Hey Gil, thanks again. Yes, you're right, it's a BackColor propert, not ForeColor. I've added a method to the mceditbox(our company subclass of ceditbox), called SetBackColor:
>
>IF THIS.lChangeBackColor = .T. then
> THIS.BACKCOLOR =8454143
>ELSE
> THIS.BACKCOLOR =16777215
> THIS.lChangeBackColor = .T.
>ENDIF
>I am hard coding this(which I hate) because I don't think our users will use another color.But I will try your advise with the property to hold default BackColor.
>There is another VFP method ResetToDefault which sounds like what I need, I've tryied to used it but it didn't work, I mean I've got an error.
>What do you think?
>Igor

I've never used the ResetToDefault method. It does look like it should reset the color the the inherited value when the user leaves the control. What is the error?
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