Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing some controls in red color
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00588008
Message ID:
00588024
Views:
35
Ok, I should have change DisabledForeColor, since these textboxes are disabled. Now everything works.

>>>Hi everybody,
>>>
>>>I have an application, where I show various counts. Some of them "keyed" and some actual counts in the file. I'd like to show them in red, if keyed<>observed. These are textboxes on the form. Should I put this ForeColor setting in Refresh() method of each textbox (or in Form's Refresh) or is there some "Dynamic" settings, which can be applied once in Form's Init?
>>>
>>>Thanks in advance.
>>
>>Value_assign or setall().
>>Cetin
>
>Hi Cetin,
>
>I've tried this code in Form's Refresh, but it doesn't do anything:
>
>with thisform
>	if BatchCntrl.ActNumSal<>BatchCntrl.LogNumSal
>		store 255 to .txtActNumSal.forecolor, .txtLogNumSal.forecolor
>	else
>		store 0 to .txtActNumSal.forecolor, .txtLogNumSal.forecolor
>	endif
>	if BatchCntrl.ActNumMtg<>BatchCntrl.LogNumMtg
>		store 255 to .txtActNumMtg.forecolor, .txtLogNumMtg.forecolor
>	else
>		store 0 to .txtActNumMtg.forecolor, .txtLogNumMtg.forecolor
>	endif
>	if BatchCntrl.ActNumCrd<>BatchCntrl.LogNumCrd
>		store 255 to .txtActNumCrd.forecolor, .txtLogNumCrd.forecolor
>	else
>		store 0 to .txtActNumCrd.forecolor, .txtLogNumCrd.forecolor
>	endif
>	if BatchCntrl.ActNumMM<>BatchCntrl.LogNumMM
>		store 255 to .txtActNumMM.forecolor, .txtLogNumMM.forecolor
>	else
>		store 0 to .txtActNumMM.forecolor, .txtLogNumMM.forecolor
>	endif
>endwith
>
>How can I change it?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform