I have a TSynEdit control on a form and I want to drag and drop the focused node text from a TVirtualStringTree. I would like it to behave in the same way as when you drag and drop the highlighted text within the TSynEdit control:
- As you drag over the TSynEdit, the caret should mark the current drop position.
- When the text is dropped, it should replace any text that is currently highlighted.
- The drop position should handle tabs correctly.
I have looked at the code in the TSynEdit DragOver event, but it uses several variables and procedures that I can't access in a descendant class as they are declared private.
I have checked all the TSynEdit demos and can't find one that addresses my needs.
Anybody managed to do this successfully?