General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only