Forums
MouseDown, MouseUp - wrong mouse position? - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: .NET 2.0 - 4.0 Components (/forum-8.html)
+--- Forum: VideoLab (/forum-21.html)
+--- Thread: MouseDown, MouseUp - wrong mouse position? (/thread-66.html)



MouseDown, MouseUp - wrong mouse position? - bodeg - 12-07-2011 05:31 PM

I registered to the dsImageDisplay mouse events - MouseUp and MouseDown.

When I press the left mouse button without moving the cursor - I do receive those events but with different locations (MouseEventArgs).
I think the offeset is consistent, and changed when the control is resized.

When pressing the right mouse button - the locations are equal.

The dsImageDisplay is docked (try also none docked) inside a tableLayoutPanel.

Any idea?
Best regards, Bodeg.


RE: MouseDown, MouseUp - wrong mouse position? - bodeg - 12-08-2011 12:35 AM

Once I set the dsImageDisplay.Center property to false, the problem has been solved.



(12-07-2011 05:31 PM)bodeg Wrote:  I registered to the dsImageDisplay mouse events - MouseUp and MouseDown.

When I press the left mouse button without moving the cursor - I do receive those events but with different locations (MouseEventArgs).
I think the offeset is consistent, and changed when the control is resized.

When pressing the right mouse button - the locations are equal.

The dsImageDisplay is docked (try also none docked) inside a tableLayoutPanel.

Any idea?
Best regards, Bodeg.