Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a form ReadOnly with one command?
Message
 
To
12/11/1998 08:51:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00156925
Message ID:
00156954
Views:
44
>thisform.ReadOnly = .t.
>
BOb,

That would probably work if form's had a readonly property.

Michiel,

You can give your form class a lReadOnly property, and in the calsses for the controls you can put this code in the refresh;

THIS.ReadOnly = THISFORM.lReadOnly

Then in the form's Init accept a parameter that indicates if the form is read only or not, assign a .T. or .F. to the form's lReadOnly Property and then issue a THISFORM.Refresh()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform