PureBasic Forum
http://forums.purebasic.com/english/

Linux PB IDE, Tools, Scintilla, SendMessage, edge column
http://forums.purebasic.com/english/viewtopic.php?f=15&t=70359
Page 1 of 1

Author:  Taz [ Mon Mar 12, 2018 9:35 pm ]
Post subject:  Linux PB IDE, Tools, Scintilla, SendMessage, edge column

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)?

Author:  Marc56us [ Mon Mar 12, 2018 9:54 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Why not use ScintillaSendMessage() ? This works for all os.

Author:  Taz [ Mon Mar 12, 2018 10:25 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

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.

Author:  kenmo [ Tue Mar 13, 2018 2:01 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

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)

Author:  Taz [ Sat Mar 17, 2018 7:42 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

Does nobody have a solution?

Author:  Bisonte [ Sat Mar 17, 2018 8:26 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

The question is as old as PB uses scintilla.
So far, no one has published an IDE tool that can handle it.

Author:  Taz [ Sun Mar 18, 2018 7:31 pm ]
Post subject:  Re: Linux PB IDE, Tools, Scintilla, SendMessage, edge column

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/