Author: rolf
Date: 2006-11-23 11:30:16 -0500 (Thu, 23 Nov 2006)
New Revision: 68404
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/InternalWindowManager.cs
Log:
2006-11-23 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* InternalWindowManager.cs: Added HandleTitleBarUp.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-23 16:19:15 UTC (rev 68403)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-23 16:30:16 UTC (rev 68404)
@@ -1,3 +1,7 @@
+2006-11-23 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * InternalWindowManager.cs: Added HandleTitleBarUp.
+
2006-11-23 Gert Driesen <[EMAIL PROTECTED]>
* NumericUpDown.cs: In .NET 1.1, user entered text is still
@@ -3,4 +7,5 @@
hexadecimal in ParseUserEdit.
+
2006-11-23 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
@@ -16,6 +21,7 @@
parent if it actually has a parent. Might not if
the window is closing.
+
2006-11-23 Gert Driesen <[EMAIL PROTECTED]>
* MdiClient.cs: Ignore active MDI client for text of parent, if
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/InternalWindowManager.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/InternalWindowManager.cs
2006-11-23 16:19:15 UTC (rev 68403)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/InternalWindowManager.cs
2006-11-23 16:30:16 UTC (rev 68404)
@@ -416,7 +416,11 @@
protected virtual void HandleNCLButtonDblClick (ref Message m)
{
}
-
+
+ protected virtual void HandleTitleBarUp (int x, int y)
+ {
+ }
+
protected virtual void HandleTitleBarDown (int x, int y)
{
foreach (TitleButton button in title_buttons) {
@@ -601,6 +605,7 @@
int y = Control.HighOrder ((int) m.LParam.ToInt32 ());
NCPointToClient (ref x, ref y);
+ FormPos pos = FormPosForCoords (x, y);
foreach (TitleButton button in title_buttons) {
if (button != null && button.Rectangle.Contains
(x, y)) {
@@ -609,6 +614,11 @@
}
}
+ if (pos == FormPos.TitleBar) {
+ HandleTitleBarUp (x, y);
+ return true;
+ }
+
return true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches