Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Linux specific forum
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Taz »

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: Select all

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.
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Marc56us »

Why not use ScintillaSendMessage() ? This works for all os.
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Taz »

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.
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by kenmo »

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)
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Taz »

Does nobody have a solution?
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Bisonte »

The question is as old as PB uses scintilla.
So far, no one has published an IDE tool that can handle it.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Post by Taz »

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.
Post Reply