tools/Stampfer/PeterSource1_1/DockContent/VistaButton.cs
/// <summary>
/// Draws the inner border for the control
/// using the HighlightColor property.
/// </summary>
/// <param name="g">The graphics object used in the paint event.</param>
Draws the inner border for the control
using the HighlightColor property.
Draws the inner border for the control using the HighlightColor property .
private void DrawInnerStroke (Graphics g)
        {
            if (this.ButtonStyle == Style.Flat && this.mButtonState == State.None) { return; }
            Rectangle r = this.ClientRectangle;
            r.X++; r.Y++;
            r.Width -= 3; r.Height -= 3;
            using (GraphicsPath rr = RoundRect(r, CornerRadius, CornerRadius, CornerRadius, CornerRadius))
            {
                using (Pen p = new Pen(this.HighlightColor))
                {
                    g.DrawPath(p, rr);
                }
            }
        }
private void DrawInnerStroke ( Graphics g ) { if ( this . ButtonStyle == Style . Flat && this . mButtonState == State . None ) { return ; } Rectangle r = this . ClientRectangle ; r . X ++ ; r . Y ++ ; r . Width -= 3 ; r . Height -= 3 ; using ( GraphicsPath rr = RoundRect ( r , CornerRadius , CornerRadius , CornerRadius , CornerRadius ) ) { using ( Pen p = new Pen ( this . HighlightColor ) ) { g . DrawPath ( p , rr ) ; } } }
Draws the inner border for the control
using the HighlightColor property.
Draws the inner border for the control using the HighlightColor property .
g
Graphics
The graphics object used in the paint event.
The graphics object used in the paint event .