In Test/System.Windows.Forms:
authorChris Toshok <toshok@novell.com>
Thu, 7 Dec 2006 01:18:18 +0000 (01:18 -0000)
committerChris Toshok <toshok@novell.com>
Thu, 7 Dec 2006 01:18:18 +0000 (01:18 -0000)
commit4eea763c7c20d5a680e6e72ce40945f891f1d2b2
treefa08d3e8c7d487277d5df1a46c31e681044f91fc
parent5bc6617e0ed0b3a9e08eb4436c7c1914f85283d4
In Test/System.Windows.Forms:
* FormTest.cs: make sure Form.ImeMode is NoControl by default.

* ButtonTest.cs: add a unit test for Button.DefaultImeMode.

2006-12-06  Chris Toshok  <toshok@ximian.com>

In System.Windows.Forms:
* Form.cs: we don't need to explicitly set ImeMode to
ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
behavior in the face of ImeMode.Inherit.

* ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
change the ctor's assignment to use ImeMode instead of ime_mode.

* Control.cs (get_ImeMode): don't assume DefaultImeMode ==
ImeModeInherit.  Only check for the parent's imemode (and return
NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
This fixes the button unit test, which sets both ImeMode and
DefaultImeMode to ImeMode.Disable.

also make the ime_mode field private.

2006-12-06  Chris Toshok  <toshok@ximian.com>

svn path=/trunk/mcs/; revision=69148
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
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/Test/System.Windows.Forms/ButtonTest.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs