Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids with containers
Message
De
26/04/2010 06:33:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grids with containers
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01461989
Message ID:
01461989
Vues:
111
Hi All

I am working on using a custom container object in a grid column. The container has various objects that need to be set according to the data in the record of the underlying cursor. The routine that sets these values is a method in the container. I have this working.

However, if I open two such forms, each grid having its own unique recordsource cursor then they seem to interfere with each other. When I activate form2 then form1 changes it's containers to match form2. When I reactivate form1 then form2 changes its containers to match form1.

I have double-confirmed that each grid definitely has its own unique recordsource.

I suspect that some sort of grid update / screen refresh code is being called behind the scenes which in turn calls the container objects display code which then conflicts and interferes with the form being activated / deactivated.

Does anyone have any ideas or thoughts about this?

How can I know if the form has focus or not? Because then I could avoid calling the container update code if the form does not have focus...
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform