Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Container based-class in grid.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00200193
Message ID:
00200316
Vues:
9
>>Paul,
>>
>>Put the container in the columen in additiont to the defaultl Text1 control. Set the column as Sparse .T., Bound .T., and set the controlsource for the column to the same as the control source for your textbox in the container.
>
>For some reason this doesn't work. As long as I have 'column.currentcontrol' set to pick_combo1 (my container) it won't show anything in the cells in that column except for the active cell.
>
>I'd love to know how to make this work right. Have you actually done this with a container class before? One thing that I though might be causing the problem is that I have a "controlsource" property I have defined as a part of my custom class.
>
>Any ideas are absolutely appreciated.

I have a similar control. What I did was add a property to the container called, oddly enough, ControlSource. In the Init and Refresh of the container [if there is such] need to have This.txtBox.ControlSource = This.ControlSource. You may also need to add This.Parent.Value = This.Value in the Refresh and/or LostFocus of the textbox as well as This.Enabled = This.Parent.Enabled, etc. You will also need the This.Enabled = This.Parent.Enabled command in the dropdown command button if you have one.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform