Ejemplo n.º 1
0
        public TabStrip()
        {
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.Selectable, true);
            _MenuGlyph = new TabStripMenuGlyph();

            _ContextDocsList = new ContextMenuStrip();

            _ContextDocsList.ItemClicked += new ToolStripItemClickedEventHandler(_ContextDocsList_ItemClicked);

            ((ToolStripProfessionalRenderer)_ContextDocsList.Renderer).ColorTable.UseSystemColors = true;

            _CloseButton = new TabStripCloseButton();

            this.Font = new Font(FontFamily.GenericSansSerif, 9);
        }
Ejemplo n.º 2
0
        public TabStrip()
        {
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.Selectable, true);
            _MenuGlyph = new TabStripMenuGlyph();

            _ContextDocsList = new ContextMenuStrip();

            _ContextDocsList.ItemClicked += new ToolStripItemClickedEventHandler(_ContextDocsList_ItemClicked);

            ((ToolStripProfessionalRenderer)_ContextDocsList.Renderer).ColorTable.UseSystemColors = true;

            _CloseButton = new TabStripCloseButton();

            this.Font = new Font(FontFamily.GenericSansSerif, 9);
        }