charles

charles

  • NA
  • 1
  • 0

multiple events raised from a single event?

Apr 9 2009 12:43 PM
i am having a problem where i have set up a graphic display for an image, and i want to be able to zoom and measure things with 'digital calipers' inside the image. i have had everything up and running perfectly in its own form.
 now that it has been integrated into the larger program, everytime i try to use the mouseclick event, instead of one event per click i am getting two and it is screwing up my calipers, i could possibly get around it with multiple flags but it gets unnecessarily complicated and it just a workaround instead of fixing the problem.
 the same thing happens when i am using my zoom. i have it tied to the mousewheel event and it worked fine until i integrated it. now i will sometimes get 4 events for each mousewheel move instead of the one.

is this the larger form trying to take control of the mouse events or is it some kind of conflict where both forms are raising an event for the same thing?