Author: jpobst
Date: 2007-06-04 15:38:37 -0400 (Mon, 04 Jun 2007)
New Revision: 78585
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckBox.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
Log:
2007-06-04 Jonathan Pobst <[EMAIL PROTECTED]>
* CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
to be ButtonBase.Invalidate.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-04 19:24:37 UTC (rev 78584)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-06-04 19:38:37 UTC (rev 78585)
@@ -1,5 +1,10 @@
2007-06-04 Jonathan Pobst <[EMAIL PROTECTED]>
+ * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
+ to be ButtonBase.Invalidate.
+
+2007-06-04 Jonathan Pobst <[EMAIL PROTECTED]>
+
* ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
2007-06-04 Jonathan Pobst <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckBox.cs
2007-06-04 19:24:37 UTC (rev 78584)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckBox.cs
2007-06-04 19:38:37 UTC (rev 78585)
@@ -139,7 +139,7 @@
if (value != appearance) {
appearance = value;
OnAppearanceChanged (EventArgs.Empty);
- Redraw();
+ Invalidate();
}
}
}
@@ -167,7 +167,7 @@
if (value != check_alignment) {
check_alignment = value;
- Redraw();
+ Invalidate();
}
}
}
@@ -189,11 +189,11 @@
set {
if (value && (check_state !=
CheckState.Checked)) {
check_state = CheckState.Checked;
- Redraw();
+ Invalidate();
OnCheckedChanged(EventArgs.Empty);
} else if (!value && (check_state !=
CheckState.Unchecked)) {
check_state = CheckState.Unchecked;
- Redraw();
+ Invalidate();
OnCheckedChanged(EventArgs.Empty);
}
}
@@ -218,7 +218,7 @@
}
OnCheckStateChanged(EventArgs.Empty);
- Redraw();
+ Invalidate();
}
}
}
@@ -233,7 +233,7 @@
set {
if (value != text_alignment) {
text_alignment = value;
- Redraw();
+ Invalidate();
}
}
}
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-06-04 19:24:37 UTC (rev 78584)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-06-04 19:38:37 UTC (rev 78585)
@@ -2729,11 +2729,11 @@
if (ActiveControl is Button) {
a_button.paint_as_acceptbutton = false;
- a_button.Redraw();
+ a_button.Invalidate();
return;
} else {
a_button.paint_as_acceptbutton = true;
- a_button.Redraw();
+ a_button.Invalidate();
}
}
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
2007-06-04 19:24:37 UTC (rev 78584)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RadioButton.cs
2007-06-04 19:38:37 UTC (rev 78585)
@@ -156,7 +156,7 @@
EventHandler eh = (EventHandler)(Events
[AppearanceChangedEvent]);
if (eh != null)
eh (this, EventArgs.Empty);
- Redraw();
+ Invalidate();
}
}
}
@@ -186,7 +186,7 @@
if (value != radiobutton_alignment) {
radiobutton_alignment = value;
- Redraw();
+ Invalidate();
}
}
}
@@ -208,11 +208,11 @@
if (value && (check_state !=
CheckState.Checked)) {
UpdateSiblings();
check_state = CheckState.Checked;
- Redraw();
+ Invalidate();
OnCheckedChanged(EventArgs.Empty);
} else if (!value && (check_state !=
CheckState.Unchecked)) {
check_state = CheckState.Unchecked;
- Redraw();
+ Invalidate();
OnCheckedChanged(EventArgs.Empty);
}
}
@@ -234,7 +234,7 @@
set {
if (value != text_alignment) {
text_alignment = value;
- Redraw();
+ Invalidate();
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches