Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Un-SetFocus()
Message
 
À
23/06/1997 14:58:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00037476
Message ID:
00037481
Vues:
30
> >> I would very much like to find a 'nice' way to make the activecontrol on > a > >> form no-longer active. I could, of course, keep an invisible control > as > >> SetFocus to that. It would be even nicer if anyone knows a way to just > >> SetFocus to none. Thx! > > > >The only thing I can think of is to set the WHEN method to RETURN .F. > >for all controls. > > It will actually mean freezing of the form. If it's really a purpose why > not to use Thisform.SetAll("Enabled",.F.) And freezing the form seems to be what the original question was. Of course a timer or the system menu would still work (actually, the Timer would be disabled by your method <g>). IMHO, disabling of objects should be used when you require both the functional and the appearance aspects. If you require that the control appears alive, but you can never get to it, then my preference would be to have WHEN .F.. As an example, consider an edit record where the user can type in the Primary Key. This key will be used in a bunch of related records, so it shouldn't be edited after it has been added. In this case, it may make more sense to change the appearance and the functionality of the field by setting Enabled=.F.. But I would think that a form with all of the controls disabled would look confusing to novice users. /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