Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enabling all input controls in a form
Message
De
20/03/2001 10:27:55
Gaylen Miller
Leaderware Corporation
Fulton, Illinois, États-Unis
 
 
À
19/03/2001 17:20:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00486652
Message ID:
00486846
Vues:
12
Hi Fred. Yes! That's it!

I simply added the following lines to the Refresh of the parent Form Class:

THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"checkbox1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"combobox1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"editbox1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"grid1box1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"listboxbox1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"spinner1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"spinner1_9")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"oleboundcontrol1")
THISFORM.SETALL("Enabled",THISFORM.lEnableInput,"textbox1")

And then call THISFORM.Refresh from any Button in the instantiation of the Form.
(lEnableInput is the custom logical property that the Edit and Save buttons toggle as the user clicks them.)

Way Cool!

Ps. This is a very powerful Method. I locked myself out of my program a couple of times until I got the hang of Setall.

Thanks for the help!

Gaylen Miller
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform