2007-01-15 Chris Toshok <toshok@ximian.com>
commitcf0ecf8fb66dca90bf737e902537c044eb9af148
authorChris Toshok <toshok@novell.com>
Tue, 16 Jan 2007 02:04:30 +0000 (16 02:04 -0000)
committerChris Toshok <toshok@novell.com>
Tue, 16 Jan 2007 02:04:30 +0000 (16 02:04 -0000)
tree11390beafd328a4628acdad9de641a0d70fcc367
parent3da35cff9f03eb3356167fb4e7c66540949e17ba
2007-01-15  Chris Toshok  <toshok@ximian.com>

* ListView.cs: drop the *Internal overrides, just do our work in
ItemControl's WndProc instead.

* UpDownBase.cs: a few large changes.  Fix up the Selectable state
of the various controls, and forward the events properly (in the
same manner as MS) from the textbox to the UpDown.  Also the
ActiveControl of the UpDownBase gets set properly now.  Finally,
we don't call UpdateEditText from the ctor.  Fixes bug #79957.

* NumericUpDown.cs: set Text in the ctor.

* DomainUpDown.cs: call UpdateEditText in the ctor.

* TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
so even a Selectable = false textbox can be focused if you click
in it.  Go figure.

* Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
just add their handling in their respective WndProc's.  Also add
an explicit FocusInternal method that doesn't consult CanFocus
before calling Select(this).

* TextBoxBase.cs: deal with removal of the FocusInternal calls -
do our work in WndProc instead.

* TabControl.cs: same.

svn path=/trunk/mcs/; revision=71103
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/DomainUpDown.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/NumericUpDown.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/UpDownBase.cs