Пример #1
0
 public virtual void Render(Graphics g, RibbonThemaSettingsBase settings)
 {
     foreach (var item in this.ToolItems)
     {
         item.Render(g, settings, GetItemBounds(item));
     }
     settings.DrawCarvedBorder(g, settings.LightBorder, settings.DarkBorder, this.Group.GetToolStripBounds(this));
 }
Пример #2
0
        public override void Render(Graphics g, RibbonThemaSettingsBase settings, Rectangle itemBounds)
        {
            base.Render(g, settings, itemBounds);
            Rectangle headerBounds = itemBounds;

            {
                headerBounds.Y     += itemBounds.Height - HeaderHeight;
                headerBounds.Width -= 1;
                headerBounds.Height = this.HeaderHeight - 1;
            }
            g.FillRectangle(settings.Header.Brush, headerBounds);
            settings.DrawCarvedBorder(g, settings.LightBorder, settings.DarkBorder, itemBounds);
            settings.DrawCarvedText(g, settings.LightText, settings.DarkText, headerBounds, this.Name, settings.Font);
        }
Пример #3
0
 public override void Render(Graphics g, RibbonThemaSettingsBase settings, Rectangle itemBounds)
 {
     settings.DrawCarvedBorder(g, settings.LightBorder, settings.DarkBorder, itemBounds);
     this.ribbonButton.Render(g, settings, GetItemBounds(this.ribbonButton));
 }