Exemplo n.º 1
0
        /// <summary>
        /// Draws floating toolbar background.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        protected virtual void DrawFloatingToolbarBackground(ToolbarRendererEventArgs e)
        {

        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Raises RenderPopupToolbarBackground event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderPopupToolbarBackground(ToolbarRendererEventArgs e)
 {
     if (RenderPopupToolbarBackground != null)
         RenderPopupToolbarBackground(this, e);
 }