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:07:11
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
To
15/10/1997 13:54:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054720
Message ID:
00054724
Views:
30
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform