Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I set a CHECKBOX to read only?
Message
From
15/10/1997 14:36:03
 
 
To
15/10/1997 14:07:11
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054720
Message ID:
00054731
Views:
33
>>In my FORM, I want to set a CHECKBOX to read only?
>>any ideas?
>
>I have added a property called lreadonly to my base checkbox class. This allows setting readonly to true or false. The default value is .F. so the checkbox is NOT read only. In the When of my default class I have added
>RETURN !lreadonly
>
>I don't use the enabled property because of the way it changes the colour on the label.
>
>If you need to add code to the when of a sub-classed checkbox be sure to do something like this:
>
>lok = DODEFAULT()
>
>IF !lok
> RETURN lok
>ENDIF
>
>Or just a simple RETURN lok at the end.

Hey Bob - thanks for answering.
Do I create a base class of checkbox? first..
then move it to the form.
I guess I am mot sure of the steps.
thanks .. :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform