Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog8
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs10
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs6
3 files changed, 21 insertions, 3 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
index 508538d449c..e16e0fd8b85 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
@@ -1,3 +1,11 @@
+2009-02-04 Mario Carrion <mcarrion@novell.com>
+
+ * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting
+ Width.
+ * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
+ ColumnHeader to raise ColumnWidthChanged.
+ [Fixes Bug #467086]
+
2009-02-03 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
index db6170ecc2f..cac8972e0b6 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
@@ -322,9 +322,13 @@ namespace System.Windows.Forms
public int Width {
get { return width; }
set {
- width = value;
- if (owner != null)
- owner.Redraw (true);
+ if (width != value) {
+ width = value;
+ if (owner != null) {
+ owner.Redraw (true);
+ owner.RaiseColumnWidthChanged (this);
+ }
+ }
}
}
#endregion // Public Instance Properties
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
index 04ddcd852c1..0c23fdd568f 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
@@ -6244,6 +6244,12 @@ namespace System.Windows.Forms
}
#endif
+ internal void RaiseColumnWidthChanged (ColumnHeader column)
+ {
+ int index = Columns.IndexOf (column);
+ RaiseColumnWidthChanged (index);
+ }
+
#if NET_2_0
#region UIA Framework: Methods, Properties and Events