Author: mkestner
Date: 2005-12-05 23:24:37 -0500 (Mon, 05 Dec 2005)
New Revision: 53967
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs
Log:
2005-12-05 Mike Kestner <[EMAIL PROTECTED]>
* StatusBarPanel.cs: add Invalidate method and hook it into all the
prop setters. Calls parent.Refresh for now, but could be maybe be
optimized with an internal method on StatusBar at some point.
[Fixes #76513]
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-12-06 04:11:14 UTC (rev 53966)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-12-06 04:24:37 UTC (rev 53967)
@@ -1,3 +1,10 @@
+2005-12-05 Mike Kestner <[EMAIL PROTECTED]>
+
+ * StatusBarPanel.cs: add Invalidate method and hook it into all the
+ prop setters. Calls parent.Refresh for now, but could be maybe be
+ optimized with an internal method on StatusBar at some point.
+ [Fixes #76513]
+
2005-12-05 Peter Dennis Bartok <[EMAIL PROTECTED]>
* RichTextBox.cs: Implemented get_SelectionColor
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs
2005-12-06 04:11:14 UTC (rev 53966)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/StatusBarPanel.cs
2005-12-06 04:24:37 UTC (rev 53967)
@@ -61,27 +61,39 @@
[Localizable(true)]
public HorizontalAlignment Alignment {
get { return alignment; }
- set { alignment = value; }
+ set {
+ alignment = value;
+ Invalidate ();
+ }
}
[DefaultValue(StatusBarPanelAutoSize.None)]
public StatusBarPanelAutoSize AutoSize {
get { return auto_size; }
- set { auto_size = value; }
+ set {
+ auto_size = value;
+ Invalidate ();
+ }
}
[DefaultValue(StatusBarPanelBorderStyle.Sunken)]
[DispId(-504)]
public StatusBarPanelBorderStyle BorderStyle {
get { return border_style; }
- set { border_style = value; }
+ set {
+ border_style = value;
+ Invalidate ();
+ }
}
[DefaultValue(null)]
[Localizable(true)]
public Icon Icon {
get { return icon; }
- set { icon = value; }
+ set {
+ icon = value;
+ Invalidate ();
+ }
}
[DefaultValue(10)]
@@ -97,6 +109,7 @@
if (value < 0)
throw new ArgumentException ("value");
min_width = value;
+ Invalidate ();
}
}
@@ -112,20 +125,28 @@
twidth = value;
else
width = value;
+
+ Invalidate ();
}
}
[DefaultValue(StatusBarPanelStyle.Text)]
public StatusBarPanelStyle Style {
get { return style; }
- set { style = value; }
+ set {
+ style = value;
+ Invalidate ();
+ }
}
[DefaultValue("")]
[Localizable(true)]
public string Text {
get { return text; }
- set { text = value; }
+ set {
+ text = value;
+ Invalidate ();
+ }
}
[DefaultValue("")]
@@ -140,6 +161,14 @@
get { return parent; }
}
+ void Invalidate ()
+ {
+ if (parent == null)
+ return;
+
+ parent.Refresh ();
+ }
+
internal void SetParent (StatusBar parent)
{
this.parent = parent;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches