I'm writing an extension for the Embarcadero C++ Builder IDE and want to programmatically insert text inside the code editor at the cursor position. I searched the Tools API header files but only found an interface which allows me to insert text at the start of the editor.
Is there any interface or function which allows me to insert text at a specified position? And if so, can you provide me a code example?
I'm writing the extension in C++, but code examples in Delphi will do too.