It is currently Fri Jun 22, 2018 1:00 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Mon Mar 12, 2018 9:35 pm 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
Hello, I have a problem, and could not find a solution in the forum.
On Windows, I use the following script to display an edge column in the PB IDE.
Code:
Define Color, *Sci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If *Sci
   Color = SendMessage_(*Sci, #SCI_STYLEGETBACK, #STYLE_LINENUMBER, #Null)
   SendMessage_(*Sci, #SCI_SETEDGECOLOUR, Color, #Null)
   SendMessage_(*Sci, #SCI_SETEDGECOLUMN, 129,   #Null)
   SendMessage_(*Sci, #SCI_SETEDGEMODE, #EDGE_LINE, #Null)
EndIf
image edge column:
Image


But how can I do that under Linux?
I've created many tools for the PB IDE on Windows, and they all always need SendMessage_ ().
I would like to switch to Linux completely in the near future, it is important for me to use my tools also under Linux.

What is the Linux adequacy to SendMessage_ ()?
How can I use the #SCI_ constants in linux to communicate with the PB IDE (Scintilla)?


Last edited by Taz on Mon Mar 12, 2018 10:28 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Mon Mar 12, 2018 9:54 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 395
Location: France
Why not use ScintillaSendMessage() ? This works for all os.

_________________
(English is not my native language, I used an online translator)
Windows 10 x64 - CPU intel i3 - RAM 16Go - NVidia GT 620 - 1920x1080 - Linux Slackware, Debian - xfce - (VirtualBox 5) - raspberry pi


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Mon Mar 12, 2018 10:25 pm 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
Marc56us wrote:
Why not use ScintillaSendMessage() ? This works for all os.
ScintillaSendMessage works only on a gadget created with ScintillaGadget(), not on external ones like eg. that from the PB IDE.


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Tue Mar 13, 2018 2:01 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1553
Taz wrote:
I've created many tools for the PB IDE on Windows, and they all always need SendMessage_ ().


Same for me. I would like to know this as well! (For the Mac IDE)


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Sat Mar 17, 2018 7:42 pm 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
Does nobody have a solution?


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Sat Mar 17, 2018 8:26 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 979
The question is as old as PB uses scintilla.
So far, no one has published an IDE tool that can handle it.

_________________
PureBasic 5.46 LTS / 5.62 (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column
PostPosted: Sun Mar 18, 2018 7:31 pm 
Offline
User
User

Joined: Sat Jan 20, 2018 5:28 pm
Posts: 27
Location: Germany
Excuse me, I've only been there for 2 months.

Is it not supported by the PB IDE for Linux, or does not anyone know how this works?
Have the developers ever commented on this?
(Unfortunately, I could not find anything)

If it has been known for so long, why is not it announced in a fixed post? Or even better in the help file?
The variable "PB_TOOL_Scintilla" is totally useless for Linux & Mac.

Then, newcomers like me do not have to search and try for days, that just gets frustrated.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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