roadbeer69
Programmer
Hi All,
I am trying to position the caret in a TRichEdit based on where a user right clicks, but TRichEdit only seems to position the cursor when a user left clicks.
When a right click occurs, I can get the mouse pointer position in pixels within the control, but I am not sure how to translate this into character position to place the caret at the point of the right click. I suspect I can coble something together, but was hoping there'd be an easy way to do this, sort of a "Place caret under mouse cursor on right-click" type of call.
Thanks in advance,
Jeff
I am trying to position the caret in a TRichEdit based on where a user right clicks, but TRichEdit only seems to position the cursor when a user left clicks.
When a right click occurs, I can get the mouse pointer position in pixels within the control, but I am not sure how to translate this into character position to place the caret at the point of the right click. I suspect I can coble something together, but was hoping there'd be an easy way to do this, sort of a "Place caret under mouse cursor on right-click" type of call.
Thanks in advance,
Jeff