Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable/disable combo box property
Message
From
01/05/1997 09:13:20
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00030435
Message ID:
00030437
Views:
52
>Hi,
>My form has the form wizard picture buttons. When viewing, all of my textboxes are disabled. When editing, all of the textboxes are enabled. Now, I added a combo box. But it is enabled all the time. How do I (or where do I) create this data entry environment (disable on view - enable on edit)?
>
>The disable - what code page and which event?
>The enable - what code page and which event?
>
>Thanx a bunch!
>John Morga


This same problem's solution, I have already given as a tip, what you need to do is change the class code.

In wizstyle.Vcx, txtbtns there is a method called setallprop

In which one of the line is this :-
CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,TextBox,OleBoundControl") # 0
m.oControlParent.Controls[m.i].Enabled = THIS.EditMode


make it

CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,Combobox,TextBox,OleBoundControl") # 0
m.oControlParent.Controls[m.i].Enabled = THIS.EditMode

to include combobox, but be careful, be sure to take backup or better design your own class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform