Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly textbox class
Message
From
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:
00706795
Views:
13
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform