Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enabling all input controls in a form
Message
From
20/03/2001 10:27:55
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00486652
Message ID:
00486846
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform