Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling and Enabling all controls on Form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01440952
Message ID:
01440974
Views:
55
ReadOnly and Disabled should have different visual appearances. ReadOnly means you can still tab through the control and you should be able to copy the text to the clipboard. You can still use SetAll() on the controls.

But.. I am curious...is using and Edit button a requirement? I've found, as have my users, that it's much easier to just allow edit. Set a flag when data changes, then prompt the user to save if they close the form or move to a different record without saving.

Look at how Word and Excel work. The data is always in edit mode.

>Do you make each control ReadOnly=.F. or .T. then, within the PageFrame by using SetAll()? The Enable Property works fine, but what is the drawback, if any, for using the Enable property, rather than ReadOnly?
>
>Cecil
>
>>They should be ReadOnly, not disabled.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform