예제 #1
0
 protected override void OnRenderStatusStripSizingGrip(System.Windows.Forms.ToolStripRenderEventArgs e)
 {
     if (currentRenderer != null)
     {
         currentRenderer.DrawStatusStripSizingGrip(e);
         return;
     }
     base.OnRenderStatusStripSizingGrip(e);
 }
예제 #2
0
 protected override void OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs e)
 {
     if (_currentRenderer != null)
     {
         _currentRenderer.DrawStatusStripSizingGrip(e);
     }
     else
     {
         base.OnRenderStatusStripSizingGrip(e);
     }
 }
예제 #3
0
        protected override void OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs e)
        {
            Color dark  = PluginBase.MainForm.GetThemeColor("ToolStrip.3dDarkColor");
            Color light = PluginBase.MainForm.GetThemeColor("ToolStrip.3dLightColor");

            if (dark != Color.Empty && light != Color.Empty)
            {
                using (SolidBrush darkBrush = new SolidBrush(dark), lightBrush = new SolidBrush(light))
                {
                    // Do we need to invert the drawing edge?
                    bool rtl = (e.ToolStrip.RightToLeft == RightToLeft.Yes);

                    // Find vertical position of the lowest grip line
                    int y = e.AffectedBounds.Bottom - 3 * 2 + 1;

                    // Draw three lines of grips
                    for (int i = 3; i >= 1; i--)
                    {
                        // Find the rightmost grip position on the line
                        int x = (rtl ? e.AffectedBounds.Left + 1 : e.AffectedBounds.Right - 3 * 2 + 1);

                        // Draw grips from right to left on line
                        for (int j = 0; j < i; j++)
                        {
                            // Just the single grip glyph
                            DrawGripGlyph(e.Graphics, x, y, darkBrush, lightBrush);

                            // Move left to next grip position
                            x -= (rtl ? -4 : 4);
                        }
                        // Move upwards to next grip line
                        y -= 4;
                    }
                }
            }
            else
            {
                renderer.DrawStatusStripSizingGrip(e);
            }
        }
예제 #4
0
 protected override void OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs e)
 {
     renderer.DrawStatusStripSizingGrip(e);
 }