2007-09-11 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 53dc1c2dd92c4cafef600029d82fbae25a1241f8..fa8cce5b809aed6125b1d4eed8967be0a2ff3cf0 100644 (file)
@@ -1,3 +1,510 @@
+2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
+       can't let them count as real items when calculating where to merge in the
+       user's items.  [Fixed bug #82786]
+
+2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
+       who want to add a menu item directly onto a toolstrip.
+       [Fixes bug #82775, part II]
+
+2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
+       * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
+       don't set it to available.
+       * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
+       [Fixes bug #82727, part II]
+
+2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * StatusStrip.cs: Change item placement to None if not visible.
+       * ToolStripItem.cs: Invalidate when InternalVisible changes.
+       These should have been committed to fix 82723, but I missed them.
+
+2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
+       Click, and that it is only called once.
+       * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
+       * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
+       dropped down.
+       [Fixes bug #82775]
+
+2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
+       to match .Net.
+       * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
+       instead of 8, just like above. Partially fixes #82734.
+
+2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
+       fixes #82734.
+
+       * ListView.cs: Remove extra space between rows in Details view (match
+       .Net). 
+       * ThemeWin32Classic.cs: Header text should use ListView.Font, not
+       the DefaultFont.
+
+2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Application.cs: Modified ProductVersion to return value of
+       AssemblyInformationVersion if available, and fallback to assembly
+       version. Fixes bug #82746. Code formatting.
+       * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
+       instead.
+
+2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Control.cs: When updating ZOrder for a child control,
+       take into account the implicit ones (we need it in our controls
+       using them). Fixes #82642.
+
+2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: Add support for animated images.
+       [Fixes bug #82726]
+
+2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
+       visible.  [Fixes bug #82727]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
+       so we repaint using the new size.  [Fixes bug #82723]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
+       option.  [Fixes bug #81779]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TreeView.cs: Override HandleClick because the StandardClick style is
+       set to false.  According to MSDN (and testing), the click events should
+       only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
+       the border will disappear.  Fixes reopened #82653.
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: If the control is autosize, and its preferred size changes
+       when it lays out its children, tell its parent so it can be re-layed out.
+       Fixing some of the fallout from r85433.
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
+       and CheckBox share some code.
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TrackBar.cs: Only call OnScroll if we actually changed the Value of
+       the TrackBar, not every mouse move.  [Fixed bug #82718]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
+       under 2.0 rendering.  [Fixes bug #82657]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TreeView.cs: If we found a TreeNode to display a context menu, but
+       it doesn't have one to show, let the TreeView display its menu
+       instead.  [Fixes bug #82680]
+
+2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
+       OnPaintInternal instead.  Give the internal TextBox a Border property
+       so it can draw itself more correctly.  [Fixes bug #82653]
+
+2007-09-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
+
+2007-09-05  Everaldo Canuto  <everaldo@simios.org>
+
+       * ComboBox.cs: Adjust combobox button state to reflect current state when
+       back to enabled = true. Fixes first issue of #82654.
+
+2007-09-05  Everaldo Canuto  <everaldo@simios.org>
+
+       * Control.cs: Fix last patch regression, prevent forms to update zorder when
+       setting visible property.
+
+2007-09-05  Everaldo Canuto  <everaldo@simios.org>
+
+       * Control.cs: Update zorder after control creation in SetVisibleCore, it 
+       fix zorder for controls initially created as non visible. Fixes #82667.
+
+2007-09-04  Everaldo Canuto  <everaldo@simios.org>
+
+       * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
+       mimic win32 look. Fixes #82656.
+
+2007-09-01  Zoltan Varga  <vargaz@gmail.com>
+
+       * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
+       Stubs for new net 3.5 classes.
+
+2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewItem.cs: In ListViewItemCollection operations calculate
+       Layout for owner as well as invalidate it. Fixes part of #82642.
+
+2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
+       when returning Enabled.  [Fixes bug #82651]
+
+2007-08-30  Everaldo Canuto  <everaldo@simios.org>
+
+       * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
+
+2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Put item padding info in a single place
+       (Theme.ListViewItemPaddingWidth) to have working AutoResize on
+       columns again.
+       * ThemeWin32Classic.cs:
+       * Theme.cs: Likewise.
+
+2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: When a ListViewSubItem instance is invalidated,
+       invoke Invalidate on parent ListViewItem, not parent ListView.
+       Fixes #81570.
+
+2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListView.cs, ListViewItem.cs: corcompare stuffs.
+
+2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
+
+       * BindingMemberInfo.cs: Implement == and != operators.
+
+2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
+
+       * HtmlElementEventArgs.cs: Implement properties.
+
+2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
+
+2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
+       Add (string,string,string) to implement the imagekey.  It turns out, we
+       use the requested imagekey whereas .Net does not.  So I broke ours to match
+       theirs.  :(
+
+2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
+
+2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
+
+2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
+       up-to-date. Fixes bug #82618.
+
+2007-08-29  Everaldo Canuto  <everaldo@simios.org>
+
+       * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
+       reflect document changes. Fixes #82367.
+
+2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
+       as well as add new ones. This should make work the BackgroundImage
+       property for ListView again.
+
+2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
+       DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
+       DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
+
+2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
+       IsKeyLocked.
+
+2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
+       * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
+
+2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
+
+       * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
+       * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
+
+2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * CursorConverter.cs: Implement conversion to InstanceDescriptor.
+
+2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridEntry.cs: Implement GetService.
+
+2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
+
+       * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
+       for label editting, make sure we focus back on the TreeView.
+       [Fixes bug #82590]
+
+2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Add some 2.0 overrides.
+
+2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
+       because getter dont returns right value before handle creation. Thanks 
+       to George. Fixes #82569.  
+
+2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Theme.cs: Revert last patch, it causes error under win32. 
+
+2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
+       Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
+       logical Desktop rather than the physical file system location. Fixes #82603. 
+
+2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
+
+       * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
+       for the patch. Fixes #82568.
+
+2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
+       methods.
+
+2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewInsertionMark.cs: New stubbed class.
+
+2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FolderBrowserDialog.cs: When adding folder, immediately create the
+       directory with temporary name and rename the directory when editing
+       finishes. This matches MS. Ensure the node for the new folder is 
+       selected and LabelEdit is disabled, when editing is either finished
+       or cancelled.
+
+2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * TreeView.cs: When editing label of node, ensure node is visible.
+
+2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyGridView.cs: Set the value only if it has changed.
+
+2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Some more code refactoring to add support sorting
+       with groups (now for Details view). Remove unused code also.
+
+2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
+
+       * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
+       Not a big fan of reacting immediately to a field in an EventArg, but that's
+       the way it's done.  (This is part of the previous commit that got left out.)
+
+2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FolderBrowserDialog.cs: Removed need for separate description field.
+       Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
+       has focus when dialog box is displayed again, regardless of what
+       button was pressed the previous time. Set RootFolder and SelectedPath
+       each time dialog box is displayed. This ensures the treeview is
+       refreshed, and fixes bug #82579. Do no hide selected node in TreeView
+       when it does not have focus. Added support for more special folders.
+
+2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
+       before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
+       it resets the edit_args.
+       * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
+       [Fixes bug #82577]
+
+2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FolderBrowserDialog.cs: Modifies form caption and text of new folder
+       button to match MS. Provide more meaningful exception message for
+       invalid RootFolder value. Use zero-length string when SelectedPath
+       is set to null. Allow non-rooted paths in SelectedPath, but ignore
+       them in FolderBrowserTreeView. Allow folders to be created in
+       RootFolder. Fixes bug #82576.
+
+2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Correctly compute the layout_ht (height) when using groups,
+       since we need to take into account the group headers and the margin
+       between them.
+       * ListViewGroup.cs: Add a rows field to store the number of rows per
+       group.
+
+2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
+
+       * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
+         Anyways, let's just follow the lead.
+
+2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
+
+       * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
+       * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
+       controls in GetPreferredSizeCore.
+       * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
+       [Fixes bug #82488]
+
+2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
+
+       * PrintDialog.cs: Need to instantiate the form variable here too.
+
+2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Do some reorganization to support sorting in groups,
+       by doing the layout sequentially in ListView.Items. Also add support
+       for the Default Group, which should be available for items with no
+       group assigned.
+       * ListViewGroup.cs: Add support for DefaultGroup. Include new members
+       for storing layout info also.
+       * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
+       collection, as well as providing internal members to do a traversal
+       including the default group (needed when doing layout/drawing).
+       * ThemeWin32Classic.cs: When drawing group headers use internal
+       ListViewGroupCollection members to take into account the default
+       group.
+
+2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
+
+2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
+       been created.  If handle is created, we want arror keys.  If we are editing
+       a node, we want things like enter, esc, home, end, page up, page down.
+       Allows Esc to work for FolderBrowserDialog.
+
+2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
+       they close when ESC is pressed.  Thanks Andy!
+
+2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
+       This way we can tell if this is a CommonDialog provided with mono, or one
+       that is being implemented outside by a developer.  If it is an external one,
+       the developer is responsible for showing their own form.  We were showing
+       our blank form after the developer showed his.
+       * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
+       PageSetupDialog.cs: Instantiate form variable in our constructor.
+       [Fixes bug #82531]
+
+2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
+       and always return true.  [Fixes bug #81616]
+
+2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
+       TextBox.  [Fixes bug #82549]
+
+2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * FileDialog.cs: When Save/Open is clicked and no filename is selected
+       or entered then do not close the dialog. Fixes bug #82539. Removed
+       CWLs.
+
+2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
+
+       * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
+       code to this method. It is calling every time filter changes. This method
+       will help to fix the bug #80887.
+
+2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
+
+       * CheckBox.cs: Implement AutoSize calculation.
+
+2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
+
+       * CheckBox.cs: Use new 2.0 rendering for 2.0.
+       * Theme.cs: Method declarations for 2.0 rendering path.
+       * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
+
+2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewGroupCollection.cs: Fix a typo of the previous patch.
+
+2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewGroupCollection.cs: Implement AddRange the right way, to
+       only call Redraw on the parent one time.
+
+2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
+
+       * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
+         GetClipboardContent.
+       * DataGridViewCell.cs: Implemented GetClipboardContent,
+         GetEditedFormattedValue, GetFormattedValue.
+       * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
+
+2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TableLayoutStyleCollection.cs: corcompare fix.
+
+2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
+
+       * DataObject.cs: Implemented retrieval of convertible / not convertible
+         objects.
+
+2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: When changing the item's text, invalidate before we resize
+       ourselves.  This ensures the entire old bounds are repainted, in case our new
+       size is smaller.  [Fixes bug #82518]
+
+2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
+
+       * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
+       flag to make fast handle of mouse events, without this the mouse move is
+       handled in some manner, whether it is a mouse move or not. Fixes #81588.
+
+2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: When doing layout calculations don't use a ref
+       param to keep the current item; instead use its Index value (this 
+       is specially important when doing the layout with Groups
+       and Items being sparse). Also don't take into account items added to
+       the Group but not yet added to the main ListView.Items collection.
+
+2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewGroupCollection.cs: Forgot to mimic an issue
+       in the indexer (don't assign the ListView owner for new values).
+
 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * ListViewGroupCollection.cs: Make the string indexer use