4
I developed a program in Delhi that has two Forms, one with a grid and another with a map, the operation is simple: when clicking on the grid the position of the vehicle is updated on the map, the problem is that every time I call the Procedure in the map form to update the position I miss the focus of the form containing the grid, and even if I throw the focus back it gets ugly the windows changing colors due to loss of focus.
How can I update the secondary window data without passing the focus to it?
The fact that you call a form method does not imply passing the focus on to it, so I imagine you are triggering some operation that shifts focus. How you command the secondary window update?
– AlexSC
There is not enough information to solve your problem. Please post the code of a simple program with the problem.
– EMBarbosa
Thanks to the tips of all of you I’ve discovered that one of the components I’m using asks for the focus when called, using Raphael Zimermann’s tip I’m setting the visibility to false, calling the composition and setting it to true. Which in this case is no problem because the function draws on the screen and what it does is delete from one point and create in another.
– Icaro