Get the mouse location from a screen point.

2 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 23 Nov 2009 Link to this post

    Hi,

    How does one go about getting a location if all you have is the mouse coordinates?  The reason why I ask is that I am handling the mouse move event which only has e.GetPosition() to get my position relative to my control.  I need to convert that to a Location relative to the map.

    Cheers,
    Clint
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 25 Nov 2009 Link to this post

    Hi Clint,

    You can use the static GetCoordinates(...) method of the Location class. It returns the Location according to the pixel point on the map control.


    Best wishes,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top