Results 1 to 4 of 4

Thread: Events going screwy

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    51

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What is the error?

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    51

    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.

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    51

    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
  •  



Click Here to Expand Forum to Full Width