Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I set a CHECKBOX to read only?
Message
De
15/10/1997 14:07:11
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
À
15/10/1997 13:54:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00054720
Message ID:
00054724
Vues:
34
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform