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
path: root/mcs
diff options
context:
space:
mode:
authorMario Carrion <mario@carrion.mx>2009-02-04 20:10:31 +0300
committerMario Carrion <mario@carrion.mx>2009-02-04 20:10:31 +0300
commit3b86c05ac93f0c6e6b108a419c77d294143893f1 (patch)
tree12c982ddf5314563f8db1ee0bca9084b70dfde7a /mcs
parentc5ff3a48806252b1814934cbe0ab7e42f35c0fb6 (diff)
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] svn path=/trunk/mcs/; revision=125702
Diffstat (limited to 'mcs')
-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