ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
index fbb6a50eb96fe0174554ce504f3604ffa41229ca..19c329eabce89e7ac2ba6b0597aadf5e85552ba5 100644 (file)
@@ -1,3 +1,355 @@
+2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
+
+2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
+
+2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
+
+2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
+       * GridItem.cs: Fixed TODOs
+       * GridItemCollection.cs: Added ICollection interface
+
+2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: Resize icons when needed.
+
+2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
+
+       * ListViewItem.cs
+               - Fixes GetBounds and returns on screen rects
+       * ListView.cs:
+               - Fixes vertical and horzintal scrolling of items
+       * ThemeWin32Classic.cs:
+               - Fixes drawing
+               
+2005-09-29  Raja R Harinath  <harinath@gmail.com>
+
+       * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
+
+2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: Added comments about handle creation. Moved Handle,
+         HandleCreated and OnRecreateHandle implementations to ImageCollection.
+         Handle is created in Add methods.
+
+2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
+        
+       * DataGridDrawingLogic.cs: 
+               - Takes rows into account on Colum calculations
+               - Returns the column when clickig
+       * DataGrid.cs:
+               - Fixes default HitTestInfo values
+               - Fixes HitTestInfo.ToString
+               - Fixes ResetBackColor          
+       
+2005-09-28  Jackson Harper  <jackson@ximian.com>
+
+       * MdiChildContext.cs: Obey rules for fixed sized windows (no
+       sizing or cursor changes). Also added some temp code to draw the
+       titlebars text (Makes dev a little easier).
+
+2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
+
+2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
+        
+       * ListBox.cs: Fixes bug 76253
+
+2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: Added comments about the current implementation. Added
+         ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
+         Format32bppArgb to preserve transparency and can use Graphics.FromImage
+         while using the specified ColorDepth. ReduceColorDepth uses unsafe code
+         with Bitmap.LockBits for better performance. Revised the whole file to
+         match MS.NET behaviour and provide better performance. Non-public
+         interface members are calling public members even when they throw
+         NotSupportedException for better maintainability. Moved ColorDepth,
+         ImageSize, ImageStream and TransparentColor implementations to
+         ImageCollection for better performance as these properties are not used
+         by ImageList.
+       * ImageListStreamer.cs: Added a new internal constructor that takes an
+         ImageList.ImageCollection and serializes Images based on
+         ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
+         match ImageList property name.
+
+2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
+
+       * ListBox.cs: Fixes IndexFromPoint for last item
+
+2005-09-27  Jackson Harper  <jackson@ximian.com>
+
+       * Form.cs: Set the position of new mdi children correctly.
+
+2005-09-27  Jackson Harper  <jackson@ximian.com>
+
+       * MdiClient.cs: New mdi children need to be added to the back of
+       the controls collection so the zorder is set correctly. Also add a
+       count of all the child windows that have been created.
+
+2005-09-27  Jackson Harper  <jackson@ximian.com>
+
+       * Form.cs (CreateParams): Setup MDI forms correctly.
+
+2005-09-27  Jackson Harper  <jackson@ximian.com>
+
+       * MdiChildContext.cs:
+       * MonthCalendar.cs:
+       * UpDownBase.cs:
+       * ListBox.cs:
+       * ListView.cs:
+       * TextBoxBase.cs:
+       * TreeView.cs:
+       * ScrollableControl.cs:
+       * ComboBox.cs: Add implicit controls using the new implict control
+       functionality in ControlCollection. Also try to block multiple
+       control add in a suspend/resume layout to save some cycles.
+       
+2005-09-27  Jackson Harper  <jackson@ximian.com>
+
+       * Control.cs: Add functionality to the controls collection to add
+       'implicit controls' these are controls that are created by the
+       containing control but should not be exposed to the user. Such as
+       scrollbars in the treeview.
+       * Form.cs: The list var of the ControlsCollection is no longer
+       available because of the potential of implicit controls getting
+       ignored by someone accessing the list directly.
+
+2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * Control.cs: Fixed SetChildIndex; it no longer causes a child to
+         loose it's parent. (Fixed bug introduced in r49103 when we added
+         setting the child parent to null on Remove)
+
+2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
+       * Splitter.cs: Added missing attributes for BorderStyle property.
+       * TextBoxBase.cs: Marked Calculate* methods internal.
+       * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
+       MS.NET.
+
+2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
+        
+       * ListBox.cs: Fixes navigation to the last item in multicolumn lists
+
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Update the node bounds correctly regardless of
+       whether the node is visible.
+
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * ImageList.cs: Don't dispose the image after it is added to the
+       image list. Only reformat images that need to be resized.
+
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * ImageList.cs: Don't set the format when changing the image.
+
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: We can't just assume the node has a font. Use the
+       treeviews font if no node font is available.
+
+2005-09-25  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Allow the scrollbars to be reset with negative
+       values.
+       - Don't add scrollbars to negative sized windows.
+
+2005-09-23  Jackson Harper  <jackson@ximian.com>
+
+       * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
+       old Mono.Posix. Also remove some stray code that shouldn't have
+       been committed.
+
+2005-09-23  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Attempt at proper sizing of the horizontal
+       scrollbar. Also don't resize the scrollbars unless they are
+       visible.
+
+2005-09-23  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: We don't need to expand the invalid area when the
+       selection changes, as this is all drawn in the node's bounding
+       box. The area needs to be expanded (previous typo was contracting
+       it) when the focus rect moves.
+
+2005-09-23  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Display the selection box under the correct
+       circumstances. We were rendering white text with no selection box
+       before.
+
+2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * TextControl.cs(Split): Now updates selection start/end if it points 
+         into a line that's being split. Fixes a FIXME and bug #75258
+
+2005-09-23  Jackson Harper  <jackson@ximian.com>
+
+       * Binding.cs:
+       * ListControl.cs: Don't use the path when retrieving binding
+       managers from the binding context. My bat sense tells me that the
+       path is only used on insertion.
+
+2005-09-22  Jackson Harper  <jackson@ximian.com>
+
+       * Splitter.cs: Set the cursor an easier way. (Thanks peter).
+
+2005-09-22  Jackson Harper  <jackson@ximian.com>
+
+       * Splitter.cs: There are special cursors used for splitting.
+       * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
+
+2005-09-22  Jackson Harper  <jackson@ximian.com>
+
+       * Splitter.cs: Change the cursor appropriately when the splitter
+       is moused over, so the user actually knows there is a splitter
+       there.
+
+2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
+
+       * Label.cs : Fix ToString method to give same output as MS.NET
+
+2005-09-22  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Create the scrollbars when the handle is created
+       and add them right away, just make them invisble. Also account for
+       the window being shrunk vertically to the point that the vert
+       scrollbar needs to be added.
+       - Remove some 0.5 adjustments to get around anti aliasing issues.
+       
+2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
+        
+       * MainMenu.cs: Fixes default value
+       * MenuItem.cs: Fixes default value
+
+2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
+
+       * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
+
+2005-09-21  Jackson Harper  <jackson@ximian.com>
+
+       * Control.cs: Don't try to set the border style on the window if
+       it hasn't been created. When the window is created the border
+       style will be used.
+
+2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * Control.cs (Update): Don't call XplatUI if we don't have a
+         window handle yet
+
+2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * ContainerControl.cs: Instead of throwing an exception, print
+         a one-time warning about Validate not being implemented
+       * XplatUIWin32.cs: Removed debug output
+
+2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * Control.cs: Only set XplatUI background if we expect the windowing
+         system to handle the background. This stops controls that draw their
+         own background from flickering
+
+       * XplatUIX11.cs: Support custom visuals and colormaps for window 
+         creation. This allows, amongst other things, using MWF X11 windows 
+         with OpenGL.
+
+2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
+         CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
+         GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
+         SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
+         TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
+         IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
+         KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
+         RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
+         ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
+         ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
+         GridColumnStylesCollection.cs, 
+         IDataGridColumnStyleEditingNotificationService.cs,
+         PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
+         MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
+         GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
+         TreeNodeCollection.cs, AmbientProperties.cs, 
+         RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
+         DataObject.cs, ErrorProvider.cs, Splitter.cs,
+         DataGridLineStyle.cs, Shortcut.cs, Control.cs,
+         FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
+         BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
+         IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
+         FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
+         IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
+         NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
+         PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
+         SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
+         FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
+         DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
+         ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
+         RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
+         MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
+         ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
+         CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
+         MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
+         NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
+         ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
+         SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
+         Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
+         RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
+         DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
+         ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
+         PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
+         DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
+         ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
+         AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
+         RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
+         CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
+         SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
+         Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
+         SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
+         ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
+         TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
+
+2005-09-21  Jackson Harper  <jackson@ximian.com>
+
+       * TreeNode.cs: Call Before/After Expand not Collapse when
+       expanding.
+
+2005-09-20  Jackson Harper  <jackson@ximian.com>
+       
+       * XplatUIX11.cs: Use the more hand looking hand (in most themes).
+
+2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
+        
+       * ListViewItem.cs:
+               - Fixes bug 76120
+               - Fixes proper storing of subitems
+               - Fixes not updated items
+
+2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
+
+       * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
+         things if our window handle isn't created yet. Also disabled 
+         debug for TextBoxBase
+
+2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
+
+       * MenuAPI.cs: Remove filtering of events to allow menu usage
+
+2005-09-20  Miguel de Icaza  <miguel@novell.com>
+
+       * Cursor.cs: Allow null to be passed to Cursor.Current.
+
 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
 
        * ThemeWin32Classic.cs: