2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index cf33a0a26f85374126087212d0250553c127fa3a..064fe64b4fe5aca7324b7ef1a261719a68072a4d 100644 (file)
@@ -1,3 +1,193 @@
+2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs: Add more text padding space when using
+       auto resize for columns (the previous value didn't work fine).
+
+       * ThemeWin32Classic.cs: Update text position inside columns,
+       to match the appeareance of .Net.
+
+       * ColumnHeader.cs: When using auto resize, only the Width should
+       depend on the sub items, not the Height. Also, set width after
+       auto resizing (the value of Width should never remain as -1 or -2).
+
+2007-01-10  Chris Toshok  <toshok@ximian.com>
+
+       * Application.cs: fix compilation errors when debug is enabled.
+
+2007-01-10  Chris Toshok  <toshok@ximian.com>
+
+       * ContainerControl.cs (set_ActiveControl): rework this a bit (and
+       add some nice ascii art pictures and explanation of the process).
+       (GetMostDeeplyNestedActiveControl): new utility function we need
+       because our ActiveControl can refer to a child container with its
+       own ActiveControl.
+
+       * Form.cs (OnActivated): remove the call to SelectActiveControl
+       from here, since you can override this method and not chain up,
+       and winforms still sets the active control.
+       (OnCreateControl): also remove the unnecessary SelectActiveControl
+       call from here.
+       (WndProc): it's actually called from the WM_ACTIVATE block, just
+       before calling OnActivated.
+
+       * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
+       inside the else.  the ActiveControl setter will end up setting
+       focus on @control.  This keeps us from setting it again (and
+       generating an extra LostFocus/GotFocus pair).
+       (Select (bool, bool)): reindent.
+
+2007-01-10  Jonathan Pobst  <jpobst@novell.com>
+
+       * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
+       StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
+       ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
+       ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
+       ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
+       ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
+       ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
+       ToolStripTextBox.cs: Another wave of corcompare work.
+
+2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ColumnHeader.cs: Implement 2.0 AutoResize method using
+       the Width property.
+
+       * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
+       methods by callling Column.AutoResize method on columns.
+
+2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Provide proper implementations of PreferredSize
+       and GetPreferredSize (2.0).
+
+2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs: Remove one character (!) to make my previous OnClosing
+       stuff work for modal windows like MessageBox.
+
+2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListView.cs:
+       * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
+       ListView.Columns to get the last displayed column. Fixes #80452.
+
+2007-01-09  Everaldo Canuto  <everaldo@simios.org>
+
+       * Label.cs, LinkLabel.cs: Source code identation fixes.
+
+2007-01-08  Everaldo Canuto  <everaldo@simios.org>
+
+       * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
+       we dont need to invalidate only borders because when we invalidate four
+       border lines the invalidate's generates a complete redraw of button, 
+       because it now invalidate a complete rect some other redraws operations
+       are fixed. Fixes #80196.
+       
+       * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
+       Remove ToolBarInvalidateEntireButton as it is not used.
+
+2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
+       
+       * Form.cs: Make sure that both OnClosing and OnFormClosing are
+       called for 2.0 profile.
+       * CloseReason.cs: Make class internal for 1.1.
+
+2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripManager.cs: Implement FindToolStrip functionality.
+       * ToolStrip.cs: Register and unregister with ToolStripManager.
+
+2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: This was messy.  2.0 moves much of ControlCollection
+       to ArrangedElementCollection.  Implemented this with as few #if's as 
+       possible (which is still too many).
+
+2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Implement SizeFromClientSize() [2.0].
+
+2007-01-07  Everaldo Canuto  <everaldo@simios.org>
+
+       * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
+       use Theme.BorderSize to calculate area instead of static value 1, 
+       by the way use new BorderStaticSize instead     Border3DSize when 
+       border_static is true. Fixes #79537.
+       
+       * XplatUIOSX.cs: Fix call to GetClientRectangle. 
+       
+       * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
+       it is not needed.
+
+2007-01-06  Everaldo Canuto  <everaldo@simios.org>
+
+       * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
+
+2007-01-06  Everaldo Canuto  <everaldo@simios.org>
+
+       * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
+       WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
+       
+       * Hwnd.cs: 
+       - border_static field added, it will used to define when a control 
+       theres 3D border but it must be static (thin).
+       - In GetWindowRectangle use Theme.BorderSize to calculate area 
+       instead of static value 1, by the way use new BorderStaticSize instead
+       Border3DSize when border_static is true.
+
+       * XplatUIX11.cs, XplatUIOSX.cs: 
+       - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
+       
+       * Theme.cs: BorderStaticSize field added.
+
+2007-01-05  Everaldo Canuto  <everaldo@simios.org>
+
+       * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
+
+2007-01-05  Everaldo Canuto  <everaldo@simios.org>
+
+       * Control.cs: Under InternalBorderStyle call RecreateHangle to 
+       mimic same behavior than win32 that set border only in CreateParams,
+       it fix problems under CreateParams overrides. Fix #79442 and partial
+       fix #79537.
+       
+       * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
+       of thi control you must call recreate handle. 
+       
+       * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
+       need to do anything as RecreateHangle will take care about borders.
+
+2007-01-05  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: hack to eliminate Lost/Got focus notifications on
+       cycles between the ItemControl and parent.  Fixes #80388.
+
+2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Control.cs: Lazy init layout engine. Do not directly use 
+       layout_engine since LayoutEngine may be overridden (on 2.0 profile).
+
+2007-01-05  Chris Toshok  <toshok@ximian.com>
+
+       * DataGrid.cs: don't forceably rebind columns in SetDataSource
+       unless our list manager has changed (i.e. unless we have reason to
+       believe our columns have changed).  Fixes #80422.
+       
+       also, disable the call do BindColumns in
+       OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
+       1.1 the event isn't raised in response to a column addition on a
+       table.)
+
+2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
+       that inheritors can not call it if they choose.  Fixes bug #80456.
+
+2007-01-05  Andreia Gaita  <avidigal@novell.com>
+
+       * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
+       doesn't blow up with a null exception on marshalling.
+       
 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
 
        * Control.cs: Implement several 2.0 protected properties and methods.