/[dotgnu-pnet]/pnetlib/System.Windows.Forms/Themes/DefaultThemePainter.cs
ViewVC logotype

Diff of /pnetlib/System.Windows.Forms/Themes/DefaultThemePainter.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by drobosson, Fri Aug 12 07:52:42 2005 UTC revision 1.36 by drobosson, Sat Aug 13 03:20:13 2005 UTC
# Line 1553  public class DefaultThemePainter : IThem Line 1553  public class DefaultThemePainter : IThem
1553                                  Imaging.ImageAttributes imageAttributes = new Imaging.ImageAttributes();                                  Imaging.ImageAttributes imageAttributes = new Imaging.ImageAttributes();
1554                                  imageAttributes.SetColorMatrix(colorMatrix);                                  imageAttributes.SetColorMatrix(colorMatrix);
1555                                  graphics.DrawImage(image,                                  graphics.DrawImage(image,
1556                                                  new Rectangle(0,0,image.Width,image.Height),                                                  new Rectangle(x, y, image.Width, image.Height),
1557                                                  x, y,                                                  0, 0,
1558                                                  image.Width,                                                  image.Width,
1559                                                  image.Height,                                                  image.Height,
1560                                                  GraphicsUnit.Pixel,                                                  GraphicsUnit.Pixel,
# Line 2170  public class DefaultThemePainter : IThem Line 2170  public class DefaultThemePainter : IThem
2170                          }                          }
2171    
2172          // Draw a size grip.          // Draw a size grip.
         [TODO]  
2173          public virtual void DrawSizeGrip          public virtual void DrawSizeGrip
2174                                  (Graphics graphics, Color backColor,                                  (Graphics graphics, Color backColor, Rectangle drawBounds)
                                  int x, int y, int width, int height)  
2175                          {                          {
2176                                  // TODO                                  Pen light = new Pen(Color.White, 1);
2177                                    Pen dark = new Pen(Color.Black, 1);
2178    
2179                                    // Backfill accordingly
2180                                    graphics.FillRectangle(new SolidBrush(backColor),
2181                                                            drawBounds.X, drawBounds.Y,
2182                                                            drawBounds.Width, drawBounds.Height);
2183    
2184                                    // Top most line
2185                                    graphics.DrawLine(SystemPens.ControlDark,
2186                                                    drawBounds.Left + 1,
2187                                                    drawBounds.Height - 1,
2188                                                    drawBounds.Width - 1 ,
2189                                                    drawBounds.Top + 1
2190                                            );
2191                                    graphics.DrawLine(SystemPens.ControlLightLight,
2192                                                    drawBounds.Left,
2193                                                    drawBounds.Height - 1,
2194                                                    drawBounds.Width - 1,
2195                                                    drawBounds.Top
2196                                            );
2197    
2198                                    // Middle line
2199                                    graphics.DrawLine(SystemPens.ControlDark,
2200                                                    drawBounds.Left + 5,
2201                                                    drawBounds.Height - 1,
2202                                                    drawBounds.Width - 1,
2203                                                    drawBounds.Top + 5
2204                                            );
2205                                    graphics.DrawLine(SystemPens.ControlLightLight,
2206                                                    drawBounds.Left + 4,
2207                                                    drawBounds.Height - 1,
2208                                                    drawBounds.Width - 1,
2209                                                    drawBounds.Top + 4
2210                                            );
2211    
2212                                    // Bottom line
2213                                    graphics.DrawLine(SystemPens.ControlDark,
2214                                                    drawBounds.Left + 10,
2215                                                    drawBounds.Height - 1,
2216                                                    drawBounds.Width - 1,
2217                                                    drawBounds.Top + 10
2218                                            );
2219                                    graphics.DrawLine(SystemPens.ControlLightLight,
2220                                                    drawBounds.Left + 9,
2221                                                    drawBounds.Height - 1,
2222                                                    drawBounds.Width - 1,
2223                                                    drawBounds.Top  + 9
2224                                            );
2225                          }                          }
2226    
2227          // Draw a list box          // Draw a list box

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26