It is currently Sun Oct 22, 2017 6:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: IDE Tool programing
PostPosted: Sat Aug 12, 2017 4:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 328
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


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE Tool programing
PostPosted: Sat Aug 12, 2017 11:20 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 852
Location: Ukraine
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.

_________________
Enchanted Dreams

Copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE Tool programing
PostPosted: Sat Aug 12, 2017 11:30 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 861
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.

_________________
PureBasic 5.45 LTS / 5.61 (Windows x86/x64) | Windows10 Pro x64 | Z87-PLUS | i7 4770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye