protected void PaintNormalState(Graphics g)
{
Rectangle newRect = new Rectangle(
ClientRectangle.X + 1,
ClientRectangle.Y + 1,
ClientRectangle.Width - 2,
ClientRectangle.Height - 2);
brush = new LinearGradientBrush(
newRect,
m_color1,
m_color2,
mode);
g.FillRectangle(brush, newRect);
g.DrawRectangle(new Pen(m_color2, 1), newRect);
protected void PaintHoverState(Graphics g)
Rectangle newRect = new Rectangle(
ClientRectangle.X + 1,
ClientRectangle.Y + 1,
ClientRectangle.Width - 2,
ClientRectangle.Height - 2);
brush = new LinearGradientBrush(
newRect,
m_color2,
m_color1,
mode);
g.FillRectangle(brush, newRect);
g.DrawRectangle(new Pen(m_color2, 1), newRect);
}
protected void PaintClickedState(Graphics g)
Rectangle newRect = new Rectangle(
ClientRectangle.X + 1,
ClientRectangle.Y + 1,
ClientRectangle.Width - 2,
ClientRectangle.Height - 2);
brush = new LinearGradientBrush(
newRect,
m_color2,
m_color2,
mode);
g.FillRectangle(brush, newRect);
g.DrawRectangle(new Pen(m_color2, 1), newRect);
}