2008-06-11 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index dbc963bc04c2926307167911c94ad4949d58f82d..e04443438447ca5bc052a279bf03cccae1697310 100644 (file)
@@ -1,3 +1,309 @@
+2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * FontDialog.cs: Forward ListBox keyboard events to the ListBox
+       instead of trying to duplicate the code.
+       * ListBox.cs: Make method internal so we can send keyboard events.
+       [Fixes bug #398344]
+       
+2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextBoxBase.cs: When pasting and checking the max length,
+       subtract the selected text length (the text we will be replacing) from
+       the document length.
+       * TextControl.cs: Ensure every character insertion is reflected in
+       charcount, so max length will work properly.
+       [Fixes bug #398605]
+
+2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs: Ensure scrollbars are updated when a single
+       column listbox with an already set top-index is created.
+       [Fixes bug #398342]
+
+2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * FontDialog.cs: Typing in the font/style textboxes should search
+       the list boxes case-insensitively.  [Fixes bug #398343]
+
+2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
+       widths of icon and buttons instead of hard coded values.
+
+2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListBox.cs: When SelectionMode is None, clicking an item should move focus
+       as well as generating a SelectedIndexChanged event, just like .Net does
+       -surprise-.
+       Fixes #398345.
+
+2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListBox.cs: When navigating items visually, use FocusedItem as the
+       reference point instead of SelectedIndex, since even in
+       SelectionMode.None we need to support navigation, and in that case we
+       just can't use SelectedIndex.
+       Fixes part of #398345.
+
+2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Make a SetBoundsInternal that avoids the new
+       SetBounds code.
+       * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
+       SetBoundsInternal instead of SetBoundsCoreInternal.
+
+2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
+       SetBounds for the scrollbars.
+
+2008-06-10  Andreia Gaita <avidigal@novell.com> 
+
+       * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
+         FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
+         OnMouseMove, OnMouseOver, OnMouseUp
+       * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
+         ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
+       * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
+         to the WebControl object to pass to new collection objects
+       * HtmlHistory.cs: Implement support for individual window histories.
+       * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
+         AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
+         GotFocus, LostFocus, OnLoad, OnUnload
+       * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
+         ContextMenu
+       * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
+         security level changes and context menu event support.
+
+2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
+       as happens with Esc, patch my Andy Hume.
+       Fixes #396294.
+
+2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * MdiWindowManager.cs: DrawMaximizedButtons now uses
+       ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
+       * Theme.cs: Made MenuButtonSize platform dependent. Added
+       ManagedWindowButtonSize.
+       * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
+       * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
+
+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