Author: gnorton
Date: 2005-03-18 10:57:18 -0500 (Fri, 18 Mar 2005)
New Revision: 41996

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs
Log:

2005-03-17  Geoff Norton  <[EMAIL PROTECTED]>

        * XplatUIOSX.cs: Implemented WorkingArea property


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-18 15:47:42 UTC (rev 41995)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-03-18 15:57:18 UTC (rev 41996)
@@ -1,3 +1,7 @@
+2005-03-17  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * XplatUIOSX.cs: Implemented WorkingArea property
+
 2005-03-17  Peter Bartok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: Fixed menu coord calculations

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs    
2005-03-18 15:47:42 UTC (rev 41995)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs    
2005-03-18 15:57:18 UTC (rev 41996)
@@ -1775,7 +1775,12 @@
                internal override  bool MouseButtonsSwapped { get{ throw new 
NotImplementedException(); } }
                internal override  bool MouseWheelPresent { get{ throw new 
NotImplementedException(); } }
                internal override  Rectangle VirtualScreen { get{ throw new 
NotImplementedException(); } }
-               internal override  Rectangle WorkingArea { get{ throw new 
NotImplementedException(); } }
+               internal override  Rectangle WorkingArea { 
+                       get { 
+                               HIRect bounds = CGDisplayBounds 
(CGMainDisplayID ());
+                               return new Rectangle ((int)bounds.origin.x, 
(int)bounds.origin.y, (int)bounds.size.width, (int)bounds.size.height);
+                       }
+               }
                #endregion
                
                
[DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to