In Test/System.Windows.Forms:
commit9b6e68aee1c5c0de3c23a9abcae363b16e87cc78
authortoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Thu, 7 Dec 2006 01:18:18 +0000 (7 01:18 +0000)
committertoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Thu, 7 Dec 2006 01:18:18 +0000 (7 01:18 +0000)
treedb92316bc6af916be19c3916a28e39518c8b64e9
parentbb5907c521ead714372aafa73ed0929ebf22fd0c
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>

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@69148 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
class/Managed.Windows.Forms/Test/System.Windows.Forms/ButtonTest.cs
class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
class/Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs