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:
00200545
Vues:
7
>>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,
Good to know somebody has actually done this. I already had the controlsource property defined, and was setting my textbox to it in init. There is no value property in the container class, so I tried adding one as you suggested, but it didn't work. Do you have a sample of this code you might be able to send?

Another problem I have with all of this is with navigation. I used my kepress event on the textbox to trap up and down arrows and then issued grid.ActivateCell commands. It works fine until I go beyond the bottom record initially displayed. Then it starts moving me over a column instead of down a cell.

Again, thanks for the help.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform