2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 1585c2019e017e2d4be26d5e1669e25912731107..11b63e7499edad4e66bd9bfd08de7f3a967e78c4 100644 (file)
@@ -1,3 +1,155 @@
+2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * ScrollableControl.cs:
+         - Rewrote DisplayRectangle code, now returning the proper x/y coords 
+           (instead of 0,0) and we now return the real width/height instead of
+           just the clientrectangle, adjusted for padding. The rectangle is
+           now cached and created by the new CalculateDisplayRectangle method.
+         - Created new CalculateDisplayRectange method, which basically does
+           what get_DisplayRectangle() did originally, but now using the 
+           right edge instead of DisplayRectangle to determine the size of
+           our scrollbars
+         - get_Canvas(): Fixed it to properly calculate canvas for 
+           right/bottom controls which seem to be placed to the right/bottom
+           of any controls that have a fixed location
+         - Removed TODO that's taken care of
+         - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
+           and SetDisplayRectLocation according to new MSDN2 docs
+         - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
+           event when that is called, this is added for compatibility
+         - ScrollControlIntoView(): Implemented.
+         - Switched scrollbars to be implicit, they shouldn't be selectable
+       * ContainerControl: Now that ScrollControlIntoView is implemented, we 
+         call it when the active control is set/changed
+       * ScrollBar.cs: Added support for generating Win32 scrollbar messages
+       * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
+         implicit_control variable (used for native Win32 message generation)
+       * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
+         HorizontalScrollBarHeight and VerticalScrollBarWidth properties
+       * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
+       * XplatUIStructs.cs: Added ScrollBarCommands enum
+
+2006-04-10  Jackson Harper  <jackson@ximian.com>
+
+       * ButtonBase.cs:
+       * CheckedListBox.cs:
+       * ComboBox.cs:
+       * DataGrid.cs:
+       * DataGridView.cs:
+       * Form.cs:
+       * GroupBox.cs:
+       * ListBox.cs:
+       * PrintPreviewControl.cs:
+       * ProgressBar.cs:
+       * PropertyGrid.cs:
+       * Splitter.cs:
+       * StatusBar.cs:
+       * TrackBar.cs:
+       * UpDownBase.cs: Fixup base event overrides.
+       
+2006-04-06  Mike Kestner  <mkestner@novell.com>
+
+       * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
+       all user-initiated value changes to min <= value <= max-thumbsz+1.
+       (set_Value): check for vert/horiz when calculating new thumb position.
+       (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
+       like MS does.
+       (OnMouseMoveSB): refactor the thumb dragging code and refine
+       invalidation logic to reduce flicker.
+       (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
+       (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
+       (UpdateThumbPosition): small code readability cleanup
+
+2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeNice.cs: Small UI polishing. Draw borders a little bit
+         different
+
+2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeNice.cs: Use a better graphics effect when a button is pressed
+
+2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
+
+       * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
+       * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
+         This dramatically reduces the number of Pen.Dispose calls. 
+         Where possible call ResPool methods only once instead of calling it
+         over and over again (for example for the same color).
+
+2006-04-06  Mike Kestner  <mkestner@novell.com>
+
+       * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
+       Also remove an unused private field on the collection. Fixes #77972.
+
+2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeNice.cs: Added ToolBar drawing code
+
+2006-04-06  Mike Kestner  <mkestner@novell.com>
+
+       * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
+       I'm assuming that means we need to look up the toplevel for the
+       provided control. Fixes the crash trace in #77911 but exposes another
+       crash in some strange reflection usage in NDocGui.
+
+2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeNice.cs: Gave it a little silver touch and added Images
+         method
+       * FontDialog.cs: FontDialog is not resizable
+       * FileDialg.cs: Added SizeGripStyle.Show
+
+2006-04-05  Jackson Harper  <jackson@ximian.com>
+
+       * KeyboardLayouts.cs: Remove warning.
+
+2006-04-05  Jackson Harper  <jackson@ximian.com>
+
+       * Control.cs: Enable OnPaintInternal so we can use it for drawing
+       all of our controls instead of Paint +=.
+       * ListBox.cs:
+       * ListView.cs:
+       * MenuAPI.cs:
+       * MessageBox.cs:
+       * NotifyIcon.cs:
+       * ProgressBar.cs:
+       * ScrollBar.cs:
+       * Splitter.cs:
+       * StatusBar.cs:
+       * TabControl.cs:
+       * TextBoxBase.cs:
+       * ToolBar.cs:
+       * TrackBar.cs:
+       * UpDownBase.cs:
+       * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
+       use OnPaintInternal. Remove Width/Height and Visible checks in
+       paint handler, this is done at a higher level now.
+       * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
+       * PaintEventArgs.cs: Add a handled flag so controls that don't
+       want anymore painting after OnPaintInternal can make sure OnPaint
+       isn't called.
+
+2006-04-05  Mike Kestner  <mkestner@novell.com>
+
+       * Form.cs: fix the menu WndProc hacks to respect the native enabled
+       state of the form, so that we don't process events when Modal dialogs
+       are up. Fixes #77922.
+
+2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
+
+       * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
+         checking is done.
+
+2006-04-05  Mike Kestner  <mkestner@novell.com>
+
+       * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
+
+2006-04-05  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs (HeaderMouseMove): null guarding for the over column
+       when setting up the drag_to_index.  Fixes #78015.
+
 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
 
        * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up