コード例 #1
0
 private void tEdit_Load(object sender, EventArgs e)
 {
     tmpTabPage                = tabPages[tabPageCounter] = new CodieTabPageEditor();
     tmpTabPage.scintilla      = new ScintillaNET.Scintilla();
     tmpTabPage.scintilla.Dock = DockStyle.Fill;
     tmpTabPage.tabPage        = tabPage0;
     tmpTabPage.tabPage.Controls.Add(tmpTabPage.scintilla);
     tmpTabPage.configureTabPage();
     this.splitContainer.Panel2Collapsed = true;
 }
コード例 #2
0
 private void addTabPage(string text)
 {
     ++tabPageCounter;
     tmpTabPage              = tabPages[tabPageCounter] = new CodieTabPageEditor();
     tmpTabPage.tabPage      = new TabPage();
     tmpTabPage.tabPage.Name = "tabPage" + String.Format("{0}", tabPageCounter);
     tmpTabPage.tabPage.Text = text;
     editTabs.TabPages.Add(tmpTabPage.tabPage);
     tmpTabPage.scintilla      = new ScintillaNET.Scintilla();
     tmpTabPage.scintilla.Dock = DockStyle.Fill;
     editTabs.SelectTab(tmpTabPage.tabPage);
     tmpTabPage.tabPage.Controls.Add(tmpTabPage.scintilla);
     tmpTabPage.configureTabPage();
 }