X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FChangeLog;h=064fe64b4fe5aca7324b7ef1a261719a68072a4d;hb=02ac0e4ead739c140ca2e28414b393a5d5b0e5c2;hp=56af458bf773e20fde5bb8765ef5fda7e0e9f011;hpb=6fe1edb9ba0a9596fe6b72ca67385eab2434e3c4;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 56af458bf77..064fe64b4fe 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,511 @@ +2007-01-10 Carlos Alberto Cortez + + * 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 + + * Application.cs: fix compilation errors when debug is enabled. + +2007-01-10 Chris Toshok + + * 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 + + * 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 + + * 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 + + * Control.cs: Provide proper implementations of PreferredSize + and GetPreferredSize (2.0). + +2007-01-09 Jonathan Pobst + + * Form.cs: Remove one character (!) to make my previous OnClosing + stuff work for modal windows like MessageBox. + +2007-01-09 Carlos Alberto Cortez + + * ListView.cs: + * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of + ListView.Columns to get the last displayed column. Fixes #80452. + +2007-01-09 Everaldo Canuto + + * Label.cs, LinkLabel.cs: Source code identation fixes. + +2007-01-08 Everaldo Canuto + + * 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 + + * 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 + + * ToolStripManager.cs: Implement FindToolStrip functionality. + * ToolStrip.cs: Register and unregister with ToolStripManager. + +2007-01-07 Jonathan Pobst + + * 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 + + * Control.cs: Implement SizeFromClientSize() [2.0]. + +2007-01-07 Everaldo Canuto + + * 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 + + * Hwnd.cs: Gives more code legibility to GetWindowRectangle. + +2007-01-06 Everaldo Canuto + + * 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 + + * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle. + +2007-01-05 Everaldo Canuto + + * 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 + + * ListView.cs: hack to eliminate Lost/Got focus notifications on + cycles between the ItemControl and parent. Fixes #80388. + +2007-01-05 Gert Driesen + + * 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 + + * 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 + + * 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 + + * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it + doesn't blow up with a null exception on marshalling. + +2007-01-05 Jonathan Pobst + + * Control.cs: Implement several 2.0 protected properties and methods. + Ensure that all necessary events are being called when properties + are set. + +2007-01-05 Mike Kestner + + * ListView.cs: implement PgUp/PgDn for Details view. Also + fixes First/LastVisibleIndex to use the item_control.ClientRect + instead of the parent control. Fixes #80378. + +2006-01-05 Atsushi Enomoto + + * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to + determine whether to use yard-pound or not (bug #78399). + +2006-01-04 Alexander Olk + + * FileDialog.cs: Sebastien fixed the libgdiplus png alpha + problems. So it is time to bring back the old popupbutton colors. + +2006-01-04 Carlos Alberto Cortez + + * ColumnHeader.cs: + * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex + property by using the internal information of the + columns order in ListView. + +2007-01-04 Jonathan Pobst + + * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs: + Add 2.0 Tag properties. + + * LinkArea.cs: Add 2.0 ToString method. + +2007-01-03 Chris Toshok + + * DataGrid.cs: the Alt+0 handling was wrong, it should have been + Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress + when we're editing, which fixes #80047. + +2007-01-03 Chris Toshok + + * Form.cs: apply patch contributed by Dominik Seichter. fixes + #80404. + +2007-01-03 Jonathan Pobst + + * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem + property and implementation. + + * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks + for MdiWindowListItem property. + + * ToolStripDropDown.cs: Don't consider hidden menu items while + laying out the menu. + +2007-01-03 Andreia Gaita + + * SendKeys.cs: window handle is not needed in win32, so just + get the active window for X after parsing keys and don't use + it when building the message; it is passed by parameter to the + Xplat method and used there to build the message instead. Also, + wait for events to be processed on SendWait, as opposed to Send, + which doesn't wait :) Playing with threads and Send() completely + hangs on ms.net, only SendWait() works. + + XplatUIX11.cs + X11Display.cs: Check for valid window handle. + +2007-01-03 Jackson Harper + + * TextControl.cs: Need to prevent wrap calculations when replacing + text (this was there before i removed it accidently). + - Don't update the cursor during the positioning, just set it to + selection_start at the end of the operaion. + +2007-01-03 Rolf Bjarne Kvinge + + * Control.cs: + * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status. + +2007-01-03 Rolf Bjarne Kvinge + + * MonthCalendar.cs: Added Click and DoubleClick events again, + but this time they only hide Control's Click and DoubleClick. + +2007-01-03 Gert Driesen + + * Theme.cs: Re-enabled DefaultFont change. Use const to refer to + System.Drawing assembly. Spaces to tabs. Removed extra tabs. + +2007-01-02 Jackson Harper + + * TextBoxBase.cs: We move the caret with the split now, so we + don't need to explicitly move the caret after splitting. This + fixes the caret bumping down an extra line on Enter. + +2007-01-02 Miguel de Icaza + + * ContainerControl.cs: Add AutoValidateChanged event (for PDN + 2.72). + + * ScrollableControl.cs: Add Scroll event. + +2007-01-02 Mike Kestner + + * ListView.cs: one more try with help from georgegiolfan@yahoo.com + to fix all hdr height padding codepaths. Fixes #80207. + +2007-01-02 Chris Toshok + + * StatusBar.cs (.ctor): remove the Anchor setting, as it's just + setting it to the Control defaults anyway, and it being after the + Dock set was screwing up layout. + (set_Dock): don't short circuit out of setting base.Dock. Also, + no need to call UpdateStatusBar here, as it'll be re-layed out if + it needs to be. + +2007-01-02 Mike Kestner + + * ListView.cs: patch from georgegiolfan@yahoo.com to add padding + to header height for width == -1. Fixes the rest of #80207. + +2007-01-02 Mike Kestner + + * ListView.cs: rework the mouse event forwarding everaldo added + to translate the coordinates to the parent control not + raise the parent events until after we've done our work. Hover + needs more work, in the case where HoverSelection is on, because + the item control receives more than one MouseHover per Enter + event, so we need to ensure only the "first" hover gets forwarded. + Opening a minor bug for that. + +2007-01-02 Gert Driesen + + * CheckedListBox.cs: Fixed SelectionMode to match MS. + * ListControl.cs: Implemented AllowSelection property. Removed extra + tabs. + * ListBox.cs: Implemented AllowSelection property. + +2007-01-02 Everaldo Canuto + + * MenuItem.cs: In MdiWindowClickHandler uses sender instead of + SelectedItem, it prevent for errors when you must disable item + before perform click. Fixes #80409. + +2007-01-02 Everaldo Canuto + + * MenuAPI.cs: Prevent second level and beyond submenus to close + until first level when move out side of popup. + +2007-01-02 Everaldo Canuto + + * MenuAPI.cs: + - Down submenu positin in three pixels. + - Closes sub menu when mouse leaves from menu. Fixes #80402. + +2007-01-02 Everaldo Canuto + + * ThemeWin32Classic.cs: + - Fix popup menu size adding one pixel on the top. + - Down menu item border from two to one to mimic Win32. + - Some source identation fixes. + +2007-01-01 Everaldo Canuto + + * ThemeWin32Classic.cs: Use float numbers to calculate size and + position of menu arrows, it fix wrong arrow size. + +2007-01-01 Everaldo Canuto + + * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders + instead of line, it simplify draw operation and fix it using 3D + borders to mimic Win32. + +2007-01-01 Jonathan Pobst + + * StatusStrip.cs: Add implementation of the sizing grip. + + * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add + StatusStrip rendering. + +2006-12-31 Chris Toshok + + * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't + override the layout style (anchor/dock) of the control. assign to + Dock instead. Fixes bug #80416. + + * ToolStrip.cs: same. + +2006-12-31 Andreia Gaita + + * ContainerControl.cs: Use ContainerSelected flag to check if + a Container is directly selected, or if Select is called on a + non-container. If a container is directly selected, focus events + should not be raised. + Apply #80411 patch to throw exception on set_ActiveControl if + control is the same as the current one. + + * Control.cs: Use ContainerSelected flag (see above). + Add invalidation check to raise event but not invalidate if + dimensions are 0. + Apply #80411 patch. + + +2006-12-31 Everaldo Canuto + + * MenuAPI.cs: After click, dont close popup menu when menu is + ContextMenu. Fixes #80399. + +2006-12-30 Chris Toshok + + * ContainerControl.cs: make sure we throw the exception if the + container control doesn't contain the control we're setting + ActiveControl to. + +2006-12-30 Chris Toshok + + * Control.cs (SetTopLevel): fix the exception raised by + SetTopLevel for child controls. + (set_Anchor): call UpdateDistances when setting the anchor type. + This fixes bug #80336. + +2006-12-29 Gert Driesen + + * Theme.cs: For now, revert back to 8pt font. + +2006-12-29 Everaldo Canuto + + * MenuAPI.cs: Set popup as active when open a ContextMenu. + Fixes #80395. + +2006-12-29 Chris Toshok + + * Control.cs: reorder the code in OnResize to give the same event + ordering as MS. + +2006-12-29 Rolf Bjarne Kvinge + + * MdiClient.cs: Implemented MdiLayout for ArrangeIcons, + TileHorizontally and TileVertically. + +2006-12-29 Alexander Olk + + * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, + FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs, + SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs: + Corrected copyright and email adress. + +2006-12-29 Gert Driesen + + * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead + of Exception in FullPath property if no TreeView is associated with + the TreeNode. + +2006-12-29 Gert Driesen + + * Theme.cs: Marked default_font as private, and initialize it in ctor + with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont + on 2.0 profile. + * ThemeGtk.cs: Removed default_font intialization. + * ThemeWin32Classic.cs: Removed default_font initialization. + +2006-12-28 Chris Toshok + + * Control.cs: fix a couple of place where we were creating handles + more aggressively than we should be. Fixes ControlRefresh unit + tests. + +2006-12-28 Chris Toshok + + * Control.cs: contrary to what the comment said, Control.Dock does + not supercede Control.Anchor - the last one you assign to decides + the layout behavior. so we need to keep track of which was the + last set. Also, fix some of the affected property arguments in + PerformLayout calls, and remove an redundant parent.PerformLayout + call in OnResized. + + Add a VisibleInternal property, which returns is_visible. We + can/should get rid of all the usage of this field elsewhere. + +2006-12-28 Rolf Bjarne Kvinge + + * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer + control style, not DoubleBuffer. Added UseDoubleBuffering property + that indicates whether doublebuffering is enabled and supported. + (comment from and code based on Gert Driesen's patch in #80324). + Fixes #80324. + +2006-12-28 Rolf Bjarne Kvinge + + * Control.cs: Fixed a NRE. + +2006-12-28 Rolf Bjarne Kvinge + + * TrackBar.cs: Fix SmallChange and LargeChange exceptions + for 2.0. + +2006-12-28 Rolf Bjarne Kvinge + + * Control.cs: Rewrote double buffering, now a seperate + class handles all the buffering, no Graphics is disposed of + until the painting is finished (earlier implementation + would crash if the control was resized in the OnPaint, + since it would cause the double buffer to be recreated + and the old one disposed), a separate Graphics is + created for every paint (MS behaviour and anyways the state + of the Graphics would have to be saved and restored otherwise) + + * XplatUIDriver.cs: + * XplatUIX11.cs: + * XplatUI.cs: Added and implemented GetOffscreenGraphics + so that we can get the graphics for the back buffer without + having to create a new one and remove the offscreen_dc parameter + from CreateOffscreenDrawable and DestroyOffscreenDrawable. + 2006-12-27 Carlos Alberto Cortez * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.