Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read-Only Grid - cant write.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00063150
Message ID:
00063154
Vues:
39
>Hi,
>Many moons ago (Jan 5, 1997) I posted this:
>My form has the form wizard picture buttons. When viewing, all [objects]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 [control the combobox disable]?
>
>Vinod Parwani's solution worked like a charm - change the class code. In Wizstyle.Vcx, txtbtns there is a method called setallprop - and I changed this:
> CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,TextBox,OleBoundControl") # 0
> m.oControlParent.Controls[m.i].Enabled = THIS.EditMode
>
>to this:
> CASE ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,Combobox,TextBox,OleBoundControl") #
> 0
> m.oControlParent.Controls[m.i].Enabled = THIS.EditMode
>
>Now I have a GRID on the same form and no matter what I do, the grid columns are read only. BTW, the Grid's ClassLibrary is also Wizstyle.Vcx
>Is there a similar Class Code change to make the Grid read/write or is it something completely different?
>
>Thanx,John Morga

I don't use Wizstyle.Vcx, but looking at this have a question. Did you try to check
ATC(m.oControlParent.Controls[m.i].BaseClass,"CheckBox,Combobox,TextBox,OleBoundControl,Grid")
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform