public Intellua() { this.CallTipClick += new System.EventHandler <ScintillaNET.CallTipClickEventArgs>(this.intellua_CallTipClick); this.CharAdded += new System.EventHandler <ScintillaNET.CharAddedEventArgs>(this.intellua_CharAdded); this.TextDeleted += new System.EventHandler <ScintillaNET.TextModifiedEventArgs>(this.intellua_TextDeleted); this.TextInserted += new System.EventHandler <ScintillaNET.TextModifiedEventArgs>(this.intellua_TextInserted); this.SelectionChanged += new EventHandler(this.Intellua_SelectionChanged); m_tooltip = new ToolTip(this); m_autoCompleteData = new AutoCompleteData(); ScintillaNET.Configuration.Configuration config = new ScintillaNET.Configuration.Configuration(Assembly.GetExecutingAssembly().GetManifestResourceStream("Intellua.ScintillaNET.xml"), "lua", true); ConfigurationManager.Language = "lua"; ConfigurationManager.Configure(config); Folding.IsEnabled = true; /*Margins[0].Width = 20; * Margins[1].Width = 20; * Margins[2].Width = 20;*/ AutoComplete.IsCaseSensitive = false; AutoComplete.AutoHide = false; //Indentation.ShowGuides = true; List <Bitmap> list = new List <Bitmap>(); Assembly asm = Assembly.GetExecutingAssembly(); Stream str; str = asm.GetManifestResourceStream("Intellua.member.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.method.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.function.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.type.png"); list.Add(new Bitmap(str)); AutoComplete.RegisterImages(list); m_source = new IntelluaSource(this); }
public Intellua() { this.CallTipClick += new System.EventHandler<ScintillaNET.CallTipClickEventArgs>(this.intellua_CallTipClick); this.CharAdded += new System.EventHandler<ScintillaNET.CharAddedEventArgs>(this.intellua_CharAdded); this.TextDeleted += new System.EventHandler<ScintillaNET.TextModifiedEventArgs>(this.intellua_TextDeleted); this.TextInserted += new System.EventHandler<ScintillaNET.TextModifiedEventArgs>(this.intellua_TextInserted); this.SelectionChanged += new EventHandler(this.Intellua_SelectionChanged); m_tooltip = new ToolTip(this); m_autoCompleteData = new AutoCompleteData(); ScintillaNET.Configuration.Configuration config = new ScintillaNET.Configuration.Configuration(Assembly.GetExecutingAssembly().GetManifestResourceStream("Intellua.ScintillaNET.xml"), "lua", true); ConfigurationManager.Language = "lua"; ConfigurationManager.Configure(config); Folding.IsEnabled = true; /*Margins[0].Width = 20; Margins[1].Width = 20; Margins[2].Width = 20;*/ AutoComplete.IsCaseSensitive = false; AutoComplete.AutoHide = false; //Indentation.ShowGuides = true; List<Bitmap> list = new List<Bitmap>(); Assembly asm = Assembly.GetExecutingAssembly(); Stream str; str = asm.GetManifestResourceStream("Intellua.member.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.method.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.function.png"); list.Add(new Bitmap(str)); str = asm.GetManifestResourceStream("Intellua.type.png"); list.Add(new Bitmap(str)); AutoComplete.RegisterImages(list); m_source = new IntelluaSource(this); }