2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index c8b447b3ab593e26c2f5c13154b8e6c2bc4fb4cd..fb97939cf193543f439e28867834742217160909 100644 (file)
@@ -1,3 +1,383 @@
+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
+       are columns.
+
+2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs: When binding to a BindingSource, get the underlying
+       list to bind to.  [Fixes bug #345483]
+
+2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs: Do not bind to collection properties.
+       [Fixes bug #337470]
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
+       thumb style.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
+       background.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
+       checked styles.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * TabControl.cs: Extended to handle the hot style.
+
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
+       Extended UpDownBase code to handle hot and disabled styles.
+
+2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs: Handle databinding to generic list type things.
+       [Fixes bug #325239]
+
+2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewCellCollection.cs: Add a method to find the cell
+       with the given DataPropertyName.
+       * DataGridViewColumn.cs: Track if the column was autogenerated or not.
+       * DataGridViewColumnCollection.cs: Add a method to clear all
+       autogenerated columns.
+       * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
+       columns.
+       [Fixes bug #348082]
+
+2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs: Don't try to update the RowTemplate with
+       a null CellTemplate.
+
+2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
+       * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
+       * DataGridView.cs: Lots of fixes/enhancements to databinding to
+       a DataSet.
+
+2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Remove invalidating implicit child controls when
+       control is invalidated.  It was causing too many redraws on
+       controls with implicit scrollbars.
+       * ListView.cs: Listen to the Invalidated event and invalidate
+       child controls.
+
+2008-05-20  Andreia Gaita <avidigal@novell.com> 
+
+       * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
+       * HtmlDocument.cs: Check for nulls
+
+2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Control.cs: In ControlCollection.RemoveInternal, remove the
+       internal control before calling PerformLayout and OnControlRemoved,
+       which was leaving us in an invalid state and causing a X error (bad
+       match). Observe that Remove () call has the same order.
+       Fixes an X error changing ComboBoxStyle.DropDownStyle.
+
+2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TabControl.cs: Don't paint by ourselved and instead let OnPaint
+       being fired if ControlStyles.UserPaint style is activated.
+       Fixes #371905.
+
+2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridEntry.cs: Don't be so strict when setting the value - 
+       do not check if what we set is what we get.
+       [Fixes bug #389245]
+
+2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * XplatUIX11.cs: If there are no timers timeout should be 0
+       [Fixes bug #363522]
+
+2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: As a followup to invalidating implicit children when
+       a control is invalidated, only invalidate them if they are in the
+       clip rectangle.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
+       * XplatUIWin32.cs: Made Win32DeleteObject public.
+
+2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * GridEntry.cs: Determine HasDefaultValue more strictly by using 
+       PropertyDescriptor.ShouldSerializeValue.
+       [Fixes bug #391924]
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
+       in the classic theme.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
+       ThumbPressed.
+       * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
+       ScrollBarHasPressedThumbStyle.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * TextRenderer.cs: Included some methods in the 1.1 profile.
+
+2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: When we make a control visible, it may have been
+       previously visible and while it wasn't visible, the z-order of
+       things may have been shuffled, so the control needs to have its
+       z-order updated just in case.  [Fixes bug #391518]
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for GroupBox.
+
+2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * GroupBoxRenderer.cs: Included in the 1.1 profile.
+
+2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
+         bug #389996; XSelectInput() behaved as mouse handler robber,
+         so remove extra call to it.
+
+2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Simplify ControlCollection.Contains method.
+
+2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewRow.cs: Implement GetPreferredSize.
+
+2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
+
+2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
+       painting and edit control fixes.
+
+2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs, DataGridViewCell.cs: Work around some external
+       checks to make sure we are in an actual row/col for top left header cell.
+       * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
+
+2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Use long instead of int when handling WParam from
+       mousewheel scrolling.  Int was overflowing on Win64.
+
+2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
+       flow panel without scrolling first, and then calculate the 
+       scrolling based on the new layout.  [Fixes bug #390149]
+
+2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs: Invalidate after scrolling up when selected index
+       changes.  [Fixes bug #390151]
+
+2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: When setting mode to Simple *and* height hasn't been
+       set, default height to 150. I tried first with DefaultSize, but this
+       is not generating a SetBoundsCore call before handle creation time, so
+       we can take it into account. This is just what .net does.
+
+2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
+
+       * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
+       as it broke some stuff.  Calberto is filing a bug for eno to
+       work with.
+
+2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
+       to 0 is the current value is -1, and if style is not Simple, just
+       return, like .net does.
+       Fixes part of #374713.
+
+2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
+       progress bar stuffs, use doubles instead of ints to prevent
+       overflow.  [Fixes bug #389798]
+
+2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * XplatUIX11.cs, X11Keyboard.cs :
+         Significant refactoring on XIM support. Now IM engine UI
+         should show up, at mostly-correct preedit position.
+         - Eliminated use of FocusWindow, as it is never mapped
+           and hence blocks correct preedit position. XIC is now
+           created per window, and it must be destroyed too when
+           the window is destroyed.
+         - WM_QUIT messages should not be filtered even when hwnd
+           is zombie. Filtering it could cause endless loop.
+         - Preedit position must move only when the window is alive.
+         - Make it IDisposable and make sure to release XIM/XICs.
+
+2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
+         XplatUIX11.cs, XplatUIWin32.cs :
+         fix for bug #325033 and #387693;
+         - WM_QUIT should not be sent when no running application
+           exists.
+         - SetTimer/KillTimer (especially on win32) should be
+           invoked for the window that the timer is/will_be attached.
+         - There could be unattached timers to a window when it's
+           started. For those timers, hold pending timers and when
+           a window is mapped, attach them to it.
+         - WaitForHwndMessage() could run into loop when
+           WM_SHOWWINDOW is handled before this method is called.
+           So, strictly check wm_showwindow state.
+         - Tick handler should not be invoked while one Tick handler
+           call is still running (introduced Busy state).
+
+2008-05-13  Andreia Gaita <avidigal@novell.com> 
+
+       * WebBrowserBase.cs: Override Internal alternative methods for
+         SetBoundsCore and OnResize instead of the protected ones.
+       * Control.cs: Move SetBoundsCore and OnResize implementations to
+         SetBoundsCoreInternal and OnResizeInternal, so they can be
+         overriden internally (WebBrowserBase needs to catch them but can't
+         override the protected methods without api compat problems)
+
+2008-05-13  Andreia Gaita <avidigal@novell.com> 
+
+       * WebBrowserBase.cs: Hiding away non-public overrides for api compat
+
+2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * Binding.cs:
+       * ListView.cs: Remove debug messages.
+
+2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ComboBox.cs: Don't do any calculation for simple mode if the listbox
+       area is empty. Also calculate scrollbars in Simple mode based in area
+       height and total number of items, not in MaxDropDownItems.
+       Fixes part of #371991.
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * BindingSource.cs: GetListSortDescription is not public.
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * HtmlElement.cs: Fix parameter names to match MS.
+       * HtmlWindowCollection.cs: Should not be sealed.
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
+       button, because the thumb button will not get drawn if the scrollbar
+       is disabled.  [Fixes bug #389262]
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs: Handle End key for multi-column listboxen.
+       [Fixes bug #389266]
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs: Fix algorithm to determine which column our item is in.
+       [Fixes bug #389265]
+
+2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ListBox.cs: Invalidate when the listbox is resized.
+       [Fixes bug #389256]
+
 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
 
        * ListBox.cs: There is always at least one row in the ListBox (if