Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch message control is read only
Message
 
 
To
17/12/1999 02:06:24
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00305124
Message ID:
00305578
Views:
26
Vladimir,

I use a txtReadOnly subclass of TextBox and I simply return .f. in the When. The control can never get focus for editting. If you want to allow the value to be copied from the control you can use code in the KeyPress() and NODEFAULT for all of the non-cursor movement keys. You can conditionally execute the code based on the ReadOnly value.

>When we have any control, which is read only, users attempts to edit something leads to message control is read only.
>I does not produce any error.
>For langusges , different from English it is not very convinient.
>I write lots of coding in my base classes to avoid this.
>Is it any less bludy way to fix this.
>Thanks in advance, Vladimir Zhuravlev
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform