2009-01-03 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 2eadfb02a51fdda1d390e246d2dc7163a9c04a04..21cafc145363148b88a3c6d29b57a886a99881dc 100644 (file)
@@ -1,3 +1,321 @@
+2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridViewCell.cs: We should return a value even if we are not bound 
+       to a DataGridView.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * CurrencyManager.cs, DataGrid.cs: 
+          - Rename CanAddRows to AllowNew. The CurrencyManager has no 
+          concept of "rows".
+          - Add two more internal properties AllowRemove and AllowEdit.
+       * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
+       AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
+       CurrencyManager data source.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Fix crashes caused by assigning negative values to 
+       ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
+       the column/row heights/widths.
+       [Fixes bug #462684]
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Non-autogenerated columns that have a data property 
+       set that exists in the current datasource should be set to be data-bound.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Fix column sorting for columns containing null 
+       values. A "null" value is not always "null" (e.g could be String.Empty) 
+       and thus parsing numeric types throwed an exception for "null" values.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Detach the editing control when the edit is 
+       finished.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Multiple fixes to handle last column/row removal 
+       and cell movement after that instead of throwing exceptions.
+
+2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridViewCellCollection.cs: When cells are removed the column 
+       indices become invalid if the cell is not the last one and have to 
+       be refreshed.
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Return false in CommitEdit if there was an error.
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Remove a leftover Console.WriteLine.
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridViewRow.cs: Access the indexer of the data manager directly 
+       instead of the internal list.
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
+       Rewrite the value getting, setting, parsing, formatting logic:
+          - If data-bound value get/set should actually get and set from the 
+            data source.
+          - Make proper usage of TypeConverters for value parsing/formatting.
+          - Raise DataError if setting the new value fails.
+          - Get rid off the internal valueType field and get/set the ValueType 
+          property instead.
+       [Fixes bug #462051]
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Rewrite the DataBinding layer:
+          - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
+          specific code.
+          - Get rid off the per DataSource type column autogeneration code.
+          - Use the CurrencyManager for everything that is DataBinding related.
+
+2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * CurrencyManager.cs: Do not fire duplicate ListChanged events.
+
+2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
+       DataManager to fetch the CurrencyManager for the DataGridView and to 
+       spare this logic for the other components to follow.
+
+2008-12-31  Mario Carrion  <mcarrion@novell.com>
+
+       * MessageBox.cs: UIA support: new properties: UIAMessage, 
+       UIAMessageRectangle and UIAIconRectangle.
+
+2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
+
+       * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
+       and DirComboBox.DirComboBoxItem.ToString override for UIA support.
+
+2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Do not autogenerate duplicate column for a 
+       data member that has already problematically been assigned one.
+       [Fixes bug #457305]
+
+2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ProfessionalColorTable.cs: Better detection of user's theme.
+       [Fixes bug #462766]
+
+2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: In the case where there are no autogenerated 
+       columns and the user adds columns problematically we must generate 
+       the rows after the very first column is added.
+
+2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * DateTimePicker.cs: When increasing/decreasing the value of month
+       with ShowUpDown set to true, moving from december to january, and
+       moving from january to december should adjust the year to the next and
+       the previous year, respectively.
+       Fixes the remaining bits of #459674.
+
+2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: If a new cell is selected edit mode should be 
+       immediately enabled only if EditOnEnter is set. Whether the mouse 
+       or not was used to select the cell is irrelevant.
+
+2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Remove a bogus ReBind call, which was causing 
+       recursive rebinding.
+
+2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * DateTimePicker.cs: Handle the "MMMM" month format.
+       Fixes #459674.
+
+2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: 
+          - Make ReBind private and refactor various calls to call ReBind 
+          instead of ClearBinding/DoBinding
+          - Rebind when the column collection changes
+       * DataGridViewColumnCollection.cs: 
+          - Leave the rebinding on change to be handled by the DataGridView.
+
+2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
+
+       * DataGridView.cs: Add a ReBind convenience method.
+       * DataGridViewColumnCollection.cs: Rebind when a column is added.
+       [Fixes bug #462019]
+
+2008-12-23  Neville Gao  <nevillegao@gmail.com>
+
+       * StatusBar.cs: Modified argument variable.
+       * SplitContainer.cs: Control enabled to support accessibility.
+       [Fixes Bug #455950]
+
+2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripMenuItem.cs: Guard against an NRE.
+       [Fixes bug #457110]
+
+2008-12-22  Mario Carrion  <mcarrion@novell.com>
+
+       * Control.cs: AccessibleXXXX properties don't return 
+       AccessibleObject.XXXX, instead a local referece is returned.
+
+2008-12-22  Neville Gao  <nevillegao@gmail.com>
+
+       * PrintPreviewControl.cs: Added internal properties to support
+       accessibility.
+       [Fixes Bug #459699]
+
+2008-12-19  Mario Carrion  <mcarrion@novell.com>
+
+       * Control.cs: Reverted r121561. 
+
+2008-12-19  AndrĂ©s G. Aragoneses  <aaragoneses@novell.com>
+
+       * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
+       it has been moved to the bridge.
+
+2008-12-18  Brad Taylor  <brad@getcoded.net>
+
+       * DateTimePicker.cs: Add a few UIA specific events, and a couple
+       internal methods useful for UIA.
+
+2008-12-18  Mario Carrion <mcarrion@novell.com>
+
+       * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
+       [Fixes Bug #455752]
+
+2008-12-17  Mike Gorse  <mgorse@novell.com>
+
+       * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
+         item's Focused property is set.
+
+2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
+
+       * TreeView.cs:
+       * TreeNode.cs:
+       * TreeNodeCollection.cs: Add events for UIA support:
+       UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
+       UIACollectionChanged.
+
+2008-12-17  Bill Holmes  <billholmes54@gmail.com>
+
+       * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
+         SubItemStyle member field. 
+
+       Contributed under MIT/X11 license.
+
+2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
+       y coord, since it's useless in this case, and we need to rely only on
+       the number of rows and ItemHeight to compute this value.
+       Fixes part of #257471.
+
+2008-12-15  Mike Gorse  <mgorse@novell.com>
+
+       * StatusBar.cs: Send OnUIACollectionChanged in Remove().
+
+2008-12-15  Mario Carrion  <mcarrion@novell.com>
+
+       * Control.cs: Accessibility properties instantiate AccessibilityObject when
+       needed.
+       [Fixes Bug #459223]
+
+2008-12-15  Brad Taylor  <brad@getcoded.net>
+
+       * ToolStripItem.cs: Add a UIA specific event for listening for when a
+       ToolStripItem becomes selected or deselected.
+
+2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
+       .net does. Use the date in the point of the mouse move coords as the
+       new range as well, if the left button of the mouse is being pressed.
+       Fixes #364914.
+
+2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
+
+       * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
+       MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
+       effectively repaint the control.
+       Fixes the remaining bits of #417961.
+
+2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
+       range to contain only dates within the new possible range.
+       Fixes part of #417961.
+
+2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
+       length of the text, but the end position, so we need to substract 1 to
+       have a valid value. Also, in the same InputText method, don't use
+       SelectionLength as the length of the text, since the selected text
+       could actually be empty, but we need to set the value anyway.
+       Fixes #457370.
+
+2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TextBox.cs: Don't do any auto complete task if the custom source is
+       null or empty. Also avoid duplication of code.
+       Fixes #457743.
+
+2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: Refresh column sizes when new rows are added.
+       [Fixes bug #457050]
+
+2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
+       * RichTextBox.cs: When parsing the contents of a rtf file, don't call
+       Split to create a line - we are already doing this, by _adding_ a new
+       one when rtf_cursor_x is 0 (this field gets this value just after we
+       receive the newline param as true). This avoids having a proportional number
+       of empty lines in the end of the rich text box.
+       Fixes #396664.
+
+2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * RichTextBox.cs: When saving the contents as a plain text, don't add
+       a new line for every Line structure, since the data in Document
+       already contains the new line characters. This avoids duplicated new
+       lines using the Save methods.
+       Fixes #445618.
+
+2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
+
+       * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
+       framework.  Fixes bug #457678.
+
+2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
+       where datasource is null.
+       [Fixes exception reported in bug 441240]
+
+2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: EndEdit validation fixes.
+
+2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * DataGridView.cs: This is the cool patch that adds support for 
+       actually updating the data in the databinding backend after editing. 
+       With bonus firing and handling the DataError event.
+
 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * Line.cs: When calculating the text tags's Shift value, store it as
        the item's location into account.
        [Fixes bug #437683]
 
-2008-10-24  Neville Gao <nevillegao@gmail.com>
+2008-10-24  Neville Gao  <nevillegao@gmail.com>
 
        * NumericUpDown.cs: Control enabled to support accessibility.
        [Fiexes bug #438135]
        text location.
        Fixes #435105.
 
-2008-10-17  Neville Gao <nevillegao@gmail.com>
+2008-10-17  Neville Gao  <nevillegao@gmail.com>
 
        * StatusBarPanel.cs: Control enabled to support accessibility.
        [Fixes bug #435988]
        hlaustralia.com.au).
        Fixes #425360.
 
-2008-09-23  Neville Gao <nevillegao@gmail.com>
+2008-09-23  Neville Gao  <nevillegao@gmail.com>
 
        * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
        [Fixes bug #419079]
          properties.
          [Fixes bug #418684]
 
-2008-09-03  Neville Gao <nevillegao@gmail.com>
+2008-09-03  Neville Gao  <nevillegao@gmail.com>
 
        * StatusBar.cs: Control enabled to support accessibility.
        [Fixes bug #419079]