• Welcome to Theos PowerBasic Museum 2017.

Scintilla

Started by Gary Beene, June 18, 2010, 11:01:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gary Beene

I'm considering an update of gbSnippets, written in PowerBASIC, to use the Scintilla control.  I'm looking for comments from anyone who has used Scintilla.

Easy to use?  Worth the pain of converting?  Problems specific to PowerBASIC?  Suggested alternative editing control?

I've downloaded the SED source code and will be looking at it for information also. As I understand, it uses Scintilla.


José Roca

 
I found it very easy to use. There is not an API to learn. You can use all of his features with just SendMessage. Also, if you use an unmodified version of SciLexer.dll, you will need to load it at the beginning of your application with LoadLibrary.

SED uses almost all of the available options, so it can be of great help to you.


Gary Beene

Thank you, Jose, for the response.

Would you explain what you mean by "unmodified"?


José Roca

 
You can write your own function to set the rules for styling and folding, but as I'm not a C programmer, I use the lexer provided for Visual Basic.

Gary Beene

Thank you Jose, for the ongoing comments.

I pulled up the source code for SED and have been looking at it.  As a mostly DDT guy, some of the code is not familiar territory, but I hope that will change as the evening wears on. 

I'll also go look in the PB forums for whatever "introductory" examples of using the Scintilla control I can find.

But first stop will be a simple try with CONTROL ADD to see what that does.

It's a good think my wife goes to bed early - I'll be free to play geek for as long as I want!





José Roca

 
In the file SED_SCI.INC you will find the options for styling and folding.