>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only