vb6 Using Scintilla SciLexer DLL
- Scintilla VB ActiveX control On planet source code – I was able to make this one work: make the activeX control in the highest directory there will be error on load but it works > then add a reference to the Demo project forms > change their names to the ones used in the code hlMain & sciMain then it runs. It maybe the same content that is up on SourceForge. I think it may be using the installation of the Scintilla SciLexer.dll that I happened to get via TourtouseSVN. This copy of the DLL was responsible for making the simple VB example work with "Scintilla in Visual Basic" shown below. I tried it on a new machine and the editing area was not created because it did not have the incidental copy of SciLexer.dll.
- This page's Project Code for download on Planet Source Code It is the same code here on the Scintilla.org site
- Scintilla Settings / Configuration File
- cEditXP – a much more involved VB6 project using Scintilla
- Scintilla VB ActiveX control on SourceForge
SubClassing
- Page with alot of Windows subclassing and messaging small code tutorials
- VB Helper SubClassing Tutorial
- SubClassing and Hooking with Visual Basic
Shell Reparenting
Scintilla in VB
Before I begin let me state that yes I am aware that there is an activex control which wraps some of Scintilla's features. However like any such control it lacks many of the features Scintilla offers, and isn't updated to support any new features Scintilla adds. Along with that it has several fairly large bugs in it. My goal in this tutorial is to explain how to either use Scintilla without a wrapper or learn enough about how to make use of it to add any features that the control lacks.
What is Scintilla
For those of you who havn't seen Scintilla yet Check it out here. I take absolutly no credit for Scintilla. I didn't write it, nor have I even modified it. I'll admit it's code goes way beyond my own abilities. As for what it is? Well it's an excellent, free and opensource Library providing extensive support for syntax highlighting and it even offers code folding. It's quite stable, and cross platform. You can make use of it from just about any language that supports API calls in windows. This means yes VB can make use of it :)
The total source code for this tutorial is included with this submission. Before we get started you should download the source as this code makes use of 2 modules. These modules are fairly basic and very self explanitory. The one is some ini reading and writing code. Credit for this module goes total an author on PSC. Unfortunatly I was unable to find the original on PSC as I've had it quite some time, so I don't know who to name credit to so I'll just leave it at I didn't write it. The second module is actually from the ScintillaVB control and it's some of Scintilla's major constants.
….. more


