Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01637249
Message ID:
01637251
Vues:
66
Paul,

You may want to experiment a bit with DynamicCurrentControl

The idea is to have two containers in the column - one for the row that has the focus, and the other one for the other rows

>Some background:
>
>I'm working on an app where we have a container in a column of a grid. This container has controls where you can edit data including a combo box. In order to mimic the "Sparse" option (which has to be .F. for this container to appear correctly) for the combos, I have a textbox that overlaps the combos, then selectively show/hide them based on focus. I also have a label in the container that needs to show a generated string based on the selections. To get that to refresh, I've set the DynamicForeColor property of the column that holds the container to call a method - this method then calls the code that refreshes the label and returns RGB(0,0,0) so DynamicForeColor doesn't complain.
>
>This actually all works OK.
>
>The issue I'm running into is when you set focus to this the row/column that has the container, the combo then appears (as it should). However, it also in ALL other rows. Which isn't what I want. I believe the grid uses the same control instance which would explain the behavior, but I really need it to NOT do that ;-)
>
>In the past I've actually just skipped the grid and built my own container of controls. The big downside to doing that is the speed. If you have a bunch of controls this is really slow.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform