06-12-2008, 15:36
|
GregR

Joined on 05-31-2006
In House
Posts 1,536
|
Re: Centering a mouse cursor over the center of a rasterImageViewer
|
 
 
|
|
|
LEADTOOLS doesn't have anything to move the mouse cursor. You will need to declare and use the API function SetCursorPos and ClientToScreen.
I've never tried it in WPF, but I would imagine you can get the client coordinates of the RasterImageViewer relative to the WPF form and then do the math and pass the correct point. There might be a better way to do this as far as doing the math to get the point you want, but it's more of a Windows API/WPF API issue. If you have any more questions regarding this you should contact Microsoft.
Here's an example of how to declare those API functions and center the cursor on a button.
http://swigartconsulting.blogs.com/tech_blender/2005/08/how_to_move_the.html
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|