2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 89c870ac970973ef7491d1f19adbf4b16643e13f..196e8224f8c41918d9afb9f90218d51a2efc03cd 100644 (file)
@@ -1,3 +1,497 @@
+2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
+       Added support for rendering with VisualStyles.
+
+2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
+       support for rendering the border with VisualStyles.
+
+2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
+       the icon is not shown.
+       * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
+       its own logic.
+
+2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs: Draw minimized windows even if they don't have
+       borders.
+
+2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
+
+2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
+       [Fixes bug #397943]
+
+2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: When snaping height -because of IntegralHeight set to
+       true- with ComboBoxStyle.Simple, set the height to PreferredHeight
+       if the requested height leaves the listbox area with *less* than the
+       required are to see one item. We were setting it to PreferredHeight
+       even for values matching the height for a single item.
+       Fixes #396297.
+
+2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
+
+2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCell.cs: Use property instead of field.
+
+2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
+       null checks.
+
+2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs: Added #region around the managed window code. Made the managed
+       window methods abstract.
+       * ThemeWin32Classic.cs: Added #region around the managed window code.
+
+2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
+       if it has borders.
+       * ThemeWin32Classic.cs: Removed HasBorders checks in
+       DrawManagedWindowDecorations.
+
+2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
+       Extracted ManagedWindowGetTitleBarIconArea.
+
+2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCellStyle.cs: Don't clone the font.
+
+2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
+
+2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
+       also on 64 bit machinges. Fixes the BadWindow errors while scrolling
+       in 64 bit machines.
+
+2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCell.cs: Correctly get converters for FormattedValue.
+       Use Format/FormatProvider before trying converters.
+       * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
+       are 'set'.  Change constructor to not use ApplyStyle since it wants
+       everything applied.  Clone the Font.
+       * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
+       ApplyStyle the rest.
+
+2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: We need to calculate the scrollbars even if the handle
+       hasn't been created - this is needed when methods using scrollbars
+       info, such EnsureVisible, are called before control has been created.
+       Fixes #397272.
+
+2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
+       only if the elements are defined. 
+
+2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
+       section. Also, when setting bounds, snap height as well as save the
+       requested height if Dock has any value affecting the height: Left,
+       Right and Bottom - important if using IntegralHeight as true.
+
+2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
+       passed to SetBounds to reflect the new adjusted height (Integral-wise), 
+       instead of doing that only in our SetBoundsCore override, since the 
+       bounds cached can be the same as saved one and we could not get the
+       new height applied.
+       Fixes #396297.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
+       * XplatUI.cs: Added ToolWindowCaptionButtonSize.
+       * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
+       ToolWindowCaptionButtonSize.
+       * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
+       hard coded values.
+       * Theme.cs: Made DoubleClickTime plaform dependent.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
+       * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
+       ToolWindowCaptionHeight.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs: The adjustment to ensure positive client area
+       sizes is now platform dependent (disabled on Windows).
+       * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
+       RequiresPositiveClientAreaSize.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * InternalWindowManager.cs: Changed IconicSize to use
+       SystemInformation.MinimizedWindowSize.
+       * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
+       * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
+
+2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: If the combobox is anchored both on top and bottom,
+       adjust height if IntegralHeight is true when calling SetBoundsCore (as
+       likely the height was modified even if Height wasn't specified in
+       BoundsSpecified parameter).
+       Fixes part of #396297.
+
+2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
+
+       * InternalWindowsManager.cs: Changed minimum window size while resizing to
+       SystemInformation.MinWindowTrackSize.
+       * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
+       * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
+
+2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
+
+       * MenuItem.cs: Fixed Dispose.
+
+2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
+
+       * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
+       * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
+       EnteredHeaderCell, PressedHeaderCell: Added.
+       * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
+       * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
+       theme a chance to override default painting.
+       * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
+       GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
+       * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
+       ListView and DataGridView header rendering.
+       
+2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * RichTextBox.cs: GetPositionFromCharIndex should return the 
+       visual position of the character relative to the viewport.
+       [Fixes part of bug #396664]
+
+2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
+       and not just for the existance of an UITypeEditor. In some cases 
+       there is an editor associated just to do PaintValue, but which 
+       doesn't actually support editing.
+       [Fixes bug #396632]
+
+2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
+       if needed, instead of 0 - this should help us in the corner case where
+       we have more than one item but we are only partially showing 1 item.
+       Fixes part of #374713.
+
+2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
+       control, return immediately if the any parent control's handle hasn't
+       been created or isn't visible, as well as avoiding creating the parent
+       Form if the handle hasn't been previously created.
+       Fixes tests.
+
+2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TableLayoutPanel.cs: Use border sizes when calculating the
+       panel's preferred size.  [Fixes part of bug #396433]
+
+2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * SplitContainer.cs:
+        - Fix SplitterDistance to update only if needed. 
+        - Make it force min and max validation.
+        - Handle properly mouse moves outside the resizeable area.
+        [Fixes bug #396232]
+
+2008-06-02  Andreia Gaita <avidigal@novell.com> 
+
+       * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
+         (which also suppresses all popup dialogs). Throw NotSupported
+         exceptions for activex getters/setters.
+       * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
+         IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
+         StatusText, Version, GoSearch
+       * HtmlDocument.cs: Add DocType support
+
+2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
+
+       * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
+       [Fixes bug 396124]
+
+2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
+
+2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TableLayoutPanel.cs: When calculating preferred size, use the
+       actual number of columns and rows, not what the user set them to.
+       [Fixes bug #396141]
+
+2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
+
+       * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
+       394311.
+
+2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * XplatUIX11.cs: When detecting areas obscured in a control by other
+       toplevel windows while scrolling, return if the control hasn't a 
+       container form.
+       Fixes some tests.
+
+2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * XplatUIX11.cs: Properly detect the visible area of a control being
+       scrolled (obscured by other winforms controls and any X toplevel
+       windows), to mark as invalid the requested area to be scrolled that
+       isn't visible and thus can't be copied.
+       Fixes #324513.
+
+2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListBox.cs: Compute the precise amount to vertically scroll when
+       using DrawMode.OwnerDrawVariable.
+       Patch by jkeymer (j.keymer@gmx.net).
+
+2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
+       to avoid setting an invalid value for the verticall scrollbar 
+       when navigating items. And, duh, also remove my silly debug messages
+       from previous commits.
+       Fixes #374713.
+
+2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
+       make it MS compatible.
+
+2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
+        - Allow the editing of entries even if their parent is read-only.
+        - Do not render expandable properties read-only.
+        - Refactor expansion checks form PropertyGrid into PropertyGrid.
+
+2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
+
+       * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
+       support for the hover style.
+
+2008-05-29  Andreia Gaita <avidigal@novell.com> 
+
+       * ContainerControl.cs: Check for null dead-end when traversing the tree
+         of parent controls.
+       
+         [Fixes #394332, patch by Ernesto Carrea]
+
+2008-05-29  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
+       constant that it is.  Fixes #393981
+
+2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
+       that the user probably doesn't want to set this.
+
+2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs: Don't let the text size be bigger than
+       the control size for CheckBox/RadioBox.
+       [Fixes part of bug #394645]
+
+2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyGrid.cs: Update the state of the sorting buttons in 
+       the toolbar if PropertySort is set programatically.
+
+2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridItemCollection.cs: Add multiple items with conflicting names 
+       support and also preserve name ordering.
+       [Fixes #395345]
+
+2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridItemCollection.cs: Revert my multiple items with same 
+       name patch.
+
+2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
+       or middle ones.
+       Fixes part of #393908.
+
+2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripDrowDown.cs: When using the Show () methods that have a
+       Control parameter, set the menu owner to that Control.
+       [Fixes bug #394345]
+
+2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
+       [Fixes bug #362756]
+
+2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridItemCollection.cs: Refactor to support multiple items with the 
+       same name.
+       [Fixes bug #394314]
+
+2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: The 2.0 check for illegal cross thread calls in 
+       Control.Handle were throwing an exception when we were getting
+       the Handle in order to invoke correctly.  Created a private
+       version that does not contain this check.
+       [Fixes bug #394531]
+
+2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * PropertyGrid.cs: Respect DefaultTabType.
+
+2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ListView.cs: SPACE selects an item.
+       [Fixes bug #393023]
+
+2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ListView.cs: Reset the search string whenever the items are 
+       modified.
+       [Fixes bug #393020]
+
+2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListControl.cs: For the first added item PositionChanged is fired
+       _before_ ItemChanged, which leave us in a temporary invalid state - so
+       we need to set the selected index from ItemChanged handler *if* we
+       know that the first item has just been added *and* the items have been
+       actually added to the ListControl.
+       Fixes #369048.
+
+2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TabControl.cs: Only clicks with the left button should be
+       handled.
+       Fixes #393908.
+
+2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: 
+       * FIleDialog.cs:
+       * TextBox.cs: Expose an internal method in TextBox to restore the
+       original context menu, and call it from ComboBox to re-use it in the
+       combobox containing the file name in FileDialog.cs.
+       Fixes part of #393775.
+
+2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
+       style.
+
+2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
+       down button style.
+
+2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: Minor correction to previous patch: PageDown should
+       also *try* to move by one item if the computed offset is negative,
+       just like the PageUp case.
+
+2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: When navigating using PageDown/PageUp the navigation
+       should be done for at least 1 item, and not stay at the same item.
+       Fixes part of #374713.
+
+2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
+       directories.  [Fixes bug #393931]
+
+2008-05-22  Andreia Gaita <avidigal@novell.com> 
+
+       * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
+         Don't fire events until the initial about:blank page has finished
+         loading. Clean up events.
+
+2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
+         FocusIn() too. This should fix the issue on switching
+         scim keyboards.
+
+2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * X11Keyboard.cs : set XIM font size to somewhat reasonable
+         number (ideally the input textbox size, but that could be
+         too messy).
+
+2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
+       the ToolStripItem's TextChanged.  [Fixes bug #393597]
+
+2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TabControl.cs: When invalidating in SelectedIndex and we need to
+       inflate to take into account the border of the tabs, make sure that
+       the invalidated rect doesn't overflow the control bounds, since that
+       would avoid updating at all.
+
+2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TabControl.cs: Don't substract scroller width from the row width,
+       since we need to take into account the total width of the control when
+       calculating the position of the tabs. This avoids showing scroller
+       when it is actually not needed.
+       Fixes part of #322325.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for TextBoxBase.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
+       Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
+
 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
 
        * DataGridView.cs: Only paint the top left header cell if there