* ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index 3d2207a95d21747c1823adf2eae3ee0a14e7e566..5b0278bed8057de3c7b10044cd36fac842b0af4c 100644 (file)
@@ -1,3 +1,305 @@
+2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
+         code
+
+2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
+         highlighted menu items to match ms
+
+2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
+
+2006-03-30  Mike Kestner  <mkestner@novell.com>
+
+       * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
+       * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
+       go active to account for HotLight to Selected transition.
+       * MenuItem.cs: add internal Selected prop. Fill out the Status
+       property by calculating it from item info. Add HotLight,
+       NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
+
+2006-03-30  Mike Kestner  <mkestner@novell.com>
+
+       * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
+
+2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * PrintPreviewDialog.cs: Implemented missing methods and events; still
+         missing proper dialog setup in the constructor
+
+2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * ProgressBar.cs: Added 2.0 Style property that apps seem to use
+       * Control.cs:
+         - Implemented CheckForIllegalCrossThreadCalls, removed TODO
+         - Fixed ResetBindings and removed TODO
+         - Added check for cross-thread calls to get_Handle()
+         - Added Marshaller attribute for set_Font to satisfy class status
+       * FontDialog.cs: Removed TODOs that seemed implemented
+       * UpDownBase.cs: Removed unneeded TODO and Fixme
+       * MessageBox.cs: Implemented support for Default button and removed TODO
+       * FileDialog.cs: Removed obsolete TODO
+       * DomainUpDown.cs: Removed obsolete TODO
+       * ButtonBase.cs: Removed obsolete TODO
+       * XplatUIWin32.cs: Removed obsolete TODO
+       * Form.cs:
+         - Removed obsolete TODO
+         - Calling CheckAcceptButton when the acceptbutton is changed to allow
+           internal status updates
+         - Making sure the active control is selected when the control is created
+       * CurrencyManager.cs: Removed obsolete TODO
+
+2006-03-29  Mike Kestner  <mkestner@novell.com>
+
+       * *.cs: fix remaining corcompare issues for 1.1 API with the exception
+       of PrintPreviewDialog and RichTextBox.
+
+2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
+
+       * Theme.cs: Added a little helper to SystemResPool to get the Dark,
+         DarkDark, Light and LightLight colors for a specific color
+       * ThemeWin32Classic.cs:
+         - Use Button drawing code to draw RadioButtons and CheckBoxes with
+           Appearance = Button 
+         - Make use of the new ResPool helper CPColor
+         - Draw ProgressBar and StatusBar with correct 3D borders
+
+2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ColorDialog.cs: Return selected color. Fixes bug #77940.
+
+2006-03-28  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: fix Icon layout to plan for scrollbar widths when
+       calculating col/row counts.
+
+2006-03-28  Mike Kestner  <mkestner@novell.com>
+
+       * ColumnHeader.cs:
+       * ListView.cs:
+       * ListViewItem.cs:
+       * Menu.cs: 
+       switch to explicit interface method implementation for some methods
+       corcompare identifies as inconsistent with MS.
+
+2006-03-28  Mike Kestner  <mkestner@novell.com>
+
+       * MainMenu.cs: 
+       * Menu.cs:
+       add a few missing methods from the class status output.
+
+2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
+         correct.
+
+2006-03-28  Mike Kestner  <mkestner@novell.com>
+
+       * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
+
+2006-03-27  Mike Kestner  <mkestner@novell.com>
+
+       * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
+       the Hilight state to adapt to Alex's CPDrawBorder3D changes.
+
+2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
+
+2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeWin32Classic.cs:
+         - GroupBox: Inserted a little gap between the text and the lines
+           on the right side
+         - Made the code in CPDrawBorder3D more readable
+         - Corrected the drawing location of the up and down arrows in 
+           CPDrawScrollButton
+
+2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ControlPaint.cs: Corrected line widths in DrawBorder for
+         ButtonBorderStyle Inset and Outset
+
+2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeWin32Classic.cs:
+         - Rewrote the totally broken CPDrawBorder3D method. That was
+           one of the main problems for the terrific ThemeWin32Classic
+           look
+         - Updated and corrected Button drawing
+         - Correct the dimensions of the SizeGrip to match ms ones
+         - Removed a small drawing glitch in DrawComboBoxEditDecorations
+       * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
+         Border3DStyle.Sunken to match ms.
+
+2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ThemeWin32Classic.cs: First small part of the "de-uglify
+         ThemeWin32Classic" effort, SizeGrip
+
+2006-03-24  Jackson Harper  <jackson@ximian.com>
+
+       * XplatUIX11.cs: Give a max idle time of one second, this matches
+       MS and forces an Idle event every second when there are no other
+       events in the queue.
+
+2006-03-24  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
+       * ListView.Item.cs: fix layout issues with null image lists and images
+       smaller than checkbox size.
+       * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
+       mode like MS does.  It's weird, but consistent.  ;-)
+       Fixes #77890.
+
+2006-03-24  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: Scroll wheel support for the item control.  Fixes
+       #77839.
+
+2006-03-23  Jackson Harper  <jackson@ximian.com>
+
+       * ScrollableControl.cs: Special case negative sized areas, not
+       zero.
+       * MonthCalendar.cs: Save the rect of the clicked date so we can
+       use it for invalidation.
+       - Try to cut down on the number of invalidates
+       - Invalidate the rect the mouse is over and was over when moving
+       the mouse, so we get the focus box following the cursor.
+
+2006-03-23  Mike Kestner  <mkestner@novell.com>
+
+       * ThemeWin32Classic.cs: fix FullRowSelect selection background and
+       focus rectangle drawing. Fixes #77835.
+
+2006-03-23  Mike Kestner  <mkestner@novell.com>
+
+       * XplatUIX11.cs: rework the fix for #77828 by changing the order of
+       the if and else if and reverting back to the original == check on the
+       None conditional.
+
+2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
+
+       * FontDialog.cs: Update the example panel if the selected index of
+         the fontListBox changes.
+
+2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
+
+       * FileDialog.cs: Make FileDialog remember which directory it was in
+         last in the same execution.
+
+2006-03-22  Mike Kestner  <mkestner@novell.com>
+
+       * FileDialog.cs: make the DropDownMenu on the toolbar display
+       RadioChecks since they are mutually exclusive and that's what MS does.
+
+2006-03-22  Mike Kestner  <mkestner@novell.com>
+
+       * Theme.cs: add Color param to CPDrawMenuGlyph.
+       * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
+       checks and radio marks and arrows are visible on highlighted items.
+       * ControlPaint.cs: update to use new Theme signature.
+
+2006-03-22  Mike Kestner  <mkestner@novell.com>
+
+       * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
+       is active. Fixes #77870.
+
+2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
+
+       * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
+         to be focused/selected after startup
+
+2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
+
+       * ColorDialog.cs: 
+         - Corrected behaviour of Color, AllowFullOpen, FullOpen,
+           CustomColors and ShowHelp properties
+         - Some internal rewrites to get better results when using the
+           ColorMatrix
+
+2006-03-22  Mike Kestner  <mkestner@novell.com>
+
+       * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
+       HoverSelection.  Fixes #77836.
+
+2006-03-22  Mike Kestner  <mkestner@novell.com>
+
+       * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
+       ToggleButtons.  (De)Sensitize the Back button around a stack count of
+       1, not 0.  Update ButtonSize based on a pixel count of the win32
+       control.  Adjust the toolbar size/location for new button size.
+
+2006-03-22  Jackson Harper  <jackson@ximian.com>
+
+       * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
+       true.
+       * ScrollBar.cs: When doing increments and decrements we need to
+       set the Value property so that ValueChanged gets raised. A
+       possible optimization here would be to make an internal SetValue
+       that doesn't invalidate immediately.
+       * ToolTip.cs: Tooltips get added to their container (when
+       supplied) so they get disposed when the container is disposed.
+       - Don't create tooltips for String.Empty. This prevents all these
+       little 2-3 pixel windows from showing up when running nunit-gui
+       and driving me mad.
+       * Form.cs: Don't set topmost when setting the owner if the handles
+       haven't been created yet.  The topmost set will happen when the
+       handles are created.
+
+2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * XplatUIX11.cs:
+         - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
+         - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
+           visible (to allow them to recalculate their sizes)
+
+2006-03-21  Mike Kestner  <mkestner@novell.com>
+
+       * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
+       methods. Removed a ton of redundant code.  Still not really happy with
+       the border rendering, but I think that's mainly because of the
+       ControlDarkDark being black instead of a dark grey. Depending on how 
+       close we want to be, we might want to revisit those color choices.
+       Among the new features added during the refactor were DropDownArrow
+       pressed rendering, Disabled image rendering.  Proper flat appearance
+       boundary rendering.  Removed the Divider and Wrapping dividers since I
+       can't figure out any combination of themes and conditions to make the
+       MS control draw a horizontal line on a toolbar despite what the
+       Divider property docs indicate.
+       * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
+       conditions and incorrect layout.  Updated to coding standard.
+       * ToolBarButton.cs: refactored layout and positioning code from
+       ToolBar to here.  Invalidate wherever possible instead of forcing
+       redraws of the whole toolbar. 
+       (Known remaining issues: explicit ButtonSize smaller than provided
+       images.)
+
+2006-03-21  Mike Kestner  <mkestner@novell.com>
+
+       * ContextMenu.cs (Show): use the position parameter instead of just
+       showing at the MousePosition.
+
+>>>>>>> .r58288
+2006-03-21  Jackson Harper  <jackson@ximian.com>
+
+       * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
+       control handle this.
+       * TreeNodeCollection.cs: If we are clearing the root node we need
+       to reset top_node so calcs can still happen.
+       * ThemeWin32Classic.cs: This is a Flags so we need to check
+       properly.
+       
+2006-03-21  Jackson Harper  <jackson@ximian.com>
+
+       * DataGrid.cs: Create columns when the binding context has been
+       changed.
+       * X11Structs.cs: Keysyms are uints.
+       - Add size to fix build.
+
 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
 
        * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,