Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and check
Message
 
À
23/06/1997 09:42:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00037383
Message ID:
00037415
Vues:
30
> >> >In a grid i use a check field to mark some item on, and some text > fields. > >> >When i switch the grid READONLY it is 'normal' that the user cannot > change > >> any values in the text fields, etc... > >> > > >> >Why can i still change the check field ?? > >> > > >> >I there any way to so that the user cannot change it any more ? > >> > > >> >Help please. > >> > > >> > > >> >Thnks... Marc > >> > >> By MS design check box doesn't understand ReadOnly property, so you > should > >> use Checkbox.Enabled=.F. > > > >... but this leaves the Checkbox looking disabled, while the rest of the > >controls look enabled. My preference is to have RETURN .F. in the When. > > What do you mean saying 'looking disabled'? You can always customize > DisabledBack/ForeColor properties to get necessary look. BTW, When and > Valid property are legacy ones and not recommended to use. Yes you can adjust those properties, but my preference is not to. This allows me to have a global colour change control, or to set the colours in a class library, and not worry about this one (or 10 or 100) instance of the control. Yes, When and Valid are legacy. But, IMHO, they are the most suitable in this case. All of the applications that you bring from FP26 to VFP should be rewritten, and this will likely hold true for VFP5 to the next couple of versions, so I don't place much weight in the argument that these are legacy. /Paul
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform