dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms/Themes DefaultTh


From: Andrew Mitchell <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms/Themes DefaultThemePainter.cs, 1.4, 1.5
Date: Sat, 12 Jul 2003 03:37:42 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes
In directory subversions:/tmp/cvs-serv19726/Themes

Modified Files:
        DefaultThemePainter.cs 
Log Message:
Committing Simon Guindon's patch that was not committed properly yesterday


Index: DefaultThemePainter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes/DefaultThemePainter.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DefaultThemePainter.cs      11 Jul 2003 16:49:17 -0000      1.4
--- DefaultThemePainter.cs      12 Jul 2003 07:37:40 -0000      1.5
***************
*** 964,968 ****
                                                                            
ButtonState state)
                        {
!                               // TODO
                        }
  
--- 964,984 ----
                                                                            
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();
!                               }
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]