Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enable/disable combo box property
Message
De
01/05/1997 09:13:20
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00030435
Message ID:
00030437
Vues:
50
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform