Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly textbox class
Message
 
To
02/10/2002 08:35:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00706794
Message ID:
00706802
Views:
15
>>In my textbox class I'd like to implement my own readonly property. I have many occasions where some textboxes should be readonly on a form and others
>>not readonly at the same time. Rather than individually controlling this
>>in the form init I though I would implement a new property something like
>>"_readonly". That way when I do a thisform.setall("readonly",llreadwrite,"MyTextBoxClass") only those textboxes with _readonly set to .t. would actually set readonly to .t.. So is there a way that I can intercept the property change to "readonly" and check the value of "_readonly" before it actually sets "readonly"? Maybe I'm going about this the wrong way. If anyone has a better method please advise.
>
>I believe you can use an assign property for this. VFP 6 or later.
>
>HTH, Hilmar.

Wow! Worked perfect! "Assign method" is what you meant I assume.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform