|
-
Mar 7th, 2002, 12:41 AM
#1
Thread Starter
Member
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
-
Mar 7th, 2002, 07:33 PM
#2
-
Mar 7th, 2002, 10:01 PM
#3
Thread Starter
Member
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.
-
Mar 11th, 2002, 02:11 AM
#4
Thread Starter
Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|