Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip / Hint for enabling/disabling controls
Message
From
29/04/1997 02:05:57
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Tip / Hint for enabling/disabling controls
Miscellaneous
Thread ID:
00030045
Message ID:
00030045
Views:
89
In Wizstyle.vcx (wizards directory)-> txtbtns, check the method setallprop, which is a general purpose routine to enable/disable items, It can be used after few modifications,

One line I can tell you which I modified:-

Original
CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,TextBox,OleBoundControl") #

I changed it to

CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"ComboBox,CheckBox,TextBox,OleBoundControl") #

to include combo boxes also.

Depending on the requirement it can be modified and made as a general purpose routine. Hope this helps somebody !!
Reply
Map
View

Click here to load this message in the networking platform