protected internal DockPaneCaptionFromBase(DockPane pane)
            : base(pane)
        {
            SuspendLayout();
            Font = SystemInformation.MenuFont;

            m_buttonClose = new PopupButton(ImageCloseEnabled, ImageCloseDisabled);
            m_buttonClose.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonClose.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonClose.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonClose.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonAutoHide = new PopupButton();
            m_buttonAutoHide.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonAutoHide.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonAutoHide.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonAutoHide.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonOptions = new PopupButton(ImageOptionsEnabled, ImageOptionsDisabled);
            m_buttonOptions.ActiveBackColorGradientBegin = Color.FromArgb(59, 128, 237);
            m_buttonOptions.ActiveBackColorGradientEnd = Color.FromArgb(49, 106, 197);
            m_buttonOptions.InactiveBackColorGradientBegin = Color.FromArgb(204, 199, 186);
            m_buttonOptions.InactiveBackColorGradientEnd = Color.FromArgb(204, 199, 186);

            m_buttonClose.ToolTipText = ToolTipClose;
            m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonClose.Click += new System.EventHandler(Close_Click);

            m_buttonAutoHide.ToolTipText = ToolTipAutoHide;
            m_buttonAutoHide.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonAutoHide.Click += new System.EventHandler(AutoHide_Click);

            m_buttonOptions.ToolTipText = ToolTipOptions;
            m_buttonOptions.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            m_buttonOptions.Click += new System.EventHandler(Options_Click);

            Controls.AddRange(new Control[] {m_buttonClose, m_buttonAutoHide, m_buttonOptions});
            ResumeLayout();
        }
        protected internal DockPaneStripFromBase(DockPane pane)
            : base(pane)
        {
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            SuspendLayout();
            Font = SystemInformation.MenuFont;
            BackColor = Color.FromArgb(228, 226, 213);

            m_components = new Container();
            m_toolTip = new ToolTip(Components);

            m_buttonClose = new PopupButton(ImageCloseEnabled, ImageCloseDisabled);
            m_buttonClose.IsActivated = true;
            m_buttonClose.ActiveBackColorGradientBegin = Color.FromArgb(228, 226, 213);
            m_buttonClose.ActiveBackColorGradientEnd = Color.FromArgb(228, 226, 213);
            m_buttonClose.ToolTipText = ToolTipClose;
            m_buttonClose.Anchor = AnchorStyles.Top | AnchorStyles.Right;

            m_buttonOptions = new PopupButton(ImageOptionsEnabled, ImageOptionsDisabled);
            m_buttonOptions.IsActivated = true;
            m_buttonOptions.ActiveBackColorGradientBegin = Color.FromArgb(228, 226, 213);
            m_buttonOptions.ActiveBackColorGradientEnd = Color.FromArgb(228, 226, 213);
            m_buttonOptions.ToolTipText = ToolTipOptions;
            m_buttonOptions.Anchor = AnchorStyles.Top | AnchorStyles.Right;

            m_buttonClose.Click += new System.EventHandler(Close_Click);
            m_buttonOptions.Click += new System.EventHandler(Options_Click);
            Controls.AddRange(new Control[] { m_buttonClose, m_buttonOptions });
            ResumeLayout();
        }