2008-01-16 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 2e6b26a9934dd1da126b468bc9c2b41d422cdb37..d60fc590ebbc7ad9c2b776193110b67b74ad5e01 100644 (file)
@@ -1,8 +1,290 @@
+2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
+
+       * FolderBrowserDialog.cs: If we cannot interpret the user's requested
+       SelectedPath, just display the default dialog instead of crashing.
+       [Fixes bug #348989]
+
+2008-01-16  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
+       carbon signals us to redraw.  Fixes another portion of the flickering bug
+
+2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Form.cs: Prevent the MdiParent property to be set when value is the same
+       as value already set. Fixes bug #328019.
+
+2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
+       it prevents NRE when closing mdi child windows. Fixes bug #325211.
+
+2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
+
+       * InternalWindowManager.cs: Invalidade close button after mouse up when 
+       mdi form is prevented to close.
+
+2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
+
+       * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
+       thanks to Andy Hume. Fixes bug #325433.
+
+2008-01-16  Andreia Gaita <avidigal@novell.com>
+
+       * LinkLabel.cs: Reset focused_index when resellecting the control.
+       Fixes #323190
+
+2008-01-15  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
+       messages.
+
+2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
+       of truncate.
+
+2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ContainerControl.cs: Setting AutoScaleMode to anything should set
+       Form.AutoScale to false.
+       * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
+       AutoScaleBaseSize should be changed on Font change unless it has been
+       explicitly set.
+       [Fixes bug #353827]
+
+2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
+
+       * MenuAPI.cs: On instance of MenuTracker check if source control is
+       ToolStripOverflow and use properly method to find form.
+       [Fixes bug #338511]
+
+2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
+
+       [Fixes bug #323241 Transparent toolbar support]
+
+       * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
+       is flat.
+
+       * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
+       defined in control style to mimic win32 behavior.
+
+       * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
+       it will be transparent.
+
+2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
+
+       * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
+       CreateParams for ToolBar controls.
+
+2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
+       FixedToolWindow, SizeableToolWindow, or None for border styles have
+       different minimum sizes than regular forms.  Implemented to fix
+       regression in PDN with toolbox being too wide.
+
+2008-01-14  Andreia Gaita <avidigal@novell.com>
+
+       * HtmlElementCollection.cs: Implemented
+
+       * HtmlElement.cs: Implemented:
+         - All
+         - InnerHtml
+         - InnerText
+         - Id
+         - Name
+         - FirstChild
+
+       * HtmlDocument.cs: Implemented GetElementsByTagName.
+
+2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Screen.cs: Stub BitsPerPixel to always return 32.
+
+2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs: Implement RestoreBounds.
+
+2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
+
+       * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
+       Sebastien and his fabulous magical problem-finding machine:
+       Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
+       respect the value set.
+
+2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
+
+       * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
+       minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
+
+2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
+       messages (to match .Net), we need to remove the capture ourselves.
+
+2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
+
+       * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
+       will process the message and close our window.
+       [Fixes bug #324328]
+
+2008-01-10  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
+       tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
+       window manager.
+
+2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
+       failing test.
+
+2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
+       Linux doesn't care, having a minimum matches MS and keeps the window
+       from becoming too small to use window decorations.
+       [Fixes bug #338996]
+
+2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
+       ShowFocusCues.  Make focus rectangles fit the text instead of the whole
+       control.  [Fixes bug #325419]
+
+2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ComboBox.cs: Guard against an NRE if the user open a new form from a
+       SelectedIndexChanged event.  This closes the combobox dropdown, and we
+       were trying to dispose it.  [Fixes bug #352830]
+
+2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Control.cs, Form.cs: Implement the necessary semantics for
+       ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
+       to determine if a focus rectangle should be drawn.
+       * PropertyGrid.cs: Fix property visibility to match override.
+       * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
+
+2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
+       [Fixes bug #323552]
+
+2008-01-09  Geoff Norton  <gnorton@novell.com>
+       
+       * XplatUICarbon.cs: Scroll windows in the correct direction.
+
+2008-01-09  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs: Track all created utility windows so we can hide them
+       when the app is deactivated or spaces is enabled.
+
+2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
+       extra separation pixel for the label rect origin if SmallImageList is
+       null, and thus we don't need that separation between icon and label
+       rects.
+       Patch by Ernesto Carrea.
+       Fixes # 340195.
+
+2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
+
+       * StatusStrip.cs: Invalidate after completing a layout.  The base
+       OnLayout does this, but we don't call the base.
+       * ToolStripItem.cs: Revert the previous change to invalidate after
+       the item moves.
+       [Fixes bug #351341 better.]
+
+2008-01-07  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
+       not a notification to exit the application.  Listen for WM_QUIT
+       instead.
+
+2008-01-07  Andreia Gaita <avidigal@novell.com>
+
+       * HtmlDocument.cs: Fix case on GetElementById (interface changed)
+
+2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
+
+       * ToolStripItem.cs: If the bounds of an item changes, invalidate it
+       so it can repaint at the correct location.
+       [Fixes bug #351341]
+
+2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListControl.cs: SelectedValue should return a null value if
+       SelectedIndex is -1. Also, when setting it, it should throw an
+       ArgumentNullException if the value is null, as well as taking
+       into account the String.Empty value, instead of ignoring it (we have
+       tests for that now).
+       Fixes part of #324286.
+
+2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
+       SelectionStart is updated after pressing enter.  Fixes bug #351918.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextControl.cs: Revert a piece r92316 that prevented the fix
+       from working when there were multiple tags in the text box.
+       Fixes bug #351881.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextControl.cs: Apply patch from Luke Page that prevents an
+       NRE when determining the beginning of a paragraph.
+       Fixes bug #351886.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextBoxBase.cs: Apply patch from Luke Page that ensures the
+       caret gets moved with clicking away from a selected block of
+       text.  Fixes bug #351885.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextControl.cs: Apply patch from Luke Page that takes line
+       alignment into account for mouse selection, so that center and
+       right aligned text can be selected.
+       Fixes bug #351881.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
+       issues after loading an RTF file by using the correct line feeds.
+       Fixes bug #351841.
+
+2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
+
+       * TextControl.cs: When deleting multiple line selections, we need
+       to invalidate every line beginning at the first line of the selection.
+       Patch from Luke Page fixes bug #351791.
+
+2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * ListControl.cs: When getting a CurrencyManager.PositionChanged
+       event, don't set SelectedIndex if the number of items is 1. This is
+       because, for the first item, PositionChanged is fired _before_
+       ItemChanged (the place where we actually populate the items), and
+       leave us in a temporary invalid state (since items collection is
+       empty).
+       Fixes #349655.
+
+2008-01-04  Geoff Norton  <gnorton@novell.com>
+
+       * XplatUICarbon.cs:  Create native toolwindows instead of
+       the managed drawing ones.
+
 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
 
        * LineTag.cs: If the line doesn't have any characters, return
        0 for GetCharIndex.  Fixes an AOORE exception after certain
-       caret movements.  Fixes bug #351683.
+       caret movements.  Fixes bug #351683.  Patch by Luke Page.
 
 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>