I thought I'd drop in an say hi :) ScintillaNET is great :)
Regards, Greg Dietsche http://www.gregd.org/ GForce Programming: http://calc.gregd.org Detached Solutions: http://www.detachedsolutions.com
Index: D:/Visual Studio Projects/ScintillaNET/ScintillaNET/ScintillaControl.cs =================================================================== --- D:/Visual Studio Projects/ScintillaNET/ScintillaNET/ScintillaControl.cs (revision 13) +++ D:/Visual Studio Projects/ScintillaNET/ScintillaNET/ScintillaControl.cs (working copy) @@ -11,11 +11,21 @@ {
#region "custom code" + public ScintillaControl(string lexerpath_and_name) + { + ScintillaConstructor(lexerpath_and_name); + } + public ScintillaControl() { + ScintillaConstructor("SciLexer.dll"); + } + + protected void ScintillaConstructor(string lexerdll) + { try { - IntPtr lib = WinAPI.LoadLibrary("SciLexer.dll"); + IntPtr lib = WinAPI.LoadLibrary(lexerdll); hwndScintilla = WinAPI.CreateWindowEx(0, "Scintilla","", WS_CHILD_VISIBLE_TABSTOP, 0,0,this.Width,this.Height,this.Handle ,0, new IntPtr(0) ,null); _directPointer = (int)SlowPerform(2185, 0, 0); Resize+=( new EventHandler( doResize ) ); @@ -25,12 +35,11 @@ } catch( Exception x ) { - throw x; + throw x; }
_indexMarginType = new Indexed.MarginType(this); _indexIndicatorStyle = new Indexed.IndicatorStyle(this); - }
-------------------------------------------------------------------------- ScintillaNET Mailing List: ScintillaNET@xxxxxxxxxxxxx