Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
UltraFormattedTextEditor - Dragdrop at mouse location
posted

I am trying to allow the user to drag and drop text into an UltraFormattedTextEditor.

However, the "GetCaretPositionFromMouseLocation" method does not seem to return position the text at the mouse location, instead it returns the location at the end of the text.

Please could anybody give me an example of how to use the GetCaretPositionFromMouseLocation method effectively. Thanks

Parents
  • 37774
    posted

    As a quick hack test, I tried this in the MouseUp event of the editor and it was returning the proper location for me.  One possibility that comes to mind is that you need to convert the point to client coordinates before you pass them into the method.  You would do this with the PointToClient method on the editor.

    -Matt

Reply Children
No Data