Beispiel #1
0
 public BasicScintillaControl()
 {
     SetStyle(ControlStyles.UserPaint, false);
     Ref = new EditorRef(Handle);
     InternalInitialize();
     //Ref.Send(Sci.SCI_SETYCARETPOLICY, Sci.CARET_SLOP | Sci.CARET_STRICT | Sci.CARET_EVEN, 50);
 }
Beispiel #2
0
        internal StandardStyles(EditorRef @ref)
        {
            Default    = new Style(@ref, TextStyle.Default);
            CallTip    = new Style(@ref, TextStyle.CallTip);
            BraceMatch = new Style(@ref, TextStyle.BraceMatch);
            BraceBad   = new Style(@ref, TextStyle.BraceBad);
            Hyperlink  = new Style(@ref, TextStyle.Hyperlink);
            Invisible  = new Style(@ref, TextStyle.Invisible);

            Style1  = new Style(@ref, TextStyle.Style1);
            Style2  = new Style(@ref, TextStyle.Style2);
            Style3  = new Style(@ref, TextStyle.Style3);
            Style4  = new Style(@ref, TextStyle.Style4);
            Style5  = new Style(@ref, TextStyle.Style5);
            Style6  = new Style(@ref, TextStyle.Style6);
            Style7  = new Style(@ref, TextStyle.Style7);
            Style8  = new Style(@ref, TextStyle.Style8);
            Style9  = new Style(@ref, TextStyle.Style9);
            Style10 = new Style(@ref, TextStyle.Style10);
            Style11 = new Style(@ref, TextStyle.Style11);
            Style12 = new Style(@ref, TextStyle.Style12);

            MultilineStyle1 = new Style(@ref, TextStyle.MultilineStyle1);
            MultilineStyle2 = new Style(@ref, TextStyle.MultilineStyle2);
            MultilineStyle3 = new Style(@ref, TextStyle.MultilineStyle3);
            MultilineStyle4 = new Style(@ref, TextStyle.MultilineStyle4);

            Annotation1 = new Style(@ref, TextStyle.Annotation1);
            Annotation2 = new Style(@ref, TextStyle.Annotation2);
            Annotation3 = new Style(@ref, TextStyle.Annotation3);

            Hyperlink.Hotspot = true;
            Invisible.Visible = false;
        }
Beispiel #3
0
 internal StandardIndicators(EditorRef @ref)
 {
     this.@ref    = @ref;
     Hint         = new Indicator(0, @ref);
     Information  = new Indicator(1, @ref);
     Warning      = new Indicator(2, @ref);
     Error        = new Indicator(3, @ref);
     Important    = new Indicator(4, @ref);
     FoundSymbol  = new Indicator(5, @ref);
     FoundSymbol2 = new Indicator(6, @ref);
     Mark         = new Indicator(7, @ref);
 }
Beispiel #4
0
 internal Indicator(int num, EditorRef @ref)
 {
     Number    = num;
     this.@ref = @ref;
 }
Beispiel #5
0
 internal Line(int number, EditorRef sref)
 {
     this.sref = sref;
     Number    = number;
 }
Beispiel #6
0
 internal Style(EditorRef @ref, TextStyle key)
 {
     this.@ref = @ref;
     Key       = key;
 }
Beispiel #7
0
 internal KeyboardManager(EditorRef @ref)
 {
     Ref = @ref;
 }
Beispiel #8
0
 internal SciDocument(EditorRef @ref, IntPtr ptr)
 {
     Pointer   = ptr;
     this.@ref = @ref;
 }
Beispiel #9
0
 internal Selection(int number, EditorRef sref)
 {
     this.sref = sref;
     Number    = number;
 }
Beispiel #10
0
 internal FoldingManager(EditorRef @ref)
 {
     this.@ref = @ref;
 }