Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent cursor for TabStop = .f. ReadOnly fields
Message
From
23/11/2006 10:51:58
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01171887
Message ID:
01172073
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform