Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background colors don't change with record change?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294375
Message ID:
00294892
Views:
27
In each textbox Interactive Change
and for some textboxes both in Interactive Change and in
Programmatic Change:
THIS.BackColor = IIF(EMPTY(THIS.Value),RGB(255,255,128),RGB(255,255,255))
THIS.Disabled BackColor = same as above

In my custom Form Init method SetBackColor:
LOCAL loRef, ii
loRef = THISFORM
FOR ii = 1 TO loRef.ControlCount
DO CASE
CASE loRef.Controls(ii).BaseClass = "Textbox"
loRef.Controls(ii).BackColor = ;
IIF(EMPTY(loRef.Controls(ii).Value),RGB(255,255,128),RGB(255,255,255))
loRef.Controls(ii).DisabledBackColor ;
IIF(EMPTY ... same as above))
ENDCASE
NEXT

I was thinking that if I put THIS.SetBackColor after the THISFORM.Refresh in my Next button code that might solve my problem. Instead of in front of Refresh as I tried before.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Previous
Reply
Map
View

Click here to load this message in the networking platform