X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FChangeLog;h=9d5c470579a818eabe930d839ec69c36110b3595;hb=34bdc8140653952c3e7cd0bd217177f7d63ef29e;hp=5e189e43eed395349b2db7044166c4e48f8641f1;hpb=155a71bcb9c26e5ce587020a23b9c90e86fe5c48;p=mono.git diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 5e189e43eed..9d5c470579a 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,561 @@ +2009-05-13 Andreia Gaita + + * HtmlDocument.cs: If the objects are strings, wrap them in "" + +2009-05-13 Andreia Gaita + + * HtmlDocument.cs: Fix InvokeScript call (duh). + +2009-05-11 Carlos Alberto Cortez + + * TextBox.cs: Expose IsAutoCompleteAvailable as internal. + * ComboBox.cs: If auto complete is being used, it is needed to update + the actual value of the combo box, doing it immediately if the user + presses Enter, or doing it when our combo box loses focus. Finally, + when handling Enter and Escape keys for the combobox, don't try to + hide the listbox if it is not visible in the first place. + Fixes part of #489339. + +2009-05-11 Carlos Alberto Cortez + + * ToolStripDropDownMenu.cs: Use the height returned by + ToolStripItem.GetPreferredHeight to calculate our own height. + +2009-05-10 Carlos Alberto Cortez + + * TreeNode.cs: When setting Checked, do a double null check, since the + current node can still get a null parent handling + TreeView.OnAfterCheck. + Fixes #502567. + +2009-05-10 Carlos Alberto Cortez + + * Control.cs: When assigning ContextMenu, do a null check before + assigning its container field. + +2009-05-08 Brad Taylor + + * DateTimePicker.cs: Add a UIA-specific property to ensure that if + is_checkbox_checked is changed, we won't break. + +2009-05-08 Andrés G. Aragoneses + + * ToolStripItem.cs: Prevent NRE when our holder is a + ToolStripDropDownButton and we get Select()ed. + +2009-05-08 Carlos Alberto Cortez + + * ToolStripControlHost.cs: DefaultSize must return the current size of + the Control, not the value returned by GetPreferredSize. Also connect + a handle to the control Resize event, and use it to fire + OnHostedControlReize. + Fixes the remaining bits of #483146. + +2009-05-08 Carlos Alberto Cortez + + * ToolStripDropDown.cs: When performing the layout, use + ToolStripItem.GetPreferredSize ().Height instead of + ToolStripItem.Height, since we are already using it that way in this + same method. + Fixes part of ##483146. + +2009-05-08 Brad Taylor + + * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send + OnUIASelectionChanged when ShowCheckbox is true and the checkbox + recieves focus. Part of fix for #502029. + +2009-05-06 Mike Gorse + + * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel. + Add PerformClick and PerformDoubleClick to PopupButton. + Fixes #499851. + +2009-05-04 Andrés G. Aragoneses + + * TabControl.cs: call Focus() to emit GotFocus event at the + proper time when SelectionIndex changes. Fixes #499887. + +2009-05-03 Carlos Alberto Cortez + + * MonthCalendar.cs: In SetBoundsCore always do the bounds check to + have valid values, even if BoundSpecified is not including + Size/Height/Width - this is useful when we are in a control using Dock + or Anchor. + Fixes part of #483146. + +2009-04-27 Carlos Alberto Cortez + + * ComboBox.cs: When losing the focus, if our textbox is not null, + close its auto complete list, if any. + Fixes part of #489339. + +2009-04-27 Andrés G. Aragoneses + + * ListView.cs: Make OnColumnClick +internal to be used by a11y. + +2009-04-27 Brad Taylor + + * ToolStripButton.cs: Emit an internal event when CheckOnClick is + changed. + +2009-04-26 Carlos Alberto Cortez + + * XplatUIX11.cs: Properly support UTF8 when handling the + SelectionRequest event - this is helpful supporting some window + managers, such KDE, that explictly request the text in utf8, as + opposed to gnome, that supports ascii. + Fixes #489393. + +2009-04-26 Carlos Alberto Cortez + + * ToolStripDropDownItem.cs: When assigning a new + ToolStripDropDownMenu, let it know we are its OwnerItem. This way the + Capture duties performed by Application/ToolStripManager are handled + nicely and we don't end up in an inconsisten stat. + Fixes #492815. + +2009-04-25 Carlos Alberto Cortez + + * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close + any ToolStripDropDownItem when receiving a mouse down event in an + empty area. + +2009-04-24 Andrés G. Aragoneses + + * ToolBarButton.cs: add UIA events for style and dropdownmenu changes. + +2009-04-24 Andrés G. Aragoneses + + * ToolBarButton.cs: rename a method to include UIA prefix. + +2009-04-24 Andrés G. Aragoneses + + * ToolBarButton.cs: change visibility of some UIA methods from + protected virtual to private. + +2009-04-24 Carlos Alberto Cortez + + * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem, + fire OnDropDownOpened/OnDropDownClosed depending on the new + visibility. This also ensures that any direct access to this instance + will fire the mentioned events for the OwnerItem. + * ToolStripDropDownItem.cs: Remove the invocations to + OnDropDownOpened/OnDropDownClosed, since they are handled in + ToolStripDropDown, as well as updating the + OnDropDownHide/OnDropDownShow calls to be in the right order. + Fixes #496193. + +2009-04-21 Carlos Alberto Cortez + + * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any + shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the + event is the same as the owner of the menu item. Also set properly + SourceControl for ContextMenuStrip, as well as add an internal field to + contain the control that owns the ContextMenuStrip (we need to know this + even before the public property is assigned). + Fixes bits of #393775. + +2009-04-20 Carlos Alberto Cortez + + * StatusStrip.cs: Use the same icon as .net when the mouse is over the + size grip. + Fixes #492828. + +2009-04-20 Carlos Alberto Cortez + + * ComboBox.cs: When calculating the height of the ComboListBox, + specially for the 2.0 profile, use MaxDropDownItems if the + DropDownHeight property hasn't been set, and use the later if it has + been set. This way we support both properties. + Fixes #493308. + +2009-04-14 Carlos Alberto Cortez + + * ThreadExceptionDialog.cs: Draw the error icon, previously missing. + Fixes #474253. + +2009-04-14 Carlos Alberto Cortez + + * ContainerControl.cs: Implement support for Control.CausesValidation, + by adding a pending list of controls to be validated in the top + container control, and postpone validation as needed. + Also remove any control in the validation chain in case it gets removed + from its owner before the pending validation actually happens. + Fixes #457170. + +2009-04-09 Carlos Alberto Cortez + + * ListBox.cs: The default instance StringFormat field used to draw our + items should use the StringFormatFlags.NoWrap value, so it doesn't try + to put in a different line the text that doesn't fit our bounds, but + show it partially. + Fixes #475581. + +2009-04-09 Carlos Alberto Cortez + + * CheckedListbox.cs: When executing OnItemClick check that the index + is different to -1 before trying to retrieve an item using that value. + Fixes a ArgumentOutOfRangeException thrown when the horizontal + scrollbar was visible but not needed, and then a clicked was received + on its area. + +2009-04-08 Carlos Alberto Cortez + + * MaskedTextBox.cs: If Insert is pressed, change the internal + overwrite mode for our default value. + Fixes some bits of #477395. + +2009-04-06 Carlos Alberto Cortez + + * ListView.cs: In EnsureVisible avoid any direct access to items if we + are using virtual mode - otherwise use the bounds stored in a specific + item in a given index. This is specially important when using groups + or when items are re-arranged, since the position in the items + collection can be different than that one being displayed. + Fixes the rest of ##491978. + +2009-04-06 Carlos Alberto Cortez + + * ThemeWin32Classic.cs: Include the previous check for ListView in a + 2.0 define as needed. + +2009-04-06 Carlos Alberto Cortez + + * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups. + Fixes part of #491978. + +2009-04-06 Carlos Alberto Cortez + + * ToolTip.cs: New fields to store the title/icon information. + * ThemeWin32Classic.cs: Implement support for tooltip's title and + icon. + Fixes #491978. + +2009-04-03 Carlos Alberto Cortez + + * TabControl.cs: When removing a tab that was previously selected, set + internally the value of selected_index to -1, to avoid trying to + access the previous one when trying to set the new one (and was + already removed from the collection). This is what .net seems to do + too. + Fixes #490937. + +2009-04-02 Carlos Alberto Cortez + + * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be + separated, and we cannot fallback on Text if Rtf is requested but not + present. + * Clipboard.cs: Actually use the format specified by our user when + putting data. + +2009-03-31 Carlos Alberto Cortez + + * X11Clipboard.cs: Actually look for the RtfText format when calling + GetRftText in our clipboard formats list, instead of using the + generical Text format. + +2009-03-30 Carlos Alberto Cortez + + * TextBox.cs: Process auto completion properly when we are using the + internal source provided by ComboBox, and also remove some repeated + checks. + Fixes #489339. + +2009-03-30 Tom Hindle + + * DataGridView added Support for Invisible Columns to + AutoFillColumnsInternal method. + +2009-03-30 Carlos Alberto Cortez + + * X11Structs: + * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to + its own file, since it is adding some functionality and thus is not a + simple struct as before. + * XplatUIX11.cs: Add support to store different formats that could + have been specified by the user when puting data in the Clipboard - + this is important when more than one format is supported (such plain + text and rtf text). Update in the needed places, as well as simplify + the code. + Fixes #489625. + +2009-03-30 Carlos Alberto Cortez + + * XplatUIX11.cs: When handling the SelectionRequest event, use + SelectionRequestEvent instead of SelectionEvent, so we get the right + data for the app asking for clipboard data. Set the member of + SelectioneEvent.property to indicate the place where we are storing + the information as well - this is specially important for gnome/kde + apps using the TARGETS atom to ask for the supported permission before + actually asking for a specific format. + Fixes #489393. + +2009-03-28 Ivan N. Zlatev + + * DataGridViewCell.cs: We don't support drawing all types of cell borders, + so fallback and at least draw something instead of nothing. + +2009-03-27 Ivan N. Zlatev + + * DataGridView.cs: If the column header isn't visible allow resizing + using the cell column border. Also be sure to reset the cursor properly. + [Fixes bug #489929] + +2009-03-26 Carlos Alberto Cortez + + * ToolStrip.cs: When disposing, iterate over the items in reverse + order, since disposing the items modifies the collection. + * ToolStripItem.cs: Remove from the owner when disposing. + Fixes #485769. + +2009-03-26 Ivan N. Zlatev + + * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No + longer throws a NotImplementedException. + Based on a patch by Tom Hindle + [Fixes bug #488319] + +2009-03-26 Ivan N. Zlatev + + * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws + NotImplementedException. + +2009-03-26 Ivan N. Zlatev + + * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: + Fix SortMode clash handling. + [Fixes bug #488263] + +2009-03-26 Ivan N. Zlatev + + * DataGridView.cs: Do not show the vertical scrollbar if there is only + one row or less. For the sake of MSNET compatibility. + [Fixes bug #487988] + +2009-03-26 Ivan N. Zlatev + + * DataGridView.cs: When the current cell is moved out of the editing row + be sure to reset it back to a place holder row. + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs: If IsHandleCreated and the very first row is added + to the grid in a non-databound scenario - select the first cell. + [Fixes bug #486881] + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs: If we are not databound and empty once the first row + gets added select the first cell. + [Fixes bug #486881] + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's + DataGridView. They do not belong to a DataGridView. + [Fixes bug #486645] + +2009-03-19 Ivan N. Zlatev + + * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: + Set indices and associate with DataGridView only after the item is + add to the internal list. + [Fixes part of bug #486645] + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. + FullRowTemplate already contains all the cells. + [Fixes part of bug #486645] + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal + to perform Pre and Post removal actions to allow the current cell to be + moved and all events fired properly before the column is removed. + +2009-03-19 Ivan N. Zlatev + + * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and + Post removal action to allow the current cell to be moved and all events fired + properly before the row is removed. + +2009-03-18 Ivan N. Zlatev + + * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell. + [Fixes bug #486640] + +2009-03-18 Jonathan Pobst + + * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window + placement of popup windows on OSX. + +2009-03-18 Matt Guo + + * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem + [Fixes bug #482690] + +2009-03-18 Ivan N. Zlatev + + * DataGridView.cs: Implement the CellMouseDoubleClick event. + [Fixes bug #486262] + +2009-03-18 Ivan N. Zlatev + + * DataGridView.cs: Fix scrolling to take into account that the + scrollbars are actually inside the client area of the datagridview. + +2009-03-18 Ivan N. Zlatev + + * DataGridView.cs: Implement mouse wheel scrolling. + [Fixes bug #486159] + +2009-03-17 Ivan N. Zlatev + + * DataGridView.cs: When DataSource changes the rebinding should happen + not if IsHandleCreated but if BindingContext != null. + [Fixes bug #486013] + +2009-03-17 Ivan N. Zlatev + + * DataGridView.cs: Browsable(false) properties should be skipped when + autogenerating the columns. + [Fixes bug #486021] + +2009-03-16 Carlos Alberto Cortez + + * DomainUpDown.cs: When ReadOnly is true, all the text entered by the + user should use a different handling, trying to use every pressed char + as a unique and only one prefix to compare against the items. Also, + refactor some input check code to avoid duplication. + Fixes #458607. + +2009-03-16 Ivan N. Zlatev + + * DataGridViewCell.cs: In OwningColumng Handle invalid column index + silently. + [Fixes bug #485278] + +2009-03-16 Ivan N. Zlatev + + * DataGridViewBand.cs: Update our State whenever a property changes. + * DataGridView.cs: Don't be so generous in reseting Displayed, because + it will spawn lots and lots of unneeded State changed events. + [Fixes bug #484989] + +2009-03-16 Ivan N. Zlatev + + * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: + Add support for invisible rows and columns. + [Fixes bug #484951] + +2009-03-16 Ivan N. Zlatev + + * DataGridViewCell.cs: Escape literal { in ToString. + * DataGridViewTextBoxCell.cs: Fix ToString. + [Fixes bug #484923] + +2009-03-16 Carlos Alberto Cortez + + * MenuAPI.cs: When navigating items using the keyboard properly handle + the case when no item is selected - this way we should try to select + the first or the last item depending on the direction, but no the + second or third one, etc. + +2209-03-15 Carlos Alberto Cortez + + * Form.cs: When calling ProcessCmdKey, just after checking for any + MainMenu, check if there's an active ContextMenu that is *not* owned + by the form - this is needed when a non-focusable control owns a + ContextMenu but its ProcessCmdKey method can't be called since it + can't receive any input. + Fixes #477655. + +2009-03-13 Neville Gao + + * ToolBar.cs: Sent ButtonClick events when button style is DropDown. + * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if + ContextMenu is displayed. + +2009-03-12 Carlos Alberto Cortez + + * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a + WM_HELP message for the associated window, don't call + NativeWindow.WndProc *at all*, since this could send a WM_* + key-related to Control.WndProc. Also, return the keypress message, in + case it needs to be preprocessed for any menu. + Fixes #478476. + +2009-03-08 Ivan N. Zlatev + + * DataGridView.cs: When removing the first displayed row and moving + the current cell up one we must invalidate the first displayed row + index before calculating the row heights, etc. + [Fixes bug #483202] + +2009-03-08 Ivan N. Zlatev + + * DataGridView.cs: Fix three column bugs: + - Rows should be cleared (but not removed) if columns become 0. + - The current cell should get moved + - ColumnCount increase was adding too many columns. + +2009-03-07 Ivan N. Zlatev + + * DataGridView.cs: Fix RowCount decrease which wasn't working well + in both scenarions - with and without editing row. + +2009-03-06 Ivan N. Zlatev + + * DataGridView.cs: Be compatible with MS in that the scroll to + selection has a synchronous effect. The trick here is that in + order to avoid unnecessary calculations each time a row/column + is added/removed we recalculate the whole grid size just before + just before the scroll to selection. + [Fixes bug #482478] + +2009-03-06 Carlos Alberto Cortez + + * RichTextBox.cs: LoadFile(string path) should pass by default + RichTextBoxStreamType.RichText, without caring about the detection or + extension of the file. + +2009-03-06 Carlos Alberto Cortez + + * RichTextBox.cs: When calling LoadFile, remove the extra EOL + introduced by StreamReader, since it will convert the EOF to an EOL. + Fixes #479646. + +2009-03-06 Jonathan Pobst + + * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating + preferred size twice. + +2009-03-06 Jonathan Pobst + + * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut + string if we aren't on a ToolStripDropDownMenu. + +2009-03-06 Jonathan Pobst + + * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button + code from Item to Button. Patch from Alex Shulgin. + +2009-03-05 Jonathan Pobst + + * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions. + * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu, + not a ToolStripDropDown. + * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown. + +2009-03-04 Ivan N. Zlatev + + * DataGridView.cs: Fix RowCount/ColumnCount decreasing. + + Based on a patch by Tom Hindle + [Fixes bug #482133] + 2009-03-04 Ivan N. Zlatev * DataGridView.cs, DataGridViewElement.cs: