Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a form read only
Message
From
18/12/1997 15:56:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00066898
Message ID:
00067052
Views:
33
>>>>>>>I am looking for the setall syntax to make a form's textboxes read only. Thanks!
>>>>>>
>>>>>>Thisform.Setall("ReadOnly",.t.,"textbox")
>>>>>
>>>>>Than you but 1 prob. I created the form via quikform and the textboxes are actually labled [ab]po_nbr.click so not sure if they qualify as textboxes.
>>>>
>>>>Sorry, could you explain again what is "labled [ab]po_nbr.click"?
>>>
>>>po_nbr is just one of a bunch of so called textboxes on the form and was given as an example. The form like I said was created using quikform method. whenclicking on the the thing in edit mode, the object is referneced with the [ab] prefix, as you could see if you try it.
>>
>>The only thing you should worry about is Class from these textboxes were instanciated. You should use exactly the same class name in Setall method syntax.
>
>Makes sense, so I put Thisform.Setall("ReadOnly",.t.,"textbox")
>into the form's activate but I can still edit the textboxes.

You need to set txtbutt (command group) property txtbutt.usercontrolmode = .t. ,
if you are using command group in quick form.
Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform