X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FChangeLog;h=66b53f714332bf89cf56dd481beb9e61d10a21eb;hb=91d8c7a8fd89fb1ddb31925d48f5f060e466e2b8;hp=864e610bfba99dccec099c26aa9490ed1766c838;hpb=45c101909a07801fdfc8c4e21699c3904eb31970;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 864e610bfba..66b53f71433 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,553 @@ +2006-12-07 Alexander Olk + + * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf, + not libgdk (though it makes me wonder why I didn't have any + problems) + +2006-12-07 Chris Toshok + + [ you had to know this was coming after that last commit...] + + * XplatUIX11.cs: implement the 3 Offscreen functions in terms of + XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap, + DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to + XCopyArea). + +2006-12-07 Chris Toshok + + * XplatUI.cs: add 3 calls (CreateOffscreenDrawable, + DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass + all the behavior we need for double buffering. + + * XplatUIDriver.cs: implement the 3 double buffer methods using a + client side Bitmap, just like the old Control-based double buffer + code did. The methods are virtual, so each XplatUI driver + subclass can replace the implementation to use a faster, platform + specific approach. + + * Control.cs: make use of the 3 Offscreen XplatUI calls in the + double buffer code, and clean things up a bit in the process. + +2006-12-06 Chris Toshok + + * Control.cs: reindent WndProc. + +2006-12-06 Chris Toshok + + [ I wanna be like BenM when I grow up ] + + * Hwnd.cs: create a single static Graphics object on the static + Bitmap we create. use this for our text measurements. + + * Control.cs (DeviceContext): stop using the backbuffer's dc_mem. + This was causing us to allocate a backbuffer for every control, + even when it wasn't flagged as double buffered. Instead use the + single graphics instance. This might have implications for + multithreaded applications. If we run into problems we can switch + to creating 1 Graphics per control, on the static Hwnd bitmap. + + this change nets us a 7M savings in private dirty mappings when + running FormsTest.exe. + +2006-12-06 Chris Toshok + + * ToolTip.cs: use Visible instead of is_visible. + + * TreeView.cs: same. + + * ListBox.cs: same. + + * ListView.cs: same. + +2006-12-06 Chris Toshok + + * ListView.cs: the BackgroundImage override is just to set + attributes. chain up to base.BackgroundImage. + + * RichTextBox.cs: same. + + * ToolBar.cs: same, but we need to also redraw the toolbar when it + changes, so instead a handler for BackgroundImageChanged. + + * Control.cs: make background_image private. + +2006-12-06 Chris Toshok + + * ScrollBar.cs: change the assignment of cursor to Cursor. not + sure we even need this assignment, but roll with it for now. + + * Control.cs: make the cursor field private. + +2006-12-06 Chris Toshok + + * Form.cs: we don't need to explicitly set ImeMode to + ImeMode.NoControl - that's a natural fallout of Control.ImeMode's + behavior in the face of ImeMode.Inherit. + + * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and + change the ctor's assignment to use ImeMode instead of ime_mode. + + * Control.cs (get_ImeMode): don't assume DefaultImeMode == + ImeModeInherit. Only check for the parent's imemode (and return + NoControl if there is no parent) if ime_Mode == ImeMode.Inherit. + This fixes the button unit test, which sets both ImeMode and + DefaultImeMode to ImeMode.Disable. + + also make the ime_mode field private. + +2006-12-06 Chris Toshok + + * Control.cs: make control_style private. + + * TextBoxBase.cs: fix the HandleClick override. it was explicitly + setting the styles to true, then setting them to false instead of + reverting to their previous values. + + also, call SetStyle on the scrollbars instead of using + control_style directly. + +2006-12-06 Jonathan Pobst + + * FormCollection.cs: Implement. [2.0] + +2006-12-06 Chris Toshok + + * Control.cs: make tab_stop private. + + * Label.cs: set TabStop, not tab_stop. reformat some event + add/remove methods to make them more compact. + +2006-12-06 Chris Toshok + + * RadioButton.cs: fix TabStop handling. + +2006-12-06 Chris Toshok + + * TextBox.cs: remove the explicit assignments to has_focus. + Control does that. + + * ButtonBase.cs: remove the assignment to has_focus. Control will + manage that. + +2006-12-06 Chris Toshok + + * ButtonBase.cs: remove all uses of is_enabled from this code. + it's always true when any of the code containing the checks is + executed. + +2006-12-06 Chris Toshok + + * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods, + with different semantics (some are present in both 1.1 and 2.0 + profiles) so that we match MS's behavior in our unit tests. + +2006-12-06 Jackson Harper + + * TextControl.cs: Make this operation undoable. + * TextBoxBase.cs: Factor the border width into the preferred + height. + - implement Modified as per the spec. + +2006-12-06 Chris Toshok + + * Timer.cs, Control.cs, Menu.cs: make control_tag private. + +2006-12-06 Chris Toshok + + * Control.cs: make right_to_left and context_menu fields private. + +2006-12-06 Chris Toshok + + * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs, + XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make + Control.child_controls private. switch all uses over to + Control.Controls. + +2006-12-06 Chris Toshok + + * System.Windows.Forms/GroupBox.cs, + System.Windows.Forms/AccessibleObject.cs, + System.Windows.Forms/ErrorProvider.cs, + System.Windows.Forms/Control.cs, + System.Windows.Forms/UpDownBase.cs, + System.Windows.Forms/ScrollBar.cs, + System.Windows.Forms/DateTimePicker.cs, + System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs, + System.Windows.Forms/ToolTip.cs, + System.Windows.Forms/RadioButton.cs, + System.Windows.Forms/LinkLabel.cs, + System.Windows.Forms/Splitter.cs, + System.Windows.Forms/TextBoxBase.cs, + System.Windows.Forms/ToolStripTextBox.cs, + System.Windows.Forms/ContainerControl.cs, + System.Windows.Forms/ThemeWin32Classic.cs, + System.Windows.Forms/SizeGrip.cs, + System.Windows.Forms/ToolStripDropDown.cs, + System.Windows.Forms/ScrollableControl.cs: Make Control.parent + private. switch all uses over to Control.Parent. + +2006-12-06 Chris Toshok + + * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus. + Control does this before calling emitting these events. + + * TabControl.cs: same. + + * ThemeWin32Classic.cs: use Control.ClientRectangle instead of + Control.client_rect. + + * ButtonBase.cs: use the ClientSize property instead of the + client_size field. + + * ScrollableControl.cs: same. + + * Control.cs: another pass at making properties private. also, + move the initialization of tab_stop to the ctor. + +2006-12-05 Andreia Gaita + + * TabControl.cs: Let the selected index be set freely if the + control handle is not yet created. + +2006-12-05 Jonathan Pobst + + * Control.cs: Revert dist_top, dist_right, and dist_bottom to + internal until I can rewrite DefaultLayout. + * ToolStrip.cs: Fix build error and some general cleaning. + * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs: + Fix build errors caused by making some of Control's fields private. + +2006-12-05 Jackson Harper + + * TextControl.cs: Redo Insert a little so that it use IndexOf + instead of Split, this prevents it from messing up on things like + \n\n\n. Also more effecient since the split array doesn't need to + be created. + * TextBoxBase.cs: AppendText doesnt handle multiline and non + multiline text differently, this is the first of many fixes that + will make multiline/non-multiline the same thing as far as the + TextBoxBase is concerned. + - Don't split the text and insert lines, this can lose some line + endings (like is the last line a soft or hard break). Instead use + the new Insert. + - Fix an off by one when combining all the lines in the Text + getter. + - Remove separate multiline handling from the Text getter/setter. + +2006-12-05 Chris Toshok + + * ButtonBase.cs: a few changes: + + - don't reinitialize internal Control fields in the ctor when they + have the same values as Control sets them. + + - don't set has_focus in OnGotFocus/OnLostFocus. Control does + this before calling those methods. + + - we don't need to call Refresh for anything. use Invalidate + instead. + + - OnEnabledChanged doesn't need to redraw at all - Control.cs + calls Refresh in its OnEnabledChanged. + + - several of the events we were registered for in the ctor to + redraw ourselves already include calls to Invalidate in the + property setters that raise the events. remove the extra + invalidation. + + - reformat a switch statement that was 83274658 columns wide. + +2006-12-05 Mike Kestner + + * ComboBox.cs: fix a unit test regression from a TextBox + SelectionLength return of -1 when there's no selection. + +2006-12-05 Chris Toshok + + * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs, + ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at + cleaning up some of the internal Control fields being used by + subclasses. + +2006-12-05 Mike Kestner + + * ComboBox.cs: fix some Simple mode regressions. Set Visible on the + listbox after AddImplicit calls since it defaults to hidden. Add a + hack to preserve requested heights across DropDownStyle changes. + +2006-12-05 Jonathan Pobst + + * PropertyGrid.cs: Hide FindFirstItem method from public API. + +2006-12-05 Chris Toshok + + * DataGridView.cs: fix compiler warnings. + + * PrintControllerWithStatusDialog.cs: same. + + * ToolBar.cs: same. + + * FolderBrowserDialog.cs: same. + + * Splitter.cs: same. + + * DataGridViewComboBoxCell.cs: same. + + * XplatUIWin32.cs: same. + + * PictureBox.cs: same. + + * Win32DnD.cs: same. + + * PageSetupDialog.cs: same. + + * FileDialog.cs: same. + + * PrintDialog.cs: same. + + * DataGridTextBoxColumn.cs: same. + + * DrawTreeNodeEventArgs.cs: same (and fix corcompare) + +2006-12-05 Chris Toshok + + * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs, + MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more + System.ComponentModel.EventHandlerList work. + +2006-12-05 Jonathan Chambers + + * DrawTreeNodeEventArgs.cs: Added. + +2006-12-05 Rolf Bjarne Kvinge + + * InternalWindowManager.cs: Remove an unused field. + +2006-12-05 Rolf Bjarne Kvinge + + * InternalWindowManager.cs: + - Save the point where the title bar is clicked. + + * MdiWindowManager.cs: + - Only allow moving of the window as long as the + clicked point on the title bar does not get out of + MdiClient's rectangle. Fixes #79982. + + * MdiClient.cs: + - Added Horizontal/VerticalScrollbarVisible. + - Simplified the scrollbar sizing algorithm. + - Cache the difference in scrolled value in + H/VBarValueChanged and move the calculation out + of the for loop. + +2006-12-05 Rolf Bjarne Kvinge + + * Control.cs: Make the Console.WriteLine in WndProc + write more info. + +2006-12-05 Chris Toshok + + * ToolStripManager.cs, ToolStripButton.cs, + ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs, + ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs, + ToolStripSplitButton.cs, ToolStripSeparator.cs, + ToolStripRenderer.cs, ToolStripDropDownItem.cs, + ToolStripProgressBar.cs, ToolStripContainer.cs, + ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move + to using System.ComponentModel.EventHandlerList. + +2006-12-04 Chris Toshok + + * LinkLabel.cs: fix up compiler warnings. + + * TableLayoutSettings.cs: same. + + * TreeView.cs: same. + + * ToolBar.cs: same. + + * TabControl.cs: same. + + * RichTextBox.cs: same. + + * ListViewItem.cs: same. + + * PropertyGrid.cs: same. + + * DataGridViewRowPostPaintEventArgs.cs: corcompare fix. + + * ToolTip.cs same. + + * TextRenderer.cs: fix up compiler warnings. + + * Label.cs: same. + + * Form.cs: corcompare fixes. + + * PictureBox.cs: fix up compiler warnings. + + * ImageListStreamer.cs: same. + + * TrackBar.cs: corcompare fix. + + * Control.cs: fix up compiler warnings. + + * SplitterPanel.cs: same. + + * NumericTextBox.cs: same. + + * ImageList.cs: same. + + * StatusStrip.cs: same. + + * ProgressBar.cs: corcompare fix. + + * ToolStripButton.cs: fix up compiler warnings. + + * ToolStripStatusLabel.cs: same. + + * ToolStripSplitButton.cs: same. + + * ToolStripSeparator.cs: same. + + * ToolStripProgressBar.cs: same. + + * ToolStripDropDownMenu.cs: same + + * ToolStripDropDown.cs: same. + + * ToolStripDropDownButton.cs: same. + + * ToolStrip.cs: same. + + * ToolStripControlHost.cs: same. + + * ToolStripContentPanel.cs: same. + + * ToolStripDropDown.cs: same. + + * ToolStripContainer.cs: same. + + * ToolStripPanel.cs: same, and add "new" where we need it to work + with the new ArrangedElementCollection. + + * ToolStripItemCollection.cs: add "new" where we need it to work + with the new ArrangedElementCollection. + +2006-12-04 Andreia Gaita + + * TabControl.cs: Fix default tab selection to after TabControl + gets focus and not before. Fixes #80128 + +2006-12-04 Chris Toshok + + * DataGridTableStyle.cs: remove the gross calling of + datagrid.Refresh from here. It's a broken idea and it doesn't + work anyway. + + * DataGrid.cs: instead, just register/unregister from the + DataGridTableStyle events in CurrentTableStyle. we play it + conservatively and EndEdit + CalcAreasAndInvalidate on any event, + even though some would most likely not require it. Fixes bug + #80115 (and one portion of #80117 as a side effect). + +2006-12-04 Chris Toshok + + * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work + so the textbox (if any) goes away. Fixes bug #80117. + +2006-12-04 Chris Toshok + + * DataGridColumnStyle.cs: set the column's readonly property + initially based on the property descriptor's IsReadOnly. Fixes + bug #80044. + +2006-12-04 Chris Toshok + + * ComboBox.cs: wrap the dropdown style changing work in + SuspendLayout/ResumeLayout. Fixes bug #79968. + +2006-12-04 Jackson Harper + + * TextBoxBase.cs: Fix off by one, since these are one-based. + * TextBox.cs: Select all the text when we get focus. The TextBox + does this but the RTB does not. + +2006-12-04 Chris Toshok + + * DataGridTextBoxColumn.cs: remove some spew. + + * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right + but some part of me is saying "it shouldn't be here.." At any + rate, it fixes bug #80046. Call IEditableObject.EndEdit after + setting the value. + +2006-12-04 Chris Toshok + + * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource + to reassign the propertydescriptor. + +2006-12-04 Jackson Harper + + * TextBoxBase.cs: + * TextControl.cs: Remove some unused variables. Maybe this will + patch things up between mike and I. + - don't split lines less then one char wide, if the viewport is + that small text won't be visible anyways. + +2006-12-04 Jackson Harper + + * TextBoxBase.cs: Default selection length is -1, need to do some + more testing on windows to see when this is used for the property. + - Redid the Lines [] property to that we properly remove soft line + breaks + - added support for preserving carriage returns + - CanUndo is not a variable like 'is undo enabled' it just returns + true if there is undo operations available. + - AppendText doesn't need to grab the last tag itself anymore, + this happens automatically when we move the cursor. + * TextControl.cs: Add CompoundActions to the undo class. This + allows combining the other operations into one big option. ie a + paste will combine { delete old, insert new, move cursor } + - Add InsertString undo operation + - New method for deleting multiline text + - Add carriage returns to lines. So we can preserve carriage + returns when text is 'roundtripped' + +2006-12-04 Chris Toshok + + * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a + minimum 0. Fixes the scrollbar exception in bug #80136. + +2006-12-04 Rolf Bjarne Kvinge + + * MdiClient.cs: + * MdiWindowManager: Removed unused fields and methods. + +2006-12-04 Rolf Bjarne Kvinge + + * StatusBar.cs: Update all panels when a AutoSize=Contents + panel needs updating. + + * StatusBarPanel.cs: Remove twidth and only use initialize. + Fixes #80031. + +2006-12-04 Rolf Bjarne Kvinge + + * Form.cs: When a form's MdiParent is set add it directly + on top of the z-order in stead of relying on MdiClient's + ActivateChild to do it. Fixes #80135. + + * MdiClient.cs: + - Remove original_order, mdi_child_list is already doing + the same thing. + - Create mdi_child_list on construction in + stead of first use (avoids a few null checks). + + * MenuItem.cs: Use an already existing list of mdi children + to get the correct order of children and remove the other + redundant list. + 2006-12-04 Chris Toshok * PropertyGridView.cs: cached_splitter_location is only used in