Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReadOnly Controls
Message
From
07/03/1999 10:29:50
 
 
To
06/03/1999 13:54:12
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00194888
Message ID:
00194979
Views:
18
>With the field marked as a readOnly why does the code still execute. What I am looking for is good clarity on my fields and when I use the enabled property the clarity is not that good. With the field marked as enabled = .F. I have played around with the background color and forecolor properties and can not come up with a good combination. If you know of one Please let me know.
>
>Thanks Randy

Randy-
You can put code in your Whn event that says something like:

IF THIS.Readonly
RETURN .F.
ENDIF

that way the control will never get focus. And you don't get the ugly visual effects of a disabled control.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform