Page 1 of 1

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

Posted: Mon Mar 12, 2018 9:35 pm
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)?

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

Posted: Mon Mar 12, 2018 9:54 pm
by Marc56us
Why not use ScintillaSendMessage() ? This works for all os.

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

Posted: Mon Mar 12, 2018 10:25 pm
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.

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

Posted: Tue Mar 13, 2018 2:01 pm
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)

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

Posted: Sat Mar 17, 2018 7:42 pm
by Taz
Does nobody have a solution?

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

Posted: Sat Mar 17, 2018 8:26 pm
by Bisonte
The question is as old as PB uses scintilla.
So far, no one has published an IDE tool that can handle it.

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

Posted: Sun Mar 18, 2018 7:31 pm
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.