2007-05-22 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Tue, 22 May 2007 17:36:59 +0000 (17:36 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Tue, 22 May 2007 17:36:59 +0000 (17:36 -0000)
* Control.cs: Add OnPrint.
* ToolStrip.cs: Add GetChildAtPoint.
* ToolStripContainer.cs: Add OnRightToLeftChanged.
* ToolStripRenderer.cs: Make CreateMirrorImage internal.

svn path=/trunk/mcs/; revision=77801

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContainer.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderer.cs

index 6b218e956737592d9bcdb84da935d2be29e88dda..a7d17a88ab164141d5af800086fc81187d2a0dfb 100644 (file)
@@ -1,3 +1,10 @@
+2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Add OnPrint.
+       * ToolStrip.cs: Add GetChildAtPoint.
+       * ToolStripContainer.cs: Add OnRightToLeftChanged.
+       * ToolStripRenderer.cs: Make CreateMirrorImage internal.
+
 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
 
        * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
index 301aaab8f387a9c6a9f831c80d075ac832e84c29..fae9501e1c97a4ae1b018933964c937142842b2d 100644 (file)
@@ -5946,6 +5946,14 @@ namespace System.Windows.Forms
                                eh (this, e);
                }
 
+               [EditorBrowsable (EditorBrowsableState.Advanced)]
+               protected virtual void OnPrint (PaintEventArgs e)
+               {
+                       PaintEventHandler eh = (PaintEventHandler)(Events[PaintEvent]);
+                       if (eh != null)
+                               eh (this, e);
+               }
+
                [EditorBrowsable (EditorBrowsableState.Advanced)]
                protected virtual void OnRegionChanged (EventArgs e)
                {
index 1e881f0d227c9a1f2da8f14b0a5569e6bef904eb..d4d4f5949b2ee16e438ef7ebf9759b179e5a36c8 100644 (file)
@@ -508,11 +508,11 @@ namespace System.Windows.Forms
                        return base.GetChildAtPoint (point);
                }
 
-               //[EditorBrowsable (EditorBrowsableState.Never)]
-               //public new Control GetChildAtPoint (Point pt, GetChildAtPointSkip skipValue)
-               //{
-               //        return base.GetChildAtPoint (pt, skipValue);
-               //}
+               [EditorBrowsable (EditorBrowsableState.Never)]
+               public new Control GetChildAtPoint (Point pt, GetChildAtPointSkip skipValue)
+               {
+                       return base.GetChildAtPoint (pt, skipValue);
+               }
                
                public ToolStripItem GetItemAt (Point point)
                {
index 9edcba03671776edb321db9b27b12cfc4602135b..0a9548d433f54eadbb45dc5a7af74d9ec0f22803 100644 (file)
@@ -229,6 +229,11 @@ namespace System.Windows.Forms
                        return new ToolStripContainerTypedControlCollection (this);
                }
 
+               protected override void OnRightToLeftChanged (EventArgs e)
+               {
+                       base.OnRightToLeftChanged (e);
+               }
+               
                protected override void OnSizeChanged (EventArgs e)
                {
                        base.OnSizeChanged (e);
index 443917b3d1aaec3f5b0b9bb7b7be1e0a5a7717ab..69f1e6c335c8b48ab16d9b4f6bb10190de66c440 100644 (file)
@@ -70,17 +70,6 @@ namespace System.Windows.Forms
                        
                        return b;
                }
-
-               public static Image CreateMirrorImage (Image normalImage)
-               {
-                       if (normalImage == null)
-                               return null;
-                               
-                       Bitmap b = new Bitmap (normalImage);
-                       b.RotateFlip (RotateFlipType.RotateNoneFlipX);
-                       
-                       return b;
-               }
                
                public void DrawArrow (ToolStripArrowRenderEventArgs e)
                { this.OnRenderArrow (e); }
@@ -416,6 +405,17 @@ namespace System.Windows.Forms
                #endregion
                
                #region Private Methods
+               internal static Image CreateMirrorImage (Image normalImage)
+               {
+                       if (normalImage == null)
+                               return null;
+
+                       Bitmap b = new Bitmap (normalImage);
+                       b.RotateFlip (RotateFlipType.RotateNoneFlipX);
+
+                       return b;
+               }
+
                private void DrawBackground (Graphics g, Rectangle bounds, Image image, ImageLayout layout)
                {
                        // Center and Tile don't matter if the image is larger than the control