Page 1 of 1

IDE Tool programing

Posted: Sat Aug 12, 2017 4:14 pm
by Wolfram
Hello,

I want to write an tool to change the selected code.
It's easy to send the selected code to my tool, but how can I return the result of my tool to the PB Editor?

I'm working on OSX

Re: IDE Tool programing

Posted: Sat Aug 12, 2017 11:20 pm
by Lunasole
Hi.
On Windows you can use API like SendMessage() to send commands to Scintilla control used by IDE.
Probably there is similar way on that OSX.

Scintilla commands already present in PB as those "#SCI_" constants, also can look Scintilla docs for details.

Re: IDE Tool programing

Posted: Sat Aug 12, 2017 11:30 pm
by Bisonte
He wants to send text to the open scintilla control of the purebasic-ide.
All tips & tricks to send it directly are windows only.

But another way was to load the sourcecode of the actual tab , change it, and reload the new one.