>Hi everybody,
>
>How can I make sure that I can not put a cursor into Read-Only TabStop = .f. field? Should I program lostfocus and GotFocus events or I'm missing some property?
>
>Thanks.
In my opinion, Readonly = .T. in a Windows application should mean:
Readyonly = .T.:
You are allowed to read the value, also by selecting the field with the mouse, copying it into the clipboard and pasting the content into another application ("=reading the value"). Only you are not allowed to
change the value.
Enabled = .F.:
The value you are seeing is not applicable in this situation. For example you have an option selected, and the values under another option are not applicable, but you are allowed to see what they might have been.
Visible = .F.:
You are not allowed to change, neither to read the value.
Therefore I never use Readonly = .T. if the user is not allowed to tab into the field. I use Enabled = .F. instead.
And I always allow users to select or copy values from a readonly field.
Just my 0.2 cents.
Christian Isberner
Software Consultant