Author: toshok
Date: 2007-07-12 17:14:28 -0400 (Thu, 12 Jul 2007)
New Revision: 81906

Modified:
   trunk/olive/class/agclr/System.Windows.Media/ChangeLog
   trunk/olive/class/agclr/System.Windows.Media/Visual.cs
   trunk/olive/class/agmono/Mono/ChangeLog
   trunk/olive/class/agmono/Mono/NativeMethods.cs
Log:
In agmono/Mono:
2007-07-12  Chris Toshok  <[EMAIL PROTECTED]>

        * NativeMethods.cs: add dllimports for uielement_capture_mouse and
        uielement_release_mouse_capture.

In agclr/System.Windows.Media:
2007-07-12  Chris Toshok  <[EMAIL PROTECTED]>

        * Visual.cs: implement the mouse capturing calls.



Modified: trunk/olive/class/agclr/System.Windows.Media/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ChangeLog      2007-07-12 
21:13:39 UTC (rev 81905)
+++ trunk/olive/class/agclr/System.Windows.Media/ChangeLog      2007-07-12 
21:14:28 UTC (rev 81906)
@@ -1,3 +1,7 @@
+2007-07-12  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * Visual.cs: implement the mouse capturing calls.
+
 2007-06-21  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * Brush.cs, Transform.cs: Make this class abstract.

Modified: trunk/olive/class/agclr/System.Windows.Media/Visual.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Visual.cs      2007-07-12 
21:13:39 UTC (rev 81905)
+++ trunk/olive/class/agclr/System.Windows.Media/Visual.cs      2007-07-12 
21:14:28 UTC (rev 81906)
@@ -41,12 +41,12 @@
 
                public bool CaptureMouse ()
                {
-                       throw new NotImplementedException ();
+                       return NativeMethods.uielement_capture_mouse (native);
                }
 
                public bool ReleaseMouseCapture ()
                {
-                       throw new NotImplementedException ();
+                       return NativeMethods.uielement_release_mouse_capture 
(native);
                }
                
                internal override Kind GetKind ()

Modified: trunk/olive/class/agmono/Mono/ChangeLog
===================================================================
--- trunk/olive/class/agmono/Mono/ChangeLog     2007-07-12 21:13:39 UTC (rev 
81905)
+++ trunk/olive/class/agmono/Mono/ChangeLog     2007-07-12 21:14:28 UTC (rev 
81906)
@@ -1,3 +1,8 @@
+2007-07-12  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * NativeMethods.cs: add dllimports for uielement_capture_mouse and
+       uielement_release_mouse_capture.
+
 2007-07-09  Chris Toshok  <[EMAIL PROTECTED]>
 
        * NativeMethods.cs: remove the parser callbacks from the xaml_*

Modified: trunk/olive/class/agmono/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agmono/Mono/NativeMethods.cs      2007-07-12 21:13:39 UTC 
(rev 81905)
+++ trunk/olive/class/agmono/Mono/NativeMethods.cs      2007-07-12 21:14:28 UTC 
(rev 81906)
@@ -123,6 +123,12 @@
 
                [DllImport("moon")]
                public extern static IntPtr uielement_get_parent (IntPtr item);
+
+               [DllImport("moon")]
+               public extern static bool uielement_capture_mouse (IntPtr item);
+
+               [DllImport("moon")]
+               public extern static bool uielement_release_mouse_capture 
(IntPtr item);
 #endregion
 
 

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

Reply via email to