[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms/Themes DefaultTh
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms/Themes DefaultThemePainter.cs, 1.3, 1.4 |
Date: |
Fri, 11 Jul 2003 12:49:21 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes
In directory subversions:/tmp/cvs-serv30532/System.Windows.Forms/Themes
Modified Files:
DefaultThemePainter.cs
Log Message:
Simon's checkbox patches with an example
Index: DefaultThemePainter.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes/DefaultThemePainter.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DefaultThemePainter.cs 8 Jul 2003 16:24:06 -0000 1.3
--- DefaultThemePainter.cs 11 Jul 2003 16:49:17 -0000 1.4
***************
*** 935,943 ****
// Draw a check box control.
! [TODO]
public virtual void DrawCheckBox(Graphics graphics, int x, int y,
int width,
int height, ButtonState state)
{
! // TODO
}
--- 935,959 ----
// Draw a check box control.
! // TODO: antialiased checkmark
public virtual void DrawCheckBox(Graphics graphics, int x, int y,
int width,
int height, ButtonState state)
{
! Brush brush = new SolidBrush(Color.White);
! ControlPaint.DrawBorder3D(graphics, x, y,
width, height, Border3DStyle.Sunken, Border3DSide.All);
! graphics.FillRectangle(brush, x + 2, y + 2,
width - 2, height - 2);
! brush.Dispose();
!
! if (state == ButtonState.Checked)
! {
! Brush brush = new
SolidBrush(Color.Black);
! Pen pen = new Pen(brush, 2);
!
! GraphicsPath path = new GraphicsPath();
! path.AddLine(x + 3, y + 5, x + 4, y +
7);
! path.AddLine(x + 5, y + 8, x + 9, y +
3);
! graphics.DrawPath(pen, path);
! brush.Dispose();
! pen.Dispose();
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms/Themes DefaultThemePainter.cs, 1.3, 1.4,
Gopal.V <address@hidden> <=