Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have drawn a closed path in a canvas that contains a multiscale image. So the closed path is drawn over the multiscaleimage. However, the multiscale image MouseMove and MouseWheel events do not work when the mouse pointer is over the closed path. The multiscale image mouse events only work in the image places outside the path. How to make the multiscale image mouse events work in the closed path?

Thanks in advance for your help,

Luis Nambiar
Posted

1 solution

I recently had to deal with this exact same problem. The quick solution that I found was to pass the mouse event to the multiscaleimage's appropriate mouse event handler. This would also allow you to perform any shape specific mouse functionality if the requirements were met, and pass the event to the multiscaleimage for normal mouse processing if not.

Or, if you want the shape to completely ignore the mouse and just be there for render purposes you could assign the shapes mouse events to use the multiscaleimage's corresponding mouse event handlers.

ie. Shape.MouseWheel = "ZoomImage_OnMouseWheel";
 
Share this answer
 
Comments
Member 7802839 3-Jul-12 9:41am    
Thank you very much for your answer. This was exactly what I was looking for and I was not able to figure it out.

Thanks again.

Best regards,

Luis Nambiar

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900