2006-12-17 Daniel Nauck <dna@mono-project.de>
authorDaniel Nauck <dna@mono-project.de>
Sun, 17 Dec 2006 11:41:14 +0000 (11:41 -0000)
committerDaniel Nauck <dna@mono-project.de>
Sun, 17 Dec 2006 11:41:14 +0000 (11:41 -0000)
* ListViewGroup.cs: add internal Location property for layouting.
* Theme.cs: add abstract ListViewGroupHeight function.
* ThemeWin32Classic.cs: implement ListViewGroupHeight function.

svn path=/trunk/mcs/; revision=69597

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListViewGroup.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs

index 44e1999d2d0af192f3c82955c20dc2295b558d8d..acd99efd41f693c92abb939bfb2e89fa7116deb4 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-17  Daniel Nauck  <dna@mono-project.de>
+
+       * ListViewGroup.cs: add internal Location property for layouting.
+       * Theme.cs: add abstract ListViewGroupHeight function.
+       * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
+
 2006-12-16  Andreia Gaita  <avidigal@novell.com>
 
        * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
index 78d64373316fdf7dc24c99d53689739fcbbeacd3..7f7450da3efed754bd8e11ba9e011e42d3779c2e 100644 (file)
@@ -31,6 +31,7 @@ using System;
 using System.Text;
 using System.Runtime.Serialization;
 using System.ComponentModel;
+using System.Drawing;
 
 namespace System.Windows.Forms
 {
@@ -46,6 +47,7 @@ namespace System.Windows.Forms
                private ListView list_view_owner = null;
                private ListView.ListViewItemCollection items = null;
                private object tag = null;
+               private Point location = Point.Empty;
 
                #region ListViewGroup constructors
 
@@ -147,6 +149,11 @@ namespace System.Windows.Forms
                        set { list_view_owner = value; }
                }
 
+               internal Point Location {
+                       get { return location; }
+                       set { location = value; }
+               }
+
                [Browsable(true)]
                [DefaultValue("")]
                public string Name {
index d633cd34ab8ca5062e48f14d98882f61a7bddce2..8a210888f63f94071bf4d1d1658bdc527abaf20d 100644 (file)
@@ -784,6 +784,7 @@ namespace System.Windows.Forms
                public abstract int ListViewEmptyColumnWidth { get; }
                public abstract int ListViewHorizontalSpacing { get; }
                public abstract Size ListViewDefaultSize { get; }
+               public abstract int ListViewGroupHeight { get; }
                #endregion      // ListView
                
                #region Menus
index 92a07e8c7deca3ffbc8c7fda1fb1b740f2350b65..ce4b459a29f383393590a5cfde624bad97266206 100644 (file)
@@ -2031,6 +2031,10 @@ namespace System.Windows.Forms
                public override Size ListViewDefaultSize {
                        get { return new Size (121, 97); }
                }
+
+               public override int ListViewGroupHeight { 
+                       get { return 20; }
+               }
                #endregion      // ListView
                
                #region Menus