also, disable the call do BindColumns in
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index a9c437040ce1c0701b51ceac9953e21481452159..8fbc6f4943999fd45390323d5755ac4f23e13d6e 100644 (file)
@@ -1,3 +1,395 @@
+2007-01-05  Chris Toshok  <toshok@ximian.com>
+
+       * DataGrid.cs: don't forceably rebind columns in SetDataSource
+       unless our list manager has changed (i.e. unless we have reason to
+       believe our columns have changed).  Fixes #80422.
+       
+       also, disable the call do BindColumns in
+       OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
+       1.1 the event isn't raised in response to a column addition on a
+       table.)
+
+2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
+       that inheritors can not call it if they choose.  Fixes bug #80456.
+
+2007-01-05  Andreia Gaita  <avidigal@novell.com>
+
+       * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
+       doesn't blow up with a null exception on marshalling.
+       
+2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Implement several 2.0 protected properties and methods.
+       Ensure that all necessary events are being called when properties
+       are set.
+
+2007-01-05  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: implement PgUp/PgDn for Details view.  Also
+       fixes First/LastVisibleIndex to use the item_control.ClientRect 
+       instead of the parent control.  Fixes #80378.
+
+2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
+         determine whether to use yard-pound or not (bug #78399).
+
+2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
+
+       * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
+       problems. So it is time to bring back the old popupbutton colors.
+
+2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ColumnHeader.cs:
+       * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
+       property by using the internal information of the
+       columns order in ListView.
+
+2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
+
+       * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
+       Add 2.0 Tag properties.
+
+       * LinkArea.cs: Add 2.0 ToString method.
+
+2007-01-03  Chris Toshok  <toshok@ximian.com>
+
+       * DataGrid.cs: the Alt+0 handling was wrong, it should have been
+       Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
+       when we're editing, which fixes #80047.
+
+2007-01-03  Chris Toshok  <toshok@ximian.com>
+
+       * Form.cs: apply patch contributed by Dominik Seichter.  fixes
+       #80404.
+
+2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
+
+       * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
+       property and implementation.
+
+       * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
+       for MdiWindowListItem property.
+
+       * ToolStripDropDown.cs: Don't consider hidden menu items while
+       laying out the menu.
+
+2007-01-03  Andreia Gaita  <avidigal@novell.com>
+
+       * SendKeys.cs: window handle is not needed in win32, so just
+       get the active window for X after parsing keys and don't use
+       it when building the message; it is passed by parameter to the 
+       Xplat method and used there to build the message instead. Also,
+       wait for events to be processed on SendWait, as opposed to Send,
+       which doesn't wait :) Playing with threads and Send() completely 
+       hangs on ms.net, only SendWait() works.
+       
+       XplatUIX11.cs
+       X11Display.cs: Check for valid window handle.
+
+2007-01-03  Jackson Harper  <jackson@ximian.com>
+
+       * TextControl.cs: Need to prevent wrap calculations when replacing
+       text (this was there before i removed it accidently).
+       - Don't update the cursor during the positioning, just set it to
+       selection_start at the end of the operaion.
+
+2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * Control.cs:
+       * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
+       
+2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * MonthCalendar.cs: Added Click and DoubleClick events again,
+       but this time they only hide Control's Click and DoubleClick.
+       
+2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
+       System.Drawing assembly. Spaces to tabs. Removed extra tabs.
+
+2007-01-02  Jackson Harper  <jackson@ximian.com>
+
+       * TextBoxBase.cs: We move the caret with the split now, so we
+       don't need to explicitly move the caret after splitting.  This
+       fixes the caret bumping down an extra line on Enter.
+
+2007-01-02  Miguel de Icaza  <miguel@novell.com>
+
+       * ContainerControl.cs: Add AutoValidateChanged event (for PDN
+       2.72). 
+
+       * ScrollableControl.cs: Add Scroll event.
+
+2007-01-02  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
+       to fix all hdr height padding codepaths.  Fixes #80207.
+
+2007-01-02  Chris Toshok  <toshok@ximian.com>
+
+       * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
+       setting it to the Control defaults anyway, and it being after the
+       Dock set was screwing up layout.
+       (set_Dock): don't short circuit out of setting base.Dock.  Also,
+       no need to call UpdateStatusBar here, as it'll be re-layed out if
+       it needs to be.
+
+2007-01-02  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
+       to header height for width == -1. Fixes the rest of #80207.
+
+2007-01-02  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: rework the mouse event forwarding everaldo added
+       to translate the coordinates to the parent control not
+       raise the parent events until after we've done our work. Hover
+       needs more work, in the case where HoverSelection is on, because
+       the item control receives more than one MouseHover per Enter
+       event, so we need to ensure only the "first" hover gets forwarded.
+       Opening a minor bug for that.
+
+2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * CheckedListBox.cs: Fixed SelectionMode to match MS.
+       * ListControl.cs: Implemented AllowSelection property. Removed extra
+       tabs.
+       * ListBox.cs: Implemented AllowSelection property.
+
+2007-01-02  Everaldo Canuto  <everaldo@simios.org>
+
+       * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
+       SelectedItem, it prevent for errors when you must disable item
+       before perform click. Fixes #80409.
+
+2007-01-02  Everaldo Canuto  <everaldo@simios.org>
+
+       * MenuAPI.cs: Prevent second level and beyond submenus to close
+       until first level when move out side of popup.
+       
+2007-01-02  Everaldo Canuto  <everaldo@simios.org>
+
+       * MenuAPI.cs:
+       - Down submenu positin in three pixels.
+       - Closes sub menu when mouse leaves from menu. Fixes #80402.
+
+2007-01-02  Everaldo Canuto  <everaldo@simios.org>
+
+       * ThemeWin32Classic.cs:
+       - Fix popup menu size adding one pixel on the top.
+       - Down menu item border from two to one to mimic Win32.
+       - Some source identation fixes. 
+
+2007-01-01  Everaldo Canuto  <everaldo@simios.org>
+
+       * ThemeWin32Classic.cs: Use float numbers to calculate size and
+       position of menu arrows, it fix wrong arrow size.
+
+2007-01-01  Everaldo Canuto  <everaldo@simios.org>
+
+       * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
+       instead of line, it simplify draw operation and fix it using 3D
+       borders to mimic Win32.
+
+2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
+
+       * StatusStrip.cs: Add implementation of the sizing grip.
+
+       * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
+       StatusStrip rendering.
+
+2006-12-31  Chris Toshok  <toshok@ximian.com>
+
+       * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
+       override the layout style (anchor/dock) of the control.  assign to
+       Dock instead.  Fixes bug #80416.
+
+       * ToolStrip.cs: same.
+
+2006-12-31  Andreia Gaita  <avidigal@novell.com>
+
+       * ContainerControl.cs: Use ContainerSelected flag to check if 
+       a Container is directly selected, or if Select is called on a 
+       non-container. If a container is directly selected, focus events 
+       should not be raised.
+       Apply #80411 patch to throw exception on set_ActiveControl if 
+       control is the same as the current one.
+       
+       * Control.cs: Use ContainerSelected flag (see above).
+       Add invalidation check to raise event but not invalidate if 
+       dimensions are 0.       
+       Apply #80411 patch.
+       
+
+2006-12-31  Everaldo Canuto  <everaldo@simios.org>
+
+       * MenuAPI.cs: After click, dont close popup menu when menu is
+       ContextMenu. Fixes #80399.
+
+2006-12-30  Chris Toshok  <toshok@ximian.com>
+
+       * ContainerControl.cs: make sure we throw the exception if the
+       container control doesn't contain the control we're setting
+       ActiveControl to.
+
+2006-12-30  Chris Toshok  <toshok@ximian.com>
+
+       * Control.cs (SetTopLevel): fix the exception raised by
+       SetTopLevel for child controls.
+       (set_Anchor): call UpdateDistances when setting the anchor type.
+       This fixes bug #80336.
+
+2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Theme.cs: For now, revert back to 8pt font.
+
+2006-12-29  Everaldo Canuto  <everaldo@simios.org>
+
+       * MenuAPI.cs: Set popup as active when open a ContextMenu. 
+       Fixes #80395.
+
+2006-12-29  Chris Toshok  <toshok@ximian.com>
+
+       * Control.cs: reorder the code in OnResize to give the same event
+       ordering as MS.
+
+2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
+       TileHorizontally and TileVertically.
+       
+2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
+       FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
+       SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
+       Corrected copyright and email adress.
+
+2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
+       of Exception in FullPath property if no TreeView is associated with
+       the TreeNode.
+
+2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Theme.cs: Marked default_font as private, and initialize it in ctor
+       with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
+       on 2.0 profile.
+       * ThemeGtk.cs: Removed default_font intialization.
+       * ThemeWin32Classic.cs: Removed default_font initialization.
+
+2006-12-28  Chris Toshok  <toshok@ximian.com>
+
+       * Control.cs: fix a couple of place where we were creating handles
+       more aggressively than we should be.  Fixes ControlRefresh unit
+       tests.
+
+2006-12-28  Chris Toshok  <toshok@ximian.com>
+
+       * Control.cs: contrary to what the comment said, Control.Dock does
+       not supercede Control.Anchor - the last one you assign to decides
+       the layout behavior.  so we need to keep track of which was the
+       last set.  Also, fix some of the affected property arguments in
+       PerformLayout calls, and remove an redundant parent.PerformLayout
+       call in OnResized.
+
+       Add a VisibleInternal property, which returns is_visible.  We
+       can/should get rid of all the usage of this field elsewhere.
+
+2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+       
+       * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
+       control style, not DoubleBuffer. Added UseDoubleBuffering property
+       that indicates whether doublebuffering is enabled and supported.
+       (comment from and code based on Gert Driesen's patch in #80324).
+       Fixes #80324.
+
+2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+       
+       * Control.cs: Fixed a NRE.
+
+2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * TrackBar.cs: Fix SmallChange and LargeChange exceptions
+       for 2.0.
+
+2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * Control.cs: Rewrote double buffering, now a seperate
+       class handles all the buffering, no Graphics is disposed of
+       until the painting is finished (earlier implementation 
+       would crash if the control was resized in the OnPaint, 
+       since it would cause the double buffer to be recreated
+       and the old one disposed), a separate Graphics is 
+       created for every paint (MS behaviour and anyways the state
+       of the Graphics would have to be saved and restored otherwise)
+       
+       * XplatUIDriver.cs: 
+       * XplatUIX11.cs:
+       * XplatUI.cs: Added and implemented GetOffscreenGraphics 
+       so that we can get the graphics for the back buffer without
+       having to create a new one and remove the offscreen_dc parameter
+       from CreateOffscreenDrawable and DestroyOffscreenDrawable.
+       
+2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
+       Also make virtual all the key-related methods.
+
+       * ListViewItem.cs: Make virtual the key related methods for
+       ListViewSubItemCollection.
+
+2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs:
+       * ListViewItem.cs:
+       * ThemeWin32Classic.cs:
+       * Theme.cs: Initial support for Tile view in ListView,
+       as well as the implementation of the required bits for it (Item
+       and Subitem).
+
+2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
+       of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
+       Provide useful exception messages.
+
+2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * TrackBar.cs: Remove a warning.
+       * MonthCalendar.cs: Moved back to using Capture to hide the calendar
+       when used by DateTimePicker, fixes #80287. This also requires that 
+       MonthCalendar implements it's own drawing for the yearly updown control,
+       otherwise the Capture tracking would be too complicated. Removed the Click 
+       and DoubleClick events (according to comments they were hiding the base class
+       event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
+       raise these events, not that they cannot be raised. It is possible to raise 
+       them by calling OnClick and OnDoubleClick). Added two internal fields in 
+       HitTestInfo in order to track give more tracking info needed by MonthCalendar.
+       * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
+       * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
+       event, no longer needed.
+       
+2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
+       true if new value differs from current value.
+
+2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Control.cs: ControlCollection.Count must be public. Fixed build of
+       unit tests.
+
+2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
+
 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * ComboBox.cs: Mergable=>MergableProperty. Fixes build.