public PageCollection() { CurrentPageChanged += new CurrentPageChangedEventHandler(TabPages_CurrentPageChanged); FontChanged += new EventHandler(PageCollection_FontChanged); PageAdded += new PageAddedEventHandler(TabPages_PageAdded); PageRemoved += new PageRemovedEventHandler(TabPages_PageRemoved); PageContainer = new PagePanel(this); myTabView = new TabView(this); }
public DropdownButton(TabView view) { this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); DropdownMenu = CreateMenu(); this.ArrowDirection = DropdownButton.EArrowDirection.Down; this.Dock = System.Windows.Forms.DockStyle.Left; this.IsClicking = false; this.Location = new System.Drawing.Point(0, 0); this.Size = new System.Drawing.Size(16, view.Height); this.Visible = false; view.Pages.ToolTips.SetToolTip(this, "Show all open pages."); }