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
HI Matt,
Thanks for your reply. Sorry, think I was being stupid. :o)
I've got it working now.
Thanks again.
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