-
Events going screwy
I have written a bunch of active X controls(OCX) for use in a project.
One of themĀ@is a grid. The others include a popup calender and a pop up combo.
The problem is that when the popups appear over the grid and the user double clicks on them, the GRID'S click event fires!
Each of the popups consists of a form with a bunch of labels. The form is modal and upon a double click of a label, the form unloads.
The double click is received by the popup and processed correctly, but an erroneous event gets passed to the Grid.
Why? What can I do? Help
justin
-
-
No erro
No error , just an event gets fired that shouldn't get fired.
I think the unloading of teh popup form happens before windows has processed the double click event completely.
I am going to try using a timer before unloading the form.
-
For reference
I tried using the PostMessage API to close the window, aftrer processing all the events but it dod not fix the problem.
In the end I did use a timer(200ms) and it worked.