Hi all,
I am writing a text editor. I need to make the following things to be working:
1) Caret of the textbox, follow the mouse cursor when the left mouse button is pressed and the mouse cursor is on the textbox. (This is for the drag drop function. I want to drag and drop treeview items to the mouse cursor position)
2) If the mouse cursor location is on the text box but out of the caret line areas (For example: if there are two lines of code if I keep the mouse on the third or higher number of lines), I want the value added to the end of the text and caret position comes to the end of the text.
I will appreciate if anyone can help about this problem.
Kindest Regards
I am writing a text editor. I need to make the following things to be working:
1) Caret of the textbox, follow the mouse cursor when the left mouse button is pressed and the mouse cursor is on the textbox. (This is for the drag drop function. I want to drag and drop treeview items to the mouse cursor position)
2) If the mouse cursor location is on the text box but out of the caret line areas (For example: if there are two lines of code if I keep the mouse on the third or higher number of lines), I want the value added to the end of the text and caret position comes to the end of the text.
I will appreciate if anyone can help about this problem.
Kindest Regards