Here's the thing about how it works. I could never pull off wrapping scintilla into the user control itself. I tried several times. It would always work in SDI just like it did in the ScintillaVB sample but if it was used in an MDI setup it would fail to work every time. So I came up with this method. The control you see is an invisible at runtime control. But if in the load event you call UserControlName.InitScintilla. The end result is Scintilla is on the form not on the usercontrol which seems to allow it to do everything it's supposed to both in SDI and MDI.
As far as not using the scintilla.iface? Well I don't know if it could be done as readily in VB. I've seen the way the code can be auto generated from the iface but consider how much more complicated some of the functions were to do in VB in comparison to most other languages. A lot of the problems come from the f! act that VB doesn't have a char type. So everything that needs to be send to scintilla with a char type has to be manually converted into a byte array varrying depending on how it's being used and then send it.
As for some of the other features like exporttohtml yes they are more like scite than scintilla persay but I wanted to put in some of the features I really liked from scite cause it's an awesome editor :)
As far as having a default language format thats entirely up to the user if they want to use. It shows up as a seperate control in fact. But the user can ignore it if they want.
And I'll agree that it's not so much a control. It was originally a class. I prefer it as a class but a lot of people wanted a control so I wrapped the class into a control which I supposed does make it a little bit easier to use.
Thanks
Stewart
Neil Hodgson <[EMAIL PROTECTED]> wrote:
As far as not using the scintilla.iface? Well I don't know if it could be done as readily in VB. I've seen the way the code can be auto generated from the iface but consider how much more complicated some of the functions were to do in VB in comparison to most other languages. A lot of the problems come from the f! act that VB doesn't have a char type. So everything that needs to be send to scintilla with a char type has to be manually converted into a byte array varrying depending on how it's being used and then send it.
As for some of the other features like exporttohtml yes they are more like scite than scintilla persay but I wanted to put in some of the features I really liked from scite cause it's an awesome editor :)
As far as having a default language format thats entirely up to the user if they want to use. It shows up as a seperate control in fact. But the user can ignore it if they want.
And I'll agree that it's not so much a control. It was originally a class. I prefer it as a class but a lot of people wanted a control so I wrapped the class into a control which I supposed does make it a little bit easier to use.
Thanks
Stewart
Neil Hodgson <[EMAIL PROTECTED]> wrote:
Its not so much a Scintilla ActiveX as an extended control with
quite a lot of SciTE's features added in like file I/O, styling
preferences, and Save as HTML. It looks like the code was created
manually rather than using a script to read Scintilla.iface and
generate code for the interface which requires less work both
initially and when integrating features from a new Scintilla release.
I don't have VB6, only Visual Studio .NET and the conversion wizard
can't cope with some absolute paths to your personal directory in the
projects. Registering and then trying to insert
ScintillaWrapper.usrScintilla into a C++ MFC application produced an
icon that couldn't be resized and wouldn't go active when run. The
ActiveX Control Test Container couldn't do much with the control
either! .
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping
_______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
