Ejemplo n.º 1
0
        private void DrawSelectedButton(TabMDI.TabButton b, System.Drawing.Graphics g)
        {
            g.DrawLine(System.Drawing.Pens.White, b.x, 2, b.x, 20);
            g.DrawLine(System.Drawing.Pens.White, b.x, 2, b.x + b.panel.width, 2);
            g.DrawLine(System.Drawing.Pens.Black, b.x + b.panel.width  - 1, 3, b.x + b.panel.width - 1, 20);
            g.FillRectangle(this.grayBrush, b.x + 1, 3, b.panel.width - 2, 21);

            Rectangle rect = new Rectangle(b.x, 2 + 2, b.panel.width, 17);
            g.DrawString(b.panel.Text, this.boldFont, System.Drawing.Brushes.Black, rect, this.stringFormat);
        }
Ejemplo n.º 2
0
 internal void SetTabControl(TabMDI tabControl)
 {
     this.tabControl = tabControl;
 }
Ejemplo n.º 3
0
 private void DrawButton(TabMDI.TabButton b, System.Drawing.Graphics g)
 {
     Rectangle rect = new Rectangle(b.x, 2 + 2, b.panel.width, 17);
     g.DrawString(b.panel.Text, this.normalFont, this.textBrush1, rect, this.stringFormat);
 }