Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReadOnly Controls
Message
De
07/03/1999 10:29:50
 
 
À
06/03/1999 13:54:12
Randy Hooper
Ranco Business Software
Tampa, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00194888
Message ID:
00194979
Vues:
19
>With the field marked as a readOnly why does the code still execute. What I am looking for is good clarity on my fields and when I use the enabled property the clarity is not that good. With the field marked as enabled = .F. I have played around with the background color and forecolor properties and can not come up with a good combination. If you know of one Please let me know.
>
>Thanks Randy

Randy-
You can put code in your Whn event that says something like:

IF THIS.Readonly
RETURN .F.
ENDIF

that way the control will never get focus. And you don't get the ugly visual effects of a disabled control.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform