2008-01-23 Everaldo Canuto <ecanuto@novell.com>
authorEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Wed, 23 Jan 2008 16:55:35 +0000 (16:55 -0000)
committerEveraldo Canuto <everaldo@mono-cvs.ximian.com>
Wed, 23 Jan 2008 16:55:35 +0000 (16:55 -0000)
commit34f94c4d00d360d62b4b9b1728e6662217eb25fd
tree45758529f844516ad0e97a34f61a4b93b1043622
parent0dd53e86ec603c92335a1c9bc43a7878c327795d
2008-01-23  Everaldo Canuto  <ecanuto@novell.com>

[Fixes bugs #343966, #338511 and other non reported (context)menu bugs]

* Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
to Control class, it makes possible to grab menu to controls that can't
reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
WmMouseMove removed since it was used only to track menu events.

* Control.cs:
- Moved all active_tracker stuff from Form.
- ProcessActiveTracker added to prevent code duplicity, now mouse events
can call this method instead of reimplement all necessary code handle for
menu tracker.
- Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
and WmMouseMove).

* MenuAPI.cs:
- Remove special handle to ToolStripOverflow, now we can grab menu to
controls that can't reach Form using parent tree.
- Change type of grab_control from Form to Control.

svn path=/trunk/mcs/; revision=93671
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/Form.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs