Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids with containers
Message
From
26/04/2010 06:33:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grids with containers
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01461989
Message ID:
01461989
Views:
110
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.
Next
Reply
Map
View

Click here to load this message in the networking platform