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

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

[Dotgnu-pnet-commits] pnetlib/System.Windows.Forms/Themes DefaultThemePa


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Windows.Forms/Themes DefaultThemePainter.cs, 1.19, 1.20 IThemePainter.cs, 1.8, 1.9
Date: Thu, 20 Nov 2003 23:31:18 +0000

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

Modified Files:
        DefaultThemePainter.cs IThemePainter.cs 
Log Message:


Improve the look of menus and hide definitions that should not
be in the public API.


Index: IThemePainter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes/IThemePainter.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** IThemePainter.cs    2 Nov 2003 22:14:38 -0000       1.8
--- IThemePainter.cs    20 Nov 2003 23:31:15 -0000      1.9
***************
*** 165,168 ****
--- 165,171 ----
        void FillReversibleRectangle(Rectangle rectangle, Color backColor);
  
+       // Draw a menu separator line.
+       void DrawSeparator(Graphics graphics, Rectangle rectangle);
+ 
  }; // class IThemePainter
  

Index: DefaultThemePainter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Themes/DefaultThemePainter.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** DefaultThemePainter.cs      20 Nov 2003 10:25:19 -0000      1.19
--- DefaultThemePainter.cs      20 Nov 2003 23:31:15 -0000      1.20
***************
*** 1759,1762 ****
--- 1759,1775 ----
                        }
  
+       // Draw a menu separator line.
+       public virtual void DrawSeparator(Graphics graphics, Rectangle 
rectangle)
+                       {
+                               int x = rectangle.X + 2;
+                               int width = rectangle.Width - 4;
+                               int y = rectangle.Y + (rectangle.Height / 2);
+                               graphics.DrawLine
+                                       (SystemPens.ControlDark, x, y, x + 
width - 1, y);
+                               graphics.DrawLine
+                                       (SystemPens.ControlLightLight, x, y + 1,
+                                        x + width - 1, y + 1);
+                       }
+ 
  }; // class DefaultThemePainter
  





reply via email to

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