Author: miguel
Date: 2006-12-11 19:30:11 -0500 (Mon, 11 Dec 2006)
New Revision: 69376
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ProgressBar.cs
Log:
2006-12-11 Miguel de Icaza <[EMAIL PROTECTED]>
* ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
* Control.cs (DoubleBuffered): Add implementation.
* Application.cs (OpenForms): Add.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-11 23:36:13 UTC (rev 69375)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-12-12 00:30:11 UTC (rev 69376)
@@ -13,6 +13,10 @@
2006-12-11 Miguel de Icaza <[EMAIL PROTECTED]>
+ * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
+
+ * Control.cs (DoubleBuffered): Add implementation.
+
* Application.cs (OpenForms): Add.
2006-12-11 Jonathan Pobst <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-12-11 23:36:13 UTC (rev 69375)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-12-12 00:30:11 UTC (rev 69376)
@@ -1977,6 +1977,18 @@
}
}
+#if NET_2_0
+ protected virtual bool DoubleBuffered {
+ get {
+ return (control_style &
ControlStyles.DoubleBuffer) != 0;
+ }
+
+ set {
+ SetStyle (ControlStyles.DoubleBuffer, value);
+ }
+ }
+#endif
+
[DispId(-514)]
[Localizable(true)]
[MWFCategory("Behavior")]
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ProgressBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ProgressBar.cs
2006-12-11 23:36:13 UTC (rev 69375)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ProgressBar.cs
2006-12-12 00:30:11 UTC (rev 69376)
@@ -321,7 +321,11 @@
}
#if NET_2_0
- [MonoTODO("Implement")]
+ [MonoTODO("Currently only implements the 1.1 behavior")]
+ //
+ // This means that we must implement Blocks, Continuous and
Marquee
+ // rendering modes
+ //
public ProgressBarStyle Style {
get {
return style;
@@ -331,6 +335,18 @@
style = value;
}
}
+
+ int marquee_animation_speed = 350;
+ [MonoTODO("Currently does nothing")]
+ public int MarqueeAnimationSpeed {
+ get {
+ return marquee_animation_speed;
+ }
+
+ set {
+ marquee_animation_speed = value;
+ }
+ }
#endif
[Browsable (false)]
@@ -439,7 +455,7 @@
{
ThemeEngine.Current.DrawProgressBar (pevent.Graphics,
pevent.ClipRectangle, this);
}
-
+
#endregion
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches