/// <summary> /// Raises the RenderArrow event. /// </summary> /// <param name="e">A ToolStripArrowRenderEventArgs that contains the event data.</param> protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e) { if ((ColorTable.UseSystemColors == false) && (this.UseNetProfessionalColors == false)) { ProfessionalColourTable colourTable = ColorTable as ProfessionalColourTable; if (colourTable != null) { if ((e.Item.Owner.GetType() == typeof(MenuStrip)) && (e.Item.Selected == false) && e.Item.Pressed == false) { if (colourTable.MenuItemText != Color.Empty) { e.ArrowColor = colourTable.MenuItemText; } } if ((e.Item.Owner.GetType() == typeof(StatusStrip)) && (e.Item.Selected == false) && e.Item.Pressed == false) { if (colourTable.StatusStripText != Color.Empty) { e.ArrowColor = colourTable.StatusStripText; } } } } base.OnRenderArrow(e); }
/// <summary> /// Raises the RenderItemText event. /// </summary> /// <param name="e">A ToolStripItemTextRenderEventArgs that contains the event data.</param> protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e) { if ((ColorTable.UseSystemColors == false) && (this.UseNetProfessionalColors == false)) { ProfessionalColourTable colourTable = ColorTable as ProfessionalColourTable; if (colourTable != null) { if ((e.ToolStrip is MenuStrip) && (e.Item.Selected == false) && e.Item.Pressed == false) { if (colourTable.MenuItemText != Color.Empty) { e.TextColor = colourTable.MenuItemText; } } if ((e.ToolStrip is StatusStrip) && (e.Item.Selected == false) && e.Item.Pressed == false) { if (colourTable.StatusStripText != Color.Empty) { e.TextColor = colourTable.StatusStripText; } } } } base.OnRenderItemText(e); }
/// <summary> /// Initializes a new instance of the Office2007Renderer class. /// </summary> /// <param name="professionalColourTable">A <see cref="BSE.Windows.Forms.ProfessionalColorTable"/> to be used for painting.</param> public Office2007FlatRenderer(ProfessionalColourTable professionalColourTable) : base(professionalColourTable) { }
/// <summary> /// Initializes a new instance of the AquaRenderer class. /// </summary> /// <param name="professionalColourTable">A <see cref="ProfessionalColourTable"/> to be used for painting.</param> public AquaRenderer(ProfessionalColourTable professionalColourTable) : base(professionalColourTable) { }