/// <summary> /// Draws floating toolbar background. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void DrawFloatingToolbarBackground(ToolbarRendererEventArgs e) { }
/// <summary> /// Draws docked or floating toolbar background. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you /// do not want default rendering to occur do not call the base implementation. You can call OnRenderToolbarBackground method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawToolbarBackground(ToolbarRendererEventArgs e) { BarBackgroundPainter painter = PainterFactory.CreateBarBackgroundPainter(e.Bar); if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; if (e.Bar.BarState == eBarState.Docked) painter.PaintDockedBackground(e); else if (e.Bar.BarState == eBarState.Floating) painter.PaintFloatingBackground(e); base.DrawToolbarBackground(e); }
/// <summary> /// Draws popup toolbar background. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you /// do not want default rendering to occur do not call the base implementation. You can call OnRenderPopupToolbarBackground method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawPopupToolbarBackground(ToolbarRendererEventArgs e) { OnRenderPopupToolbarBackground(e); }
/// <summary> /// Draws popup toolbar background. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you /// do not want default rendering to occur do not call the base implementation. You can call OnRenderPopupToolbarBackground method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawPopupToolbarBackground(ToolbarRendererEventArgs e) { BarBackgroundPainter painter = PainterFactory.CreateBarBackgroundPainter(e.Bar); if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintPopupBackground(e); base.DrawPopupToolbarBackground(e); }
/// <summary> /// Raises RenderPopupToolbarBackground event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderPopupToolbarBackground(ToolbarRendererEventArgs e) { if (RenderPopupToolbarBackground != null) RenderPopupToolbarBackground(this, e); }