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)); }
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); }
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)); }