Example #1
0
        protected virtual void DrawTabText(Graphics g, Rectangle bounds, string text, TextFormatFlags format)
        {
            BpTabControl       tabs    = (BpTabControl)Parent;
            VisualStyleElement element = tabs.GetElement(this);
            Font  font = SystemFonts.MenuFont;
            Color color;

            if (Disabled)
            {
                color = SystemColors.GrayText;
            }
            else
            {
                color = SystemColors.MenuText;
            }

            TextRenderer.DrawText(g, text, font, bounds, color, format);
        }