2008-06-14 Everaldo Canuto <ecanuto@novell.com>
authorEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Mon, 16 Jun 2008 14:33:50 +0000 (14:33 -0000)
committerEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Mon, 16 Jun 2008 14:33:50 +0000 (14:33 -0000)
commit9688e551128093abfc8c586ddf1794793577a149
treeb1147fc6fef3c5e7f351ee9e79c7684a7df2c166
parentc408d1c8be591621579c91b0f8968c9457a6c947
2008-06-14  Everaldo Canuto  <ecanuto@novell.com>

[DataGrid drawing refactory]

* DataGrid.cs: Fix the caption size, we need one pixel more for divider.

* DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
must be handle by Theme, now it call DataGridPaintColumnHeader.

* DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
test cases must be also fixed because it checks for wrong size.

* ThemeWin32Classic.cs:
- Draw the bottom line of grid caption.
- Prevent to draw caption text when it is empty.
- Use CPDrawBorder3D for 3D efects to simplify code.
- Uses 3D (when not flat) to paint corner shared between row and column
header.
- Fix header drawing issues on win32, now borders are drawing.
- Fix column header paint issues to mimic win32.
- Adjust header drawing for last column, like first one it must be draw
different.
- Added DataGridPaintRowHeaderStar to draw star like .net does, it is
not an character.
- DataGridPaintColumnHeader created to draw column headers, it also
paint stuff right on Win32.
- Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
class.

* Theme.cs:
- DataGridPaintRowHeaderStar method added.
- DataGridPaintColumnHeader method added.

svn path=/trunk/mcs/; revision=105904
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridColumnStyle.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridTextBoxColumn.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs