Author: everaldo
Date: 2007-02-23 01:48:57 -0500 (Fri, 23 Feb 2007)
New Revision: 73351
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
Fix source code identation problems
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-02-23 06:43:39 UTC (rev 73350)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2007-02-23 06:48:57 UTC (rev 73351)
@@ -1821,14 +1821,15 @@
}
protected override bool ProcessCmdKey(ref Message msg, Keys
keyData) {
+ Console.Write("*");
if (base.ProcessCmdKey (ref msg, keyData)) {
return true;
- }
+ }Console.Write("!");
// Give our menu a shot
if (ActiveMenu != null) {
return ActiveMenu.ProcessCmdKey(ref msg,
keyData);
- }
+ }Console.Write("@");
if (IsMdiChild) {
switch (keyData)
@@ -2115,18 +2116,17 @@
// Menu drawing
case Msg.WM_NCHITTEST: {
- if (XplatUI.IsEnabled (Handle) && ActiveMenu != null) {
-
- int x = LowOrder ((int)m.LParam.ToInt32 ());
- int y = HighOrder ((int)m.LParam.ToInt32 ());
+ if (XplatUI.IsEnabled (Handle) &&
ActiveMenu != null) {
+ int x = LowOrder
((int)m.LParam.ToInt32 ());
+ int y = HighOrder
((int)m.LParam.ToInt32 ());
- XplatUI.ScreenToMenu (ActiveMenu.Wnd.window.Handle,
ref x, ref y);
+ XplatUI.ScreenToMenu
(ActiveMenu.Wnd.window.Handle, ref x, ref y);
- // If point is under menu return HTMENU, it prevents
Win32 to return HTMOVE.
- if ((x > 0) && (y > 0) && (x < ActiveMenu.Rect.Width)
&& (y < ActiveMenu.Rect.Height)) {
- m.Result = new IntPtr ((int)HitTest.HTMENU);
- return;
- }
+ // If point is under menu
return HTMENU, it prevents Win32 to return HTMOVE.
+ if ((x > 0) && (y > 0) && (x <
ActiveMenu.Rect.Width) && (y < ActiveMenu.Rect.Height)) {
+ m.Result = new IntPtr
((int)HitTest.HTMENU);
+ return;
+ }
}
base.WndProc (ref m);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches