X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FChangeLog;h=d3e38e3a813e52acaf9917332bda4a3dd8af7a48;hb=7f32d19790038cac078855c2b3ec39e348d3587d;hp=bd30e8d8debfbc91aa95bbf41331d9541c343a27;hpb=582a7612eb40fe981849bf1130a7742229b8b5d5;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 bd30e8d8deb..d3e38e3a813 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,580 @@ +2007-04-06 Jackson Harper + + * TextBoxBase.cs: When a delete removes a line, recalculate all + lines below that line (they need to get offsets setup correctly) + and invalidate. + +2007-04-05 Jackson Harper + + * TextControl.cs: We need to invalidate across the width of the + document when we are invalidating multiple lines. + * TextBoxBase.cs: Don't delete into the line ending. + +2007-04-05 Carlos Alberto Cortez + + * ListView.cs: Restore the check for the MouseHover event + in ListView. It looks like the ListView fires more than one MouseHover + event when HoverSelection is true _only_ in weird-corner scenarios, but + in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover + event. + +2007-04-05 Mike Kestner + + * ListView.cs : raise MouseDown before updating selection. + [Fixes #80373 tab 1&3] + +2007-04-05 Jonathan Pobst + + * ToolStripRenderer.cs: Add static method to mirror image. + * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor + and RightToLeftAutoMirrorImage. + * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor. + +2007-04-05 Jonathan Pobst + + * ToolStripSplitStackLayout.cs: Support Alignment property. + * ToolStripItem.cs: Remove MonoTODO from the Alignment property. + +2007-04-05 Jackson Harper + + * TextControl.cs: Move around the line endings when crossing line + boundaries. + - When combining lines, strip the ending text off the first line. + +2007-04-05 Jackson Harper + + * TextControl.cs: + * TextBoxBase.cs: Try to never move the cursor into the line + ending. + +2007-04-04 Jonathan Pobst + + * ToolStripItem.cs: Make sure we aren't firing mouse events when + the item is disabled. Also add a few missing methods. + +2007-04-04 Carlos Alberto Cortez + + * ListView.cs: We don't need the MouseEnter/MouseLeave check + to fire just one MouseHover event when HoverSelection is true, since + .Net does fire more than one MouseHover event in that scenario. Also, + fix the selection in HoverSelection, by invoking UpdateMultiSelect + if MultiSelect is true, instead of only setting ListViewItem.Selected. + Finally, we need to reset the Hover logic in MouseMove, even when we + don't have a selected item. + +2007-04-04 Jonathan Pobst + + * ToolStrip.cs: Add several missing methods, properties, and events. + +2007-04-04 Chris Toshok + + * DataGridTextBoxColumn.cs: set the bounds of the text box to + (0,0,0,0) in Commit, as MS does. + + * DataGrid.cs: call EndEdit() from Select() as microsoft does, and + make sure we set CurrentRow on a row header click *before* calling + Select. This moves the current cell (and the textbox) to the new + row. The call to Select then hides the textbox, giving us the + correct behavior. Fixes #80362. + + * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1). + (ListChangedHandler): reorder the position/current changed events, + and call UpdateIsBinding in the ItemAdded case. + + * GridColumnStylesCollection.cs: add some columns events, one of + which raises the CollectionChanged event. + +2007-04-04 Jackson Harper + + * TextControl.cs: When we delete multiple selection lines + invalidate the selection area, don't need to do that for single + lines because the final update view will handle it. + +2007-04-04 Jonathan Pobst + + * Control.cs: When we CreateControl, we need to also create all of the + control's children. The child's OnLoad must also fire before the parent's + OnLoad. Fixes the toolbox size in PDN. + +2007-04-04 Jackson Harper + + * TextBoxBase.cs: When the user presses enter, insert a line + ending into the text. (Maybe this would be a good spot for + Environment.NewLine). + * TextControl.cs: Remove undo manager hack, line endings get + inserted properly now. + +2007-04-04 Everaldo Canuto + + * MenuAPI.cs: + - Remove unneeded parameters in UpdateCursor. + - Fix UpdateCursor to check if menu is active. + - Call UpdateCursor when menu deactivate my click. + [Fixes remaining issues from #80410] + +2007-04-04 Everaldo Canuto + + * Control.cs: GetRealChildAtPoint method added, it make an + recursive child control search for the point. + + * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes + menu. + + * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor. + +2007-04-03 Everaldo Canuto + + * Form.cs: Fix mouse position when send back mouse event after closes + menu. + +2007-04-03 Everaldo Canuto + + * Form.cs: Simplify the BUTTONDOWN for active tracker. + +2007-04-03 Jonathan Pobst + + * Control.cs: Fix an issue where if a user resized a control inside + a sizing method like OnResize, we would overwrite their explicit + value. Also, only call DefaultSize once in the constructor instead + of 4 times. Also, do not call SetBoundsCore from SetBounds if + nothing actually changed. + +2007-04-03 Jackson Harper + + * TextControl.cs: Don't attempt to copy text for lines with no + text in them (technically this shouldn't happen, but we aren't + always inserting line endings when we should be). + +2007-04-03 Jackson Harper + + * TextBoxBase.cs: Calculate the scrollbars before calculating the + document, because this sets some of the document size properties + that are needed. + +2007-04-03 Jackson Harper + + * TextBoxBase.cs: We need to calculate maximums even if this is + not a multiline control, because the maxs are used for scrolling. + - Display the caret after doing a page up/down, we need to + manually display it because a proper CaretMoved event isn't + triggered (this is because of the way the math is done to + determine how far to scroll). + +2007-04-03 Jonathan Pobst + + * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change. + (ToolBar was relying on SetBoundsCore to default the values sent + base off of BoundsSpecified.) + +2007-04-03 Rolf Bjarne Kvinge + + * DateTimePicker.cs: Change Text so that when a null value or empty + string is assigned to the test we always raise ValueChanged and + TextChanged (earlier implementation would only raise ValueChanged + if the current date value was different from DateTime.Now). + +2007-04-03 Andreia Gaita + + * ButtonBase: Call update after invalidation, fixes #80194 + +2007-04-03 Rolf Bjarne Kvinge + + * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes + #79335. + +2007-04-03 Rolf Bjarne Kvinge + + * XplatUIX11.cs: SetWMStyles: If the control is a form with + FormBorderStyle = None, don't give the window any decorations. + Fixes #81276. + +2007-04-03 Rolf Bjarne Kvinge + + * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters. + * CreateParams.cs: Fix IsSet, wasn't working correctly when the style + to check for is a mix of several styles (such as WS_CAPTION for + instance). + * Control.cs: Don't paint an area bigger than the client area when + painting the background colour. Add an internal GetCreateParams. + Update calls to XplatUI.CalculateWindowRect due to API change. + * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole + window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate + the size if it hasn't been handled by any windows. When creating + and moving windows, X wants the location of the entire window, but + the size of the client window, so add + TranslateClientRectangleToXClientRectangle, + TranslateWindowSizeToXWindowSIze and + TranslatedXWindowSizeToWindowSize to cope with this, and call them + before every window creation and move. Update CalculateWIndowRect + to use Hwnd.GetWindowRect (one step towards removing DeriveStyles). + In AddConfigureNotify don't do anything if the hwnd is a zombie + (fixes the BadWindow we were getting while running the tests), + always calculate the offsets when it's a parentless window, not + only when reparented, and translate the window size, since we're + getting the client size of the whole window, excluding entire + window. + * Theme.cs: Added BorderSizableSize. + * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here + anymore. Update calls to XplatUI.CalculateWindowRect due to API + chang + * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API + change. Fake the window styles here instead of in XplatUIWin32 so + that all back-ends get the same window styles (and it's Form that's + deciding when to use wm, not the Win32 backend anyways) + * Hwnd.cs: Completely reworked GetWindowRectangle and + GetClientRectangle - they are now passed a CreateParams and they + only use Style and ExStyle to determine the rectangles (they should + now work just like Win32AdjustWindowRectEx - though quite a few + special cases are probably missing). They should also be 100% + complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect)) + == rect), and all numbers (borders, menu sizes) are taken from the + current theme. Added a GetBorders helper function that will return + the borders for any given CreateParams (including captions and + menus), and GetBorderSize that returns the given border size only. + * XplatUIOSX.cs: Update calls to CalculateWindowRect and + Hwnd.GetClientRectangle. + +2007-04-02 Chris Toshok + + * DataGridBoolColumn.cs: rewrite things a bit, and fix up the + logic between the values we present to the user and the values + which are stored in the column's property. Also, don't call + GetPreferredSize - it's virtual. Along the way, fix bug #80965. + +2007-04-02 Jackson Harper + + * TextBoxBase.cs: Scroll faster! + +2007-04-02 Jonathan Pobst + + * StatusStrip.cs: Layout fixes for PDN. + * ToolStrip.cs: Set item's available to true, and placement to main when + added. + * ToolStripItem.cs: Fix an Available issue, check that Parent is really + changing in setter before doing any work, add InternalVisible. + * ToolStripPanel.cs: Remove unused variable to fix compiler warning. + * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't + infinite loop. + +2007-04-02 Jackson Harper + + * TextBox.cs: LBUTTON does not make the textbox select all of it's + text on focus. + +2007-04-02 Rolf Bjarne Kvinge + + * XplatUIWin32.cs: Use the previous change in SetParent for forms only. + Makes ToolStripComboBoxes show up again. + +2007-04-02 Carlos Alberto Cortez + + * ListView.cs: Add a hover_pending field in ListView + to fire just one OnMouseHover event for each MouseEnter/MouseLeave + cycle (we are resetting the MouseHover logic in XplatUI + to handle HoverSelection). Fixes #80429. + +2007-04-02 Jackson Harper + + * TextControl.cs: Make sure the attributes get set on the last + tag. + - Still have to do the end tag if we have stepped all the ways to + the end. + +2007-04-02 Sebastien Pouliot + + * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency + on an internal libgdiplus call when the information is already + available via the public API. + +2007-04-02 Rolf Bjarne Kvinge + + * Control.cs: Call ContainerControl.ChildControlRemoved whenever a + control is removed from a control collecftion. + * XplatUIX11.cs: The first location for toplevel form is (22, 22). + Fixes FormPropertyTest (failed on rare occasions). + * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour + of Win32SetParent (when changing from no parent to a parent it + might add the new parent's location in screen coordinates to this + window's location). + * Form.cs: Rework ChangingParent once again, now the handle is + recreated whenever a FormWindowManager is added or removed (that is + whenever a normal form is parented or abandoned). Also change + CreateParams so that all non-toplevel windows always get the + specified sice (StartupPosition is never considered for + non-TopLevel forms). + * ContainerControl.cs: Add ChildControlRemoved, the container control + needs to be notified when a control is removed from it's + collection, in the case the removed control is the active control. + +2007-04-02 Jackson Harper + + * RichTextBox.cs: Use the new methods for setting the font and + color, these methods set the specified attribute without + overriding the other attributes. + +2007-04-02 Jonathan Pobst + + * ToolStripPanel.cs: Fixes for better layouts in PDN. + +2007-03-31 Gert Driesen + + * TextBox.cs: Added internal ChangeBackColor method to special-case + Color.Empty. Added check for invalid ScrollBars value. + * TextBoxBase.cs: Added internal ChangeBackColor method. + * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added + internal ChangeBackColor method to special-case Color.Empty. Added + check for invalid ScrollBars value. + +2007-03-30 Everaldo Canuto + + * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272] + +2007-03-30 Jonathan Pobst + + * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties. + * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added. + [Based on submitted patch from Olivier Duff.] + +2007-03-30 Jackson Harper + + * TextBox.cs: Only select all on initial focus if the user has not + specified a selection area. + +2007-03-30 Jonathan Pobst + + * UserControl.cs: Override CreateParams. + +2007-03-30 Rolf Bjarne Kvinge + + [ Fixes #80995 ] + + * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters. + * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to + check for is a mix of several styles (such as WS_CAPTION for instance). + * Control.cs: Don't paint an area bigger than the client area when painting + the background colour. Add an internal GetCreateParams. Update calls to + XplatUI.CalculateWindowRect due to API change. + * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's + size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it + hasn't been handled by any windows. When creating and moving windows, X + wants the location of the entire window, but the size of the client + window, so add TranslateClientRectangleToXClientRectangle, + TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize + to cope with this, and call them before every window creation and move. + Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards + removing DeriveStyles). In AddConfigureNotify don't do anything if the + hwnd is a zombie (fixes the BadWindow we were getting while running the + tests), always calculate the offsets when it's a parentless window, not + only when reparented, and translate the window size, since we're getting + the client size of the whole window, excluding entire window. + * Theme.cs: Added BorderSizableSize. + * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here + anymore. Update calls to XplatUI.CalculateWindowRect due to API change. + * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change. + Fake the window styles here instead of in XplatUIWin32 so that all + back-ends get the same window styles (and it's Form that's deciding when + to use wm, not the Win32 backend anyways) + * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle - + they are now passed a CreateParams and they only use Style and ExStyle + to determine the rectangles (they should now work just like + Win32AdjustWindowRectEx - though quite a few special cases are probably + missing). They should also be 100% complimentary (i.e. GetWindowRectangle + (GetClientRectangle (rect)) == rect), and all numbers (borders, menu + sizes) are taken from the current theme. Added a GetBorders helper + function that will return the borders for any given CreateParams + (including captions and menus), and GetBorderSize that returns the given + border size only. + * XplatUIOSX.cs: Update calls to CalculateWindowRect and + Hwnd.GetClientRectangle. + +2007-03-30 Rolf Bjarne Kvinge + + * Form.cs: Don't layout mdi children on MdiParent creation, the initial + layout of the mdi children is handled by CreateParams. Fixes + #79964, + +2007-03-29 Everaldo Canuto + + * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is + processed. + + * Form.cs: When active tracker mouse down is not processed, send event + back to control inside mouse position. [Fixes #81227] + +2007-03-29 Jonathan Pobst + + * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and + remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from + stealing focus from the active form on Windows. (Control will be made + visible in ShowWindow.) + +2007-03-29 Mike Kestner + + * ImageList.cs : add internal Changed event. + * ListView.cs : hook up to StateImageList.Changed to perform + invalidations when the the state icon list changes. [Fixes #81191] + +2007-03-29 Jonathan Pobst + + * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property + to prevent tooltips from stealing focus from the active form on Windows. + +2007-03-29 Everaldo Canuto + + * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. + + * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme. + +2007-03-29 Everaldo Canuto + + * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon + balloons. + +2007-03-29 Jackson Harper + + * TextControl.cs: When deleting text from non multiline textboxes, + we need to update the entire document, because line offsets will + be shifting. + +2007-03-29 Everaldo Canuto + + * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method + added to theme, now we can create themes that uses diferent notify engines + like notification-daemon from galago project or growl for Mac OS. + +2007-03-28 Everaldo Canuto + + * NotifyIcon.cs: Prevent Balloon to show in task bar. + +2007-03-28 Everaldo Canuto + + * XplatUIX11.cs: Prevent system to open more than one balloon. + + * NotifyIcon.cs: Prevent system to open more than one balloon and remove + some compiler warning messages. + +2007-03-28 Everaldo Canuto + + [Fixes #79149] + + * XplatUIX11.cs: Implement SystrayBalloon for X11 systems. + + * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect + implemented, this methods is used by NotifyIcon.BalloonWindow class. + + * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 + systems. + +2007-03-28 Carlos Alberto Cortez + + * ListViewItem.cs: Forgot to make Invalidate internal. + +2007-03-28 Carlos Alberto Cortez + + * ListView.cs: Add a InvalidateSelection method to + invalidate methods which are currently selected, and call + it when setting FullRowSelect and HideSelection, instead of + calling Redraw. + +2007-03-28 Chris Toshok + + * XplatUIX11.cs (UnmapWindow): reindent this block. + + * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update + the selection_start if we're moving the selection (that is, not + extending it). Fixes bug #80461. + +2007-03-28 Jonathan Pobst + + * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100. + * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and + create private ControlCollection. + +2007-03-28 Jonathan Pobst + + * Control.cs: We need to call OnVisibleChanged for our implicit + children as well as our normal children. Fixes scrollbars in + comboboxes not showing up. + +2007-03-28 Jonathan Pobst + + * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do + the check for IsHandleCreated first. The check in CreateHandle is not + good enough because CreateHandle can be overriden, and the override + should not be called if the handle is already created. + +2007-03-28 Jonathan Pobst + + * ToolStrip.cs: Remove MonoTODO for tooltips. + * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events. + * ToolStripContainer.cs: Add custom ControlCollection class. + * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior. + * ToolStripDropDown.cs: Add some missing properties/methods. + * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems. + * ToolStripItem.cs: Remove MonoTODO for tooltips. + * ToolStripManager.cs: Add IsShortcutDefined. + * ToolStripOverflow.cs: Override LayoutEngine. + * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed. + * ToolStripSeparator.cs: Add ImageKey. + +2007-03-28 Jackson Harper + + * TextControl.cs: If a char delete removes a line ending, we need + to update the ending style. + - Make sure the line ending calcs get called. + +2007-03-28 Rolf Bjarne Kvinge + + * XplatUIX11.cs: CreateWindow: Remove old default form location code, + it was making the new code not work. Fixed a typo in the new code + as well. Fixes #79826. + +2007-03-27 Everaldo Canuto + + * XplatUIWin32.cs: + - NIF_STATE and NIF_INFO added to NotifyIconFlags. + - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64. + - SystrayBalloon method implemented. + [Add support for notifyicon balloon on win32, #79149] + +2007-03-27 Mike Kestner + + * ThemeWin32Classic.cs : update StateImageList selection to mirror + the ms behavior when only one image is added to the list. + [Fixes #81191] + +2007-03-27 Jackson Harper + + * TextControl.cs: Improvements to non multiline line ending + drawing/measuing. + +2007-03-27 Everaldo Canuto + + * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. + +2007-03-27 Everaldo Canuto + + * NotifyIcon.cs: + - Balloon message handling added. + - Call XplatUI.SystrayBalloon in ShowBalloonTip. + + * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, + XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed + to SystrayBalloon to me like other Systray method, also a + handle parameter added. + +2007-03-27 Carlos Alberto Cortez + + * ListView.cs: Show scrollbars even when items.Count == 0 + but the columns Width is bigger than the ListView.Width. + Also, when columns.Count == 0 set layout_wd and layout_ht + to the ClientRectangle values, so we don't show any scrollbar + in that case. + +2007-03-27 Everaldo Canuto + + * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added. + 2007-03-27 Jackson Harper * RichTextBox.cs: The RTF library decodes the text properly for us @@ -24912,3 +25489,4 @@ XplatUIX11.cs, lang.cs: - Initial check-in +