* ListView.cs: the BackgroundImage override is just to set
[mcs.git] / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob504f11a66b25f4d8ddb64a088ea120c655b45969
1 2006-12-06  Chris Toshok  <toshok@ximian.com>
3         * ListView.cs: the BackgroundImage override is just to set
4         attributes.  chain up to base.BackgroundImage.
6         * RichTextBox.cs: same.
8         * ToolBar.cs: same, but we need to also redraw the toolbar when it
9         changes, so instead a handler for BackgroundImageChanged.
10         
11         * Control.cs: make background_image private.
13 2006-12-06  Chris Toshok  <toshok@ximian.com>
15         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
16         sure we even need this assignment, but roll with it for now.
18         * Control.cs: make the cursor field private.
20 2006-12-06  Chris Toshok  <toshok@ximian.com>
22         * Form.cs: we don't need to explicitly set ImeMode to
23         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
24         behavior in the face of ImeMode.Inherit.
26         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
27         change the ctor's assignment to use ImeMode instead of ime_mode.
29         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
30         ImeModeInherit.  Only check for the parent's imemode (and return
31         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
32         This fixes the button unit test, which sets both ImeMode and
33         DefaultImeMode to ImeMode.Disable.
35         also make the ime_mode field private.
37 2006-12-06  Chris Toshok  <toshok@ximian.com>
39         * Control.cs: make control_style private.
41         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
42         setting the styles to true, then setting them to false instead of
43         reverting to their previous values.
45         also, call SetStyle on the scrollbars instead of using
46         control_style directly.
48 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
50         * FormCollection.cs: Implement. [2.0]
52 2006-12-06  Chris Toshok  <toshok@ximian.com>
54         * Control.cs: make tab_stop private.
56         * Label.cs: set TabStop, not tab_stop.  reformat some event
57         add/remove methods to make them more compact.
59 2006-12-06  Chris Toshok  <toshok@ximian.com>
61         * RadioButton.cs: fix TabStop handling.
63 2006-12-06  Chris Toshok  <toshok@ximian.com>
65         * TextBox.cs: remove the explicit assignments to has_focus.
66         Control does that.
68         * ButtonBase.cs: remove the assignment to has_focus.  Control will
69         manage that.
70         
71 2006-12-06  Chris Toshok  <toshok@ximian.com>
73         * ButtonBase.cs: remove all uses of is_enabled from this code.
74         it's always true when any of the code containing the checks is
75         executed.
77 2006-12-06  Chris Toshok  <toshok@ximian.com>
79         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
80         with different semantics (some are present in both 1.1 and 2.0
81         profiles) so that we match MS's behavior in our unit tests.
83 2006-12-06  Jackson Harper  <jackson@ximian.com>
85         * TextControl.cs: Make this operation undoable.
86         * TextBoxBase.cs: Factor the border width into the preferred
87         height.
88         - implement Modified as per the spec.
90 2006-12-06  Chris Toshok  <toshok@ximian.com>
92         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
94 2006-12-06  Chris Toshok  <toshok@ximian.com>
96         * Control.cs: make right_to_left and context_menu fields private.
98 2006-12-06  Chris Toshok  <toshok@ximian.com>
100         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
101         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
102         Control.child_controls private.  switch all uses over to
103         Control.Controls.
105 2006-12-06  Chris Toshok  <toshok@ximian.com>
107         * System.Windows.Forms/GroupBox.cs,
108         System.Windows.Forms/AccessibleObject.cs,
109         System.Windows.Forms/ErrorProvider.cs,
110         System.Windows.Forms/Control.cs,
111         System.Windows.Forms/UpDownBase.cs,
112         System.Windows.Forms/ScrollBar.cs,
113         System.Windows.Forms/DateTimePicker.cs,
114         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
115         System.Windows.Forms/ToolTip.cs,
116         System.Windows.Forms/RadioButton.cs,
117         System.Windows.Forms/LinkLabel.cs,
118         System.Windows.Forms/Splitter.cs,
119         System.Windows.Forms/TextBoxBase.cs,
120         System.Windows.Forms/ToolStripTextBox.cs,
121         System.Windows.Forms/ContainerControl.cs,
122         System.Windows.Forms/ThemeWin32Classic.cs,
123         System.Windows.Forms/SizeGrip.cs,
124         System.Windows.Forms/ToolStripDropDown.cs,
125         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
126         private.  switch all uses over to Control.Parent.
128 2006-12-06  Chris Toshok  <toshok@ximian.com>
130         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
131         Control does this before calling emitting these events.
133         * TabControl.cs: same.
135         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
136         Control.client_rect.
138         * ButtonBase.cs: use the ClientSize property instead of the
139         client_size field.
141         * ScrollableControl.cs: same.
143         * Control.cs: another pass at making properties private.  also,
144         move the initialization of tab_stop to the ctor.
146 2006-12-05  Andreia Gaita <avidigal@novell.com>
148         * TabControl.cs: Let the selected index be set freely if the 
149         control handle is not yet created.
151 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
153         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
154         internal until I can rewrite DefaultLayout.
155         * ToolStrip.cs: Fix build error and some general cleaning.
156         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
157         Fix build errors caused by making some of Control's fields private.
159 2006-12-05  Jackson Harper  <jackson@ximian.com>
161         * TextControl.cs: Redo Insert a little so that it use IndexOf
162         instead of Split, this prevents it from messing up on things like
163         \n\n\n. Also more effecient since the split array doesn't need to
164         be created.
165         * TextBoxBase.cs: AppendText doesnt handle multiline and non
166         multiline text differently, this is the first of many fixes that
167         will make multiline/non-multiline the same thing as far as the
168         TextBoxBase is concerned.
169         - Don't split the text and insert lines, this can lose some line
170         endings (like is the last line a soft or hard break). Instead use
171         the new Insert.
172         - Fix an off by one when combining all the lines in the Text
173         getter.
174         - Remove separate multiline handling from the Text getter/setter.
176 2006-12-05  Chris Toshok  <toshok@ximian.com>
178         * ButtonBase.cs: a few changes:
180         - don't reinitialize internal Control fields in the ctor when they
181         have the same values as Control sets them.
183         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
184         this before calling those methods.
186         - we don't need to call Refresh for anything.  use Invalidate
187         instead.
189         - OnEnabledChanged doesn't need to redraw at all - Control.cs
190         calls Refresh in its OnEnabledChanged.
191         
192         - several of the events we were registered for in the ctor to
193         redraw ourselves already include calls to Invalidate in the
194         property setters that raise the events.  remove the extra
195         invalidation.
197         - reformat a switch statement that was 83274658 columns wide.
198         
199 2006-12-05  Mike Kestner  <mkestner@novell.com>
201         * ComboBox.cs: fix a unit test regression from a TextBox
202         SelectionLength return of -1 when there's no selection.  
204 2006-12-05  Chris Toshok  <toshok@ximian.com>
206         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
207         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
208         cleaning up some of the internal Control fields being used by
209         subclasses.
211 2006-12-05  Mike Kestner  <mkestner@novell.com>
213         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
214         listbox after AddImplicit calls since it defaults to hidden. Add a 
215         hack to preserve requested heights across DropDownStyle changes.
217 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
219         * PropertyGrid.cs: Hide FindFirstItem method from public API.
221 2006-12-05  Chris Toshok  <toshok@ximian.com>
223         * DataGridView.cs: fix compiler warnings.
225         * PrintControllerWithStatusDialog.cs: same.
227         * ToolBar.cs: same.
229         * FolderBrowserDialog.cs: same.
231         * Splitter.cs: same.
233         * DataGridViewComboBoxCell.cs: same.
235         * XplatUIWin32.cs: same.
237         * PictureBox.cs: same.
239         * Win32DnD.cs: same.
241         * PageSetupDialog.cs: same.
243         * FileDialog.cs: same.
245         * PrintDialog.cs: same.
247         * DataGridTextBoxColumn.cs: same.
249         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
251 2006-12-05  Chris Toshok  <toshok@ximian.com>
253         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
254         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
255         System.ComponentModel.EventHandlerList work.
257 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
259         * DrawTreeNodeEventArgs.cs: Added.
261 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
262         
263         * InternalWindowManager.cs: Remove an unused field.
264         
265 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
267         * InternalWindowManager.cs:
268         - Save the point where the title bar is clicked.
269         
270         * MdiWindowManager.cs:
271         - Only allow moving of the window as long as the 
272         clicked point on the title bar does not get out of
273         MdiClient's rectangle. Fixes #79982.
274         
275         * MdiClient.cs:
276         - Added Horizontal/VerticalScrollbarVisible.
277         - Simplified the scrollbar sizing algorithm.
278         - Cache the difference in scrolled value in
279         H/VBarValueChanged and move the calculation out
280         of the for loop.
282 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
284         * Control.cs: Make the Console.WriteLine in WndProc 
285         write more info.
287 2006-12-05  Chris Toshok  <toshok@ximian.com>
289         * ToolStripManager.cs, ToolStripButton.cs,
290         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
291         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
292         ToolStripSplitButton.cs, ToolStripSeparator.cs,
293         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
294         ToolStripProgressBar.cs, ToolStripContainer.cs,
295         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
296         to using System.ComponentModel.EventHandlerList.
298 2006-12-04  Chris Toshok  <toshok@ximian.com>
300         * LinkLabel.cs: fix up compiler warnings.
302         * TableLayoutSettings.cs: same.
304         * TreeView.cs: same.
306         * ToolBar.cs: same.
308         * TabControl.cs: same.
310         * RichTextBox.cs: same.
312         * ListViewItem.cs: same.
314         * PropertyGrid.cs: same.
316         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
318         * ToolTip.cs same.
320         * TextRenderer.cs: fix up compiler warnings.
322         * Label.cs: same.
324         * Form.cs: corcompare fixes.
326         * PictureBox.cs: fix up compiler warnings.
328         * ImageListStreamer.cs: same.
330         * TrackBar.cs: corcompare fix.
332         * Control.cs: fix up compiler warnings.
334         * SplitterPanel.cs: same.
336         * NumericTextBox.cs: same.
338         * ImageList.cs: same.
340         * StatusStrip.cs: same.
342         * ProgressBar.cs: corcompare fix.
344         * ToolStripButton.cs: fix up compiler warnings.
346         * ToolStripStatusLabel.cs: same.
348         * ToolStripSplitButton.cs: same.
350         * ToolStripSeparator.cs: same.
352         * ToolStripProgressBar.cs: same.
354         * ToolStripDropDownMenu.cs: same
356         * ToolStripDropDown.cs: same.
358         * ToolStripDropDownButton.cs: same.
360         * ToolStrip.cs: same.
362         * ToolStripControlHost.cs: same.
364         * ToolStripContentPanel.cs: same.
366         * ToolStripDropDown.cs: same.
368         * ToolStripContainer.cs: same.
370         * ToolStripPanel.cs: same, and add "new" where we need it to work
371         with the new ArrangedElementCollection.
373         * ToolStripItemCollection.cs: add "new" where we need it to work
374         with the new ArrangedElementCollection.
376 2006-12-04  Andreia Gaita <avidigal@novell.com>
378         * TabControl.cs: Fix default tab selection to after TabControl
379         gets focus and not before. Fixes #80128
381 2006-12-04  Chris Toshok  <toshok@ximian.com>
383         * DataGridTableStyle.cs: remove the gross calling of
384         datagrid.Refresh from here.  It's a broken idea and it doesn't
385         work anyway.
387         * DataGrid.cs: instead, just register/unregister from the
388         DataGridTableStyle events in CurrentTableStyle.  we play it
389         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
390         even though some would most likely not require it.  Fixes bug
391         #80115 (and one portion of #80117 as a side effect).
393 2006-12-04  Chris Toshok  <toshok@ximian.com>
395         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
396         so the textbox (if any) goes away.  Fixes bug #80117.
398 2006-12-04  Chris Toshok  <toshok@ximian.com>
400         * DataGridColumnStyle.cs: set the column's readonly property
401         initially based on the property descriptor's IsReadOnly.  Fixes
402         bug #80044.
404 2006-12-04  Chris Toshok  <toshok@ximian.com>
406         * ComboBox.cs: wrap the dropdown style changing work in
407         SuspendLayout/ResumeLayout.  Fixes bug #79968.
409 2006-12-04  Jackson Harper  <jackson@ximian.com>
411         * TextBoxBase.cs: Fix off by one, since these are one-based.
412         * TextBox.cs: Select all the text when we get focus.  The TextBox
413         does this but the RTB does not.
415 2006-12-04  Chris Toshok  <toshok@ximian.com>
417         * DataGridTextBoxColumn.cs: remove some spew.
419         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
420         but some part of me is saying "it shouldn't be here.."  At any
421         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
422         setting the value.
424 2006-12-04  Chris Toshok  <toshok@ximian.com>
426         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
427         to reassign the propertydescriptor.
429 2006-12-04  Jackson Harper  <jackson@ximian.com>
431         * TextBoxBase.cs:
432         * TextControl.cs: Remove some unused variables.  Maybe this will
433         patch things up between mike and I.
434         - don't split lines less then one char wide, if the viewport is
435         that small text won't be visible anyways.
436         
437 2006-12-04  Jackson Harper  <jackson@ximian.com>
439         * TextBoxBase.cs: Default selection length is -1, need to do some
440         more testing on windows to see when this is used for the property.
441         - Redid the Lines [] property to that we properly remove soft line
442         breaks
443         - added support for preserving carriage returns
444         -  CanUndo is not a variable like 'is undo enabled' it just returns
445         true if there is undo operations available.
446         - AppendText doesn't need to grab the last tag itself anymore,
447         this happens automatically when we move the cursor.
448         * TextControl.cs: Add CompoundActions to the undo class. This
449         allows combining the other operations into one big option.  ie a
450         paste will combine { delete old, insert new, move cursor }
451         - Add InsertString undo operation
452         - New method for deleting multiline text
453         - Add carriage returns to lines. So we can preserve carriage
454         returns when text is 'roundtripped'
456 2006-12-04  Chris Toshok  <toshok@ximian.com>
458         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
459         minimum 0.  Fixes the scrollbar exception in bug #80136.
461 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
463         * MdiClient.cs: 
464         * MdiWindowManager: Removed unused fields and methods.
465         
466 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
467         
468         * StatusBar.cs: Update all panels when a AutoSize=Contents
469         panel needs updating.
470         
471         * StatusBarPanel.cs: Remove twidth and only use initialize.
472         Fixes #80031.
473                 
474 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
476         * Form.cs: When a form's MdiParent is set add it directly
477         on top of the z-order in stead of relying on MdiClient's
478         ActivateChild to do it. Fixes #80135.
479         
480         * MdiClient.cs: 
481         - Remove original_order, mdi_child_list is already doing
482         the same thing.
483         - Create mdi_child_list on construction in
484         stead of first use (avoids a few null checks).
486         * MenuItem.cs: Use an already existing list of mdi children
487         to get the correct order of children and remove the other
488         redundant list.
490 2006-12-04  Chris Toshok  <toshok@ximian.com>
492         * PropertyGridView.cs: cached_splitter_location is only used in
493         !DOUBLEBUFFER code.
495         * PropertyGrid.cs: implement the ComComponentNameChanged event
496         using Events, hoping that would fix the warning.  Looks like a
497         compiler bug instead (#80144).
499         * PropertyManager.cs: remove unused method.
501 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
503         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
504         include parentesis to fix expression evaluation. Fixes #79634.
506 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
507         
508         * MenuAPI.cs:
509         - Changes to fix behavior in Menu control, some reported in #80097
510         and other detected during behavior refactory like a select event
511         problems.
512         - Remove unneded "if's" conditions.
513         - Created an internal to flag when popup is active in control, we need 
514         it because in .NET you can have menu active but without popup active
515         when you active menu using popup without visible items.
516         - Mimic win32 behavior for Select and Popup events.  
517         - Dont open popup menu when you dont have visible subitems.
518         - Do nothing when click on disabled menu item.
519         - Some small changes to follow the coding style guidelines.
520         - Unselect menu only when another control gives focus. Fixes #80097.
521         - Remove unused code.
522         
523         * MenuItem.cs: internal VisibleItems method to check if menu
524         theres visible subitems, it will be usefull to fix some 
525         behavior in Menu control.
526         
527 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
528         
529         * Timer.cs: Tag property for 2.0 profile.
530         
531 2006-12-01  Chris Toshok  <toshok@ximian.com>
533         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
534         
535         * Win32DnD.cs: comment out some unused fields.
537         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
538         some unused properties/methods.
540         * XplatUIX11.cs: fix MousePosition so we override the base class's
541         property instead of conflicting with it.
543         * PictureBox.cs: comment out some unused fields
545         * OSXStructs.cs: make some struct fields public.
547         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
548         MousePosition so we override the base class's property instead of
549         conflicting with it.
551         * X11Dnd.cs: comment out some unused fields
553         * X11DesktopColors.cs: fix some struct field visibility to quiet
554         the compiler.
556         * X11Dnd.cs: remove some debug code.
558         * ThemeClearlooks.cs: comment out unused field.
560         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
562         * ThemeGtk.cs: comment out some unused pinvokes.
564         * Timer.cs: remove some unused fields.
566         * ThemeClearlooks.cs: comment out unused field.
568         * UpDownBase.cs: comment out unused field.
570         * DataObject.cs: comment out unused field.
572         * DataGridBoolColumn.cs: reomve unused field.
574         * DataGrid.cs: remove unused field.
576         * Cursor.cs: remove old ToBitmap code.
578         * ControlPaint.cs: remove unused method.
580         * ScrollBar.cs: remove unused fields.
582         * ComboBox.cs: remove unused field, and chain up to
583         AccessibleObject ctor.
585         * ListBox.cs: remove unused field.
587         * ButtonBase.cs: wrap a couple fields in NET_2_0.
589         * GridEntry.cs: remove unused fields.
591         * Binding.cs: remove unused fields.
593         * AxHost.cs: remove unused method.
595         * ContainerControl.cs: remove unused field.
597         * ScrollableControl.cs: remove unused fields.
599 2006-12-01  Chris Toshok  <toshok@ximian.com>
601         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
602         the Where/WhereString stuff.  it's easy enough to CWL
603         Environment.StackTrace.
605         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
606         unused private fields.
608 2006-12-01  Jackson Harper  <jackson@ximian.com>
610         * TextControl.cs: Do not update the view while inserting multiline
611         text. If we update the view we might wrap lines, before entering
612         the new lines, which causes the new line insertion calculations to
613         be totally fubared.
614         - Remove an old TODO
615         - Make debug output a little nicer
616         
617 2006-12-01  Chris Toshok  <toshok@ximian.com>
619         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
621 2006-12-01  Chris Toshok  <toshok@ximian.com>
623         [ fix the majority of the CS0108 warnings we've been suppressing ]
624         
625         * TreeView.cs: mark BackgroundImageChanged as 'new'.
627         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
628         to "LayoutToolBar" to quiet mcs.
629         
630         * TabControl.cs: mark our ControlCollection class as 'new'.
632         * TextBoxBase.cs: mark some events as 'new'.
634         * Splitter.cs: TabStop is 'new'.
636         * ControlBindingsCollection.cs: mark a few methods as new since
637         they change the visibility from protected to public.
639         * RadioButton.cs: DoubleClick -> base class, and remove unused
640         HaveDoubleClick.
642         * MonthCalendar.cs: ImeMode property -> base class, and mark many
643         events as new.
645         * NumericUpDown.cs: TextChanged -> base class.
647         * CheckedListBox.cs: mark our ObjectCollection class as new to
648         quiet mcs.
650         * FolderBrowserDialog.cs: make HelpRequest event new and have it
651         muck with the base class.
653         * StatusBar.cs: fix some mcs warnings about Update being the same
654         name as a base class method.
656         * RichTextBox.cs: mark some events as new, and make them do things
657         to the base class impl.
659         * UserControl.cs: mark TextChanged as new, and have it manipulate
660         base.TextChanged.
662         * UpDownBase.cs: mark some things new.
664         * CheckBox.cs: mark DoubleClick "new", and add some text about
665         what we need to look at.
667         * Panel.cs: make the events "new", and manipulate the base
668         version.  these are just here for attributes.
670         * AccessibleObject.cs: make owner private.
672         * Control.cs: deal with AccessibleObject.owner being private.
673         cache our own copy if we need it.
675         * Button.cs: add "new" to the DoubleClickEvent.
677         * ListBox.cs: no need to track our own has_focus here.  let
678         Control.has_focus do it for us.  Also some other work to clear up
679         warnings about not overriding base class methods of the same name.
680         
681         * ComboBox.cs: clear up some warnings about not override base
682         class methods of the same name.
684 2006-12-01  Chris Toshok  <toshok@ximian.com>
686         * Form.cs: flag a few things as "new" to quiet some of the mcs
687         warnings.
689         * AxHost.cs: same.
691         * PrintPreviewDialog.cs: same.
693         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
694         now DGV isn't so horrible on the class status page.  also, move
695         all events to using System.ComponentModel.EventHandlerList.  my
696         wrists hurt.
698 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
700         * MdiWindowManager.cs:
701         - Set form to active mdi child if shown,
702         and update the active mdi child to the next 
703         remaining child in the z-order if the form is hidden.
705         * Form.cs: 
706         - Track if the form has been visible and if its 
707         visibility is beeing changed, so that the MdiClient
708         can properly decide the ActiveMdiChild. The MdiClient 
709         cannot track this since the form can change visibility 
710         before MdiClient is created.
712         * MdiClient.cs:
713         - Don't activate anything of the parent form is changing
714         its visibility.
715         - Rework ActiveMdiChild to only return visible mdi 
716         children and take into account several other corner 
717         cases.
719 2006-12-01  Chris Toshok  <toshok@ximian.com>
721         * IBindableComponent.cs: new 2.0 interface.
723 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
725         * DataGrid.cs: Font for caption area is bold by default.
727 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
729         * Menu.cs: Tag property for 2.0.
730         
731 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
733         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
734         
735 2006-12-01  Chris Toshok  <toshok@ximian.com>
737         * TreeView.cs: doh, the Begin* events should be
738         TreeViewCancelEventHandler.
740 2006-12-01  Chris Toshok  <toshok@ximian.com>
742         * Form.cs: Form.ControlCollection already stores off the
743         form_owner field.  don't access the base class's internal "owner"
744         field.
746         * Control.cs: make all the fields in Control.ControlCollection
747         private.  there's no need for any internal fields here.
749 2006-12-01  Chris Toshok  <toshok@ximian.com>
751         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
752         OnHandleCreated.  Fixes bug #80109.
754 2006-12-01  Chris Toshok  <toshok@ximian.com>
756         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
757         SplitContainer.cs, Control.cs, StatusStrip.cs,
758         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
759         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
760         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
761         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
762         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
763         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
764         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
765         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
766         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
767         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
769         do most of the work to convert our code over to use
770         System.ComponentModel.Component.Events for
771         adding/removing/dispatching events.
774 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
776         * DataGridView.cs: Fix an ArgumentNullException reported 
777         twice today in IRC.
779 2006-11-30  Mike Kestner  <mkestner@novell.com>
781         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
782         grabbed listbox.  Fixes #80036 and #80101.
784 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
786         * Message.cs: Changed ToString() to match MS.
787         
788 2006-11-30  Jackson Harper  <jackson@ximian.com>
790         * TextBoxBase.cs: You can still change the selected text on a read
791         only textbox.
792         * TextControl.cs: Lower magic number for wrap calculations. This
793         lets text get closer to the right (far) edge.
795 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
797         * Control.cs: Tweak 2.0 layout properties.
798         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
799         * TextRenderer.cs: Add a new overload.
800         * ToolStrip*: Huge amount of changes and new features.
802 2006-11-30  Mike Kestner  <mkestner@novell.com>
804         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
805         scroll range correct.  Fixes #79994.
807 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
809         * MdiWindowManager.cs: Update main form's text when
810         a form is closed. (fixes #80038)
811         
812 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
814         * ToolBar.cs:
815         - Fix an regression in ButtonSize.
816         - Get ImeMode default value change to "Disable".
817         - Get ShowTooltips default value change to true, default value is 
818         "false" but after make a test in .NET we get "true" result as default.
819         
820 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
822         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
824 2006-11-29  Chris Toshok  <toshok@ximian.com>
826         * XplatUIWin32.cs (GetWindowTransparency): check return value of
827         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
828         SetWindowTransparency hasn't been called.
830 2006-11-29  Chris Toshok  <toshok@ximian.com>
832         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
833         if it's supported.
834         (set_AllowTransparency): reorder things a little so that the
835         WS_EX_LAYERED style is removed properly.
837 2006-11-29  Chris Toshok  <toshok@ximian.com>
839         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
840         
841         * Form.cs: only call the XplatUI transparency method (get/set) if
842         SupportsTransparency says it's supported. Otherwise fallback to
843         doing nothing (in the set case) or returning the instance field we
844         cache (in the get case).
846         * XplatUIStructs.cs: add TransparencySupport flag enum.
847         
848         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
849         change to SupportsTransparency.
851         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
852         TransparencySupport.None from SupportsTransparency.
854         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
855         TransparencySupport.Set from SupportsTransparency.
857         * XplatUIWin32.cs: implement GetWindowTransparency calling
858         GetLayeredWindowAttributes, and implement SupportsTransparency by
859         checking whether or not both
860         GetWindowTransparency/SetWindowTransparency are available
861         entrypoints.  We need to do this since SetWindowTransparency is
862         available as of win2k, but GetWindowTransparency requires winxp.
863         yay win32 api.
865         * XplatUI.cs: Add GetWindowTransparency, and change
866         SupportsTransparency to allow for either/both Get/Set.
868 2006-11-29  Chris Toshok  <toshok@ximian.com>
870         * DataGrid.cs: keep from going into an infinite loop redrawing a
871         datagrid that has no datasource.  Fixes bug #80033.
873 2006-11-29  Chris Toshok  <toshok@ximian.com>
875         * MenuItem.cs: fix the NRE when we assign text (and therefore call
876         Invalidate) before the mainmenu has been assigned to a control.
878 2006-11-29  Chris Toshok  <toshok@ximian.com>
880         * DataGrid.cs: detect when we should be double the double click
881         row/column autosize stuff, although that codepath has yet to be
882         written.  part of the work for bug #79891.
884 2006-11-29  Chris Toshok  <toshok@ximian.com>
886         * Binding.cs (SetControl): fix unit test.
888 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
890         * PageSetupDialog.cs: Validate the margins and set them in
891         PageSettings. 
892         * NumericTextBox.cs: New class to mimic the behavior of the
893         textboxes used in the printing dialogs.
895 2006-11-29  Andreia Gaita  <avidigal@novell.com>
896         
897         * Form.cs: Revert previous change (remove call UpdateBounds
898         from form constructor), because it messes with the handle creation
899         order, and that one needs lots and lots of love.
900         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
901         for valid printer and throw InvalidPrinterException if document
902         is set but printer not valid), adding a MonoTODO. Once 
903         handle creation is done properly, we can put this back in.
905 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
907         * MenuItem.cs: Create a invalidate method for menu item, to be
908         calling from set text, it make text changes to imadiate update
909         on screen. Fixes #80013. 
910         
911 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
913         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
914         fixes bug #80070 and some other problem on toolbar buttons
915         layout.
917 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
919         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
920         with dotted brush.      Fixes #79564
921         
922 2006-11-28  Andreia Gaita  <avidigal@novell.com>
924         * Form.cs: Removed call to UpdateBounds on Form
925         constructor, it was causing a call to CreateHandle
926         before it was supposed to.
927         * PrintControllerWithStatusDialog: Applied patch
928         by Chris Toshok to hide controller when there are
929         no printers available.
930         PrintDialog.cs: initialize printer settings to 
931         null - correct DefaultValues test #5
932         * PrintPreviewControl.cs: Move PrintController
933         initialization to GeneratePreview
934         * PrintPreviewDialog.cs: 
935         - Remove Preview generation     from Document_set(). It is 
936         called on OnPaint
937         - Throw InvalidPrinterException on CreateHandle if
938         a Document is set but there are no printers or 
939         printer is not valid.
940         * ThemeWin32Classic: don't paint PrintPreviewControl
941         if there is nothing to paint    
943 2006-11-28  Miguel de Icaza  <miguel@novell.com>
945         * Form.cs: Add another popular method.
947         * TabPage.cs: ditto.
949 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
951         * MenuItem.cs: Fixed a warning.
952         * InternalWindowManager: Fixed a warning.
954 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
956         * MenuItem.cs:
957         - When cloning a menu also clone MdiList and clone the 
958           window menu items properly (as the forms and menuitems
959           are kept in an internal hashtable, these need updating 
960           as well)
961         - Rewrote the window menu code, menu items are added in the
962           order the forms were added to their parent, and they are
963           updated every time the window menu is shown (before the
964           list was only generated once, in the current order of the
965           forms, and would never be updated). A checkmark is shown
966           next to the item corresponding to the active mdi child.
968 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
970         * XplatUIStructs.cs: 
971         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
972         
973         * XplatUIWin32.cs: 
974         - Added TME_NONCLIENT to TMEFlags.
975         - Handles WM_NCMOUSEMOVE in GetMessage to 
976           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
978         * MdiWindowManager:
979         - Now merges mdi child menu to parent menu when maximized.
980         - Recalculate NC areas of both mdi child and mdi parent. 
981           Fixes #79757 (4).
982           on window state and size changes.Fixes #79844 (3).
983         - Handle WM_NCCALCSIZE to properly calculate borders.
985         * Form.cs:
986         - Add/remove to the mdi containers list of mdi children 
987           in the order they are added.
988         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
989           to the maximized mdi child.
990         
991         * InternalWindowManager.cs:
992         - Only execute a click on the control buttons on the mouse up,
993           not on the mouse down. Show the state of the button 
994           (was only showing Normal state, never Pressed state). The
995           pressed button now follows the mouse (if you click the Close 
996           button and move the mouse over the Maximize button, the 
997           Maximize button will be shown as pressed). Since Win32 does
998           not generate WM_NCLBUTTONUP if you release the button outside
999           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
1000           it as a mouse up.
1001         
1002         * ThemeWin32Classic.cs:
1003         - Draw a missing border around mdi child forms. Fixes #79844 (2).
1005         * MdiClient.cs:
1006         - Added a list of forms which contains the order the forms are
1007           added to the mdi parent.
1008         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
1009         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
1010         - If the active form changes set the scrollbars to the top
1011           of the Z order, otherwise the form could hide them.
1012         - Scrollbars are now sized according to ClientSize, not 
1013           to Size, and they take into account the other scrollbar
1014           to determine maximum.
1015         
1016 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
1017         
1018         * XplatUI.cs:
1019         * XplatUIDriver.cs:
1020         * XplatUIX11.cs:
1021         * XplatUIWin32.cs:
1022         * XplatUIOSX.cs:
1023         - Added RequestAdditionalWM_NCMessages for windows to 
1024           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
1025           Currently only implemented in XplatUIWin32.
1027 2006-11-27  Chris Toshok  <toshok@ximian.com>
1029         * Hwnd.cs: only add the hwnd to the windows hash in
1030         set_WholeWindow and set_ClientWindow if whole_window/client_window
1031         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
1033 2006-11-27  Mike Kestner  <mkestner@novell.com>
1035         * ComboBox.cs: remove redundant OnDropDown call.  It is called
1036         from the ComboListBox.ShowWindow code. Fixes #79969.
1038 2006-11-27  Chris Toshok  <toshok@ximian.com>
1040         * Hwnd.cs: remove the setters for ExposePending and
1041         NCExposePending - noone uses them.
1043 2006-11-27  Jackson Harper  <jackson@ximian.com>
1045         * TextControl.cs: new param for ReplaceSelection which determines
1046         whether we select the new selection, or set the cursor to the end
1047         of the new selection.
1048         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
1049         pasting, select the new text.
1050         * RichTextBox.cs: Use new param for ReplaceSelection.
1052 2006-11-27  Jackson Harper  <jackson@ximian.com>
1054         * TextBoxBase.cs: Set the selection to the caret after the caret
1055         is moved, otherwise they get out of sync.
1057 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
1059         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
1060         it fixes #80015
1062 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
1064         * ThemeWin32Classic.cs: 
1065         - Fix toolbar drop down arrow position.
1066         - Fix drop down appearance when ToolBar.Appearance is normal,
1067         it fixes #80018.
1068         
1069 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
1071         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
1072         * Control.cs: Same.
1073         * UpDownBase.cs: Same.
1074         * ButtonBase.cs: Same.
1075         * ScrollBar.cs: Same.
1076         * TrackBar.cs: Same.
1077         * PictureBox.cs: Same.
1078         * UserControl.cs: Same.
1079         * Label.cs: Same.
1080         * ListControl.cs: Same.
1081         * TextBoxBase.cs: Same.
1082         * ListView.cs: Same.
1083         * RichTextBox.cs: Same.
1084         * TreeView.cs: Same.
1086 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
1088         * PrintDialog.cs:
1089         - Text label for where 
1090         - Text label comment was not shown
1092 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
1094         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
1096 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1098         * InternalWindowManager.cs: 
1099         - Handle WM_PARENTNOTIFY to activate the form
1100         if any child control is clicked.
1101         - The form is only sizable if not minimized.
1103         * MdiWindowManager.cs:
1104         - Save the IconicBounds if the form is moved.
1105         - Rework SetWindowState, now the window bounds 
1106         are stored only if the old window state is Normal.
1107         
1108         * MdiClient.cs:
1109         - In SetWindowStates store the old window state if 
1110         the window is maximized and restore window state if
1111         the window looses focus.
1112         - Don't handle any scrollbar value changes if 
1113         initializing the scroll bars. Fixes #79771.
1114         - Reworked ArrangeIconicWindows. Current algorithm
1115         tests bounds agains all other minimized windows, if
1116         any intersections create new bounds (going left to 
1117         right, bottom to top) and then test again. When 
1118         successful the bounds are saved and never computed
1119         again. Fixes #79774.
1121 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1123         * InternalWindowManager.cs: Added HandleTitleBarUp.
1125 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1127         * NumericUpDown.cs: In .NET 1.1, user entered text is still
1128         hexadecimal in ParseUserEdit.
1130         
1131 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1133         * MdiWindowManager.cs: 
1134         - Handle a click on the form's icon to show the 
1135         system menu (when maximized). Fixes #79775.
1136         - Change the existing click handler for the form's
1137         icon when not maximized to show on MouseUp.
1138         Fixes #79776.
1140         * Form.cs: In OnResize only layout the mdi child's
1141         parent if it actually has a parent. Might not if
1142         the window is closing.
1145 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1147         * MdiClient.cs: Ignore active MDI client for text of parent, if
1148         child has no text set.
1150 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1152         * ToolBar.cs: Fixed ToString to match MS.
1154 2006-11-22  Andreia Gaita  <avidigal@novell.com>
1156         * NumericUpDown: 
1157         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
1158         update inner values on set. Fixes #79966.
1159         - Override OnLostFocus to update value on NET 2. Fixes #79950.
1160         - Fix hexadecimal parsing.
1161         
1162         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
1163         parent. Fixes #79957
1165 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1167         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
1168         the actual size has to be queried, since if height /
1169         width is negative Win32 changes it to 0. 
1170         Fixes #79999 on Windows.
1171         
1172         * XplatUIX11.cs: Set height / width to 0 if negative
1173         in SetWindowPos. Fixes #79999 on Linux.
1174         
1175 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
1177         * ThemeWin32Classic.cs: Fix text redenring when button is
1178         pressed.
1180 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
1182         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
1183         and later navigate by mouse. Fixes #79528.
1185 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
1187         * ToolBar.cs: Set default value for TabStop to false in
1188         constructor, it fixes remaining behavior of bug #79863.
1190 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1192         * MdiWindowManager.cs:
1193         * InternalWindowManager.cs:
1194         - Moved a few methods specific to Mdi from 
1195         InternalWindowManager to MdiWindowManager.
1196         Fixes #79996.
1197         
1198 2006-11-21  Chris Toshok  <toshok@ximian.com>
1200         * XplatUIOSX.cs: stub out InvalidateNC.
1202         * XplatUIWin32.cs: implement InvalidateNC using the call I found
1203         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
1205         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
1207         * XplatUIDriver.cs: add InvalidateNC abstract method.
1209         * XplatUI.cs: add InvalidateNC.
1211 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
1213         * ToolBar.cs: Invalidate complete button area when pressed status 
1214         was changed.
1215         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
1216         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
1217         by 1 when button is pressed.
1219 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1221         * ToolButton.cs: Invalidate middle of DropDown button when
1222         ToolBar theres DropDownArrows.
1223         * ThemeWin32Classic.cs: Change position of DropDown arrow and
1224         fix DropDown drawing operations.
1226 2006-11-20  Chris Toshok  <toshok@ximian.com>
1228         * NativeWindow.cs: fix the formatting of functions ('{' on the
1229         following line), and enable the thread exception dialog.
1231         * Application.cs: remove the duplicate exception catching from
1232         here.
1234 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1236         * Toolbar.cs: Triggers button click event when click on icon
1237         of dropdown ToolBarButton. Fixes #79912.
1238         
1239 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1241         * Theme.cs:
1242         * ThemeWin32Classic.cs:
1243         - Added a property WindowBorderFont to enable themeing
1244           of mdi child windows' Text.
1245           
1246 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1248         * InternalWindowManager.cs:
1249         * Form.cs:
1250         * MdiClient.cs:
1251         * MdiWindowManager.cs: 
1252         - If mdi child is maximized, set mdi parent's
1253           text to "Parent - [Child]". Fixes #79770.
1254         - If there is any maximized mdi child windows, only the active 
1255           window (and any new windows) is maximized, the rest are normal.
1256         - On a WindowState change only save mdi child's window bounds 
1257           if the old window state was normal. Fixes #79774.
1258         - The scroll bars are now calculated on hopefully all
1259           necessary events. Fixed #79771 / #79844->6 / #79906.
1260         - MdiClient.SizeScrollBars() now takes into account docked 
1261           controls in the parent when calculating available space.
1262         - InternalWindowManager now always repaints the entire title
1263           area. Fixes #79844->1/4/5.
1264         - Added RequestNCRecalc on mdi child windowstate changes.
1265           Fixes #79772.
1267 2006-11-20  Mike Kestner  <mkestner@novell.com>
1269         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
1270         in the MouseUp handler of the listbox and move the return handling
1271         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
1273 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1275         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
1277 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
1279         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
1280           working in 1.2.x anymore. So, updated.
1282 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
1284         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
1285         NumberGroupSeparator of current culture instead of assuming en-US.
1286         Fixed bug #79967.
1288 2006-11-17  Mike Kestner  <mkestner@novell.com>
1290         * Control.cs: Add the concept of implicit bounds setting so that
1291         dock/undock round trips preserve explicitly set size/locations.
1292         Fixes #79313.
1294 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
1296         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
1297           can't handle those filters. (Fixes bug #79961)
1299 2006-11-17  Chris Toshok  <toshok@ximian.com>
1301         [ fixes the exit/crashes associated with #79835.  it's clearly
1302         suboptimal though, we need to figure out a better way to solve
1303         this. ]
1304         
1305         * PrintPreviewControl.cs: deal with the new invalid printer
1306         exceptions.
1308         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
1309         and return false (so CommonDialog.ShowDialog doesn't actually show
1310         the form.)
1312         * PrintDialog.cs: enable/disable the Ok button depending on
1313         whether or not the printer is valid.
1315         * CommonDialog.cs (ShowDialog): only actually show the form if
1316         RunDialog returns true.
1318 2006-11-17  Jackson Harper  <jackson@ximian.com>
1320         * TextControl.cs: When soft splitting a line, mark it as a soft
1321         split line. Also carry over the current line break to the next
1322         line.
1324 2006-11-17  Chris Toshok  <toshok@ximian.com>
1326         * XplatUIX11.cs: when scrolling a window with an invalid area, we
1327         only want to shift the part of the invalid area that overlaps the
1328         area we're scrolling.  we also don't want to clear the invalid
1329         area unless the invalid area was entirely contained within the
1330         scrolling area.
1332 2006-11-16  Chris Toshok  <toshok@ximian.com>
1334         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
1335         also make sure to free the memory returned by XGetWindowProperty
1336         in GetText().
1338         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
1340 2006-11-16  Chris Toshok  <toshok@ximian.com>
1342         * XplatUI.cs: add a new super secret way to get at the totally
1343         unsupported X11 backend.
1345 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
1347         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
1349 2006-11-16  Jackson Harper  <jackson@ximian.com>
1351         * TreeView.cs: Allow more explicit setting of top node position
1352         for scrollbars. Slower algo, but more accurate.
1353         - CollapseAll should maintain the current top node.
1354         * TextBoxBase.cs: When positioning the caret, use the line, pos
1355         method, since the x, y method does not grab the correct tag, and
1356         the caret height never gets set correctly. (Maybe I should just do
1357         away with the caret having its own height, and always use the
1358         carets current tag for height).
1360 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
1362         [Fixes 79778, 79923]
1364         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
1365         Parent to the FosterParent instead.
1367 2006-11-16  Jackson Harper  <jackson@ximian.com>
1369         * TreeView.cs: Need to recalc the topnode when we expand or
1370         collapse. The scrolling methods can't handle this on their own,
1371         since they use differences between the last scroll position, and
1372         those difference get completely messed up since we are expanding
1373         nodes.  This problem should probably be fixed in the scrolling
1374         methods, so they can figure out exactly where they are, but this
1375         will slow things down a little.
1376         * ThemeWin32Classic.cs: Special case for groupboxes with empty
1377         strings, makes nunit-gui look a lot nicer.
1379 2006-11-16  Chris Toshok  <toshok@ximian.com>
1381         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
1382         the broken multithreaded event handling we have in here.  File
1383         this entry under "Why we should move to the new X11 backend".
1385         Any thread can make it into UpdateMessageQueue, which gets events
1386         from the X socket - some of which could belong to hwnds being
1387         managed by a different thread.  We can also have multiple threads
1388         in UpdateMessageQueue at the same time, with each one reading from
1389         the X socket.  This leads to many problems, with the following
1390         solutions:
1392         We can't use hwnd.Queue.Enqueue anywhere in here and must use
1393         EnqueueLocked.
1395         The MotionNotify compression we do can't work across threads
1396         (without locking the entire queue, perhaps) since we call
1397         hwnd.Queue.Peek, so we just punt and don't compress motion events
1398         unless the owning thread is the one which got the X event.
1400         ConfigureNotify is another fun one, since it modifies the hwnd's
1401         bounds and then enqueues the event.  We add a lock to Hwnd which
1402         is held when setting configure_pending to true (and enqueuing the
1403         event).
1405         There is a race wrt the wake socket.  we need to make sure that
1406         only 1 thread is waiting on that socket, or else a thread could
1407         sleep waiting for data that never comes.  It's difficult (but not
1408         impossible) to make happen, because it seems to require something
1409         like the following:
1411             1. Thread 1 polls on wake_receive
1412         
1413             2. poll returns saying there's data to be read on
1414                wake_receive.
1415         
1416             3. Thread 2 polls on wake_receive and immediately returns
1417                saying there's data to be read.
1419             4. Thread 2 reads the wakeup byte from wake_receive
1421             5. Thread 1 attempts to read the wakeup byte from
1422                wake_receive.
1424             6. Thread 2 exits (due to a form closing, perhaps).
1426             7. Thread 1 blocks forever.
1427         
1428         Fun, eh?
1430         Fixing the Expose handling isn't done yet, and the races inherent
1431         in that piece of code are responsible for the drawing mistakes you
1432         see when generating expose events in a MT app (like NPlot).  This
1433         one is the likely to be the hardest to bandaid, and it doesn't
1434         appear to cause anything but drawing problems.  The other issues
1435         caused apps to exit or hang.
1437         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
1438         called from a different thread than the one that should be calling
1439         these functions.
1441         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
1443 2006-11-15  Chris Toshok  <toshok@ximian.com>
1445         * Application.cs: null out the context's MainForm when we exit
1446         RunLoop.  Fixes a newly checked in unit test as well as the last
1447         ODE from bug #79933.
1449 2006-11-15  Chris Toshok  <toshok@ximian.com>
1451         * Form.cs (set_Owner): allow a null value so we can clear the
1452         form's owner.
1453         (Dispose): set all our owned_form's Owner properties to null, and
1454         clear the owned_forms collection.
1455         (WM_CLOSE): clean up this a little bit.. still not right though.
1457         * ApplicationContext.cs: OnMainFormClosed should only call
1458         ExitThreadCore if the main form isn't recreating.  Fixes unit
1459         test.
1461 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1463         [Fixes 78346]
1465         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
1467 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1469         [Fixes 79433]
1471         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
1472         keep popup window types from stealing focus from the main form
1473         on Windows.
1475         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
1477         * MenuAPI.cs: Set above flag to true.
1479 2006-11-15  Chris Toshok  <toshok@ximian.com>
1481         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
1482         the button being released is not in wParam.
1484 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1486         * Form.cs: Add the released button to MouseEventArgs.Button
1487         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
1488         on Win32.
1490 2006-11-15  Chris Toshok  <toshok@ximian.com>
1492         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
1493         GetText().  untested because it's unused in our implementation.
1494         Control.Text always caches the text, even if
1495         ControlStyles.CacheText is not set.
1497         fixes bug #79939.
1499 2006-11-15  Chris Toshok  <toshok@ximian.com>
1501         [ fixes #79933 ]
1502         
1503         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
1504         message.  no hiding, no disposing.
1506         in the WM_CLOSE handler, hide the form if it's modal.
1508 2006-11-15  Chris Toshok  <toshok@ximian.com>
1510         * XplatUIX11.cs: use AddExpose instead of sending a message.
1511         fixes textbox border drawing.
1513 2006-11-15  Chris Toshok  <toshok@ximian.com>
1515         * PropertyGridView.cs: keep from crashing on mouse move/down when
1516         the property grid is empty.
1518 2006-11-14  Jackson Harper  <jackson@ximian.com>
1520         * TextControl.cs: Make PageUp and PageDown more like the MS
1521         versions.
1522         * TextBoxBase.cs: When we set the text property position the
1523         cursor at the beginning of the document.
1525 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1527         * Form.cs: if a mdi child's WindowState has changed
1528         before it's creation, it would display wrong control
1529         buttons.
1530         
1531 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
1533         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
1534           (Fixes bug #79927)
1536 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1538         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
1539         the window gets to paint its borders even if the window is
1540         getting smaller.
1541         
1542         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
1543         otherwise the old control buttons would still be painted 
1544         if the window gets bigger.
1545         
1546         * PaintEventArgs.cs: add an internal method so that the clip 
1547         rectangle can be changed.
1548         
1549 2006-11-13  Chris Toshok  <toshok@ximian.com>
1551         [ fixes bug #79745 ]
1552         
1553         * NotifyIcon.cs: lots of cleanup.
1555         * X11Structs.cs: add an enum for XEMBED messages.
1557         * XplatUIX11.cs: reindent one of the giant switch statements, it
1558         was taking up an additional tab stop, and this file is already way
1559         too wide for my laptop's screen.
1561         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
1562         we get it, resize the hwnd to the WMNormalHints max_width/height.
1564 2006-11-13  Jackson Harper  <jackson@ximian.com>
1566         * TextBoxBase.cs: Compute the value changes for the mouse wheel
1567         teh simple way.
1569 2006-11-13  Chris Toshok  <toshok@ximian.com>
1571         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
1572         #79898.  force a reference to the Region to stick around so the
1573         unmanaged object isn't collected (rendering our handle in the MSG
1574         stale).
1576 2006-11-13  Chris Toshok  <toshok@ximian.com>
1578         * XplatUIX11.cs: fix #79917 for window managers which support
1580         using XStoreName on the raw utf8, and we need to convert to
1581         COMPOUND_TEXT if it's non-latin1.
1583 2006-11-13  Chris Toshok  <toshok@ximian.com>
1585         * Form.cs (set_DialogResult): we need to set closing to false if
1586         we're setting our result to None.  fixes bug #79908.
1588 2006-11-13  Jackson Harper  <jackson@ximian.com>
1590         * TextControl.cs: When formatting text, compute the adjusted tag
1591         lengths correctly, using FindTag for the end tag instead of trying
1592         to figure it out outselves.
1593         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
1594         the item, ItemHeight doesn't work, because trees with large
1595         imagelists use those for their height
1596         * TreeView.cs: ActualItemHeight factors in the image height
1597         - compute left edge of checkboxes correctly
1598         - when expanding/collapsing move the bottom down one pixel, so we
1599         aren't moving part of the node
1601 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1603         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
1604         stack in PaintEventStart so that it won't get disposed by the gc
1605         before reaching PaintEventEnd.
1607 2006-11-13  Jackson Harper  <jackson@ximian.com>
1609         * TextBoxBase.cs: Don't select the word if we are on a line with
1610         no text.
1611         - We don't need to position the caret on mouse up, since the mouse
1612         move handler should be doing this
1613         - When double clicking a blank line, the caret is advanced to the
1614         next line.
1616 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
1618         * TreeNodeCollection.cs: Avoid duplicating indexer code.
1620 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
1622         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
1623         Fixes part of bug #79910.
1625 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
1627         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
1628           (bug #79903). Some minor string updates to match ms.
1630 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1632         * FileDialog.cs: Don't add an extension if the filename
1633           already ends with that extension.
1635 2006-11-10  Jackson Harper  <jackson@ximian.com>
1637         * TreeView.cs: Use the currently highlighted node for the
1638         BeforeSelect event.
1639         * TextBoxBase.cs: There is no need to expand selection on
1640         MouseMove.
1641         - CanUndo means 'is there any undo operations', not 'is undo
1642         allowed on this textcontrol. Fixed ClearUndo unit test.
1644 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
1646         * Button.cs: only perform click when button is Selectable (so as 
1647         not to activate default buttons when they're disabled)
1648         
1649         * Control.cs: Rewrite of the SelectNextControl and related 
1650         methods. HandleClick now selects next control if the current one
1651         is being disabled.
1652         
1653         * Form.cs: OnActivated selects next active control only if Load 
1654         has already occurred. If Load hasn't run, there's no point in 
1655         selecting here, Load might change the state of controls.
1656         
1657         * FocusTest.cs: Tests marked as working again for these fixes
1659 2006-11-10  Chris Toshok  <toshok@ximian.com>
1661         * XplatUIX11.cs: a couple of fixes.
1663         - use XInternAtoms with almost all the atoms we need to register,
1664         instead of many, many calls to XInternAtom.  should help a bit on
1665         startup time, at the expense of making the code look a little
1666         worse.
1668         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
1669         isn't reparented (which seems to be a clue that we're running fon
1670         compiz) and they have an Owner form.  This fixes the tool windows
1671         in paint.net when running under compiz.
1673         - when setting the opacity of a window, support both the case
1674         where the window has been reparented and also when it hasn't been.
1675         Since compiz/beryl doesn't seem to reparent windows, and these are
1676         the only window managers which support translucency, I'm not sure
1677         why we need the hwnd.reparented case at all.. but leave it in.
1678         now we get translucent windows in paint.net under compiz/beryl.
1680 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1682         * FileDialog.cs: Always return the value for FilterIndex that
1683           was set. Internally convert it to values that make sense.
1685 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1686         
1687         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
1689 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1691         * Toolbar.cs: Change default value of DropDownArrows to true, the 
1692         signature still using false to make it compatible with MS but the 
1693         initial value is true. Fixes #79855.
1695 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1697         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
1698           only available on Linux.
1700 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
1702         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
1703         reduce number of calls to redraw method during toolbar creation.
1705 2006-11-09  Mike Kestner  <mkestner@novell.com>
1707         * ListView.cs : raise SelectedIndexChanged when an item is selected
1708         programmatically via the Item.Selected property.  Gert's nice 
1709         ListViewSelectedIndexChanged test fixture now runs clean.
1711 2006-11-09  Mike Kestner  <mkestner@novell.com>
1713         * ListView.cs : raise SelectedIndexChanged when a selected item is
1714         removed from the item collection using Remove or RemoveAt.
1716 2006-11-09  Mike Kestner  <mkestner@novell.com>
1718         * ListView.cs : raise SelectedIndexChanged once per selected item
1719         for compat with MS.  Fixes #79849+.
1721 2006-11-09  Chris Toshok  <toshok@ximian.com>
1723         * TabControl.cs: initialize row_count to 0, and set it to 1 when
1724         we need to (if we have any tab pages).  Fixes unit test.
1726 2006-11-09  Chris Toshok  <toshok@ximian.com>
1728         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
1729         width is 0, not 3.  Fixes a unit test.
1731 2006-11-09  Mike Kestner  <mkestner@novell.com>
1733         * ListView.cs : use Implicit scrollbars so that focus isn't 
1734         stolen from the listview when they are clicked. Fixes #79850.
1736 2006-11-09  Chris Toshok  <toshok@ximian.com>
1738         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
1739         have a root item.  Fixes #79879.
1741 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
1743         * FileDialog.cs:
1744           - Fix ToString ()
1745           - An ArgumentException is now thrown if a wrong filter
1746             is applied (matches ms). The previous filter doesn't change
1747             anymore if an exception is thrown.
1748           - Changing the FileName property also affects FileNames
1749         * ColorDialog.cs: The length of the CustomColors array is always
1750           16. It doesn't matter if we use a smaller array or null to update
1751           or change the custom colors property.
1752         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
1753           for RootFolder if we get a undefined value.
1755 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1757         * StatusBarPanel.cs: 
1758         - Width is set to MinWidth if Width is smaller than
1759         MinWidth. Fixes #79842.
1760         - MinWidth now always overrides Width (MSDN says MinWidth
1761         is set to Width when AutoSize = None, but they do not 
1762         behave like that).
1763         - Style has now the the correct default value.
1764         
1765 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1767         * TrackBar.cs: 
1768         - The control is completely invalidated on 
1769         Got/LostFocus to draw the focus rectangle correctly.
1770         - When AutoSize then height is always 45 (width for 
1771         vertical controls).
1772         
1773         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
1774         on the mouse when moved and it doesn't move when grabbed
1775         until the mouse moves as well. Also fixed some wrong 
1776         calculations when clicking on the thumb (control thought
1777         click was outside of thumb and didn't grab it).
1778         Fixes some of the issues in #79718.
1780 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
1782         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
1784 2006-11-08  Chris Toshok  <toshok@ximian.com>
1786         * PropertyGridView.cs: only call ToggleValue if the item is not
1787         readonly.
1789 2006-11-08  Jackson Harper  <jackson@ximian.com>
1791         * TextBoxBase.cs: The RichTextBox and textbox have very different
1792         word selection methods.  Implement the textbox's simple word
1793         selection here, and let the RichTextBox override and provide it's
1794         own.
1795         - Don't do extra selection on mouseup
1796         * RichTextBox.cs: Use the documents word selection algorithm, I
1797         think ideally, this function will be pulled into the
1798         RichTextBox.cs code someday.
1800 2006-11-08  Chris Toshok  <toshok@ximian.com>
1802         * RootGridEntry.cs: new class to represent GridItemType.Root.
1804         * CategoryGridEntry.cs: reformat, and add boilerplate.
1805         
1806         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
1807         returns the UI parent anyway, and we need special handling to
1808         implement the GetTarget method in the face of it.  Also, implement
1809         Select().
1811         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
1812         a root grid item, and use that instead of PropertyGrid.grid_items.
1813         Also, make use of TypeConverters (and add limitted support for
1814         ICustomTypeDescriptors) when initially populating the grid.
1815         Arrays now show up more or less properly.
1817 2006-11-08  Chris Toshok  <toshok@ximian.com>
1819         * Application.cs: set the modal dialog to non modal after we close
1820         it.  Fixes bug #79866.
1822 2006-11-08  Jackson Harper  <jackson@ximian.com>
1824         * TextControl.cs: When combining lines carry over the line end
1825         style from the end line.
1826         - Invalidate the selected area when setting it, if it is visible.
1827         * TextBoxBase.cs: Only rich text box can do full line selects.
1828         - Make sure to set the cursor position when there is a click,
1829         otherwise two clicks in separate areas could cause a large chunk
1830         to be selected.
1832 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1834         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
1835         Fixes #79863.
1837 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1839         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
1840         time. Remove tooltips when ToolButton click events.  Fixes #79856.
1842 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1844         * MenuAPI.cs: Ignore right click for menu actions and fixes
1845         menu border when clicked.  Fixes #79846.
1847 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1849         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
1850         MouseState after create wParam for message, this fixes mouse button 
1851         equal none in mouse up events.
1852         
1853 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
1855         * Control.cs : Focus() now calls Select to set the Container's
1856         Active Control and to give it focus. To avoid infinite recursion
1857         (because ActiveControl also calls Focus at one point), a check 
1858         is made in Focus with the help of a new internal variable
1859         is_focusing.
1861 2006-11-07  Mike Kestner  <mkestner@novell.com>
1863         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
1864         if there's a selection.  Fixes #79849.
1866 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
1868         * PropertyGrid.cs: Avoid fixed height of help description label.
1869         Fixes part of bug #79829.
1871 2006-11-07  Chris Toshok  <toshok@ximian.com>
1873         * XplatUIX11.cs: fix #79790 again, by using the
1874         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
1876 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1878         * ToolBar.cs: Fix left click checking.
1880 2006-11-07  Chris Toshok  <toshok@ximian.com>
1882         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
1884 2006-11-07  Chris Toshok  <toshok@ximian.com>
1886         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
1887         PropertyManager unit tests.
1889         * PropertyManager.cs: make property_name internal.
1891 2006-11-07  Chris Toshok  <toshok@ximian.com>
1893         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
1894         pass a unit test.  Also, don't set image_index to anything in
1895         response to setting the ImageList property.
1897 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1899         * ToolBar.cs: Ignore click events when mouse button is not a
1900         left button, only accepts other button for dropdown menus.  
1901         Fixes #79854.
1903 2006-11-07  Chris Toshok  <toshok@ximian.com>
1905         * DataGrid.cs: make the back and parent row buttons a little less
1906         ugly.
1908 2006-11-07  Jackson Harper  <jackson@ximian.com>
1910         * TextBoxBase.cs: When converting to Text don't put line breaks in
1911         for soft line breaks.
1912         * TextControl.cs: There is an initial "fake" line in the document,
1913         this is now a soft break line, so that an extra line feed doesn't
1914         get added to the end of documents.
1916 2006-11-07  Chris Toshok  <toshok@ximian.com>
1918         [ fix bug #79778 ]
1919         
1920         * CurrencyManager.cs: if the list is readonly, don't bother
1921         checking if IBindingList.AllowNew is true.
1923         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
1924         for non-DataRowView datasources..  or rather, make it not crash.
1925         (DataGridPaintRelationRow): make sure we limit the row painting to
1926         the area not covered by the row header, and make our cell width at
1927         least large enough to cover the relation area.  This allows grids
1928         that have relations but no rows to render correctly.
1929         (DataGridPaintRowContents): same type of changes here.
1930         (SetDataSource): move back to always calling
1931         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
1932         navigating back through relations.
1933         (HitTest): handle the case where we have no cells but have
1934         relations.  Right now we generate a hit in cell 0 of whatever the
1935         row is, not sure if this is strictly correct, but it works for our
1936         purposes.
1937         
1938         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
1939         bother doing anything.
1941 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
1943         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
1944         early version of StatusStrip.  Not responsible for eaten
1945         application or firstborn children.
1947 2006-11-06  Chris Toshok  <toshok@ximian.com>
1949         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
1950         call GetTabRect with a -1 index.  Fixes #79847.
1952 2006-11-06  Jackson Harper  <jackson@ximian.com>
1954         * TreeNodeCollection.cs: Update scrollbars after clearing.
1956 2006-11-06  Chris Toshok  <toshok@ximian.com>
1958         * NumericUpDown.cs: fix the ToString method for some unit test
1959         love.
1961 2006-11-06  Chris Toshok  <toshok@ximian.com>
1963         * PropertyGrid.cs:
1964         - set the initial SelectedGridItem if we can.
1966         - Exclude non-mergable properties only if we're merging > 1
1967         object.  Merging 1 object isn't really merging, obviously.
1969         - Handle PropertySort.NoSort just like Alphabetical, which is
1970         wrong of course, but at least gets things on the screen.
1971         
1972         * PropertyGridView.cs:
1973         - Add method "FindFirstItem" which finds the first property grid
1974         item, so we can select it by default.
1976         - make use of GridEntry.CanResetValue.
1978         - Don't call RedrawBelowItemOnExpansion here anymore, the
1979         individual GridEntry's will do that.
1981         - Remove the ITypeDescriptorContextImpl internal class.
1982         
1983         * GridEntry.cs:
1984         - this class needs to implement ITypeDescriptorContext, as it's
1985         what MS's PropertyDescriptorGridEntry does, which means we can
1986         remove the ITypeDescriptorContextImpl internal class from
1987         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
1989         - keep a reference to our PropertyGridView, and move the call to
1990         RedrawBelowItemOnExpansion here from PGV.  This means
1991         programmaticly setting Expanded actually does something visible.
1993         - add a CanResetValue() function which takes into account our
1994         possibly multiple "selected_objects" in the merged case.  Shifting
1995         PropertyGridView to use this method fixes another unreported
1996         crasher found running the test for #79829.
1998         - when Top or Bounds is updated, make sure the PropertyGridTextBox
1999         is updated to reflect this.
2001         * CategoryGridEntry.cs: the ctor takes the PGV now.
2002         
2003 2006-11-06  Jackson Harper  <jackson@ximian.com>
2005         * TextControl.cs: These are 1 based.
2006         * TextBoxBase.cs: When setting the selected text, don't change the
2007         selected text tags, this is done by ReplaceText, just position the
2008         cursor at the end of the new text.
2010 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
2012         * ListView.cs: Allow label edit only when, when LabelEdit is
2013           set to true.
2015 2006-11-06  Jackson Harper  <jackson@ximian.com>
2017         * TextControl.cs: If a suitable wrapping position isn't found,
2018         just wrap right in the middle of a word.
2020 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
2022         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
2023           bug #79820.
2025 2006-11-06  Jackson Harper  <jackson@ximian.com>
2027         * TreeView.cs: Can't use the VisibleCount property when setting
2028         scrollbar heights, because this doesn't take into account whether
2029         or not the horz scrollbar just came visible.
2031 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
2033         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
2034         activated.  Fixes #79369, #79832.
2036 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
2038         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
2039           had to remove support for links that point to a directory. FileInfo
2040           returns no usefull information (means, the directory they point to)
2041           for such links. Replaced some empty string ("") with String.Empty.
2043 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
2045         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
2046         NullReferenceException when attempting to remove node that is not in
2047         collection. Throw NullReferenceException when null is passed to 
2048         Remove. Allow first element of the collection to be removed. Fixes
2049         bug #79831.  In GetEnumerator ().Current return null if positioned 
2050         before the first element of the collection. In GetEnumerator ().Reset,
2051         position before first element of the collection.
2053 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
2055         * PropertyGrid.cs: To match MS, remove default title and description
2056         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
2057         buttons.
2059 2006-11-04  Chris Toshok  <toshok@ximian.com>
2061         * Theme.cs: add a Clamp method, just for kicks.
2063         * ThemeWin32Classic.cs: clamp all color components to [0..255].
2065 2006-11-04  Chris Toshok  <toshok@ximian.com>
2067         * Form.cs: if the form isn't visible, Close() does nothing.
2069 2006-11-03  Chris Toshok  <toshok@ximian.com>
2071         * Form.cs (Close): if the form is modal, don't Dispose of it, only
2072         Hide it.
2073         (WndProc): don't Dispose after handling the WM_CLOSE message.
2075         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
2076         them as such, instead of using casts from Control to Form.  Also,
2077         don't Dispose of the modal dialog when we fall out of the loop -
2078         Close() it instead.
2080         fixes bug #79813.
2082 2006-11-03  Chris Toshok  <toshok@ximian.com>
2084         * Control.cs (Dispose): only go through the dispose thing if we're
2085         @disposing, and we haven't already been disposed.  Fixes bug
2086         #79814.
2088         * Form.cs: no reason to call "base.Dispose()" here instead of
2089         "Dispose()".
2091 2006-11-03  Mike Kestner  <mkestner@novell.com>
2093         * ComboBox.cs : use ToString instead of casts in AddItem for
2094         sorting functionality.  Fixes #79812.
2096 2006-11-03  Chris Toshok  <toshok@ximian.com>
2098         * Application.cs: pave the way for actually using the thread
2099         exception dialog.  it's ifdefed out at the moment.
2101 2006-11-03  Chris Toshok  <toshok@ximian.com>
2103         * ThreadExceptionDialog.cs: until we get a better layout, actually
2104         hide the details textbox and label when we shouldn't see them.
2106 2006-11-03  Jackson Harper  <jackson@ximian.com>
2108         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
2109         multiline textboxes anymore.  This method also determines the
2110         width/height of a textboxes canvas area.
2111         - Sorta a revert of the last patch.  For multiline just position
2112         the controls, then bail.  This way the scrollbar width won't be
2113         altered.
2115 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
2117         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
2118         it dont need.  Fixes #79537.
2120 2006-11-02  Jackson Harper  <jackson@ximian.com>
2122         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
2123         send the status after firing the DndOver event.
2125 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2127         * TrackBar.cs: Now orientation only switches height / width if
2128         the control's handle is created (Win32 does it like this). Also 
2129         fixed a typo in ToString() for a test to pass, changed the 
2130         exception thrown in set_LargeChange and set_SmallChange to 
2131         match Win32 behaviour, and added TrackBar tests to the unit 
2132         tests.
2134 2006-11-02  Chris Toshok  <toshok@ximian.com>
2136         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
2137         not _NET_WM_STATE_NO_TASKBAR.
2139 2006-11-02  Jackson Harper  <jackson@ximian.com>
2141         * TextControl.cs: Increment count by one, since in the update view
2142         count - 1 is used.
2144 2006-11-02  Jackson Harper  <jackson@ximian.com>
2146         * TextBoxBase.cs: Use client rectangle not bounds for checking if
2147         the mouse is in the client rectangle (duh).
2149 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2150         
2151         * TrackBar.cs: Fixed trackbar jumping around when clicking
2152         on it - the trackbar was not detecting correctly at which
2153         side of the thumb the click was done. (fixes #79718)
2155 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
2157         * ListBox.cs: scroll visible area when change SelectedIndex to
2158         a non visible area.  Fixes #79481.
2160 2006-11-01  Jackson Harper  <jackson@ximian.com>
2162         * TextControl.cs: When replacing the selection move the selection
2163         start/end/anchor to the end of the new text.
2165 2006-11-01  Jackson Harper  <jackson@ximian.com>
2167         * XplatUIWin32.cs: When setting the parent change the controls
2168         visibility to it's visibility flag, not to it's old parents
2169         visibility (.Visible walks the parent chain).
2171 2006-11-01  Chris Toshok  <toshok@ximian.com>
2173         * XplatUIX11.cs: revert the #79790 fix, as the simple.
2174         XSetTransientForHint fix breaks paint .net's tool windows.  more
2175         work needed for that one.
2177 2006-11-01  Chris Toshok  <toshok@ximian.com>
2179         * ScrollBar.cs: throw ArgumentException instead of Exception in
2180         LargeChange/SmallChange setters.  fixes unit tests.
2182 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
2184         * ContainerControl.cs: reverted rev.67183 (which was itself
2185         a reversion of rev.66853... eh).
2186         
2187         * Control.cs: Fixes Reflector hang by changing Focus() call
2188         to what it was before rev.66643 (calling Select() here sets 
2189         ActiveControl, which in some situations calls back Focus and 
2190         eventually does a stack overflow). Temp fix.    
2191         Changes to GetNextControl() to not look for children to select when
2192         parent cannot be selectable (so it looks for siblings instead)  
2193         
2194 2006-10-31  Mike Kestner  <mkestner@novell.com>
2196         * CheckedListBox.cs : off by one error in returned index from
2197         ObjectCollection.Add.  Fixes #79758.
2199 2006-10-31  Chris Toshok  <toshok@ximian.com>
2201         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
2202         calls for the textbox/spinner, to keep from recursing to the point
2203         where we crash.  Fixes #79760.
2205 2006-10-31  Chris Toshok  <toshok@ximian.com>
2207         * ListControl.cs (set_SelectedValue): don't throw exceptions on
2208         null/"" value, just return.  matches ms's behavior and fixes some
2209         failing tests.
2211 2006-10-31  Chris Toshok  <toshok@ximian.com>
2213         * Control.cs (set_Capture): make a logic a little easier to
2214         follow.
2216         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
2217         if it's being destroyed.  A necessary fix surely, but a bandaid
2218         also, to fix the stuck capture problem in bug #78413.
2220 2006-10-31  Chris Toshok  <toshok@ximian.com>
2222         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
2223         convention of clearing hwnd.ClientRect when we set the
2224         width/height (so it'll be recalculated by Hwnd).
2226 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
2228         * ContainerControl.cs: reversed Contains check from
2229         ActiveControl due to hanging problems. This fix
2230         partly regresses #79667 (button does not have
2231         initial focus), so this might be a symptom for 
2232         a larger parenting problem (set_ActiveControl
2233         is being called but the child control does
2234         not have the parent set yet?)   
2235         
2236 2006-10-31  Mike Kestner  <mkestner@novell.com>
2238         * MenuAPI.cs : fix keynav when menu is click activated.
2240 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
2242         * ToolStrip*: Version 0.2.
2244         * MenuStrip.cs: Version 0.1.
2246         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
2248 2006-10-30  Chris Toshok  <toshok@ximian.com>
2250         [ fixes the oversized notify icon issue in bug #79745 ]
2251         
2252         * NotifyIcon.cs: scale the icon down to the size we're given by
2253         the XplatUI layer (this would be faster if we did it once instead
2254         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
2255         since it's never invoked.
2257         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
2258         pixels high by default, so let's hardcode our systray icon to that
2259         size.  The SYSTEM_TRAY protocol should really have a way for
2260         client apps to query for the correct icon size.. but oh well.  A
2261         couple of patches to deal with the screwy client_window ==
2262         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
2263         instance, and also make sure we don't XSelectInput twice).
2265 2006-10-30  Chris Toshok  <toshok@ximian.com>
2267         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
2268         recreating forms.  Control recreation is the bane of my existence.
2269         Fix it in a way that keeps everyone happy.
2271 2006-10-30  Chris Toshok  <toshok@ximian.com>
2273         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
2274         just non-CHILD ones.  otherwise sometimes scrollbars end up with
2275         client_windows not being resized to the proper size (ReportBuilder
2276         shows this extremely well).
2278 2006-10-30  Chris Toshok  <toshok@ximian.com>
2280         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
2281         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
2282         showing up in the gnome taskbar.  Fixes bug #79790.
2284 2006-10-30  Chris Toshok  <toshok@ximian.com>
2286         * ApplicationContext.cs: guard against a NRE.
2288         * Application.cs: null out the old MainForm for the context, so we
2289         don't try to use it again once it's disposed.  Fixes bug #79783.
2291 2006-10-30  Chris Toshok  <toshok@ximian.com>
2293         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
2294         BindingContext, set the data source directly, otherwise do the
2295         lazy approach - the actual ListManager will be created when we get
2296         a BindingContext. Fixes bug #79700.
2298 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
2300         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
2301           XplatUIX11.cs: Remove old 2 parameter SetVisible.
2303         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
2305 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
2307         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
2308         of SetVisible that allows a window to be shown, but not activated.
2309         This is needed on Windows for MenuStrip, and can probably be used
2310         with MainMenu and ComboBox to fix the focus stealing issues on
2311         Windows.
2313         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
2315 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
2317         * PictureBox.cs: Fix the output of the ToString method.
2319 2006-10-29  Chris Toshok  <toshok@ximian.com>
2321         * Control.cs (get_TopLevelControl): fix bug #79781.
2323 2006-10-29  Chris Toshok  <toshok@ximian.com>
2325         * ListControl.cs (set_DataSource): throw Exception here, not
2326         ArgumentException, to match MS behavior.
2328 2006-10-29  Chris Toshok  <toshok@ximian.com>
2330         * Form.cs: remove the try-catch's around calls to GetWindowState.
2331         We can just check the return value.
2333         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
2334         Instead return -1.
2336         * XplatUI.cs: Add note about additional return value for
2337         GetWindowState.
2339 2006-10-29  Chris Toshok  <toshok@ximian.com>
2341         * Control.cs (CreateHandle): when we create our handle, we also
2342         create the handles of our child controls.  Fixes one of the
2343         Control unit tests (CH11).
2345 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
2347         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
2349 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
2351         * ThemeClearlooks.cs: A little speedup.
2353 2006-10-27  Chris Toshok  <toshok@ximian.com>
2355         * Control.cs: implement Control.FromChildHandle in a way that
2356         matches the docs (and fixes the failed test.)
2358 2006-10-27  Chris Toshok  <toshok@ximian.com>
2360         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
2361         comments).
2363         * DataGrid.cs: implement ResetForeColor such that the tests
2364         succeed.
2365         
2366 2006-10-27  Chris Toshok  <toshok@ximian.com>
2368         * ToolBarButton.cs: setting text/tooltiptext to null results in it
2369         being set to "".  Fixes bug #79759.
2371 2006-10-27  Jackson Harper  <jackson@ximian.com>
2373         * TextControl.cs: We need to clear the entire selection area when
2374         setting the start, otherwise multiline selections are still
2375         visible.
2377 2006-10-26  Chris Toshok  <toshok@ximian.com>
2379         * PropertyGridView.cs: 
2381         - ifdef all the code specific to the double
2382         buffer case, and provide some alternatives in the non-doublebuffer
2383         code, which makes heavy use of XplatUI.ScrollWindow to move things
2384         around without having to invalidate (and cause flicker).  There
2385         are still some drawing problems in the non-doublebuffered case, so
2386         DOUBLEBUFFER is defined by default.
2388         - Fix the way dropdowns are handled.  now we explicitly watch for
2389         the events which might cause the dropdown to close, and break out
2390         of the nested event loop there.  This gets rid of all Capture
2391         code, at the expense of the Msg special casing.  Seems to work,
2392         though, and fixes bug #79743.
2394 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
2395         * Control.cs: SetIsRecreating now recreates implicitly added
2396         child controls as well. Finally fixes #79629. The flag passed to 
2397         SetIsRecreating has also been removed since it wasn't used.
2398         
2399 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2401         * PageSetupDialog.cs: Clean some code, fix some bits, 
2402         add some checks, and add a printer sub-dialog.
2404 2006-10-26  Chris Toshok  <toshok@ximian.com>
2406         * PropertyGrid.cs: make set_SelectedObject call
2407         set_SelectedObjects, and move the duplicate logic to the
2408         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
2410         * PropertyGridView.cs: hide the textbox when we get a
2411         SelectedObjectsChanged event.
2413         Fixes bug #79748.
2415 2006-10-26  Chris Toshok  <toshok@ximian.com>
2417         * PropertyGridView.cs: deal with the type converter not supporting
2418         GetStandardValues() or GetStandardValues() returning null, which
2419         is does in the default case.  Fixes #79742.
2421 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
2423         * CheckedListBox.cs: nunit no longer crashes when selecting 
2424         Project/Edit menu option
2425         
2426 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
2428         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
2429         is no menu selected. fixes #79739
2431 2006-10-25  Chris Toshok  <toshok@ximian.com>
2433         * PropertyGridView.cs: factor out the splitter invalidation code
2434         into the SplitterPercent setter, and for kicks implement the
2435         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
2436         amount in either direction.
2438 2006-10-25  Chris Toshok  <toshok@ximian.com>
2440         * PropertyGridView.cs: do some cleanup of the brush used to draw
2441         text - read only fields should be grayed out.  not sure how to do
2442         this with the textbox, though.  but the textbox's should also be
2443         readonly now at least.  Also, hide/show the textbox when resizing
2444         the control.
2445         
2446         * CursorConverter.cs: use System.Reflection when getting the
2447         properties of Cursors, as TypeDescriptor.GetProperties isn't
2448         returning static properties.
2450 2006-10-25  Chris Toshok  <toshok@ximian.com>
2452         * PropertyGridView.cs: factor out the up/down handling, and reuse
2453         it for page up/down.  also add End/Home support.
2455 2006-10-25  Chris Toshok  <toshok@ximian.com>
2457         * PropertyGridView.cs:
2459         - ensure the selected grid item is visible in the scrolled area,
2460         fixes bug #79572.
2462         - fix Keys.Down handling when you're on the last item in the
2463         propertygrid.
2465 2006-10-25  Mike Kestner  <mkestner@novell.com>
2467         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
2468         clicks too.  Fixes #79725.
2470 2006-10-24  Chris Toshok  <toshok@ximian.com>
2472         * PropertyGrid.cs: use property.Converter instead of
2473         TypeDescriptor.GetConverter(property.PropertyType), so we catch
2474         TypeConverters declared on the property as well as on the
2475         PropertyType.  Fixes bug #79678.
2477 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
2479         * MimeIcon.cs, Mime.cs:
2480           Fallback to the default platform handler if no shared mime info
2481           stuff exists (fixes #79693).
2483 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2484         * ContainerControl.cs: Incorrect contains check in ActiveControl 
2485         from previous fix (duh).
2487 2006-10-20  Chris Toshok  <toshok@ximian.com>
2489         * PropertyGridView.cs: the dropdown should be MIN(number of items
2490         in list, 15).  Fixes #79551.
2492 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2493         Fixes #79384, #79394, #79652, #79667
2494         * Application.cs: 
2495         
2496         - Modal windows are now destroyed in the proper order for windows
2497         
2498         * ContainerControl.cs:
2499         
2500         - ActiveControl setter has more conditions on when to return:
2501                 - if we're reselecting the active control, but it actually
2502                 didn't have focus (window hidden or some such), it runs
2503                 - if the active control being selected doesn't actually 
2504                 exist in the container, it returns
2505         
2506         * Form.cs
2507         
2508         - The ShowDialog now gets the current form as the owner when
2509         invoking without parameters, and correctly activates the owner 
2510         when returning
2511         
2512         * MessageBox.cs
2513         
2514         - MessageBox now catches the Escape key to exit
2516 2006-10-20  Chris Toshok  <toshok@ximian.com>
2518         * PropertyGridView.cs: fix a number of issues (bug #78565, and
2519         most of bug #79676):
2521         - you can navigate around the property grid with the arrow keys.
2523         - the dropdown is sized properly when the pg has a vertical
2524         scrollbar.
2526         - fix the indentation for subentries, and properly select the
2527         entire label rect.
2529         - fix the gray bar's drawing (only draw it to the last element,
2530         not for the height of the control.  Also make sure we draw that
2531         last horizontal grid line.
2533         - use the same mechanism the datagrid uses wrt the editing textbox
2534         when scrolling/resizing/etc.  Namely, we hide it first, do the
2535         operation, then show it again (if it's still visible).
2536         
2537         - aggressively remove a lot of unnecessary refreshes (and also
2538         calls to Invalidate(). call more limited variants, and only redraw
2539         what we need.)
2540         
2541         * PropertyGrid.cs:
2543         - when we're populating the merged collection, fill in the UI
2544         parent with either the passed in item, or the category item we
2545         create.
2547         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
2549         * GridItem.cs: drop some fully qualified names.
2550         
2551         * GridEntry.cs: add a "UIParent", which is basically the parent
2552         treenode.
2554         * GridItemCollection.cs: add an IndexOf method.
2556 2006-10-20  Mike Kestner  <mkestner@novell.com>
2558         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
2559         a working win32 NC invalidation mechanism, we can't invalidate
2560         menus.  [Fixes #79705]
2562 2006-10-20  Mike Kestner  <mkestner@novell.com>
2564         * ListBox.cs : don't update the VScrollbar if the list is empty,
2565         just hide it.  [Fixes #79692]
2567 2006-10-20  Jackson Harper  <jackson@ximian.com>
2569         * RichTextBox.cs: Handle some special chars better, and don't skip
2570         the entire group when we encounter a special char that we don't
2571         handle correctly.
2573 2006-10-18  Chris Toshok  <toshok@ximian.com>
2575         * PropertyGridView.cs: address a number of issues from bug #79676,
2576         mostly of the cosmetic variety.
2578         - The highlight rectangle for indented items not extends all the
2579         way to the left.
2581         - Indented items aren't indented so much.
2583         - the dropdown is properly sized width-wise if the pg has a
2584         vertical scrollbar.
2586 2006-10-18  Chris Toshok  <toshok@ximian.com>
2588         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
2589         systray stuff is rather convoluted to begin with.
2591         systray icons are a single window for some reason (that I haven't
2592         figured out yet), and for them, client_window == whole_window.
2593         Given the way the tests are structured elsewhere to determine
2594         which paints are pending (client vs. nc), that situation will
2595         always yield PAINT, not NCPAINT.  So, if we have a pending
2596         nc_expose and no pending expose, remove the hwnd from the paint
2597         queue, and also set nc_expose_pending to false, to keep us from
2598         blocking further expose's adding the hwnd to the paint queue.
2600         phew.  like i said, a rather convoluted change.  Fixes the
2601         notifyicon repaint issues in bug #79645.
2603 2006-10-18  Chris Toshok  <toshok@ximian.com>
2605         * Form.cs: when getting the backcolor of the form, don't get
2606         base.BackColor, as this allows parents to influence the background
2607         color.  This breaks mdi forms.  Instead, if the background_color
2608         is empty, return the default.
2610 2006-10-18  Chris Toshok  <toshok@ximian.com>
2612         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
2613         to being private instead of internal static.
2615         * Control.cs: remove all the stupid ParentWaitingOnRecreation
2616         crap, it wasn't working for more deeply nested controls anyway,
2617         and we already have the is_recreating flag - use that instead.
2618         Before calling DestroyHandle in RecreateHandle, recurse through
2619         the control tree setting it to true.  this returns the recreate
2620         code to much of its original simplicity, while now guaranteeing we
2621         actually recreate everything we're supposed to.  This change gets
2622         fyireporting actually showing mdi children.
2624 2006-10-17  Chris Toshok  <toshok@ximian.com>
2626         * Form.cs: remove some debug spew, and collapse some duplicate
2627         code at the end of SetClientSizeCore.
2629         * XplatUIX11.cs: 
2630         - add some more debug spew here too wrt Destroy handling.
2631         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
2632         in Control's handling of WM_DESTROY.
2633         - Remove the handling of zombie window DestroyNotifies from the
2634         event loop - we don't need it.  Now the only DestroyNotifies we
2635         actually handle are ones generated by X.
2636         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
2637         match gtk's (functioning) handling of this. This keep metacity
2638         from leaving droppings in the form of wm borders with no window
2639         contents all over the place.
2641         * Control.cs:
2642         - add a bunch of debug spew wrt control recreation.
2643         - fix a bug where we weren't tracking Visible properly on
2644         recreated hwnds.
2645         - fixed the WM_PAINT double buffer handling to support re-entrant
2646         calls (yes, i know it's gross, but it's happening to us).
2648 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2649         * ThemeWin32Classic.cs: changed drawing of selected days
2650         to make them look better.
2652 2006-10-16  Chris Toshok  <toshok@ximian.com>
2654         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
2655         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
2657         * XplatUIX11.cs: move away from using hwnd.client_dc and
2658         hwnd.non_client_dc and on to a stack of dc's (and in window's
2659         case, PAINTSTRUCT's), so we can deal with nested Paint calls
2660         without puking or not disposing of Graphics objects.
2662         * XplatUIOSX.cs: same.
2664         * XplatUIWin32.cs: same.
2666 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
2668         * FileDialog.cs: Don't call on_directory_changed inside
2669           OnSelectedIndexChanged (it changes the SelectedIndex too).
2670           Instead move it to OnSelectionChangeCommitted.
2672 2006-10-13  Chris Toshok  <toshok@ximian.com>
2674         * XplatUIX11.cs: more Destroy work.  the current code does the
2675         following things, in order:
2677         1. Enumerates all handles of all controls at or below the one
2678         being destroyed, in pre-order.  As it is doing this, it marks the
2679         handles as zombie and clears all references to them.
2680         
2681         2. calls XDestroyWindow on the window passed in.
2683         3. SendMessage's WM_DESTROY to all he handles in the accumulated
2684         list.
2686 2006-10-13  Chris Toshok  <toshok@ximian.com>
2688         * XplatUIX11.cs: set hwnd.zombie to true before calling
2689         SendMessage (WM_DESTROY).  this keeps us from marking the new
2690         window a zombie, and also keeps us from calling sendmessage at
2691         all.
2693 2006-10-13  Jackson Harper  <jackson@ximian.com>
2695         * TextControl.cs: Do not show the caret and selection at the same
2696         time.  Reduces ugliness by 35%.
2698 2006-10-13  Chris Toshok  <toshok@ximian.com>
2700         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
2701         zombie after we do the recursive call, so we actually do call
2702         SendMessage on the children controls.
2703         (GetMessage): if we find a pending paint event for a zombie hwnd,
2704         remove the hwnd from the paint queue, or else it will always be
2705         there (and we'll effectively loop infinitely)
2707 2006-10-13  Mike Kestner  <mkestner@novell.com>
2709         * MenuItem.cs : add Selected format under keynav too.
2710         Fixes #79528.
2712 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
2714         * PropertyGrid.cs: Fixed some NRE's and small difference between our
2715         implementation and that of MS.
2717 2006-10-13  Chris Toshok  <toshok@ximian.com>
2719         * Control.cs (OnInvalidated) only futz with the invalid_region if
2720         the control is double buffered.  this fixes the apparent hang in
2721         the ListView unit tests.  Someone needs to make the
2722         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
2724 2006-10-13  Chris Toshok  <toshok@ximian.com>
2726         * PropertyGridView.cs:
2728         - do a little refactoring so that only one place calls
2729         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
2730         else call that.  Also make it Refresh, since there are redraw bugs
2731         otherwise (we should take a look at that...)
2733         - do a little more refactoring work to share the body of code
2734         involved with the drop down.  it was duplicated in the code
2735         dealing with the listbox handling and in the code dealing with the
2736         UITypeEditors.
2738         - add a Capture to the dropdown form's control once it's
2739         displayed, and add a MouseDown handler that checks to make sure
2740         the position is inside the control.  If it's not, close the
2741         dropdown.  This fixes #78190.
2743         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
2744         if the value is different than the initial value.
2745         
2746 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
2748         * Control.cs: see #78650
2749         - Fixed GetNextControl for several cases:
2750                 - Changed FindFlatForward to return 
2751                 correct sibling control when more than one
2752                 control has same TabIndex as the currently 
2753                 focused one.
2754                 - Changed FindFlatBackward to loop children
2755                 from last to first and apply same logic as in
2756                 FindFlatForward
2757                 - Changed FindControlForward to search for
2758                 children when control is not a container
2759                 but has children, or search for siblings if
2760                 control is a container...
2761                 - Changed FindControlBackward   to continue
2762                 searching for child controls when hitting 
2763                 Panel-like parents
2764                 
2765         - Fixed Focus method to update ActiveControl
2766         (FocusTest.FocusSetsActive failure)
2767         
2768         * TabControl.cs:
2769         - Focus rectangle now refreshes when gaining
2770         or losing focus
2771         - Removed grab for Tab key on IsInputKey that 
2772         was keeping tab navigation from working (#78650)
2774 2006-10-13  Chris Toshok  <toshok@ximian.com>
2776         * PropertyGridView.cs:
2777         - Rewrite SetPropertyValue to loop over SelectedGridItem's
2778         SelectedObjects.
2780         - Deal with GridItem.Value == null a few places.
2782         * PropertyGrid.cs: 
2783         - replace the PopulateGridItemCollection with a pair of methods
2784         which compute the intersection of all the properties in the
2785         SelectedObjects array.  Fixes #79615.
2787         - Throw ArgumentException from set_SelectedObjects if there's a
2788         null in the array.
2790         - Add GetTarget method which can be used to traverse up the
2791         GridItem.Parent chain.  It depends on the assumption that
2792         selected_objects for different GridEntries are always in the same
2793         order (a safe assumption).  Use this method and loop over all the
2794         selected objects in the entry when calling RemoveValueChanged and
2795         AddValueChanged.
2796         
2797         * GridEntry.cs: Make this handle multiple selected objects.
2798         .Value returns null if not all the selected objects share the same
2799         value.
2801 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
2802         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
2803           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
2804           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
2805           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
2806           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
2807         add additional functionality.
2809 2006-10-12  Mike Kestner  <mkestner@novell.com>
2811         * ErrorProvider.cs : new ToolTipWindow ctor sig.
2812         * HelpProvider.cs : new ToolTipWindow ctor sig.
2813         * ToolTip.cs : remove ToolTip param from Window sig since it is
2814         not used.
2815         * ToolBar.cs : add tooltip support.  Fixes #79565.
2817 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2819         * ComboBox.cs: move the events in set_SelectedIndex to 
2820         after the call to HighlightIndex in order to avoid 
2821         possible recursion and subsequent problems with the call
2822         to HighlightIndex and include a range check in 
2823         set_HighlightIndex. Fixes #79588
2824         
2825 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2827         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
2828         to ui thread's settings instead of sunday. 
2829         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
2831 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2833         * DateTimePicker.cs
2834         * MonthCalendar.cs
2835         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
2836         and implement missing functionality (selecting different parts 
2837         of the date and edit them individually with the keyboard).
2838         
2839 2006-10-11  Chris Toshok  <toshok@ximian.com>
2841         * Control.cs (OnInvalidated): fix NRE relating to last change.
2843 2006-10-11  Chris Toshok  <toshok@ximian.com>
2845         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
2846         atoms in _NET_WM_STATE here if the window is maximized.  We need
2847         to do this because we're *replacing* the existing _NET_WM_STATE
2848         property, so those atoms will be lost otherwise, and any further
2849         call to GetWindowState will return Normal for a window which is
2850         actually maximized.  Fixes #79338.
2852 2006-10-11  Jackson Harper  <jackson@ximian.com>
2854         * TextControl.cs: Special case for setting selection end to
2855         selection start, we basically kill the anchor.
2856         - some todo comments.
2858 2006-10-11  Chris Toshok  <toshok@ximian.com>
2860         * Control.cs: switch to using an "invalid_region" to track which
2861         parts of the image buffer need updating.  This is more code than
2862         the simple fix from r66532.  That version just attempted to always
2863         fill the entire buffer on redraw, which turns out to be
2864         inefficient when invalidating small rectangles.  This version
2865         simply adds the invalid rectangle to the invalid region.  When we
2866         get any WM_PAINT message we see if it can be filled using the
2867         image buffer, and if it can't (if the paint event's clip rectangle
2868         is visible in the invalid region) we first fill the image buffer.
2869         So, the image buffer is still a cache, we just fill it lazily.
2871         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
2872         need it any longer.
2874 2006-10-11  Chris Toshok  <toshok@ximian.com>
2876         * XplatUIX11.cs (SetWindowPos): we need to update both position as
2877         well as size after calling XMoveResizeWindow.  This keeps us from
2878         ignoring future SetWindowPos calls.  Fixes the disappearing
2879         DateTimePicker in the ToolBarDockExample from bug #72499.
2881 2006-10-11  Chris Toshok  <toshok@ximian.com>
2883         * TextBoxBase.cs: reorder things a bit when it comes to
2884         resizing-causing-recalculation.  we were recalculating the
2885         document when our position was changed, which shouldn't happen.
2886         We only care about size changes.  Clear up some more redundant
2887         recalculation calls while I'm at it.  This makes the toolbar dock
2888         example snappy when you're just dragging toolbars around (since it
2889         causes a relayout whenever you move one.)
2891 2006-10-11  Chris Toshok  <toshok@ximian.com>
2893         * ToolBarButton.cs (get_Rectangle): this only returns
2894         Rectangle.Empty if Visible == false, or Parent == null.
2895         Parent.Visible doesn't matter.
2897 2006-10-10  Chris Toshok  <toshok@ximian.com>
2899         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
2900         by .net 1.1, so switch to an internal method instead.
2902 2006-10-10  Chris Toshok  <toshok@ximian.com>
2904         * Control.cs (WM_PAINT): when a control is double buffered we draw
2905         initially to the ImageBuffer and then copy from there.  But when a
2906         parent control which has child controls is double buffered, the
2907         initial drawing doesn't encompass the entire ClientRectangle of
2908         the parent control, so we end up with uninitialized bits (this is
2909         easily seen by dragging the top toolbar in
2910         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
2911         manually set the ClipRectangle of the paint_event (only the one we
2912         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
2913         of the nastiness in bug #72499.
2915         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
2916         which we use in Control.cs's WM_PAINT handling.
2918 2006-10-10  Jackson Harper  <jackson@ximian.com>
2920         * TextBoxBase.cs: Finish off the autoscrolling stuff.
2922 2006-10-10  Chris Toshok  <toshok@ximian.com>
2924         * Cursor.cs: Apply a slightly different patch to the one suggested
2925         in #79609.
2927 2006-10-10  Jackson Harper  <jackson@ximian.com>
2929         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
2930         not the parent form.
2931         * TextControl.cs: use difference in old line count vs new count to
2932         calculate how many lines were added, this takes into account soft
2933         line breaks properly.
2935 2006-10-10  Chris Toshok  <toshok@ximian.com>
2937         * LinkLabel.cs: don't call MeasureCharacterRanges against a
2938         rectangle located at 0,0 and the size of the text.  Use
2939         ClientRectangle instead.  This fixes rendering of non-left aligned
2940         link labels.
2942 2006-10-10  Jackson Harper  <jackson@ximian.com>
2944         * TextBoxBase.cs: When we set the selection start position the
2945         caret.
2946         * TextControl.cs: Need to update the caret when we decrement it to
2947         zero.
2948         - Make sure that the selection_visible flag gets reset to false if
2949         the selection isn't visible.  Before this you could get it set to
2950         visible by changing the selection start, then changing the end to
2951         equal the start.
2953 2006-10-09  Jackson Harper  <jackson@ximian.com>
2955         * TreeView.cs: Don't update scrollbars when we aren't visible.
2956         * TreeNodeCollection.cs: Only need to update scrollbars if being
2957         added to an expanded visible node or the root node.
2959 2006-10-09  Chris Toshok  <toshok@ximian.com>
2961         * XplatUIX11.cs (SendMessage): fix NRE.
2963 2006-10-09  Jackson Harper  <jackson@ximian.com>
2965         * TextBoxBase.cs: Implement horizontal autoscrolling.
2966         * TextControl.cs: Add a movement types that allows moving forward
2967         and backwards without wrapping.
2969 2006-10-09  Mike Kestner  <mkestner@novell.com>
2971         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
2972         with focus "expansion" of labels.  Fixes #79532 and then some.
2973         * ThemeWin32Classic.cs : add LineLimit to ListView label format
2974         when wrapping.
2976 2006-10-09  Jackson Harper  <jackson@ximian.com>
2978         * TextBoxBase.cs: Set the default max values to MaxValue since
2979         we use the scrollbar for autoscrolling and the default value is
2980         100.  If we don't do this the caret won't keep up with typing
2981         after about 18 characters.
2982         * TextControl.cs: Make sure the selection is offset by the
2983         viewport x.  This fixes selection when using auto scrolling.
2985 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
2986         
2987         * Form.cs: The active control should be selected after the 
2988         OnLoad so that any child control initialization that affects
2989         the selection is done. Fixes #79406
2991 2006-10-06  Chris Toshok  <toshok@ximian.com>
2993         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
2994         to have no evil effects.
2996         - Stop selecting StructureNotifyMask on non-toplevel windows.
2998           The only way children should be resized is by using the SWF api,
2999           and we already send WM_WINDOWPOSCHANGED messages in those cases.
3000           Toplevel windows can be interacted with via the window manager,
3001           and so we keep the input mask there.
3003           The other event StructureNotifyMask gives us (that we care
3004           about) is DestroyNotify.  The code is already structured such
3005           that it assumes we won't be getting a DestroyNotify event for
3006           the window we pass to XDestroyWindow (which is what
3007           StructureNotifyMask is supposed to guarantee.)  So, that code
3008           shouldn't be affected by this either.
3010         - Stop selecting VisibilityChangeMask altogether.
3012           We weren't doing anything with the resulting events anyway.
3013         
3014         This vastly reduces the number of X requests and events we see
3015         when resizing/laying out a large ui.
3017 2006-10-06  Chris Toshok  <toshok@ximian.com>
3019         * ScrollableControl.cs (DisplayRectangle): we need to take into
3020         account the DockPadding regardless of whether or not auto_scroll
3021         == true.  rework this slightly to this effect, and fix bug #79606,
3022         and part of #72499 (you can now see the drag handles and drag
3023         toolbars around).
3025 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
3027         * ListViewItem.cs: Collections of selected and checked items are now
3028         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
3029         we mark the collection "dirty".
3030         * ListView.cs: Marked collections readonly. Modified UpdateSelection
3031         to only clear SelectedItems when a new item is selected and MultiSelect
3032         is enabled. CheckedItems and SelectedItems now subscribe to Changed
3033         event of ListViewItemCollection, and mark its list dirty whenever
3034         that event is fire. This allows us to return selected/checked items 
3035         in the same order as they are in the Items collection. This matches
3036         the MS behavior.
3038 2006-10-06  Chris Toshok  <toshok@ximian.com>
3040         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
3041         right mouse clicks.  Fixes bug #79593.
3043 2006-10-06  Chris Toshok  <toshok@ximian.com>
3045         * Splitter.cs: doh, fix splitters that don't want to cancel the
3046         movement when you drag them.  Also, impose the limits on the
3047         values we send to the SplitterMovingEvent.  Fixes #79598.
3049 2006-10-06  Jackson Harper  <jackson@ximian.com>
3051         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
3052         since we use this for auto scrolling also.
3054 2006-10-05  Chris Toshok  <toshok@ximian.com>
3056         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
3057         beginning to think that most datagrid column types don't need this
3058         method.  Fixes bug #79392.
3060 2006-10-05  Chris Toshok  <toshok@ximian.com>
3062         * DataGrid.cs: move back to a more lazy scheme for creating the
3063         CurrencyManager, so we aren't updating it every time you set
3064         either DataSource or DataMember.  Also, don't call
3065         RecreateDataGridRows if the currency manager hasn't changed.
3067 2006-10-05  Chris Toshok  <toshok@ximian.com>
3069         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
3070         emitted, SelectedIndex should already be updated.  Fixes bug
3071         #78929.
3073 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
3075         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
3076           ToolStripTextBox.cs: Initial commit.
3077         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
3079 2006-10-05  Jackson Harper  <jackson@ximian.com>
3081         * TabControl.cs: We need to invalidate the tab control area when
3082         new ones are added (duh).
3084 2006-10-03  Chris Toshok  <toshok@ximian.com>
3086         * Form.cs (ProcessDialogKey): if the focused control is in this
3087         form and is a button, call its PerformClick method here.  Fixes
3088         #79534.
3090 2006-10-04  Jackson Harper  <jackson@ximian.com>
3092         * TabPage.cs: Ignore setting of Visible, and add an internal
3093         method for setting the controls visibility.  TabPage's Visible
3094         property is a little strange on MS, this seems to make us
3095         compatible, and fixes cases where people set all the tab pages to
3096         visible.
3097         * TabControl.cs: Use the new internal setting on tab pages
3098         visibility.
3100 2006-10-03  Mike Kestner  <mkestner@novell.com>
3102         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
3104 2006-10-03  Mike Kestner  <mkestner@novell.com>
3106         * ListView.cs : use is_visible instead of Visible to check if 
3107         scrollbars should be placed/sized.  Also some max_wrap_width
3108         love for LargeIcon view.  [Fixes #79533]
3110 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
3112         * TextControl.cs :
3113           Make set_TextAlign() do actually update the align. Fixed #78403.
3115 2006-10-03  Chris Toshok  <toshok@ximian.com>
3117         * DataGrid.cs: fix a crash when switching datasources if the
3118         vertical scrollbar is at someplace other than Value = 0.  Also,
3119         reduce the number of recalculation passes we do in SetDataSource
3120         from 2 to 1.
3122 2006-10-03  Jackson Harper  <jackson@ximian.com>
3124         * TextBoxBase.cs: Move the if value the same bail check up, we
3125         don't want to empty the document if it is already empty, this
3126         seems to severly mess up the caret.  TODO: I should probably fix
3127         the empty statement to update teh caret somehow.
3129 2006-10-03  Chris Toshok  <toshok@ximian.com>
3131         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
3132         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
3133         reflection, an internal row type, properties on said type, etc.)
3134         will work with our datagrid.  Fixes #79531.
3136 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
3138         * FileDialog.cs: Don't crash if a path is not accessible
3139           (System.UnauthorizedAccessException). Fixes #79569.
3140         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
3141           a ':' too. Return unknown icon for those paths/files.
3143 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
3145         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
3146         GetContainerControl returns null.
3148 2006-10-02  Chris Toshok  <toshok@ximian.com>
3150         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
3151         call to XGetWindowAttributes instead of "handle".  fixes an X
3152         error using notifyicon after the NotifyIconWindow to Form base
3153         class switch.
3155 2006-10-02  Chris Toshok  <toshok@ximian.com>
3157         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
3158         server grab and looping we need to do to get down to the most
3159         deeply nested child window.
3160         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
3161         QueryPointer again after the WarpPointer so we can generate a
3162         proper (fake) MotionNotify event to be enqueued in the destination
3163         window's queue.
3164         (GetCursorPos): call QueryPointer.
3166         Fixes #79556.
3168 2006-10-02  Jackson Harper  <jackson@ximian.com>
3170         * NotifyIcon.cs: Derive the notify icon from a form, so things
3171         like FindForm work on it.
3172         - Swallow the WM_CONTEXTMENU message, since that is generated on
3173         mouse down, and context menu is a mouse up kinda guy.  I believe
3174         the correct fix here is probably to make the notify icon entirely
3175         NC area, but this seems to work fine for anyone not manipulating
3176         WndProc.
3178 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
3180         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
3181           ToolStripItemCollection.cs, ToolStripLabel.cs,
3182           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
3183           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
3184           Initial implementation.
3185         * TextRenderer.cs: Provide padding to MeasureText.
3187 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
3189         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
3190         of ButtonBaseAccessibleObject. Fix bug #79552.
3192 2006-10-02  Jackson Harper  <jackson@ximian.com>
3194         * MdiWindowManager.cs: When maximizing use the containers client
3195         rect, not it's bounds, so nc area is accounted correctly.
3196         - Use the parent form's size for the menu position, since the
3197         client isn't always the full form size.
3199 2006-10-01  Chris Toshok  <toshok@ximian.com>
3201         * ScrollableControl.cs: make sure neither right_edge or
3202         bottom_edge are < 0, since they're used as LargeChange for the
3203         horiz/vert scrollbars respectively.  Fixes #79539.
3205 2006-10-01  Chris Toshok  <toshok@ximian.com>
3207         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
3208         the xplatuix11 code can cause us to destroy/recreate our handle.
3210         * XplatUIX11.cs
3211         (SystrayAdd):
3212         - this code can be invoked many times for the same Hwnd.  Make
3213           sure we only destroy the client window once (the first time this
3214           method is called).  This fixes bug #79544.
3215         - Remove the call to the improperly bound XSync.  why we had two
3216           bindings to this, I will never know, but this call resulted in
3217           events being discarded from the queue(!).
3218         - correct a misunderstanding of _XEMBED_INFO - the second atom is
3219           not our current state but the state we wish to be in.  So, 0 if
3220           we don't want to be mapped.  Change it to 1.
3221         (SystrayRemove): The XEMBED spec makes mention of the fact that
3222         gtk doesn't support the reparent of client windows away from the
3223         embedder.  Looking at gtksocket-x11.c seems to agree with this.
3224         The only avenue we have for removing systray icons is to destroy
3225         them.  We don't want the handle to go away for good, though, so
3226         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
3227         #79545.
3228         
3229 2006-10-01  Chris Toshok  <toshok@ximian.com>
3231         * Form.cs (WndProc): inline the native_enabled variable usage into
3232         the cases in which it's used.  Fixes #79536.
3234 2006-09-29  Mike Kestner  <mkestner@novell.com>
3236         * ListView.cs : toggle the selection state for ctrl clicks in 
3237         multiselect mode. [Fixes #79417]
3239 2006-09-29  Mike Kestner  <mkestner@novell.com>
3241         * ListView.cs : kill CanMultiSelect and refactor the selection
3242         code to support multiselection in the absence of mod keys. Steal
3243         arrow/home/end keys by overriding InternalPreProcessMessage to
3244         restore regressed keynav behavior.
3245         [Fixes #79416]
3247 2006-09-29  Jackson Harper  <jackson@ximian.com>
3249         * MdiClient.cs: Repaint the titlebars when the active window is
3250         changed.
3252 2006-09-29  Chris Toshok  <toshok@ximian.com>
3254         * Application.cs: when entering a runloop with a modal, make sure
3255         the hwnd is enabled.  Fixes #79480.
3257 2006-09-29  Chris Toshok  <toshok@ximian.com>
3259         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
3260         when ListManager.CanAddRows == false, bump us back one.
3262         * DataGridColumnStyle.cs (ParentReadOnly): remove the
3263         listmanager.CanAddRows check.  This makes ArrayLists uneditable
3264         using a datagrid, which is not right.
3265         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
3266         is an IEditable, but call property_descriptor.SetValue regardless.
3267         fixes #79435.
3269 2006-09-29  Chris Toshok  <toshok@ximian.com>
3271         * DataGridBoolColumn.cs: we need to test equality in the face of
3272         possible null values (as is the case with the default NullValue).
3273         This patch keeps us from crashing in that case.
3275 2006-09-29  Jackson Harper  <jackson@ximian.com>
3277         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
3278         here, since it will get called for every node collection in the
3279         tree. This is now done in the treeview once the sorting is
3280         finished.
3281         * TreeView.cs: Recalculate the visible order, and update the
3282         scrollbars after sorting, set the top nope to the root so that the
3283         recalc actually works.
3285 2006-09-29  Chris Toshok  <toshok@ximian.com>
3287         * LinkLabel.cs: more handling of the default link collection in
3288         the face of LinkArea manipulation.  The default link collection
3289         contains 1 element (start=0,length=-1).  If the user sets LinkArea
3290         to anything and the links collection is the default, clear it.
3291         Then only add the link if its nonempty.  Fixes #79518.
3293 2006-09-29  Chris Toshok  <toshok@ximian.com>
3295         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
3296         piece correctly when we hit a '\n'.  Fixes #79517.
3298 2006-09-29  Chris Toshok  <toshok@ximian.com>
3300         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
3301         change the binding of gdk_init_check to take two IntPtr's, and
3302         pass IntPtr.Zero for both of them.  Fixes #79520.
3304 2006-09-29  Mike Kestner  <mkestner@novell.com>
3306         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
3307         [Fixes #78779]
3309 2006-09-28  Jackson Harper  <jackson@ximian.com>
3311         * XplatUIX11.cs: When translating NC messages make sure we go from
3312         whole window to screen, not client window to screen.
3313         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
3314         method doesn't exist
3315         - Skip over controls that aren't forms when arranging.
3317 2006-09-28  Jackson Harper  <jackson@ximian.com>
3319         * XplatUIWin32.cs: Clip the rect to the parent window.
3320         * XplatUIStructs.cs: Add clipping modes struct.
3321         * InternalWindowManager.cs: New private method that factors title
3322         bar heights in when calculating the pos of an NC mouse message.
3323         - Use SendMessage to force a paint when the form's size is changed
3324         instead of painting the decorations immediately.
3325         - Don't let the NC button click messages get to DefWndProc,
3326         because they will attempt to handle windowing themself, and this
3327         messes up z-order (it will put them in front of the scrollbars).
3328         * XplatUIX11.cs: Make sure that we don't reset window managers if
3329         we already have one (ie the window is an MDI window).
3331 2006-09-28  Chris Toshok  <toshok@ximian.com>
3333         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
3334         menu code really needs going over.
3336 2006-09-27  Chris Toshok  <toshok@ximian.com>
3338         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
3339         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
3340         window is maximizable.  So, we need to make sure that even if we
3341         clear the border/wm frame of those functions, they're still
3342         available (basically, we remove the decoration without removing
3343         the function).  Half the fix for #79338.
3345 2006-09-27  Chris Toshok  <toshok@ximian.com>
3347         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
3348         Fixes bug #79515.
3350 2006-09-27  Chris Toshok  <toshok@ximian.com>
3352         * Splitter.cs: reorder things a bit so that we don't actually
3353         draw/move the splitter until after calling OnSplitterMoving.  This
3354         lets users cancel/disallow the movement by explicitly setting
3355         event.SplitX/SplitY.  Fixes #79372.
3357 2006-09-27  Jackson Harper  <jackson@ximian.com>
3359         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
3360         because it is most likely on a window being destroyed, and that
3361         will give us an X11 error.
3363 2006-09-27  Chris Toshok  <toshok@ximian.com>
3365         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
3366         the dropdown button now toggles between showing and hiding the
3367         dropdown.  Also, get rid of dropdown_form_showing and just use
3368         dropdown_form.Visible.  We still don't do a grab, but I'll leave
3369         that part to someone who has handled Capture-fu before.
3371 2006-09-27  Chris Toshok  <toshok@ximian.com>
3373         * DataGrid.cs: return false if alt isn't pressed when '0' is
3374         pressed.  this keeps the '0' key from being swallowed, and fixes
3375         bug #79350.
3377 2006-09-27  Chris Toshok  <toshok@ximian.com>
3379         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
3380         Calling Refresh (in response to a scrollbar event) screws up the
3381         scrollbar painting.  Fixes bug #78923.
3383 2006-09-27  Chris Toshok  <toshok@ximian.com>
3385         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
3386         then insert into hashtable" blocks threadsafe.
3388 2006-09-27  Chris Toshok  <toshok@ximian.com>
3390         * MessageBox.cs (CreateParams): the styles should be |'ed with our
3391         baseclass's, since otherwise the
3392         ControlBox/MinimizeBox/MaximizeBox assignments above have no
3393         effect.  This gets the close button back in messageboxes.
3395 2006-09-27  Chris Toshok  <toshok@ximian.com>
3397         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
3398         flag, not just != 0.  this makes flags that are actually multiple
3399         bits (like WS_CAPTION) work.  fixes bug #79508.
3401 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
3403         * PageSetupDialog.cs: add support for getting and settings the 
3404         paper size, source and orientation.
3406 2006-09-26  Chris Toshok  <toshok@ximian.com>
3408         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
3409         and caption == "", we need to remove the resize handles as well as
3410         the title bar.
3412         * Control.cs (set_Text): turns out that setting Text on a form
3413         should change the WM styles on the window, since if ControlBox ==
3414         false, the only way to get a window border is to have a non-""
3415         Text property.  check winforms/forms/text.cs for an example.  so,
3416         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
3417         update both window styles and title.  This fixes a lot of dialogs
3418         (including the preferences dialog in MonoCalendar.)
3420 2006-09-26  Chris Toshok  <toshok@ximian.com>
3422         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
3423         control isn't a Form), call Win32ShowWindow to hide the window,
3424         but don't update the control Visible property.  When we reparent
3425         back to a parent control, call SetVisible in order for the
3426         window's visibility to be reinstated.
3428         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
3429         the FosterParent.
3431         * Control.cs (ControlCollection.Remove): remove that value.Hide()
3432         call for good, since it breaks MonoCalendar (and other things I'm
3433         sure.) Also, set all_controls to null *after* the owner calls,
3434         which end up regenerating it.
3435         (ChangeParent): allow new_parent to be == null, passing
3436         IntPtr.Zero down to XplatUI.
3438         this fixes #79294 the right way.
3440 2006-09-26  Mike Kestner  <mkestner@novell.com>
3442         * GridEntry.cs : internal SetParent method.
3443         * PropertyGrid.cs : attach to property changed on the proper
3444         target if we have a hierarchical grid with subobjects. Setup
3445         GridItem.Parent for hierarchical items.
3446         * PropertyGridView.cs : Set value on the correct target for
3447         hierarchical grids. [Fixes #78903]
3449 2006-09-26  Chris Toshok  <toshok@ximian.com>
3451         * Control.cs (ChildNeedsRecreating): this should return true if
3452         either we're being recreated and the child is in our list, or our
3453         parent is waiting for our recreation.
3455 2006-09-26  Chris Toshok  <toshok@ximian.com>
3457         * Control.cs (ControlCollection.Remove): reinstate the
3458         value.Hide() call as suggested in bug #79294.
3460 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
3462         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
3463         coordinates (versus a relative move).
3465 2006-09-26  Chris Toshok  <toshok@ximian.com>
3467         * Control.cs: rework child recreation a little bit.  It turns out
3468         that we race between the DestroyNotify the WM_DESTROY message.  If
3469         the parent gets its DestroyNotify before the child gets the
3470         WM_DESTROY message, the child ends up not recreating (since the
3471         parent finishes its recreation on DestroyNotify, and the child
3472         checks ParentIsRecreating.)
3474         So, instead we store off a list of all the child controls which
3475         need to be recreated when the parent control starts to recreate
3476         itself.  Then, when child controls get their WM_DESTROY message we
3477         check to see if they're in the parent's pending recreation list,
3478         and if so, we recreate.  This removes all dependency on ordering
3479         from the code and fixes the initial MonoCalendar upgrade dialog.
3480         
3481 2006-09-26  Jackson Harper  <jackson@ximian.com>
3483         * TextControl.cs: Use the Line to get the length of the line,
3484         since soft line breaks can change the end line.
3486 2006-09-26  Chris Toshok  <toshok@ximian.com>
3488         * Control.cs (ControlCollection.AddImplicit): don't add the
3489         control again if it's already in one of our lists.  This keeps us
3490         from adding controls over and over again for comboboxes when their
3491         handle gets recreated (as the combobox adds implicit controls in
3492         OnHandleCreated).  Fixes the X11 errors in bug #79480.
3494 2006-09-26  Jackson Harper  <jackson@ximian.com>
3496         * TextControl.cs: When deleting characters make sure that any
3497         orphaned zero lengthed tags get deleted.
3498         - Fix ToString for zero lengthed tags.
3500 2006-09-25  Jackson Harper  <jackson@ximian.com>
3502         * TextControl.cs: When getting a tag at the location there can be
3503         multiple tags at the same spot, these are 0-lengthed tags that
3504         appear when extra formatting has been stuck in a location.  We
3505         need to pull out the last of these 0 lengthed tags.
3507 2006-09-25  Jackson Harper  <jackson@ximian.com>
3509         * TextControl.cs: Fix print out in debug method.
3510         * TextBoxBase.cs: When text is set bail if we are setting to the
3511         previous value.
3512         
3513 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
3515         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
3516           It is now possible to change the selected index in a FontXXXListBox
3517           with the up and down arrow keys from the FontXXXTextBoxes.
3518           Also, send the FontXXXTextBox mouse wheel event to the corresponding
3519           FontXXXListBoxes to match ms.
3521 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
3523         * SystemInformation.cs: Return a clone of the theme's MenuFont because
3524         anyone can dispose it, anytime. All other properties returns enums, 
3525         structs or basic types so they don't need such tricks.
3527 2006-09-22  Jackson Harper  <jackson@ximian.com>
3529         * XplatUI.cs:
3530         * XplatUIWin32.cs:
3531         * Clipboard.cs:
3532         * DataFormats.cs:
3533         * XplatUIOSX.cs:
3534         * XplatUIDriver.cs: Update interface to add a primary selection
3535         flag, so the driver can use the primary selection buffer if
3536         needed.
3537         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
3539         * RichTextBox.cs: We need to supply the data object to paste now
3540         (so we can choose to supply CLIPBOARD or PRIMARY).
3541         * TextBoxBase.cs: Supply data object to paste (see above).
3542         - Middle click uses the primary selection data object.
3543         
3544 2006-09-21  Chris Toshok  <toshok@ximian.com>
3546         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
3547         of SetWMStyles.  It's still a rat's nest and is largely
3548         order-dependent which I dislike immensely.  This also fixes the X
3549         button disappearing from toplevel forms.
3551 2006-09-21  Mike Kestner <mkestner@novell.com>
3553         * ListBox.cs: move Jordi's click/dblclick raising code to the
3554         mouse up handler.
3556 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3558         * ListBox.cs: Fixes 79450
3560 2006-09-21  Mike Kestner <mkestner@novell.com>
3562         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
3563         to deal with people updating the TreeNodeCollection after the tree
3564         is disposed.  "Fixes" 79330.
3566 2006-09-20  Jackson Harper <jackson@ximian.com>
3568         * TextControl.cs: Push the cursor record onto the undo stack
3569         before the delete action. This fixes 78651.
3571 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
3573         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
3574         CreateParams. Fixes 79329.
3576 2006-09-19  Chris Toshok  <toshok@ximian.com>
3578         * XplatUIX11.cs: a couple of blanket code massage passes to clean
3579         things up a bit.  First, get rid of the NetAtoms array (and the NA
3580         enum), and just embed the atoms as static fields.  Also, add a
3581         couple of functions (StyleSet and ExStyleSet) to clean up all the
3582         bitmask testing of styles.
3584         * X11Structs.cs: remove the NA enum, not needed anymore.
3585         
3586 2006-09-19  Chris Toshok  <toshok@ximian.com>
3588         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
3589         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
3590         added cleanup to get MessageBox titles appearing again, which were
3591         broken by my earlier fix for caption-less/ControlBox-less windows.
3593 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
3595         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
3596           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
3597           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
3598           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
3599           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
3600           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
3601           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
3602           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
3603           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
3604           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
3605           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
3606             Inital import.
3607         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
3608           ToolStripButton.cs: Stubs needed for above.
3609         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
3611 2006-09-15  Chris Toshok  <toshok@ximian.com>
3613         * XplatUIX11.cs:
3614         - make the MessageQueues hashtable Synchronized.
3615         
3616         - SendMessage: if the Hwnd is owned by a different thread, use the
3617         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
3618         thread.  Fixes bug #79201.
3620 2006-09-15  Chris Toshok  <toshok@ximian.com>
3622         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
3623         ControlBox == false, we disallow maximize/minimize/close.  If the
3624         form Caption is "" we also disallow move (and get rid of the Title
3625         decoration).  Unfortunately, regardless of how things are set,
3626         we're stuck with the Title and WM menu.
3628 2006-09-15  Chris Toshok  <toshok@ximian.com>
3630         * Application.cs: add locking around the static message_filters
3631         ArrayList, part of #79196.
3633 2006-09-15  Chris Toshok  <toshok@ximian.com>
3635         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
3636         Form.ControlBox == false, the window has no titlebar nor resize
3637         handles.  fixes bug #79368.
3639 2006-09-15  Chris Toshok  <toshok@ximian.com>
3641         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
3642         >= 0.  Fixes bug #79370.
3644 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
3645         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
3646         * Control.cs:
3647             Add properties: LayoutEngine, Margin, DefaultMargin.
3648             Add method: GetPreferredSize.
3649             Move layout logic from PerformLayout to layout engines. 
3651 2006-09-13  Chris Toshok  <toshok@ximian.com>
3653         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
3654         fix for #79326 broke #78718, so this change addresses that.
3656         - in SendWMDestroyMessages remove the call to
3657         CleanupCachedWindows, since we might be recreating the control and
3658         need to maintain the references to right Hwnd handles.  Also, set
3659         the zombie flag to true for each of the children in the hierarchy
3660         instead of calling hwnd.Dispose.  This will cause GetMessage to
3661         ignore all events for the window except for DestroyNotify.
3663         - In GetMessage, ignore messages except for DestroyNotify for
3664         zombie hwnds.
3665         
3666         * Control.cs: revert the is_recreating fix from the last
3667         ChangeLog.  It's definitely "right", but it breaks switching from
3668         an MDI form to a non-MDI form.  Will need to revisit that.
3670         * Hwnd.cs: add a zombie flag, which means "the
3671         client_window/whole_window handles are invalid, but we're waiting
3672         for the DestroyNotify event to come in for them".  Set the flag to
3673         false explicitly if setting WholeWindow/ClientWindow, and also
3674         when Disposing.
3675         
3676 2006-09-13  Chris Toshok  <toshok@ximian.com>
3678         * XplatUIX11.cs: rework window destruction slightly.
3680         - when destroying the windows associated with a control, we don't
3681         need 2 separate XDestroyWindow calls.  Just the one for the
3682         whole_window (or for client_window if whole_window is somehow
3683         IntPtr.Zero -- can this happen?) is enough.
3685         - reworked SendWMDestroyMessages slightly, so we always dispose
3686         the child control hwnd's after sending the messages.
3687         
3688         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
3689         the two places it was used (one was even using hwnd.Handle and the
3690         other hwnd.client_window.  ugh), adding another call in
3691         SendWMDestroyMessages.  We need this new call because now the
3692         DestroyNotify events in the queue will be ignored for the child
3693         controls (as their hwnd's were disposed, and the window id's
3694         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
3696         - this fixes bug #79326.
3698 2006-09-13  Chris Toshok  <toshok@ximian.com>
3700         * Control.cs: don't always set is_recreating to false at the end
3701         of RecreateHandle, since sometimes we're not done (and won't be
3702         until WndProc handles the WM_DESTROY message).  Also, set
3703         is_recreating to false in the WM_DESTROY handling code.  Part of
3704         the fix for bug #79326.
3706 2006-09-13  Miguel de Icaza  <miguel@novell.com>
3708         * X11DesktopColors.cs: Start the droppage of debugging messages.
3710         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
3712 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
3714         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
3716 2006-09-12  Chris Toshok  <toshok@ximian.com>
3718         * DataGrid.cs (get_ListManager): if the list_manager is null, try
3719         to create it using SetDataSource.  Fixes bug #79151.
3721 2006-09-11  Chris Toshok  <toshok@ximian.com>
3723         * XEventQueue.cs: add a DispatchIdle property.
3725         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
3726         either the queue is null, or the queue has DispatchIdle set to
3727         true.
3728         (DoEvents): set queue.DispatchIdle to false around the
3729         peek/translate/dispatch message loop in this method.  This keeps
3730         Application.Doevents from emitting idle events.  Part of the fix
3731         for #78823.
3733 2006-09-11  Chris Toshok  <toshok@ximian.com>
3735         * DataGrid.cs (set_DataSource): make this work for both the
3736         winforms/datagrid test and ReportBuilder.  It seems as though when
3737         we've created a ListManager (or maybe it's if we have a
3738         BindingContext?), when we set the DataSource it clears the
3739         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
3740         #79333.
3742 2006-09-11  Chris Toshok  <toshok@ximian.com>
3744         * XplatUIX11.cs: deal with queue being null, which happens in all
3745         the Clipboard functions.  Fixes one of the two problems mentioned
3746         in #78612.
3748 2006-09-11  Chris Toshok  <toshok@ximian.com>
3750         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
3751         button on various spots (including outside the menu) works closer
3752         to MS, and doesn't crash.  Fixes #79343.
3754 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
3756         * ListView.cs: Do not initialize item_sorter in init. To match MS,
3757         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
3758         and the internal comparer is set. When a new ListViewItemSorter is set,
3759         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
3760         was specified. No further processing is necessary if SortOrder is set
3761         to it's current value. If Sorting is modified to None, and View is
3762         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
3763         (either custom or our internal ItemComparer) to null, on 1.0 profile
3764         only set item_sorter to null if its our internal IComparer. If Sorting
3765         is modified to Ascending or Descending, then use our internal IComparer
3766         if none is set, and if the current IComparer is our internal one then:
3767         on 2.0 profile always replace it with one for new Sorting, and on 1.0
3768         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
3769         Enum.IsDefined to verify whether a valid View value is specified in
3770         its setter. Automatically sort listview items when listview is
3771         created. In Sort, do nothing if ListView is not yet created, or if
3772         no item_sorter is set (no Sorting was set, Sorting was explicitly set
3773         to None or ListViewItemSorter was set to null). Added Sort overload
3774         taking a bool to indicate whether the ListView should be redrawn when
3775         items are sorted (we use this in ListViewItemCollection to avoid double
3776         redraws). Modified our internal IComparer to take the sort order into
3777         account. In Add and AddRange methods of ListViewItemCollection, also
3778         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
3779         view), but use overload with noredraw option to avoid double redraw.
3780         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
3781         true when View is Tile, and do the same when attempting to set View to
3782         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
3783         for selected/checked indices, as it involves overhead when sorting is
3784         done while these collections are not used all that often. Instead
3785         we'll build the indices on demand. Modified IList implementation of
3786         CheckedIndexCollection to use public methods if object is int.
3787         Modified CheckedListViewItemCollection to hide checked items if
3788         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
3789         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
3790         IList implementation in SelectedIndexCollection to use public methods
3791         if object is int. Modified SelectedListViewItemCollection to hide
3792         selected items if listview is not yet created.
3793         * ListViewItem.cs: CheckedIndices list no longer needs to be
3794         maintained separately (see ListView changes). Also clone font, fixes
3795         test failure.
3797 2006-09-11  Mike Kestner  <mkestner@novell.com>
3799         * ComboBox.cs: if we are updating the contents of the currently
3800         selected index, refresh the control or the textbox selection.
3801         [Fixes #79066]
3803 2006-09-11  Mike Kestner  <mkestner@novell.com>
3805         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
3806         the 'specified' logic has been moved there.  This seems like a bug 
3807         in Control.cs, since our current SetBoundsCore completely ignores 
3808         the specified parameter.  Peter's commit seems to indicate that is 
3809         the way the MS control implementation works.  [Fixes #79325]
3811 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
3813         * XplatUI.cs: Set default_class_name to be composed
3814         of current domain id. This allows MWF to be loaded in multiple
3815         domains on Win32.
3817 2006-09-09  Miguel de Icaza  <miguel@novell.com>
3819         * X11Keyboard.cs: If we are unable to obtain the input method, do
3820         not call CreateXic to create the input context.   Should fix
3821         #78944/79276.
3823 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
3825         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
3826           Simplified gnome support by adding more pinvokes to get the
3827           icon for a file or mime type.
3829 2006-09-08  Jackson Harper  <jackson@ximian.com>
3831         * MenuAPI.cs: Deslect popup context menu items before closing the
3832         window, so that you don't see the previously selected item
3833         selected when you reopen the menu.
3834         * TextControl.cs: Update the cursor position even if we don't have
3835         focus.  This fixes typing in things like the ComboBox.  I'm not
3836         totally sure we should always set the visibility if we don't have
3837         focus, but couldn't find any corner cases where the cursor showed
3838         up when it shouldn't.
3840 2006-09-08  Chris Toshok  <toshok@ximian.com>
3842         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
3843         our arrays are length 256.  & 0xff before indexing.  Fixes the
3844         crash in bug #78077.
3845         
3846 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3848         * ThemeWin32Classic.cs: 
3849         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
3850         is true. Handle that check box too.
3852 2006-09-07  Chris Toshok  <toshok@ximian.com>
3854         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
3855         79244.
3857 2006-09-07  Chris Toshok  <toshok@ximian.com>
3859         * Control.cs: in set_BackColor only do the work if
3860         background_color != value.
3862         * XplatUIX11.cs: move the clearing of invalid areas (both client
3863         and nc) to the same block of code where we set (nc_)expose_pending
3864         to false.  That is, move it from PaintEventEnd to PaintEventStart,
3865         so things that cause invalidates from within OnPaint will trigger
3866         another call to OnPaint.  Fixes bug #79262.
3868 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
3870         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
3871         * FileDialog.cs: Fix typo
3873 2006-09-07  Jackson Harper  <jackson@ximian.com>
3875         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
3876         for tab pages if they have any.
3878 2006-09-06  Mike Kestner  <mkestner@novell.com>
3880         * Splitter.cs: use the "current" rect when finishing drag handle
3881         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
3883 2006-09-06  Mike Kestner  <mkestner@novell.com>
3885         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
3886         support offset splitters. [Fixes #79298]
3888 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
3890         * Mime.cs: Fixed a bug that could override the global mime type
3891           result.
3893 2006-09-05  Jackson Harper  <jackson@ximian.com>
3895         * TabControl.cs: Better calculation method for setting the slider
3896         pos. Prevents crashes on really wide tabs.
3897         - Draw Image on tab pages if an image list is used.
3899 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3901         * MonthCalendar.cs: When Font changes, the Size should be
3902         updated to fit the new font's space requirements.
3904 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
3906         * ListBox.cs: If the items are cleared with Items.Clear set
3907           top_index to 0.
3909 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3911         * MonthCalendar.cs: Handle arrow keys as input keys. Also
3912         fire DateChanged event instead of DateSelected event when
3913         the date was changed by keyboard interaction.
3915 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3917         * DateTimePicker.cs: Handle DateChanged for the associated
3918         month_calendar control, and set month_calendar.Font from 
3919         OnFontChanged method, as well as resize the height of the
3920         control when needed. Make PreferredHeight proportional.
3922 2006-09-01  Chris Toshok  <toshok@ximian.com>
3924         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
3925         properties.
3927         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
3929 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
3931         * FileDialog.cs: Set ClientSize instead of window size, to allow space
3932           for decorations (Fixes #79219)
3934 2006-09-01  Mike Kestner  <mkestner@novell.com>
3936         * ComboBox.cs: first stab at sorting plus some selection handling
3937         fixes to bring us more in line with MS behavior.  Also switches back
3938         to index based selection.  Alternative patches for index-based 
3939         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
3940         and latency@gmx.de on bug 78848.  I assume they were similar to this
3941         code I've had simmering in my tree forever.
3942         [Fixes #78848]
3944 2006-09-01  Chris Toshok  <toshok@ximian.com>
3946         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
3947         when setting list position guard against ending up with a -1 index
3948         (the other part of the fix for #78812).  Should probably make sure
3949         we don't need the analogous fix in the ItemDeleted case.
3951         * DataGrid.cs:
3952         - in SetDataSource, work around the fact that the way
3953         OnBindingContextChanged is invoked will cause us to re-enter this
3954         method.  I'll remove the hack once I investigate
3955         OnBindingContextChanged.
3957         - fix the logic in set_DataSource and set_DataMember (basically
3958         what to do if the other of the two is null.)
3959         
3960         - in OnListManagerItemChanged, we need to take into account the
3961         edit row when deciding whether or not to call RecreateDataGridRows
3962         (part of the fix for #78812).
3964 2006-09-01  Jackson Harper  <jackson@ximian.com>
3966         * Splitter.cs: Don't do anything if there is no control to affect
3967         (prevents us from crashing in weird tet cases).
3968         * TreeView.cs: Bounding box for the mouse movement reverting
3969         focus/selection back to previously selected node.  This matches
3970         MS, and makes the tree a lot more useable.
3971         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
3972         use clipping so they are not drawn.  This fixes when the control
3973         is set to have a transparent background, or if it was over an
3974         image.
3976 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
3978         * MimeIcon.cs: Improved handling for reading default icons when
3979           using gnome (2.16 made it necessary). Check and read svg icons
3980           first, then 48x48 and then 32x32 icons.
3982 2006-08-31  Chris Toshok  <toshok@ximian.com>
3984         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
3985         visible.
3987         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
3988         ProcessKeyPreview.  Fixes part of #77806.
3990         * DataGrid.cs: big patch.
3992         - revert the queueing up of DataSource/DataMember if inside
3993         BeginInit/EndInit calls.  That's not the way the datagrid achieves
3994         its delayed databinding.  Instead, call SetDataSource in
3995         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
3996         #78811.
3998         - Also, it wasn't mentioned in #78811, but the test case exhibits
3999         behavior that was lacking in our datagrid implementation - Columns
4000         that have mapping names that don't exist in the datasource's
4001         properties aren't shown.  Yuck.  To fix this I added the bound
4002         field to the column style, and basically any calculation to figure
4003         out anything about columns uses a loop to find the bound columns.
4004         still need to investigate if I can cache an array of the bound
4005         columns or if the indices must be the same.
4007         - When setting CurrentCell, we no longer abort if the cell being
4008         edited was in the add row.  This fixes the other part of #77806.
4010         - The new code also fixes #78807.
4011         
4012         * ThemeWin32Classic.cs: perpetrate the same disgusting
4013         column.bound field hack, and only render bound fields.
4015 2006-08-31  Chris Toshok  <toshok@ximian.com>
4017         * DataGridColumnStyle.cs: add bound field.  this field is true if
4018         the datasource has a property corresponding to the mapping name.
4020         * DataGridTableStyle.cs: set the bound field on the column styles
4021         depending on whether or not we have a column for that property.
4023 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
4025         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
4026           splitter control (fixes #79228)
4028 2006-08-31  Chris Toshok  <toshok@ximian.com>
4030         * DataGridColumnStyle.cs: we need to delay the assignment of
4031         property descriptor until the last possible moment due to the lazy
4032         databinding stuff in the datagrid.  Also, fix the exceptions
4033         thrown by CheckValidDataSource to match MS.
4035 2006-08-31  Jackson Harper  <jackson@ximian.com>
4037         * Form.cs: When activated select the active control, if there is
4038         no active control, we select the first control.
4039         * XplatUIX11.cs: If there is no focus control when we get a
4040         FocusIn event, find the toplevel form and activate it.  This
4041         occurs when you popup a window, it becomes the focus window, then
4042         you close that window, giving focus back to the main window.
4044 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4046         * MonthCalendar.cs: 
4047         * ThemeWin32Classic.cs: Cache Font in bold style, as well
4048         as StringFormat with Center alignments in MonthCalendar,
4049         instead of creating new ones when drawing the control. 
4050         Also, draw the month name in bold style.
4052 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
4054         * Control.cs:
4055           - PerformLayout(): It would seem MS performs the fill even if the 
4056             control is not visible (part of #79218 fix)
4057           - ResetBackColor(): Use the setter to reset the color, to allow
4058             overriders to catch the change.
4059         * Form.cs:
4060           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
4061           - CreateHandle(): dito (part of $79218 fix)
4062           - Don't set an icon if we have a dialog
4063         * ScrollableControl.cs:
4064           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
4065           - ScrollIntoView(): No need to scroll if control is already visible
4066             (resolves fixme and fixes #79218)
4068 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4070         * MonthCalendar.cs: Change proportions in SingleMonthSize
4071         to match the aspect of the original control.
4073 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
4075         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
4076           get updated when they get maximized.
4078 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
4080         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
4082 2006-08-29  Chris Toshok  <toshok@ximian.com>
4084         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
4086 2006-08-29  Jackson Harper  <jackson@ximian.com>
4088         * TreeView.cs: Need to track selected node and highlighted node,
4089         they aren't always the same thing, when the mouse is down on a
4090         node it is hilighted, but not selected yet.
4091         - Do the HideSelection stuff right
4092         - Need to focus on rbutton mouse down. And redraw selection when
4093         right click is mouse upped.
4095 2006-08-29  Mike Kestner  <mkestner@novell.com>
4097         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
4098         when SubItems.Count < Columns.Count.  [Fixes #79167]
4100 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
4102         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
4104 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
4106         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
4107           from X. Only send based on ConfigureNotify if we don't have the
4108           correct location in hwnd (if the window manager moved us)
4110 2006-08-28  Mike Kestner  <mkestner@novell.com>
4112         * ListView.cs: remove a TODO. 
4113         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
4114         [Fixes ListView part of #79166]
4116 2006-08-28  Mike Kestner  <mkestner@novell.com>
4118         * ListView.cs: move wheel handler to parent since it is focused
4119         instead of the item_control now.  [Fixes #79177]
4121 2006-08-28  Mike Kestner  <mkestner@novell.com>
4123         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
4124         when the control is focused. [Fixes #79171]
4126 2006-08-28  Mike Kestner  <mkestner@novell.com>
4128         * ListView.cs: size the item and header controls for empty and
4129         unscrollable views.
4130         * ThemeWin32Classic.cs: draw disabled backgrounds.
4131         [Fixes #79187]
4133 2006-08-28  Chris Toshok  <toshok@ximian.com>
4135         * Form.cs: remove unused "active_form" static field.
4137         * Hwnd.cs: lock around accesses to static windows collection.
4139         * Application.cs: lock threads in Exit ().
4141 2006-08-28  Chris Toshok  <toshok@ximian.com>
4143         * NativeWindow.cs: lock around accesses to window_collection.
4144         
4145 2006-08-28  Chris Toshok  <toshok@ximian.com>
4147         * Control.cs: err, fix this the right way, by locking on controls
4148         when using it.  not by making it synchronized.
4150 2006-08-28  Chris Toshok  <toshok@ximian.com>
4152         * Control.cs: make the static "controls" field synchronized, as it
4153         gets updated from multiple threads.
4155 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
4157         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
4158           Prevent other threads from exiting when calling thread sets quit state.
4159         * XEventQueue.cs: Added PostQuitState property
4161 2006-08-27  Chris Toshok  <toshok@ximian.com>
4163         * AsyncMethodData.cs: add a slot for the window handle.
4165         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
4166         window (the destination control's window, not the foster window).
4168         * Control.cs (BeginInvokeInternal): store the window's handle in
4169         the AsyncMethodData.
4170         
4172 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
4174         * XplatUIX11.cs:
4175           - PostQuitMessage: Removed resetting S.D display handle, we might have
4176             another loop started after calling PostQuitMessage (Fixes #79119)
4177           - Created destructor to reset S.D handle
4179 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
4181         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
4183 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4185         * TextControl.cs (Insert): Update the caret position even if we don't
4186           have a handle yet, just don't call the driver in that case.
4187         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
4188           to the end of the new selection text (Fixes #79184)
4190 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4192         * Form.cs (Activate): Only activate if the handle is created)
4193         * Control.c:
4194           - Mark window as invisible when it's disposed
4195           - Check if window handle is created when setting window visible, 
4196             instead of relying just on the is_created variable
4197           - Check if object is disposed when creating the control (Fixes #79155)
4199 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4201         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
4202           when allowing layout again. Otherwise we re-generate the anchoring 
4203           distance to the border again and actually alter what the user wanted
4204           This is ugly, it'd be better if we used DisplayRectangle instead of
4205           ClientRectangle for Control.UpdateDistances, but that causes us to
4206           have other problems (initial anchoring positons would be wrong)
4207           (Fixes #78835)
4209 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4211         * Control.cs:
4212           - The size and location setters shouldn't go directly to 
4213             SetBoundsCore, but to SetBounds, which triggers layout on the
4214             parent, then calls SetBoundsCore. (Related to fix for #78835)
4215           - SetBounds: Moved actual location update code into this function
4216             from SetBoundsCore, to match MS. Added call to PerformLayout if
4217             we have a parent (to trigger resizing of anchored parents if the 
4218             child size has changed (see testcase for #78835) 
4219         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
4220           new control code
4221         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
4223 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4225         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
4226           System.Drawing when a toplevel window gets closed; there might
4227           be other toplevel windows belonging to the same app (Fixes #78052)
4229 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
4231         * FileDialog.cs: After reading FileDialog settings from mwf_config
4232           use Desktop prefix only if a real folder doesn't exist anymore.
4233         * FontDialog.cs: Added char sets.
4234           It is now possible to select the font, size or style with the
4235           textboxes.
4237 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
4239         * PrintPreviewDialog.cs: Use assembly name constants.
4241 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4243         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
4244           scrollbar from whacking it's buttons)
4246 2006-08-24  Chris Toshok  <toshok@ximian.com>
4248         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
4249         in this patch (aggregating setting Left/Top/Width/Height to
4250         setting Bounds on the scrollbars), but the crux of the fix is in
4251         Recalculate, where we scroll by the remaining scroll_position if
4252         we're hiding a scrollbar.  The 2*$5 reward in the comment is
4253         serious.
4255 2006-08-24  Jackson Harper  <jackson@ximian.com>
4257         * MdiClient.cs:
4258         * MdiWindowManager.cs: If the form is made a non-mdi window we
4259         need to remove the form closed event so that closing forms works
4260         correctly.
4262 2006-08-24  Jackson Harper  <jackson@ximian.com>
4264         * Control.cs: Make IsRecreating internal so that the driver can
4265         check it
4266         - Temporarily remove the Hide when controls are removed, its
4267         making a whole bunch of things not work because visibility isn't
4268         getting reset elsewhere correctly
4269         * Form.cs: Need to do a full handle recreation when the mdi parent
4270         is set.
4271         * XplatUIX11.cs: If we are recreating handles don't dispose the
4272         HWNDs.  What was happening is the handles were being recreated in
4273         SendWMDestroyMessages, but then flow continued on in that method
4274         and destroyed the new handles.
4276 2006-08-23  Jackson Harper  <jackson@ximian.com>
4278         * Form.cs: MdiClient is always at the back of the bus
4279         * Control.cs: When the order of items in the collection is changed
4280         we need to reset the all_controls array
4281         - do the same sorta setup thats done when adding a control when a
4282         control is set on the collection.
4284 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4286         * TextBoxBase.cs (get_Text): Return an empty array if our document
4287           is empty (fixes #79052)
4289 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4291         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
4292           on WM_SYSCHAR messages (fixes #79053)
4294 2006-08-23  Chris Toshok  <toshok@ximian.com>
4296         * DataGrid.cs: fix flickering when scrolling vertically.
4298 2006-08-23  Chris Toshok  <toshok@ximian.com>
4300         * DataGrid.cs (EndEdit): only invalidate the row header when we
4301         need to.
4303 2006-08-23  Chris Toshok  <toshok@ximian.com>
4305         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
4306         methods.  fixes the flicker when scrolling around.
4308 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4310         * FileDialog.cs: Making sure the control is created before we get a 
4311           chance to use it with BeginInvoke (Fixes #79096)
4313 2006-08-23  Chris Toshok  <toshok@ximian.com>
4315         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
4316         width to use when painting the rows.
4318 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4320         * TextBoxBase.cs:
4321           - Throw ArgumentException if a negative value is passed to SelectionLength
4322           - Update the selection end if start is moved. end needs to be always
4323             after start. (Fixes #79095)
4324           - Track selection length; MS keeps the selection length even if start
4325             is changed; reset on all other operations affection selection
4327 2006-08-22  Jackson Harper  <jackson@ximian.com>
4329         * TreeView.cs: Make sure both scrollbars get displayed and sized
4330         correctly when the other bar is visible.
4331         - Use the original clip rectangle for checking if the area between
4332         the two scrollbars is visible, not the viewport adjusted clipping
4333         rectangle.
4335 2006-08-22  Jackson Harper  <jackson@ximian.com>
4337         * Binding.cs: We don't use IsBinding because it requires the
4338         control to be created, which really shouldn't be necessary just to
4339         set a property on the control.
4341 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4343         * ComboBox.cs: Some CB.ObjectCollection methods must throw
4344         ArgumentNullReferenceException when the argument is null.
4346 2006-08-21  Jackson Harper  <jackson@ximian.com>
4348         * Timer.cs: Track the thread that the timer is started in (NOT
4349         CREATED), this way messages for it will only be triggered on its
4350         queue.
4351         * XEventQueue.cs: Track the timers here, this makes timers per
4352         thread, like MS.
4353         * XplatUIX11.cs: The timers are moved to the XEventQueue.
4355 2006-08-19  Chris Toshok  <toshok@ximian.com>
4357         * XplatUIX11.cs: after further communication with pdb, we get the
4358         best of both worlds.  SetZOrder working for un-Mapped windows, and
4359         no X errors for un-mapped windows.
4361 2006-08-19  Chris Toshok  <toshok@ximian.com>
4363         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
4364         as it was causing pdn toolbars to not have the correct stacking.
4366 2006-08-18  Mike Kestner  <mkestner@novell.com> 
4368         * ListView.cs : guard against negative ClientArea.Width in scrollbar
4369         calculation.  Not sure why control should ever be setting a negative
4370         width though.  Fixes #78931.
4372 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4374         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
4375         null items in ObjectCollection class.
4376         * ListBox.cs.: Likewise.
4378 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
4380         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
4381           as the base method in ThemeWin32Classic should work fine.
4382           Fixed bug #78607.
4384 2006-08-18  Jackson Harper  <jackson@ximian.com>
4386         * Binding.cs: When validating if the value entered doesn't convert
4387         properly reset to the old value.
4388         * RadioButton.cs: Don't fire click when we get focus.
4390 2006-08-18  Jackson Harper  <jackson@ximian.com>
4392         * FileDialog.cs: Paint the selection on the directory combobox the
4393         same way as on MS. 
4395 2006-08-17  Jackson Harper  <jackson@ximian.com>
4397         * ErrorProvider.cs: Don't allow the error control to be selected.
4398         * Control.cs: Don't send the SetFocus messages, the control
4399         activation will do this, and if we do it blindly here validation
4400         does not work.
4402 2006-08-17  Jackson Harper  <jackson@ximian.com>
4404         * Control.cs:
4405         * ContainerControl.cs: Make validation events fire in the correct
4406         order.  TODO: For some reason the first validation event is not
4407         getting fired.
4409 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4411         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
4413 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4415         * ComboBox.cs : implement scroll wheel support for popped-down
4416         state. Fixes #78945. 
4418 2006-08-17  Jackson Harper  <jackson@ximian.com>
4420         * TreeView.cs: Specify treeview actions (old patch that didn't get
4421         committed for some reason).
4422         - Don't let the mouse wheel scroll us too far.  Just want to make
4423         the bottom node visible, not scroll it all the ways to the top.
4425 2006-08-17  Jackson Harper  <jackson@ximian.com>
4427         * XplatUIX11.cs: Mouse wheel events go to the focused window.
4429 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4431         * ComboBox.cs : don't do mouseover selection in simple mode.
4433 2006-08-16  Jackson Harper  <jackson@ximian.com>
4435         * Form.cs: Fire the closing events for all the mdi child windows
4436         when a window is closed.  If the cancel args are set to true, the
4437         main window still gets the event fired, but it doesn't not close.
4438         * MdiWindowManager.cs: Do this closing cleanup in a Closed
4439         handler, instead of when the button is clicked, so cancelling the
4440         close works correctly.
4441         * ComboBox.cs: Send the mouse down to the scrollbar.
4443 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4445         * ListBox.cs: When passing 'null' to SelectedItem,
4446         set SelectedIndex to -1, to unselect items. This is the
4447         observed behaviour in .Net.
4449 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
4451         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
4452           MS flags saying there won't be any. (fixes #78800)
4453         * Control.cs (HandleClick): Made virtual
4455 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
4457         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
4458           cultures. Fixed bug #78399.
4460 2006-08-16  Jackson Harper  <jackson@ximian.com>
4462         * Form.cs: Use the MdiClients MdiChildren property to access
4463         MdiChildren instead of creating the array from the child controls.
4464         * MdiClient.cs: Maintain a separate array of the mdi children, so
4465         that insertion order is maintained when the Z-order is changed.
4467 2006-08-16  Mike Kestner  <mkestner@novell.com> 
4469         * ListView.cs : add an ItemComparer and default to it for sorting.
4470         Fixes #79076, but sorting needs a complete overhaul to be compat with
4471         MS.
4473 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4475         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
4477 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4479         * Hwnd.cs (Mapped): Properly traverse the tree
4481 2006-08-15  Chris Toshok  <toshok@ximian.com>
4483         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
4484         pass manager.Current.GetType() to ParseData.  It has to be the
4485         property type.  So, hold off doing the ParseData until we're in
4486         SetPropertyValue where we know the type.  This fixes the crash in
4487         #78821 but the textbox is still empty.
4489 2006-08-15  Chris Toshok  <toshok@ximian.com>
4491         * DataGrid.cs:
4492         - when we're scrolling, only call Edit() again if the
4493         current cell is still unobscured. Fixes bug #78927.
4494         - when handling mousedown on a cell, ensure the cell is visible
4495         before calling Edit.
4496         - remove the properties from DataGridRow, and remove the
4497         DataGridParentRow class altogether.
4498         
4500 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4502         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
4503           fire OnTextChanged by ourselves. There's no point calling base,
4504           we don't set the base value anywhere else. Fixes #78773.
4506 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4508         * ListBox.cs: Call CollectionChanged when modifying
4509         an item from Items indexer, to update the actual items
4510         in the list box.
4512 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4514         * PrintDialog.cs: Small fixes for focus and a pair of checks,
4515         to match .Net behaviour.
4517 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4519         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
4521 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4523         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
4525 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4527         * MessageBox.cs: Prevent potential NRE exception.
4528         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
4530 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4532         * MessageBox.cs: Calculate the owner of a messagebox, also make
4533           it topmost. Fixes #78753
4535 2006-08-14  Chris Toshok  <toshok@ximian.com>
4537         * XplatUIX11.cs: A couple of fixes so that metacity will let us
4538         programmatically move windows.  first, set the PPosition hint as
4539         well as the USPosition hint.  Second include some code from pdb
4540         that sets the window type to NORMAL when we set the transient for
4541         hint.  This is because, in the absence of a window type, metacity
4542         thinks any window with TransientFor set is a dialog, and refuses
4543         to let us move it programmatically.  fascists.
4545 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4547         * XplatUIX11.cs: When setting normal hints, take into consideration
4548           an different hints previously set so we don't delete them (fixes #78866)
4550 2006-08-12  Chris Toshok  <toshok@ximian.com>
4552         * ToolBarButton.cs: make Layout return a boolean, if something to
4553         do with the button's layout changed.
4555         * ToolBar.cs:
4556         - add another parameter to Redraw, @force, which all existing
4557           calls set to true.
4558         - make the Layout function return a boolean which is true if the
4559           layout has actually changed.  Redraw now uses this (and @force)
4560           to determine when to invalidate.  At present the only place
4561           where @force can be false is the call from OnResize, when
4562           background_image == null.  So, resizing a toolbar when the
4563           layout doesn't change results in no drawing.
4565 2006-08-12  Chris Toshok  <toshok@ximian.com>
4567         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
4568         the VScrollBar and HScrollbar reversed.  oops.
4570         * DataGrid.cs: fix the logic that assigns sizes to the implicit
4571         scrollbars.  we were assigning them twice (once in
4572         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
4573         therefore causing two scrollbar resizes (and redraws?) to happen
4574         per grid resize.
4576 2006-08-12  Chris Toshok  <toshok@ximian.com>
4578         * ToolBarButton.cs: redraw the entire button if the theme tells us
4579         to.
4581         * Theme.cs: add ToolBarInvalidateEntireButton.
4583         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
4584         buttons, just the border.
4586         * ThemeNice.cs: redraw the entire toolbar button since we need to
4587         draw the highlight image.
4589         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
4590         we need to redraw the entire button (not just the border).
4592 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4594         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
4595           for vertical bars. Fixes the mismatches shown by #78513
4597 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
4599         * FileDialog.cs: If a saved/remembered path doesn't exist
4600           anymore, fall back to "Desktop".
4602 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4604         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
4605           parent. It's apparently legal to not have one
4606         * XplatUIX11.cs:
4607           - SetZOrder: Don't try to set Z-Order on an unmapped window
4608           - CreateWindow: 0,0 are legal coordinates for a window. don't move
4609             it unless the coordinates are negative
4611 2006-08-10  Mike Kestner  <mkestner@novell.com>
4613         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
4614         when setting to null per msdn docs.  Fixes #78854.
4616 2006-08-10  Chris Toshok  <toshok@ximian.com>
4618         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
4619         flickering by setting a clip rectangle on the Graphics when we
4620         need to redraw just a particular menuitem.  Also, rename "OnClick"
4621         to "OnMouseDown" to reflect what it actually is.
4622         
4623         * Form.cs: track the OnMouseDown change.
4625 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
4627         * CommonDialog.cs: Properly inherit the CreateParams from the form
4628           and only change what we need. Fixes #78865
4630 2006-08-10  Chris Toshok  <toshok@ximian.com>
4632         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
4633         flickering in flat mode (and most of the flickering in general) by
4634         only invalidating the button border (and not the entire rectangle)
4635         when the state changes.  A couple of cases still flicker:
4636         ToggleButtons, and the dropdown arrow case when the user mouse
4637         ups.
4639 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
4641         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
4642           for german keyboards. Numlock state shouldn't affect the behaviour
4643           of the Del key. Fixes bug #78291.
4645 2006-08-10  Chris Toshok  <toshok@ximian.com>
4647         * ListControl.cs: remove the items.Clear line from BindDataItems,
4648         as this is the first thing done by both subclasses in their
4649         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
4650         passed -1, refresh the list.  This gets databinding working when
4651         the datasource is set on the list before the datasource is
4652         populated (as in wf-apps/ReportBuilder.)
4654         * ComboBox.cs: remove the argument to BindDataItems.  This call
4655         should really go away, and be initiated by the ListControl code.
4657         * ListBox.cs: same.
4659 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4661         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
4662           if no data is in the document when the control is displayed
4664 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
4666         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
4667           yes (fixes #78806)
4668         * TextControl.cs: 
4669           - PositionCaret: Allow positioning of caret but don't call methods 
4670             requiring a handle if the window isn't created yet
4671           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
4672           - owner_HandleCreated: Don't position the caret, just update it's 
4673             location. User might have already set a different position
4675 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4677         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
4678           windows. Screws up the returned coordinates for child windows. 
4679           Fixes #78825. I'm hoping this doesn't break something, since the
4680           code was explicitly put in 8 months ago, but no bug was attached.
4681           Menus still seem to work properly.
4683 2006-08-08  Chris Toshok  <toshok@ximian.com>
4685         * DataGrid.cs: make BeginInit/EndInit actually do what they're
4686         supposed to do - delay data binding until the EndInit call.  Also,
4687         make the table style collection's CollectionChangeAction.Refresh
4688         work properly.
4690         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
4691         (with action = Refresh) when a consituent table's MappingName is
4692         changed.
4694 2006-08-08  Chris Toshok  <toshok@ximian.com>
4696         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
4697         Invalidate, since changing the text can change the size of the all
4698         toolbar buttons.
4700 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4702         * Form.cs (AddOwnedForm): Still need to add the form to our listif
4703           we don't have it yet
4705 2006-08-08  Chris Toshok  <toshok@ximian.com>
4707         * PrintControllerWithStatusDialog.cs: don't .Close() the status
4708         dialog, as this causes X errors later on, since we actually
4709         destroy the window.  Instead, .Hide() it.
4711 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4713         * ComboBox.cs: Added focus reflection for popup window
4714         * XplatUIX11.cs: 
4715           - Removed transient setting for non-app windows for now, not sure it
4716             was needed
4717           - Fixed logic checking if we have captions when deciding 
4718             override_redirect, WS_CAPTION is two bits and a 0 check was not
4719             sufficient
4720           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
4721             complicated
4722         * Form.cs: 
4723           - AddOwnedForm: Don't just add the form to the list, call the property
4724             to ensure the driver is informed about the ownership as well
4725           - CreateHandle: Set the TopMost status in the driver if we have an owner
4726         * XplatUI.cs: Fixed debug statement
4728 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
4729         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4730           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
4731           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
4732           TrackBarRenderer.cs: Make constructor private.
4733         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
4734         * ProfessionalColorTable.cs: Make properties virtual.
4736 2006-08-06  Duncan Mak  <duncan@novell.com>
4738         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
4739         is not changing.
4741 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4742         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4743           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
4744           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
4745           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
4746           Initial import of new 2.0 classes.
4748 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4749         * Application.cs: Add 2.0 VisualStyles properties.
4751 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4752         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4753           XplatUIX11.cs: Create property to allow access to existing private
4754           variable "themes_enabled"
4756 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4758         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
4759         file size, as otherwise our class libraries fail using windows. Fixes
4760         bug #78759.
4762 2006-08-04  Jackson Harper  <jackson@ximian.com>
4764         * Form.cs:
4765         * XplatUIX11.cs: Move the toolwindow window manager creation into
4766         the X11 driver, this way on win32 we can let windows create/handle
4767         the toolwindows.
4769 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4771         * PrintDialog.cs: Remove some redundant checks, add some others,
4772         clean some code, and move the focus to the text boxes when the
4773         values are incorrect.
4775 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
4777         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
4779 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4781         * NumericUpDown.cs: Setting the Minimum and Maximum is now
4782           handled correctly. Fixes bug #79001.
4784 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4786         * PrintDialog.cs: The "Copies" numeric up down must have
4787         set the Minimum property to 1; only if the value is bigger
4788         than 1, activate "Collate" check box. This is the behaviour of .Net.
4789         Also modify the Document elements only if it is not null.
4791 2006-08-03  Jackson Harper  <jackson@ximian.com>
4793         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
4794         length. (We have a larger array then actual node count).
4795                 
4796 2006-08-03  Jackson Harper  <jackson@ximian.com>
4798         * ComboBox.cs: Don't show selection by default.
4799         - The SelectAll isn't needed here, since the focus code should do
4800         that
4801         - DDL style lists to manual selection drawing, so when they
4802         get/lose focus they have to invalidate.
4804 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
4806         * TextBoxBase.cs: Don't always show all selections by default.
4808 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
4809         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
4810           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
4811           Fixed various typos.
4813 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4815         * Control.cs: Removing the controls in a ControlCollection with
4816           Clear now hides the controls as expected. Fixes bug #78804. 
4818 2006-08-03  Jackson Harper  <jackson@ximian.com>
4820         * Control.cs: Revert previous focus patch, it breaks reflector.
4822 2006-08-03  Jackson Harper  <jackson@ximian.com>
4824         * ComboBox.cs: Cleanup selection and focus with the combobox.
4825         This also eliminates some duplicated keyboard code, since now
4826         everything is handled by the main class.
4827         - Make list selection work on mouse up instead of down, to match
4828         MS.
4830 2006-08-02  Jackson Harper  <jackson@ximian.com>
4832         * Control.cs: Setting focus needs to go through the whole
4833         selection mechanism.
4835 2006-08-02  Chris Toshok  <toshok@ximian.com>
4837         * PrintPreviewDialog.cs: change MinimumSize to use
4838         base.MinimumSize so it works.
4840 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
4842         * TextControl.cs:
4843           - UpdateCaret: Added sanity check in case caret isn't defined yet
4844           - Line.Delete: Now updating selection and caret markers if we're
4845             transfering a node (Properly fixes #78323)
4846           - SetSelectionEnd: Added sanity check
4847         * TextBoxBase.cs: Removed broken attempt to fix #78323
4849 2006-08-01  Chris Toshok  <toshok@ximian.com>
4851         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
4852         Close() call is handled in Form, not here.
4854 2006-08-01  Chris Toshok  <toshok@ximian.com>
4856         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
4857         layout/rendering.
4859         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
4860         for sizes < 100% zoom.  The code now aggressively attempts to keep
4861         from calling document.Print (), and tries not to use the scaling
4862         g.DrawImage whenever possible (it still does if you scale to >
4863         100%, since usually that involves huge images).
4865         * PrintPreviewControl.cs: hook up the close button.
4867 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
4868         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
4869           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
4870           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
4871           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
4872           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
4873           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
4874           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
4875           Removed [Serializable] for 2.0 Event Handlers.
4877 2006-07-31  Jackson Harper  <jackson@ximian.com>
4879         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
4880         * TextControl.cs: Uncomment out the body of this method.
4882 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
4884         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
4885           standard cursors.
4887 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4889         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
4890           that embed TextBox and need selections visible even if textbox is not
4891           focused to enforce that behaviour.
4892         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
4893           selection drawing
4895 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4897         * TextControl.cs:
4898           - Added new SetSelectionStart/SetSelectionEnd overloads
4899           - Fixed viewport width assignment to be accurate
4900           - Adjusted alignment line shift calculations to allow cursor on right
4901             aligned lines to be always visible at the right border (like MS)
4902         * TextBoxBase.cs:
4903           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
4904           - TextBoxBase_SizeChanged: recalculating canvas on size changes
4905           - CalculateScrollBars: Use ViewPort size instead of window size, to
4906             properly consider space occupied by the border and scrollbars 
4907             (Fixes #78661)
4908           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
4909             calculations; no longer leaves artifacts
4910           - CaretMoved: Adjusted window scrolling to match MS and fixed several
4911             calculation bugs (Still missing right/center align calculations)
4913 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
4915         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
4916           use of both scroll rect and clip rect, as they do the same.
4918 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4920         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
4921           in the event handler (fixes #78912)
4923 2006-07-31  Chris Toshok  <toshok@ximian.com>
4925         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
4926         grid.ListManager.Count, since grid.ListManager might be null.
4927         This of course begs the question "why are we drawing rows for a
4928         grid with no list manager (and therefor no rows)?"  Fixes the
4929         crash in bug #78929.
4931 2006-07-31  Chris Toshok  <toshok@ximian.com>
4933         * RelatedPropertyManager.cs: Don't always chain up to the parent
4934         ctor.  instead, call SetDataSource if the parent's position is !=
4935         -1.  Fixes the crash in #78822.
4937 2006-07-31  Chris Toshok  <toshok@ximian.com>
4939         * DataGrid.cs (get_ListManager): use field instead of property
4940         accessors for datasource and datamember.
4941         (RowsCount): make internal again.
4942         (OnMouseDown): end edits before resizing columns/rows.
4943         (OnMouseUp): restart edits after resizing columns/rows.
4945 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
4947         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
4948           This fixes the situation where the last set cursor is displayed
4949           whenever the mouse is over scrollbars.
4951 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4953         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
4954         Document properties, as well as initial values.
4956 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
4958         * XplatUIWin32.cs (SetBorderStyle): Setting both border
4959           and ClientEdge results in a 3-pixel border, which is
4960           wrong.
4962 2006-07-28  Jackson Harper  <jackson@ximian.com>
4964         * TreeNodeCollection.cs: Fix the clear method.
4965         - Fix the Shrink also
4967 2006-07-27  Jackson Harper  <jackson@ximian.com>
4969         * TreeView.cs: Make sure the visible order is computed when we
4970         attempt to size the scrollbars (for trees that mess with the
4971         scrolling when they shouldn't.
4972         - Make sure to give the scrollbars valid values.
4974 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4976         * XplatUIX11.cs: Move motion compression code to where it
4977           has less performance impact
4979 2006-07-26  Jackson Harper  <jackson@ximian.com>
4981         * UpDownBase.cs: When the control is selected make the child
4982         controls non selectable, so that a click on them won't do a
4983         focus/unfocus cycle.
4984         - Don't give focus to the text box when the spinner is selected.
4985         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
4987 2006-07-26  Chris Toshok  <toshok@ximian.com>
4989         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
4990         satisfied with this solution.  If the bitmaps are small, we should
4991         just cache them in the PrintPreviewDialog and draw them here.
4992         Also, the layout is broken for the 2-up and 3-up cases.
4994         * Theme.cs: add PrintPReviewControlPaint.
4996         * PrintPreviewDialog.cs: first pass implementation.
4998         * PrintPreviewControl.cs: first pass implementation.  No
4999         scrollbars yet.
5001         * PrintDialog.cs: only validate fields if that particular portion
5002         of the UI is enabled.  Also, set the document's controller to a
5003         PrintControllerWithStatusDialog wrapping the document's print
5004         controller.
5006         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
5007         bring up a SaveFileDialog (i hope we don't want to match the
5008         behavior of the crappy windows file entry) and set the
5009         PrinterSettings.PrintFileName accordingly.
5011 2006-07-26  Jackson Harper  <jackson@ximian.com>
5013         * ContainerControl.cs: Add a field that disables auto selecting
5014         the next control in a container when the container is activated.
5015         * UpDownBase.cs: Don't select the text box when the up down is
5016         selected.
5018 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
5020         * XEventQueue.cs: Added methods for peeking (used for compression
5021           of successive events)
5022         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
5023           mouse move events (fixes #78732)
5025 2006-07-25  Jackson Harper  <jackson@ximian.com>
5027         * UpDownBase.cs: Use an internal class for the textbox so that we
5028         can control focus.  the updown control should always have focus,
5029         if either the text area or the buttons are clicked.
5030         - Send the key messages to the textbox, since it never actually
5031         has focus
5032         - Activate and decativate the textbox caret.
5034 2006-07-24  Jackson Harper  <jackson@ximian.com>
5036         * Control.cs: Use the directed select when selecting a control,
5037         this way the container controls override will get called and the
5038         whole ActiveControl chain will get triggered.  TODO: probably need
5039         to make sure this gets done everywhere instead of the old
5040         Select(Control).
5041         * ContainerControl.cs: Implement the directed Select method to
5042         find and activate the correct child control.    
5043         
5044 2006-07-22  Mike Kestner  <mkestner@novell.com>
5046         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
5047         menu handling code so that clicks without a grab work too.
5048         [Fixes #78914]
5050 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
5052         * FileDialog.cs: Enable the BackButton when dirstack has one element.
5053           Added some small optimizations.
5055 2006-07-21  Matt Hargett  <matt@use.net>
5057         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
5059 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
5061         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
5062           tests pass and match MS in some strange border cases.
5064 2006-07-21  Chris Toshok  <toshok@ximian.com>
5066         * ThemeWin32Classic.cs: handle drawing of the relation links and
5067         parent row buttons.
5069         * Theme.cs: change args to DataGridPaintParentRow.
5071         * DataGrid.cs: Don't use controls for the relation links and
5072         parent buttons, so we have to handle all their interactions in
5073         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
5074         when we're navigating through child tables, so we can reinstate
5075         selection, expanded state, current cell, etc.
5077 2006-07-20  Chris Toshok  <toshok@ximian.com>
5079         * ToolBar.cs: When we redraw a button, for whatever reason,
5080         there's no reason to redraw the entire toolbar.  Also, don't call
5081         Control.Refresh from within Redraw, as it's much heavier than
5082         Invalidate (which is really what we want).
5084 2006-07-20  Chris Toshok  <toshok@ximian.com>
5086         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
5087         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
5088         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
5089         traces from within a debug IBindingList datasource
5090         (in mono/winforms/datagrid) for *days*, I've finally gotten things
5091         to work in a similar fashion.
5093 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5095         * ListBox.cs: Don't call Sort () when setting 
5096         the Sorted property to false (avoid an unnecessary sort).
5098 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5100         * ListControl.cs: DataSource should throw an ArgumentException
5101         instead of a normal exception when the argument is not of the 
5102         correct type.
5104 2006-07-20  Mike Kestner  <mkestner@novell.com>
5106         * Control.cs: add InternalPreProcessMessage to allow us to steal
5107         key events before MWF gets its paws on them.  Adapted from a
5108         suggestion by eno.
5109         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
5110         up/down/left/right navigation. Override the new internal control
5111         method to steal the events since they never make it to WndProc.
5112         * ToolBarButton.cs: don't worry about pushed when setting hilight
5113         since the drawing code prefers pushed to hilight. Invalidate on 
5114         Hilight changes. Fixes #78547 and #78525.
5116 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
5118         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
5119           the canvas size. Fixes #78868
5121 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
5123         * Splitter.cs: Track requested split position until first layout
5124           is performed. Fixes #78871
5126 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
5128         * Application.cs: Removed code that forces 1.x for the version
5129           number if the version started with 0. Not sure why that code was
5130           there and I couldn't find any bugs that indicated we needed it.
5131           Fixes #78869
5133 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
5135         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
5136           ResetDefaults(), just write some output to the console until it's
5137           implemented. Fixes bug #78907 for now. Eliminated two warnings.
5139 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
5141         * PropertyGridView.cs: set StartPosition of drop down forms
5142         so they appear in correct initial spot.  Fixes #78190.
5144 2006-07-19  Mike Kestner  <mkestner@novell.com>
5146         * ThemeWin32Classic.cs: use parent background color when drawing
5147         flat toolbars.  Restructure the conditionals to make sure non-flat
5148         non-Divider toolbars are filled too.  Fixes #78837.
5150 2006-07-19  Mike Kestner  <mkestner@novell.com>
5152         * ListBox.cs: Sort on collection changes even if the handle
5153         isn't created yet.  Fixes #78813.
5155 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5157         * ListControl.cs: DisplayMember should never be null,
5158         and now we assign String.Empty when null is passed to it (this
5159         is the .Net way).
5161 2006-07-17  Mike Kestner  <mkestner@novell.com>
5163         * ListViewItem.cs: restructure Font and subitem Font handling 
5164         to hold a specific font and refer back to owner on null.
5165         Fixes #78761.
5167 2006-07-17  Mike Kestner  <mkestner@novell.com>
5169         * ToolBar.cs: bandaid for side-effect of previous patch which was
5170         discarding explicit heights for non-AutoSize toolbars.  Need to
5171         extend my format tester to deal with AutoSize=false. Fixes #78864.
5173 2006-07-15  Jackson Harper  <jackson@ximian.com>
5175         * LabelEditTextBox.cs:
5176         * TreeView.cs: Use a new LabelEdit class for node editing, this
5177         class automatically 'closes' itself when it gets the enter key or
5178         loses focus.
5179         - Use the client rectangle when setting the trees scrollbars, so
5180         border style is taken into account.
5181         
5182 2006-07-14  Jackson Harper  <jackson@ximian.com>
5184         * TreeNode.cs:
5185         * TreeView.cs: Make the editing work similar to MSs, firing the
5186         events correctly and ending edits correctly.
5188 2006-07-14  Mike Kestner  <mkestner@novell.com>
5190         * ToolBarButton.cs:
5191         * ToolBar.cs: layout restructuring and redraw enhancements to support
5192         formatting changes gracefully, like setting TextAlign, ImageList, 
5193         ButtonSize, and Appearance.  Handles explicit button sizing quirks
5194         of the MS controls.  Things like flat toolbars ignoring button size
5195         but becoming constant sized at the largest button's size.  Normal
5196         toolbars with an image set cannot be shrunk smaller than the image,
5197         but text can be clipped/ignored.
5198         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
5199         is zero.  Seems like DrawString should be smart enough to not put
5200         anything on screen though. Also trim labels and ellipsize at the char
5201         boundary, not word.
5202         Fixes #78711 and #78483.
5204 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5206         * FolderBrowserDialog.cs: Disable "New Folder" button and
5207           "New Folder" contextmenu menuitem if a folder like "My Computer"
5208           is selected.
5210 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5212         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
5213         * FolderBrowserDialog.cs:
5214           - Use MWFConfig to store and read size and position settings
5215           - Added code to create a new folder (button or context menu).
5216             Use TreeView labeledit to change the name of the new folder.
5218 2006-07-14  Jackson Harper  <jackson@ximian.com>
5220         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
5221         when the tree is scrolled we end editing.
5223 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5225         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
5226           Down arrows
5228 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
5230         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
5231         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
5232         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
5233         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
5234         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
5235         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
5236         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
5237         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
5238         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
5239         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
5240         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
5241         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
5242         ListViewItemSelectionChangedEventHandler.cs,
5243         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
5244         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
5245         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
5246         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
5247         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
5248         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
5249         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
5250         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
5251         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
5252         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
5253         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
5254         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
5255         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
5256         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
5257         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
5258         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
5259         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
5260         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
5261         WebBrowserNavigatingEventHandler.cs, 
5262         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
5264 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
5266         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
5267         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
5268         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
5269         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
5270         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
5271         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
5272         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
5273         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
5274         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
5275         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
5276         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
5277         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
5278         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
5279         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
5280         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
5281         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
5282         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
5283         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
5284         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
5285         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
5286         ListViewItemStates.cs, MaskFormat.cs: Added
5288 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
5290         * PropertyGridView.cs: Fix keyboard navigation of drop down.
5291         Patch from eno for bug 78558.
5292         
5293 2006-07-13  Jackson Harper  <jackson@ximian.com>
5295         * TreeView.cs: When an edit is finished make sure that the
5296         selected node is visible.
5297         - When setting the top/bottom use the scrollbars is_visible, so
5298         everything will be set correctly even if the tree isn't visible
5299         yet.
5301 2006-07-13  Jackson Harper  <jackson@ximian.com>
5303         * ComboBox.cs: Revert the item->index part of my previous patch.
5304         * TreeView.cs: Use LostFocus instead of Leave for detecting when
5305         the edit box has lost focus (duh).
5306         - Just make the edit box not visible when we get return, that will
5307         take the focus, which will call EndEdit
5308         * TreeNode.cs When we start editing, notify the treeview.
5310 2006-07-12  Jackson Harper  <jackson@ximian.com>
5312         * ComboBox.cs: Clear out old items before setting the item list.
5313         This prevents databound controls from having their items added
5314         twice.
5315         - Switch the combobox to use indices whereever possible instead of
5316         using Item's.  This allows usto navigate through lists that have
5317         more then one item with the same string value (ie a, b, b, a).
5318         - Scroll the listboxes scrollbar when a non visible item is
5319         highlighted
5320         - Allow keypress to cycle through all the possible values. For
5321         example if you have b1, b2, b3 and hold down the B key all the
5322         values will be cycled through.
5323         
5324 2006-07-12  Jackson Harper  <jackson@ximian.com>
5326         * TextBoxBase.cs:
5327         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
5328         this using the internal methods.
5329         * Control.cs: Add OnGotFocusInternal.  A new method that allows
5330         controls to "override" OnGotFocus and change focus behavior if
5331         needed.
5332         - Same thing for LostFocus
5333         * ComboBox.cs: Pass off focus to the text control properly.
5335 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
5337         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
5338         * FolderBrowserDialog.cs: Almost a complete rewrite.
5339           - Better support for Environment.Specialfolders
5340           - Added support for MWFVFS
5341           - Made setting SelectedPath work
5343 2006-07-12  Jackson Harper  <jackson@ximian.com>
5345         * Control.cs: Optimze getting all the controls.
5347 2006-07-11  Jackson Harper  <jackson@ximian.com>
5349         * ContainerControl.cs: Override SETFOCUS in the container control,
5350         so that it is not selected on mouse click.
5352 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
5354         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
5355           Hopefully we will have a better way once all of focus is complete.
5357 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
5359         * ThemeWin32Classic.cs: Commented out some debug code and fixed
5360           a compile error with csc.
5362 2006-07-11  Jackson Harper  <jackson@ximian.com>
5364         * Control.cs: When hiding a control only select the next control
5365         if the current control was focused.
5366         - Don't handle enter/leave when setting/killing focus, this is
5367         done by the container control.
5368         - Remove is_selected, it's not needed anymore.
5369         - Add utility methods for selecting a child control, and for
5370         firing the Enter/Leave events.
5371         * ContainerControl.cs: When a control is activated fire the
5372         enter/leave events.
5373         - Don't wrap when processing the tab key, so that focus can be
5374         moved outside of the container.
5375         - Use the correct active control
5377 2006-07-11  Jackson Harper  <jackson@ximian.com>
5379         * ComboBox.cs: Remove some debug code that was blinding me.
5380         * UpDownBase.cs: These controls actually aren't implicit, they are
5381         visible to the user.
5383 2006-07-10  Chris Toshok  <toshok@ximian.com>
5385         * DataGrid.cs: move back to the is_adding boolean field.  god i
5386         hate this is_editing/is_adding/is_changing stuff.
5388 2006-07-10  Chris Toshok  <toshok@ximian.com>
5390         * DataGridTableStyle.cs: just check if the property type is bool.
5391         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
5392         Don't use CanRenderType.
5394         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
5395         if our text == NullText.  Remove CanRenderType.
5397         * DataGridBoolColumn.cs: nuke CanRenderType.
5399         * DataGrid.cs: reenable some code to end the current edit inside
5400         of set_CurrentCell.  This fixes the other 1.1.16 regression.
5401         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
5402         Also, remove the visible_row_count arg from CalcRowHeaders, since
5403         we don't need to worry about the actual height of the area.
5405 2006-07-10  Chris Toshok  <toshok@ximian.com>
5407         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
5408         mode, just return.
5410         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
5411         the real sense of the IsInEditOrNavigateMode property (true =
5412         navigate, false = edit).  Also, update OnKeyPress to reflect this.
5414         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
5415         column style exists, we still need to set its property descriptor
5416         to match up with our list manager.
5418 2006-07-10  Chris Toshok  <toshok@ximian.com>
5420         * ThemeWin32Classic.cs: implement the new row/header painting
5421         approach.  The parent row painting will likely go away and
5422         replaced with label controls, but the rest seems to work ok (and
5423         efficiently).
5425         * Theme.cs: change the way we draw datagrid rows.  we don't draw
5426         the row headers as a block now.  Instead we draw them in the
5427         normal draw-row loop.  Add some calls for drawing parent rows and
5428         relation rows.
5430         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
5431         a default table style.  Set the defaults from ThemeEngine.Current,
5432         not SystemColors.  Fix lots of misc issues with property setters.
5434         * DataGrid.cs: move loads of style information out of this class
5435         as it's being duplicated with DataGridTableStyle.  keep track of a
5436         special DataGridTableStyle for the properties we used to mirror
5437         here.  Switch all the style properties to access this table style
5438         instead of instance fields of this class.  Also add a internal
5439         class to represent parent rows (more needs to be stored here, like
5440         the selection state from the parent table, as well as the
5441         expansion state.)  Also, for datasources with relations, do the
5442         right thing for collapse/expand, and add support for the
5443         navigation/parent row buttons.
5445         Lastly, fix the crash in the 1.1.16 build.
5447         * GridTableStylesCollection.cs: make the explicit interface
5448         implementations call the class's methods as opposed to duplicating
5449         them.
5451         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
5452         0 so the text doesn't jump around when we move the cursor.
5454 2006-07-10  Jackson Harper  <jackson@ximian.com>
5456         * TextBoxBase.cs:
5457         * ListBox.cs: Match MS's ToString (this makes debugging focus
5458         stuff infinitely easier).
5460 2006-07-10  Jackson Harper  <jackson@ximian.com>
5462         * Control.cs (SelectNextControl): When checking the control's
5463         parent use this instead of ctrl.parent so that null can be passed
5464         to SelectNextControl. (I have unit tests for this).
5465         - Remove unused var.
5467 2006-07-10  Chris Toshok  <toshok@ximian.com>
5469         * CurrencyManager.cs: correct one regression, the removal of the
5470         finalType field.  Also, add a MonoTODO on CanAddRows, implement
5471         Refresh() correctly, and fix some event emission in
5472         ListChangedHandler.
5474 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5476         * FileDialog.cs: Don't use brackets for new folders if they exist
5477           under *nix. Instead use -(number of existing folders +1).
5479 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5481         * FileDialog.cs:
5482           - Fixed really nasty bug #78771
5483           - Don't block the whole GUI when reading directories with a lot of
5484             entries. Use an other thread instead and call BeginInvoke to
5485             update the ListView in MWFFileView
5487 2006-07-07  Chris Toshok  <toshok@ximian.com>
5489         * Control.cs (Dispose): release any Capture when disposing.
5491 2006-07-07  Chris Toshok  <toshok@ximian.com>
5493         * LinkLabel.cs (Select): if we chain up to the parent, set
5494         focused_index to -1 so we'll search for the first available link
5495         the next time the user tabs into us.  Also, if the direction is
5496         backward and focused_index == -1, start the search from the last
5497         element.
5499 2006-07-07  Chris Toshok  <toshok@ximian.com>
5501         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
5502         is beyond the end of the text, don't do anything.
5503         (CreateLinkPieces): set our ControlStyles.Selectable based on
5504         whether or not we have any links.
5505         (Link.Invalidate): use a loop instead of foreach.
5506         (Link.set_Start): null out owner.sorted_links so it'll be
5507         recreated by CreateLinkPieces.
5509 2006-07-06  Chris Toshok  <toshok@ximian.com>
5511         * LinkLabel.cs: revert the SetStyle change.
5513 2006-07-06  Chris Toshok  <toshok@ximian.com>
5515         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
5516         (OnEnableChanged): s/Refresh/Invalidate
5517         (OnGotFocus): if we have a focused index already, refocus it (so
5518         if we mouse out/in to the window it'll focus the right link).
5519         (OnKeyDown): move the tab handling out of here.
5520         (OnLostFocus): don't set focused_index to -1, so we can refocus it
5521         when we lose focus.
5522         (OnMouseDown): don't Capture here - Control handles it.  Also,
5523         focus the active link.
5524         (OnMouseUp): don't deal with Capture.
5525         (OnPaintBackgroundInternal): remove.
5526         (OnTextAlignChanged): CreateLinkPieces before calling the
5527         superclass's method.
5528         (OnTextChanged): call CreateLinkPieces before calling superclass's
5529         method.
5530         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
5531         move around.
5532         (Select): implement this, moving the selection between different
5533         links, and call parent.SelectNextControl if we don't have another
5534         link to focus in the given direction.
5535         (CreateLinkPieces): call Invalidate instead of Refresh.
5536         
5537 2006-07-06  Chris Toshok  <toshok@ximian.com>
5539         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
5540         new LinkLabel internals.
5542         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
5543         over pieces looking for active/focused/etc links.  also, deal with
5544         runs of text (and links) with embedded \n's in them, and use
5545         MeasureCharacterRanges instead of MeasureString to figure out the
5546         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
5547         two-step.
5549 2006-07-04  Jackson Harper  <jackson@ximian.com>
5551         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
5552         XKB or key auto repeat, do it manually.  Without key auto repeat,
5553         when a key is held down we get key press, key release, key press,
5554         key release, ... with auto repeat we get key press, key press, key
5555         press ..., and then a release when the key is actually released.
5557 2006-07-03  Jackson Harper  <jackson@ximian.com>
5559         * TabControl.cs:
5560         * ThemeWin32Classic.cs: Tabs do not obey normal background color
5561         rules, they are always control color regardless of the background
5562         color.
5564 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
5566         * FileDialog.cs: Added internal class MWFConfig.
5567           Removed Registry support and replaced it with support for the new
5568           MWFConfig class. See MWFConfig comments for more information.
5570 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
5572         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
5573           rectangle. Added some patches from eno from bug #78490 and fixed
5574           the arrow position for small up and down CPDrawScrollButtons.
5576 2006-06-30  Jackson Harper  <jackson@ximian.com>
5578         * InternalWindowManager.cs: Remove some debug code.
5579         * Form.cs: When an MdiParent is set to null, the window is
5580         "detatched" and becomes a normal window.
5581         * MdiClient.cs: Don't bring the new child form to the front until
5582         it is activated (setting it as active does this), this makes the
5583         previously active forms titlebar get redrawn as inactive.
5585 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
5587         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
5588           with later controls
5590 2006-06-29  Mike Kestner  <mkestner@novell.com>
5592         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
5593         arrow in keynav state.  Fixes #78682.
5595 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5597         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
5598           order (fixes #78393)
5600 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
5602         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
5603           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
5604           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
5605           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
5606           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
5607           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
5608           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
5609           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
5610           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
5611           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
5612           enumerations (FlagsAttribute, SerializableAttribute, added/removed
5613           values)
5615 2006-06-28  Mike Kestner  <mkestner@novell.com>
5617         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
5619 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5621         * PropertyGrid.cs,
5622           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
5623           item lines from other area (It also makes BackColor consistent and
5624           compatible with .NET). Fixed bug #78564.
5626 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
5628         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
5629         Patch from Eno for #78555.
5631 2006-06-27  Chris Toshok  <toshok@ximian.com>
5633         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
5635         * DataGridColumnStyle.cs: same.
5637         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
5638         
5639         * DataGridDrawingLogic.cs: nuke.
5641 2006-06-27  Chris Toshok  <toshok@ximian.com>
5643         * DataGridTableStyle.cs: clean up the constructors, and build the
5644         list of child relations for this table.  I have no idea if this is
5645         where we should be doing it (it probably isn't), but since we're
5646         already iterating over the properties..
5648         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
5649         struct and array for keeping track of row information, similar to
5650         what's shown in a hack on
5651         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
5653         * Theme.cs: be consistent about the naming of DataGrid methods,
5654         prefering ColumnWidths and RowHeights over columnsWidths and
5655         RowsHeights.
5657         * ThemeWin32Classic.cs: same, and also add support for variable
5658         sized rows (and the +/- expansion icons for related rows).
5660 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5662         * TextBoxBase.cs: Applied Eno's patch from #78660
5664 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5666         * Form.cs (ScaleCore): We don't want to scale our form if it's
5667           state is minimized or maximized, but we still need to scale our
5668           child windows. Also, added try/finally block to ensure layout
5669           gets reset (Fixes #78697)
5671 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5673         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
5675 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5677         * Form.cs: Fixed c+p error and added check to resize form if minimum
5678           size is bigger than current size (Fixes #78709)
5680 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
5682         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
5684 2006-06-26  Mike Kestner  <mkestner@novell.com>
5686         * ComboBox.cs: only do Keypress handling in the combo when there  
5687         are items in the collection. Fixes #78710.
5689 2006-06-26  Chris Toshok  <toshok@ximian.com>
5691         * Binding.cs: make this work bi-directionally.  also, clear up
5692         other mixups between Push/Pull Data (e.g. we're supposed to pull
5693         data when validating).
5695         * BindingManagerBase.cs: trim some fully qualified collection
5696         types.
5698         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
5700 2006-06-23  Chris Toshok  <toshok@ximian.com>
5702         * PropertyManager.cs: It appears (according to the unit tests)
5703         that PropertyManager doesn't use
5704         PropertyDescriptor.AddValueChanged to track propery value changes
5705         in its datasource, but uses the same scheme as Binding, where it
5706         looks for a <Property>Changed event and binds to it.
5708         Also, according to the docs, IsSuspended always returns false for
5709         a property manager with a non-null datasource.
5711 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
5713         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
5714           need to update the actual DialogResult. (Fixes #78613)
5716 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
5718         * Form.cs (ShowDialog): Release any captures before running the
5719           new message pump (fixes #78680)
5721 2006-06-22  Mike Kestner  <mkestner@novell.com>
5723         * ListView.cs: Layout column widths properly in details mode even 
5724         if HeaderStyle.None is set.  Fixes #78691.
5726 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
5728         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
5730 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
5732         * Control.cs (ContainsFocus): Using new driver method to get focused
5733           window, instead of trying to use internal tracking var, which can
5734           recursion issues (Fixes #78685)
5735         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
5736           XplatUIWin32.cs: Added GetFocus method to return focused window
5738 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5740         * ColorDialog.cs: when the mouse button is pressed inside the color
5741         matrix, don't let the cursor move out of it until the button is
5742         released, which is the behavior on windows. Changed 'colours' by
5743         'colors' to use the same word consistently.
5745 2006-06-21  Chris Toshok  <toshok@ximian.com>
5747         * DataGrid.cs: add in some basic navigation stuff (navigating to a
5748         child relation and back, using a stack).  Also, remove
5749         GetDataSource and the code that calls it - it's not needed.  Also,
5750         track CurrencyManager.ListName's removal.
5752 2006-06-21  Chris Toshok  <toshok@ximian.com>
5754         * CurrencyManager.cs: push some of the original type checking from
5755         BindingContext.CreateBindingManager to here, and remove some of
5756         the finalType stuff.  Need more tests to make sure I've got the
5757         ListName part right, and we might need more in SetDataSource.
5759         * PropertyManager.cs: add a ctor that takes just the datasource,
5760         and no property name.  Make SetDataSource work with a null
5761         property_name, and make Current return the data_source if the
5762         property descriptor is null.  this makes 'string foo = "hi";
5763         BindingContext[foo].Current' return "hi" as it should.
5765         * RelatedCurrencyManager.cs: make this code more generic - there's
5766         no reason the parent manager has to be CurrencyManager, and
5767         there's no reason to pass the DataRelation.  It suffices to use a
5768         BindingManagerBase and PropetyDescriptor.
5770         * RelatedPropertyManager.cs: make a similar change here.
5771         
5772         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
5773         flower I knew it could be.
5775 2006-06-20  Chris Toshok  <toshok@ximian.com>
5777         * PropertyManager.cs: the PropertyChangedHandler is invoked when
5778         data in the source has changed and we need to update the control,
5779         so s/PullData/PushData.
5781         * CurrencyManager.cs: Refresh is meant to update the control from
5782         data in the datasource.  So, s/PullData/PushData.
5784         * BindingContext.cs: add more ugliness (we weren't handling the
5785         case where data_source = DataTable and data_member = column_name).
5787         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
5788         from the perspective of the datasource.  PullData pulls from the
5789         control, PushData pushes to the control.
5791 2006-06-20  Chris Toshok  <toshok@ximian.com>
5793         * BindingContext.cs: rewrite the CreateBindingManager code to
5794         handle navigation paths more or less properly.  This could
5795         definitely stand some more work, in particular to push the
5796         recursion up to the toplevel.  But that relies on fixes in other
5797         places (System.Data comes to mind).
5799         Also, move to a flat hashtable (and encode the twolevel nature of
5800         the dictionary into the hash key).  This lets us implement the
5801         IEnumerable.GetEnumerator method.
5803         * RelatedCurrencyManager.cs: new class.  Update our view based on
5804         our relation and our parent CurrencyManager's position.
5806         * CurrencyManager.cs: split out some logic from the ctor into
5807         SetView, so it can be called from the new RelatedCurrencyManager
5808         subclass.
5810         * RelatedPropertyManager.cs: new class.  Update our datasource
5811         based on the position of our parent CurrencyManager.
5813         * PropertyManager.cs: split out some logic from the ctor into
5814         SetDataSource, so it can be called from the new RelatedDataSource
5815         subclass.  Also, make the Current getter return the value
5816         of the PropertyDescriptor, not the data_source.
5818         * Binding.cs: no need to duplicate the string splitting code here.
5820 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5822         * Control.cs:
5823           - set_Enabled: OnEnabledChanged is not called if the inherited state 
5824             of the control is not altered, even though  we might be changing the
5825             internal state of the control (#78458)
5826           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
5827             OnEnabledChanged, to allow easy altering of any child window state
5828           - OnEnabledChanged: Added code to enable/disable driver window state
5829           - OnParentEnabledChanged: Instead of firing the event, call 
5830             OnEnabledChanged, which will fire the event and also a) set driver
5831             window state and pass the enabled state to any grandchildren (#78458)
5833 2006-06-19  Jackson Harper  <jackson@ximian.com>
5835         * InternalWindowManager.cs: We don't set the cursor explicitly
5836         thats done via the response to NCHITTESTs.
5837         - Don't need to adjust for titlebar heights anymore, the
5838         coordinates are coming in the correct coordinates now (see peters
5839         last patch).
5842 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5844         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
5845           being translated relative to whole window, instead of client window.
5846           That caused broken offsets on mouseclick (and caused gas for our
5847           InternalWindowManager)
5849 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5851         * TextControl.cs:
5852           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
5853           - Undo(): Added replay of cursor move on DeleteChars action; added
5854             calling Undo() again if a recorded cursor move is invalid (to
5855             ensure that some action is performed on Undo)
5856         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
5858 2006-06-16  Jackson Harper  <jackson@ximian.com>
5860         * MdiClient.cs: Instead of just sizing maximized windows when
5861         there is a resize we also have to adjust the Y of minimized
5862         windows, so they stay pinned to the bottom of the mdi container.
5863         - Eliminate separate tracking of the active control, we can just
5864         get this from the controls collection.
5865         - Paint the decorations for the newly activated titlebar so we get
5866         a pretty blue bar.
5867         * InternalWindowManager.cs:
5868         * ThemeWin32Classic.cs: Minimized windows get all three buttons
5869         even if they are a tool window.
5870         
5871 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5873         * TextControl.cs (Undo): Handle non-existent cursor locations in the
5874           undo buffer, these can happen when text was deleted and the cursor
5875           was recorded first. Since we will also have a recorded cursor
5876           after the delete this is not an issue. (Fixes #78651)
5878 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
5880         * AccessibleObject.cs: Remove dependence on Control.is_selected;
5881           instead properly track control states internally (allows us to
5882           remove is_selected from Control)
5884 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5886         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
5887         whose width is not a multiple of 8.
5889 2006-06-13  Jackson Harper  <jackson@ximian.com>
5891         * MdiClient.cs:  Only maximize the next child if the current one
5892         is maximized.
5894 2006-06-13  Chris Toshok  <toshok@ximian.com>
5896         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
5897         modified.  Also, guard against grid or grid_drawing being null in
5898         Invalidate.
5900         * DataGrid.cs: Reformat tons of getters/setters.  In the
5901         DataMember setter, just call SetNewDataSource instead of
5902         duplicating some of its functionality.  In SetNewDataSource, don't
5903         check ListManager for null, since the property getter creates the
5904         object if needed.
5906         * DataGridTableStyle.cs: don't set TableStyle or call
5907         SetDataGridInternal on the column here, it's done in
5908         GridColumnStylesCollection.Add.
5910         * GridColumnStylesCollection.cs: fix all the explicit interface
5911         implementations to just call our methods.  Nuke AddInternal() and
5912         move the body of it to Add().  Also, add a call to
5913         column.SetDataGridInternal to Add().
5915         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
5916         base()+duplicate code.  Also, use the Format property instead of
5917         format to generate an Invalidate ala MS.  Lastly, create the
5918         textbox here, unconditionally.
5919         (set_Format): call Invalidate.
5920         (get_TextBox): no need to call EnsureTextBox.
5921         (Commit): remove the message box.
5922         (Edit) remove the call to EnsureTextBox.
5923         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
5924         (EnterNullValue): no need to check textbox for null.
5925         (HideEditBox): no need to check textbox for null.
5926         (SetDataGridInColumn): add the textbox to the grid's controls.
5927         (EnsureTextBox): nuke.
5928         
5929 2006-06-13  Jackson Harper  <jackson@ximian.com>
5931         * MdiWindowManager.cs: Hook up to the maximized menus paint event
5932         and redraw the buttons when needed. Unhook when the window is
5933         unmaximized.
5934         * MainMenu.cs: Add an internal Paint event, the mdi window manager
5935         needs this so that it can redraw its buttons when the menu is
5936         repainted.
5937         * InternalWindowManager.cs:
5938         * Form.cs: The method order has changed for DrawMaximizedButtons,
5939         so that it can be a PaintEventHandler.
5940         
5941 2006-06-13  Jackson Harper  <jackson@ximian.com>
5943         * MdiClient.cs: When we close a maximized mdi window, the next mdi
5944         window is activated and maximized, even if it wasn't before.
5945         - When  a new window is activated repaint the decorations of the
5946         old one, so that it no longer has the Active "look" (the blue
5947         titlebar).
5948         * InternalWindowManager.cs: Open up CreateButtons to base classes
5949         so they can recreate the buttons on state changes.
5950         - If a window is maximized give it all three buttons
5951         * MdiWindowManager.cs: Create the titlebar buttons when the state
5952         is changed, this is needed because a toolwindow will not have all
5953         three buttons until it is maximized.
5955 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
5957         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
5958           Fixed bug #78609.
5960 2006-06-12  Jackson Harper  <jackson@ximian.com>
5962         * KeysConverter.cs: Make sure we handle the Ctrl special case
5963         if its the only key.
5964         
5965 2006-06-12  Jackson Harper  <jackson@ximian.com>
5967         * Theme.cs: Add a method to get the size of a managed window
5968         toolbar button.
5969         * InternalWindowManager.cs: Remove the ButtonSize property, this
5970         should be retrieved from the theme.
5971         * MdiWindowManager.cs: Get the button size from the theme
5972         * ThemeWin32Classic.cs: Make the method to get the managed window
5973         titlebar button size public.
5974         - Handle the different button sizes of maximized toolwindows
5975         (should match any maximized window).
5976         - Get the titlebar height from the theme, not the WM (which gets
5977         it from the theme).
5979 2006-06-12  Jackson Harper  <jackson@ximian.com>
5981         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
5982         event down to the mdi window manager.
5983         - Expose some extra stuff to base classes
5984         - Make sure to end the Capture on an NC Mouse up, so that we can
5985         get double clicks properly, and the sizing doens't stick.
5986         - When doing PointToClient contain it in the workable desktop
5987         area, this prevents windows from changing size when the cursor is
5988         pulled outside of the working area while sizing.
5989         * MdiWindowManager.cs: When we get a double click maximize the
5990         window.
5991         - Reset the cursor after handling mode changes.
5993 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
5995         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
5996           current desktop, instead of just assuming a 0, 0 origin. This
5997           is needed for our internal window manager, to know the top
5998           margin of the desktop
6000 2006-06-12  Chris Toshok  <toshok@ximian.com>
6002         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
6003         we need this to get rid of the selected background in the bool
6004         column.
6005         (CancelEditing): move the ConcedeFocus call to above the Abort
6006         call.  Also, set is_changing to false and invalidate the row
6007         header if we were changing before.
6008         (ProcessKeyPreviewInternal): remove, since noone outside this
6009         class calls it anymore.  Roll the code into ProcessKeyPreview.
6010         (EndEdit): remove the internal version.
6011         (InvalidateCurrentRowHeader): make private.
6013         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
6014         Keys.Escape handling (and with it the last call to
6015         DataGrid.EndEdit from outside the class.)
6018 2006-06-12  Chris Toshok  <toshok@ximian.com>
6020         * DataGridTextBox.cs (.ctor): isedit defaults to false.
6021         (OnKeyPress): set isedit to true.
6022         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
6023         already handled by the grid.
6025         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
6026         right.  ugh.
6027         (set_DataSource): SetDataSource always returns true, so stop
6028         putting it in an if statement.
6029         (EndEdit): get rid of some {}'s
6030         (ProcessGridKey): return true in case Keys.Escape.
6031         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
6032         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
6033         PositionChanged, stopped connecting to CurrentChanged.
6034         (GetDataSource): simplify this a bunch.
6035         (SetDataSource): change return type from bool to void.
6036         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
6037         to this, and make sure we don't set ListManager.Position inside
6038         set_CurrentCell.
6039         (OnListManagerItemChanged): if we're passed an actual index,
6040         redraw that row.
6042         * CurrencyManager.cs (set_Position): don't call PullData here.
6044 2006-06-09  Jackson Harper  <jackson@ximian.com>
6046         * TreeNode.cs:  Recalculate the visible order before doing the
6047         Expand/Collapse Below calls, because those calls generate an
6048         expose.
6049         - Reduce calls to the TreeView property, which is mildly expensive
6050         by using a local var.
6051         * Form.cs: Layout the MDI child windows when creating the parent
6052         form.
6053         - Don't use the internal constructor anymore
6054         * MdiClient.cs: use the parent form width/height (if available)
6055         when laying out the child windows, we do this because the
6056         mdiclient isn't docked yet when the initial layout is done.
6057         - Don't need an internal constructor anymore.
6059 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6061         * FileDialog.cs: handle access errors when trying to create a folder
6062         or changing to a directory. No need to initialize out parameters.
6064 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6066         * FileDialog.cs: Append a number when creating a new folder if the
6067           folder already exists (use parenthesis instead of square brackets)
6069 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6071         * FileDialog.cs:
6072           - Disabled registry support for windows and added better registry
6073             error checking for other systems (need to investigate why it
6074             works perfectly on my system)
6075           - If a folder already exist show an error MessageBox instead of
6076             trying to create an indexed name.
6077           - Fixed a non intentional typo.
6079 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6081         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
6083 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6085         * FileDialog.cs: When creating a new folder don't crash if the
6086           folder already exists.
6088 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6090         * FileDialog.cs: Allmost a complete rewrite.
6091           - added a "virtual" file system that handles the differences
6092             between unix and windows file systems (especially the directory
6093             structure). Moved most of the directory and file handling code
6094             into the vfs.
6095             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
6096             UnixFileSystem and FSEntry.
6097           - Recently used folder/directory, size, location and used file names
6098             (file name ComboBox) are now stored in the registry and get read
6099             before the dialog shows up (fixes part 6 of bug #78446).
6100           - Creation of new folders/directories is now possible (context menu
6101             or ToolBar). Added TextEntryDialog for this that fills in the gap
6102             until ListView.LabelEdit works.
6103           - Fixed cursor handling (bug #78527) and focus handling for
6104             PopupButtonPanel
6105           - Various "Search in" ComboBox enhancements. The content of the
6106             dropdown listbox now almost matches ms.
6107           - Changed the behaviour when the user switches to SpecialFolder
6108             Recent to show the ListView in View.Details.
6109           - Beside using the ToolBar to change the View property of the
6110             file ListView it is now possible to use the context menu too.
6112 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6114         * ComboBox.cs: Don't create a new ObjectCollection when an item
6115           gets inserted. Just insert the item in the existing object_items
6116           ArrayList.
6118 2006-06-08  Jackson Harper  <jackson@ximian.com>
6120         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
6121         that the treeview and root node checks are done also, this fixes a
6122         regression i caused in the unit tests.
6124 2006-06-07  Wade Berrier <wberrier@novell.com> 
6126         * RichTextBox.cs: More ISO8859-1 -> unicode
6128 2006-06-07  Mike Kestner  <mkestner@novell.com>
6130         * ComboBox.cs : use items to hold highlight/selection so that
6131         collection insertions don't require synchronization.
6133 2006-06-07  Jackson Harper  <jackson@ximian.com>
6135         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
6136         routine.  We now always keep the sized edge at the cursor instead
6137         of computing movement and adjusting rects.  There is one buglet
6138         with this method though when the cursor is moved over area that
6139         the window can not expand too (such as the toolbars on the desktop).
6141 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6143         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
6144         here. Fixes crash on startup in AlbumSurfer.
6146 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
6148         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
6149           values
6151 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6153         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
6154         statement to avoid calling XNextEvent which will block if another thread
6155         took the event that we were expecting. Fixes bug #78605.
6157 2006-06-07  Mike Kestner  <mkestner@novell.com>
6159         * ListView.cs : isolated checkbox clicking from the selection logic.
6160         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
6162 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6164         * Form.cs: Check that the value passed to Form.DialogResult
6165         is a valid enum value.
6167 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6169         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
6170         Computer'. Clicking it in the network view goes to 'My Computer'.
6171         Added CIFS filesystem type. Display the mount point of filesystems.
6172         Avoid duplicate mount points (happens for me with CIFS);
6174 2006-06-06  Jackson Harper  <jackson@ximian.com>
6176         * InternalWindowManager.cs: Draw the maximized windows buttons
6177         when resizing.
6179 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6181         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
6182         all other dialogs. Fixes bug #78585.
6184 2006-06-06  Mike Kestner  <mkestner@novell.com>
6186         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
6187         Only invalidate checkbox on checkstate changes to avoid flicker.
6188         * ListBox.cs : avoid unselect/select when clicking selected item.
6189         avoid reselection flicker for already multiselected items.
6190         Fixes #78382.
6192 2006-06-06  Jackson Harper  <jackson@ximian.com>
6194         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
6195         the parent form so that the menu is removed if needed.
6197 2006-06-06  Mike Kestner  <mkestner@novell.com>
6199         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
6200         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
6202 2006-06-06  Mike Kestner  <mkestner@novell.com>
6204         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
6207 2006-06-06  Jackson Harper  <jackson@ximian.com>
6209         * Control.cs: Use the property (instead of the field) to get the
6210         default cursor so it is instantiated correctly.
6211         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
6212         resizes so we need to manually repaint the window decorations here.
6213         - Set the titlebar button locations as soon as they are created,
6214         otherwise they are not set correctly on win32.
6215         
6216 2006-06-06  Chris Toshok  <toshok@ximian.com>
6218         * CurrencyManager.cs (set_Position): call PullData before
6219         OnCurrentChanged.
6220         (AddNew): after calling IBindingList.AddNew, update our
6221         listposition, and call OnCurrentChanged/OnPositionChanged (without
6222         calling PullData).
6223         (OnCurrentChanged): remove the call to PullData from here.
6224         (OnItemChanged): remove the call to PushData from here.
6225         (OnPositionChanged): change the test from == null to != null to
6226         match the other methods.
6227         (ListChangedHandler): the grossest part of the patch.  Implement
6228         this such that it passes the unit tests in CurrencyManagerTest and
6229         the output more or less matches that of MS's implementation.
6231 2006-06-06  Mike Kestner  <mkestner@novell.com>
6233         * ListView.cs : only update check state on single click.
6234         * ThemeWin32Classic.cs : fix focus drawing for details view without
6235         fullrowselect.  Fixes #78454.
6236         * XplatUIX11.cs : fix for double click emission.
6238 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
6240         * PropertyGridView.cs : Applied Atsushi's patch to fix
6241         font dialog bug  (#78197).
6243 2006-06-05  Jackson Harper  <jackson@ximian.com>
6245         * TreeNode.cs: Compute the next node for expanding/collapsing
6246         correctly. We now factor in nodes without a NextNode
6247         correctly. (Fixes somes cases in nunit-gui).
6248         * InternalWindowManager.cs: Set the bounds when updating the
6249         virtual position of a tool window.
6250         
6251 2006-06-05  Chris Toshok  <toshok@ximian.com>
6253         * DataGrid.cs: rename cached_currencymgr to list_manager.
6254         (set_CurrentCell): move SetCurrentCell code here, and clean it up
6255         some.
6256         (CurrentRow, CurrentColumn): single accessors so we can make the
6257         cursor movement code a lot easier to understand.
6258         (CurrentRowIndex): implement this in terms of CurrentRow.
6259         (BeginEdit): clean this up a bit.
6260         (CancelEditing): sort out the is_editing/is_changing/is_adding
6261         stuff a little.
6262         (EndEdit): minor changes.
6263         (OnKeyDown): add a comment about a (most likely) unnecessary
6264         check.
6265         (OnMouseDown): cancel editing when we click on a row header.  And
6266         use the CurrentRow setter, not CurrentCell.
6267         (ProcessDialogKey): directly call ProcessGridKey.
6268         (UpdateSelectionAfterCursorMove): factor out this common block of
6269         code (it's used everywhere that we move the cursor by updating row
6270         or column).
6271         (ProcessGridKey): pretty substantial overhaul.  Use the
6272         CurrentRow/CurrentColumn properties to make the code a lot more
6273         readable.  Only use the CurrentCell property when we have to
6274         modify both row and column at once.  Tab behavior is still broken,
6275         and Delete is untested.
6276         (Select): if we have no selected rows, set selection_start to
6277         @row.
6278         (EditCurrentCell): rename EditCell this.  It was only ever invoked
6279         with CurrentCell as the arg, so drop the arg and rename it.
6281         * DataGridColumnStyle.cs: clean up the constructors a little, and
6282         drop CommonConstructor().
6284         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
6285         actually get notified when the user hits it.
6286         (ProcessKeyMessage): *substantially* simplify this method.
6287         There's no reason (that I can see) for the textbox to be making
6288         calls into the datagrid at all.  Remove all of them but the ones
6289         for Enter handling.  those will take some more work.
6291         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
6292         calling HideEditBox.
6293         (HideEditBox): if we have an active textbox, render it invisible
6294         without causing a re-layout of the datagrid.
6296 2006-06-05  Mike Kestner  <mkestner@novell.com>
6298         * ListView.cs : fix NRE crasher when focuseditem is cleared by
6299         collection changes by resetting it to Items[0].  Fixes #78587.
6301 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6303         * MessageBox.cs: if the height of the text is larger than the icon_size,
6304         use that. Fixes bug #78575.
6306 2006-06-05  Jackson Harper  <jackson@ximian.com>
6308         * TreeView.cs: Fix line drawing when scrolling.  To do this each
6309         node is basically responsible for drawing its entire horizontal
6310         area.  When drawing a node it draws its parent node lines if
6311         needed.
6312         - Adjust the clip area to the viewport rectangle
6313         - Fix Left/Right key handling to match MS. (It expand/collapses
6314         and moves to parents/first child but does not move selection to
6315         sibling nodes).
6316         - Fix SetTop to work with new bound calculation code
6317         - When scrollbars are no longer needed we need to reset scrolling
6318         vars and recalculate the visible order so the redraw is correct
6319         * TreeNode.cs: We can't expand/collapse nodes with no children.
6321 2006-06-03  John Luke  <john.luke@gmail.com> 
6323         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
6324         so the colors work without dev packages
6325         
6326 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
6328         * Control.cs 
6329           - Select: Implemented to just use activate. Seems to match MS 
6330             behaviour closest. Documented to only do actual control walking 
6331             based on it's parameters if in a container control so I moved 
6332             the code there.
6333           - Removed selection check logic from our internal Select() method
6334         * ContainerControl.cs:
6335           - Select: Moved selection logic from Control here, since MS documents
6336             that containers obey the bool arguments. No longer calling base
6338 2006-06-02  Jackson Harper  <jackson@ximian.com>
6340         * TreeView.cs: If the selected node isn't changed when we get
6341         focus update the previously selected node so that we see the
6342         selection box.
6344 2006-06-02  Mike Kestner  <mkestner@novell.com>
6346         * ComboBox.cs: restructure grab and general mouse event handling.
6347         Make the composite control raise mouse events like it was a single
6348         control for leaves/enters/motion/up/down events.  fix dropdown list
6349         coordinate mangling and refactor it into the scrollbar subclass to
6350         reduce code duplication.  Fixes #78282 #78361 and #78457.
6352 2006-06-02  Mike Kestner  <mkestner@novell.com>
6354         * ScrollBar.cs: remove Capture setting/clearing, as it happens
6355         automatically in the Control.WndProc.
6357 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6359         * FileDialog.cs: fix crash when running SharpChess, which sets the
6360         FilterIndex to 2 with only one Filter.
6362 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6364         * ToolBar.cs: add SizeSpecified property.
6365         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
6366         try to figure out our real size, otherwise fallback to what the
6367         container says.
6369 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
6371         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
6372         * Control.cs (WndProc): MS always calls the DefWndProc to pass
6373           up the event
6375 2006-06-01  Mike Kestner  <mkestner@novell.com>
6377         * ListView.cs: revamp the focus management in ListView.  It still
6378         causes churn of LostFocus/GotFocus emissions on clicks, but it's
6379         better than not handling focus at all.  Will revisit when pdb feels
6380         the general focus handling is solid.  Fixes #78526.
6382 2006-06-01  Jackson Harper  <jackson@ximian.com>
6384         * TreeView.cs: Set the default border style in the constructor.
6385         - Move painting to use OnPaintInternal instead of capturing
6386         WM_PAINT, this is the correct way of doing things
6387         - UpdateBelow shouldn't invalidate the scrollbar area
6388         - Cap the top on update below in case the node was above the top
6389         of the viewport rectangle.
6390         - ExpandBelow and Collapse below need to obey Begin/End Update.
6391         * TreeNode.cs: Make is_expanded internal so the treenode
6392         collection can change it without firing the whole event chain.
6393         * TreeNodeCollection.cs: When clearing all the child nodes make
6394         sure to recalc the visible order.
6395         - Improve algo for remove the top node
6397 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
6399         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
6400           SendMessage directly calling window procedures, which in turn might
6401           call SetFocus()
6403 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
6405         * Control.cs: Don't handle WM_SETFOCUS if the same window already
6406           has focus (works around X11 sending a FocusIn after our SetFocus)
6407         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
6409 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
6411         * Mime.cs: Fix for the NET_2_0 build.
6412           NameValueCollection needs StringComparer now.
6414 2006-05-31  Chris Toshok  <toshok@ximian.com>
6416         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
6417         return (via an out parameter) the starting X of the column.
6418         (UpdateVisibleColumn): track change to FromPixelToColumn.
6419         (HitTest): add a ColumnResize case here.
6420         (DrawResizeLine): new function, probably poorly named.
6422         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
6423         only need to keep one reference.
6424         (set_ListManager): same.
6425         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
6426         Also, add support for HitTestType.ColumnResize.
6427         (OnMouseMove): add column resize behavior here, and change the
6428         cursor to the correct one as we move around the datagrid.
6429         (OnMouseUp): terminate the column resize if we're resizing.
6430         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
6431         for the current cell.
6432         (ConnectListManagerEvents): use cached_currencymgr.
6433         (DisconnectListManagerEvents): fill this in, using
6434         cached_currencymgr.
6435         (SetCurrentCell): remove cached_currencymgr_events handling.
6436         (SetDataMember): only call DisconnectListManagerEvents if
6437         cached_currencymgr is != null.
6438         (SetDataSource): same.
6439         (OnListManagerCurrentChanged): cached_currencymgr_events ->
6440         cached_currencymgr.
6442 2006-05-31  Jackson Harper  <jackson@ximian.com>
6444         * BindingManagerBase.cs: Remove somedebug code that creeped into
6445         SVN.
6446         * TreeNode.cs: We get the indent level dynamically right now, so
6447         don't track it as a member.
6448         * TreeNodeCollection.cs: Make sure all nodes added to the list
6449         have parents, treeviews/topnodes setup properly.
6450         - Don't attempt to track indent level.
6452 2006-05-30  Jackson Harper  <jackson@ximian.com>
6454         * BindingContext.cs: Create the currency manager tables here.
6455         This allows us to more easily create null tables (when bad data
6456         members are used), and more easily create related currency
6457         managers.
6458         * CurrencyManager.cs: All the table creation stuff is done by the
6459         binding context now.
6460         - Current should throw an exception if listposition is -1.
6461         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
6462         been bound yet.
6464 2006-05-30  Mike Kestner  <mkestner@novell.com>
6466         * ListView.cs: allow reexpansion of zero-width column headers.
6467         Fixes #78528.
6469 2006-05-28  Chris Toshok  <toshok@ximian.com>
6471         * CurrencyManager.cs (get_Current): after the late binding
6472         listposition = -1 fix, we need to guard against it here and return
6473         null, otherwise we raise an exception (which is swallowed
6474         elsewhere, and breaks datagrid databinding.)
6476 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6478         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
6479           than WM_SYSKEY, don't throw if get something unexpected (#78507)
6481 2006-05-26  Jackson Harper  <jackson@ximian.com>
6483         * ControlPaint.cs:
6484         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
6485         values, it's faster and it's all we care about (we don't care if
6486         the names aren't equal).
6487         * KeyboardLayouts.cs: Eliminate some dead code.
6488         - Lazy init things
6489         * X11Keyboard.cs: Lazy init keyboard detection.
6490         - Cleanup access modifiers a little.
6492 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6494         * XplatUIX11.cs: Once again, attempting to get layout just right.
6496 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
6498         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
6499           the sizes of each link section, that will result in sizes that
6500           match DrawString's layout (Fixes #78391)
6502 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
6504         * FileDialog.cs: If AddExtension property is true autocomplete the
6505           extensions in SaveFileDialog correctly. Fixes bug #78453.
6506           Set MyNetwork and MyComputer to "C:\" for windows. This should
6507           fix part 8 of bug #78446 for now.
6509 2006-05-26  Chris Toshok  <toshok@ximian.com>
6511         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
6512         invalidate the current row header if we need to, but presumably
6513         we'll invalidate the row corrsponding to the bounds or
6514         editingControl.
6515         (GridHScrolled): switch back to this method, as it's part of the
6516         public api.  *sigh*.
6517         (GridVScrolled): same.
6518         (OnMouseWheel): hack up something that more or less works.  Call
6519         GridHScrolled/GridVScrolled directly, instead of duplicating much
6520         of their code here.
6521         (EnsureCellVisibility): reinstate a bunch of this code, since we
6522         can't just set the scrollbar Value and expect to do all the work
6523         in the ValueChanged handler.  Also, Call Update() after scrolling
6524         in one direction so the other XplatX11.ScrollWindow call has the
6525         proper stuff in the proper places.
6526         (EditCell): set is_editing to true before calling .Edit.
6528         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
6529         don't bother comparing first.
6530         (OnKeyPress): call grid.ColumnStartedEditing before calling
6531         base.OnKeyPress.  this will set is_changing and invalidate the row
6532         header if necessary.
6533         (ProcessKeyMessage): for WM_CHAR messages, call
6534         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
6535         and WM_KEYDOWN.
6536         
6537         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
6538         it's done in the DataGrid.
6539         (NextState): call grid.ColumnStartedEditing, which takes care of
6540         invalidating the row header (and setting is_changing).
6542         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
6543         here.  it's done in the DataGrid.
6545 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6547         * Control.cs: allow changing the cursor when the mouse position is
6548         out of bounds but Capture is set.
6549         * LinkLabel.cs: handle the case when the mouse button is pressed on the
6550         linklabel but released somewhere else.
6552 2006-05-25  Jackson Harper  <jackson@ximian.com>
6554         * TreeView.cs: When we get focus if there is no selected node make
6555         it the top node
6556         - Remove some uneeded setup code from Draw.
6557         * TreeNodeCollection.cs: If the tree doesn't have a top node when
6558         a new node is inserted make the new node the top.
6559         * XplatUIX11.cs:
6560         * Timer.cs: Use Utc time so that no local time zone stuff needs to
6561         be used (should be faster).
6562         
6563 2006-05-25  Chris Toshok  <toshok@ximian.com>
6565         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
6566         problem with the last commit.
6568 2006-05-25  Chris Toshok  <toshok@ximian.com>
6570         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
6571         need the invalidate call here, while scrolling right-to-left via
6572         the left arrow key (i.e. moving the editing cell while scrolling).
6574         * DataGrid.cs (.ctor): remove the initialization of
6575         ctrl_pressed/shift_pressed.  We no longer track them using key
6576         up/down handlers, but by using Control.ModifierKeys.  Also, switch
6577         to using ValueChanged handlers on the scrollbars instead of
6578         Scrolled event handlers.  This simplifies a bunch of the scrolling
6579         code.
6580         (GridHValueChanged): rename from GridHScrolled, and change it to
6581         work with the new event args.
6582         (GridVValueChanged): same.
6583         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
6584         (OnMouseWheel): actually scroll the datagrid.  Don't change the
6585         selected cell.
6586         (ProcessGridKey): correct all the keyboard navigation stuff I
6587         could find.  Ctrl up/down/left/right/home/end work now.
6588         (EnsureCellVisibility): correct method name spelling.  Also,
6589         simplify this a touch by not explicitly calling the
6590         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
6591         scrollbar value.
6592         (OnKeyUpDG): no need for this method now.
6593         
6594 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6596         * LinkLabel.cs: display the OverrideCursor when hovering the label.
6597         Fixes bug #78392.
6599 2006-05-25  Chris Toshok  <toshok@ximian.com>
6601         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
6602         r61019.
6604 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6606         * Application.cs: Moved setting of is_modal and closing to before
6607           we create the control, to allow the event handlers called as a
6608           result of creation affect closing. Also removed Gonzalo's previous
6609           change to setting DialogResult, the behaviour has been moved to 
6610           Form.ShowDialog()
6611         * Form.cs: 
6612           - ShowDialog(): Removed explicit creation of the form, let RunLoop
6613             handle it instead
6614           - ShowDialog(): If no dialog result is set, we need to return Cancel
6615           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
6616             the close is cancelled
6618 2006-05-25  Jackson Harper  <jackson@ximian.com>
6620         * StatusBar.cs: We only need to update the sizes of the other
6621         panels when we have auto size contents.  Also we are only updating
6622         the contents of the panel, not the borders, so compensate for the
6623         border width (TODO: get this width from the theme somehow).
6624         * TreeView.cs: Scrollable is true by default
6625         - Use invalidate instead of refresh where needed
6626         - Factor the scrollable value into scrollbar updating
6627         - Update the scrollbars if the Scrollable property is altered
6628         - Update the selected node if its ImageIndex is changed
6629         - Handle null nodes in UpdateNode (mainly so we don't have to
6630         check if selected is null when updating it
6631         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
6632         are factored into the visible count
6633         - Use VisibleCount for clarity in the code
6634         - When the font is changed we need to recurse through all the
6635         nodes and invalidate their sizes
6636         
6637 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6639         * Application.cs: set the DialogResult to fixed when the main form is
6640         hidden or destroyed while being modal.
6642 2006-05-25  Miguel de Icaza  <miguel@novell.com>
6644         * Theme.cs: Use Tangoified messagebox icons. 
6646         (GetSizedResourceImage): Also cope with width = 0 and do not
6647         trigger a warning in that case (0 means "give me your icon from
6648         the resouce, no special size needed).
6650 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6652         * Application.cs: Leave runloop if the the main modal form is 
6653           hidden (fixes #78484)
6655 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
6657         * BindingContext.cs : reject null datasource in Contains() and
6658           Item[].
6659         * CurrencyManager.cs : check data_member validity when data_source
6660           is dataset. When it is late binding, the initial position is -1.
6662 2006-05-24  Jackson Harper  <jackson@ximian.com>
6664         * TreeNodeCollection.cs: Dont't recalculate the visible order on
6665         inserted nodes that aren't visible.  This changes the
6666         max_visible_order which confuses scrollbar settings.
6667         - Use the enumerator to get the prev node instead of duplicating
6668         code.
6669         * TreeView.cs: Use new method for setting scrollbar values
6670         - Don't set the bounds every time the scrollbar is updated
6671         - When updating below the root node use an invalidate instead of a
6672         refresh to prevent the child controls (scrollbars) from being
6673         refreshed. (UpdateBelow still needs to be reworked anyways).
6674         - Reenable SetBottom now that visible orders are set correctly,
6675         added some debug code incase we ever get bad values there again.
6676         - Set the scrollbar max to 2 less then the max value, this
6677         compensates for the max value being one above the node count, and
6678         for scrollbars adding one extra "notch".
6679         - When drawing image nodes if there is an imagelist we draw the
6680         first image in the list if the supplied image index is out of the
6681         image list's bounds.
6682         
6683 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6685         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
6686           we receive a size change from the WM (Fixes #78503)
6688 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
6690         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
6691           rectangle (Fixes #78501)
6693 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6695         * ButtonBase.cs: 
6696           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
6697             as a bitfield.
6698           - Fixed MouseMove to no longer switch pressed state unless the left
6699             mouse button is pressed. Atsushi provided the original patch (#78485)
6700           
6701 2006-05-24  Jackson Harper  <jackson@ximian.com>
6703         * ScrollBar.cs: New internal methods that allow us to change a
6704         couple values on the scrollbar (the most common case is maximum
6705         and large change) without getting multiple invalidates.
6707 2006-05-24  Chris Toshok  <toshok@ximian.com>
6709         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
6710         (Edit): save off the original state in oldState, and set
6711         grid.is_editing to true.
6712         (OnKeyDown): abort editing if escape is pressed.  also, call
6713         NextState if space is pressed.
6714         (OnMouseDown): call NextState.
6715         (NextState): factor out shared code from OnKeyDown and OnMouseDown
6716         here.  Also, only invalidate the row header once (on the initial
6717         is_changing switch) to save on redraws.
6719 2006-05-24  Chris Toshok  <toshok@ximian.com>
6721         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
6722         if the value in the cell is different than it was before.  This
6723         keeps us from triggering a layout when we move around a datarid
6724         with a highlighted cell.
6725         (Edit): suspend layout when creating/positining the text box, and
6726         resume passing false so we don't ever actually re-layout.
6727         (ReleaseHostedControl): same.
6728         (EnsureTextBox): reformat slightly, and set WordWrap to false.
6730         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
6731         control-key sequences should go to the datagrid - remove that
6732         lock.  Also, modify the conditions under which we move between
6733         cells when moving the cursor within a cell, and remove the "this"
6734         and "base" from field accesses.  We weren't even consistent, given
6735         they all were in the base class.
6737 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
6739         * Binding.cs : (.ctor)
6740           An obvious NRE fix for BindingTest.CtorNullTest().
6742 2006-05-23  Chris Toshok  <toshok@ximian.com>
6744         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
6745         them between lines.  This fixes some quirks editing cells in the
6746         datagrid.
6748 2006-05-23  Jackson Harper  <jackson@ximian.com>
6750         * TreeView.cs: Use begin/end update when doing expand/collapse all
6751         so that we don't get flicker on the scrollbar.
6753 2006-05-23  Jackson Harper  <jackson@ximian.com>
6755         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
6756         treenode calculations to be independant of the painting code. To
6757         do this nodes track a visible order which is calculated by the
6758         treeview.
6759         - Call new methods for expanding/collapsing nodes.  These methods
6760         use scrollwindow so we don't have to update everything below the
6761         node.
6762         * TreeView.cs: Refactored drawing and scrolling code.  We don't
6763         need to update nodes when drawing anymore or calculate scrollbar
6764         stuff.
6765         - Added new methods for expanding/collapsing nodes. These methods
6766         use ScrollWindow so as to not have to redraw all the nodes below.
6767         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
6768         we add/remove nodes or sort.
6769         - Handle removing the selected and the top node properly.
6771 2006-05-23  Chris Toshok  <toshok@ximian.com>
6773         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
6774         maybe this should actually happen in the datagrid code?
6775         (EndEdit): no need to invalidate anything, given that
6776         ReleaseHostedControl causes the datagrid to relayout, which
6777         invalidates everything anyway.
6779         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
6780         in SetCurrentCell).
6781         (set_SelectionBackColor): call InvalidateSelection instead of
6782         Refresh.
6783         (set_SelectionForeColor): same.
6784         (BeginEdit): Flesh this out a bit.
6785         (CancelEditing): only do any of this if we're editing/adding.
6786         (EndEdit): same.
6787         (OnMouseDown): there's no need to cancel editing here, it's done
6788         in SetCurrentCell.
6789         (SetCurrentCell): only invalidate the current row header if it's a
6790         different row than the new one.
6791         (ShiftSelection): fix this to work like MS does.
6792         (ResetSelection): factor out the invalidation of selected_rows to
6793         InvalidateSelection.
6794         (SetDataSource): cancel any editing that's going on.
6796         * DataGridColumnStyle.cs
6797         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
6798         call the non-interface version.
6800         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
6801         header rectangle with the clip rectangle so we don't redraw the
6802         entire header for just a small area.  Gets rid of the last flicker
6803         when horizontally scrolling.
6804         (DataGridPaintRow): same.
6806 2006-05-23  Mike Kestner  <mkestner@novell.com>
6808         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
6809         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
6810         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
6811         Critical bug report.
6813 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6815         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
6816           and this fixes #78493
6818 2006-05-23  Miguel de Icaza  <miguel@novell.com>
6820         * Theme.cs (GetSizedResourceImage): Scale images if the proper
6821         size is not found.  
6822         
6823         * FileDialog.cs: Do not change the background for the side bar as
6824         it wont work nicely with the theme, and also reduces the artifacts
6825         in rendering the icons (which I want to fix too).
6827         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
6828         resources, not resgen resources. 
6830         (PlatformDefaultHandler): Pull images using the new API.
6832 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6834         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
6835           a reference to the hwnd and will not remove it unless there are
6836           no pending exposures (fixes #78341)
6837         * XplatUI.cs: Improved debug
6839 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
6841         * MenuAPI.cs : don't handle OnClick event when it was not the left
6842           button. Fixed bug #78487.
6844 2006-05-23  Mike Kestner  <mkestner@novell.com>
6846         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
6847         prefer submenus to the top menu for item lookup, to avoid popping down
6848         top-row items.
6850 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
6852         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
6853           Graphics.FillRectangle as the visual results are really bad (even
6854           on win). We now draw perfect arrows (and perfect shadows when the
6855           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
6856           Pen.DashPattern to draw the dots of each line.
6858 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
6860         * FileDialog.cs: Update the filename combobox when navigating through
6861           the ListView with the cursor keys. Fixes part 7 of bug #78446.
6863 2006-05-22  Mike Kestner  <mkestner@novell.com>
6865         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
6866         Fixes #78463.
6868 2006-05-22  Mike Kestner  <mkestner@novell.com>
6870         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
6871         requests. Fix a misspelled parameter and a copy paste exception error
6872         in Select.
6874 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
6876         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
6877           to get the same width/height (5/13) on X11 as the default font has on
6878           win32. This means that our DefaultFont emSize is smaller than the 
6879           the MS SWF equivalent (even thought the width/height stays the same)
6881 2006-05-20  Jackson Harper  <jackson@ximian.com>
6883         * MdiClient.cs:
6884         * MdiWindowManager.cs:
6885         * InternalWindowManager.cs: Make sure to use the border width from
6886         the theme.
6888 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
6890         * PrintDialog.cs: Implements printer details
6892 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
6894         * FileDialog.cs: Added focus handling for PopupButtonPanel.
6895           Fixes part 1 and 2 of bug #78446
6897 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
6899         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
6900           instead of sticking to the first ever calculated value
6902 2006-05-19  Mike Kestner  <mkestner@novell.com>
6904         * ComboBox.cs: fix mouse motion selection to use MousePosition and
6905         PointToClient, since Capture is set. Fixes #78344.
6907 2006-05-19  Mike Kestner  <mkestner@novell.com>
6909         * ListView.cs: match MS behavior in Details view where items are not
6910         drawn if Columns.Count == 0. 
6911         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
6912         Use a separate pen to draw the check, since changing the width affects
6913         the box as well.  Fixes #78454.
6915 2006-05-18  Miguel de Icaza  <miguel@novell.com>
6917         * ListView.cs: ArgumentOutOfRangeException, single versions of the
6918         exception should throw the name of the invalid argument.
6920         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
6921         there are no files listed. 
6923 2006-05-18  Jackson Harper  <jackson@ximian.com>
6925         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
6926         up.
6928 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6930         * Control.cs: Brought back our old UpdateZOrder method as a private
6931           function and switched our calls from UpdateZOrder to the new one.
6932           This fixes the Paint.Net canvas disappearing bug.
6934 2006-05-18  Jackson Harper  <jackson@ximian.com>
6936         * Theme.cs:
6937         * ThemeWin32Classic.cs:
6938         * InternalWindowManager.cs: Move the drawing into the theme,
6939         expose everything the theme should need from the window manager.
6941 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6943         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
6944           from the call to NativeWindow to avoid walking up the parent chain
6945           further than needed (speeds up setting cursors and avoids setting
6946           the wrong cursor if a parent has another cursor defined)
6947         * Cursor.cs: When loading an icon as cursor, MS uses the center of
6948           the icon as hotspot, not what's contained as hotspot in the icon
6949           file. This fixes the perceived drawing offset seen with Paint.Net
6950         
6951 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6953         * XplatUIX11.cs: 
6954           - Store the calculated rectangle in Hwnd object and use it when 
6955             setting the client size
6956           - Force Toolwindows to always be type Dock, to ensure they're on top
6958 2006-05-18  Mike Kestner  <mkestner@novell.com>
6960         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
6961         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
6962         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
6963         Substantial refactoring to remove confusing nested classes. Coding
6964         standard and Get+Set->property refactorings.  Shift to index based
6965         highlighting in ComboListBox instead of constantly using IndexOf and
6966         Items[]. Add invalidations on resize for DropDownList to fix ugliness
6967         in FileDialog growth.  Draw borders manually since Simple mode needs
6968         to look like two independent controls.  Make listbox border
6969         conditional to DropDownStyle.  Improved OwnerDraw support.
6971 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
6973         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
6974         Don't set the disposed graphics to null, so we can throw the "right"
6975         exception if the graphics is reused later (added a flag to avoid 
6976         double disposing). Some behaviours are different under 2.0 and are
6977         filled under bug #78448.
6979 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6981         * Control.cs: When double-buffering is enabled, we need to reset
6982           our graphics context between paint calls. Otherwise, any 
6983           transformations and other alterations on the context will 
6984           become cumulative (#77734)
6986 2006-05-18  Mike Kestner  <mkestner@novell.com>
6988         * ListView.cs: do focused item selection like MS on clicks. 
6989         Rework focus handling for ItemControl so LostFocus invalidates as
6990         well.
6991         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
6992         the ListView ItemControl has focus.
6994 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
6996         * XplatUIX11.cs: If client_window ends up being width or height zero
6997           due to border settings, move it off window inside whole_window (#78433)
6999 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
7001         * Mime.cs: Shrink the mime file cache correctly.
7003 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
7005         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
7007 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
7009         * XplatUIX11.cs (AddExpose): More sanity checks
7011 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
7013         * XplatUIX11.cs:
7014           - AddExpose: Don't add expose ranges outside the size of our
7015             window
7016           - Cast opacity values to Int32 to avoid crashes with certain
7017             values
7018           - Added disabled code paths that protect against illegal cross-
7019             thread painting (Developers.exe)
7021 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
7023         * ProgressBar.cs: Invalidate the control when it's resized
7024           since block size is based on control size. (#78388)
7026 2006-05-16  Miguel de Icaza  <miguel@novell.com>
7028         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
7029         of setting the incoming argument to the "reset" value, we set the
7030         this.datamember to string.empty (before we were invalidating the
7031         incoming data).   
7033         Fixes 78420
7035 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
7037         * Form.cs: Only apply transparency settings after the form
7038           is created. (Fixes #77800)
7040 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
7042         * ApplicationContext.cs: Grab the HandleDestroyed event so
7043           we know when to fire OnMainFormClosed 
7045 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
7047         * Application.cs: Introduced sub-class to allow tracking of
7048           threads and centralized triggering of the event mess for
7049           ThreadExit, AppExit, etc..  (#76156)
7051 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
7053         * MimeIcon.cs:
7054           - Do not return a null icon index value for a mime subclass.
7055             Instead try the main mime type class too.
7056           - Seems that some newer distributions don't have a link to some
7057             gnome default icons anymore. So check the default gnome dir too.
7058           
7060 2006-05-16  Jackson Harper  <jackson@ximian.com>
7062         * MdiClient.cs: Don't paint the parent background image if we have
7063         our own background image.
7065 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
7067         * Control.cs:
7068           - PerformLayout: Do not shrink space filled by DockStyle.Fill
7069             controls, all filled controls are supposed to overlap (#78080)
7070           - UpdateZOrder is supposed to update the control's z-order in the
7071             parent's z-order chain. Fixed to behave like that
7072           - BringToFront: Removed obsolete code
7073           - SendToBack: Simplyfied
7074           - SetChildIndex: Trigger layout calculations when Z-order changes
7075             since layout is done by z-order
7077 2006-05-16  Chris Toshok  <toshok@ximian.com>
7079         [ fixes bug #78410 ]
7080         * DataGrid.cs (set_AlternatingBackColor): use
7081         grid_drawing.InvalidateCells instead of Refresh().
7082         (set_BackColor): call grid_drawing.InvalidateCells.
7083         (set_BackgroundColor): use Invalidate instead of Refresh.
7085         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
7086         invalidate the cell area.
7088 2006-05-15  Chris Toshok  <toshok@ximian.com>
7090         [ fixes bug #78011 ]
7091         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
7092         on to DataGridPaintRow.
7093         (DataGridPaintRow): take a clip argument, and only draw the cells
7094         which intersect it.  same with the not_usedarea.
7096         * Theme.cs (DataGridPaintRow) add @clip parameter.
7098         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
7099         XplatUI.ScrollWindow.
7100         (ScrollToRow): same.
7102         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
7103         with last column which was causing a gray swath to appear with the
7104         XplatUI.ScrollWindow code.
7106 2006-05-15  Chris Toshok  <toshok@ximian.com>
7108         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
7109         use XplatUI.ScrollWindow.
7110         (VerticalScrollEvent): use XplatUI.ScrollWindow.
7112 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
7114         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
7116 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
7118         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
7119           file since there are no equivalent X11 cursors
7121 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
7123         * MonthCalendar.cs : DateTimePicker should reflect selected date
7124           on mouse*up*, not mouse*down*. Fixed originally reported part of
7125           bug #76474.
7127 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
7129         * TabControl.cs : When argument index is equal or more than tab
7130           count, just ignore. Fixed bug #78395.
7132 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
7134         * Control.cs: Dispose all child controls when control is diposed (#78394)
7136 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7138         * ColorDialog.cs: Finally it is possible to select the color with
7139           the text boxes
7141 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7143         * PrintDialog.cs: Fix typo
7145 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7147         * PrintDialog.cs: PrintDialog is not resizable
7148         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
7149           color. Made some ToolBar drawing methods protected virtual.
7151 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
7153         * PrintDialog.cs: Implementation of the PrintDialog
7155 2006-05-12  Chris Toshok  <toshok@ximian.com>
7157         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
7158         thumb, instead use MoveThumb.  This has the side effect of making
7159         most of the other thumb moving machinery use MoveThumb as well.
7160         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
7161         need to actually invalidate the rectangle where the new thumb will
7162         go.
7163         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
7164         We force an Update() after, so it's not as fast as it could be,
7165         but at least there's zero flicker and no droppings.
7166         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
7167         (UpdateThumbPos): add another argument (dirty), which says whether
7168         or not to calculate/add dirty regions which we later invalidate.
7169         For cases where we know we're going to use MoveThumb, we pass
7170         false for this.  Otherwise, pass true.
7172 2006-05-12  Jackson Harper  <jackson@ximian.com>
7174         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
7175         the status bar.
7176         
7177 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
7179         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
7180           and GetClipRegion methods and UserClipWontExposeParent property.
7181         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
7182           overriding UserClipWontExposeParent property, setting to false, since
7183           Win32 handles the required expose messages to draw our clipped parent
7184           areas internally
7185         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
7186           PaintEventStart to set the user clip region if set.
7187         * Control.cs: 
7188           - Now internally tracking the Region for the control since we need to
7189             store it if the handle is not yet created and only set it when it
7190             becomes created. Before setting the region forced handle creation
7191           - Added code to draw the parents underneath a user-clipped region
7192         * Hwnd.cs: Added UserClip property
7194 2006-05-12  Chris Toshok  <toshok@ximian.com>
7196         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
7197         (set_Maximum): same.
7198         (set_Minimum): same.
7199         (set_SmallChange): same.
7200         (OnMouseUpSB): remove the call to refresh when releasing the
7201         thumb.  We shouldn't need it.
7202         
7203 2006-05-12  Miguel de Icaza  <miguel@novell.com>
7205         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
7206         AutoSize set to None, we do not need to relayout everything, we
7207         just need to invalidate the current region.
7209         (Draw): Do not draw the entire ClientArea, just redraw the
7210         clip area being passed.
7212         * MdiClient.cs: Make MdiClient constructor with the Form argument
7213         internal. 
7215 2006-05-12  Jackson Harper  <jackson@ximian.com>
7217         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
7218         parents background image,  but strangely not their own.
7219         - (DrawStatusBarPanel): Take into account horizontal alignment
7220         when drawing the strings and icons.
7222 2006-05-12  Mike Kestner  <mkestner@novell.com>
7224         * ListBox.cs: avoid invalidations for focus when the collection is
7225         empty. 
7227 2006-05-12  Chris Toshok  <toshok@ximian.com>
7229         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
7230         invalidate the entire thumb area.  Call InvalidateDirty which
7231         limits the redraw to the thumb itself and surrounding pixels.
7233         * XplatUIX11.cs (ScrollWindow): optimize copying.
7234         
7235 2006-05-12  Chris Toshok  <toshok@ximian.com>
7237         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
7238         Figure out the positioning/layout in a single pass instead of
7239         multiple recursive invocations.  Speeds up the initial display of
7240         the data grid.  Also, make many things private that were
7241         originally public but unused outside this class.
7243 2006-05-11  Jackson Harper  <jackson@ximian.com>
7245         * MdiClient.cs: Improved layout code.
7247 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
7249         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
7250           not SelectedObject.
7252 2006-05-11  Chris Toshok  <toshok@ximian.com>
7254         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
7255         union of that will always be {0,0,width,height}.
7257 2006-05-11  Jackson Harper  <jackson@ximian.com>
7259         * Form.cs: Match MS's DefaultSize for forms (they must have
7260         changed the size in sp2).
7262 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
7264         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
7266 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
7268         * TextControl.cs : Fixed bug #78109. This incorrect position
7269           comparison caused crash on automatic line split.
7270         * TextBoxBase.cs : reduce duplicate code.
7272 2006-05-10  Jackson Harper  <jackson@ximian.com>
7274         * MdiClient.cs: Active form is only sent to the back when using
7275         the Next form functionality, when a form is clicked the current
7276         active shouldn't be sent to the back.
7277         - Layout the mdi windows when the container is first made visible.
7278         * Form.cs: Give the MdiClient a ref to the containing form when we
7279         create it.
7280         
7281 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
7283         * LinkLabel.cs : link_font could be uninitialized, so populate one
7284           before actual use. Fixed bug #78340.
7286 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
7288         * XplatUIX11.cs : clipboard format native value is IntPtr.
7289           Fixed bug #78283.
7291 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7293         * Control.cs: 
7294           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
7295             which is passed up the parent chain by DefWndProc
7296           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
7297             to DefWndProc (#77956)
7298         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
7300 2006-05-10  Jackson Harper  <jackson@ximian.com>
7302         * MdiClient.cs: We need to remove the controls from the mdi
7303         collection, when we close the window.
7304         * MdiWindowManager.cs: Special handling of closing mdi windows.
7305         * InternalWindowManager.cs: Make the close method virtual so the
7306         mdi window manager can handle it specially.
7308 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
7310         * DataGrid.cs:
7311           - Recalculate grid when the data source has changed
7312           - Matches styles provided by user from all data sources types
7313         * DataGridTableStyle.cs: For columns that provided by the user set the
7314         with the preferred value is there was unassigned.
7315         * CurrencyManager.cs: throw OnItemChanged event
7317 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
7319         * PictureBox.cs: Don't animate until handle is created. Start animation
7320           when handle is created.
7322 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7324         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
7325           current codebase.
7326         * XEventQueue.cs: We don't need to provide the extra info
7328 2006-05-10  Jackson Harper  <jackson@ximian.com>
7330         * MdiClient.cs: If the mdi clients parent form has a background
7331         image set, we draw that background image for the mdi area's
7332         background.
7334 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7336         * TextBoxBase.cs: Set IBeam cursor (#78347)
7338 2006-05-10  Mike Kestner  <mkestner@novell.com>
7340         * ToolBar.cs: fix some text padding issues with ButtonSize
7341         calculation. Update the default size to match MS documentation.
7342         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
7343         button size. Fixes #78296.
7345 2006-05-10  Mike Kestner  <mkestner@novell.com>
7347         * ListBox.cs: use is_visible for scrollbar positioning in case the
7348         control isn't on screen yet.  Fix off by one with Right vs Width
7349         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
7350         
7351 2006-05-10  Jackson Harper  <jackson@ximian.com>
7353         * X11Dnd.cs: Drop to a control with another control on top of it.
7354         * ToolBar.cs: Work on a copy of the buttons list, so that it can
7355         be modified in click handlers. TODO: Look for similar problems in
7356         other controls.
7358 2006-05-09  Jackson Harper  <jackson@ximian.com>
7360         * Form.cs: Window managers need the old window state when setting
7361         window state now.
7362         * InternalWindowManager.cs: Allow the base mdi window manager to
7363         handle more of the MDI only stuff (like maximize buttons).
7364         * MdiWindowManager.cs: Fix some snafus in changing the window
7365         state.  Add all the menu functionality, for both popup and
7366         maximized menus.
7367         * MdiClient.cs: When a new form is selected the currently
7368         activated form is sent to the back, this matches MS.
7369         - Implement a new method to activate the next mdi child window.
7371 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
7373         * Control.cs: 
7374           - Added new InternalCapture method to allow controls to prevent
7375             the capture behaviour on the click handlers
7376           - Switched to use InternalCapture
7377         * ComboBox.cs:
7378           - Using InternalCapture to prevent mouse captures from being released
7379             on mouse button release (Fixes #78100)
7380         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
7381           returns Form borders if a caption is present. (Fixes #78310)
7383 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
7385         * TreeNode.cs: Changed serialization .ctor to not require every field
7386           to be present. (#78265)
7387         * OwnerDrawPropertyBag.cs: Added serialization .ctor
7389 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
7391         * MimeIcon.cs: for is faster than foreach for strings.
7393 2006-05-05  Mike Kestner  <mkestner@novell.com>
7395         * CheckedListBox.cs: update check handling code to not use selected.
7396         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
7397         behavior for visual feedback, motion response, shift/ctrl handling,
7398         and properly deal with all 4 selection modes. Updates to bounds
7399         handling logic.  Add scroll wheel support. [Fixes #77842]
7401 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
7403         * ListView.cs:
7404           - Moved adding of Implicit controls into .ctor. That way, subsequent
7405             creation of the controls will not cause them to think they are 
7406             toplevel windows (fixes #78200 header problem)
7407           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
7408           - Switched visibility setting of header control to use internal field
7409             to avoid triggering handle creation
7410           - Now checking if handle is created before causing a refresh when items
7411             are added (This makes us now match handle creation time with MS)
7412         * Splitter.cs: Removed loading of private splitter cursor, switched to
7413           Cursors version now that that is loading the right ones
7414         * Cursors.cs: Load proper splitter cursors from resources
7415         * Cursor.cs: Added second method of loading resource cursors for the 
7416           VS.Net users amongst us
7418 2006-05-05  Mike Kestner  <mkestner@novell.com>
7420         * ListView.cs: give header_control a minimum size based on the
7421         ListView size.
7423 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
7425         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
7426           window seems to do that with metacity, so set that type. (#78120)
7428 2006-05-05  Mike Kestner  <mkestner@novell.com>
7430         * ListViewItem.cs: fix Details mode checkbox layout bug.
7431         * ThemeWin32Classic.cs: draw a ListView column header for unused space
7432         at the end of the header, if it exists. [Fixes for #78200]
7434 2006-05-04  Jackson Harper  <jackson@ximian.com>
7436         * MdiClient.cs: Add a helper property to get the container form.
7437         * MdiWindowManager.cs: We have to make sure to use the menu origin
7438         when drawing the icons and buttons, this fixes maximized window
7439         icons/buttons on win32.
7440         * InternalWindowManager.cs: Reset the restore captions when a
7441         window goes from Maximized to Minimized and vice versa. Move the
7442         DrawMaximizedButtons into the MdiWindowManager source, tool
7443         windows can't be maximized. NOTE: This could use a little
7444         refactoring if time ever permits.
7445         
7446 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7448         * TextBox.cs: Add MWFCategoryAttributes
7449         * TextBoxBase.cs: Add MWFCategoryAttributes
7450         * Form.cs: Add MWFCategoryAttributes
7452 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7454         * Control.cs: Add MWFCategoryAttributes
7455         * ScrollableControl.cs: Add MWFCategoryAttributes
7457 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
7459         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
7460           Divider is true. Fix a little glitch in PropertyToolBar
7461           drawing code
7463 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
7465         * Control.cs:
7466           - Dispose: Call base.Dispose, this causes the disposed event
7467             to be fired (and probably other, more important stuff)
7468           - SetVisibleCore: Set is_visible to true after creating the
7469             window so that the window still gets created invisible (if
7470             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
7471             to generate a WM_ACTIVE message
7472         * Form.cs: Call Dispose when we want to destroy the window, instead of
7473           just destroying the handle (Dispose will do that for us)
7474         * XplatUIX11.cs:
7475           - RootWindow also needs a queue, so we can properly process the
7476             property change events from RootWindow (like Activate)
7477           - Generatic synthetic WM_ACTIVE message when the active window is
7478             being destroyed
7480 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7482         * LinkLabel.cs: Trigger a recalc of our label dimensions when
7483           bounds are changed
7485 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
7487         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
7488           for determining width and height (image might not be assigned if
7489           we're drawing an imagelist)
7491 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7493         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
7494         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
7495           height from system
7496         * Theme.cs: No longer returns hardcoded menu height, instead calls
7497           new driver method
7498         * Form.cs (OnLoad): Scaling happens before triggering Load events 
7499           on MS (# 78257)
7501 2006-05-01  Mike Kestner  <mkestner@novell.com>
7503         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
7505 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
7507         * TextBoxBase.cs: Removed Fixme
7508         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
7510 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
7512         * XplatUIX11.cs:
7513           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
7514             the rectangle relative to the parent, considering borders. We
7515             don't really want that.
7516           - ScrollWindow: Fixed warning to be more understandable
7517         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
7518           scrollbars and scroll only the visible area
7519         * RichTextBox.cs: Removed debug output
7521 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7523         * NumericUpDown.cs (Text): Just use base
7524         * UpDownBase.cs: Ensure txtView is created before using it
7526 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7528         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
7529           casting to IntPtr to avoid 64bit overflow errors
7531 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7533         * Control.cs:
7534           - AllowDrop: Don't force handle creation.
7535           - CreateHandle: Added call to tell driver if we're allowed to drop
7537 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7539         * FileDialog.cs: Remember the last directory not only for the
7540           current instance but also for new FileDialog instances.
7542 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7543         
7544         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
7545           broke sending async messages
7547 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7549         * XplatUIX11.cs:
7550           - ScrollWindow: Fixed method. We finally generate expose events again
7551             for scrolled areas. This was causing 'garbage' when scrolling
7552             textbox and other controls that used ScrollWindow
7553           - Switched from using the regular queue for paint events to the MS 
7554             model of 'generating' paint events when the queue is empty.
7555             We use the new XQueueEvent.Paint subclass to store which windows
7556             need painting.
7557           - AddExpose now takes the x/y/width/height of the exposed area
7558             and inserts the window into the paint queue if not already there
7559           - InvalidateWholeWindow: Switched to use new AddExpose method
7560           - UpdateMessageQueue: Added which queue to monitor for paint events
7561           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
7562             the unlikely case nothing above handles it. We reset the expose
7563             pending states to get them off the queue.
7564           - GetMessage: Now pulls a paint event if no other events are in the
7565             queue
7566           - Invalidate: Switched to new AddExpose method
7567           - PeekMessage: Updated to understand pending paint events
7568           - UpdateWindow: Fixed logic bug. We were only updating if the window
7569             didn't need updating. Also switched to sending WM_PAINT directly,
7570             like MS does.
7571         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
7572           and random access Remove(). The random access is needed to handle
7573           UpdateWindow() where a WM_PAINT is sent directly without accessing
7574           the queue.
7575         * ScrollBar.cs: Added Update() calls to cause immediate updates to
7576           allow for better feedback when scrolling. Scrollbars are small and
7577           the immediate update should make it 'feel' more responsive without
7578           slowing things down. ScrollBar still needs it's invaliate logic
7579           updated to not always invalidate the whole bar on certain changes.
7581 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7583         * Control.cs:
7584         (BackColor): if the control does not support a transparent background,
7585         return the default backcolor when the parent backcolor is transparent.
7587 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
7589         * Application.cs: Updated to new StartLoop/GetMessage API
7590         * RichTextBox.cs: Provide some output on RTF parsing errors
7591         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
7592           new queue_id argument to GetMessage and PeekMessage to allow faster
7593           handling of per-thread queues in drivers.
7594         * Hwnd.cs: Added Queue tracking and property
7595         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
7596         * XEventQueue.cs: Added thread trackingA
7597         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
7598         * XplatUIX11.cs:
7599           - Implemented new per-thread queue
7600           - GetMessage: Fixed return/break behaviour on several cases. We were
7601             returning stale messages in some cases, instead of just processing
7602             the next message
7604 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7606         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
7608 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
7610         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
7611           fixed off-by-one comparisons between Width/Height and Right/Bottom.
7613 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7615         * PropertyGridView.cs: Fix drop down width.
7617 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7619         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
7620           a mess in DrawToolBar, so I removed one of them.
7622 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7624         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
7625           needed (clip). Otherwise we get artifacts.
7627 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7629         * FixedSizeTextBox.cs: Added constructor to allow specifying which
7630           dimension is fixed
7631         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
7632           and switched FixedSizeTextBox to only be fixed vertical (#78116)
7633         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
7634           if it matches the scale base font (avoids unneeded scaling)
7636 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7638         * X11DesktopColors.cs: One gtk_init_check should be enough
7640 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
7642         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
7643           match MS behaviour
7645 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7647         * TextBoxBase.cs: 
7648           - Generate OnTextChanged for Backspace even if we're only deleting
7649             the current selection
7650           - When setting the Text property, only select all text if the
7651             control does not have focus when it is being set. Otherwise
7652             just place the cursor at the beginning of the control
7654 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7656         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
7657           Added a little helper to draw PropertyGrid ToolBar with a different
7658           border and a different BackColor.
7659         * PropertyGrid.cs: Some background parts didn't get painted with the
7660           correct background color. Added a class that helps us to draw the
7661           correct border for PropertyGridView and a class that helps us to
7662           draw ToolBars with a different backcolor
7663         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
7665 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
7667         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
7668         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
7670 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7672         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
7673           into the palette entries. Also, since we're working on a copy
7674           we needed to copy the palette back onto the bitmap.
7675         * Cursor.cs: Same fix as XplatUIWin32.cs.
7677 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
7679         * ImageListStreamer.cs: Need to read the var (or we're off)
7681 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7683         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
7684           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
7685           TextBoxBase.cs: Unused var fixes
7686         * AxHost.cs: Small 2.0 fix
7687         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
7688           as it seems that is what at least Metacity expects. This will make
7689           icons show up on 64bit platforms. We still have some 64bit size
7690           issues, though, since the startup app window size still won't match.
7692 2006-04-25  Mike Kestner  <mkestner@novell.com>
7694         * *.cs: cleanup newly reported exception var unused warnings.
7696 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7698         * ThemeWin32Classic.cs: Button image alignment now matches exactly
7699           ms
7701 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7703         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
7704           image. The image position is always the same, no matter if the
7705           button is pressed or not.
7707 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7709         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
7710           selection and set the correct filename for SaveFileDialog.
7711           Patch by Emery Conrad.
7713 2006-04-24  Mike Kestner  <mkestner@novell.com>
7715         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
7716         check for item.X outside the ClientRect instead of item.Y. Fixes
7717         #78151.
7719 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7721         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
7722         trust that value blindly and do some sanity check. Fixes bug #77814.
7724 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7726         * ImageListStreamer.cs: save the mask as a 1bpp image.
7728 2006-04-21  Mike Kestner  <mkestner@novell.com>
7730         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
7731         pass Checked and Indeterminate to the Theme Engine. Improve
7732         encapsulation with ListBox.
7733         * ListBox.cs: Keep a StringFormat instead of calculating it every item
7734         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
7735         nested types.  Move all CheckState functionality to CheckedListBox.
7736         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
7737         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
7738         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
7739         single base list. Fix scrollbar sizing and placement to mirror MS.
7740         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
7741         used.
7742         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
7743         for CheckedListBox by using new DrawItemState info.  Center the
7744         checkboxes on the items. Use new StringFormat property.
7746 2006-04-18  Jackson Harper  <jackson@ximian.com>
7748         * Form.cs: MdiChildren don't do default locations the same way as
7749         regular forms.  This prevents a crash when trying to position the
7750         mdi windows.
7752 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
7754         * PropertyGridTextBox.cs: Formatting, copyright
7755         * PropertiesTab.cs: Formatting
7756         * PropertyGrid.cs: Formatting
7757         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
7758           click toggling of values
7759           
7760 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
7762         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
7763         * Control.cs (.ctor): verify_thread_handle is static, don't reset
7764           every time a control is created
7765         * Application.cs: Removed obsolete EnableRTLMirroring method
7767 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
7769         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
7770         SelectedIndex to -1. Fixes bug #78121.
7772 2006-04-17  Jackson Harper  <jackson@ximian.com>
7774         * Binding.cs: Handle null values for Current and BindingContext.
7775         This occurs when binding is a little delayed.
7776         * CurrencyManager.cs: return null for Current when there are no
7777         items in the list.
7778         - Hookup to the listchanged event on the DataView and update
7779         bindings when the list is changed.  This fixes late binding of
7780         controls.
7782 2006-04-17  Jackson Harper  <jackson@ximian.com>
7784         * X11Dnd.cs:
7785         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
7786         Ringenbach.
7788 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
7790         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
7791           place
7792         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
7793           with the correct ButtonState
7795 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
7797         * XplatUIX11.cs: Improved distinguishing between window types to
7798           tell the WM a type closer to what the app wants (Fixes #78107)
7800 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7802         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
7803           GrabHandle
7805 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7807         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
7808           drawing code to reflect the size grip changes
7810 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7812         * ImageListStreamer.cs: fix handling of the mask that follows the main
7813         bitmap when deserializing and serialize it properly. The generated mask
7814         should better be a 1bpp image, but I'll do that later.
7816 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7818         * FileDialog.cs: Show something in the DirComboBox on *nix if the
7819           path doesn't fit into some of our Current.Places
7821 2006-04-13  Jackson Harper  <jackson@ximian.com>
7823         * ComboBox.cs: Use borders instead of drawing our own decorations,
7824         try to obey correct rules for heights.
7825         * Theme.cs:
7826         * ThemeNice.cs:
7827         * ThemeClearLooks.cs:
7828         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
7829         this is now handled by borders.
7830         - Remove unused DrawListBoxDecorationSize method.
7831         
7832 2006-04-13  Mike Kestner  <mkestner@novell.com>
7834         * MenuAPI.cs: null guarding for the disbled click check fixes crash
7835         reported by Alex.
7837 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7839         * ThemeWin32Classic.cs: 
7840           - Fixed CPDrawStringDisabled
7841           - Corrected drawing of disabled menu items
7842           - Fixed drawing of disabled radio buttons (bug #78095)
7843           - Draw check in a disabled CheckBox with color ControlDark 
7845 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7847         * Form.cs: Use the provided width when calculating the menu size;
7848           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
7849           and ClientSize.Width won't be updated yet
7850         * Application.cs: Use Visible instead of Show() to make form visible,
7851           this way we create the handle later and menusize is considered
7853 2006-04-12  Mike Kestner  <mkestner@novell.com>
7855         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
7856         reporting.
7858 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7860         * TextBox.cs: Implemented context menu
7862 2006-04-12  Mike Kestner  <mkestner@novell.com>
7864         * ListView.cs: implement box selection. fixes #77838.
7865         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
7867 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7869         * XplatUIX11.cs: Added setting of window type when transient window
7870           is created (metacity would move it otherwise)
7871         * X11Structs.cs: Added WINDOW_TYPE atoms
7872         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
7873           background (the control is Opaque but still wants transparent
7874           backgrounds)
7876 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7878         * Control.cs: Added OnPaintBackgroundInternal to allow controls
7879           that set Opaque but don't mean it (like all ButtonBase-derived
7880           controls) to still draw their background
7881         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
7882           the background
7884 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7886         * Control.cs (PaintControlBackground): Set the graphics object
7887           on our PaintEvent to null to prevent it from being disposed
7888           when the PaintEvent gets disposed
7890 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
7892         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
7893         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
7895 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7897         * Control.cs: 
7898           - Added transparency check to BackColor property. Transparent
7899             backgrounds are only allowed if the control styles permit it
7900           - Added recursive painting of parent control background and
7901             foreground if a control with a transparent backcolor is drawn
7902             (Thanks to Tim Ringenback for providing his 'hack' as a base
7903              for this patch) Fixes #77985 and #78026.
7904           - Added Opaque style check before calling OnPaintBackground, no
7905             need to draw the background if the control is opaque
7906           - Removed ControlAccessibleObject owner variable (inherited from
7907             base, no need to define again)
7908           - Added some documentation links explaining the drawing events
7909             and styles
7911 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7913         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
7914           that the affected control is the located at the left border of our
7915           parent (Fixes #77936)
7917 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7919         * TextBoxBase.cs: When rendering disabled or readonly controls,
7920           draw the background with 'Control' instead of 'Window' color as
7921           long as the user hasn't specifically set a color
7923 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7925         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
7926           since that won't be updated if the user types text (only if it's
7927           programatically set)
7929 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7931         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
7932           layout changes do to app-triggered resizes will have the proper
7933           display rectangle for layout
7935 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
7937         * ThemeWin32Classic.cs:
7938           - Make use of the SystemBrushes and SystemPens wherever possible
7939           - Corrected some highlight colors
7940           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
7941             drawing
7942         * Theme.cs: Added Empty field to CPColor struct
7944 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7946         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
7947           is displayed when calculating the display rectangle. Thanks to Mike
7948           for teaching me the err of my ways.
7950 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
7952         * ScrollableControl.cs:
7953           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
7954             (instead of 0,0) and we now return the real width/height instead of
7955             just the clientrectangle, adjusted for padding. The rectangle is
7956             now cached and created by the new CalculateDisplayRectangle method.
7957           - Created new CalculateDisplayRectange method, which basically does
7958             what get_DisplayRectangle() did originally, but now using the 
7959             right edge instead of DisplayRectangle to determine the size of
7960             our scrollbars
7961           - get_Canvas(): Fixed it to properly calculate canvas for 
7962             right/bottom controls which seem to be placed to the right/bottom
7963             of any controls that have a fixed location
7964           - Removed TODO that's taken care of
7965           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
7966             and SetDisplayRectLocation according to new MSDN2 docs
7967           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
7968             event when that is called, this is added for compatibility
7969           - ScrollControlIntoView(): Implemented.
7970           - Switched scrollbars to be implicit, they shouldn't be selectable
7971         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
7972           call it when the active control is set/changed
7973         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
7974         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
7975           implicit_control variable (used for native Win32 message generation)
7976         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
7977           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
7978         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
7979         * XplatUIStructs.cs: Added ScrollBarCommands enum
7981 2006-04-10  Jackson Harper  <jackson@ximian.com>
7983         * ButtonBase.cs:
7984         * CheckedListBox.cs:
7985         * ComboBox.cs:
7986         * DataGrid.cs:
7987         * DataGridView.cs:
7988         * Form.cs:
7989         * GroupBox.cs:
7990         * ListBox.cs:
7991         * PrintPreviewControl.cs:
7992         * ProgressBar.cs:
7993         * PropertyGrid.cs:
7994         * Splitter.cs:
7995         * StatusBar.cs:
7996         * TrackBar.cs:
7997         * UpDownBase.cs: Fixup base event overrides.
7998         
7999 2006-04-06  Mike Kestner  <mkestner@novell.com>
8001         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
8002         all user-initiated value changes to min <= value <= max-thumbsz+1.
8003         (set_Value): check for vert/horiz when calculating new thumb position.
8004         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
8005         like MS does.
8006         (OnMouseMoveSB): refactor the thumb dragging code and refine
8007         invalidation logic to reduce flicker.
8008         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
8009         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
8010         (UpdateThumbPosition): small code readability cleanup
8012 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
8014         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
8015           different
8017 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
8019         * ThemeNice.cs: Use a better graphics effect when a button is pressed
8021 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
8023         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
8024         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
8025           This dramatically reduces the number of Pen.Dispose calls. 
8026           Where possible call ResPool methods only once instead of calling it
8027           over and over again (for example for the same color).
8029 2006-04-06  Mike Kestner  <mkestner@novell.com>
8031         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
8032         Also remove an unused private field on the collection. Fixes #77972.
8034 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
8036         * ThemeNice.cs: Added ToolBar drawing code
8038 2006-04-06  Mike Kestner  <mkestner@novell.com>
8040         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
8041         I'm assuming that means we need to look up the toplevel for the
8042         provided control. Fixes the crash trace in #77911 but exposes another
8043         crash in some strange reflection usage in NDocGui.
8045 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
8047         * ThemeNice.cs: Gave it a little silver touch and added Images
8048           method
8049         * FontDialog.cs: FontDialog is not resizable
8050         * FileDialg.cs: Added SizeGripStyle.Show
8052 2006-04-05  Jackson Harper  <jackson@ximian.com>
8054         * KeyboardLayouts.cs: Remove warning.
8056 2006-04-05  Jackson Harper  <jackson@ximian.com>
8058         * Control.cs: Enable OnPaintInternal so we can use it for drawing
8059         all of our controls instead of Paint +=.
8060         * ListBox.cs:
8061         * ListView.cs:
8062         * MenuAPI.cs:
8063         * MessageBox.cs:
8064         * NotifyIcon.cs:
8065         * ProgressBar.cs:
8066         * ScrollBar.cs:
8067         * Splitter.cs:
8068         * StatusBar.cs:
8069         * TabControl.cs:
8070         * TextBoxBase.cs:
8071         * ToolBar.cs:
8072         * TrackBar.cs:
8073         * UpDownBase.cs:
8074         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
8075         use OnPaintInternal. Remove Width/Height and Visible checks in
8076         paint handler, this is done at a higher level now.
8077         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
8078         * PaintEventArgs.cs: Add a handled flag so controls that don't
8079         want anymore painting after OnPaintInternal can make sure OnPaint
8080         isn't called.
8082 2006-04-05  Mike Kestner  <mkestner@novell.com>
8084         * Form.cs: fix the menu WndProc hacks to respect the native enabled
8085         state of the form, so that we don't process events when Modal dialogs
8086         are up. Fixes #77922.
8088 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
8090         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
8091           checking is done.
8093 2006-04-05  Mike Kestner  <mkestner@novell.com>
8095         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
8097 2006-04-05  Mike Kestner  <mkestner@novell.com>
8099         * ListView.cs (HeaderMouseMove): null guarding for the over column
8100         when setting up the drag_to_index.  Fixes #78015.
8102 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
8104         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
8105           in the taskbar. Transient windows seem to accomplish that.
8107 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
8109         * Form.cs:
8110           - Re-enabled CreateParams.X/Y code for FormStartPosition
8111           - Added code for manual placement when creating the Control
8112           - Incomplete patch to treat MDI forms differently when
8113             setting the ClientSizeCore. (Still need to figure out handling
8114             x/y coords there)
8115         * XplatUIX11.cs:
8116           - When we're explicitly setting the X/Y position of a non-Child
8117             window, let the WM know. Metacity really wants this.
8119 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8121         * ThemeNice.cs: Added CPDrawButton
8123 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8125         * ThemeNice.cs: Changed the color for focused buttons and activated
8126           the arrows for small scroll buttons.
8128 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8130         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
8131           anymore. Changed some method modifiers to protected (virtual)
8132         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
8133           changes
8134         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
8135           Updated drawing of menus, buttons and progressbars; added
8136           CPDrawBorder3D 
8138 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8140         * ImageListStreamer.cs: implemented serialization/deserialization
8141         of the images.
8143 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
8145         * ThemeWin32Classic.cs:
8146           - Removed all the DrawFrameControl stuff; CPDrawButton,
8147             CPDrawCheckBox and CPDrawRadioButton are now handled directly
8148             inside the methods
8149           - Updated and corrected the drawing code of CPDrawButton,
8150             CPDrawCheckBox and CPDrawRadioButton to better match ms
8151           - Updated theme checkbox and radiobutton code to use the CP*
8152             methods
8154 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
8156         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
8157           bug is fixed
8159 2006-03-31  Jackson Harper  <jackson@ximian.com>
8161         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
8162         sometimes.
8163         * UpDownBase.cs: Don't CreateGraphics manually, use a
8164         Refresh. Ideally we would invalidate the correct areas here.
8166 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
8168         * XplatUIX11.cs: 
8169           - We now track the mapping state of windows. If a window (or 
8170             one of it's parents) is not mapped we no longer permit
8171             WM_PAINT messages to be generated since we'd otherwise get 
8172             lots of BadMatch X errors. Jackson did all the work figuring
8173             out the problem.
8174           - Destroying the caret if the window it's contained in is 
8175             destroyed. Can't use regular DestroyCaret method since it
8176             might fall into a drawing function (trying to remove the
8177             caret) and with that generate new BadMatch errors. Again,
8178             Jackson tracked this down.
8179           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
8180             make sure we send the messages to all windows. (The old code
8181             would send the WM_DESTROY to the window, and then all child
8182             windows would be 'gone' because the WM_DESTROY handle lookup
8183             would no longer find the destroyed window)
8184         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
8185         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
8187 2006-03-31  Jackson Harper  <jackson@ximian.com>
8189         * ScrollableControl.cs: Dont recalc if we are not visible.
8191 2006-03-31  Mike Kestner  <mkestner@novell.com>
8193         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
8194         the visibility branch.
8196 2006-03-31  Jackson Harper  <jackson@ximian.com>
8198         * ScrollBar.cs: Cap values when incrementing/decrementing.
8200 2006-03-31  Mike Kestner  <mkestner@novell.com>
8202         * MenuAPI.cs: setup menu.tracker for popup/context menus.
8203         * ToolTip.cs: guard against timer expirations with no active control.
8204         Not sure why it happened.
8206 2006-03-31  Mike Kestner  <mkestner@novell.com>
8208         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
8209         text.
8210         * ToolTip.cs: Position the tooltip based on where the cursor is at
8211         popup time, not at MouseEnter time.  Add a Down state so that we don't
8212         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
8213         positioning offset. Lookup DisplaySize at positioning time, since it
8214         can theoretically change during invocation.
8215         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
8216         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
8218 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8220         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
8221           Fixes behaviour when the Text property of the box is String.Empty
8223 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
8225         * XplatUIX11.cs: Only send mouseleave for our client windows, not
8226           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
8227           a window)
8229 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8231         * FileDialog.cs: Visual enhancement for the popup buttons in 
8232           PopupButtonPanel
8234 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8236         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
8237           code
8239 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
8241         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
8242           highlighted menu items to match ms
8244 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
8246         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
8248 2006-03-30  Mike Kestner  <mkestner@novell.com>
8250         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
8251         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
8252         go active to account for HotLight to Selected transition.
8253         * MenuItem.cs: add internal Selected prop. Fill out the Status
8254         property by calculating it from item info. Add HotLight,
8255         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
8257 2006-03-30  Mike Kestner  <mkestner@novell.com>
8259         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
8261 2006-03-29  Jackson Harper  <jackson@ximian.com>
8263         * Form.cs: Implement TODO.
8265 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
8267         * PrintPreviewDialog.cs: Implemented missing methods and events; still
8268           missing proper dialog setup in the constructor
8270 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
8272         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
8273         * Control.cs:
8274           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
8275           - Fixed ResetBindings and removed TODO
8276           - Added check for cross-thread calls to get_Handle()
8277           - Added Marshaller attribute for set_Font to satisfy class status
8278         * FontDialog.cs: Removed TODOs that seemed implemented
8279         * UpDownBase.cs: Removed unneeded TODO and Fixme
8280         * MessageBox.cs: Implemented support for Default button and removed TODO
8281         * FileDialog.cs: Removed obsolete TODO
8282         * DomainUpDown.cs: Removed obsolete TODO
8283         * ButtonBase.cs: Removed obsolete TODO
8284         * XplatUIWin32.cs: Removed obsolete TODO
8285         * Form.cs:
8286           - Removed obsolete TODO
8287           - Calling CheckAcceptButton when the acceptbutton is changed to allow
8288             internal status updates
8289           - Making sure the active control is selected when the control is created
8290         * CurrencyManager.cs: Removed obsolete TODO
8292 2006-03-29  Mike Kestner  <mkestner@novell.com>
8294         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
8295         of PrintPreviewDialog and RichTextBox.
8297 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
8299         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
8300           DarkDark, Light and LightLight colors for a specific color
8301         * ThemeWin32Classic.cs:
8302           - Use Button drawing code to draw RadioButtons and CheckBoxes with
8303             Appearance = Button 
8304           - Make use of the new ResPool helper CPColor
8305           - Draw ProgressBar and StatusBar with correct 3D borders
8307 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
8309         * ColorDialog.cs: Return selected color. Fixes bug #77940.
8311 2006-03-28  Mike Kestner  <mkestner@novell.com>
8313         * ListView.cs: fix Icon layout to plan for scrollbar widths when
8314         calculating col/row counts.
8316 2006-03-28  Mike Kestner  <mkestner@novell.com>
8318         * ColumnHeader.cs:
8319         * ListView.cs:
8320         * ListViewItem.cs:
8321         * Menu.cs: 
8322         switch to explicit interface method implementation for some methods
8323         corcompare identifies as inconsistent with MS.
8325 2006-03-28  Mike Kestner  <mkestner@novell.com>
8327         * MainMenu.cs: 
8328         * Menu.cs:
8329         add a few missing methods from the class status output.
8331 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
8333         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
8334           correct.
8336 2006-03-28  Mike Kestner  <mkestner@novell.com>
8338         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
8340 2006-03-27  Mike Kestner  <mkestner@novell.com>
8342         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
8343         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
8345 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
8347         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
8349 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8351         * ThemeWin32Classic.cs:
8352           - GroupBox: Inserted a little gap between the text and the lines
8353             on the right side
8354           - Made the code in CPDrawBorder3D more readable
8355           - Corrected the drawing location of the up and down arrows in 
8356             CPDrawScrollButton
8358 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8360         * ControlPaint.cs: Corrected line widths in DrawBorder for
8361           ButtonBorderStyle Inset and Outset
8363 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8365         * ThemeWin32Classic.cs:
8366           - Rewrote the totally broken CPDrawBorder3D method. That was
8367             one of the main problems for the terrific ThemeWin32Classic
8368             look
8369           - Updated and corrected Button drawing
8370           - Correct the dimensions of the SizeGrip to match ms ones
8371           - Removed a small drawing glitch in DrawComboBoxEditDecorations
8372         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
8373           Border3DStyle.Sunken to match ms.
8375 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8377         * ThemeWin32Classic.cs: First small part of the "de-uglify
8378           ThemeWin32Classic" effort, SizeGrip
8380 2006-03-24  Jackson Harper  <jackson@ximian.com>
8382         * XplatUIX11.cs: Give a max idle time of one second, this matches
8383         MS and forces an Idle event every second when there are no other
8384         events in the queue.
8386 2006-03-24  Mike Kestner  <mkestner@novell.com>
8388         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
8389         * ListView.Item.cs: fix layout issues with null image lists and images
8390         smaller than checkbox size.
8391         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
8392         mode like MS does.  It's weird, but consistent.  ;-)
8393         Fixes #77890.
8395 2006-03-24  Mike Kestner  <mkestner@novell.com>
8397         * ListView.cs: Scroll wheel support for the item control.  Fixes
8398         #77839.
8400 2006-03-23  Jackson Harper  <jackson@ximian.com>
8402         * ScrollableControl.cs: Special case negative sized areas, not
8403         zero.
8404         * MonthCalendar.cs: Save the rect of the clicked date so we can
8405         use it for invalidation.
8406         - Try to cut down on the number of invalidates
8407         - Invalidate the rect the mouse is over and was over when moving
8408         the mouse, so we get the focus box following the cursor.
8410 2006-03-23  Mike Kestner  <mkestner@novell.com>
8412         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
8413         focus rectangle drawing. Fixes #77835.
8415 2006-03-23  Mike Kestner  <mkestner@novell.com>
8417         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
8418         the if and else if and reverting back to the original == check on the
8419         None conditional.
8421 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
8423         * FontDialog.cs: Update the example panel if the selected index of
8424           the fontListBox changes.
8426 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
8428         * FileDialog.cs: Make FileDialog remember which directory it was in
8429           last in the same execution.
8431 2006-03-22  Mike Kestner  <mkestner@novell.com>
8433         * FileDialog.cs: make the DropDownMenu on the toolbar display
8434         RadioChecks since they are mutually exclusive and that's what MS does.
8436 2006-03-22  Mike Kestner  <mkestner@novell.com>
8438         * Theme.cs: add Color param to CPDrawMenuGlyph.
8439         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
8440         checks and radio marks and arrows are visible on highlighted items.
8441         * ControlPaint.cs: update to use new Theme signature.
8443 2006-03-22  Mike Kestner  <mkestner@novell.com>
8445         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
8446         is active. Fixes #77870.
8448 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8450         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
8451           to be focused/selected after startup
8453 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8455         * ColorDialog.cs: 
8456           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
8457             CustomColors and ShowHelp properties
8458           - Some internal rewrites to get better results when using the
8459             ColorMatrix
8461 2006-03-22  Mike Kestner  <mkestner@novell.com>
8463         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
8464         HoverSelection.  Fixes #77836.
8466 2006-03-22  Mike Kestner  <mkestner@novell.com>
8468         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
8469         ToggleButtons.  (De)Sensitize the Back button around a stack count of
8470         1, not 0.  Update ButtonSize based on a pixel count of the win32
8471         control.  Adjust the toolbar size/location for new button size.
8473 2006-03-22  Jackson Harper  <jackson@ximian.com>
8475         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
8476         true.
8477         * ScrollBar.cs: When doing increments and decrements we need to
8478         set the Value property so that ValueChanged gets raised. A
8479         possible optimization here would be to make an internal SetValue
8480         that doesn't invalidate immediately.
8481         * ToolTip.cs: Tooltips get added to their container (when
8482         supplied) so they get disposed when the container is disposed.
8483         - Don't create tooltips for String.Empty. This prevents all these
8484         little 2-3 pixel windows from showing up when running nunit-gui
8485         and driving me mad.
8486         * Form.cs: Don't set topmost when setting the owner if the handles
8487         haven't been created yet.  The topmost set will happen when the
8488         handles are created.
8490 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
8492         * XplatUIX11.cs:
8493           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
8494           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
8495             visible (to allow them to recalculate their sizes)
8497 2006-03-21  Mike Kestner  <mkestner@novell.com>
8499         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
8500         methods. Removed a ton of redundant code.  Still not really happy with
8501         the border rendering, but I think that's mainly because of the
8502         ControlDarkDark being black instead of a dark grey. Depending on how 
8503         close we want to be, we might want to revisit those color choices.
8504         Among the new features added during the refactor were DropDownArrow
8505         pressed rendering, Disabled image rendering.  Proper flat appearance
8506         boundary rendering.  Removed the Divider and Wrapping dividers since I
8507         can't figure out any combination of themes and conditions to make the
8508         MS control draw a horizontal line on a toolbar despite what the
8509         Divider property docs indicate.
8510         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
8511         conditions and incorrect layout.  Updated to coding standard.
8512         * ToolBarButton.cs: refactored layout and positioning code from
8513         ToolBar to here.  Invalidate wherever possible instead of forcing
8514         redraws of the whole toolbar. 
8515         (Known remaining issues: explicit ButtonSize smaller than provided
8516         images.)
8518 2006-03-21  Mike Kestner  <mkestner@novell.com>
8520         * ContextMenu.cs (Show): use the position parameter instead of just
8521         showing at the MousePosition.
8523 2006-03-21  Jackson Harper  <jackson@ximian.com>
8525         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
8526         control handle this.
8527         * TreeNodeCollection.cs: If we are clearing the root node we need
8528         to reset top_node so calcs can still happen.
8529         * ThemeWin32Classic.cs: This is a Flags so we need to check
8530         properly.
8531         
8532 2006-03-21  Jackson Harper  <jackson@ximian.com>
8534         * DataGrid.cs: Create columns when the binding context has been
8535         changed.
8536         * X11Structs.cs: Keysyms are uints.
8537         - Add size to fix build.
8539 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
8541         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8542           XplatUIOSX.cs: 
8543           - Added ResetMouseHover method to allow controls to retrigger
8544             hovering if they need it more than once
8545           - Implemented MouseHoverTime and MouseHoverSize properties
8546         * Timer.cs: Start() must reset the interval
8547         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
8548           properties
8550 2006-03-21  Jackson Harper  <jackson@ximian.com>
8552         * X11Keyboard.cs: improved layout detection. Move the nonchar
8553         tables into this file.
8554         * KeyboardLayouts.cs: Move the tables into resource files.
8556 2006-03-21  Mike Kestner  <mkestner@novell.com>
8558         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
8560 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
8562         * Mime.cs: Various speed optimizations. Looking up mime types
8563           is now 2 times faster than before
8565 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
8567         * CreateParams.cs: Added internal menu field
8568         * Control.cs: 
8569           - Switched call order for UpdateBounds; now we always call
8570             the one that also takes ClientSize, and we're calculating the 
8571             client size via driver method in the others. The previous
8572             method of tracking client size by difference wasn't working
8573             for forms where even the starting client size wouldn't match
8574             the overall form size (due to borders) (Part of fix for #77729)
8575           - CreateParams(): Do not use parent.Handle unless the handle is
8576             already created. Causes havoc with Nexxia and throws off our
8577             creation of controls
8578         * XplatUIX11.cs:
8579           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
8580           - Switched handling of ConfigureNotify over to new PerformNCCalc 
8581             method (consolidates code)
8582           - Changed RequestNCRecalc to use new PerformNCCalc method
8583           - Added calls to RequestNCRecalc when menus and borders are changed
8584             to allow app to set NC size. (Part of fix for #77729) This matches
8585             when MS send a WM_NCRECALC on Win32 windows.
8586           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
8587             (Part of fix for #77729). This matches what MS does, they also
8588             send that message when the form is made visible.
8589           - XException.GetMessage: Improved usability of X errors by including
8590             a translation of the window into Hwnd and Control class
8591           - Improved debug info for window creation, reparenting and destruction
8592           - Created helper method WindowIsMapped() [Currently not used]
8593         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
8594         * Form.cs:
8595           - CreateParams: Now setting our menu on the new internal menu field
8596           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
8597             avoid calculating the same property twice
8598         * Hwnd.cs:
8599           - Improved usability of ToString() for debugging purposes
8600           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
8601             determine the height of the menu, instead of just the font. This
8602             required to also create a graphics context and to keep a bmp 
8603             around (for performance reasons)
8605 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
8607         * MenuAPI.cs: Added OnMouseUp method
8608         * Form.cs:
8609           - Now remembering the requested client size, avoids size errors
8610           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
8611             instead of base if the menu is active. This is required due to
8612             control now capturing and releasing on down/up and it would
8613             prematurely release our menu capture
8615 2006-03-17  Jackson Harper  <jackson@ximian.com>
8617         * KeyboardLayouts.cs: Add the czech layouts.
8619 2006-03-16  Jackson Harper  <jackson@ximian.com>
8621         * Control.cs: Use the viewport space when sizing not the controls
8622         client size, so things like ScrollableControl that effect the
8623         viewport size (when scrollbars are added) are computed correctly.
8624         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
8625         of ManagerEntrys.
8626         - Handle creating BindingManagers for null data sources.
8627         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
8628         source, otherwise when rows are added they are added to the 'fake'
8629         datasource and we will crash when trying to set the position in
8630         those rows.
8631         - Use Implicit scrollbars on the datagrid so they arent
8632         selectable.
8633         
8634 2006-03-16  Jackson Harper  <jackson@ximian.com>
8636         * Binding.cs:
8637         * InternalWindowManager.cs:
8638         * MdiWindowManager.cs:
8639         * X11Keyboard.cs: I really want Mike to love me again (fix
8640         compiler warnings).
8642 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
8644         * DataGrid.cs:
8645           - OnMouseDown: Switch to editing mode when clicking on the cell
8646                          even if we're clicking on the cell that's currently 
8647                          selected
8648           - ProcessGridKey: Left/Right now wrap like MS.Net does
8649           - ProcessGridKey: Tab now knows to add a new row when tab is
8650                             pressed in the cell of the last column of the 
8651                             last row
8652           - ProcessGridKey: Enter now adds another row  if pressed in the last
8653                             row and selectes the new row, same column cell
8654           - ProcessGridKey: Home/End navigate columns, not rows, like 
8655                             originally implemented
8656           - Broke ProcessKeyPreview code out into an extra Internal method
8657             so it can be called from the edit code
8658         * DataGridTextBox.cs (ProcessKeyMessage):
8659           - Switched to accept Tab keypresses
8660           - Added F2 handling to allow jumping to the end of the edited cell
8661           - Added logic to allow moving caret left/right inside edited cell
8662             and making the edited cell jump when the caret hits cell borders
8663           - Tab and Enter are now passed to the datagrid after being handled
8664         * TextBoxBase.cs:
8665           - Removed capture code now that Control handles it
8666           - set_SelectionStart now ensures caret is visible
8668 2006-03-16  Jackson Harper  <jackson@ximian.com>
8670         * TrackBar.cs: Debackwards the increment/decrement for handling
8671         mouse clicks on the bar with vertical trackbars.
8672         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
8673         bottom to match MS.
8675 2006-03-16  Mike Kestner  <mkestner@novell.com>
8677         * ListView.cs: make shift/ctrl keyboard and mouse selection 
8678         consistent with the MS control. Fix a bug in
8679         SelectedListViewItemCollection.Clear that was pissing me off for the
8680         better part of a day because the collection was being altered
8681         underneath us as we walked the list.
8683 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
8685         * Control.cs: Not sure how we could miss this so long, but it seems
8686           that MS.Net has Capture set all the way from before calling 
8687           OnMouseDown through sending the mouse events until after
8688           OnMouseUp. This will fix DataGrid's selection being set to end
8689           at the location of the MouseUp.
8691 2006-03-15  Jackson Harper  <jackson@ximian.com>
8693         * BindingContext.cs: Check the binding after its added so that it
8694           can initialize the binding managers and hookup to events.
8695         * Binding.cs: Data members seem to sometimes include rows/cols in
8696           the format Row.Column we now take this into account.
8697           - Hookup to the position changed event so we can update the
8698           control when the position has changed in the data set.
8699         * CurrencyManager.cs: Take into account the row/col naming
8700           convention when creating dataset tables.
8701         * BindingContext.cs: Using a newer better way of storing
8702           datasource/datamember pairs.  Hopefully this better matches MS for
8703           looking up binding managers.
8706 2006-03-15  Jackson Harper  <jackson@ximian.com>
8708         * BindingContext.cs: The currency manager needs the data member
8709         name, if the member is a data set we use the name to find the
8710         correct table.
8711         * CurrencyManager.cs: When creating the list prefer an IList over
8712         an IListSource.
8713         - Attempt to create a DataTable from a DataSet (TODO: might need
8714         some better error checking here, although MS doesn't seem to have much)
8715         - If we have a DataTable create a view and use it as our list.
8717 2006-03-15  Mike Kestner  <mkestner@novell.com>
8719         * ListView.cs: keep a matrix of the icon mode layout to facilitate
8720         keyboard navigation. Support Up/Down/Left/Right selection correctly
8721         for all 4 View modes.
8722         * ListViewItem.cs: add internal row/col fields for icon layouts.
8724 2006-03-15  Jackson Harper  <jackson@ximian.com>
8726         * TabControl.cs: Redraw the tabs when we resize so their newly
8727         calculated sizes are drawn on screen.
8728         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
8729         composite characters.
8730         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
8731         - filter events so that composite characters can be created
8732         patches by peter
8733         * X11Structs.cs: Add XIMProperties enum.
8735 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8737         * Control.cs (BringToFront, SendToBack): Don't use window or handle
8738           unless it's created
8740 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8742         * Control.cs (PerformLayout): We don't need to consider visiblity
8743           for anchoring, only for docking. This fixes 'whacky' alignment
8744           in listbox and other controls that use implicit scrollbars after
8745           the previous PerformLayout patch
8746         * ListBox.cs: Switched to use implicit scrollbars
8747           
8748 2006-03-14  Mike Kestner  <mkestner@novell.com>
8750         * ToolBar.cs: 
8751         * VScrollBar.cs:
8752         - chain up the "new event" overrides to base and use
8753         OnEvent to raise them.  Part of fix for bug #76509.
8755 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
8757         * FileDialog.cs: Do not select an item in the parent directory
8758           on backspace
8760 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8762         * Control.cs (PerformLayout): It would seem that we considered
8763           invisible windows for our layout. Not quite the right thing
8764           to do. Now we don't any longer, thereby fixing bug #76889.
8766 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8768         * Control.cs (CanFocus): I goofed. A control can have focus 
8769           even though it's not selectable. Made it match MS docs.
8771 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8773         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
8774           center by default (fixes #76895)
8775         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
8776           all uses of Border3DSides.All with the explicit ORd together
8777           Left|Right|Top|Bottom because I assume that nobody was aware 
8778           that All also implies a center fill. Most places I checked had
8779           a fill right above.
8780         * ProgressBarStyle.cs: Added
8782 2006-03-13  Mike Kestner  <mkestner@novell.com>
8784         * ListView.cs: fix breakage in drag shadow header positioning 
8785         from Peter's csc compilation fix.
8787 2006-03-13  Mike Kestner  <mkestner@novell.com>
8789         * ListView.cs: fix NRE produced by backspacing twice in a focused
8790         FileDialog.
8792 2006-03-13  Mike Kestner  <mkestner@novell.com>
8794         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
8796 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8798         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
8799           be changed
8800         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
8801           the allowed size before making programmatic size changes
8803 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
8805         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
8806           set, metacity is broken and will still use the emty sizes in 
8807           the struct. (Fix for #77089)
8809 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8811         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
8812           WindowExStyles and marked both enums as Flags
8813         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
8814           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
8815           to match WindowStyles split
8816         * XplatUIX11.cs:
8817           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
8818           - Updated to match WindowStyles split
8819         * XplatUIWin32.cs:
8820           - Fixed FosterParent creation, was using ExStyle on the Style field
8821             (This should help with Popup focus issues)
8822           - Updated to match WindowStyles split
8824 2006-03-13  Jackson Harper  <jackson@ximian.com>
8826         * MdiWindowManager.cs: Use the system menu height. Fixes some
8827         strange sizing issues.
8829 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8831         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
8832         * TextBoxBase.cs:
8833           - Scroll to caret after inserting text (#77672)
8834           - Make scroll range one pixel higher, fixes off-by-one error (and
8835             makes underlines visible on the last line)
8837 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
8839         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
8840           the keyboard state from being stuck with keys in 'pressed' state when
8841           focus is switched away via keyboard
8842         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
8843           reset the keyboard if no X11 KeyUp events are expected to come
8844         * X11Structs.cs: Switched type of Visible to bool to match driver
8846 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8848         * TextControl.cs:
8849           - Switched caret to be just 1 pixel wide, matches MS and looks less
8850             clunky
8851           - Moved caret display 1 pixel down from the top of the control
8852             to improve view
8853           - InsertCharAtCharet: Update the selection start if moving the caret
8854             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
8855           - No longer always creating the caret when the caret methods are
8856             called. Only the actual ShowCaret/HideCaret will do that now
8857           - Only setting caret visible if the owner control has focus
8858           - UpdateView: Added invalidation-shortcut logic for center and right 
8859             aligned text. Previously we'd update all according to the left
8860             logic which caused drawing errors. Also fixed height of invalidated
8861             areas, now properly invalidating the whole area (was off-by-one)
8862           - owner_HandleCreated: Always generate the document when the
8863             handle is created; this ensures that 
8864         * TextBoxBase.cs:
8865           - Fixed situation where caret would disappear under the right
8866             window border, also improved scrolling behaviour on left-
8867             aligned textboxes
8868           - Fixed right-aligned textboxes to have a border to the
8869             right instead of the caret being under the right border
8870         * XplatUIX11.cs:
8871           - Switched from 'nested' to simple visible/not visible tracking 
8872             for caret (part of fix for #77671)
8873           - No longer passing through translated FocusIn/FocusOut messages
8874             since we were notifying too often and the wrong windows. Instead
8875             we just notify our focussed window of receiving or loosing focus
8876         * XplatUIWin32.cs: Switched from 'nested' show/hide 
8877           counting for caret to simple visible yes/no behaviour (part of 
8878           fix for #77671)
8880 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8882         * Mime.cs: Remove debug code...
8884 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8886         * MimeGenerated.cs: Removed
8887         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
8888           and subclasses) from /usr/(local/)share/mime and
8889           $HOME/.local/share/mime.
8891 2006-03-10  Jackson Harper  <jackson@ximian.com>
8893         * MdiWindowManager.cs: Recalc the NC area when a window is
8894         maximized/restored so that the menu area is drawn on forms that
8895         don't have a menu.
8897 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8899         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8900           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
8901           us to force a WM_NCCALCRESIZE message being sent. This is needed
8902           for MDI maximizing.
8904 2006-03-10  Jackson Harper  <jackson@ximian.com>
8906         * Form.cs: We need to use the ActiveMenu when calculating menu
8907         height.
8908         - Fix nullref when the window manager hasn't been created yet.
8909         * Control.cs: Fix nullref when we try to bring a control to the
8910         front that has no parent.
8911         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
8912         height.
8913         - Add a dummy item to the maximized menu so it always has the
8914         correct height. Otherwise when there are no menus we don't get our
8915         icon and buttons.
8916         
8918 2006-03-10  Jackson Harper  <jackson@ximian.com>
8920         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
8921         stuff.
8922         * Form.cs: Make the window_state internal so the window managers
8923         can track it.
8924         - When an MDI child is maximized let its window manager create the
8925         main menu (so it can add its icon).
8926         - Notify the window managers of state changes
8927         - Let the window manager paint its buttons and handle button
8928         clicks on the menu when it is maximized.
8929         * InternalWindowManager.cs: Move the prev_bounds into the mdi
8930         window manager, since tool windows don't use it, only mdi windows.
8931         - Tell the main form that we don't want it to handle NCPAINT
8932         itself to avoid extra painting.
8933         - Handle clicks on a maximized windows menu.
8934         - Handle window state changes
8935         - Handle minimize/maximize clicks correctly by setting the window state.
8936         * MdiWindowManager.cs: Add an icon menu that (the menu you get
8937         when clicking on the forms icon).
8938         - New method to create a forms maximized menu. This is its normal
8939         menu + an icon.
8940         - Handle window state changes.
8941         - Handle sizing of maximized windows.  Maximized windows are just
8942         drawn bigger then the parent visible area. All controls are still
8943         there, they are just outside the visible area (this matches windows).
8944         * MdiClient.cs: No scrollbars when a child window is maximized.
8945         - Let the children windows figure out how big they should be when
8946         sizing maximized windows.
8947         - Implement a version of ArrangeIconicWindows somewhat similar to
8948         Windows version.  There are some little differences, but I don't
8949         think any app will rely on the layout of minimized mdi windows.
8951 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8953         * Padding.cs: Several fixes to allow compiling with csc 2.0
8955 2006-03-09  Jackson Harper  <jackson@ximian.com>
8957         * Menu.cs:
8958         * MenuItem.cs: Cheap hack so we can add items to the list without
8959         the events being raised.  This allows adding mdi items during
8960         drawing. TODO: Should probably find a better time to add the items.
8962 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8964         * ThemeWin32Classic.cs:
8965           - CheckBox_DrawText: Added logic to not wrap if not enough space
8966             is available (Fix for bug #77727)
8967           - RadioButton_DrawText: Added logic not to wrap if not enough
8968             space is available (Fix for bug #77727). Also removed some
8969             duplicate code, DrawString always drawing the regular text
8970             before hitting the if statement.
8972 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
8974         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
8976 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8978         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
8979         * ContainerControl.cs: Partial implementation of some 2.0 scaling
8980           methods. Moved the new 2.0 properties into alphabetical order with
8981           other properties and added MonoTODO tags
8983 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8985         * AutoScaleMode.cs: Added. Fix build.
8987 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8989         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8990           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
8991           and was requiring premature handle creation for calls from above
8992         * Form.cs, Control.cs: Removed handle arguments from calls to
8993           CalculateClientRect()
8995 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8997         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
8998           drag_column.column_rect is MarshalByRef and can't be used that way
9000 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
9002         * AxHost.cs: Added deserialization constructor for 
9003           AxHost+State (fixes 77743)
9005 2006-03-09  Mike Kestner  <mkestner@novell.com>
9007         * ListView.cs: 
9008         - Added column drag reordering for details view.
9009         - fixed behavior when mouse is dragged off column and
9010         AllowColumnReorder is false.
9011         * ColumnHeader.cs: clone the format too in Clone.
9012         * Theme.cs: add DrawListViewHeaderDragDetails method.
9013         * ThemeWin32Classic.cs:
9014         - impl new method for drawing drag column shadows and targets.
9015         - support column offset for details mode in DrawListViewItem.
9017 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
9019         * TextControl.cs: Reset the char_count when the document is cleared
9020           (Fixes bug reported on mono-winforms mailing list)
9022 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
9024         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
9025           of calling base we simply process the key ourselves, since both
9026           DefWindowProc and the handled method would set m.Result. 
9027           (Fixes #77732)
9029 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
9031         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
9032           method also moves the window; instead implemented a copy of
9033           Control.ScaleCore (Part of fix for #77456)
9034         * TextBoxBase.cs: 
9035           - Created new CreateGraphicsInternal method to allow providing
9036             a graphics context when no handle is created without triggering
9037             handle creation. (Part of fix for #77456)
9038           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
9039         * TextControl.cs: 
9040           - Switched Constructor to require TextBoxBase instead of Control (to
9041             allow uncast access to CreateGraphicsInternal)
9042           - Safeguarded use of owner.Handle property. No longer accessing it
9043             unless the handle is already created.
9044           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
9045           - Now triggering a recalc when owning control becomes visible
9046         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
9047           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
9048           premature handle creation (Part of fix for #77456)
9049         * Control.cs:
9050           - We now only destroy our double-buffering buffers when the
9051             control is resized or disposed, but not when visibility
9052             changes. (The code even re-created them twice every time)
9053           - Now requiring a redraw of the buffer on visibility changes
9054             (fixes bug 77654 part 2)
9055           - Not passing OnParentVisibleChanged up unless the control
9056             is visible
9057           - CanFocus: Fixed to match MS documentation
9058           - Focus: Fixed to return actual focus state and to check if
9059             setting focus is legal before setting it
9061 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
9063         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
9064           when to draw focus rectangle by looking at parent focus and
9065           selected state instead. This fixes TabPages on Linux sometimes
9066           having none or multiple focus rectangles.
9067         * XplatUIX11.cs (SetFocus): 
9068           - Don't set the focus if the same window already has focus
9069           - Use SendMessage instead of PostMessage (like it's Win32
9070             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
9071             to match MS behaviour
9072         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
9073           are not selectable.
9075 2006-03-07  Jackson Harper  <jackson@ximian.com>
9077         * PictureBox.cs: Revert line I accidently committed last week.
9079 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
9081         * Control.cs: 
9082           - Added new IsRecreating and ParentIsRecreating properties to
9083             allow testing if RecreateHandle has been called on ourselves
9084             or one of our parents
9085           - WndProc(WM_DESTROY): If our control handle is being recreated
9086             we immediately need to create the handle when receiving the
9087             destroy, that way our child windows find a valid parent handle
9088             when they themselves are being recreated upon WM_DESTROY receipt
9089             (fix for bug #77654 part 1)
9090         * XplatUIX11.cs:
9091           - DestroyWindow: WM_DESTROY must be sent to our own window before
9092             notifying any child windows. MS documents that child windows
9093             are still valid when WM_DESTROY is received. (Control now relies on
9094             this behaviour)
9095           - Added some fine-grain debug options
9097 2006-03-06  Jackson Harper  <jackson@ximian.com>
9099         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
9100         box and base calculations off this.
9101         * MdiChildContext.cs:
9102         * MdiWindowManager.cs: Don't need to ensure scrollbars here
9103         anymore.
9104         
9105 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
9107         * Splitter.cs: In situations where the affected control is added
9108           to the parent's control list after the splitter, we would not
9109           populate affected. Now we try populating it on mousedown, if
9110           it's not already set, and force it to be re-set whenever our
9111           parent changes.
9113 2006-03-03  Matt Hargett  <matt@use.net>
9115         * Control.cs: implement Control.Padding
9116         * Padding.cs: -Padding.All returns -1 when constructing with the
9117         implicit default ctor
9118         -Padding.ToString() matches MS.NET
9119         * ContainerControl.cs: implement
9120         ContainerControl.AutoScaleDimensions
9121         * ListControl.cs: implement ListControl.FormattingEnabled
9122         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
9123         * ButtonBase.cs:
9124         * TabPage.cs: Implement UseVisualStyleBackColor.
9125         * PictureBox.cs: Implement PictureBox.InitialImage.
9127 2006-03-03  Mike Kestner  <mkestner@novell.com>
9129         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
9130         event declarations to proxy to base event.
9131         * ListViewItem.cs: update to use ItemControl.
9132         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
9133         * ThemeWin32Classic.cs: update to new ListView theme API and fix
9134         column header label rendering for 0 width columns.
9136 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
9138         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
9139           that causes the control to be created. Fixes #77476.
9141 2006-03-02  Jackson Harper  <jackson@ximian.com>
9143         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
9144         expose_pending.
9146 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
9148         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
9149           passed in for the EventArgs (fixes #77690)
9151 2006-03-01  Jackson Harper  <jackson@ximian.com>
9153         * ScrollBar.cs: Refresh afterbeing resized.
9155 2006-02-28  Mike Kestner  <mkestner@novell.com>
9157         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
9158         Clean up a tracker compile warning.
9159         * MenuItem.cs: add internal PerformPopup method.
9160         [Fixes #77457]
9162 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
9164         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
9165           implicit expose) when the text is set to null
9167 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
9169         * RichTextBox.cs (FlushText): When newline is true, we always
9170           need to split the line, even if no text is on it and we may
9171           never eat newlines. (Fixes #77669)
9173 2006-02-28  Mike Kestner  <mkestner@novell.com>
9175         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
9176         and set Selected instead.
9177         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
9178         collections.
9180 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
9182         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
9184 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
9186         * FontDialog.cs:
9187           - Got rid of the panel. All controls are now directly added to
9188             the dialog form
9189           - It is now possible to set a font with the Font property
9190           - MinSize and MaxSize property do now what they should
9191           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
9192           - Searching and selecting a font with the font textbox works now,
9193             the same applies to the style and size textbox
9194           - Draw the correct 3D border in the example panel
9195           - Fixed a little mem leak (unused fonts didn't get disposed)
9196           - Many other internal updates/rewrites...
9197           - Fix typo
9199 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
9201         * TextControl.cs: 
9202           - InsertRTFFromStream: Added 'number of characters inserted' argument
9203           - set_SelectedRTF: Now using the number of characters to calculate
9204             the new location for the selection and cursor (x/y cannot be used
9205             due to potentially already wrapped text)
9207 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
9209         * TextControl.cs: Added property and implemented means to allow 
9210           disabling recalculation of a document (can be used to speed up
9211           multiple inserts and is needed to make RTF inserts predictable, see
9212           bug #77659)
9213         * RichTextBox.cs: Using the new NoRecalc property of Document to
9214           keep x/y insert locations predictable. Also makes it faster inserting
9215           large chunks of RTF
9217 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
9219         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
9220           it's easier for a child control to handle the other messages without
9221           having to duplicate the special functionality
9222         * TextBoxBase.cs
9223           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
9224             code to handle processing the key ourselves, in order to get 
9225             access to the result of KeyEventArgs.Handled. We now only call 
9226             ProcessKey if they key hasn't been handled already. Fixes #77526.
9227           - set_Text: If null or empty string is given, just clear the 
9228             document. Fixes part of #77526
9230 2006-02-27  Jackson Harper  <jackson@ximian.com>
9232         * SizeGrip.cs: Paint the background color before painting the grip
9233         so things look right.
9234         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
9236 2006-02-27  Mike Kestner  <mkestner@novell.com>
9238         * ListView.cs:
9239           - Restructure layout and invalidation model to remove a ton of
9240           flicker from the control and speed up performance in general.
9241           - Add manual column resize, flickers like crazy, but I already have
9242           some ideas on how I'll fix that. (#76822)
9243           - Merge the three Icon-based views into a single layout method.
9244           - Move item selection interaction logic from the item since 
9245           interaction with the collections is more appropriate to the view.
9246           - Deselection on non-item clicks.
9247         * ListViewItem.cs:
9248           - Encapsulate most of the layout. Add some internal props to trigger
9249           layout.  Move to a model where Items invalidate themselves instead
9250           of just invalidating the whole control every time something changes.
9251           - Invalidate on Text/Caption changes.
9252           - switch to an offset based layout model to avoid having to absolute
9253           position every element on item moves.
9254           - correct checkbox layout to conform to MS layout.
9255         * ThemeWin32Classic.cs:
9256           - refactor some column header drawing code.
9257           - fix string justification for column headers (#76821)
9258           - make SmallIcon labels top justified for compat with MS impl.
9259         * ThemeClearlooks.cs:
9260           - adjust to new ListViewItem internal checkbox bounds api.
9262 2006-02-27  Jackson Harper  <jackson@ximian.com>
9264         * Control.cs:  Change where implicit controls fall in the zorder.
9265         They are now on top of all children.
9266         - Synced AddImplicit code with Add
9267         - Removed unused enumerator.
9268         * SizeGrip.cs: Remove the TODO as its been TODONE.
9270 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
9272         * TextControl.cs(Insert): Combine the last lines unless the insertion
9273           string ends with \n\n, otherwise we leave one line too many (Fixes
9274           something I noticed with the testapp for #77526; the bug itself was
9275           already fixed in the previous checkin)
9277 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
9279         * RichTextBox.cs:
9280           - SelectionColor and SelectionFont methods no longer set absolute
9281             styles. Instead, the keep font or color respectively (This 
9282             resolves a long-standing FIXME in the code)
9283           - When flushing RTF text, the insert code now considers text trailing
9284             behind the insertion point (Fixes the bug where when replacing
9285             the selected text via SelectedRTF the remainder of the line behind 
9286             the selection would stay on the first insertion line)
9287         * TextBoxBase.cs:
9288           - AppendText now updates the selection points after inserting text
9289           - AppendText now ensures that the last tag (sometimes 0-length) of
9290             the document is used for the style information (Fixes part of 
9291             bug #77220)
9292         * TextControl.cs:
9293           - Created new FontDefiniton class to allow describing partial style
9294             changes
9295           - StreamLine() now takes a lines argument, to allow it to decide
9296             whether an encountered zero-length tag is the last in the document
9297             (which must be kept to not loose the font/color contained in it,
9298             for later appends)
9299           - Created Combine() and Split() methods for Marker structs, to 
9300             support marker updates due to reformatted documents (soft line
9301             wraps)
9302           - Implemented Document.CaretTag setter
9303           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
9304             of the last line (Not the cause, but also exposed by bug #77220)
9305           - Added LineTag argument to InsertString method, to allow callers
9306             to force a certain tag to be used (required to force use of the
9307             trailing zero-length tag of a document)
9308           - Now updating markers in Combine(), to avoid stale tag markers
9309           - Added some method descriptions to aid maintenance
9310           - Implemented new FormatText concept, allowing additive/subtractive
9311             formatting by only specifying the components that are to be 
9312             changed. This was needed for resolving the RTB.SelectedColor/
9313             RTB.SelectedFont fixmes
9314           - Added Break() support method to allow breaking up linetags (used
9315             for partial formatting)
9316           - Added GenerateTextFormat() method. It is used for partial 
9317             formatting and allows to generate a full font/color from given
9318             attributes and an existing tag.
9320 2006-02-26  Jackson Harper  <jackson@ximian.com>
9322         * XplatUIX11.cs:  Use the correct caption height.
9323         - Translate hittest coordinates to screen coords to match MS.
9324         * XplatUIWin32.cs: When we create MDI windows we need to reset
9325         some of the style flags, so we get a nice blank window, and can
9326         draw all the decorations ourselves.
9327         - Set a clipping rectangle on the non client paint event, the
9328         window manager drawing code needs one.
9329         * Form.cs: The window manager needs to know when the window state
9330         has been updated.
9331         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
9332         don't need to factor in border and title sizes in these
9333         methods. TODO: Remove the args and fix the call points.
9334         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
9335         properly.
9336         - Let the driver set the cursors.
9337         - Improve active window handling
9338         - Correct sizes for title bars and buttons.
9339         - Match MS drawing better
9340         * MdiWindowManager.cs: We don't need to handle border style
9341         updates specially anymore.
9342         - Check for scrollbars when windows are done moving
9343         - Handle Active properly.
9344         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
9345         correctly. I am spewing the exception though, so we don't hide the
9346         bugs.
9347         
9348 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
9350         * DataGridViewRowPostPaintEventArgs.cs,
9351           DataGridViewCellPaintingEventArgs.cs,
9352           DataGridViewRowCollection.cs,
9353           DataGridViewRowPrePaintEventArgs.cs,
9354           DataGridViewCell.cs: Clear a few warnings and implement a few
9355           exceptions that should be thrown.
9357 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
9359         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
9360           'inheriting' our parent's (non-default) cursor. (Part of
9361            the fix for #77479)
9363 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
9365         * XplatUIX11.cs: Fixed cast to make csc happy
9367 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
9369         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
9370           it's for the client area (part of fix for #77479 and needed
9371           for MDI window cursor handling)
9372         * XplatUIX11.cs
9373           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
9374             the appropriate default cursors and also passing the message
9375             up the parent chain 
9376           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
9377             for non-client areas
9379 2006-02-15  Jackson Harper  <jackson@ximian.com>
9381         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
9382         is a real MDI window
9384 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
9386         * X11DesktopColors.cs: Instead of checking the desktop session
9387           string for "KDE" check if it starts with "KDE"
9389 2006-02-10  Jackson Harper  <jackson@ximian.com>
9391         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
9392         systems).
9394 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
9396         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
9397           errors
9398         * ColorDialog.cs:
9399           - Got rid of the panel. All controls are now directly added to
9400             the dialog form
9401           - Changed to mono coding style
9403 2006-02-10  Jackson Harper  <jackson@ximian.com>
9405         * InternalWindowManager.cs: We don't need the set visibility to
9406         false hack anymore now that peter has written beautiful shutdown
9407         code.
9409 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
9411         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
9412           where already explicitly destroyed
9414 2006-02-10  Jackson Harper  <jackson@ximian.com>
9416         * MdiClient.cs: Handle the case where windows are too high or to
9417         the left and we need scrollbars.
9419 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
9421         * MimeIcon.cs: Added some icons
9422         * FileDialog.cs:
9423           - Fixed bug #77477
9424           - Got rid of the panel. All controls are now directly added to
9425             the dialog form
9426           - Changed to mono coding style
9427           - On Linux "My Computer" and "My Network" will now show some
9428             more usefull information. A new class, MasterMount, gathers
9429             this information from /proc/mount. Updated MWFFileView to make
9430             use of this information
9431           - Fixed a bug that caused FileDialog to crash when
9432             ".recently_used" file had a zero size
9433           - FilterIndex does now what it should
9434           - Some Refactoring
9435         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
9436             FileDialog changes
9438 2006-02-09  Jackson Harper  <jackson@ximian.com>
9440         * ComboBox.cs: Don't touch if null.
9442 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
9444         * Cursor.cs: 64bit safeness fix
9445         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
9447 2006-02-09  Jackson Harper  <jackson@ximian.com>
9449         * Form.cs: If a form is made into an MDI form update the styles so
9450         all the props can get set correctly.
9451         - Kill the mdi_container when we dont need it anymore.
9452         * InternalWindowManager.cs: Add missing NOT
9454 2006-02-08  Jackson Harper  <jackson@ximian.com>
9456         * InternalWindowManager.cs: Respek clipping when drawing MDi
9457         decorations.
9459 2006-02-08  Jackson Harper  <jackson@ximian.com>
9461         * Hwnd.cs: Add bits to track non client expose events.
9462         * XplatUIX11.cs: Track non client expose events on the hwnd. This
9463         gives us a proper invalid rect and will allow for some nice
9464         optimizations with NC client drawing
9465         - MDI windows are children windows, so move their style handling
9466         into the child window block.
9467         * InternalWindowManager.cs: Remove a state reset that was
9468         getting invoked at the wrong time. Fixes managed windows getting
9469         into a 'stuck' captured state.
9471 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9473         * TextControl.cs (Document.ctor): Now initializing 
9474           selection_anchor. Fixes #77493
9476 2006-02-07  Jackson Harper  <jackson@ximian.com>
9478         * TrackBar.cs: The increment/decrements were backwards.
9480 2006-02-07  Mike Kestner  <mkestner@novell.com>
9482         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
9483         to the instance itself.
9485 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9487         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
9488           on ulongs and pointers, the size differs between 32bit and 64bit
9489           systems. 
9491 2006-02-07  Mike Kestner  <mkestner@novell.com>
9493         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
9494         for 64 bit platforms to work around a metacity bug. 
9496 2006-02-07  Jackson Harper  <jackson@ximian.com>
9498         * TrackBar.cs: Process the input keys we need, and hookup to
9499         KeyDown instead of using WndProc, so we get key messages.
9501 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
9503         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
9504           machine we're on. 
9505         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
9506           we need to translate the XdndVersion atoms array before sending it
9508 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
9510         * XplatUIX11.cs: 
9511           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
9512             number of bits for the property, not the number of bytes. The
9513             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
9514             but would not crash since it specified 8 bits instead of 4 bits)
9515           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
9516             defined as XID -> long in the C headers)
9517           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
9518             references since those are now IntPtr to begin with
9519           - Switched all Atom.XXX 'int' casts to IntPtr casts
9520           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
9521           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
9522           - Added XChangeActivePointerGrab DllImport (for X11DnD)
9523         * X11Structs.cs:
9524           - Changed 'int' type for Atoms in XEvent structures to IntPtr
9525           - Changed atom in HoverStruct to be IntPtr
9526         * X11DnD.cs:
9527           - Removed local DllImports, switched code to use those from XplatUIX11
9528           - Removed/fixed casts related to the switch of Atom to be a IntPtr
9530 2006-02-06  Mike Kestner  <mkestner@novell.com>
9532         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
9533         method signatures in the import region.  There may still be some
9534         lingering struct marshaling issues, as I didn't drill down into those.
9535         Yet.
9537 2006-02-06  Jackson Harper  <jackson@ximian.com>
9539         * ComboBox.cs: Dont manually set the top_item, this is computed
9540         when the scrollbar position is set.
9542 2006-02-06  Mike Kestner  <mkestner@novell.com>
9544         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
9545         startup crashes on amd64.  There's other fixes needed.  All pinvoke
9546         usage of Atom needs to be mapped to IntPtr for example.  And there are
9547         likely other int/long issues to be addressed.
9549 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
9551         * FileDialog.cs: One more...
9553 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9555         * FileDialog.cs: Next try
9557 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9559         * FileDialog.cs: First part of fix for #77464
9561 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9563         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
9564           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
9565           AcceptButton border drawing.
9567 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
9569         * Form.cs: Moved positioning of form after auto scaling is applied,
9570           otherwise it would possibly use wrong form size.
9572 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
9574         * Control.cs (RecreateHandle): No need to re-create any child
9575           controls, the child windows will get destroyed automatically by
9576           the windowing system or driver, and re-created when the handle
9577           is being accessed the first time. Fixes #77456
9578         * Form.cs: No longer setting the form to closing if the handle is 
9579           being recreated. This seems like the right thing to do, don't
9580           have a bug or testcase for this, though.
9582 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9584         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
9585           controls to avoid unwanted side effects
9587 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
9589         * Control.cs: 
9590           - ScaleCore needs to scale the bounds, not the ClientSize of the 
9591             control. Fixes #77416.
9592           - DefaultSize is 0,0 for control
9593         * TextBoxBase.cs: 
9594           - DefaultSize is 100, 20
9595           - SetBoundsCore: Now enforcing the height, no matter if the provided
9596             height is more or less than the preferred one, as long as AutoSize
9597             is on
9598         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
9600 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9602         * Control.cs:
9603           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
9604             call unless both performLayout is true *and* we have a pending
9605             layout change
9606           - ResumeLayout: MS does not completely nest Suspend and Resume,
9607             they bottom out at 0, fixed our code to match that.
9608           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
9609             SetBoundsCore, we were updating even when we shouldn't. This fixes
9610             swf-anchors mis-anchoring when resizing the app fast and lots.
9611           - UpdateDistances: Now only setting the left and top distance if 
9612             we have a parent and are not suspended, this is based on
9613             a suggestion by Don Edvaldson in bug #77355.
9614           - OnVisibleChanged: Fixed logic when to create the control. We may
9615             not create the control if we have no parent or if it's not visible;
9616             switched to using Visible property instead of is_visible field 
9617             since the property also considers parent states. This fixes a bug
9618             when starting Paint.Net
9620 2006-02-02  Jackson Harper  <jackson@ximian.com>
9622         * Form.cs: If the forms handle hasn't been created yet don't call
9623         into xplatui to make it top most, just set the topmost flag on the
9624         form in CreateParams
9625         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
9627 2006-02-01  Jackson Harper  <jackson@ximian.com>
9629         * ScrollableControl.cs: Refactored the Recalculate method a
9630         little, this wasn't handling all the variants of bottom and right
9631         bars needed to be added and added/removed based on their
9632         counterparts being added/removed (which changes the drawable
9633         size). Also we special case client widths and heights of 0 and
9634         don't add the scrollbar for those.
9636 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
9638         * XplatUIX11.cs: 
9639           - Added method to get AbsoluteGeometry(); currently unused, but might
9640             be used in the future, if we try again to figure out toplevel
9641             coordinates with some more crappy window managers
9642           - Added FrameExtents() method to retrieve the WM set decoration size
9643           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
9644             to deal with at least KDE, FVWM and metacity (Fixes #77092)
9645         * Hwnd.cs: 
9646           - Added whacky_wm tracking var for metacity
9647           - Added logic to have default menu height if the actual menu height
9648             has not yet been calculated (part of fix for #77426)
9649         * Form.cs: Keep track whether client size has been set and re-set 
9650           it if a menu is added/removed afterwards (Fixes #77426)
9652 2006-01-31  Jackson Harper  <jackson@ximian.com>
9654         * Control.cs: When a new Site is set on the component attempt to
9655         pull the AmbientProperties from it.
9657 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
9659         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
9660           in the background of the owning form. Fixes #77332
9662 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9664         * MimeIcon.cs: Fix for #77409
9666 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9668         * XplatUIX11GTK.cs: Initial import
9670 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
9672         * FixedSizeTextBox: fixes class signature
9674 2006-01-30  Jackson Harper  <jackson@ximian.com>
9676         * FixedSizeTextBox.cs: New internal class that represents a
9677         textBox that will not be scaled.
9678         * TreeView.cs:
9679         * ComboBox.cs:
9680         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
9681         standard TextBox.
9682                 
9683 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
9685         * XplatUIX11.cs: Retrieve default screen number instead of
9686           assuming 0. Attempted fix for #77318
9688 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
9690         * XplatUIWin32.cs: 
9691           - GetWindowPos: When a window is parented by FosterParent, use 
9692             the desktop instead of FosterParent as the base to get coordinates
9693           - CreateWindow: Don't make FosterParent the parent window for Popups
9694             if we don't want a taskbar entry, Popups automatically don't get one
9695         * Hwnd.cs: Need to call remove to actually remove the key from the
9696           hash table
9698 2006-01-30  Mike Kestner  <mkestner@novell.com>
9700         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
9702 2006-01-30  Jackson Harper  <jackson@ximian.com>
9704         * TreeView.cs:
9705         * TreeNode.cs: Raise events no matter how the treenode is
9706         checked. Patch by Don Edvalson.
9708 2006-01-30  Jackson Harper  <jackson@ximian.com>
9710         * TreeNode.cs: Signature fix.
9712 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
9714         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
9716 2006-01-20  Mike Kestner  <mkestner@novell.com>
9718         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
9719         event forwarding when menus are active.
9720         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
9721         Most of the patch is pdb's with a little rework.
9723 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9725         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
9726           Removed GetMenuDC and ReleaseMenuDC methods; replaced
9727           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
9728         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
9729         * InternalWindowManager.cs: Added use of PaintEventStart/End to
9730           handling of WM_NCPAINT message, now passing the PaintEventArgs to
9731           the PaintWindowDecorations method
9732         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
9733         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
9734         * MenuAPI.cs: Made tracker window invisible
9735         * XplatUIWin32.cs:
9736           - Removed GetMenuDC and ReleaseMenuDC methods
9737           - Implemented the client=false path for PaintEventStart and
9738             PaintEventEnd
9740 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9742         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
9743         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
9744           styles
9745         * Form.cs: 
9746           - MaximizeBox, MinimizeBox: Recreate the handle when setting
9747             the style
9748           - CreateParams: Reworked the styles to match MS look'n'feel,
9749             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
9750             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
9752 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9754         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
9755           window is not mapped, since otherwise every form that's being 
9756           created is considered minimized, which is wrong.
9757         * Form.cs: Catching the exception and returning our internal value
9758           instead
9760 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9762         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
9763           SetWindowMinMax() to have means to tell the driver about the minimum,
9764           maximum and maximized state window sizes. (Part of the fix for #76485)
9765         * Form.cs:
9766           - Implemented tracking of minimum and maximum window size, now calling
9767             new SetWindowMinMax() driver method to tell the driver (Part of the
9768             fix for #76485)
9769           - Finished handling of WM_GETMINMAXINFO method, now setting all values
9770             (Completes fix for #76485)
9771           - Calling new SetWindowMinMax driver method when the handle for a 
9772             form is created, to make sure the driver knows about it even if
9773             the values have been set before the window was created
9774           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
9775             to avoid messing up our anchoring calculations (partial fix
9776             for #77355)
9777         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
9778         * XplatUIX11.cs:
9779           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
9780           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
9781             (and presumably other freedesktop.org compliant WMs). Left the
9782             assumption unmapped=minimized, needed for SetVisible to work.
9783           - Now setting the window state when creating windows
9784           - Fixed SetVisible to consider/set the window state when mapping
9785             a Form. We cannot set the state before it's mapped, and we cannot
9786             use Form.WindowState once it's mapped (since it would ask the
9787             driver and get 'normal'. Therefore, we grab the state before
9788             mapping, map, and then set state.
9789           - Implmemented SetWindowMinMax method; Metacity does not seem to
9790             honor the ZoomHints, though.
9791         * XplatUIWin32.cs:
9792           - Removed MINMAXINFO (moved to XplatUIStructs)
9793           - Added SetWindowMinMax stub (on Win32 the only way to set that
9794             information is in response to the WM_GETMINMAXINFO message, which
9795             is handled in Form.cs)
9796           - Added logic to SetVisible to set the proper window state when a 
9797             form is made visible (fixes #75720)
9799 2006-01-26  Jackson Harper  <jackson@ximian.com>
9801         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
9802         same way we handle them with Invoke.
9804 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
9806         * Form.cs:
9807           - Added tracking of window state so CreateParams can return
9808             the appropriate style
9809           - Moved setting of WS_CAPTION style in CreateParams to allow
9810             styles without caption
9811         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
9812           control if the TextBox property is accessed. Fixes #77345
9813         * Control.cs:
9814           - get_Created: now uses is_disposed and is_created to determine
9815             return value (suggested by Jackson)
9816           - CreateHandle: No longer exits if the handle is being recreated
9817           - RecreateHandle: If the handle is not yet created call the 
9818             appropriate method to create either control or handle. If the
9819             control is already created CreateHandle will simply exit instead
9820             of just creating the handle
9821         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
9822           now SendMessage WM_DESTROY directly to the control when DestroyWindow
9823           is called.
9824         * XplatUIX11.cs: 
9825           - When DestroyWindow is called, instead of waiting for the 
9826             DestroyNotification from X11, we directly post it to the WndProc
9827             and immediately dispose the hwnd object.
9828             Same applies to DestroyChildWindows, and this obsoletes the
9829             expose_pending tracking. Contrary to Win32 behaviour we destroy our
9830             child windows before our own, to avoid X11 errors.
9831           - Removed the direct sending of WM_PAINT on UpdateWindow
9832         * XplatUIWin32.cs:
9833           - Reworked DoEvents and GetMessage to allow access to internal queue
9834             even when trying non-blocking access to the queue.  Fixes #77335. 
9835             Based on a patch suggestion by Don Edvalson. The new private
9836             GetMessage can now also be used as a backend for a PeekMessage
9837             frontend version.
9838         * XplatUI.cs: Improved debug output for CreateWindow
9840 2006-01-25  Jackson Harper  <jackson@ximian.com>
9842         * Help.cs: Allow param to be null. Patch by Don Edvalson.
9844 2006-01-24  Jackson Harper  <jackson@ximian.com>
9846         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
9847         when we have a MaxDropItems lower then the selected index.
9849 2006-01-24  Jackson Harper  <jackson@ximian.com>
9851         * Control.cs: Don't allow selection of non visible controls, allow
9852         selection of controls without parents.
9854 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9856         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
9857         * DataGridDrawingLogic.cs: Add editing row only when is necessary
9859 2006-01-23  Jackson Harper  <jackson@ximian.com>
9861         * UpDownBase.cs: Make the textbox handle all the selection and
9862         tabbing. This fixes tabing to updown controls.
9864 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9866         * TextBoxBase.cs: fixes exception thown the object was null
9868 2006-01-23  Jackson Harper  <jackson@ximian.com>
9870         * ButtonBase.cs: Just use the base CreateParams. They set
9871         visibility and enabled correctly.
9872         * ComboBox.cs:
9873         * TrackBar.cs:
9874         * MonthCalendar.cs: Lets let the base set as much of the
9875         createparams as possible so we don't have duplicate code all over
9876         the place.
9878 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
9880         * ThemeGtk.cs: Added TrackBar and some experimental code to
9881           get double buffering back
9883 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
9885         * DataGrid.cs: Allows row number set internally higher than the last
9886         when creating a new row. Restores the editing functionality.
9888 2006-01-20  Mike Kestner  <mkestner@novell.com>
9890         * MimeIcon.cs: delay Image creation until the icons are accessed
9891         instead of creating 190 scaled images on GnomeHandler startup.
9893 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
9895         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
9896           first call base before processing the event. Fixes #77279
9898 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
9900         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
9901           that the stride for the GDI bitmap would match the stride of
9902           a DIB or a Cursor.
9904 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
9906         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
9908 2006-01-19  Jackson Harper  <jackson@ximian.com>
9910         * ComboBox.cs: Hookup the text controls keydown event so we get
9911         those when the text control has the focus.
9913 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9915         * Label.cs: Now using the base events instead of defining new ones;
9916           this allows us to just call the base properties without having to
9917           duplicate all base property logic 
9919 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9921         * Label.cs: A label by default is not a tabstop (Fixes one of our
9922           failing nunit tests)
9924 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9926         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
9927         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
9929 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9931         * Cursor.cs: Reimplemented creating cursor bitmaps without using
9932           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
9933           This fixes #77218
9934         * XplatUIWin32.cs: 
9935           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
9936             constructor creates images that can't be saved. Part of the fix
9937             for #76103
9938           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
9939           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
9940             bug fix for handling window state in forms properly)
9942 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9944         * ThemeGtk.cs: Simplify ScrollBar drawing
9946 2006-01-18  Jackson Harper  <jackson@ximian.com>
9948         * Splitter.cs: Set the default dock style for the splitter control
9949         in the constructor.
9951 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9953         * ThemeGtk.cs: Corrected StateType and ShadowType for
9954           gtk_paint_box
9956 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9958         * Control.cs: Make use of Theme.DoubleBufferingSupported
9959         * ThemeGtk.cs:
9960           - Added drawing for flat style buttons
9961           - Added ScrollBar drawing
9963 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9965         * ThemeClearlooks.cs: Removed some unneeded code.
9966         * ThemeGtk.cs: First part of ThemeGtk enhancements.
9968 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9970         * LinkLabel.cs: We need to update the hover drawing when
9971           leaving the control as well.
9973 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
9975         * DataGrid.cs: Clicking on non empty areas in the columns
9976            area was giving an exception
9978 2006-01-17  Jackson Harper  <jackson@ximian.com>
9980         * ThemeWin32Classic.cs:
9981         * ListView.cs: Do not draw/clip the headers when the header style
9982         is None.
9984 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9986         * DataGrid.cs: Fixes 77260
9987         
9988 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9990         * DataGrid.cs: Clicking on a column on a empty grid was giving
9991           an exception
9993 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9995         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
9996           or any keypress will crash the grid.
9998 2006-01-17  Mike Kestner  <mkestner@novell.com>
10000         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
10001         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
10002         invisible/previously-visible items.
10003         [Fixes #76909]
10005 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
10007         * ThemeClearlooks.cs:
10008         - Added CL_Draw_Button method; now other theme controls that are 
10009           not derived from button or do not have a button can draw buttons
10010           too
10011         - Updated ComboBox drawing
10012         - Beautified RadioButton drawing
10013         - Corrected drawing of bottom and left tabs
10014         - Beautified DateTimePicker and MonthCalendar
10015         - Added CPDrawButton and CPDrawRadioButton
10017 2006-01-16  Jackson Harper  <jackson@ximian.com>
10019         * ComboBox.cs: Set the initial value of the scrollbar to the
10020         current index. Reduce the numbers of refreshs and IndexOfs called.
10022 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
10024         * FileDialog.cs: When the file listview is focused hitting the
10025           backspace key moves the fileview to the parent directory
10027 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
10029         * Form.cs: 
10030           - Added RecreateHandle call when changing taskbar visibility to 
10031             trigger reparenting in Win32 driver (Fixes #75719)
10032           - If a window has minimize or maximize buttons, it cannot have
10033             a help button
10034         * XplatUIWin32.cs:
10035           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
10036             the toplevel form with FosterParent (A toolwindow not on the
10037             taskbar) (Fixes #75719)
10038           - Made FosterParent a toolwindow
10040 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
10042         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
10044 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
10046         * ToolTip.cs: If SetToolTip is called from a control and the mouse
10047           is currently over that control, make sure that tooltip_window.Text
10048           gets updated
10050 2006-01-13  Mike Kestner  <mkestner@novell.com>
10052         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
10054 2006-01-13  Jackson Harper  <jackson@ximian.com>
10056         * TreeView.cs: On MS GetNodeAt never actually factors in the X
10057         value passed.  Also redraw the selected node when we recieve
10058         focus, so tabbing between trees works correctly.
10060 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
10062         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
10063           ~/.gconf/%gconf-tree.xml, so use
10064           .gconf/desktop/gnome/interface/%gconf.xml
10066 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
10068         * TextControl.cs: Draw text in gray if control is disabled
10070 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
10072         * TreeView.cs: Draw the focus rectangle outside the highlight, to
10073           make sure it's always visible. Fixes #76680.
10075 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
10077         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
10079 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
10081         * PageSetupDialog.cs: Added.
10082         * PrintDialog.cs: Attributes.
10083         * PrintPreviewControl.cs: Updates.
10084         * PrintPreviewDialog.cs: Updates.
10085         
10086 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10088         * Control.cs: Undid my selection check fix, since it's not needed
10089         * TextBoxBase.cs:
10090           - Now considering the presence of hscroll/vscroll when sizing
10091             vscroll/hscroll respectively. Fixed bug #77077
10092           - Added Left/Up/Down/Right to IsInputKey list to prevent
10093             ContainerControl from stealing them. This fixes what I broke
10094             with my last checkin.
10096 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
10098         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
10099           I finally understand how the property can be set without a setter :-)
10101 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10103         * Application.cs:
10104           - Switched RunLoop to use static Message.Create to create a 
10105             Message object
10106           - Added PreProcessMessage call in runloop for keyboard events; this
10107             is part of the fix for #77219, I overlooked this originally in the
10108             MSDN doc for PreProcessMessage
10109         * Control.cs:
10110           - Removed call to PreProcessMessage from handling of keyboard 
10111             messages; it's supposed to be done in the message pump
10112           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
10113             per MSDN documentation.
10114           - IsInputChar: All chars are input chars by default; removed the 
10115             parent calling chain, MS does not document that
10116           - PreProcessMessage: If IsInputChar is true, we want to return false
10117             to allow dispatching of the message
10118           - When selecting the next control, now also check that we're not
10119             selecting ourselves again and therefore return a false positive.
10120         * TextBoxBase.cs:
10121           - Tried to match return values for IsInputKey and ProcessDialogKey
10122             to what MS returns; moved processing of our special keys outside
10123             ProcessDialogKey since MS does not seem to return true on those.
10124           - Moved code that previously was in ProcessDialogKey into new private
10125             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
10126           - Reworked handling of WM_CHAR to not have to duplicate code from
10127             Control.cs anymore, instead we simply call down to base.
10128            
10129 2006-01-12  Jackson Harper  <jackson@ximian.com>
10131         * ComboBox.cs: We always need to refresh the text area when
10132         EndUpdate is called. Fixes the combobox in the file dialog.
10133         * Control.cs: Don't create the creator_thread until the controls
10134         handle is created.  Also in InvokeRequired we check if the
10135         creator_thread is null. This gives the effect of InvokeRequired
10136         returning true if the controls handle is not created yet, and
10137         matches MS.
10139 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10141         * XplatUI.cs:
10142           - Added StartLoop() driver method. This is used to allow drivers to
10143             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
10144             loop for a particular thread
10145           - Added EndLoop() driver method. This is called once the message
10146             pump for the thread is shut down
10147           - Added SupportsTransparency method to allow the driver to indicate
10148             opacity support for windows
10149         * Form.cs:
10150           - Removed TODO attribute, completed AllowTransparency property
10151           - Added documented logic to Opacity
10152         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
10153           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
10154           versions of CompatibleTextRendering
10155         * X11Structs.cs: Added opacity atom to our atom enumeration
10156         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
10157           of a form might be set before it's reparented by the WM, and we need
10158           the opacity value without calling up to Form)
10159         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
10160           SupportsTransparency() driver methods
10161         * Application.cs: Now calling StartLoop and EndLoop driver methods
10162         * XplatUIX11.cs:
10163           - Added opacity atom registration
10164           - Added StartLoop()/EndLoop() methods. They're empty right now but
10165             will need to get implemented when we switch to a per-thread queue
10166           - Implemented SupportsTransparency() method
10167           - Implemented SetWindowTransparency() method
10168           - Added support for setting the opacity value when a window is
10169             reparented (since the opacity needs to be set on the WM frame)
10170         * XplatUIOSX.cs, XplatUIWin32.cs:
10171           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
10173 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
10175         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
10177 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
10179         * FileDialog.cs: Added ToolTip for MWFFileView
10180         * MimeIcon.cs: Rewrote GnomeHandler.
10181           - Get currently used gnome icon theme from
10182             ($HOME)/.gconf/%gconf-tree.xml
10183           - Make use of inherited icon themes
10184           - Support SVG icon themes like Tango via librsvg
10186 2006-01-12  Miguel de Icaza  <miguel@novell.com>
10188         Revert's Jackson's revert which broke 2.0 builds.   Fix both
10189         builds. 
10190         
10191         * Application.cs: Move the use_compatible_text_rendering outside
10192         the NET_2_0 define.  If we ever need to use the
10193         use_compatible_text_rendering on the individual controls they will
10194         access the variable from the common shared code paths.
10196 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10198         * XplatUI.cs:
10199           - Added more granular debug options
10200           - Added method to print both window text and id
10201           - Switched debug output to use new Window() debug method
10202           - Added IsEnabled() driver method
10203           - Added EnableWindow() driver method
10204         * Form.cs:
10205           - Removed end_modal; no longer needed, new loop handles termination
10206             via 'closing' variable
10207           - If form is modal, setting DialogResult will now initiate loop
10208             termination via 'closing' variable
10209           - Added support for is_enabled/WS_DISABLED to CreateParams
10210           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
10211             does all the work
10212           - Removed code that's now in RunLoop from ShowDialog()
10213           - Added various documented sanity checks to ShowDialog()
10214           - Added handling of WM_DESTROY message; we set 'closing' on getting
10215             the message to indicate the message pump to terminate
10216           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
10217             send by the Application.ExitThread method. (We send the message
10218             to destroy the window after all other events have been
10219             processed through the queue, instead of destroying the handle 
10220             directly)
10221           - Moved code from Close() method to WM_CLOSE handler; added logic
10222             to only send close-related events if the form is not displayed
10223             modal
10224         * Splitter.cs (..ctor): Fixed typo in resource name
10225         * Control.cs:
10226           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
10227             brush now
10228           - set_Cursor: Now only setting calling into XplatUI if the handle for
10229             the control is already created; this avoids implict handle creation
10230             or crashes if it's not created
10231           - set_Enabled: Now setting the enabled state via the new driver method
10232             instead of just tracking it
10233           - CreateParams: Added logic to set WS_DISABLED based on enabled state
10234           - CreateControl: Reordered event firing and method calls to more
10235             closely fire events in the order MS does. Now setting the
10236             enabled state in the driver when creating the control.
10237           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
10238             match MS order
10239         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
10240           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
10241         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
10242         * Hwnd.cs:
10243           - Added tracking of window enabled state (get_Enabled/set_Enabled)
10244           - Added EnabledHwnd property to easily allow a driver to find the
10245             handle of the first enabled window in the parent chain (this is
10246             used by drivers to pass up input events of disabled windows)
10247         * XplatUIDriver.cs: Added IsEnabled() method
10248         * Application.cs:
10249           - Removed crude and obsolete exiting tracking variable
10250           - Removed internal ModalRun(); replaced by RunLoop()
10251           - Implemented private CloseForms() method to allow closing all 
10252             windows owned by a particular (or all) threads
10253           - Exit() now properly closes all windows without forcing the message
10254             pump to quit
10255           - Removed obsolete InternalExit() method
10256           - Changed Run() methods to use new RunLoop() message pump
10257           - Implemented new RunLoop() method for both modal and non-modal forms
10258         * CommonDialog.cs:
10259           - get_CreateParams: Added setting of WS_DISABLED
10260           - Simplified ShowDialog(); now all the work is done in RunLoop(),
10261             invoked via Form.ShowDialog()
10262         * NativeWindow.cs: We don't remove the window from the collection when
10263           the handle is destroyed; there might still be messages for it in the
10264           queue (mainly the resulting WM_DESTROY); instead it will be removed
10265           when Control calls InvalidateHandle in the WM_DESTROY handler
10266         * XplatUIX11.cs:
10267           - CreateWindow: Added logic to handle the WS_DISABLED window style
10268           - EnableWindow: Implemented based on Hwnd.Enabled
10269           - GetMessage: Reset PostQuitState so the method can be called again
10270           - Implemented support for disabled windows (passing messages to the
10271             first enabled parent) in handling all input messages
10272           - Added optimizations for handling Expose events
10273           - Implemeted new driver method IsEnabled()
10274           - Now always resetting paint pending tracking vars when we start paint
10275           - Re-implemented UpdateWindow via just sending a WM_PAINT message
10276         * XplatUIOSX.cs: Added IsEnabled method stub
10277         * XplatUIWin32.cs: Implemented new IsEnabled() method
10279 2006-01-11  Jackson Harper  <jackson@ximian.com>
10281         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
10282         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
10283         variables a little.
10284         * ColorDialog.cs: Clear out the old form before adding the new
10285         panel.  
10287 2006-01-11  Jackson Harper  <jackson@ximian.com>
10289         * X11Dnd.cs: Make sure to add all the text formats when adding
10290         strings to the data object.
10291         * TreeNodeCollection.cs: When adding to a sorted tree we need to
10292         do some redrawing too.  Also change the UpdateNode to an
10293         UpdateBelow so the newly added node gets painted.
10294         
10295 2006-01-11  Miguel de Icaza  <miguel@novell.com>
10297         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
10298         LinkLabel.cs, PropertyGrid.cs: Implement the
10299         UseCompatibleTextRendering property for 2.x
10301         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
10303 2006-01-11  Jackson Harper  <jackson@ximian.com>
10305         * TreeView.cs: Use the property for setting the selected node so
10306         the correct events get raised.
10307         * TreeNode.cs: Update the tree when the fore/back colours of a
10308         node are set.
10310 2006-01-10  Jackson Harper  <jackson@ximian.com>
10312         * TreeView.cs: Allow setting SelectedNode to null.
10314 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10316         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
10318 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10320         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
10322 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10324         * PrintDialog.cs: Added attributes and set default property values.
10326 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10328         * PrintControllerWithStatusDialog.cs: 
10329         Added PrintControllerWithStatusDialog.
10331 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10333         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
10334         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
10336 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10338         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
10340 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10342         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
10343         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
10345 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
10347         * MimeIcon.cs: Added internal class SVGUtil.
10349 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
10351         * FileDialog.cs: Don't crash if there are two files with the
10352           same name but different locations.
10354 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
10356         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
10357         dates across multiple month grids. Used to not highlight entire 
10358         month, but does now.
10359         
10360 2006-01-06  Jackson Harper  <jackson@ximian.com>
10362         * MonthCalendar.cs: Removed DoEvents call to prevent a running
10363         message loop. Change timer intervals to numbers that seem more
10364         natural.
10366 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
10368         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
10369           object for location info since screen object is now implemented.
10371 2006-01-05  Jackson Harper  <jackson@ximian.com>
10373         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
10374         * AsyncMethodResult.cs: We no longer use a WeakReference for the
10375         AsyncMethodResult, this is because we ALWAYS want the
10376         ManualResetEvent to get set.
10377         * Control.cs: When disposing use an async invoke to call shutdown
10378         code, so that thigns don't block on the finalizer thread.  Also
10379         check if we even have a message loop before trying to send
10380         messages, if we don't then don't bother sending messages.
10381         - No more weak references for async methods
10382         * XplatUIDriver.cs: No more weak references for async methods.
10384 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10386         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
10387           returns two FontFamily with the same name
10389 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
10391         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
10392           drawing disabled text. Instead using the ColorGrayText color
10394 2006-01-04  Jackson Harper  <jackson@ximian.com>
10396         * TreeNode.cs: redraw the node when its image index is changed.
10398 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
10400         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
10401           time I checked there are no others like it.
10403 2006-01-04  Jackson Harper  <jackson@ximian.com>
10405         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
10406         this gives the behavoir I was looking for.
10407         * Control.cs: Special case Invoking EventHandlers, this matches MS
10408         and fixes part of bug #76326.
10410 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10412         * ThemeClearlooks.cs, FileDialog.cs:
10413           - Reflect the latest Theme class changes
10414           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
10415             with DateTime
10416             
10417 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10419         * Theme.cs: Cache UI resource images and resize them if needed
10421 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
10423         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
10424           is called. This fixes the crash in Nexxia when setting the font
10425           attributes in the chat. [However, RTF needs a look-over to make sure
10426           that all SelectionXXX methods handle the special case that selection
10427           is empty and therefore the change must be applied to all text starting
10428           at the cursor/selection start]
10430 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
10432         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10433           XplatUIOSX.cs: Added SendMessage and PostMessage methods
10434         * X11Keyboard.cs: Switched to new way of calling PostMessage
10436 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
10438         * Theme.cs: Added theme interface for images to allow the theme to
10439           control what images are used for things like FileDialog, MessageBox
10440           icons, etc.
10441         * MessageBox.cs: Now uses the new Theme icon/image interfaces
10443 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
10445         * FileDialog.cs:
10446           - Removed some dead code
10447           - Opening a recently used file does work now
10448           - Small UI enhancements
10449           - Refactoring
10451 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10453         * FileDialog.cs: Forgot too add __MonoCS__
10455 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10457         * FileDialog.cs: We are able to read recently used files now let's
10458           go on and write them.
10460 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
10462         * FileDialog.cs: Breathe some life into "last open"/"recently used"
10463           button
10464         * MimeIcon.cs: Do a check for the top level media type also
10466 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10468         * ThemeClearlooks.cs:
10469           - Added CPDrawStringDisabled
10470           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
10471             some chars if the text doesn't fit into text_rect
10472           - DrawListViewItem: If View = View.LargeIcon center the image;
10473             rewrote the drawing of ListViewItem.Text if View = 
10474             View.LargeIcon
10476 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10478         * MimeIcon.cs: Use default KDE icon theme if there is no
10479           "48x48" directory for the current icon theme, fixes #77114
10480         * Mime.cs: Disable not working and actually not used code. 
10481         * ThemeWin32Classic.cs:
10482           - Replace "new SolidBrush" in GetControlBackBrush and
10483             GetControlForeBrush with ResPool.GetSolidBrush
10484           - Changed DrawListViewItem from private to protected virtual
10485         * FileDialog.cs:
10486           - Added form.MaximizeBox = true
10487           - Don't throw an exception if there is a broken symbolic link
10489 2005-12-23  Jackson Harper  <jackson@ximian.com>
10491         * TabControl.cs: Give the panels focus, keyboard navigation is
10492         fixed so this works correctly now.
10493         - We need these key events also.
10494         * ToolBar.cs: Remove some of the poor mans double buffering.
10495         
10496 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
10498         * ComboBox.cs: The internal TextBox now returns the focus.
10500 2005-12-23  Jackson Harper  <jackson@ximian.com>
10502         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
10504 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10506         * Control.cs: Removed debug code
10507         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
10508           implicit children
10510 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
10512         * Control.cs: When creating the control, update the Z-order after
10513           all it's children are created, too. (Fixes nexxia not showing
10514           picturebox bug)
10516 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10518         * Control.cs: Do not update the anchoring distances if layout is
10519           suspended, instead do it once layout is resumed
10521 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
10523         * Control.cs: 
10524           - After many hours of debugging, for both Jackson and
10525             myself, it turns out that it helps to set the parent of a control
10526             if you want to actually see it onscreen. In the spirit of that
10527             discovery, we're now setting the parent of the control and
10528             it's children when the control's handle is created. This fix
10529             will make Lutz Roeder's Reflector run happily. 
10530           - now just creating the handle instead of the whole control when
10531             getting a graphics context for the control.
10533 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10535         * ScrollableControl.cs: When calculating the canvas, don't consider
10536           the scrollbar widths. Instead, predict if horizontal scrollbar
10537           will affect canvas when deciding on vertical display and vice versa.
10539 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10541         * RichTextBox.cs: Set default RTF font for documents that don't
10542           have a font table (Fixes #77076)
10544 2005-12-22  Jackson Harper  <jackson@ximian.com>
10546         * TextBoxBase.cs: It's difficult to do, but you can have an empty
10547         clipboard. This prevents a NullRef in that case.
10548         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
10549         clipboard. PRIMARY is for the currently selected text only. (We
10550         should implement PRIMARY at some point.
10552 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10554         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
10555           a Unicode function with a structure that was defined in Ansi way.
10556           This fixes #76942.
10558 2005-12-21  Jackson Harper  <jackson@ximian.com>
10560         * StatusBar.cs: Statusbar handles its fore/back colours on it's
10561         on. Because thats how it rolls. (and this avoids it using ambient
10562         colours).
10563         * ThemeWin32Classic.cs: Use the proper back color for filling.
10564         * Menu.cs: Use the system menu bar color for drawing menu
10565         bars. Using the window back color will bring ambient colours into
10566         the picture.
10568 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
10570         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
10571           Bitmaps were created and not disposed.
10573 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10575         * Control.cs (CreateControl): Don't do anything if the control is
10576           already created, otherwise we'd fire the OnCreated event more than
10577           once
10579 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10581         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
10582           will always match. Instead return -1. Fixes #76464.
10584 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10586         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
10587           neither the beginning nor the end of the line (Fixes bug #76479)
10589 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10591         * Control.cs:
10592           - ControlNativeWindow.ControlFromHandle(): Now handling situation
10593             where handle is invalid
10594           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
10595             instead of slower linear search
10596         * NativeWindow.cs: Don't remove the window from the hashtable until
10597           after the driver has destroyed it (since the driver might use
10598           Control.FromHandle to lookup the control object
10599         * Hwnd.cs: Added DestroyPending property to track if a window is 
10600           already destroyed as far as the driver is concerned and only hasn't
10601           yet notified the control
10602         * XplatUIX11.cs:
10603           - Activate(): Check if the window is still valid before using the 
10604             handle
10605           - Implemented DestroyChildWindow() method to mark child windows as
10606             destroyed when a window is destroyed. This prevents situations 
10607             where we might call an X method based on queued events for a
10608             window that already has been destroyed but we haven't yet pulled
10609             the destroy method from the queue.
10610           - Added a call to the new DestroyChildWindow() method to the drivers
10611             DestroyWindow code. Also now marking the destroyed window itself
10612             as pending
10614 2005-12-20  Jackson Harper  <jackson@ximian.com>
10616         * StatusBar.cs:
10617         * StatusBarPanel.cs: Don't calculate panel sizes on draw
10618         anymore. Just do them when needed, also track the rects of panels
10619         so that we can optimize refreshing more in the future.
10621 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
10623         * ColorDialog.cs: Fixed focus drawing in small color controls
10625 2005-12-19  Jackson Harper  <jackson@ximian.com>
10627         * InternalWindowManager.cs:
10628         * MdiWindowManager.cs: Cleanup some coordinate system changes so
10629         moving windows works properly.
10631 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
10633         * Control.cs: 
10634           - Removed call to InitLayout() from SetBoundsCore(); doc says
10635             it's only called when a control is added to a container
10636           - Split InitLayout logic, moved to separate UpdateDistances() method
10637             since we need to perform those calculations more often than just
10638             when adding the control to a container. (Needed to fix #77022)
10639           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
10640           - Reduced the OnBindingContextChanged events count, don't send them
10641             unless the control is created, we still aren't totally matching
10642             MS, but I can't quite figure out some of their rules
10644 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10646         * ThemeClearlooks.cs: Corrected distance between ProgressBar
10647           stripes
10649 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10651         * ThemeClearlooks.cs:
10652           - Updated ProgressBar drawing
10653           - Corrected drawing of ScrollBars and scroll buttons
10654           - Some temporary fixes for minor pixel artefacts
10656 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
10658         * Control.cs:
10659           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
10660             cause events to be sent in the same order as MS does.
10661           - Added ChangeParent() method to trigger various OnXXXChanged events
10662             that need to be fired when a parent changes (This is a reworking
10663             of the patch from r54254, with the X11 errors fixed)
10664           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
10665             since on MS we get OnLayoutChanged events when calling Clear()
10666           - Changed Enabled property to consider parent state as well, if a
10667             parent is not enabled, the control will not be either
10668           - Changed Parent property to simply call Controls.Add() since that
10669             now does all the work required, this way we avoid code duplication
10670           - Threw in a few OnBindingsContextChanged calls to try and match
10671             when MS sends them. We seem to send a few too many, though.
10672           - Added call to CreateControl when adding the control to a parent.
10673             We were never calling CreateControl. Still needs some work, in
10674             some places we treat HandleCreated and ControlCreated as equal, 
10675             which is wrong
10676           - Removed obsolete commented out code from UpdateZOrder()
10678 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10680         * ThemeClearlooks.cs: Updated TrackBar drawing.
10682 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10684         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
10686 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10688         * FileDialog.cs: Add the Help button and the open readonly
10689           checkbox only if needed
10691 2005-12-16  Jackson Harper  <jackson@ximian.com>
10693         * Control.cs: Make sure we have an active menu before trying to
10694         process commands on it. Prevents menu-less forms from crashing
10695         when Alt is pressed.
10696         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
10697         Dieter Bremes.
10698         * RichTextBox.cs: Expand statement to help out gmcs and fix the
10699         2.0 build.
10701 2005-12-16  Jackson Harper  <jackson@ximian.com>
10703         * InternalWindowManager.cs: Don't translate tool windows screen
10704         coordinates. This fixes windows 'bouncing' around when being moved.
10706 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10708         * TextBoxBase.cs:
10709           - MaxLength now treats 2^31-1 equal to unlimited length (this is
10710             not quite MS compatible, MS uses that number only for single line
10711             and 2^32-1 for multi-line, but I figure it won't hurt keeping
10712             the limit at 2GB)
10713           - Now enforcing the MaxLength limit when entering characters
10714           - Added argument to internal Paste() method to track if it's called
10715             from programatically or via keyboard, since keyboard driven pastes
10716             need to enforce max-length
10717           - Added logic to Paste to only paste as many chars as MaxLength 
10718             allows
10719         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
10720         * TextControl.cs:
10721           - Added Length property to return number of characters in document
10722           - Added private CharCount property which only tracks actual chars
10723             in the document (no linefeeds) and fires event when CharCount
10724             changes
10725           - Added tracking of character count to all methods that alter it
10726           - Added LengthChanged event to allow applications to subscribe
10727             to any changes to the document
10729 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10731         * TextBox.cs: 
10732           - Removed local password_char field (moved to TextBoxBase)
10733           - Now setting the document's password var when password is
10734             set
10735         * TextBoxBase.cs:
10736           - Added password_char field (needed here so MultiLine can
10737             access it)
10738           - Added logic to MultiLine property setter to set the document's
10739             variable when password display is allowed
10740           - Removed debug code and made some debug code conditional
10741         * TextControl.cs:
10742           - Added RecalculatePasswordLine() method to handle special password
10743             char only lines
10744           - Added PasswordChar property, also added related tracking vars
10745           - Draw() method now uses local text var for grabbing text to draw,
10746             this var is set to line.text unless we're doing password display,
10747             then it is set to the pre-generated all-password-chars line
10748           - Added calling RecalculatePasswordLine() method for password lines
10750 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10752         * Hwnd.cs: 
10753           - Added Reparented property to allow tracking of Window Manager
10754             reparenting actions (which affect X/Y calculations of toplevel 
10755             windows)
10756           - Made ToString() print window handles in hex
10757         * XplatUIX11.cs:
10758           - AddConfigureNotify(): Now uses reparented state off Hwnd to
10759             determine if X/Y needs offsetting
10760           - AddConfigureNotify(): Fixed offset calculations
10761           - Now adds ReparentNotify messages into the queue
10762           - Now processes ReparentNotify messages and causes a 
10763             WM_WINDOWPOSCHANGED message to be sent upstream if a window
10764             is reparented (as most likely it's X/Y coordinates are changed
10765             due to that)
10767 2005-12-14  Jackson Harper  <jackson@ximian.com>
10769         * XplatUIX11.cs: Tool windows still need to respek focus.
10771 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10773         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
10774           have a working release
10776 2005-12-13  Jackson Harper  <jackson@ximian.com>
10778         * Form.cs: Update styles after setting the border style regardless
10779         of whether or not the window is using a window manager.
10781 2005-12-13  Jackson Harper  <jackson@ximian.com>
10783         * Form.cs: We now hook into an internal window manager instead of just an
10784         MDI subsystem, this is so we can have properly behaving tool windows.
10785         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
10786         * InternalWindowManager.cs: New internal class that acts as a
10787         window manager for tool windows and as a base for mdi windows.
10788         * MdiWindowManager.cs: New class that acts as a window manager for
10789         mdi windows.
10791 2005-12-12  Jackson Harper  <jackson@ximian.com>
10793         * Control.cs: Updates so we match behavoir for for implicit
10794         controls. Fixes explosions in MDI.
10796 2005-12-12  Jackson Harper  <jackson@ximian.com>
10798         * Control.cs: Implement Invalidate (Region).
10800 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
10802         * Control.cs: 
10803           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
10804             the same events as MS does. MS fires events for each property 
10805             except, for unknown reasons, Cursor, when the control is reparented. 
10806             I can't seem to totally match add/remove since MS also fires some 
10807             VisibleChanged events, which makes no sense. Consolidated the
10808             parenting code into a separate method so it can be called from
10809             both Add and Remove. set_Parent no longer needs any special logic
10810             as it calls the parent's add method which implicitly fires
10811             all events
10812           - Removed some obsolete code and debug output
10813           - Enabled state is inherited from parents, if this is enabled
10815 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
10817         * Form.cs: Removed commented out code
10819 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
10821         * Control.cs:
10822           - Added internal version of Invoke, with additional argument 
10823             indicating if we're calling it from a Dispose() handler. That
10824             way we can avoid BeginInvoke throwing an exception if we're
10825             calling for an already destroyed window.
10826           - Added a dispose argument to BeginInvokeInternal, and made the
10827             check if a valid window handle chain exists conditional on
10828             it not being a dispose call
10829           - Removed code in DestroyHandle to destroy our children. Since we
10830             now handle the WM_DESTROY message we will catch all our children
10831             being destroyed.
10832           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
10833         * Form.cs:
10834           - Added a field to track the application context of the form.
10835           - No need to set closing variable as response to WM_CLOSE, instead
10836             we destroy the window. We also call PostQuitMessage if the form
10837             has an application context (which makes it the main app form,
10838             which, when closed terminates the app)
10839         * XplatUI.cs:
10840           - Dropped Exit() method, it's naming was confusing
10841           - Added PostQuitMessage() which causes GetMessage to return false
10842             once the message queue is empty
10843         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
10844           PostQuitMessage()
10845         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
10846           no longer a valid XplatUI method, but left it in since it's used
10847           internally. Added empty PostQuitMessage() method.
10848         * MenuAPI.cs: Replaced call to Exit() with call to
10849           PostQuitMessage, even though this is probably no longer needed.
10850         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
10851         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
10852         * Application.cs:
10853           - Replaced call to XplatUI.Exit() with PostQuitMessage()
10854           - Removed old debug code that would call XplatUI for exception
10855             display, enabled standard exception handling (Still not enabled
10856             though, until NativeWindow's ExternalExceptionHandler define
10857             is removed
10858         * NativeWindow.cs:
10859           - Added internal method to allow control to update NativeWindow
10860             after a window has been destroyed
10861           - Added handling of already destroyed windows when calling i
10862             DestroyWindow
10863           - Added removal of handle from list on ReleaseHandle
10864         * XplatUIX11.cs:
10865           - Dropped GetMessageResult var and related code
10866           - Added PostQuitState to field to track if PostQuitMessage has been
10867             called
10868           - Dropped Exit() method
10869           - Added PostQuitMessage() method
10870           - GetMessage now will return false if PostQuitState is set and no
10871             more messages are in the queue.
10872           - Expose handler will no longer generate WM_PAINT messages if we are
10873             in PostQuitState since it's very likely any windows have already
10874             been destroyed, and since Hwnd won't get updated until we have
10875             processed the DestroyNotify we'd be causing X errors.
10876         
10877 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10879         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
10880           Thanks to Mike for pointing out the err of my ways.
10882 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10884         * Control.cs(PreProcessMessage): Moved menu handling back, but
10885           after all other key handling, to match MS (who handles Menu in
10886           DefWndProc)
10887         * Menu.cs (WndProc): Removed my brainfart
10889 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10891         * Control.cs(PreProcessMessage): Removed special menu handling 
10892         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
10894 2005-12-07  Mike Kestner  <mkestner@novell.com>
10896         * Control.cs : special case SYSKEYUP so that we can adjust keynav
10897         state according in tracker.
10898         * Menu.cs : promote tracker field to base class and provide a tracker
10899         lookup capability.  Add/Remove shortcuts dynamically if the top menu
10900         has a tracker. Unparent items that are removed from the collection.
10901         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
10902         * Theme*.cs: add always_show_hotkeys field to support configurability
10903         of mnemonic display.  win32 doesn't show mnemonics until Alt is
10904         pressed.
10906 2005-12-07  Jackson Harper  <jackson@ximian.com>
10908         * MdiChildContext.cs: Use Control.ResetCursor.
10909         * Control.cs: ResetCursor needs to set the property so that the
10910         correct XplatUI call gets made.
10912 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10914         * Control.cs: More fixes to make our key events match MS. We
10915           were not setting the modifier state on KeyData, and we were
10916           not generating any events when Alt was pressed with a key
10917           since handling of WM_SYSxxx was missing for the OnKey methods.
10919 2005-12-07  Jackson Harper  <jackson@ximian.com>
10921         * MdiChildContext.cs: reenable the sizing code.
10922         - When the mouse leaves a window reset its cursor.
10924 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10926         * ThemeClearlooks.cs: Reflect latest Hwnd changes
10928 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10930         * Hwnd.cs: Now using the theme 3d bordersize to calculate
10931           widths of Fixed3D borders
10933 2005-12-07  Jackson Harper  <jackson@ximian.com>
10935         * MdiClient.cs: Fix warnings. Earn Mike's love.
10937 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10939         * ThemeClearlooks.cs:
10940           - Adjusted mouse over button color
10941           - Added first parts of CheckBox drawing
10942           - Added correct color for selected text background
10943           - Fixed ComboBox drawing
10944           - Added CPDrawBorder3D and CPDrawBorder
10946 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10948         * XplatUIX11.cs: Added call to XBell for AudibleAlert
10950 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
10952         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10953           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
10954           alert users via sound. We could add an enum arg with different
10955           types of alerts in the future
10957 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10959         * Control.cs: Fix behaviour problems pointed out by Mike
10961 2005-12-05  Mike Kestner  <mkestner@novell.com>
10963         * StatusBarPanel.cs: add Invalidate method and hook it into all the
10964         prop setters.  Calls parent.Refresh for now, but could be maybe be
10965         optimized with an internal method on StatusBar at some point.
10966         [Fixes #76513]
10968 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
10970         * RichTextBox.cs: Implemented get_SelectionColor
10972 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
10974         * ThemeClearlooks.cs:
10975           - Removed dead code
10976           - Draw black button border only if button is Form.AcceptButton
10977           - Draw correct button color for pressed RadioButton if the mouse 
10978             has entered the button
10979           - Updated ProgressBar drawing!
10980           - Updated CPDrawSizeGrip drawing
10981           - Updated StatusBarPanel drawing
10983 2005-12-05  Mike Kestner  <mkestner@novell.com>
10985         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
10986         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
10988 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
10990         * ThemeClearlooks.cs: Initial check-in, activate with
10991           export MONO_THEME=clearlooks
10992         * ThemeEngine.cs: Added ThemeClearlooks
10994 2005-12-03  Mike Kestner  <mkestner@novell.com>
10996         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
10997         [Fixes #76897]
10999 2005-12-02  Jackson Harper  <jackson@ximian.com>
11001         * Form.cs: If the child form has no menu the default main menu is
11002         used as the active menu.
11004 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
11006         * ListBox.cs: Check if any items exist before trying to resolve 
11007           coordinates into items
11009 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
11011         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
11012           as the second color for the background hatch
11014 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
11016         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
11017         * RichTextBox.cs: FormatText position arguments are 1-based, now making
11018           sure that what we pass to FormatText is always 1-based. Fixes #76885
11020 2005-11-29  Miguel de Icaza  <miguel@novell.com>
11022         * NumericUpDown.cs (EndInit): When we are done initializing,
11023         reflect any updates on the UI.
11025 2005-12-02  Jackson Harper  <jackson@ximian.com>
11027         * ImplicitHScrollBar.cs:
11028         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
11029         their container controls.
11030         * TreeView.cs: Use the new implicit scrollbars.
11032 2005-12-02  Jackson Harper  <jackson@ximian.com>
11034         * TreeView.cs: Make top_node internal so the TreeNodeCollections
11035         can play with it.
11036         * TreeNodeCollection.cs: If we remove the topnode we need to
11037         update topnode to the next node in line.
11038         - When clearing nodes go through the same process as removing
11039         them, so they get depareneted and checked if they are top node.
11041 2005-12-01  Jackson Harper  <jackson@ximian.com>
11043         * TreeView.cs: When imagelists are used the image area is
11044         selectable as well as the text.
11045         - If there are no selected nodes select the first one.
11046         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
11047         so don't do it more then we need to.
11049 2005-12-01  Jackson Harper  <jackson@ximian.com>
11051         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
11052         that arrows can be scaled.
11054 2005-12-01  Jackson Harper  <jackson@ximian.com>
11056         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
11057         fail. Patch by Dieter Bremes
11059 2005-11-30  Jackson Harper  <jackson@ximian.com>
11061         * Form.cs: Property is 2.0 only
11062         * PrintDialog.cs: Signature fix.
11064 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
11066         * TextControl.cs: 
11067           - No longer artificially moves text 2 pixels down (now that we have
11068             borders this is no longer needed)
11069           - Added calcs for left, hanging and right indent
11071 2005-11-23  Mike Kestner  <mkestner@novell.com>
11073         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
11075 2005-11-30  Jackson Harper  <jackson@ximian.com>
11077         * MdiChildContext.cs: Set the cloned menus forms, as these don't
11078         get cloned as part of CloneMenu ().
11079         * Menu.cs: Make sure the parent of the items get set correctly
11080         when they are added.  And the owners are notified of the changes.
11081         * Form.cs: Create an ActiveMenu property, so that when MDI is used
11082         we can change the menu being displayed/handled by the form without
11083         changing the menu assosciated with the form.
11084         - Don't let Mdi children draw/handle menus.
11085         
11086 2005-11-30  Jackson Harper  <jackson@ximian.com>
11088         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
11089         a MenuChanged event. Just to make the API a little more
11090         consistent.
11091         * MainMenu.cs:
11092         * MenuItem.cs: Use the new OnMenuChanged
11093         * MdiChildContext.cs: Handle menu merging.
11094         * Form.cs: Implement MergedMenu.
11095         
11096 2005-11-30  Jackson Harper  <jackson@ximian.com>
11098         * Menu.cs: We were misusing Add. Add goes behind the specified
11099         index according to the docs, and does not replace the specified
11100         index. So I added an Insert method.
11102 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
11104         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
11105           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
11106           is for Jackson
11107         * RichTextBox.cs: Added calls to base for DnD events
11109 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
11111         * TextControl.cs:
11112           - Fixed drag-selection related crash; style fixes
11113           - Implemented undo class
11114             o Implemented method to capture document state for specified
11115               range in document tree
11116             o Implemented method to restore captured document state
11117             o Implemented cursor tracking
11118             o Implemented basic undo stack
11119           - Added undo cursor tracking to methods altering cursor location
11120           - Added undo tracking to selection deletion (still missing
11121             other text-altering hookups)
11122         * RichTextBox.cs:
11123           - Added SelectionLength property
11124           - Implemented CanPaste()
11125           - Implemented Paste()
11126           - Added missing protected methods
11127           - Fixed RTF->Document conversion; now uses font index 0 and color 
11128             index 0 as the default font for the parsed text
11129           - Fixed RTF<->Document font size translation
11130           - Fixed RTF generation, now properly handles cross-tag boundaries
11131             for single line selection
11132           - No longer always appends blank line to generated RTF
11133           - Removed TODOs
11134           - Added missing attributes
11135           - Hooked up undo-related methods
11136         * TextBoxBase.cs:
11137           - Implemented Copy()
11138           - Implemented Paste()
11139           - Implemented Cut()
11140           - Fixed caret mis-behaviour on backspace across line-boundaries
11142 2005-11-29  Jackson Harper  <jackson@ximian.com>
11144         * MdiClient.cs: Add a method for activating mdi children. Very
11145         basic right now. I imagine someday it might need more girth.
11146         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
11147         children windows names are added to the menu item.
11148         * ThemeWin32Classic.cs: Draw the arrow if the item is an
11149         mdilist. This happens regardless of whether or not there are any
11150         mdi windows to see in the list, and according to my tests happens
11151         before the items are even added. Also happens if there isn't even
11152         an mdi client to get windows from.
11154 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
11156         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
11157         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
11159 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
11161         * DataGridTableStyle.cs:
11162           - Create always the styles for the missing columns even if they are
11163             provided by the user (not default table style)
11164         * DataGrid.cs:
11165           - Fixes bug 76770
11166           - Fixes SetDataBinding (always re-attach source)
11167           - Fixes SetNewDataSource (only clear styles if they are not for 
11168             this source)
11169          -  Expands OnTableStylesCollectionChanged to handle style refresh 
11170             and remove properly
11172 2005-11-29  Jackson Harper  <jackson@ximian.com>
11174         * FileDialog.cs: Implement missing bits, remove some dead
11175         code.
11176         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
11177         creation of the panel so that the options set on the dialog are
11178         seen when the panel is created.
11179         * TreeView.cs: raise a click when items are clicked.
11180         
11181 2005-11-29  Jackson Harper  <jackson@ximian.com>
11183         * MdiClient.cs: Pass some signature methods through to base.
11185 2005-11-28  Jackson Harper  <jackson@ximian.com>
11187         * ListView.cs: Raise the click event when items are clicked.
11189 2005-11-28  Jackson Harper  <jackson@ximian.com>
11191         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
11192         a nullref.
11194 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
11196         * ThemeNice.cs: - Removed 1 pixel bitmaps
11197           - Use SmoothingMode.AntiAlias where it makes sense
11198             (ScrollButton arrow for example)
11199           - Enhanced Button focus drawing
11200           - Fixed ComboBox drawing (no artefacts anymore, focus
11201             rectangle is back again, reduced size of ComboButton, etc.)
11202           - Fixed RadioButton focus drawing for Appearence.Button
11203           - Slight ScrollButton redesign
11204           - Some LinearGradientBrush size fixes
11205           - GroupBoxes have now rounded edges
11206           - Fixed StatusBar drawing
11208 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
11210         * ThemeNice.cs: - Remove dead code
11211           - use correct background colors for menus, etc.
11212           - Fake pixel drawing with 1 pixel bitmaps
11214 2005-11-24  Jackson Harper  <jackson@ximian.com>
11216         * MdiClient.cs: Size the scrollbars when resizing the window.
11217         - Resize the maximized windows when the client is resized
11218         * Form.cs: Make the child context available
11219         
11220 2005-11-23  Jackson Harper  <jackson@ximian.com>
11222         * MdiChildContext.cs: Don't size windows if they are maximized.
11224 2005-11-23  Mike Kestner  <mkestner@novell.com>
11226         * ContextMenu.cs: use MenuTracker.
11227         * Control.cs: remove menu handle usage.
11228         * Form.cs: remove menu handle usage.
11229         * Hwnd.cs: remove menu handle usage.
11230         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
11231         motion and clicks to the new Tracker handlers.
11232         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
11233         and handle usage.
11234         * MenuAPI.cs: refactored to combine popup and menubar event handling.
11235         Killed the MENU and MENUITEM data types and associated collections
11236         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
11237         MenuTracker class that exposes the leftovers from the old MenuAPI
11238         static methods. Restructured Capture handling so that only one grab is
11239         done for the entire menu hierarchy instead of handing off grabs to
11240         submenus. Tracker now has an invisible control to Capture when active.
11241         * MenuItem.cs: add sizing accessors, kill Create
11242         and handle usage.
11243         * Theme.cs: remove menu handle and MENU(ITEM) usage.
11244         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
11245         MENU(ITEM). remove menu handle usage, use Menu directly.
11246         * XplatUIDriver.cs: remove menu handle usage.
11247         * XplatUIOSX.cs: remove menu handle usage.
11248         * XplatUIWin32.cs: remove menu handle usage.
11249         * XplatUIX11.cs: remove menu handle usage.
11251 2005-11-22  Jackson Harper  <jackson@ximian.com>
11253         * Hwnd.cs: Don't compute the menu size for
11254         DefaultClientRectangle.
11255         - Reenable menu sizes being computed for GetClienRectangle.
11256         * Form.cs: Remove comment of trechery
11257         
11258 2005-11-22  Jackson Harper  <jackson@ximian.com>
11260         * Hwnd.cs: The adjustments for the menu bar are made when it is
11261         attached to the form.
11263 2005-11-19  Jackson Harper  <jackson@ximian.com>
11265         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
11266         (just like on windows).
11268 2005-11-19  Jackson Harper  <jackson@ximian.com>
11270         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
11271         use real buttons anymore because they are in non client area. The
11272         one TODO here is that I need to somehow invalidate a section of
11273         the non client area.
11275 2005-11-18  Jackson Harper  <jackson@ximian.com>
11277         * Control.cs: Put the enum check back in now that MDI doesnt have
11278         to use this to set border styles.
11279         * Form.cs: Only set mdi child windows borders if the handle has
11280         been created.
11281         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
11282         this directly on to the driver.
11283         - Get the move start position before adjusting for the titlebar
11284         height, this fixes the windows "skipping" when they are first
11285         moved.
11287 2005-11-18  Jackson Harper  <jackson@ximian.com>
11289         * XplatUIX11.cs: Just compute the mdi borders separately as they
11290         don't totally match up with normal form borders.
11292 2005-11-18  Jackson Harper  <jackson@ximian.com>
11294         * Control.cs: Set WS_ styles for borders, so that the driver does
11295         not have to retrieve the control instance to figure out what kind
11296         of borders it should have.
11297         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
11298         driver can know its an mdi child easily.
11299         * XplatUIX11.cs: Get the border styles and whether the window is
11300         MDI from the Styles and ExStyles params instead of having to get a
11301         control. This prevents a chicken and egg problem.       
11303 2005-11-18  Jackson Harper  <jackson@ximian.com>
11305         * MdiClient.cs: Fix typo so scrollbars show up correctly.
11307 2005-11-18  Jackson Harper  <jackson@ximian.com>
11309         * MdiClient.cs: Calculate when to add and remove scrollbars
11310         correctly.
11311         * MdiChildContext.cs: Adjust the y position to take the titlebar
11312         into account.
11313         - No height for FormBorderStyle.None
11315 2005-11-18  Jackson Harper  <jackson@ximian.com>
11317         * Control.cs: Allow non enum values to be used for
11318         InternalBorderStyle.  MDI does this to set a special border style.
11319         - New utility methods for converting points to/from client coords
11320         - Add the newly created control to the Controls collection before
11321         updating its style. This way UpdateStyle can walk the control
11322         heirarchy to find the control if needed.
11323         so I don't need to create a new Point object all the time.
11324         * Form.cs: Let MDI windows handle their border styles.
11325         - Set styles on MDI windows so the correct title style is derived.
11326         * MdiChildContext.cs: Move all the painting and window handling
11327         into the non client area.
11328         - Use correct sizing and put correct buttons on frames based on
11329         the FormBorderStyle.
11330         - Notify the mdi client about scrolling
11331         - Need to handle the buttons ourselves now, because they are all
11332         in non client areas and we can't add controls there.
11333         * MdiClient.cs: Halfway to scrolling, this implementation is
11334         somewhat broken though, we need to check to make sure other
11335         windows aren't causing scrolling before removing the bars. Also
11336         the bars need to be drawn on top, maybe I can switch implicit
11337         controls to be on top.
11338         * Hwnd.cs: caption_height and tool_caption_height are now
11339         properties of an hwnd, this way they can be set by the driver
11340         based on the type of window they are.  In X11 the window manager
11341         handles the decorations so caption_height is zero unless its an
11342         MDI window.
11343         - Add 3 pixel borders for MDI windows (0xFFFF).
11344         - Get rid of some code duplication, have DefaultClientRectanle
11345         just call GetClientRectangle.
11346         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
11347         Hwnd now.
11348         - Set border styles differently for mdi windows.
11349         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
11350         Hwnd now.
11351         
11352 2005-11-15  Mike Kestner  <mkestner@novell.com>
11354         * Menu.cs: when adding an item to the collection, if item is already 
11355         parented, remove it from the parent.
11357 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
11359         * X11DesktopColors.cs: Added KDE support
11361 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
11363         * XplatUIWin32.cs: 
11364           - Clipboard methods now can translate Rtf format
11365           - No longer removes clipboard contents whenever a new format is added
11366             to allow placing multiple formats on the clipboard
11367         * Clipboard.cs: Clipboard now supports getting a IDataObject and
11368           will place all formats contained in it onto the clipboard. Also
11369           now cleans the clipboard before placing a new object onto it
11370         * RichTextBox.cs:
11371           - Implemented set_Rtf
11372           - Implemented set_SelectedRtf
11373           - Created InsertRTFFromStream() method to allow single code base
11374             for all properties and methods that insert RTF into document
11375           - Removed debug output
11376         * TextControl.cs:
11377           - Fixed Delete(int) to fix up line numbers
11378           - Fixed ReplaceSelection to combine start and end line
11379           - Fixed serious DeleteChars bug that would leave the document tree
11380             broken
11381           - Improved DumpTree with several logic checks to detect broken
11382             document trees
11383           - Removed debug lines
11384           - Fixed Caret.WordForward/WordBack moving code, now always also 
11385             updates caret.tag (fixes crash when word-selecting across tag
11386             boundaries via keyboard)
11387           - Added Insert() method for inserting multiline text into documents
11388           - Fixed DeleteChars() calculation errors that would cause a broken
11389             tag chain with multiple tag lines
11390           - DeleteChars() no longer crashes on multi-tag lines if not all tags
11391           - Split() no longer moves caret if split is at caret location
11392           - ReplaceSelection() now updates the cursor and re-displays it
11393           - ReplaceSelection() now uses new Insert() method to avoid code
11394             duplication
11395           - FormatText() can now handle formatting partial lines
11396         * TextBoxBase.cs:
11397           - Append now uses new TextControl.Insert() method (this avoids 
11398             duplicate code)
11399           - Implemented Ctrl-X (Cut) (
11400           - Implemented Ctrl-C (Copy)
11401           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
11402             regeneration when pasting text; roundtripping Copy&Paste within
11403             edit control still fails due to some calculation bugs in GenerateRTF)
11404           - The Delete key will now remove the current selection if it is visible
11405         * TextBox.cs: Removed debug lines
11406         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
11407           driver to be initialized and can't therefore be done via a static ctor)
11409 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
11411         * TextControl.cs: Added backend code for finding char arrays and strings
11412         * TextBoxBase.cs:
11413           - Added mouse wheel scroll support
11414           - Added support for VScroll and HScroll events
11415         * RichTextBox.cs:
11416           - Implemented all seven Find() variants
11417           - Implemented GetCharFromPosition()
11418           - Implemented GetCharIndexFromPosition()
11419           - Implemented GetLineFromIndex()
11420           - Implemented GetPositionFromCharIndex();
11421           - Implemented SaveFile for PlainText and UnicodeText
11422           - Fixed set_Font, now setting a new font applies that font to
11423             the whole document
11424           - Implemented generic Document to RTF converter
11425           - Implemented SaveFile for RichText format (still missing unicode
11426             conversion for non-ansi chars)
11427           - Implemented get_Rtf
11428           - Implemented get_SelectedRtf
11430 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
11432         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
11433           to allow any captures to be released before triggering OnClick. This
11434           way a click handler may capture the mouse without interference.
11435         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
11436           This way we send them even though X may not allow a grab (if the window
11437           isn't visible, for example)
11439 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
11441         * DataGridViewRowEventArgs.cs: DataGridView implementation
11442         * DataGridViewElement.cs: DataGridView implementation
11443         * DataGridViewComboBoxCell.cs: DataGridView implementation
11444         * DataGridViewDataErrorContexts.cs: DataGridView implementation
11445         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
11446         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
11447         * ImageLayout.cs: DataGridView implementation
11448         * DataGridViewComboBoxColumn.cs: DataGridView implementation
11449         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
11450         * DataGridViewSelectionMode.cs: DataGridView implementation
11451         * IDataGridViewEditingControl.cs: DataGridView implementation
11452         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
11453         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
11454         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
11455         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
11456         * DataGridViewColumnSortMode.cs: DataGridView implementation
11457         * DataGridView.cs: DataGridView implementation
11458         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
11459         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
11460         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
11461         * Padding.cs: DataGridView implementation
11462         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
11463         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
11464         * DataGridViewRowEventHandler.cs: DataGridView implementation
11465         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
11466         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
11467         * DataGridViewButtonCell.cs: DataGridView implementation
11468         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
11469         * DataGridViewEditMode.cs: DataGridView implementation
11470         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
11471         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
11472         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
11473         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
11474         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
11475         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
11476         * DataGridViewCellEventHandler.cs: DataGridView implementation
11477         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
11478         * DataGridViewCellStyleConverter.cs: DataGridView implementation
11479         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
11480         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
11481         * DataGridViewColumnEventArgs.cs: DataGridView implementation
11482         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
11483         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
11484         * QuestionEventArgs.cs: DataGridView implementation
11485         * IDataGridViewEditingCell.cs: DataGridView implementation
11486         * DataGridViewTriState.cs: DataGridView implementation
11487         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
11488         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
11489         * DataGridViewColumnCollection.cs: DataGridView implementation
11490         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
11491         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
11492         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
11493         * DataGridViewColumn.cs: DataGridView implementation
11494         * DataGridViewCellBorderStyle.cs: DataGridView implementation
11495         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
11496         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
11497         * DataGridViewRow.cs: DataGridView implementation
11498         * DataGridViewImageCellLayout.cs: DataGridView implementation
11499         * DataGridViewImageCell.cs: DataGridView implementation
11500         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
11501         * DataGridViewCheckBoxCell.cs: DataGridView implementation
11502         * DataGridViewHeaderCell.cs: DataGridView implementation
11503         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
11504         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
11505         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
11506         * DataGridViewTextBoxColumn.cs: DataGridView implementation
11507         * QuestionEventHandler.cs: DataGridView implementation
11508         * DataGridViewCellStyleScopes.cs: DataGridView implementation
11509         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
11510         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
11511         * DataGridViewCell.cs: DataGridView implementation
11512         * DataGridViewCellEventArgs.cs: DataGridView implementation
11513         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
11514         * DataGridViewCellStyle.cs: DataGridView implementation
11515         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
11516         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
11517         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
11518         * TextFormatFlags.cs: DataGridView implementation
11519         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
11520         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
11521         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
11522         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
11523         * DataGridViewButtonColumn.cs: DataGridView implementation
11524         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
11525         * HandledMouseEventArgs.cs: DataGridView implementation
11526         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
11527         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
11528         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
11529         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
11530         * DataGridViewRowCollection.cs: DataGridView implementation
11531         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
11532         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
11533         * DataGridViewHitTestType.cs: DataGridView implementation
11534         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
11535         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
11536         * DataGridViewColumnEventHandler.cs: DataGridView implementation
11537         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
11538         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
11539         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
11540         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
11541         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
11542         * DataGridViewContentAlignment.cs: DataGridView implementation
11543         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
11544         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
11545         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
11546         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
11547         * DataGridViewPaintParts.cs: DataGridView implementation
11548         * DataGridViewCellCollection.cs: DataGridView implementation
11549         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
11550         * DataGridViewImageColumn.cs: DataGridView implementation
11551         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
11552         * DataGridViewElementStates.cs: DataGridView implementation
11553         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
11554         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
11555         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
11556         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
11557         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
11558         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
11559         * DataGridViewRowHeaderCell.cs: DataGridView implementation
11560         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
11561         * DataGridViewTextBoxCell.cs: DataGridView implementation
11562         * DataGridViewBand.cs: DataGridView implementation
11563         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
11564         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
11565         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
11566         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
11567         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
11568         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
11569         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
11570         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
11571         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
11572         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
11573         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
11575 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
11577         * ThemeWin32Classic.cs: 
11578           - Draw the outside focus rectangle around buttons
11579           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
11580             doesn't use end caps for every dash of a line anymore. This
11581             workaround ignores the forecolor.
11583 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
11585         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
11586           endian safe.
11588 2005-11-07  Jackson Harper  <jackson@ximian.com>
11590         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
11592 2005-11-07  Jackson Harper  <jackson@ximian.com>
11594         * ScrollableControl.cs: Calculate the maximum and change vars
11595         (more) correctly so that scrollbars appear as a sensible size.
11597 2005-11-04  Jackson Harper  <jackson@ximian.com>
11599         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
11600         collection.
11601         * TreeView.cs: When the tree is sorted null out the top_node so
11602         that it is recalculated.
11603         - Use dotted lines instead of dashed lines to match MS better.
11605 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
11607         * ListView.cs: 
11608           - Implements key search for items. Useful when browsing files with FileDialog
11609           - When changing view mode or when clear the items reset scrollbar positions
11611 2005-11-04  Jackson Harper  <jackson@ximian.com>
11613         * CurrencyManager.cs: Implement the MetaDataChanged event, the
11614         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
11615         as to what the method may do as there is no real way of creating a
11616         derived CurrencyManager and calling the method. 
11618 2005-11-03  Jackson Harper  <jackson@ximian.com>
11620         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
11621         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
11622         method which seems to just be used internally to refresh the tabs.
11624 2005-11-03  Jackson Harper  <jackson@ximian.com>
11626         * TabControl.cs: Implement the remove method. Fix some broken
11627         comments.
11629 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11631         * DateTimePicker.cs:
11632           - Added missing DateTimePickerAccessibleObject class
11633           - Added missing events
11634           - Added OnFontChanged method
11635         * Form.cs: Added missing attributes
11636         * TreeView.cs: Added missing attributes
11638 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
11640         * GridItemCollection.cs: Fix signatures
11642 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11644         * XplatUI.cs: Updated build rev/date
11645         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
11646           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
11647         * Application.cs: Trigger context-specific ExitThread events
11649 2005-11-03  Jackson Harper  <jackson@ximian.com>
11651         * Menu.cs:
11652         * MainMenu.cs:
11653         * GridTableStylesCollection.cs:
11654         * Timer.cs:
11655         * TabPage.cs:
11656         * HelpProvider.cs:
11657         * StatusBar.cs:
11658         * MonthCalendar.cs: Signature fixes
11660 2005-11-03  Jackson Harper  <jackson@ximian.com>
11662         * TreeNodeCollection.cs: Remove should not be virtual.
11663         * TreeView.cs: Implement the last of the missing methods.
11665 2005-11-03  Jackson Harper  <jackson@ximian.com>
11667         * TreeNodeConverter.cs: Implement to get off my class-status back.
11669 2005-11-03  Jackson Harper  <jackson@ximian.com>
11671         * TreeView.cs: Hookup the bits for drag and drop.
11672         * TreeNode.cs: Don't cache the tree_view or index anymore, now
11673         that nodes can be moved from tree to tree easily this just causes
11674         all sorts of problems.
11675         * TreeNodeCollection: Don't need to give treenodes an index and
11676         treeview anymore when they are added, these are computed on the
11677         fly. Also make sure to remove a node before its added.
11679 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11681         * TextControl.cs:
11682           - Added CaretSelection enum
11683           - Added comparison methods to Marker struct, makes selection code
11684             more readable
11685           - Added SelectionStart and SelectionEnd as 'moveable' location for
11686             the CaretDirection enum and handler
11687           - Added selection_prev variable to track optimized invalidation for
11688             word and line selection
11689           - Added SelectionVisible property (returns true if there is a valid 
11690             selection)
11691           - Switched CaretHasFocus to only display the caret if there is no
11692             visible selection
11693           - Avoiding StringBuilder.ToString to retrieve a single char, instead
11694             using the direct character index; should be much faster
11695           - Added various conditional debug statements
11696           - Fixed invalidation calculation for selection ranges
11697           - Added ExpandSelection() method to support word and line selection
11698           - Switched SetSelectionToCaret to use new Marker compare overloads
11699           - Added central IsWordSeparator() method to determine word 
11700             separators/whitespace and FindWordSeparator() to streamline common
11701             usage of IsWordSeparator()
11702         * TextBoxBase.cs:
11703           - Removed unneeded grabbed variable, it was just mirroring
11704             Control.Capture
11705           - No longer firing OnTextChanged event when Text setter is called,
11706             since the base will fire the event for us
11707           - Added handling of Ctrl-Up/Down selection
11708           - Added handling of Shift-Cursorkey selection
11709           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
11710             words
11711           - Added handling of Shift and Ctrl-Shift-Home/End selection
11712           - Removed some debug output
11713           - Added handling for single/double/tripple-click to place caret/
11714             select word/select line respectively (Fixes bug #76031)
11715           - Added support for drag expansion of word/line selection
11716         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
11717           current selection
11719 2005-11-02  Jackson Harper  <jackson@ximian.com>
11721         * X11Dnd.cs: If the drag is going to and from a MWF window just
11722         copy the data instead of sending it out through the X Selection
11723         mechanism.
11725 2005-11-02  Jackson Harper  <jackson@ximian.com>
11727         * X11Dnd.cs:
11728         * XplatUIX11.cs: When in a drag we don't want motion notify
11729         messages to get passed on to the other controls. This prevents
11730         mouse move messages from showing up in the drag source.
11732 2005-11-02  Jackson Harper  <jackson@ximian.com>
11734         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
11735         the correct button is release to end a drag.
11736         * XplatUIX11.cs: Make the button state internal so the drag system
11737         can access it.  Dragging needs to know about all button releases,
11738         not just left button.
11740 2005-11-02  Miguel de Icaza  <miguel@novell.com>
11742         * Form.cs (Icon): If the icon is null, reset the icon to the
11743         default value. 
11745         * Cursor.cs: When writing the AND-mask bitmap do not include the
11746         number of colors, but hardcode those to two (black and white),
11747         fixes the loading of color cursors (Paint Dot Net).
11749         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
11750         turn off autoscaling.
11752         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
11754 2005-11-02  Jackson Harper  <jackson@ximian.com>
11756         * X11Dnd.cs: Make sure to send a status message if the pointer
11757         enters a control that can not accept a drop, otherwise the cursor
11758         isn't updated correctly. Also tried to compress the lines of code
11759         a bit.
11761 2005-11-02  Jackson Harper  <jackson@ximian.com>
11763         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
11764         set actions correctly.  This isn't perfect as XDND and win32 have
11765         some differences on how you allow actions. I'll clear this up by
11766         adding a path for drag from MWF to MWF windows.
11767         * XplatUIX11.cs: Hook into the dnd system.
11769 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
11771         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
11772         previously shown but they are no longer need it. Very obvious when 
11773         browsing files with FileDialog.
11775 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
11777         * Control.cs: We always need to call OnPaintBackground. We pretty much
11778           ignore AllPaintingInWmPaint and always do the painting there, whether 
11779           it's set or not, since we always ignore the WM_ERASEBKGND message 
11780           (which we don't generate on X11). This fixes #76616.
11781         * Panel.cs: Removed unneeded background painting. This happens properly
11782           in Control.cs already
11784 2005-10-31  Mike Kestner  <mkestner@novell.com>
11786         * Menu.cs: Add items to collection before setting their index.
11787         * MenuItem.cs : add range checking with ArgumentException like MS.
11788         [Fixes #76510]
11790 2005-10-31  Jackson Harper  <jackson@ximian.com>
11792         * ListBox.cs: Invalidate if the area is visible at all not just
11793         contained in the visible rect. Fixes unselection of semi visible
11794         items.
11796 2005-10-31  Jackson Harper  <jackson@ximian.com>
11798         * Control.cs: Consistently name the dnd methods. Make them
11799         internal so we can override them to match some MS behavoir
11800         internally.
11801         * Win32DnD.cs: Use the new consistent names.
11803 2005-10-31  Jackson Harper  <jackson@ximian.com>
11805         * TreeView.cs: Don't draw the selected node when we lose focus.
11807 2005-10-31  Jackson Harper  <jackson@ximian.com>
11809         * X11Dnd.cs: We still need to reset the state even though a full
11810         reset isn't being done, otherwise status's still get sent all over
11811         the place.
11813 2005-10-31  Jackson Harper  <jackson@ximian.com>
11815         * Control.cs: Make the dnd_aware flag internal so the dnd
11816         subsystem can check it. Catch exceptions thrown in dnd handlers to
11817         match MS behavoir.
11818         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
11819         * X11Dnd.cs: Handle null data in the converters. Set the XDND
11820         version when sending a XdndEnter. Use the control/hwnd dnd_aware
11821         flags to reduce the number of dnd enters/status's sent.
11823 2005-10-31  Jackson Harper  <jackson@ximian.com>
11825         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
11827 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
11829         * PictureBox.cs: Fixes 76512
11831 2005-10-28  Jackson Harper  <jackson@ximian.com>
11833         * X11Dnd.cs: Early implementation to support winforms being a drag
11834         source for data on X11. Also restructured the converters so they
11835         can go both ways now.
11836         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
11837         
11838 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
11840         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
11841           clipboard requests
11843 2005-10-27  Jackson Harper  <jackson@ximian.com>
11845         * TreeNode.cs: Implement serialization so my DnD examples will work.
11847 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
11849         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
11850           TreeView.cs: Don't dispose objects that are not owned.
11851           
11852 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
11854         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
11855           should retrieve the current cursor and report that, but XplatUI
11856           doesn't (yet) have an interface for that (and I'm not sure I even
11857           can, on X11)
11858         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
11859           until any message loop processing is done (and the WM_SETCURSOR
11860           replaces the cursor to the proper one)
11861         * XplatUIX11.cs: 
11862           - Fixed override behaviour, we can't set the cursor globally on X11, 
11863             just for our windows.
11864           - Invalidating the System.Drawing X11 display handle when we are
11865             shutting down
11866         * Control.cs: Fix to make csc happy
11868 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
11870         * TextBoxBase.cs: 
11871           - get_Text: Add last line (without trailing newline) to returned
11872             value (Fixes 76212)
11873           - get_TextLength: Count last line in returned length
11874           - ToString: Call Text property instead of duplicating code
11876 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
11878         * ImageList.cs: Dispose ImageAttributes objects.
11880 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11882         * ImageList.cs: Use attribute constructors with less arguments where
11883           possible.
11885 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11887         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
11888           Use typeof instead of strings when assembly is referenced. Added
11889           some more comments.
11891 2005-10-21  Jackson Harper  <jackson@ximian.com>
11893         * ListView.cs: Raise a double click event. Also tried to somewhat
11894         fix when the selectedindexchanged event is raised. Its still
11895         broken though.
11897 2005-10-21  Jackson Harper  <jackson@ximian.com>
11899         * TreeView.cs: New method to invalidate the plus minus area of a
11900         node without invalidating the whole node (maybe this can be used
11901         in some more places).
11902         * TreeNodeCollection.cs: When adding to an empty node we need to
11903         invalidate its plus minus area so the little block shows up.
11904         
11905 2005-10-21  Jackson Harper  <jackson@ximian.com>
11907         * TreeView.cs: Make sure that when we invalidate a node the bounds
11908         are big enough to cover the selected box and the focus
11909         rectangle. Use a different colour for the lines connecting nodes
11910         so they show up with all themes.
11912 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11914         * NativeWindow.cs: Don't call anything that could call into the driver,
11915           we might be on a different thread.
11917 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
11919         * Control.cs(Dispose): Since Dispose might run on a different thread,
11920           make sure that we call methods that could call into the driver via
11921           invoke, to avoid thread issues
11923 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11925         * XplatUI.cs: Removed finalizer
11926         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
11927           not allowing to be called on the finalizer thread.
11929 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
11931         * ImageList.cs:
11932           - Reverted r51889 and r51891.
11933           - Added ImageListItem class that stores unmodified image items and image
11934             properties required to create list images until handle is created.
11935           - Added AddItem and moved image creation logic to AddItemInternal.
11936           - Added CreateHandle method that creates images based on unmodified items.
11937           - Added DestroyHandle that changes state to store unmodified items.
11938           - Add and AddStrip methods no more create handle.
11939           - ReduceColorDepth has no return value.
11940           - Dispose destroys handle.
11941           - Modified other methods to reflect the above changes.
11942           - Implemented key support.
11943           - Added profile 2.0 members and attributes.
11944           - Added private Reset and ShouldSerialize methods that provide the same
11945             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
11946             them as they are private.
11947           - Added some more comments about implementation details.
11949 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11951         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
11953 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11955         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
11957 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11959         * DataGridDrawingLogic.cs: Fixes column hit calcultation
11960         * DataGridColumnStyle.cs: Remove debug message
11962 2005-10-20  Jackson Harper  <jackson@ximian.com>
11964         * TreeView.cs: We can always get input keys regardless of whether
11965         or not editing is enabled. They are used for navigation.
11967 2005-10-20  Jackson Harper  <jackson@ximian.com>
11969         * TreeNode.cs: Use the viewport rect for determining if a node
11970         needs to be moved for visibility. Don't use Begin/End edit. This
11971         calls a full refresh when its done.
11972         * TreeView.cs: New SetBottom works correctly.  Make the viewport
11973         rect property internal so the treenodes can see it. When clicking
11974         on a node we need to ensure that its visible because it might just
11975         be partly visible when clicked.
11977 2005-10-20  Jackson Harper  <jackson@ximian.com>
11979         * TreeNodeCollection.cs: Remove debug code.
11981 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11983         * Datagrid.cs: Implements column sorting in Datagrid
11984         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
11986 2005-10-20  Jackson Harper  <jackson@ximian.com>
11988         * TreeNodeCollection.cs: Remove items properly. Update the correct
11989         area after removing them.
11991 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11993         * Datagrid.cs: Should not call base.OnPaintBackground
11995 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11997         * XplatUIX11.cs (GetMessage):
11998           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
11999             window instead of client window
12000           - Now properly calculates NC_xBUTTONUP message coordinates
12001           - ScreenToMenu now properly calculates it's coordinates of whole 
12002             window, since menus are in the whole window, not in the client
12003             window
12004           - Added WholeToScreen coordinate translation method
12006 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
12008         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
12009           want to return a message, loop back to the beginning of the function
12010           and grab the next real message to process instead.
12012 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
12014         * Splitter.cs: Properly set limits if no filler control is used
12016 2005-10-19  Jackson Harper  <jackson@ximian.com>
12018         * ColorDialog.cs: Don't show the help button if it is not enabled
12019         instead of disabling it (this is what MS does). Don't create the
12020         panel until the dialog is run, otherwise the vars (such as
12021         ShowHelp) are not set yet.
12023 2005-10-19  Jackson Harper  <jackson@ximian.com>
12025         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
12026         are reduced when adding nodes.
12027         * TreeNode.cs:
12028         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
12029         tree.
12030         
12031 2005-10-19  Jackson Harper  <jackson@ximian.com>
12033         * FolderBrowserDialog.cs: End editing our treeview so the window
12034         actually gets refreshed.
12036 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
12038         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
12039           Obsoleted handling of WM_ERASEBKGND, now always draws our background
12040           inside of WM_PAINT
12042 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
12044         * MenuAPI.cs: Returns after Hidding window
12045         * XplatUIX11.cs: Added TODO found while debugging menu issues
12047 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
12049         * XplatUIX11.cs: Do not re-map the whole window when it's size
12050           becomes non-zero unless it's supposed to be actually visible
12052 2005-10-18  Jackson Harper  <jackson@ximian.com>
12054         * TreeView.cs: We don't need to keep a count anymore.
12055         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
12056         use the Grow method.
12058 2005-10-18  Jackson Harper  <jackson@ximian.com>
12060         * TreeNodeCollection.cs: Insert is not supported on arrays, so
12061         implement it manually here.
12063 2005-10-18  Jackson Harper  <jackson@ximian.com>
12065         * ImageList.cs: Dont kill the list when the colour depth is
12066         changed, just change the colour depth of all the images.
12067         - Same goes for setting the image size. Just resize them all
12068         instead of killing the list softly.
12070 2005-10-18  Jackson Harper  <jackson@ximian.com>
12072         * Control.cs: Don't invalidate empty rectangles.
12074 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
12076         * ListViewItem.cs:
12077           - Adds checked item to the Checked/Item lists (where empty before)
12078           - Do not add items to the Selected lists if they are already present
12079         * ListView.cs:
12080           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
12081           - When deleting items make sure that we delete them for the Selected
12082           and Checked list also.
12084 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
12086         * Label.cs: Dispose objects no longer used
12087         * ThemeWin32Classic.cs: Dispose objects no longer used
12089 2005-10-18  Jackson Harper  <jackson@ximian.com>
12091         * TabControl.cs: Don't refresh the whole control when the tabs are
12092         scrolled, we just need to refresh the tab area.
12094 2005-10-17  Jackson Harper  <jackson@ximian.com>
12096         * XplatUIX11.cs: Compress code a little bit. Only calculate the
12097         after handle when we need it.
12099 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
12101         * Control.cs: When the parent size changes, recalculate anchor 
12102           positions. Partial fix for #76462
12104 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
12106         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
12107           drawn. Fixes #76462
12109 2005-10-17  Jackson Harper  <jackson@ximian.com>
12111         * MonthCalendar.cs: Don't create the numeric up down until our
12112         handle is created. Otherwise our handle is created in the
12113         constructor and we don't know if we are a WS_CHILD or WS_POPUP
12114         yet.
12116 2005-10-17  Jackson Harper  <jackson@ximian.com>
12118         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
12119         correctly.
12121 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12122         * TreeNode.cs : small logical fix (was using local var instead of field)
12123         
12124 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
12126         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
12128 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
12130         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
12132 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
12134         * Control.cs: 
12135           - Re-implemented anchoring code. My first version was really broken.
12136             This fixes bug #76033. Unlike the previous implementation we will
12137             no longer have round errors since all numbers are calculated from
12138             scratch every time. Removed various anchor-related obsolete vars.
12139           - InitLayout no longer causes layout event firing and layout to be 
12140             performed
12142 2005-10-16  Jackson Harper  <jackson@ximian.com>
12144         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
12145         which was broken).
12147 2005-10-16  Jackson Harper  <jackson@ximian.com>
12149         * TabControl.cs: Remove debug code.
12151 2005-10-16  Jackson Harper  <jackson@ximian.com>
12153         * XEventQueue.cs: Increase the default queue size (very simple
12154         apps needed to grow the queue).
12155         * Hwnd.cs: No finalizer so we don't need to suppress
12156         finalization. Compute the invalid area manually so a new rectangle
12157         does not newto be created.
12158         * ScrollableControl.cs: Don't set any params (otherwise visibility
12159         isn't set correctly).
12160         * MdiChildContext.cs: New constructor takes the mdi parent so it
12161         doesn't have to be computed and avoids a crash on windows. Draw
12162         the window icon properly, and allow the text to be seen.
12163         * Form.cs: Use new MdiChildContext constructor. Make sure the
12164         child context isn't null in wndproc.
12165         * TabControl.cs: Don't set focus, this is muddling keyboard
12166         behavoir. Expand the tab rows when a window size increase will
12167         allow extra tabs to be seen. Don't allow tabs smaller than the
12168         width of a window to be scrolled out of view.
12169         * TreeNode.cs:
12170         * TreeView.cs: Use measure string to calculate a nodes width, the
12171         width is cached and only updated when the text or the font is
12172         changed. Don't check for expand/collapse clicks on the first level
12173         nodes if root lines are disabled.
12174         
12175 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
12177         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
12179 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
12181         * DataGridBoolColumn.cs: fixes warning
12183 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
12185         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
12186         to match more to match more precisely the MS Net behavior
12188 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
12190         * Hwnd.cs: Added field to track if window is mapped
12191         * XplatUIX11.cs: 
12192           - Unmap windows if they become 0-size, re-map when 
12193             they are >0 again; fixes #76035
12194           - Re-set our error handler after initializing X11Desktop
12195             to override any error handlers Gtk or whatever was called
12196             may have set.
12198 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
12200         * CheckedListBox.cs: Removed unused vars
12201         * ListView.cs: Fixed signatures
12202         * RichTextBox.cs: Removed unused vars
12203         * TextBoxBase.cs: Removed unused vars
12204         * XplatUIWin32.cs: Removed unused vars
12205         * XplatUIX11.cs: Removed unused vars
12206         * XplatUI.cs: Updated version and date to latest published
12208 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
12210         * Cursor.cs: Added private .ctor to work around a bug in
12211           resourceset (Thanks to Geoff Norton for the help on this)
12212         * SplitterEventArgs.cs: Made fields accessible so we don't
12213           waste boatloads of objects and can reuse the same one
12214           in Splitter
12215         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
12216           any captions and borders when generating screen coordinates
12217         * Splitter.cs: Reimplemented control, now fully complete, uses
12218           rubberband drawing, supports and obeys all properties, has
12219           proper cursors
12221 2005-10-13  Miguel de Icaza  <miguel@novell.com>
12223         * Form.cs (Form): Setup default values for autoscale and
12224         autoscale_base_size;  Make these instance variables, not static
12225         variables. 
12227         (OnLoad): on the first load, adjust the size of the form.
12229 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
12231         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
12232           width argument to DrawReversibleRectangle()
12233         * XplatUIWin32.cs, XplatUIX11.cs: 
12234           - Implemented width for DrawReversibleRectangle()
12235           - Added logic to DrawReversibleRectangle that recognizes a zero
12236             width or height and only draws a line in that situation
12237         
12238 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
12240         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
12241         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
12242         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
12243           method (it uses our FosterParent window to get a graphics context)
12245 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
12247         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
12248           and SetWindowBackground methods
12249         * Control.cs:
12250           - Setting proper ControlStyles
12251           - We no longer call XplatUI.SetWindowBackground and XplatUI.
12252             EraseWindowBackground, instead we draw the window background
12253             ourselves in PaintControlBackground. This behaviour is
12254             required to match MS, where, when OnPaintBackground is not
12255             called, the background is not drawn.
12256           - Removed unneeded Refresh() in set_Text
12257         * Hwnd.cs: Dropped the ErasePending support. No longer needed
12258         * XplatUIX11.cs:
12259           - Created DeriveStyles method to translate from CreateParams to
12260             FormBorderStyle and TitleStyle, also handles BorderStyle (which
12261             matches FormBorderStyle enum values)
12262           - Consolidated SetHwndStyles and CalculateWindowRect border/title
12263             style calculations into single DeriveStyles method
12264           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
12265             from redrawing the whole window on any resize or expose.
12266           - Fixed CreateWindow usage of SetWindowValuemask. Before not
12267             all styles were applied to our whole/client window appropriately
12268           - Removed EraseWindowBackground() and SetWindowBackground() methods
12269           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
12270             no longer clear/redraw the background through X
12271           - Removed handling of erase_pending bit, we have no use for it (or
12272             so it seems)
12273         * XplatUIOSX.cs:
12274           - Removed generation and handling of WM_ERASEBKGND message
12275           - Removed EraseWindowBackground() and SetWindowBackground() methods
12276           - Removed handling of hwnd.ErasePending flag
12277         * XplatUIWin32.cs:
12278           - Removed EraseWindowBackground() and SetWindowBackground() methods
12279           - We no longer call EraseWindowBackground on PaintEventStart, we 
12280             ignore the fErase flag, erasing is handled in Control in the
12281             background handler
12282         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
12283           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
12284           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
12285           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
12286           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
12287           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
12288           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
12290 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
12292         * PropertyGrids.cs: Get sub properties
12293         * PropertyGridView.cs: Fix drawing code
12295 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12297         * ListBox.cs: Fixes 76383
12299 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12301         * DataGridTextBoxColumn.cs: Sets location and size before attachment
12302         * ThemeWin32Classic.cs: Fixes border drawing and calculations
12303         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
12306 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12308         * ComboBox.cs: Fixes border drawing
12310 2005-10-10  Miguel de Icaza  <miguel@novell.com>
12312         * MimeIcon.cs: Ignore errors if the file can not be read.
12314 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12316         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
12317          - Fixed border calculations
12318          - Fixed horizontal scrolling in single column listboxes
12319          - Fixed drawing issues
12321 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
12323         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
12324           FormBorderStyle enum
12325         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
12326           code to determine FormBorderStyles from CreateParams
12327         * Form.cs:
12328           - Fixed bug where we'd set the wrong window styles if we were
12329             not creating an MDI window
12330           - Added call to XplatUI.SetBorderStyle when form borders are set
12331         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
12332         * Hwnd.cs:
12333           - Removed obsolete edge style
12334           - Switched from BorderStyle to FormBorderStyle
12335         
12336 2005-10-10  Jackson Harper  <jackson@ximian.com>
12338         * Form.cs: Use the property to get the window handle instead of
12339         accessing it directly. Prevents a null reference exception.
12341 2005-10-10  Jackson Harper  <jackson@ximian.com>
12343         * TreeView.cs: Don't adjust the rect given to DrawString now that
12344         our libgdiplus draws correctly.
12346 2005-10-08  Jackson Harper  <jackson@ximian.com>
12348         * TreeView.cs: Don't try to find the clicked on node if there are
12349         no nodes in the tree.
12351 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
12353         * RichTextBox.cs:
12355           restore
12357 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
12359         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
12360           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
12361           ErrorProvider.cs:
12362           Use ResPool for brushes and dispose System.Drawing objects that
12363           are not used anymore.
12365 2005-10-07  Jackson Harper  <jackson@ximian.com>
12367         * MdiChildContext.cs: Use the new borders instead of drawing them
12368         ourselves.
12370 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
12372         * Calling UpdateBounds after changing the window's BorderStyle 
12373         since the style can change the ClientSize
12375 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12377         * Control.cs: Made PaintControlBackground virtual
12378         * Panel.cs: Overriding PaintControlBackground instead of using paint
12379           event; paint event method was interfering with 'real' users of the
12380           event.
12382 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
12384         * ThemeWin32Classic.cs: remove border drawing since it is handled
12385         by the base control class now and was causing double border drawing.
12387 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12389         * Panel.cs: Redraw our background on paint. Not a pretty solution,
12390           but it does seem to match MS behaviour. This fixes bug #75324
12392 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12394         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
12395           somewhat hackish looking
12397 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12399         * TextBoxBase.cs:
12400           - We now accept Enter even if AcceptEnter is false, if the containing
12401             form does not have an AcceptButton configured (fixes bug #76355)
12402           - Calculations are now fixed to no longer use Width/Height, but
12403             ClientSize.Width/Height, since we now support borders (this was
12404             a result of fixing borders and therefore bug #76166)
12405           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
12406             true (fixes bug #76354)
12407         
12408 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12410         * Control.cs: 
12411           - Defaulting BorderStyle and setting it in XplatUI when our window 
12412             is created
12413           - Added enum check to InternalBorderStyle setter
12414         * XplatUIX11.cs: 
12415           - Added drawing of window borders
12416           - Now properly calculates WM decorations offset for toplevel 
12417             windows (fixes bug #74763)
12418         * XplatUIWin32.cs: 
12419           - Implemented BorderStyles for windows (we're letting win32 draw 
12420             the border for us)
12421           - Fixed the signature for SetWindowLong
12422         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
12423           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
12424           setting borders
12425         * UpDownBase.cs: Remove drawing of borders, this is handled by
12426           the driver, outside the client area
12427         * ListView.cs: Removed bogus border calculations. The control should
12428           be oblivious to borders, since those are not part of the client
12429           area. 
12430         * X11DesktopColors.cs: Commented out (currently) unneeded variables
12431         * ThemeWin32Classic.cs: Removed border calculations from ListView 
12432           drawing code
12434 2005-10-06  Jackson Harper  <jackson@ximian.com>
12436         * MdiChildContext.cs: Clear out the old virtual position remove
12437         all the unneeded calls to CreateGraphics.
12439 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12441         * TextControl.cs: Use proper color for highlighted text; fixes #76350
12443 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12445         * Form.cs: 
12446           - Added loading and setting of our new default icon
12447           - Only set icon if window is already created
12449 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12451         * Label.cs:
12452           - Do not explicitly set the foreground and background colors, to
12453             allow inheriting from parents (fixes #76302)
12454           - Use Control's InternalBorderStyle property to deal with borders
12456 2005-10-06  Jackson Harper  <jackson@ximian.com>
12458         * MdiChildContext.cs: Use the new xplatui function to draw a
12459         reversible rect.
12461 2005-10-06  Jackson Harper  <jackson@ximian.com>
12463         * Form.cs: Add the parent before creating the child context cause
12464         we need the parent when setting up the child.
12466 2005-10-06  Jackson Harper  <jackson@ximian.com>
12468         * FolderBrowserDialog.cs: redo the tree population code so a
12469         second thread isn't used. Should be a lot faster and more stable
12470         now.
12472 2005-10-05  Jackson Harper  <jackson@ximian.com>
12474         * TreeView.cs: There are no expand/collapse boxes if the node has
12475         no children.
12477 2005-10-05  Jackson Harper  <jackson@ximian.com>
12479         * X11DesktopColors.cs: Get menu colours for the gtk theme.
12481 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
12483         * FileDialog.cs: Fix InitialDirectory
12485 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12487         * ComboBox.cs:
12488                 - Fixes changing between styles
12489                 - Fixes simple mode
12490                 - Fixes last item crashing when navigating with keyboard
12492 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12494         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
12496 2005-10-05  Jackson Harper  <jackson@ximian.com>
12498         * TreeView.cs: If updating the root node do a full refresh.
12499         * TreeNode.cs: The root node should be expanded by default. Also
12500         added a utility prop to tell if we are the root node.
12501         * TreeNodeCollection.cs: Only refresh if the node we are being
12502         added to is expanded. Also added a comment on a potential
12503         optimization.
12504         
12505 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
12507         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
12508           in dispose method. Fixes #76330
12510 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
12512         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
12514                 - Implements vertical and horizontal scrolling using XplatUI
12515                 - Fixes keyboard navagation
12516                 - Fixes EnsureVisible
12517                 - Drawing fixes
12518                 - Handles and draws focus properly
12521 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
12523         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
12524           Create handle. NET_2_0: Destroy handle when value is null.
12526 2005-10-03  Jackson Harper  <jackson@ximian.com>
12528         * ScrollBar.cs: My last scrollbar patch was broken. This is a
12529         revert and a new patch to prevent the thumb from refreshing so
12530         much.
12532 2005-10-02  Jackson Harper  <jackson@ximian.com>
12534         * ScrollBar.cs: Don't update position if it hasn't actually
12535         changed. This occurs when you hold down the increment/decrement
12536         buttons and the thumb gets to the max/min.
12538 2005-10-01  Jackson Harper  <jackson@ximian.com>
12540         * Form.cs:
12541         * MdiChildContext.cs:
12542         * MdiClient.cs: Implement ActiveMdiChild in Form.
12544 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
12546         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
12548 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
12550         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
12551           be found
12553 2005-09-30  Jackson Harper  <jackson@ximian.com>
12555         * ListBox.cs: Don't do a full refresh unless some data has
12556         actually changed.
12558 2005-09-30  Jackson Harper  <jackson@ximian.com>
12560         * TreeView.cs: Make sure that the checkboxes size is factored in
12561         even when not visible.
12563 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12565         * FileDialog.cs: Fix Jordi's build break
12567 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12569         * FileDialog.cs: 
12570                 - Use standard the Windows colours for the combobox as espected
12571                 - Dispose objects that use resouces when no longer need them
12573 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12575         * X11DesktopColors.cs: Initial incomplete implementation
12576         * XplatUIX11.cs: Added call to initialize X11DesktopColors
12578 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
12580         * Theme.cs: 
12581           - Switched Theme color names to match the names defined in 
12582             System.Drawing.KnownColors. Life's hard enough, no need to make 
12583             it harder.
12584           - Added setters to all theme color properties so themes can set
12585             their color schemes. The setters also propagate the color changes
12586             to System.Drawing.KnownColors via reflection
12587         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
12588           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
12589           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
12590           use the new, more logical theme color names
12591         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
12592           post-NT colors
12593         * ThemeWin32Classic.cs:
12594           - Removed code to set the old classic Windows colors. Instead it
12595             now relies on the colors returned by System.Drawing.KnownColors
12596             which will be either modern static colors (Unix) or colors
12597             read from the user's configuration (Win32)
12598           - Updated to use the new, more logical theme color names
12599           - Switched DataGrid drawing code to use only Theme colors instead of
12600             a mix of System.Drawing.KnownColors and Theme colors
12601           - DrawFrameControl(): Removed code that fills the button area, the
12602             fill would overwrite any previous fill done by a control. This
12603             fixes bug #75338 
12604           - Added DrawReversibleRectangle() stub
12605         * ScrollableControl.cs: Set visible state to false when scrollbars
12606           are removed (pdn fix)
12607         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
12608           DrawReversibleRectangle() method to allow drawing primitive 
12609           'rubber bands'
12610         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
12612 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12614         * ImageList.cs: Add(Icon): Create handle.
12616 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12618         * ListView.cs:
12619         * ThemeWin32Classic.cs:
12620                 - Fixes detail mode
12621                 - Sets clippings
12622                 - Issues with drawing
12624 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12626         * ImageList.cs: Moved RecreateHandle back to ImageList as event
12627           source has to be the ImageList.
12629 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12631         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
12633 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12635         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
12637 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12639         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
12641 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
12642         * GridItem.cs: Fixed TODOs
12643         * GridItemCollection.cs: Added ICollection interface
12645 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12647         * ImageList.cs: Resize icons when needed.
12649 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
12651         * ListViewItem.cs
12652                 - Fixes GetBounds and returns on screen rects
12653         * ListView.cs:
12654                 - Fixes vertical and horzintal scrolling of items
12655         * ThemeWin32Classic.cs:
12656                 - Fixes drawing
12657                 
12658 2005-09-29  Raja R Harinath  <harinath@gmail.com>
12660         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
12662 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
12664         * ImageList.cs: Added comments about handle creation. Moved Handle,
12665           HandleCreated and OnRecreateHandle implementations to ImageCollection.
12666           Handle is created in Add methods.
12668 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12669          
12670         * DataGridDrawingLogic.cs: 
12671                 - Takes rows into account on Colum calculations
12672                 - Returns the column when clickig
12673         * DataGrid.cs:
12674                 - Fixes default HitTestInfo values
12675                 - Fixes HitTestInfo.ToString
12676                 - Fixes ResetBackColor          
12677         
12678 2005-09-28  Jackson Harper  <jackson@ximian.com>
12680         * MdiChildContext.cs: Obey rules for fixed sized windows (no
12681         sizing or cursor changes). Also added some temp code to draw the
12682         titlebars text (Makes dev a little easier).
12684 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12686         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
12688 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12689          
12690         * ListBox.cs: Fixes bug 76253
12692 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12694         * ImageList.cs: Added comments about the current implementation. Added
12695           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
12696           Format32bppArgb to preserve transparency and can use Graphics.FromImage
12697           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
12698           with Bitmap.LockBits for better performance. Revised the whole file to
12699           match MS.NET behaviour and provide better performance. Non-public
12700           interface members are calling public members even when they throw
12701           NotSupportedException for better maintainability. Moved ColorDepth,
12702           ImageSize, ImageStream and TransparentColor implementations to
12703           ImageCollection for better performance as these properties are not used
12704           by ImageList.
12705         * ImageListStreamer.cs: Added a new internal constructor that takes an
12706           ImageList.ImageCollection and serializes Images based on
12707           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
12708           match ImageList property name.
12710 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
12712         * ListBox.cs: Fixes IndexFromPoint for last item
12714 2005-09-27  Jackson Harper  <jackson@ximian.com>
12716         * Form.cs: Set the position of new mdi children correctly.
12718 2005-09-27  Jackson Harper  <jackson@ximian.com>
12720         * MdiClient.cs: New mdi children need to be added to the back of
12721         the controls collection so the zorder is set correctly. Also add a
12722         count of all the child windows that have been created.
12724 2005-09-27  Jackson Harper  <jackson@ximian.com>
12726         * Form.cs (CreateParams): Setup MDI forms correctly.
12728 2005-09-27  Jackson Harper  <jackson@ximian.com>
12730         * MdiChildContext.cs:
12731         * MonthCalendar.cs:
12732         * UpDownBase.cs:
12733         * ListBox.cs:
12734         * ListView.cs:
12735         * TextBoxBase.cs:
12736         * TreeView.cs:
12737         * ScrollableControl.cs:
12738         * ComboBox.cs: Add implicit controls using the new implict control
12739         functionality in ControlCollection. Also try to block multiple
12740         control add in a suspend/resume layout to save some cycles.
12741         
12742 2005-09-27  Jackson Harper  <jackson@ximian.com>
12744         * Control.cs: Add functionality to the controls collection to add
12745         'implicit controls' these are controls that are created by the
12746         containing control but should not be exposed to the user. Such as
12747         scrollbars in the treeview.
12748         * Form.cs: The list var of the ControlsCollection is no longer
12749         available because of the potential of implicit controls getting
12750         ignored by someone accessing the list directly.
12752 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
12754         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
12755           loose it's parent. (Fixed bug introduced in r49103 when we added
12756           setting the child parent to null on Remove)
12758 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
12760         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
12761         * Splitter.cs: Added missing attributes for BorderStyle property.
12762         * TextBoxBase.cs: Marked Calculate* methods internal.
12763         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
12764         MS.NET.
12766 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
12767          
12768         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
12770 2005-09-25  Jackson Harper  <jackson@ximian.com>
12772         * TreeView.cs: Update the node bounds correctly regardless of
12773         whether the node is visible.
12775 2005-09-25  Jackson Harper  <jackson@ximian.com>
12777         * ImageList.cs: Don't dispose the image after it is added to the
12778         image list. Only reformat images that need to be resized.
12780 2005-09-25  Jackson Harper  <jackson@ximian.com>
12782         * ImageList.cs: Don't set the format when changing the image.
12784 2005-09-25  Jackson Harper  <jackson@ximian.com>
12786         * TreeView.cs: We can't just assume the node has a font. Use the
12787         treeviews font if no node font is available.
12789 2005-09-25  Jackson Harper  <jackson@ximian.com>
12791         * TreeView.cs: Allow the scrollbars to be reset with negative
12792         values.
12793         - Don't add scrollbars to negative sized windows.
12795 2005-09-23  Jackson Harper  <jackson@ximian.com>
12797         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
12798         old Mono.Posix. Also remove some stray code that shouldn't have
12799         been committed.
12801 2005-09-23  Jackson Harper  <jackson@ximian.com>
12803         * TreeView.cs: Attempt at proper sizing of the horizontal
12804         scrollbar. Also don't resize the scrollbars unless they are
12805         visible.
12807 2005-09-23  Jackson Harper  <jackson@ximian.com>
12809         * TreeView.cs: We don't need to expand the invalid area when the
12810         selection changes, as this is all drawn in the node's bounding
12811         box. The area needs to be expanded (previous typo was contracting
12812         it) when the focus rect moves.
12814 2005-09-23  Jackson Harper  <jackson@ximian.com>
12816         * TreeView.cs: Display the selection box under the correct
12817         circumstances. We were rendering white text with no selection box
12818         before.
12820 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
12822         * TextControl.cs(Split): Now updates selection start/end if it points 
12823           into a line that's being split. Fixes a FIXME and bug #75258
12825 2005-09-23  Jackson Harper  <jackson@ximian.com>
12827         * Binding.cs:
12828         * ListControl.cs: Don't use the path when retrieving binding
12829         managers from the binding context. My bat sense tells me that the
12830         path is only used on insertion.
12832 2005-09-22  Jackson Harper  <jackson@ximian.com>
12834         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
12836 2005-09-22  Jackson Harper  <jackson@ximian.com>
12838         * Splitter.cs: There are special cursors used for splitting.
12839         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
12841 2005-09-22  Jackson Harper  <jackson@ximian.com>
12843         * Splitter.cs: Change the cursor appropriately when the splitter
12844         is moused over, so the user actually knows there is a splitter
12845         there.
12847 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12849        * Label.cs : Fix ToString method to give same output as MS.NET
12851 2005-09-22  Jackson Harper  <jackson@ximian.com>
12853         * TreeView.cs: Create the scrollbars when the handle is created
12854         and add them right away, just make them invisble. Also account for
12855         the window being shrunk vertically to the point that the vert
12856         scrollbar needs to be added.
12857         - Remove some 0.5 adjustments to get around anti aliasing issues.
12858         
12859 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
12860          
12861         * MainMenu.cs: Fixes default value
12862         * MenuItem.cs: Fixes default value
12864 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
12866         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
12868 2005-09-21  Jackson Harper  <jackson@ximian.com>
12870         * Control.cs: Don't try to set the border style on the window if
12871         it hasn't been created. When the window is created the border
12872         style will be used.
12874 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12876         * Control.cs (Update): Don't call XplatUI if we don't have a
12877           window handle yet
12879 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12881         * ContainerControl.cs: Instead of throwing an exception, print
12882           a one-time warning about Validate not being implemented
12883         * XplatUIWin32.cs: Removed debug output
12885 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12887         * Control.cs: Only set XplatUI background if we expect the windowing
12888           system to handle the background. This stops controls that draw their
12889           own background from flickering
12891         * XplatUIX11.cs: Support custom visuals and colormaps for window 
12892           creation. This allows, amongst other things, using MWF X11 windows 
12893           with OpenGL.
12895 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12897         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
12898           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
12899           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
12900           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
12901           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
12902           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
12903           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
12904           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
12905           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
12906           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
12907           GridColumnStylesCollection.cs, 
12908           IDataGridColumnStyleEditingNotificationService.cs,
12909           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
12910           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
12911           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
12912           TreeNodeCollection.cs, AmbientProperties.cs, 
12913           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12914           DataObject.cs, ErrorProvider.cs, Splitter.cs,
12915           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
12916           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
12917           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
12918           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
12919           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
12920           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
12921           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
12922           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
12923           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
12924           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
12925           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
12926           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
12927           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
12928           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
12929           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
12930           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
12931           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
12932           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
12933           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
12934           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
12935           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
12936           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
12937           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
12938           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
12939           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
12940           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
12941           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
12942           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
12943           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
12944           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
12945           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
12946           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
12947           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
12948           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
12949           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
12951 2005-09-21  Jackson Harper  <jackson@ximian.com>
12953         * TreeNode.cs: Call Before/After Expand not Collapse when
12954         expanding.
12956 2005-09-20  Jackson Harper  <jackson@ximian.com>
12957         
12958         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
12960 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12961          
12962         * ListViewItem.cs:
12963                 - Fixes bug 76120
12964                 - Fixes proper storing of subitems
12965                 - Fixes not updated items
12967 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
12969         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
12970           things if our window handle isn't created yet. Also disabled 
12971           debug for TextBoxBase
12973 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
12975         * MenuAPI.cs: Remove filtering of events to allow menu usage
12977 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12979         * Cursor.cs: Allow null to be passed to Cursor.Current.
12981 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
12983         * ThemeWin32Classic.cs:
12984           - Change some private methods/fields to protected virtual so that 
12985             they can be accessed and overriden in derived classes
12986           - First refactoring of some methods. Derived themes now don't 
12987             need to duplicate the complete code from ThemeWin32Classic
12988         * ThemeNice.cs:
12989           - Added nice StatusBar
12990           - Derive from ThemeWin32Classic and not Theme
12991           - Removed duplicate ThemeWin32Classic code
12993 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12995         * Control.cs (ControlCollection.Add): If the value null is passed
12996         the control is ignored. 
12998         Optimize this loop.
13000 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
13002         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
13003           PostQuitMessage state.
13004         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
13006 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
13008         * Application.cs: Our constructor will never get called, move 
13009           initialization to fields; fixes bug #75933
13011 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
13013         * FileDialog.cs :
13014                 - Allow files to be selected properly using file name
13015                 combo box.
13016                 - Add ability to change diretory (absolute / relative)
13017                 using file name combo box.
13019 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
13020          
13021         * ListBox.cs: 
13022                 - Fixes Multicolumn listboxes item wrong calculations
13023                 - Allows to click when only one item is in the listbox
13024                 - Fixes crash when no items using keyboard navigation
13026 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
13028         * ComboBox.cs: Reverted almost everything from the latest patch which
13029           broke ComboBox
13031 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
13032         
13033         * ToolTip.cs:
13034                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
13035         * ComboBox.cs:
13036                 - When DropDownStyle is Simple, it does not show scrollbar 
13037                 to the last item of the list.
13038                 - When DropDownStyle is Simple, it crashed when the list was 
13039                 scrolled down with the down cursor key.
13040                 - Fixed a bug that when DropDownStyle is DropDownList, the 
13041                 selected item was not shown.
13042                 - The position of the selected item was not preserved when 
13043                 the next dropdown happened.
13044         * ThemeWin32Classic.cs:
13045                 - Items were wrapped at the right end.
13046         * CheckedListBox.cs:
13047                 - Fixed Add method
13048         * ListBox.cs:
13049                 - Items should be fully shown.
13050                 - When resizing and vertical scrollbar disappeared, the item 
13051                 of index 0 should be on the top of the list.
13052                 - GetItemRectangle should consider the size of ver. scrollbar
13053         * StatusBar.cs:
13054                 - SizingGrip area should not be allocated when it is not 
13055                 displayed.
13056                 - Now it reflects MinWidth of the containing panel and 
13057                 fixed a crash that happens when its width becomes so small.
13059 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
13061         * CheckedListBox.cs: Fixes bug 76028
13062         * ListBox.cs: Fixes bug 76028
13064 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
13066         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
13067         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
13069 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
13071         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
13073 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
13075         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
13077 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
13079         * IRootGridEntry.cs: Added
13080         * PropertyGridCommands.cs: Added
13081         * PropertiesTab.cs: Added missing methods and property
13082         * PropertyGridView.cs: Made class internal
13083         * PropertyGridTextBox.cs: Made class internal
13085 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
13087         * MimeIcon.cs: Try to check some other environment variables
13088           if "DESKTOP_SESSION" returns "default"
13090 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
13092         * ThemeNice.cs: Corrected background colors (e.g. menus)
13093         * ColorDialog.cs: Use correct background colors for controls
13095 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
13097         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
13099 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
13101         * RichTextBox.cs: Added initial implementation
13102         * lang.cs: Removed. Was accidentally checked in long time ago
13103         * TODO: Removed. Contents were obsolete
13105 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
13106                                                                                 
13107         * PropertiesTab.cs : Added
13109 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
13110                                                                                 
13111         * PropertyGrid.cs : Update
13112         * PropertyGridView.cs : Update
13113         * System.Windows.Forms.resx : Added images and strings
13115 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
13117         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
13119 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
13121         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
13122           a busy loop right after the Ungrab the X11 display is otherwise 
13123           blocked
13125 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
13127         * ThemeWin32Classic.cs: Optimise the use of clipping
13129 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
13131         * DataGrid.cs: fixes recursion bug
13133 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
13135         * ThemeNice.cs: 
13136           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
13137           - Cleanup
13139 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
13141         * ThemeNice.cs: Draw nice ProgressBars
13143 2005-09-01  Miguel de Icaza  <miguel@novell.com>
13145         * VScrollBar.cs: Another buglet found by Aaron's tool. 
13147         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
13148         bug finder.
13150 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
13152         * ThemeNice.cs:
13153           - Added nicer menu drawing
13154           - Updated DrawTab
13155           - some refactoring
13157 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
13159         * CreateParams.cs (ToString): Made output match MS
13160         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
13161             handle is already created (to avoid forcing window creation)
13162         * XplatUIX11.cs: Set window text to caption after creating window,
13163           in case Text was set before window was created
13164         * Form.cs: Use this.Text instead of a static string as caption
13166 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13168         * NotifyIcon.cs: Don't set the window to visible; this screws
13169           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
13170           OnPaint without a bitmap)
13171         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
13172           happen very often anyway; we could add the check to the WM_PAINT 
13173           event generation code
13175 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
13177         * NotifyIcon.cs: Fill the icon area with a background color, to 
13178           avoid 'residue' when transparent icons are drawn
13179         * XplatUIX11.cs:
13180           - Handle whole_window == client_window when destroying windows
13181           - SystrayAdd(): Set client_window to whole_window value to
13182             get mouse and other events passed to NotifyIcon
13184 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13186         * Form.cs: Set proper default for Opacity property
13187         * NotifyIcon.cs:
13188           - ShowSystray(): Don't bother creating telling the OS
13189             about the systray item if no icon is provided
13190           - Now handles WM_NCPAINT message to deal with whole/client window
13191             split
13192           - Create window as visible to not get caught by Expose optimization
13193         * Hwnd.cs: Removed debug message
13194         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
13195           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
13196             PaintEventStart/End to use new client argument
13197         * TextBoxBase.cs:
13198           - Commented out debug messages
13199           - Switched PaintEventStart/End to use new client argument
13200         * XplatUI.cs: Added client window bool to PaintEventStart()/
13201           PaintEventEnd() calls, to support drawing in non-client areas
13202         * XplatUIDriver.cs: 
13203           - Added client window bool to PaintEventStart()/PaintEventEnd() 
13204             calls, to support drawing in non-client areas
13205           - Added conditional compile to allow using MWF BeginInvoke 
13206             on MS runtime
13207         * XplatUIX11.cs:
13208           - Added some conditional debug output
13209           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
13210             whole/client window split
13211           - Implemented handling of client argument to PaintEventStart()/End()
13212         * Control.cs:
13213           - Throw exception if BeginInvoke() is called and the window handle
13214             or one of the window's parent handles is not created
13215           - Added conditional compile to allow using MWF BeginInvoke on
13216             MS runtime
13217           - get_Parent(): Only sets parent if handle is created. This avoids
13218             forcing window handle creation when parent is set.
13219           - Now fires Layout and Parent changed events in proper order
13220           - Switched to use Handle instead of window.Handle for Z-Order setting,
13221             the get_Parent() patch above causes us to possibly get null for 'window'
13222           - Implemented handling of client argument to PaintEventStart()/End()
13223           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
13224             default handling)
13225           - Now sends a Refresh() to all child windows when Refresh() is called
13227 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
13229         * Form.cs: Added (non-functional) Opacity property
13230         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
13232 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
13233         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
13234           use export MONO_THEME=nice to activate it.
13235           Currently supported controls:
13236           - Button
13237           - ComboBox
13238           - ScrollBar
13239           - TabControl (TabAlignment.Top only, other will follow)
13240         * ThemeEngine.cs: Add theme nice
13241         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
13242           if enabled
13244 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
13246         * Splitter.cs: Resize docked control and its neighbor.
13248 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
13249         -- Making Windows with Menus layout correctly --
13250         * Form.cs : The first leg of the fix
13251                 Menu setter - adjust Client Size as needed to make space for the menu
13252                 SetClientSizeCore - doesn't call base version to be able to pass the 
13253                         menu handle to XplatUI.CalculateWindowRect
13254         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
13255         * XplatUIX11.cs: The critical second leg of the fix
13256                 GetWindowPos needs to use a recalculated client_rect
13257                 so that resizing the window doesn't break layout of child controls. 
13258                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
13259                 Lots of \t\n killed
13261 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13263         * Label.cs: Now properly recalculates width and height on Font and Text
13264           changes if AutoSize is set
13266 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
13267         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
13269 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
13271         * ImageList.cs: Makes ToString method compatible with MS
13273 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
13275         * MenuAPI.cs: fixes bug 75716
13277 2005-08-11 Umadevi S <sumadevi@novell.com>
13278         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
13280 2005-08-11 Umadevi S <sumadevi@novell.com>
13281         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
13283 2005-08-10  Umadevi S <sumadevi@novell.com>
13284         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
13286 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
13288         * Menu.cs: fixes bug 75700
13289         * MenuAPI.cs: fixes navigation issues
13291 2005-08-09  Umadevi S <sumadevi@novell.com>
13292         * CheckedListBox.cs - simple fix for GetItemChecked.
13294 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
13296         * ComboBox.cs: Serveral fixes
13297         * ListBox.cs: Serveral fixes
13299 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
13301         * ComboBox.cs: Fixes FindString methods and GetItemHeight
13302         * ListBox.cs: Fixes FindString methods
13304 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
13306         * DataGrid.cs: fixes bugs exposed by new tests
13308 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
13310         * Mime.cs: Compile Mono assembly references only if compiling
13311           with Mono (Allows to build with VS.Net again)
13313 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
13315         * Control.cs (PaintControlBackground): Draw background image
13316         corrrectly.
13317         (CheckForIllegalCrossThreadCalls): Stubbed.
13318         
13319         * Form.cs (OnCreateControl): Center when should be centered.
13320         
13321         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
13323 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
13325         * Binding.cs: Binding to properties should be case unsensitive
13327 2005-07-18 vlindos@nucleusys.com
13329         * DataGrid.cs: fixes setmember order
13331 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
13333         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
13334         * FileDialog.cs: FileDialog is now resizable and uses the new
13335           MimeIconEngine
13337 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
13339         * DataGridTextBoxColumn.cs: default value
13340         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
13341         * GridTableStylesCollection.cs: fixes checking MappingName
13342         * DataGridDrawingLogic.cs: fixes drawing logic issues
13343         * DataSourceHelper.cs: rewritten to make compatible with more data sources
13344         * DataGrid.cs: fixes    
13346 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
13348         * MimeGenerated.cs: Use case sensitive comparer for
13349           NameValueCollections
13351 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
13353         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
13354         * ThemeWin32Classic.cs: bug fixes, code refactoring
13355         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
13356         * DataGrid.cs: bug fixes, code refactoring
13357         * DataGridTextBox.cs: bug fixes, code refactoring
13358         * DataGridColumnStyle.cs:  bug fixes, code refactoring
13359         * Theme.cs:  bug fixes, code refactoring
13361 2005-07-01  Peter Bartok  <pbartok@novell.com> 
13363         * TextControl.cs: Quick fix for the reported crash on ColorDialog
13364           and other text box usage
13366 2005-07-01  Jackson Harper  <jackson@ximian.com>
13368         * TabControl.cs: Make sure the bottom of the tab covers the pages
13369         border.
13371 2005-06-30  Peter Bartok  <pbartok@novell.com> 
13373         * Form.cs (ShowDialog): Assign owner of the dialog
13374         * TextBoxBase.cs: Always refresh caret size when deleting, caret
13375           might have been moved to a tag with different height
13377 2005-06-30  Jackson Harper  <jackson@ximian.com>
13379         * Form.cs: Don't create an infinite loop when setting focus
13380         * MenuItem.cs: Don't dirty the parents if we don't have any
13382 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
13384         * LibSupport.cs: Rename
13386 2005-06-29  Peter Bartok  <pbartok@novell.com>
13388         * TextBoxBase.cs: Re-align caret after deleting a character
13389         * TextControl.cs:
13390           - DeleteChars(): Ensure that tag covers the provided position
13391           - StreamLine(): Drop reference for dropped tag
13393 2005-06-29  Peter Bartok  <pbartok@novell.com> 
13395         * TextControl.cs: 
13396           - Selections now work properly, anchoring at the initial location
13397             and properly extending in either direction (SetSelectionToCaret(),
13398             SetSelectionStart() and SetSelectionEnd())
13399           - No longer redraws the whole control on selection change, now
13400             calculates delta between previous and new selection and only
13401             invalidates/redraws that area
13402           - Fixed FindPos() math off-by-one errors
13403           - Changed DeleteChars() to verify the provided tag covers the
13404             provided position, selections may have a tag that doesn't cover
13405             the position if the selection is at a tag border
13406           - Fixed off-by-one errors in DeleteChars()
13407           - Added missing streamlining check in DeleteChars() to remove
13408             zero-length tags
13409           - Implemented Invalidate() method, now properly calculates exposures
13410             between two given lines/positions
13411           - Implemented SetSelection()
13412           - Obsoleted and removed FixupSelection()
13413           - Improved RecalculateDocument() logic, removing code duplication
13415 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13417         * LibSupport.cs: changes to match different input/output arguments.
13419 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13421         * LibSupport.cs: added libsupport.so init routine.
13423 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
13424         
13425         * ControlBindingsCollection.cs
13426                 - Throws an exception on null datasource when adding
13427                 - Checks for duplicated bindings when adding
13429 2005-06-28  Jackson Harper  <jackson@ximian.com>
13431         * TreeView.cs (OnKeyDown): Support left and right properly
13432         (navigates as well as expanding and collapsing.
13433         - Add support for Multiply, this expands all the selected nodes
13434         children.
13435         - Fix some tabbing.
13437 2005-06-28  Jackson Harper  <jackson@ximian.com>
13439         * TreeView.cs: Implement keyboard navigation, currently supports,
13440         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
13441         support for toggling checkboxes with the space bar.
13443 2005-06-28  Jackson Harper  <jackson@ximian.com>
13445         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
13446         tree.
13448 2005-06-28  Jackson Harper  <jackson@ximian.com>
13450         * TreeView.cs: Add missing event.
13452 2005-06-27  Peter Bartok  <pbartok@novell.com> 
13454         * TextControl.cs:
13455           - Made line ending size configurable (now allows for counting 
13456             lineendings as \n or \r\n)
13457           - Added margin to viewport to keep caret visible on right side
13458           - Fixed translation routines for line/pos to documentpos to consider
13459             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
13460           - Fixed some line-endings to be unix style
13461           - Fixed Document.FormatText to perform it's calculations 1-based
13462           - Added descriptions for a few methods that might otherwise get 
13463             used wrong
13464           - Added NOTE section with some basic conventions to remember at 
13465             the top of the file
13466           - Major fixup for RichTextBox selection drawing:
13467             * Fixed crashes when multiple tags on a single line were selected
13468             * fixed selection box drawing not overlaying text
13469             * fixed bogus offset calculation for tags not starting at index 1
13470             * Switched behaviour from using multiple Substrings of a 
13471               StringBuilder.ToString() to using multiple 
13472               StringBuilder.ToString(start, length) statements, hoping this is
13473               faster (kept original version commented out in the code, in case
13474               original version was faster)
13475         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
13476           alignment != Left
13477         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
13478           call it as well
13480 2005-06-27  Jackson Harper  <jackson@ximian.com>
13482         * TabControl.cs: Move to the left and right with the arrow
13483         keys. These keys don't cycle beyond first and last like
13484         tab. Refresh all the tabs when scrolling them to the left or
13485         right.
13487 2005-06-27  Jackson Harper  <jackson@ximian.com>
13489         * TabControl.cs:
13490           - ToString: Added method
13491           - CreateParams: Remove TODO and comment
13492           - OnKeyDown: Cycle through bounds properly.
13493           - SelectedIndex: Scroll to the right or left if we need to
13494           display the newly selected tab.
13496 2005-06-23  Jackson Harper  <jackson@ximian.com>
13498         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
13499         set.
13501 2005-06-23  Jackson Harper  <jackson@ximian.com>
13503         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
13504         CTRL-SHIFT-TAB, and HOME, END are there any others?
13506 2005-06-23  Jackson Harper  <jackson@ximian.com>
13508         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
13510 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13511         
13512         * DataGridTextBoxColumn.cs: fixes and enhancements
13513         * ThemeWin32Classic.cs: fixes and enhancements
13514         * DataGridBoolColumn.cs:  fixes and enhancements
13515         * DataGridDrawingLogic.cs:  fixes and enhancements
13516         * CurrencyManager.cs: fixes and enhancements
13517         * DataGrid.cs: fixes and enhancements
13518         * DataGridColumnStyle.cs:  fixes and enhancements
13520 2005-06-22  Jackson Harper  <jackson@ximian.com>
13522         * TabControl.cs: Add some missing methods that just call into the
13523         base. Make the TabPageCollection's IList interface behave in the
13524         same manner as the MS implementation.
13526 2005-06-22  Peter Bartok  <pbartok@novell.com> 
13528         * TextControl.cs: Added sanity check
13529         * TextBoxBase.cs: 
13530           - Fixed wrapping behaviour, don't set wrap on single line controls
13531             (this fixes the breakage of colordialog introduced in an earlier
13532              checkin)
13533           - Added rudimentary support for autoscrolling right-aligned controls
13534             (still needs fixing, also, center alignment scroll is missing)
13536 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13537         
13538         * ScrollBar.cs: Fixes thumbpos on Maximum values
13540 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
13541         
13542         * PropertyGridView.cs: Pass context information to UITypeEditors 
13544 2005-06-21  Peter Bartok  <pbartok@novell.com> 
13546         * TextBoxBase.cs:
13547           - Now calling PositionCaret with absolute space coordinates
13548           - Enabled vertical scrolling
13549           - Better tracking of scrollbar changes, tied into WidthChange
13550             event
13551           - Improved cursor tracking
13552           - Removed debug output
13553         * TextControl.cs:
13554           - PositionCaret coordinates are now works in absolute space, not 
13555             the canvas
13556           - Improved tracking of document size
13557           - Added events for width and height changes
13559 2005-06-21  Peter Bartok  <pbartok@novell.com>
13561         * Form.cs: Set focus to active control when form is activated
13562         * TextControl.cs: 
13563           - Added word-wrap functionality to RecalculateLine() 
13564           - Added some short function descriptions for VS.Net to aid in
13565             writing dependent controls
13566           - Added Caret property, returning the current coords of the caret
13567           - Added ViewPortWidth and ViewPortHeight properties
13568           - Added Wrap property
13569           - Added CaretMoved event
13570           - Removed some old debug code
13571           - Split() can now create soft splits
13572           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
13573           - Added method to format existing text
13574           - Fixed size/alignment calculations to use viewport
13575           - RecalculateDocument now can handle changing line-numbers while
13576             calculating lines
13578         * TextBox.cs:
13579           - Added some wrap logic, we don't wrap if alignment is not left
13580           - Added casts for scrollbar var, base class switched types to
13581             also support RichTextBoxA
13582           - Implemented handling of scrollbar visibility flags
13584         * TextBoxBase.cs:
13585           - Switched scrollbars type to RichTextBoxScrollBars to support
13586             RichTextBox
13587           - Added tracking of canvas width/height
13588           - Switched scrollbars to be not selectable (to keep focus on text)
13589           - Added central CalculateDocument() method to handle all redraw
13590             requirements
13591           - Added ReadOnly support
13592           - Added WordWrap support
13593           - Fixed handling of Enter key (we now treat it as a DialogKey)
13594           - Fixed caret positioning when h or v scroll is not zero
13595           - Fixed placing/generation of vertical scrollbar
13596           - Added CalculateScrollBars() method to allow updating scrollbar
13597             limits and visibility
13598           - Fixed handling of horizontal scroll
13599           - Added handling of vertical scroll
13600           - Implemented auto-'jump' when caret moves to close to a left or
13601             right border and there is text to be scrolled into view (currently
13602             there's the potential for a stack overflow, until a bug in
13603             scrollbar is fixed)
13605 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
13606         
13607         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
13609 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
13611         * Mime.cs:
13612         - added inodes.
13613         - return application/x-zerosize for files with size zero
13614           (if no extension pattern matches).
13615         - check matches collection for strings too.
13616         - return only the first mime type if the name value
13617           collection has more than one mime type.
13619 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
13620         
13621         * PropertyGrid.cs: Cleaned up some TODOs
13622         * PropertyGridView.cs: Added support for UITypeEditors
13624 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13625         
13626         * DataGrid.cs: clears cached value
13628 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13630         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
13631         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
13632         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
13633         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
13634         
13635 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
13637         * ThemeWin32Classic.cs: fixes colour
13639 2005-06-15  Peter Bartok  <pbartok@novell.com>
13641         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
13642         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
13643         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
13644         * Control.cs: Added some MWFCategory and MWFDescription attributes
13645         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
13647 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
13649         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
13650         usage
13652 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
13654         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
13655         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
13656         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
13657         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
13658         * DataGrid.cs: default datagrid settings for Default Styles, fixes
13659         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
13661 2005-06-13  Jackson Harper  <jackson@ximian.com>
13663         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
13664         isn't printed when the user enables dropping. (X11 does accept
13665         drops).
13666         
13667 2005-06-13  Jackson Harper  <jackson@ximian.com>
13669         * TreeView.cs: Remove some TODOS.
13671 2005-06-13  Jackson Harper  <jackson@ximian.com>
13673         * Form.cs: Hook into the mdi framework.
13674         * MdiClient.cs: Use the base control collections add method so
13675         parents get setup correctly. Set the default back colour and dock
13676         style.
13677         * MdiChildContext.cs: New class, this bad actor handles an
13678         instance of an MDI window. Right now there is only basic
13679         support. You can drag, close, and resize windows. Minimize and
13680         Maximize are partially implemented.
13682 2005-06-13  Jackson Harper  <jackson@ximian.com>
13684         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
13685         freaky when both vals are negative. NOTE: There are probably other
13686         places in XplatUIX11 that this needs to be done.
13688 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
13690         * DataGrid.cs: implement missing methods, move KeyboardNavigation
13691         * DataGridColumnStyle.cs: fixes signature
13693 2005-06-12  Jackson Harper  <jackson@ximian.com>
13695         * XplatUIX11.cs: Use sizing cursors similar to the ones on
13696         windows.
13698 2005-06-11  Jackson Harper  <jackson@ximian.com>
13700         * StatusBarPanel.cs: Signature cleanups. Implement
13701         BeginInit/EndInit.
13703 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
13705         * DataGridTextBoxColumn.cs: Honors aligment
13706         * GridColumnStylesCollection.cs: Contains is case unsensitive
13707         * GridTableStylesCollection.cs: several fixes
13708         * DataGridTableStyle.cs: default column creation
13709         * DataGridDrawingLogic.cs: fixes
13710         * CurrencyManager.cs: ListName property
13711         * DataGrid.cs: multiple styles support
13712         * DataGridColumnStyle.cs: fixes
13713         
13715 2005-06-10  Peter Bartok  <pbartok@novell.com>
13717         * Control.cs(Select): Moved SetFocus call to avoid potential
13718           loops if controls change the active control when getting focus
13719         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
13720           the up/down buttons
13722 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
13724         * ImageListConverter.cs: Implemented
13726 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13728         * MonthCalendar.cs: Wired in NumericUpDown control for year
13730 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13732         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
13733           DoubleClick events, since they are not meant to be fired.
13735 2005-06-09  Peter Bartok  <pbartok@novell.com>
13737         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
13738           Jonathan's standalone controls into MWF, implemented missing
13739           events, attributes and methods; added xxxAccessible classes
13740         * AccessibleObject.cs: Made fields internal so other classes
13741           can change them if needed
13743 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
13745         * UpDownBase.cs: Complete implementation
13746         * NumericUpDown.cs: Complete implementation
13747         * DomainUpDown.cs: Complete implementation
13749 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
13751         * DataGridTextBoxColumn.cs: drawing fixes
13752         * DataGridCell.cs: fixes ToString method to match MSNet
13753         * DataGridTableStyle.cs: fixes
13754         * DataGridBoolColumn.cs: fixes, drawing
13755         * DataGridDrawingLogic.cs: fixes, new methods
13756         * DataGridTextBox.cs: Keyboard and fixes
13757         * DataGrid.cs:
13758                 - Keyboard navigation
13759                 - Scrolling fixes
13760                 - Row selection (single, multiple, deletion, etc)
13761                 - Lots of fixes
13762         
13763 2005-06-07  Jackson Harper  <jackson@ximian.com>
13765         * ThemeWin32Classic.cs: Clear the background area when drawing
13766         buttons.
13768 2005-06-06  Peter Bartok  <pbartok@novell.com>
13770         * ImageListStreamer.cs: Fixed signature for GetData
13771         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
13772         * ComboBox.cs:
13773           - Added missing ChildAccessibleObject class
13774           - Added missing OnXXXFocus overrides, switched to using those
13775             instead of the event handler
13776         * Control.cs:
13777           - Added Parent property for ControlAccessibleObject
13778           - Fixed signatures
13779           - Fixed attributes
13780           - Added ResetBindings()
13781         * ListBindingConverter.cs: Implemented some methods
13782         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
13783         * ImageList.cs: Implemented basic handle scheme, removed TODOs
13784         * ContainerControl.cs: Fixed signature, now subscribing to the
13785           ControlRemoved event instead of overriding the handler, LAMESPEC
13786         * CurrencyManager.cs: Added missing attribute
13787         * MonthCalendar.cs: Added missing properties
13789 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13791         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
13792         
13793 2005-06-06  Gaurav Vaish and Ankit Jain
13795         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
13796         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
13797         
13798 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13800         * Control.cs: fixes CreateParams Width / Height.
13802 2005-06-05  Peter Bartok  <pbartok@novell.com>
13804         * Win32DnD.cs: Removed compilation warnings
13806 2005-06-05  Peter Bartok  <pbartok@novell.com>
13808         * Control.cs (CreateParams): Since we don't know if one of the
13809           properties we use is overridden, lets make sure if we fail accessing
13810           we continue with a backup plan
13812 2005-06-05  Peter Bartok  <pbartok@novell.com>
13814         * Win32DnD.cs:
13815           - Removed debug output
13816           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
13817             struct
13818           - Plugged resource leak
13819         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
13820           MS size
13822 2005-06-05  Peter Bartok  <pbartok@novell.com>
13824         * XplatUIWin32.cs: Removed DnD code
13825         * Win32DnD.cs: Implemented drop source and drop target functionality
13827 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13829         * UpDownBase.cs: remove duplicate addition of event, enable some code
13830         that was commented out.
13831         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
13832         Validate input when a key is pressed. It works fine now for every
13833         combination of Hexadecimal. Only missing some drawing love when sharing
13834         space with other controls.
13836 2005-06-04  Peter Bartok  <pbartok@novell.com>
13838         * Control.cs:
13839           - We need to pass a window for DragDrop, so enable callback events
13840           - Added DnD callback events when being a DragSource
13841         * XplatUI.cs (StartDrag): Added window handle argument
13842         * XplatUIDriver.cs (StartDrag): Added window handle argument
13843         * QueryContinueDragEventArgs: Made fields internally accessible so
13844           drivers can set them
13845         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
13846           can set them
13848 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
13850         * DataGridTextBoxColumn.cs: column text editing
13851         * DataGridTableStyle.cs: Respect columns styles created by the user
13852         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
13853         * DataGridBoolColumn.cs: bool column editing
13854         * DataGrid.cs: fixes to scrolling, properties, etc
13855         * DataGridTextBox.cs: handle keyboard
13856         * DataGridColumnStyle.cs: fixes
13858 2005-06-02  Jackson Harper  <jackson@ximian.com>
13860         * ImageListStreamer.cs: Somewhat broken implementation of
13861         GetObjectData. The RLE needs some work to match MS properly.
13863 2005-06-02  Jackson Harper  <jackson@ximian.com>
13865         * X11Dnd.cs: Attempting to keep at least one file in MWF
13866         monostyled.
13868 2005-06-02  Peter Bartok  <pbartok@novell.com>
13870         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
13871           that way
13873 2005-06-02  Peter Bartok  <pbartok@novell.com>
13875         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
13876         * XplatUI.cs: Added DoDragDrop() method
13877         * XplatUIDriver.cs: Added DoDragDrop() method
13879 2005-06-02  Jackson Harper  <jackson@ximian.com>
13881         * Splitter.cs: Implement BorderStyle.
13883 2005-06-02  Jackson Harper  <jackson@ximian.com>
13885         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
13886         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
13887         X11 using XDND.
13889 2005-06-02  Peter Bartok  <pbartok@novell.com>
13891         * DataObject.cs:
13892           - Added Data setter
13893           - Fixed broken insertion code for SetData, now also
13894             overwrites any existing entry of the same format name
13895         * Hwnd.cs: Added list of pointers that automatically gets
13896           freed when the window is disposed
13897         * XplatUI.cs: Call driver initialization method when loading
13898           a driver
13899         * Control.cs:
13900           - OnDragLeave takes EventArgs, not DragEventArgs
13901           - Added setting of WS_EX_ACCEPTFILES style when dropping is
13902             supported
13903           - Forces style update when drop state changes
13904         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
13905           not perfect since we cannot (yet) call the IDataObject.GetData()
13906           method, we keep getting 0x80004005 error, dunno why)
13908 2005-06-02  Peter Bartok  <pbartok@novell.com>
13910         * DragEventArgs.cs: Make fields internal so we can cache the
13911           object and re-set the fields from XplatUI
13913 2005-06-02  Jackson Harper  <jackson@ximian.com>
13915         * Control.cs: Add some internal methods so the DnD subsystem can
13916         raise DnD events. Also call into the driver when AllowDrop is set.
13917         * XplatUI.cs:
13918         * XplatUIDriver.cs: New method for setting whether or not a window
13919         is allowed to accept drag and drop messages.
13920                 
13921 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
13922         
13923         * ScrollBar.cs: Make sure that values sent in Scroll events
13924         are always between Maximum and Minimum.
13926 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
13928         * Menu.cs: Call MenuChanged when menuitem visibility has been
13929         changed.
13930         * MenuItem.cs: Rebuild menu when item is (not) visible.
13931         * MainMenu.cs: MainMenu has special MenuChanged.
13932         * Theme.cs: Caption and FrameBorderSize are not fixed.
13933         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
13934         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
13935         * XplatUIX11.cs,
13936         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
13937         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
13939 2005-05-30  Jackson Harper  <jackson@ximian.com>
13941         * DataFormat.cs: We can't statically initialize this stuff because
13942         it calls into the xplatui and could create a loop. So we lazy init
13943         it.
13945 2005-05-28  Jackson Harper  <jackson@ximian.com>
13947         * Control.cs: Proper implementation of Product(Name/Version).
13949 2005-05-27  Jackson Harper  <jackson@ximian.com>
13951         * DataObject.cs: Dont crash if no data is found.
13953 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
13954         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
13955                 as per status page, guessing it should be set to true
13957 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
13959         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
13960         * DataGridTableStyle.cs: set proper formatting text, def header text
13961         * ThemeWin32Classic.cs: new themable paramaters
13962         * DataGridBoolColumn.cs: paint check box, get data, fixes
13963         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
13964         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
13965         * DataGridColumnStyle.cs: fixes
13966         * Theme.cs: new themable paramaters
13967                 
13968 2005-05-26  Peter Bartok  <pbartok@novell.com>
13970         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
13972 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13973         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
13975 2005-05-24  Peter Bartok  <pbartok@novell.com>
13977         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
13978           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
13979           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
13980           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
13981           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
13982           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
13983           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
13984           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
13985           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
13986           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
13987           missing attributes, etc
13988         * DataGridPreferredColumnWidthTypeConverter.cs: Added
13990 2005-05-24  Peter Bartok  <pbartok@novell.com>
13992         * Help.cs: Added, implemented trivial functions, throws up MessageBox
13993           when user tries to get help
13994         * DataObject.cs, DataFormats.cs, LinkArea.cs,
13995           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
13996           to suppress warnings
13997         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
13998           avoid unreachable code warning
14000 2005-05-20  Peter Bartok  <pbartok@novell.com>
14002         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
14004 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
14006         * DataGridTextBoxColumn.cs: Basic painting methods
14007         * DataGridTableStyle.cs: Set table style in the column
14008         * ThemeWin32Classic.cs: Use Theme for colors
14009         * DataGridDrawingLogic.cs: Implement more drawing
14010         * DataGrid.cs: drawing, theming, enhacements, fixes
14011         * DataGridColumnStyle.cs: fixes, drawing
14012         * Theme.cs: theming for Datagrid
14014 2005-05-20  Peter Bartok  <pbartok@novell.com>
14016         * Cursor.cs: Implemented GetObjectData() method
14018 2005-05-20  Peter Bartok  <pbartok@novell.com>
14020         * Cursors.cs: Added setting of cursor name
14021         * Cursor.cs:
14022           - Implemented constructors
14023           - Implemented Draw and DrawStretched
14024           - Implemented Current property
14025           - Implemented == and != operators
14026           - Implemented Dispose()
14027           - Implemented ToString
14028           - Added missing attributes
14029         * XplatUIX11.cs:
14030           - Added missing reset for OverrideCursor when DoEvents is called
14031           - Fixed creation of cursor, logic was wrong
14032         * XplatUIWin32.cs:
14033           - Added missing reset for OverrideCursor when DoEvents is called
14034           - Fixed creation of cursor, bit arrays were swapped
14035         * Clipboard.cs: Removed obsolete MonoTODO attribute
14037 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
14039         * ComboBox.cs: fixes OnSelectedItemChanged
14040         * ControlBindingsCollection.cs: fixes item range check
14042 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
14044         * UpDownBase.cs:
14045                 - Calc preferred height properly
14046                 - Implement missing properties
14047                 
14048         * NumericUpDown.cs: Implement missing events
14050 2005-05-19  Jackson Harper  <jackson@ximian.com>
14052         * TabControl.cs: New method that resizes the tab pages before
14053         redrawing them. This as needed as the control is double buffered
14054         and sizing will not be recalculated unless ResizeTabPages is
14055         called.
14056         * TabPage.cs: Set base.Text instead of Text in the constructor so
14057         that UpdateOwner does not get called. Use the new Redraw method of
14058         TabControl instead of Refresh so the sizing is recalculated.
14059         * ThemeWin32Classic.cs: Draw the text for button tabs.
14061 2005-05-19  Jackson Harper  <jackson@ximian.com>
14063         * Control.cs: Paint control background images. Fix typo where
14064         PaintControlBackground was not getting called correctly.
14066 2005-05-19  Peter Bartok  <pbartok@novell.com>
14068         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
14069           I can investigate, apparently I broke FileDialog
14071 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
14073         * AxHost.cs: Some simple properties.
14074         * Control.cs: window must be accessible after ctor.
14075         * Form.cs: Added TransparencyKey property.
14076         * TextBoxBase.cs: Implemented Clear. Text property can be null.
14077         * XplatUIWin32.cs: SetBorderStyle implemented.
14079 2005-05-18  Peter Bartok  <pbartok@novell.com>
14081         * DataObject.cs: Entries are not global but particular to the
14082           DataObject, now it behaves that way
14083         * XplatUIWin32.cs: Implemented Clipboard methods
14084         * Clipboard.cs: Implemented
14085         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
14086         * XplatUIOSX.cs: Updated to final clipboard prototypes
14087         * XplatUIX11.cs: Implemented Clipboard methods
14088         * XplatUIDriver.cs: Updated to final clipboard prototypes
14089         * XplatUIStructs.cs:
14090           - Added BITMAPINFOHEADER struct
14091           - Added ClipboardFormats enum
14092         * X11Structs.cs:
14093           - Added ClipboardStruct
14094           - Added Atom enum items for clipboard types
14095           - Fixed atom types for Selection event structures
14096         * DataFormats.cs:
14097           - Added internal properties and methods for drivers to enumerate
14098             all known formats
14099           - Switched initialization method to allow drivers to assign their
14100             own IDs even for the MS predefined clipboard IDs
14101         * XplatUI.cs: Updated to final clipboard interface
14103 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14104         * PropertyGridView.cs: Fixed compiler warnings.
14106 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14107         * PropertyGrid.cs: Added some event calls
14108         * PropertyGridView.cs: Change drawing code to use double buffering
14109         * PropertyGridTextBox.cs: Changed Text property name
14110         * GridItem.cs: Added Bounds property.
14111         * GridEntry.cs: Added Bounds property.
14113 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
14115         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
14116         since GetType() may not return the correct type if the object is
14117         a remoting proxy.
14119 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
14121         * TreeNodeCollection.cs: fixes get/set item ranges
14122         
14123 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
14125         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
14126                 
14127 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
14129         * ComboBox.cs: Fix item range comparation
14130         * ListView.cs: Fix item range comparation
14132 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
14134         * FontDialog.cs:
14135           - Clear example panel when OnPaint is called
14136           - Better solution for displaying the example panel text
14137           - Select default indexes in the ListBoxes
14139 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
14141         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
14143 2005-05-11  Peter Bartok  <pbartok@novell.com>
14145         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
14146         * SelectionRangeConverter.cs: Implemented
14147         * PropertyGrid.cs: Fixed attribute value
14148         * Control.cs:
14149           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
14150           - Added Sebastien Pouliot's CAS Stack Propagation fixes
14151         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
14152           that's common to all drivers. First methods to go there are
14153           Sebastien Pouliot's CAS Stack Propagation helper methods
14154         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
14155           Sebastien Pouliot for CAS Stack Propagation
14157 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
14159         * OSXStructs.cs:
14160           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
14162 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
14164         * DataGridTextBoxColumn.cs: fixed some members
14165         * GridColumnStylesCollection.cs: indexed column is case insensitive
14166         * DataGridTableStyle.cs: fixes
14167         * ThemeWin32Classic.cs: add new theme parameter
14168         * Theme.cs: add new theme parameter
14169         * DataGridDrawingLogic.cs: Datagrid's drawing logic
14170         * DataGrid.cs: fixes, new internal properties, etc.
14171         * DataGridColumnStyle.cs: allows to set grid value
14172         *
14174 2005-05-10  Peter Bartok  <pbartok@novell.com>
14176         * AccessibleObject.cs:
14177           - Removed MonoTODO attribute on help, method is correct
14178           - Fixed Bounds property
14179         * AxHost.cs: Moved MonoTODO
14180         * ButtonBase.cs: Now setting AccessibleObject properties
14181         * RadioButton.cs: Setting proper AccessibleObject role
14182         * CheckBox.cs: Setting proper AccessibleObject role
14183         * ControlBindingsCollection.cs: Added properties, methods and attributes
14184         * DataFormats.cs: Fixed awkward internal API, and changed to enable
14185           userdefined DataFormats.Format items as well
14186         * ListControl.cs: Removed data_member from the public eye
14187         * OpenFileDialog.cs:
14188           - Made class sealed
14189           - Added missing attributes
14190         * SaveFileDialog.cs: Added missing attributes
14191         * ImageListStreamer.cs: Fixed code that caused warnings
14192         * LinkLabel.cs: Removed unreachable code
14193         * TreeView.cs: Fixed code that caused warnings
14194         * PropertyGridView.cs: Fixed code that caused warnings
14195         * GridColumnStylesCollection.cs: Added missing attributes
14196         * GridTableStylesCollection: Added missing attribute
14197         * PropertyManager: Added .ctor
14198         * SecurityIDType: Added
14199         * DataObject.cs: Implemented class
14200         * LinkArea.cs: Added missing attribute
14202 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
14204         * RadioButton.cs: call base method to allow to fire OnClick event
14205         * UpDownBase.cs: OnMouseUp call base method
14206         * CheckedListBox.cs: call base method before returning
14207         * TrackBar.cs: call base method before returning
14208         
14210 2005-05-10  Peter Bartok  <pbartok@novell.com>
14212         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
14213           for messages
14215 2005-05-10  Peter Bartok  <pbartok@novell.com>
14217         * DataFormats.cs: Implemented
14218         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
14219           XplatUIX11.cs: Added Clipboard APIs
14220         * XplatUIWin32.cs: Implemented Clipboard APIs
14221         * FolderBrowserDialog.cs: Added missing event, attributes
14223 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
14225         * CheckBox.cs: call base method to allow to fire OnClick event
14227 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
14229         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
14231 2005-05-06  Peter Bartok  <pbartok@novell.com>
14233         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
14234         * Screen.cs: Implemented
14235         * HelpNavigator.cs: Added
14236         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
14237           property
14238         * HelpProvider.cs: Implemented all we can do until we have a CHM
14239           help library (which means that "What's This" does work now)
14241 2005-05-06  Jackson Harper  <jackson@ximian.com>
14243         * XplatUIX11.cs: Fix waking up the main loop.
14244                 
14245 2005-05-05  Peter Bartok  <pbartok@novell.com>
14247         * XplatUI.cs: Updated revision
14248         * Form.cs: Removed enless loop
14249         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
14250         * Label.cs (OnPaint): Added call to base.OnPaint()
14251         * ToolTip.cs: Made ToolTipWindow reusable for other controls
14252         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
14253         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
14254         * AxHost.cs: Added
14255         * ButtonBase.cs: Moved base.OnPaint() call to end of method
14256         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
14257           to ToolTip.ToolTipWindow for drawing and size methods; this allows
14258           reuse of ToolTipWindow by other controls
14259         * SizeGrip.cs: Moved base.OnPaint() call to end of method
14260         * XplatUIX11.cs: Now clipping drawing area (experimental)
14261         * PictureBox.cs: Moved base.OnPaint() call to end of method
14262         * Theme.cs: Fixed ToolTip abstracts to match new format
14263         * ErrorProvider.cs: Implemented
14265 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
14267         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
14268         * LinkLabel.cs:
14269                 - Adds cursors
14270                 - Handles focus
14271                 - Implements LinkBehavior
14272                 - Fixes many issues
14274 2005-05-03  Jackson Harper  <jackson@ximian.com>
14276         * ListView.cs: Calculate the scrollbar positioning on resize and
14277         paint, so they get put in the correct place.
14279 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
14281         * ColorDialogs.cs: The small color panels are now handled by
14282           SmallColorControl. This fixes drawing of the focus rectangle
14283           and adds a 3D border.
14285 2005-05-03  Peter Bartok  <pbartok@novell.com>
14287         * Control.cs: Modified version of Jonathan Chamber's fix for
14288           double-buffering
14290 2005-05-03  Jackson Harper  <jackson@ximian.com>
14292         * ListView.cs: Remove redraw variable. Control now handles whether
14293         or not a redraw needs to be done, and will only raise the paint
14294         event if redrawing is needed.
14296 2005-05-03  Jackson Harper  <jackson@ximian.com>
14298         * Splitter.cs: No decorations for the splitter form. Cache the
14299         hatch brush.
14301 2005-05-03  Jackson Harper  <jackson@ximian.com>
14303         * TreeView.cs: Use dashed lines to connect nodes. Use the
14304         ControlPaint method for drawing the focus rect instead of doing
14305         that in treeview.
14307 2005-05-02  Peter Bartok  <pbartok@novell.com>
14309         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
14311 2005-04-29  Jackson Harper  <jackson@ximian.com>
14313         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
14314         entire image buffer. Just clear the clipping rectangle.
14316 2005-04-29  Jackson Harper  <jackson@ximian.com>
14318         * ThemeWin32Classic.cs: Don't draw list view items that are
14319         outside the clipping rectangle.
14321 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
14323         * ListBox.cs: added horizontal item scroll
14325 2005-04-29  Jackson Harper  <jackson@ximian.com>
14327         * ThemeWin32Classic.cs: Remove some old debug code that was
14328         causing flicker with the new double buffering code.
14330 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
14332         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
14333         behave like combobox and comboboxlist (still not sure if this is
14334         correct though).
14336 2005-04-28  Jackson Harper  <jackson@ximian.com>
14338         * ThemeWin32Classic.cs: Don't fill the middle of progress
14339         bars. This fills areas outside of the clip bounds that don't need
14340         to be filled.
14342 2005-04-28  Jackson Harper  <jackson@ximian.com>
14344         * Control.cs: Don't expose functionality to touch the image buffers.
14345         * ProgressBar.cs:
14346         * ListView.cs: We do not need to (and no longer can) manipulate
14347         the image buffers directly. All of this is handled by Control.
14349 2005-04-28  Peter Bartok  <pbartok@novell.com>
14351         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
14352           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
14353           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
14355 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
14357         * Combobox:
14358                 - Adjust control's height for non-simple comboboxes (bug fix)
14359                 - Remove dead code
14360         * MenuAPI.cs: remove unused var
14361         * ScrollBar.cs: remove unsed var
14362                  
14363         * ListBox.cs: unselect items when clearing
14365 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
14367         * ListControl.cs: honors OnPositionChanged and default Selected Item
14368         * ListBox.cs: unselect items when clearing
14370 2005-04-27  Jackson Harper  <jackson@ximian.com>
14372         * X11Keyboard.cs: Initialize a default keyboard and give a warning
14373         if a "correct" keyboard is not found. This will make us not crash,
14374         but might give some users bad keyboard layouts...seems to be the
14375         same thing rewind does.
14377 2005-04-27  Jackson Harper  <jackson@ximian.com>
14379         * BindingManagerBase.cs: Attach the current/position changed
14380         handlers to their respective events.
14382 2005-04-27  Jackson Harper  <jackson@ximian.com>
14384         * Control.cs: Make sure that the first WM_PAINT does a full draw,
14385         not just a blit.
14386         * ThemeWin32Classic.cs: Don't fill the background for picture
14387         boxes. This could overright user drawing.
14388         * ComboBox.cs: Just fill the clipping rect not the entire client
14389         rect when drawing the background. This prevents pieces of the
14390         image buffer from getting overwritten and is theoretically faster.
14392 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
14394         * ComboBox.cs: Databinding support fixes, fire missing events
14395         * ListControl.cs: implement missing methods and properties, fixes
14396         * ThemeWin32Classic.cs: Databiding support on Drawing
14397         * CheckedListBox.cs: Databinding support fixes, fire missing events
14398         * ListBox.cs: Databinding support fixes, fire missing events
14399         
14400 2005-04-25  Peter Bartok  <pbartok@novell.com>
14402         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
14404 2005-04-25  Jackson Harper  <jackson@ximian.com>
14406         * TreeView.cs: Use the horizontal scrollbars height not width when
14407         determining how much of the client area is available.
14409 2005-04-25  Jackson Harper  <jackson@ximian.com>
14411         * Control.cs: Double buffering is handled differently now. As per
14412         the spec, the extra buffer is created in the WM_PAINT message and
14413         passed down to the control's drawing code.
14414         * GroupBox.cs:
14415         * Label.cs:
14416         * CheckBox.cs:
14417         * ProgressBar.cs:
14418         * RadioButton.cs:
14419         * ColorDialog.cs:
14420         * ComboBox.cs:
14421         * PropertyGridView.cs:
14422         * UpDownBase.cs:
14423         * MessageBox.cs:
14424         * MenuAPI.cs:
14425         * ListView.cs:
14426         * ButtonBase.cs:
14427         * SizeGrip.cs:
14428         * ScrollBar.cs:
14429         * ListBox.cs:
14430         * TrackBar.cs:
14431         * ToolBar.cs:
14432         * PictureBox.cs:
14433         * DateTimePicker.cs:
14434         * StatusBar.cs:
14435         * TreeView.cs: Update to new double buffering system.
14436         * MonthCalendar.cs: Uncomment block, as Capture is now
14437         working. Update to new double buffering
14438         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
14439         * PaintEventArgs.cs: New internal method allows us to set the
14440         graphics object. This is used for double buffering.
14441         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
14442         rectangle. The internal paint_area var has been removed from
14443         StatusBar. The clipping rect should be used instead.
14444         * Theme.cs: Give the PictureBox drawing method a clipping rect.
14445         * TabPage.cs: The RefreshTabs method was removed, so just call the
14446         tab controls Refresh method now.
14447         * TabControl.cs: Update to new double buffering. Make sure the
14448         handle is created before sizing the tab pages, otherwise we will
14449         get stuck in a loop.
14451 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
14453         * LinkLabel.cs: Fix typo, bug #74719; patch
14454           from Borja Sanchez Zamorano
14456 2005-04-22  Jackson Harper  <jackson@ximian.com>
14458         * TreeNode.cs: Implement Handle stuff.
14459         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
14461 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
14463         * DataGridTextBoxColumn.cs: call base constructors, fixes
14464         * GridColumnStylesCollection.cs: missing events, methods, and functionality
14465         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
14466         * DataGridTableStyle.cs: implements create default column styles
14467         * DataGridBoolColumn.cs: which types can handle
14468         * DataGrid.cs: missing methods, fixes, new functionality
14469         * DataGridColumnStyle.cs: fixes
14471 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
14472         * FolderBrowserDialog.cs:
14473         - Use a thread to fill the TreeView
14474         - Adjusted some sizes
14476 2005-04-19  Peter Bartok  <pbartok@novell.com>
14478         * LinkLabel.cs: (Re-)create the pieces when setting the Text
14479           property. Fixes #74360.
14481 2005-04-19  Jackson Harper  <jackson@ximian.com>
14483         * XEventQueue.cs: Lock when getting the lockqueue size.
14484         * PictureBox.cs: Call base OnPaint
14485         
14486 2005-04-19  Peter Bartok  <pbartok@novell.com>
14488         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
14489           messages were no longer being processed (this broke BeginInvoke)
14491           
14492 2005-04-18  Jackson Harper  <jackson@ximian.com>
14494         * TreeView.cs: buglet that caused node images to get drawn
14495         regardless of whether or not they were in the clipping rectangle.
14497 2005-04-18  Jackson Harper  <jackson@ximian.com>
14499         * CurrencyManager.cs: There are four rules for GetItemProperties:
14500         - If the type is an array use the element type of the array
14501         - If the type is a typed list, use the type
14502         - If the list contains an Item property that is not an object, use
14503         that property
14504         - use the first element of the list if there are any elements in
14505         the list.
14506         
14507 2005-04-17  Jackson Harper  <jackson@ximian.oom>
14509         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
14510         click. This handles offsets for scrolling properly and reduces
14511         memory. Also fixed GetNode to not offset now that TopNode works
14512         properly.
14513         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
14514         
14515 2005-04-17  Jackson Harper  <jackson@ximian.com>
14517         * CursorConverter.cs: Initial implementation.
14519 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14521         * ListControl.cs: work towards complex data binding support on ListControl
14522         * CurrencyManager.cs: work towards complex data binding support on ListControl
14523         * ListBox.cs: work towards complex data binding support on ListControl
14526 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14528         * GridTableStylesCollection.cs: fixes name and constructor
14529         * DataGridTableStyle.cs: fixes
14530         * DataGridBoolColumn.cs: fixes names and constructors
14531         * DataGrid.cs: define methods and properties. Some init implementations
14532         * DataGridCell.cs: define methods and properties. Some init implementations
14533         * GridTablesFactory.cs: Define methods and properties
14535 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
14537         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
14538         graphics port changes.  We still want the coordinates in global screen
14539         coordinates.
14541 2005-04-14  Jackson Harper  <jackson@ximian.com>
14543         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
14544         check plus minus or checkbox clicks unless those features are enabled.
14546 2005-04-14  Jackson Harper  <jackson@ximian.com>
14548         * TreeView.cs: Add methods for setting the top and bottom visible
14549         nodes. TreeNode::EnsureVisible uses these methods.
14550         * TreeNode.cs: Implement EnsureVisible
14552 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
14554         * Form.cs: Pospone menu assignation if the window has not been created yet
14555         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
14556         size and position
14558 2005-04-12  Jackson Harper  <jackson@ximian.com>
14560         * TreeView.cs: Set the TopNode properly when scrolling
14561         occurs. This has the added benifit of reducing the amount of
14562         walking that needs to be done when drawing. Also removed an old
14563         misleading TODO.
14564         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
14565         
14566 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
14568         * Timer.cs: fixes interval setting when the timer is already enabled
14569         
14570 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
14572         * FolderBrowserDialog.cs: First approach
14574 2005-04-09  Peter Bartok  <pbartok@novell.com>
14576         * FolderBrowserDialog: Added
14578 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
14580         * LinkLabel.cs: move drawing code into the theme
14581         * ThemeWin32Classic.cs: drawing code and painting background bugfix
14582         * Theme.cs: define DrawLinkLabel method
14584 2005-04-05  Jackson Harper  <jackson@ximian.com>
14586         * BindingContext.cs: Use weak references so these bad actors don't
14587         stay alive longer then they need to.
14589 2005-04-05  Jackson Harper  <jackson@ximian.com>
14591         * ListControl.cs: Basic implementation of complex databinding.
14592         * ComboBox.cs:
14593         * ListBox.cs: Add calls to ListControl databinding methods.
14595 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
14597         * FileDialog.cs:
14598           - Don't change PopupButtonState to Normal when the
14599             PopupButton gets pressed several times.
14600           - Renamed ButtonPanel to PopupButtonPanel
14602 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
14604         * ColorDialog.cs: Use cached objects instead of creating them
14605         * LinkLabel.cs: Use cached objects instead of creating them
14606         * Splitter.cs: Use cached objects instead of creating them
14607         * FontDialog.cs: Use cached objects instead of creating them
14608         * PropertyGridView.cs: Use cached objects instead of creating them
14609         * MessageBox.cs: Use cached objects instead of creating them
14610         * FileDialog.cs: Use cached objects instead of creating them
14611         * ThemeWin32Classic.cs: Use cached objects instead of creating them
14612         * TreeView.cs: Use cached objects instead of creating them
14613         
14614 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
14616         * Control.cs: use Equals to compare the font since no == op
14617         * ScrollBar.cs: use Equals to compare the font since no == op
14619 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
14621         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
14623 2005-04-01  Jackson Harper  <jackson@ximian.com>
14625         * Binding.cs: Implement IsBinding.
14626         * BindingManagerBase.cs:
14627         * PropertyManager.cs:
14628         * CurrencyManager.cs: Add IsSuspended property.
14630 2005-04-01  Jackson Harper  <jackson@ximian.com>
14632         * Binding.cs: Had some IsAssignableFrom calls backwards.
14634 2005-04-01  Jackson Harper  <jackson@ximian.com>
14636         * Binding.cs: Handle null data members when pulling data.
14637         * PropertyManager.cs: Handle the data member being a property that
14638         does not exist.
14640 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14642         * DataGridTextBoxColumn.cs: fixes signature
14643         * DataGrid.cs: calls right constructor
14645 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14647         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
14648         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
14649         * GridTableStylesCollection.cs: implements GridTableStylesCollection
14650         * DataGridTableStyle.cs: implements DataGridTableStyle
14651         * DataGridBoolColumn.cs: implements DataGridBoolColumn
14652         * DataGridTextBox.cs: implements DataGridTextBox
14653         * DataGridColumnStyle.cs: implements DataGridColumnStyle
14655 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
14657         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
14659 2005-03-29  Peter Bartok  <pbartok@novell.com>
14661         * Application.cs:
14662           - Properly implemented CompanyName property
14663           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
14664             returns a path that includes CompanyName, ProductName and
14665             Version (fixes bug #70330)
14667 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
14669         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
14670           fixes bug #72588.
14672 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14674         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
14675         
14676           - Added ReadOnly CheckBox
14677           - Further refactoring: moved some code from Open-/SaveFileDialog
14678             to FileDialog
14680 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14682         * OpenFileDialog.cs: Fixed CheckFileExists
14683         * FileDialog.cs:
14684           Moved FileView and DirComboBox outside FileDialog class.
14685           They can now be used outside FileDialog
14687 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14689         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
14690         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
14692 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14694         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14695           - Added missing CreatePrompt property in SaveDialog
14696           - Overall SaveDialog handling should be better now
14697           - Added non standard ShowHiddenFiles property
14698           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
14699           - Added InitialDirectory and RestoreDirectory support
14701 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
14703         * FileDialog.cs: Made dirComboBox usable
14705 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
14707         * FileDialog.cs: Added Filter support (case sensitiv)
14709 2005-03-24  Jackson Harper  <jackson@ximian.com>
14711         * TabControl.cs: Need a couple more pixels for the lines.
14713 2005-03-23  Jackson Harper  <jackson@ximian.com>
14715         * TabControl.cs: Give the tab page focus when it is selected.
14717 2005-03-23  Jackson Harper  <jackson@ximian.com>
14719         * TabControl.cs: Account for the drawing of tabs borders when
14720         invalidating. If the slider was clicked dont do click detection on
14721         the tabs.
14723 2005-03-23  Jackson Harper  <jackson@ximian.com>
14725         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
14727 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
14729         * CategoryGridEntry.cs: Added
14730         * GridItem.cs: Added helper properties
14731         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
14732         * GridEntry.cs: Updated code for collection
14733         * PropertyGrid.cs: Cleaned up some formatting
14734         * PropertyGridView.cs: Added drop down functionality for enums.
14735         * GridItemCollection.cs: Added enumerator logic
14736         * PropertyGridEntry.cs: Added
14738 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14740         * FileDialog.cs:
14741           - Removed unnecessary commented code
14742           - Fixed handling for entering the filename manually in the combobox
14744 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14746         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
14748 2005-03-18  Peter Bartok  <pbartok@novell.com>
14750         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
14751           them being touching the border
14753 2005-03-18  Peter Bartok  <pbartok@novell.com>
14755         * TextControl.cs: Quick hack to center text better
14757 2005-03-18  Peter Bartok  <pbartok@novell.com>
14759         * ControlPaint.cs:
14760           - Don't throw NotImplemented exceptions, just print a notice once
14761             instead (requested by Miguel). This makes running existing SWF
14762             apps a bit easier
14763         * Control.cs:
14764           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
14765           - Added context menu trigger on right click
14766         * Panel.cs: Trigger invalidate on resize
14767         * StatusBar.cs:
14768           - Removed old double-buffer drawing
14769           - Added ResizeRedraw style to force proper update of statusbar
14770         * ListView.cs:
14771           - Removed debug output
14772         * ThemeWin32Classic.cs:
14773           - Fixed drawing of status bar, now draws Text property if there
14774             are no defined panels
14776 2005-03-18  Jackson Harper  <jackson@ximian.com>
14778         * ImageList.cs: When the image stream is set pull all the images
14779         from it.
14780         * ImageListStreamer.cs: Implement reading image list streams.
14782 2005-03-18  Peter Bartok  <pbartok@novell.com>
14784         * ThemeWin32Classic.cs (DrawPictureBox):
14785           - Fixed calculations for centered drawing
14786           - Fixed drawing for normal mode, not scaling the image on normal
14788 2005-03-18  Peter Bartok  <pbartok@novell.com>
14790         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
14791           textbox
14792         * FileDialog.cs:
14793           - Made Open/Save button the accept button for FileDialog
14794           - Tied the cancel button to the IButtonControl cancel button
14795           - Save/Open now properly builds the pathname
14796           - Now handles user-entered text
14797           - Preventing crash on right-click if no item is selected
14798           - Fixed Text property, now uses contents of textbox
14799           - Fixed SelectedText property, now just returns the text part that
14800             is selected in the text box
14802 2005-03-18  Jackson Harper  <jackson@ximian.com>
14804         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
14805         rect, make sure to de-adjust the interior rect after drawing the
14806         tab text.
14808 2005-03-18  Peter Bartok  <pbartok@novell.com>
14810         * MenuAPI.cs: Remove menu *before* executing selected action to
14811           prevent the menu from 'hanging around'
14812           
14813 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
14815         * XplatUIOSX.cs: Implemented WorkingArea property
14817 2005-03-17  Peter Bartok  <pbartok@novell.com>
14819         * XplatUIX11.cs: Fixed menu coord calculations
14820         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
14821           for calculating offsets
14823 2005-03-17  Peter Bartok  <pbartok@novell.com>
14825         * Hwnd.cs: Do not consider menu presence for default client
14826           rectangle location/size
14827         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14828           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
14829           translation functions
14830         * FileDialog.cs: Fixed (what I presume is a) typo
14832 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
14834         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
14835           X access (avoids X-Async errors)
14837 2005-03-16  Jackson Harper  <jackson@ximian.com>
14839         * TabControl.cs: Raise the SelectedIndexChanged event.
14841 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
14843         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14844           - Removed vertical ToolBar and replaced it with a custom panel
14845             (desktop and home button already work)
14846           - Added Help button (some controls get resized or relocated then)
14847           - Draw correct text depending on Open or Save.
14848           - Fixed some typos...
14850 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
14852         * ScrollBar.cs:
14853           - Only change Maximum and Minimum when need it (bug fix)
14855 2005-03-15  Peter Bartok  <pbartok@novell.com>
14857         * Form.cs: Use Handle for icon, to trigger creation if
14858           the window does not yet exist
14859         * Control.cs:
14860           - CanSelect: Slight performance improvement
14861           - Focus(): Preventing possible recursion
14862           - Invalidate(): Removed ControlStyle based clear flag setting
14863           - WM_PAINT: fixed logic for calling OnPaintBackground
14864           - WM_ERASEBKGND: Fixed logic, added call to new driver method
14865             EraseWindowBackground if the control doesn't paint background
14866         * XplatUIWin32.cs:
14867           - Moved EraseWindowBackground() method to internal methods
14868           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
14869             is sent via SendMessage on BeginPaint call on Win32
14870         * XplatUIX11.cs:
14871           - Added EraseWindowBackground() method
14872           - No longer sends WM_ERASEBKGND on .Expose, but on call to
14873             PaintEventStart, which more closely matches Win32 behaviour
14874           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
14875           - Fixed SetFocus() to properly deal with client and whole windows
14876         * Hwnd.cs: Added ErasePending property
14877         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
14878         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
14880 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
14882         * XplatUIOSX.cs:
14883           - Fix hard loop when timers exist.
14884           - Fix bugs with middle and right click for 3 button mice.
14886 2005-03-11  Peter Bartok  <pbartok@novell.com>
14888         * XplatUIX11.cs:
14889           - get_WorkingArea: Need to call X directly, GetWindowPos only
14890             returns cached data now
14891           - Added sanity check to GetWindowPos hwnd usage
14893 2005-03-11  Jackson Harper  <jackson@ximian.com>
14895         * BindingManagerBase.cs: This method isn't used anymore as
14896         PullData now updates the data in the control.
14898 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
14900         * Form.cs: fixes menu drawing on X11
14901         * MenuAPI.cs:  fixes menu drawing on X11
14903 2005-03-11  Peter Bartok  <pbartok@novell.com>
14905         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
14906           from Jonathan Gilbert; should fix bug #73606
14907         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
14908           in Screen coordinates. Thanks, Jordi.
14909         * Form.cs: Added missing attribute
14911 2005-03-11  Peter Bartok  <pbartok@novell.com>
14913         * Form.cs:
14914           - Rudimentary Mdi support
14915           - Removed outdated FormParent code
14916           - Implemented lots of missing properties and methods, still missing
14917             transparency support
14918           - Added missing attributes
14919           - Implemented support for MaximumBounds
14920           - Added firing of various events
14921         * XplatUI.cs: Added SetIcon() method
14922         * XplatUIDriver.cs: Added SetIcon() abstract
14923         * XplatUIOSX.cs: Stubbed out SetIcon() method
14924         * XplatUIX11.cs:
14925           - Implemented SetIcon() support
14926           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
14927           - Switched to unix line endings
14928         * XplatUIWin32.cs:
14929           - Made POINT internal so for can access it as part of MINMAX
14930           - Implemented SetIcon() support
14931           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
14932             native Mdi support again, might have to go managed)
14933         * Control.cs: Now fires the StyleChanged event
14934         * MdiClient.cs: Added; still mostly empty
14936 2005-03-10  Peter Bartok  <pbartok@novell.com>
14938         * SaveFileDialog.cs: Added emtpy file
14940 2005-03-08  Peter Bartok  <pbartok@novell.com>
14942         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
14943           in turn triggers OnCreateContro) when creating a handle for the
14944           first time.
14945         * TextControl.cs: Fixed endless loop in certain cases when
14946           replacing the current selection
14948 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
14950         * ScrollBar.cs:
14951           - Honors NewValue changes in Scroll events allowing apps to change it
14952           - Adds First and Last Scroll events
14953           - Fixes Thumb events
14955 2005-03-07  Peter Bartok  <pbartok@novell.com>
14957         * Hwnd.cs: Added DefaultClientRectangle property
14958         * XplatUI.cs: Now using the X11 driver Where() method, which provides
14959           more detailed debug information
14960         * XplatUIX11.cs:
14961           - Fixed size-change feedback loop, where we would pull an old size
14962             off the queue and mistakenly change our window's size to an
14963             earlier value
14964           - Now compressing ConfigureNotify events, to reduce looping and
14965             redraw issues
14966         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
14967           is called
14969 2005-03-07  Jackson Harper  <jackson@ximian.com>
14971         * Binding.cs: Push data pushes from data -> property. Check if the
14972         property is readonly when attempting to set it.
14974 2005-03-07  Jackson Harper  <jackson@ximian.com>
14976         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
14977         instead of IsSubclassOf. Pulling data now sets the value on the
14978         control.
14979         * PropertyManager.cs:
14980         * CurrencyManager.cs: Just need to pull data when updating now,
14981         because PullData will set the value on the control.
14983 2005-03-04  Jackson Harper  <jackson@ximian.com>
14985         * Binding.cs: Implement data type parsing and converting on pulled
14986         data. TODO: Are there more ways the data can be converted?
14988 2005-03-04  Jackson Harper  <jackson@ximian.com>
14990         * Binding.cs: Support <Property>IsNull checks. Also bind to the
14991         controls Validating method so we can repull the data when the
14992         control loses focus.
14994 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
14996         * ColumnHeader.cs:
14997           - Fixes null string format
14998           
14999         * ListView.cs:
15000           - Adds enum type checks
15001           - Fixes redrawing and recalc need after changing some properties
15002           - Fixes on focus_item set after the event
15003           - Fixes adding columns after the control has been created
15004           
15005         * ThemeWin32Classic.cs:
15006           - Fixes CheckBox focus rectangle
15007           - Fixes ColumnHeader drawing
15010 2005-03-03  Jackson Harper  <jackson@ximian.com>
15012         * Binding.cs: Bind to <Property>Changed events so we can detect
15013         when properties are changed and update the data.
15015 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
15017         * ImageList.cs:
15018           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
15019           - Fixes ImageList constructor with ImageList container
15020           - Fixes image scaling (wrong parameters at DrawImage)
15022 2005-02-02  Jackson Harper  <jackson@ximian.com>
15024         * Binding.cs: Make property searches case-insensitive. Eliminate
15025         some duplicated code.
15027 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
15029         * ComboBox.cs:
15030                 - Handle focus event
15031                 - Fix scrollbar events
15032                 - Discard highlighted item if remove it
15033                 - Fixes SelectedItem with strings
15035 2005-03-01  Peter Bartok  <pbartok@novell.com>
15037         * Control.cs:
15038           - Fixed Visible property, now follows (once again) parent chain
15039             to return false if any control in the chain is visible=false
15040           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
15041           - Fixed several places where is_visible instead of Visible was used
15042           - Implemented FIXME related to focus selection when setting focused
15043             control to be invisible
15045         * XplatUIWin32.cs: Now using proper method to find out if window is
15046           visible. Thanks to Jordi for pointing it out
15048 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
15050         * ComboBox.cs: show/hide scrollbar instead of creating it
15052 2005-02-27  Jackson Harper  <jackson@ximian.com>
15054         * CurrencyManager.cs: Add PositionChanged stuff.
15056 2005-02-27  Peter Bartok  <pbartok@novell.com>
15058         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
15059         * XplatUIOSX.cs: Added GetMenuOrigin() stub
15060         * XplatUIWin32.cs: Implemented GetMenuOrigin()
15061         * XplatUIX11.cs:
15062           - Implemented GetMenuDC()
15063           - Implemented GetMenuOrigin()
15064           - Implemented ReleaseMenuDC()
15065           - Implemented generation of WM_NCPAINT message
15066           - Implemented generation and handling of WM_NCCALCSIZE message
15067         * Form.cs: Added debug helper message for Jordi's menu work
15068         * Hwnd.cs:
15069           - Modified ClientRect property; added setter, fixed getter to handle
15070             setting of ClientRect
15071           - Added MenuOrigin property
15073 2005-02-26  Peter Bartok  <pbartok@novell.com>
15075         * XplatUIX11.cs:
15076           - Destroys the caret if a window that's being destroyed contains it
15077           - Ignores expose events coming from the X11 queue for windows that
15078             already are destroyed
15079           - Now uses the proper variable for handling DestroyNotify, before we
15080             marked the wrong window as destroyed
15081           - Improved/added some debug output
15083 2005-02-26  Peter Bartok  <pbartok@novell.com>
15085         * X11Keyboard.cs: Fixes to work on 64bit systems
15087 2005-02-26  Peter Bartok  <pbartok@novell.com>
15089         * Control.cs:
15090           - Now calling OnHandleDestroyed from DestroyHandle()
15091             instead of Dispose()
15092           - Removed bogus call to controls.Remove() from DestroyHandle()
15094 2005-02-26  Peter Bartok  <pbartok@novell.com>
15096         * Control.cs: Properly destroy child windows when our handle is
15097           destroyed
15099 2005-02-25  Peter Bartok  <pbartok@novell.com>
15101         * XplatUI.cs:
15102           - Added 'DriverDebug' define to allow tracing XplatUI API calls
15103           - Alphabetized Static Methods and Subclasses
15105         * XplatUIX11.cs:
15106           - Added XException class to allow custom handling of X11 exceptions
15107           - Created custom X11 error handler, tied into XException class
15108           - Added support for MONO_XEXCEPTIONS env var to allow the user
15109             to either throw an exception on X errors or continue running
15110             after displaying the error
15111           - Added handling of DestroyNotify message
15112           - Added handler for CreateNotify message (still disabled)
15113           - Improved (tried to at least) Where method to provide file and lineno
15114         * X11Structs.cs:
15115           - Added XErrorHandler delegate
15116           - Added XRequest enumeration (to suppor translation of errors)
15118 2005-02-25  Jackson Harper  <jackson@ximian.com>
15120         * PropertyManager.cs: Implement editing features
15121         * CurrencyManager.cs:
15122         * Binding.cs: First attempt at UpdateIsBinding
15123         * BindingManagerBase.cs: Call UpdateIsBinding before
15124         pushing/pulling data.
15126 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
15128         * MenuAPI.cs: Respect disabled items
15129         * ThemeWin32Classic.cs
15130                 - Caches ImageAttributes creation for DrawImageDisabled
15131                 - Fixes vertical menu line drawing
15132                 - Draws disabled arrows in disable menu items
15134 2005-02-24  Peter Bartok  <pbartok@novell.com>
15136         * Hwnd.cs:
15137           - Added UserData property to allow associating arbitrary objects
15138             with the handle
15139           - Fixed leak; now removing Hwnd references from static windows array
15140         * XplatUIWin32.cs:
15141           - Fixed Graphics leak in PaintEventEnd
15142           - Removed usage of HandleData, switched over to Hwnd class
15143         * HandleData.cs: Removed, obsoleted by Hwnd.cs
15145 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
15147         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
15148         * ScrollBar.cs: Fixes bug
15149         * TrackBar.cs: removes death code, clipping, mimize refreshes,
15150          keyboard navigation enhancements
15152 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
15154         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
15155         * GroupBox.cs: Add control styles
15156         * Label.cs: Add control styles
15157         * UpDownBase.cs: Add control styles
15158         * ListBox.cs: Add control styles
15159         * XplatUIWin32.cs: Fixes wrong parameter order
15162 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
15164         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
15166 2005-02-23  Jackson Harper  <jackson@ximian.com>
15168         * PropertyManager.cs: Implement property binding. This doesn't
15169         seem to work yet though as (I think) there are some bugs in
15170         System.ComponentModel.PropertyDescriptor.
15171         * BindingContext.cs: Use new PropertyManager constructor.
15173 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
15175         * ProgressBar.cs: use clip region in ProgressBar
15176         * ThemeWin32Classic.cs: use clip region in ProgressBar
15178 2004-02-22  Jackson Harper  <jackson@ximian.com>
15180         * BindingsCollection.cs: Remove some debug code.
15182 2005-02-22  Jackson Harper  <jackson@ximian.com>
15184         * BindingContext.cs:
15185         * ControlBindingsCollection.cs:
15186         * CurrencyManager.cs:
15187         * Binding.cs:
15188         * BindingManagerBase.cs: Initial implementation
15189         * BindingsCollection.cs: Add an internal contains method that the
15190         BindingManagerBase uses to ensure bindings aren't added twice to
15191         the collection.
15192         * PropertyManager.cs: Stubbed out.
15193         * Control.cs:
15194         * ContainerControl.cs: Hook up databinding
15195         
15196 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
15198         * XplatUIOSX.cs:
15199           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
15200           Fixed Invalidate/Update chain.
15201           Fixed tons of other minor bugs (this is almost a complete rewrite).
15203 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
15205         * ComboBox.cs: do subcontrol creation when the control is created
15207 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15209         * Label.cs: fixes image drawing (image and imagelist)
15210         * ThemeWin32Classic.cs: cache brushes
15211         
15212 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15214         * Form.cs: Move menu drawing code to Theme class
15215         * ComboBox.cs: Move ComboBox drawing code to Theme class
15216         * MenuItem.cs: Move menu drawing code to Theme class
15217         * MenuAPI.cs: Move menu drawing code to Theme class
15218         * ThemeWin32Classic.cs: New methods
15219         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
15220         * ListBox.cs: Move Listbox drawing code to Theme class
15221         * Theme.cs: New methods
15223 2005-02-20  Peter Bartok  <pbartok@novell.com>
15225         * Control.cs:
15226           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
15227             only process mnemonics on those)
15228           - Fixed event sequence for key handling; first calling
15229             ProcessKeyEventArgs now
15230         * TextBoxBase.cs:
15231           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
15232             for processing non-character keys
15233           - Fixed WM_CHAR to generate proper event sequence before processing
15234         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
15235           generation
15237 2005-02-19  Peter Bartok  <pbartok@novell.com>
15239         * UserControl.cs: Added TextChanged event; added attributes
15240         * SizeGrip.cs: Implemented resizing and optional display of grip
15241         * Form.cs: Fixed attribute
15242         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
15243           Changed meaning of ScrollWindow bool argument; instead of the
15244           clear attribute (which will be true usually anyway), it gives the
15245           option of moving child controls as well.
15246         * XplatUIX11.cs:
15247           - Changed to match new ScrollWindow argument
15248           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
15249             now handles the implicit parent window a WM puts around us
15250         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
15251           to work)
15252         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
15253         * TreeView.cs: Adjusted to new ScrollWindow arguments
15255 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15257         * Form.cs: Menu integration with non-client area
15258         * MenuItem.cs: Menu integration with non-client area
15259         * MenuAPI.cs: Menu integration with non-client area
15261 2005-02-18  Peter Bartok  <pbartok@novell.com>
15263         * MethodInvoker.cs: Added
15264         * MdiLayout.cs: Added
15265         * SendKeys.cs: Started implementation
15266         * ErrorIconAlignment.cs: Added
15268 2005-02-18  Peter Bartok  <pbartok@novell.com>
15270         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
15271         * Form.cs: Added handling for Menu-related Non-client messages
15273 2005-02-17  Peter Bartok  <pbartok@novell.com>
15275         * UpDownBase.cs: Fixed typo, compilation errors
15276         * DomainUpDown.cs: Fixed attribute value
15278 2005-02-16  Miguel de Icaza  <miguel@novell.com>
15280         * UpDownBase.cs: Attach entry events.
15281         Propagate events.
15282         Add ForeColor property, Focused, InterceptArrowKeys (interception
15283         does not work yet).
15285 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
15287         * Form.cs:
15288                 - Redraw non client are on Setmenu
15289                 - Calc proper menu starting point
15291 2005-02-17  Peter Bartok  <pbartok@novell.com>
15293         * Application.cs: Fixed message_filter check
15295 2005-02-17  Peter Bartok  <pbartok@novell.com>
15297         * Application.cs: Now calls registered message filters
15298         * DockStyle.cs: Fixed attribute
15299         * Form.cs: Fixed attribute
15300         * Menu.cs: Fixed attribute
15301         * ToolTip.cs: Fixed attribute
15302         * TreeNode.cs: Added missing attributes and arranged in regions
15303         * PropertyGrid.cs: Fixed signatures
15304         * TreeNodeCollection.cs: Added attributes
15305         * Splitter.cs: Added missing attributes; arranged into regions
15306         * TabPage.cs: Added missing attributes; arranged into regions
15307         * TextBoxBase.cs: Added missing attributes
15308         * TextBox.cs: Added missing attributes
15309         * ArrangeDirection.cs: Added missing attributes
15310         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
15311         * ToolBarButton.cs: Fixed attributes
15312         * AnchorStyles.cs: Fixed attribute
15313         * TrackBar.cs: Fixed attributes
15314         * TabControl.cs: Added missing attributes and arranged into regions
15315         * ToolBar.cs: Fixed attribute
15316         * StatusBar.cs: Fixed signature, organized into regions and added
15317           attributes
15318         * StatusBarPanel.cs: Fixed attributes
15319         * ContentsResizedEventArgs.cs: Implemented
15320         * ContentsResizedEventHandler.cs: Implemented
15321         * DateBoldEventArgs.cs: Implemented
15322         * DateBoldEventHandler.cs: Implemented
15323         * UpDownEventArgs.cs: Implemented
15324         * UpDownEventHandler.cs: Implemented
15325         
15326 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
15328         * Form.cs: first Menu NC refactoring
15329         * MenuAPI.cs: first Menu NC refactoring
15330         
15331 2005-02-16  Peter Bartok  <pbartok@novell.com>
15333         * ImeMode.cs: Added missing attributes
15334         * Menu.cs: Fixed attribute
15335         * GroupBox.cs: Fixed attribute
15336         * Label.cs: Fixed attribute
15337         * ColorDialog.cs (RunDialog): Removed TODO attribute
15338         * ComboBox.cs: Fixed attributes
15339         * ListControl.cs: Added missing attributes
15340         * PropertyGrid.cs: Fixed attributes
15341         * Control.cs: Fixed attributes
15342         * ListViewItem.cs: Added TypeConverter attribute
15343         * NotifyIcon.cs: Fixed attributes
15344         * ListView.cs: Fixed attributes
15345         * ButtonBase.cs: Fixed attribute
15346         * ImageList.cs: Added missing attributes
15347         * ContainerControl.cs: Fixed signature
15348         * CheckedListBox.cs: Fixed attribute; added missing attributes
15349         * Panel.cs: Fixed attributes
15350         * PropertyTabChangedEventArgs.cs: Added missing attribute
15351         * PropertyValueChangedEventArgs.cs: Added missing attribute
15352         * Binding.cs: Fixed attribute
15353         * ListViewItemConverter: Implemented ListViewSubItemConverter class
15354         * ListBox.cs: Fixed attribute; added missing attributes;
15355         * ScrollableControl.cs: Added missing attributes
15356         * PictureBox.cs: Added missing attributes; implemented missing property
15357         * DateTimePicker.cs: Added missing attributes
15358         * Theme.cs (ToolWindowCaptionHeight): Fixed type
15359         * MonthCalendar.cs: Fixed attributes
15360         * StatusBarPanel.cs: Added missing attributes
15361         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
15363 2005-02-16  Peter Bartok  <pbartok@novell.com>
15365         * TextBoxBase.cs: The previous method to enforce height yet remember
15366           the requested high was less than ideal, this is an attempt to do
15367           it better.
15368         * Control.cs: Added comment about possible problem
15369         * Copyright: Updated format
15370         * GridItemType.cs: Fixed swapped values
15372 2005-02-15  Jackson Harper  <jackson@ximian.com>
15374         * BaseCollection.cs: Use property so we never access an
15375         uninitialized list. Also initialize the list in the property.
15377 2005-02-15  Peter Bartok  <pbartok@novell.com>
15379         * GroupBox.cs (ProcessMnemonic): Implemented
15380         * Label.cs (ProcessMnemonic): Implemented
15381         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
15382           hotkeys
15384 2005-02-15  Peter Bartok  <pbartok@novell.com>
15386         * RadioButton.cs (ProcessMnemonic): Implemented
15387         * CheckBox.cs (ProcessMnemonic): Implemented
15388         * Control.cs:
15389           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
15390             handling
15391           - Added internal method to allow calling ProcessMnemonic from other
15392             controls
15393         * ContainerControl.cs:
15394           - Started support for handling validation chain handling
15395           - Implemented ProcessMnemonic support
15396           - Added Select() call to Active, to make sure the active control
15397             receives focus
15398         * Form.cs: Setting toplevel flag for Forms (this was lost in the
15399           FormParent rewrite)
15400         * ThemeWin32Classic.cs:
15401           - DrawCheckBox(): Fixed stringformat to show hotkeys
15402           - DrawRadioButton(): Fixed stringformat to show hotkeys
15403         * CommonDialog.cs: Removed WndProc override, not needed
15405 2005-02-14  Peter Bartok  <pbartok@novell.com>
15407         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
15408           missed those in the rewrite
15410 2005-02-14  Miguel de Icaza  <miguel@novell.com>
15412         * NumericUpDown.cs (Increment, ToString): Add.
15413         (DecimalPlaces): implement.
15414         
15415         Add attributes.
15416         
15417         * UpDownBase.cs: Add the designer attributes.
15419 2005-02-13  Peter Bartok  <pbartok@novell.com>
15421         * Panel.cs: Removed border_style, now in Control
15422         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
15423           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
15425 2005-02-13  Peter Bartok  <pbartok@novell.com>
15427         * MouseButtons.cs: Added missing attributes
15428         * XplatUIStructs.cs: Added enumeration for title styles
15429         * LeftRightAlignment.cs: Added missing attributes
15430         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
15431           it compatible with Graphics.FromHwnd()
15432         * SelectedGridItemChangedEventArgs.cs: Fixed property type
15433         * Keys.cs: Added missing attributes
15434         * SelectionRange.cs: Added missing attributes
15435         * SelectionRangeConverter.cs: Added
15436         * XplatUI.cs:
15437           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
15438             ReleaseMenuDC methods
15439           - Renamed ReleaseWindow to UngrabWindow
15440           - Added proper startup notice to allow version identification
15441         * Form.cs:
15442           - Added missing attributes
15443           - Removed FormParent concept
15444         * Label.cs: Removed border_style field, now in Control
15445         * RadioButton.cs: Now properly selects RadioButton when focus is
15446           received
15447         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
15448         * Control.cs:
15449           - Added missing attributes
15450           - Added borderstyle handling
15451           - Removed FormParent concept support
15452           - Fixed calls to XplatUI to match changed APIs
15453           - Fixed bug that would case us to use disposed Graphics objects
15454           - Removed unneeded internal methods
15455           - PerformLayout(): Fixed to handle DockStyle.Fill properly
15456           - SelectNextControl(): Fixed to properly check common parents
15457         * TextBoxBase.cs: Removed border_style field (now in Control)
15458         * MessageBox.cs:
15459           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
15460             fixed calculations for form size
15461           - Added support for localized strings and icons
15462           - Improved form size calculations, added border
15463         * ListView.cs: Removed border_style field (now in Control)
15464         * X11Structs.cs: Moved several structs from X11 driver here
15465         * X11Keyboard.cs: Changed debug message
15466         * Application.cs: Removed FormParent concept support
15467         * CommonDialog.cs:
15468           - Resetting end_modal flag
15469           - Removed FormParent concept support
15470         * NativeWindow.cs: Removed FormParent concept support
15471         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
15472           Client area and Non-Client whole window to allow support for WM_NC
15473           messages
15474         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
15475           prevent using it until it supports Hwnd as per Geoff Norton's request
15476         * ToolBar.cs: Fixed drawing, was not doing proper drawing
15477         * PictureBox.cs: Removed border_style field, now in Control
15478         * XplatUIWin32.cs: Added new driver methods
15480 2005-02-12  Peter Bartok  <pbartok@novell.com>
15482         * OpacityConverter.cs: Implemented
15483         * Hwnd.cs: Internal class to support drivers that need to emulate
15484           client area/non-client area window behaviour
15486 2005-02-11  Peter Bartok  <pbartok@novell.com>
15488         * KeysConverter.cs: Implemented
15490 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
15492         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
15493         * LinkLabel: Added missing attributes
15494         * MainMenu.cs: fixes ToString
15495         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
15496         * ListBox.cs: fixes event position
15497         * TrackBar.cs: adds missing attributes and events
15498         
15499 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
15501         * MenuItem.cs: Use SystemInformation and bug fixes
15502         * MenuAPI.cs: Use SystemInformation and bug fixes
15504 2005-02-09  Jackson Harper  <jackson@ximian.com>
15506         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
15507         their keystate otherwise things like VK_MENU get stuck "on".
15509 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
15511         * ListBox.cs: Fixes AddRange bug
15512         
15513 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
15515         * ProgressBar.cs
15516                 - Add missing attributes
15517                 - Add missing method
15518                 
15519         * CheckedListBox.cs: Added missing attributes
15520                 - Add missing attributes
15521                 - Remove extra method
15522         
15523         * ComboBox.cs: Added missing attributes
15524         * VScrollBar.cs: Added missing attributes
15525         * ScrollBar.cs:  Added missing attributes
15526         * ListBox.cs: Fixes signature, add missing consts
15527         * LinkArea.cs:   Added missing attributes
15528         
15530 2005-02-08  Peter Bartok  <pbartok@novell.com>
15532         * Menu.cs: Added missing attributes
15533         * MainMenu.cs: Added missing attributes
15534         * GroupBox.cs: Added missing attributes
15535         * Label.cs: Added missing attributes
15536         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
15537         * ColorDialog.cs:
15538           - Added Instance and Options properties
15539           - Added missing attributes
15540         * Cursor.cs: Made Serializable
15541         * NotifyIcon: Added missing attributes
15542         * MenuItem.cs: Added missing attributes
15543         * TextBoxBase.cs: Implemented AppendText() and Select() methods
15544         * Panel.cs: Added Missing attributes
15545         * MonthCalendar.cs: Fixed CreateParams
15547 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15548         
15549         * LinkLabel.cs:
15550                 - Fixes signature
15551                 - Fixes issues with links
15552                 - Adds the class attributes
15554 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15555         
15556         * ComboBox.cs:
15557                 - Fixes button when no items available in dropdown
15558                 - Fixes repainting problems
15559                 - Adds the class attributes
15560                 
15561 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15563         * XplatUIOSX.cs: Detect the menu bar and title bar height from
15564         the current theme.  Cache these on startup.
15566 2005-02-07  Jackson Harper  <jackson@ximian.com>
15568         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
15569         the scrollbar buttons when they are depressed.
15571 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15573         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
15574         Get the display size from the main displayid.  We currently dont
15575         support multiple display configurations.
15577 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15579         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
15581 2005-02-07  Miguel de Icaza  <miguel@novell.com>
15583         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
15585 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
15587         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
15589 2005-02-04  Jackson Harper  <jackson@ximian.com>
15591         * ThemeWin32Classic.cs: Respect the clipping rect when
15592         drawing. Only fill the intersection of clips and rects so there
15593         isn't a lot of large fills.
15594         * ScrollBar.cs: Pass the correct clipping rect to the theme
15595         engine. Remove some debug code.
15597 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
15598         
15599         * DateTimePicker.cs:
15600                 - Fixed crash on DateTime.Parse, use Constructor instead
15602 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15603         
15604         * MenuItem.cs:
15605         * MenuAPI.cs:
15606                 - Owner draw support (MeasureItem and DrawItem)
15608 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15609         
15610         *  Menu.cs:
15611                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
15612                 - Fixes MenuItems.Add range
15613         * MenuItem.cs:
15614                 - MergeMenu and Clone and CloneMenu functions
15616 2005-02-03  Jackson Harper  <jackson@ximian.com>
15618         * ScrollBar.cs: Make abstract
15619         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
15620         is abstract.
15622 2005-02-03  Jackson Harper  <jackson@ximian.com>
15624         * ScrollBar.cs: First part of my scrollbar fixups. This removes
15625         all the unneeded refreshes and uses invalidates with properly
15626         computed rects.
15628 2005-02-03  Peter Bartok  <pbartok@novell.com>
15630         * ComponentModel.cs: Added
15631         * IDataGridEditingService.cs: Added
15632         * Timer.cs: Added missing attributes
15633         * ToolTip.cs: Added missing attributes
15635 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15637         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
15639 2005-02-03  Peter Bartok  <pbartok@novell.com>
15641         * ListBox.cs: Added missing attributes
15643 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
15644         
15645         * ListBox.cs:
15646                 - Fixes font height after font change
15647                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
15648                 
15649 2005-02-02  Peter Bartok  <pbartok@novell.com>
15651         * HandleData.cs: Introduced static methods to allow class
15652           to be more self-contained and track it's own HandleData objects
15653         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
15654           HandleData to use new static methods
15656 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
15658         * Combobox.cs:
15659                 - Fixes default size and PreferredHeight
15660                 - Missing events
15661                 - ObjectCollection.Insert implementation
15662                 
15663         * ListControl.cs
15664                 - Fixes signature
15665         * ListBox.cs:
15666                 - Several fixes
15667                 - ObjectCollection.Insert implementation
15668                 - No selection after clean
15669                 - Small fixes
15671 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15673         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
15675 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
15677         * Combobox.cs:
15678                 - Caches ItemHeight calculation for OwnerDrawVariable
15679                 - Handles dropdown properly
15680                 - Fixes several minor bugs
15682 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15684         * ListBox.cs:
15685                 - Fixes 71946 and 71950
15686                 - Fixes changing Multicolumn on the fly
15687                 - Fixes keyboard navigation on Multicolumn listboxes
15689 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15690         
15691         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
15692         crash reporter log.
15694 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15696         * XplatUIOSX.cs: Allow applications to actually exit.
15698 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15700         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
15701         their parent at creation time rather than lazily later.  Fixes a major
15702         regression we were experiencing.
15704 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15706         * ThemeWin32Classic.cs: more date time picker painting fixes
15707         * DateTimePicker.cs: more monthcalendar drop down fixes
15708         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
15710 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15712         * ScrollBar.cs:
15713                 - When moving the thumb going outside the control should stop the moving
15714                 - Adds the firing of missing events
15715                 - Fixes no button show if Size is not specified
15716                 - End / Home keys for keyboard navigation
15718 2005-01-30  Peter Bartok  <pbartok@novell.com>
15720         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
15721           sanity check to prevent theoretical loop
15722         * XplatUIWin32.cs (SetVisible): Removed debug output
15723         * XplatUIX11.cs (SystrayChange): Added sanity check
15724         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
15725         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
15726           behaviour, valid until the X11 client window rewrite is done
15727         * TextBox.cs (ctor): Setting proper default foreground and background
15728           colors
15730 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
15732         * Theme: Added DrawDateTimePicker to interface
15733         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
15734         * DateTimePicker.cs: Created (still needs keys and painting code)
15735         * DateTimePickerFormat.cs: added
15736         * MonthCalendar.cs: fixed CreateParams for popup window mode
15737           
15738 2005-01-29  Peter Bartok  <pbartok@novell.com>
15740         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
15741           this should also the calculations for ligher/darker
15742         * Theme.cs: Fixed defaults for ScrollBar widths/heights
15744 2005-01-29  Peter Bartok  <pbartok@novell.com>
15746         * ArrangeDirection.cs: Added
15747         * ArrangeStartingPositon.cs: Added
15748         * SystemInformation.cs: Implemented
15749         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15750           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
15751           used by SystemInformation class
15752         * X11Strucs.cs: Added XSizeHints structure
15753         * MenuAPI.cs:
15754           - Fixed CreateParams to make sure the menu window is always visible
15755           - TrackPopupMenu: Added check to make sure we don't draw the
15756             menu offscreen
15758 2005-01-29  Peter Bartok  <pbartok@novell.com>
15760         * HandleData.cs: Added method for altering invalid area
15761         * TextBoxBase.cs: Implemented TextLength
15763 2005-01-28  Peter Bartok  <pbartok@novell.com>
15765         * XplatUIX11.cs: Improvement over last patch, not sending
15766           the WM_PAINT directly anymore, instead we scroll any pending
15767           exposed areas and let the system pick out the WM_PAINT later
15769 2005-01-28  Peter Bartok  <pbartok@novell.com>
15771         * SWF.csproj: Deleted, no longer used. Instead,
15772           Managed.Windows.Forms/SWF.csproj should be used
15773         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
15774           directly, to avoid a potential race condition with the next
15775           scroll
15777 2005-01-28  Peter Bartok  <pbartok@novell.com>
15779         * XplatUI.cs: Made class internal
15781 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
15783         * CheckedListBox.cs:
15784                 - Draw focus
15785                 - Fixed Drawing
15786                 - Missing methods and events
15788 2005-01-27  Peter Bartok  <pbartok@novell.com>
15790         * Application.cs (Run): Don't use form if we don't have one
15792 2005-01-27  Peter Bartok  <pbartok@novell.com>
15794         * TextBoxBase.cs (get_Lines): Fixed index off by one error
15796 2005-01-27  Peter Bartok  <pbartok@novell.com>
15798         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
15799         * GridItem.cs: Added; Patch by Jonathan S. Chambers
15800         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
15801         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
15802         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
15803         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
15804         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15805         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15806         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15807         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15808         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15809         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15811 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15813         * Combobox.cs:
15814                 - Draw focus on Simple Combobox
15815                 - Fixes drawing issues
15816                 - fixes 71834
15818 2005-01-27  Peter Bartok  <pbartok@novell.com>
15820         * Form.cs:
15821           - Place window in default location, instead of hardcoded 0/0
15822           - Send initial LocationChanged event
15823         * Control.cs:
15824           - UpdateBounds after creation to find out where the WM placed us
15825           - Make sure that if the ParentForm changes location the Form
15826             is notified
15827         * XplatUIX11.cs: XGetGeometry will not return the coords relative
15828             to the root, but to whatever the WM placed around us.
15829             Translate to root coordinates before returning toplevel
15830             coordinates
15831         * XplatUIWin32.cs: Removed debug output
15832         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
15833           flag to GetWindowPos, to allow translation of coordinates on X11
15835 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15837         * ListBox.cs: connect LostFocus Event
15839 2005-01-27  Peter Bartok  <pbartok@novell.com>
15841         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15842           XplatUIX11.cs: Extended the Systray API
15843         * Form.cs: Removed debug output
15844         * Application.cs: Fixed focus assignment, always need to call
15845           XplatUI.Activate() since Form.Activate() has rules that may
15846           prevent activation
15847         * NotifyIcon.cs: Should be complete now
15848         * ToolTip.cs: Worked around possible timer bug
15850 2005-01-27  Jackson Harper  <jackson@ximian.com>
15852         * TabControl.cs:
15853         - Only invalidate the effected tabs when the
15854         selected index changes. This reduces drawing and gets rid of some
15855         flicker.
15856         - Only refresh if the tabs need to be shifted, otherwise only
15857         invalidate the slider button.
15858         - On windows the tabs are not filled to right if the slider is
15859         visible.
15860         
15861 2005-01-27  Jackson Harper  <jackson@ximian.com>
15863         * TabControl.cs: Only refresh on mouseup if we are showing the
15864         slider. Also only invalidate the button whose state has changed.
15866 2005-01-26  Peter Bartok  <pbartok@novell.com>
15868         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
15869         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
15870           and SystrayRemove() methods
15871         * XplatUIOSX.cs: Stubbed Systray methods
15872         * XplatUIX11.cs:
15873           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
15874             methods
15875           - Fixed broken XChangeProperty calls (marshalling messed up things)
15876         * X11Structs.cs: Added enums and structs required for Size hinting
15877         * NotifyIcon.cs: Added & implemented
15879 2005-01-26  Jackson Harper  <jackson@ximian.com>
15881         * TabControl.cs: Space vertically layed out tabs properly.
15883 2005-01-26  Peter Bartok  <pbartok@novell.com>
15885         * Form.cs (CreateClientParams): Always set the location to 0,0
15886           since we're a child window.
15888         * Control.cs (SetVisibleCore): Always explicitly setting the location
15889           of a toplevel window, apparently X11 doesn't like to move windows
15890           while they're not mapped.
15892 2005-01-26  Jackson Harper  <jackson@ximian.com>
15894         * TabControl.cs: Implement FillToRight size mode with vertically
15895         rendered tabs.
15897 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15899         * ControlPaint.cs, ThemeWin32Classic.cs
15900                 - Fixes DrawFocusRectangle
15902 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15904         * MenuAPI.cs:
15905                 - MenuBar tracking only starts when item is first clicked
15906                 - Fixes menu hidding for multiple subitems
15907                 - Unselect item in MenuBar when item Executed
15908                 - Fixes bug 71495
15910 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
15912         * ListControl.cs:
15913                 - IsInputKey for ListBox
15914         * ListBox.cs:
15915                 - Focus item
15916                 - Shift and Control item selection
15917                 - Implement SelectionMode.MultiExtended
15918                 - Fixes RightToLeft
15919         * ComboBox.cs:
15920                 - IsInputKey implemented
15921                 - Do not generate OnTextChangedEdit on internal txt changes
15922                 
15923 2005-01-23  Peter Bartok  <pbartok@novell.com>
15925         * AccessibleObject.cs: Partially implemented Select()
15926         * MonthCalendar.cs: Added missing attributes and events
15927         * Form.cs: Fixed CreateParams behaviour, now controls derived from
15928           form can properly override CreateParams.
15929         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15930           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
15931           Control performs Invalidate & Update
15932         * NativeWindow (CreateHandle): Added special handling for Form
15933           and Form.FormParent classes to allow overriding of From.CreateParams
15934         * Control.cs:
15935           - ControlNativeWindow: Renamed 'control' variable to more intuitive
15936             name 'owner'
15937           - ControlNativeWindow: Added Owner property
15938           - Removed usage of Refresh() on property changes, changed into
15939             Invalidate(), we need to wait until the queue is processed for
15940             updates, direct calls might cause problems if not all vars for
15941             Paint are initialized
15942           - Added call to UpdateStyles() when creating the window, to set any
15943             styles that CreateWindow might have ignored.
15944           - Added support for Form CreateParent overrides to UpdateStyles()
15945         * MessageBox.cs: Removed no longer needed FormParent override stuff,
15946           CreateParams are now properly overridable
15947         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
15948           CreateParams are now properly overridable
15950 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
15952         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
15953         OnTextBoxChanged.
15955         Capture LostFocus and OnTextBoxChanged.  The later introduces a
15956         recursive invocation that I have not figured out yet.
15958         Reset the timer when not using (it was accumulating).
15961         (OnTextBoxChanged): Set UserEdit to true here to track whether the
15962         user has made changes that require validation.
15964         Reset changing to avoid loops.
15966 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
15968         * NumericUpDown.cs: Display value at startup.
15970         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
15971         ValidateEditText.
15973         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
15974         filled in.  Added some basic parsing of text.
15976         Still missing the OnXXX method overrides, and figuring out the
15977         events that must be emitted.
15979         * UpDownBase.cs: Handle UserEdit on the Text property.
15980         
15981 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
15983         * ComboBox.cs:
15984           - Fixes IntegralHeight
15985           - ToString method
15987 2005-01-21  Jackson Harper  <jackson@ximian.com>
15989         * TabControl.cs: Set the SelectedIndex property when SelectedTab
15990         is set so that the page visibility is updated and the tabs are
15991         sized correctly.
15993 2005-01-21  Jackson Harper  <jackson@ximian.com>
15995         * TabControl.cs: Use cliping rectangle for blitting. Give the
15996         theme the clipping rect so we can do clipping while
15997         drawing. Remove some debug code.
15999 2005-01-21  Jackson Harper  <jackson@ximian.com>
16001         * TabPage.cs: Add a new method so tab pages can force the tab
16002         control to recalculate the tab page sizes.
16003         * TabControl.cs: UpdateOwner needs to make the tab control recalc
16004         sizes.
16006 2005-01-20  Jackson Harper  <jackson@ximian.com>
16008         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
16010 2005-01-20  Jackson Harper  <jackson@ximian.com>
16012         * TreeView.cs: Set the bounds for nodes properly. They were
16013         getting screwed up when checkboxes were not enabled, but images
16014         were.
16016 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
16018         * ListBox.cs:
16019                 - Owner draw support
16020                 - Fixes
16021                 
16022 2005-01-20  Jackson Harper  <jackson@ximian.com>
16024         * XplatUIStructs.cs: More misc keys
16025         * X11Keyboard.cs: Ignore some control keys.
16027 2005-01-20  Jackson Harper  <jackson@ximian.com>
16029         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
16030         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
16032 2005-01-19  Peter Bartok  <pbartok@novell.com>
16034         * Control.cs: Un-selecting the control when it is loosing focus
16036 2005-01-19  Jackson Harper  <jackson@ximian.com>
16038         * TreeView.cs: Hook up to the text controls leave event so we can
16039         end editing when the users clicks outside the text box.
16040         
16041 2005-01-19  Jackson Harper  <jackson@ximian.com>
16043         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
16044         get set in the conversion array.
16046 2005-01-19  Peter Bartok  <pbartok@novell.com>
16048         * Application.cs (ModalRun): Added a call to CreateControl to ensure
16049           focus is properly set
16050         * Button.cs:
16051           - Added missing attributes
16052           - removed styles, those are already set in the base class
16053         * ButtonBase.cs:
16054           - Added missing attributes
16055           - Added clip window styles
16056         * CheckBox.cs: Added missing attributes
16057         * CommonDialog.cs:
16058           - FormParentWindow.CreateParams: Added required clip styles
16059         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
16060           also filters modifier keys
16061         * MessageBox.cs:
16062           - Added assignment of Accept and Cancel button to enable Enter
16063             and Esc keys in MessageBox dialogs
16064           - FormParentWindow.CreateParams: Added required clip styles
16065         * RadioButton.cs: Added missing attributes
16066         * TextControl.cs: No longer draws selection if control does not
16067           have focus
16068         * TextBoxBase.cs:
16069           - Now draws simple rectangle around test area to make it obvious
16070             there's a control. This is a hack until we properly support borders
16071           - A few simple fixes to support selections better, now erases selected
16072             text when typing, and resets selection when using movement keys
16074 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
16076         * UpDownBase.cs: Added some new properties.
16078         * DomainUpDown.cs: Implement a lot to get my test working.
16080 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
16082         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
16084 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
16086         * OSXStructs (WindowAttributes): Fixed csc complaints
16088 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
16090         * XplayUIOSX.cs:
16091           OSXStructs.cs: Initial refactor to move enums and consts into
16092           OSXStructs and use them in the driver for greater readability.
16094 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
16096         * XplatUIOSX.cs: Initial support for Standard Cursors.
16097         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
16099 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
16101         * ComboBox.cs: ability to change style when the ctrl is already
16102         created, missing methods and events, bug fixes, signature fixes
16104 2005-01-19  Peter Bartok  <pbartok@novell.com>
16106         * Cursors.cs (ctor): Added ctor to fix signature
16108 2005-01-18  Peter Bartok  <pbartok@novell.com>
16110         * Button.cs: Implemented DoubleClick event
16111         * ButtonBase.cs:
16112           - Fixed keyboard handling to behave like MS, where the press of
16113             Spacebar is equivalent to a mousedown, and the key release is
16114             equivalent to mouseup. Now a spacebar push will give the same
16115             visual feedback like a mouse click.
16116           - Added missing attributes
16117           - Added ImeModeChanged event
16118           - Added support for generating DoubleClick event for derived classes
16119         * CheckBox.cs:
16120           - Implemented DoubleClick event
16121           - Added missing attributes
16122         * CommonDialog.cs: Added missing attribute
16123         * ContextMenu.cs: Added missing attributes
16124         * RadioButton.cs:
16125           - AutoChecked buttons do not allow to be unselected when clicked
16126             (otherwise we might end up with no selected buttons in a group)
16127           - Added missing attributes
16128           - Implemented DoubleClickEvent
16129         * ThreadExceptionDialog.cs: Enabled TextBox code
16131 2005-01-18  Peter Bartok  <pbartok@novell.com>
16133         * Form.cs: Removed debug output
16134         * Button.cs: Added support for DoubleClick method
16136 2005-01-18  Peter Bartok  <pbartok@novell.com>
16138         * Form.cs:
16139           - Added method to parent window that allows triggering size
16140             calculations when a menu is added/removed
16141           - set_Menu: Cleaned up mess from early days of Form and Control,
16142             now properly triggers a recalc when a menu is added/removed
16143           - Added case to select form itself as focused form if no child
16144             controls exist
16145           - Added PerformLayout call when showing dialog, to ensure properly
16146             placed controls
16147         * Control.cs:
16148           - Select(): Made internal so Form can access it
16149           - Focus(): Only call Xplat layer if required (avoids loop), and sets
16150             status
16151         * Application.cs (Run): Removed hack and calls PerformLayout instead
16152           to trigger calculation when Form becomes visible
16154 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
16156         * ComboBox.cs: fixes for ownerdraw
16158 2005-01-18  Peter Bartok  <pbartok@novell.com>
16160         * TextControl.cs:
16161           - Sentinel is no longer static, each Document gets it's own, this
16162             avoids locking or alternatively overwrite problems when more
16163             than one text control is used simultaneously.
16164           - Switched to use Hilight and HilightText brushes for text selection
16166         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
16168 2005-01-18  Peter Bartok  <pbartok@novell.com>
16170         * Control.cs:
16171           - Hooked up the following events:
16172                 o ControlAdded
16173                 o ControlRemoved
16174                 o HandleDestroyed
16175                 o ImeModeChanged
16176                 o ParentChanged
16177                 o TabStopChanged
16178                 o Invalidated
16179                 o SystemColorsChanged
16180                 o ParentFontChanged
16181                 o Move
16182           - Removed debug output
16183           - Added a call to the current theme's ResetDefaults when a color change
16184             is detected
16185         * Form.cs: Now setting the proper ImeMode
16186         * Theme.cs: Defined a method to force recreation of cached resources
16187           and rereading of system defaults (ResetDefaults())
16188         * ThemeWin32Classic.cs: Added ResetDefaults() stub
16190 2005-01-17  Peter Bartok  <pbartok@novell.com>
16192         * Control.cs: Added missing attributes
16194 2005-01-17  Jackson Harper  <jackson@ximian.com>
16196         * TreeNode.cs: Implement editing. Add missing properties selected
16197         and visible.
16198         * TreeView.cs: Implement node editing. Also some fixes to use
16199         Invalidate (invalid area) instead of Refresh when selecting.
16201 2005-01-17  Peter Bartok  <pbartok@novell.com>
16203         * Control.cs:
16204           - Implemented InvokeGotFocus() method
16205           - Implemented InvokeLostFocus() method
16206           - Implemented InvokePaint() method
16207           - Implemented InvokePaintBackground() method
16208           - Implemented InvokeClick() method
16209           - Implemented FindForm() method
16210           - Implemented RectangleToClient() method
16211           - Implemented ClientToRectangle() method
16212           - Implemented ResetBackColor() method
16213           - Implemented ResetCursor() method
16214           - Implemented ResetFont() method
16215           - Implemented ResteForeColor() method
16216           - Implemented ResetImeMode() method
16217           - Implemented ResetLeftToRight() method
16218           - Implemented ResetText() method
16219           - Implemented Scale() methods
16220           - Implemented ScaleCore() method
16221           - Implemented Update() method
16222           - Removed unused variables
16223           - Stubbed AccessibilityNotifyClients and
16224             ControlAccessibleObject.NotifyClients() methods (dunno what to do
16225             with those yet)
16226           - Now setting proper default for RightToLeft property
16227           - Fixed bug in SetClientSizeCore that would cause windows to get
16228             really big
16229           - Now sending Click/DoubleClick events
16230           - Now selecting controls when left mouse button is clicked on
16231             selectable control
16232         * AccessibleEvents.cs: Added
16233         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
16234         * XplatUIOSX.cs: Stubbed UpdateWindow() method
16235         * XplatUIWin32.cs: Implemented UpdateWindow() method
16236         * XplatUIX11.cs: Implemented UpdateWindow() method
16237         * Form.cs: Removed stray semicolon causing CS0162 warning
16238         * ThemeWin32Classic.cs: Fixed unused variable warnings
16239         * ScrollableControl.cs: Now calls base method for ScaleCore
16240         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
16241           style to avoid interference with internal click handler (which is
16242           different than standard Control click handling)
16243         * RadioButton.cs:
16244           - Now unchecks all sibling radio buttons when control is
16245             selected (Fixes #68756)
16246           - Removed internal tabstop variable, using the one inherited from
16247             Control
16249 2005-01-17  Jackson Harper  <jackson@ximian.com>
16251         * NavigateEventArgs.cs: Fix base type.
16252         * LinkLabel.cs: Sig fix
16253         
16254 2005-01-17  Jackson Harper  <jackson@ximian.com>
16256         * TreeView.cs: Only invalidate the effected nodes bounds when
16257         selecting nodes.
16259 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16261         * XplatUIWin32.cs: fixes Win32 marshaling
16262         * XplatUIX11.cs: fixes method signature
16264 2005-01-17  Peter Bartok  <pbartok@novell.com>
16266         * XplatUIX11.cs: Clean up resources when we no longer need them
16268 2005-01-17  Peter Bartok  <pbartok@novell.com>
16270         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
16271           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
16272           and DestroyCursor() methods.
16273         * Cursor.cs: Partially implemented, now supports standard cursors;
16274           still contains some debug code
16275         * Cursors.cs: Implemented class
16276         * Control.cs:
16277           - WndProc(): Added handling of WM_SETCURSOR message, setting the
16278             appropriate cursor
16279           - Implemented Cursor property
16280           - Replaced break; with return; more straightforwar and possibly
16281             faster
16282           - Now properly setting the result for WM_HELP
16283         * X11Structs.cs: Added CursorFontShape enum
16284         * XplatUIStructs.cs:
16285           - Added StdCursor enum (to support DefineStdCursor() method)
16286           - Added HitTest enum (to support sending WM_SETCURSOR message)
16287         * XplatUIX11.cs:
16288           - Now sends the WM_SETCURSOR message
16289           - Implemented new cursor methods
16290         * XplatUIOSX.cs: Stubbed new cursor methods
16291         * XplatUIWin32.cs:
16292           - Implemented new cursor methods
16293           - Added GetSystemMetrics function and associated enumeration
16295 2005-01-15  Peter Bartok  <pbartok@novell.com>
16297         * Control.cs:
16298           - WndProc(): Now handles EnableNotifyMessage
16299           - SelectNextControl(): Fixed bug where if no child or sibling
16300             controls exist we looped endlessly
16302 2005-01-14  Jackson Harper  <jackson@ximian.com>
16304         * TreeView.cs: Recalculate the tab pages when a new one is added
16305         so that the proper bounding rects are created.
16307 2005-01-14  Jackson Harper  <jackson@ximian.com>
16309         * TreeView.cs: Draw a gray box instead of a grip in the lower
16310         right hand corner when there are both horizontal and vertical
16311         scroll bars.
16313 2005-01-14  Jackson Harper  <jackson@ximian.com>
16315         * Control.cs: When erasing backgrounds use FromHwnd instead of
16316         FromHdc when there is a NULL wparam. This occurs on the X driver.
16317         * XplatUIX11.cs: Set the wparam to NULL.
16319 2005-01-13  Jackson Harper  <jackson@ximian.com>
16321         * PictureBox.cs: Implement missing methods (except ToString, need
16322         to test that on windows) and events. When visibility is changed we
16323         need to redraw the image because the buffers are killed. When size
16324         is changed refresh if the sizemode needs it.
16326 2005-01-13  Peter Bartok  <pbartok@novell.com>
16328         * Control.cs (SelectNextControl): Was using wrong method to select
16329           a control
16331 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16333         * ComboBox.cs: fixes dropstyle
16335 2005-01-13  Peter Bartok  <pbartok@novell.com>
16337         * Form.cs:
16338           - Implemented Select() override
16339           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
16340           - Now sets keyboard focus on startup
16341         * Control.cs (SelectNextControl): Now properly handles directed=true
16342         * TextBoxBase.cs:
16343           - WndProc: Now passes tab key on to base if AcceptTabChar=false
16344           - Added (really bad) focus rectangle (mostly for testing)
16345         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
16346           to enforce redraw on focus changes
16347         * ContainerControl.cs:
16348           - Fixed detection of Shift-Tab key presses
16349           - Fixed traversal with arrow keys
16350         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
16351           gonna keep this or if it's complete yet
16352         
16353 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16355         * ComboBox.cs: missing properties, fixes
16357 2005-01-13  Peter Bartok  <pbartok@novell.com>
16359         * Panel.cs (ctor): Setting Selectable window style to off
16360         * Splitter.cs (ctor): Setting Selectable window style to off
16361         * GroupBox.cs (ctor): Setting Selectable window style to off
16362         * Label.cs (ctor): Setting Selectable window style to off
16364 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
16366         * UpDownBase.cs (InitTimer): If the timer has been already
16367         created, enable it.
16369         Use a TextBox instead of a Label.
16371 2005-01-12  Jackson Harper  <jackson@ximian.com>
16373         * TreeView.cs: Refresh the tree after sorting the nodes. Always
16374         draw the connecting node lines (when ShowLines is true).
16375         * TreeNode.cs: The nodes index can now be updated. This is used
16376         when a node collection is sorted.
16377         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
16378         insert or an existing unsorted node collection can be sorted.
16379         
16380 2005-01-12  Peter Bartok  <pbartok@novell.com>
16382         * ContainerControl.cs: Implemented ProcessDialogKeys()
16384 2005-01-12  Peter Bartok  <pbartok@novell.com>
16386         * Control.cs:
16387           - Implemented SelectNextControl() method
16388           - Several focus related bug fixes
16389           - Fixed Docking calculations to match MS documentation and
16390             behaviour
16392 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
16394         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
16395         bug fixes
16397 2005-01-12  Peter Bartok  <pbartok@novell.com>
16399         * Control.cs:
16400           - Fixed broken Contains() method
16401           - Implemented GetNextControl() method. Finally. This is the pre-
16402             requisite for focus handling.
16404 2005-01-12  Peter Bartok  <pbartok@novell.com>
16406         * OSXStrucs.cs: Added
16408 2005-01-12  Peter Bartok  <pbartok@novell.com>
16410         * XplatUIWin32.cs:
16411           - Removed PeekMessageFlags
16412           - Implemented SetWindowStyle() method
16413         * XplatUIStructs.cs: Added PeekMessageFlags
16414         * X11Structs: Added missing border_width field to XWindowChanges struct
16415         * XplatUIX11.cs:
16416           - PeekMessage: Now throws exception if flags which are not yet
16417             supported are passed
16418           - Implemented SetWindowStyle() method
16419           - Fixed SetZOrder to handle AfterHwnd properly
16420         * XplatUI.cs: Added SetWindowStyle() method
16421         * XplatUIDriver.cs: Added SetWindowStyle() abstract
16422         * Control.cs:
16423           - Implemented UpdateStyles() method
16424           - Implemented UpdateZOrder() method
16425         * XplatUIOSX.cs: Added SetWindowStyle() stub
16427 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
16429         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
16430         button mouse).
16433 2005-01-11  Jackson Harper  <jackson@ximian.com>
16435         * TreeView.cs: Still need to draw lines to siblings even if out of
16436         the current node is out of the clip.
16438 2005-01-11  Jackson Harper  <jackson@ximian.com>
16440         * TreeView.cs: When setting the hbar/vbar/grip position use
16441         SetBounds so that perform layout is only called once. Also suspend
16442         and resume layout so layout is only done once for all controls.
16443         - Removed some debug fluff
16444         * SizeGrip.cs: Call base implmentation in overriding methods.
16445         - When visibility is changed the drawing buffers are killed so we
16446         need to redraw.
16448 2005-01-11  Jackson Harper  <jackson@ximian.com>
16450         * TreeView.cs: Calculate the open node count while drawing. This
16451         saves us an entire tree traversal for every paint operation. Use
16452         a member var for the open node count so less vars are passed around.
16454 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
16456         * MonthCalendar.cs:
16457         - fixed selection to use mousemove, not mouse polling on timer
16458         * ThemeWin32Classic.cs
16459         - removed redundant unused variable "no_more_content"
16460         
16461 2005-01-11  Peter Bartok  <pbartok@novell.com>
16463         * XplatUIX11.cs (DoEvents): Needs to return when no more events
16464           are pending, so it now calls PeekMessage instead of GetMessage;
16465           implemented a incomplete version of PeekMessage
16466         
16467 2005-01-11  Peter Bartok  <pbartok@novell.com>
16469         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
16470           I18n issues
16471         * TextBoxBase.cs: Added sending of TextChanged event
16473 2005-01-10  Jackson Harper  <jackson@ximian.com>
16475         * TreeView.cs: Try not to draw outside the clipping rectangle on
16476         each node element.
16478 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
16480         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
16482 2005-01-10  Jackson Harper  <jackson@ximian.com>
16484         * TreeView.cs:
16485         - Implement fast scrolling. Now only the newly
16486         exposed nodes are drawn and the old image is moved using the
16487         XplatUI::ScrollWindow method.
16488         - Factor in height of nodes when calculating whether or not the
16489         node is in the clipping rect.
16491 2005-01-10  Jackson Harper  <jackson@ximian.com>
16493         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
16495 2005-01-10  Peter Bartok  <pbartok@novell.com>
16497         * Application.cs: Added temporary hack to resolve all our resize
16498           required issues on startup. This will get fixed properly at
16499           some point in the future
16501 2005-01-10  Jackson Harper  <jackson@ximian.com>
16503         * SizeGrip.cs: New internal class that is used as a sizing
16504         grip control...hence the name.
16506 2005-01-10  Peter Bartok  <pbartok@novell.com>
16508         * Control.cs: Implemented proper TabIndex handling, now assigning
16509           a tabindex when a control is added to a container
16510         * GroupBox.cs (ctor): Now sets the Container style bit, required
16511           for Control.GetNextControl()
16513 2005-01-09  Jackson Harper  <jackson@ximian.com>
16515         * TextBoxBase.cs: Clear window when scrolling (fixes build).
16517 2005-01-09  Peter Bartok <pbartok@novell.com>
16519         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16520           XplatUIX11.cs: Added ability to control ScrollWindow expose and
16521           an overload for ScrollWindow to allow only scrolling a rectangle
16523 2005-01-09  Peter Bartok <pbartok@novell.com>
16525         * Form.cs:
16526           - Implemented SetDesktopBounds method
16527           - Implemented SetDesktopLocation method
16529 2005-01-08  Jackson Harper  <jackson@ximian.com>
16531         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
16532         the node count has changed, this removes to VScroll::Refresh calls
16533         when drawing.
16535 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
16537         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
16539 2005-01-07  Jackson Harper  <jackson@ximian.com>
16541         * TreeNode.cs: Just update the single node when it is
16542         checked. Don't refresh after toggling, the Expand/Collapse already
16543         handles this.
16544         * TreeView.cs: Respect clipping a little more when drawing. Try
16545         not to redraw things that don't need to be redrawn. Just hide the
16546         scrollbars when they are no longer needed instead of removing
16547         them, so they don't have to be created again and again.
16548         
16549 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
16551         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
16552         coordinates to window space to place the caret properly, FIXED.
16553         Implement GetWindowState & SetWindowState
16555 2005-01-06  Peter Bartok <pbartok@novell.com>
16557         * Form.cs:
16558           - Implemented ClientSize property
16559           - Implemented DesktopBounds property
16560           - Implemented DesktopLocation property
16561           - Implemented IsRestrictedWindow property
16562           - Implemented Size property
16563           - Implemented TopLevel property
16564           - Implemented FormWindowState property
16565         * Control.cs:
16566           - Implemented GetTopLevel() method
16567           - Implemented SetTopLevel() method
16568         * X11Structs.cs (Atom):
16569           - Added AnyPropertyType definition
16570           - Added MapState definiton and updated XWindowAttribute struct
16571         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
16572         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
16573         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
16574         * XplatUIWin32.cs:
16575           - Implemented GetWindowState() and SetWindowState() methods
16576           - Fixed Win32GetWindowLong return type
16577         * XplatUIX11.cs:
16578           - Introduced central function for sending NET_WM messages
16579           - Implemented GetWindowState() and SetWindowState() methods
16580         * TextBoxBase.cs (set_Lines):
16581           - Now uses Foreground color for text added via Text property (Duh!)
16582           - Added code to remember programmatically requested size (fixes
16583             behaviour when Multiline is set after Size)
16584           - Added AutoSize logic
16586 2005-01-06  Jackson Harper  <jackson@ximian.com>
16588         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
16590 2005-01-06  Jackson Harper  <jackson@ximian.com>
16592         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
16593         set to less then 0.
16595 2005-01-06  Jackson Harper  <jackson@ximian.com>
16597         * ScrollableControl.cs: Lazy init the scrollbars.
16598         
16599 2005-01-06  Jackson Harper  <jackson@ximian.com>
16601         * Theme.cs: Speed up getting pens and solid brushes, by using
16602         their ARGB as a hash instead of tostring and not calling Contains.
16604 2005-01-06  Peter Bartok <pbartok@novell.com>
16606         * Form.cs:
16607           - Implemented OnActivated and OnDeactivate event trigger
16608           - Implemented Activate() method
16609           - Fixed ShowDialog() to activate the form that was active before
16610             the dialog was shown
16611         * XplatUIX11.cs:
16612           - Added global active_window var that tracks the currently active
16613             X11 window
16614           - Now always grabs Property changes from the root window to always
16615             catch changes on the active window property
16616           - Added code to PropertyNotify handler to send Active/Inactive
16617             messages when state changes. This puts X11 and Win32 en par on
16618             WM_ACTIVATE notifications (except for double notifications when
16619             the user clicks away from our modal window to another one of our
16620             windows)
16622 2005-01-05  Jackson Harper  <jackson@ximian.com>
16624         * ImageList.cs: Implment ctor
16626 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16628         * XplatUIOSX.cs: Implement Activate/SetTopmost
16630 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16632         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
16634 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16636         * XplatUIOSX.cs: Implement GetActive/SetFocus.
16638 2005-01-05  Peter Bartok <pbartok@novell.com>
16640         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
16641           XplatUIOSX.cs: Added GetActive method to return the currently
16642           active window for the application (or null, if none is active)
16643         * Form.cs:
16644           - Implemented ActiveForm
16645           - Commented out owner assignment for modal dialogs (causes problems
16646             on Win32, since the owner will be disabled)
16647           - Reworked some Active/Focus handling (still incomplete)
16648         * CommonDialog.cs: Commented out owner assignment for modal dialogs
16649           (causes problems on Win32, since the owner will be disabled)
16650         * IWin32Window: Added ComVisible attribute
16652 2005-01-05  Peter Bartok <pbartok@novell.com>
16654         * ToolTip.cs (WndProc): Enable setting focus now that we have the
16655           required XplatUI functions.
16657 2005-01-05  Peter Bartok <pbartok@novell.com>
16659         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
16660           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
16661           to implement focus and activation handling; still incomplete and
16662           with debug output
16664 2005-01-04  Peter Bartok <pbartok@novell.com>
16666         * TextBoxBase.cs: Changed access level for Document property to
16667           match switch to internal for TextControl
16669 2005-01-04  Peter Bartok <pbartok@novell.com>
16671         * AccessibleObject: Added ComVisible attribute
16673 2005-01-04  Jackson Harper  <jackson@ximian.com>
16675         * X11Keyboard.cs: Remove unneeded var.
16677 2005-01-04  Jackson Harper  <jackson@ximian.com>
16679         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
16680         but PAINT.
16681         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
16682         ClientMessage. This makes apps exit cleanly (more often).
16683         
16684 2005-01-04  Jackson Harper  <jackson@ximian.com>
16686         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
16687         handling focus, return correct colors and fonts,
16688         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
16689         handle selection, horizontal scrolling, and mouse interaction.
16691 2005-01-04  Peter Bartok <pbartok@novell.com>
16693         * ICommandExecutor.cs: Added
16694         * IDataGridColumnStyleEditingNotificationService.cs: Added
16695         * IFeatureSupport.cs: Added
16696         * IFileReaderService.cs: Added
16697         * IDataObject.cs: Added ComVisible attribute
16698         * AmbientProperties.cs: Added
16699         * BaseCollection.cs: Added missing attributes
16700         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
16701         * BaseCollection.cs: Added missing attributes
16702         * Binding.cs: Added TypeConverter attribute
16703         * BindingContext.cs: Added DefaultEvent attribute
16704         * BindingsCollection.cs: Added DefaultEvent attribute
16705         * Button.cs: Added DefaultValue attribute
16706         * DragEventArgs.cs: Added ComVisible attribute
16707         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
16708         * KeyEventArgs.cs: Added ComVisible attribute
16709         * KeyPressEventArgs.cs: Added ComVisible attribute
16710         * MouseEventArgs.cs: Added ComVisible attribute
16711         * NavigateEventArgs.cs: Added
16712         * NavigateEventHandler.cs: Added
16713         * FeatureSupport.cs: Added
16714         * OSFeature.cs: Added
16715         * Theme.cs: Added abstract Version property to support OSFeature
16716         * ThemeWin32Classic.cs: Added Version property to
16717           support OSFeature.Themes
16718         * ProgressBar.cs: Removed OnPaintBackground override, not required since
16719           the proper styles to avoid background drawing are set, also doesn't
16720           match MS signature
16721         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
16722         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
16723         * ScrollEventArgs.cs: Added ComVisible attribute
16724         * SplitterEventArgs.cs: Added ComVisible attribute
16725         * AccessibleSelection.cs: Added Flags attribute
16726         * Appearance.cs: Added ComVisible attribute
16727         * Border3DSide.cs: Added ComVisible attribute
16728         * Border3DStyle.cs: Added ComVisible attribute
16729         * BorderStyle.cs: Added ComVisible attribute
16730         * DragAction.cs: Added ComVisible attribute
16731         * ErrorBlinkStyle.cs: Added
16732         * ScrollEventType.cs: Added ComVisible attribute
16733         * AnchorStyles.cs: Added Editor attribute
16734         * DockStyle.cs: Added Editor attribute
16735         * HorizontalAlignment.cs: Added ComVisible attribute
16736         * HelpEventArgs.cs: Added ComVisible attribute
16737         * PaintEventArgs.cs: Added IDisposable
16739 2005-01-04  Peter Bartok <pbartok@novell.com>
16741         * TextControl.cs: Switched Line, LineTag and Document classes to
16742           internal
16744 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16746         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
16747         Simple mode, fixes, IntegralHeight, etc.
16749 2005-01-04  Peter Bartok <pbartok@novell.com>
16751         * TextBoxBase.cs: Using proper font variable now
16753 2005-01-04  Peter Bartok <pbartok@novell.com>
16755         * Form.cs (ShowDialog): Set parent to owner, if provided
16756         * GroupBox.cs: Removed unused vars
16757         * TextControl.cs:
16758           - Added GetHashCode() for Document and LineTag classes
16759           - Removed unused variables
16760           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
16761             to allow translation between continuous char position and line/pos
16762         * CheckBox.cs: Removed vars that are provided by base class
16763         * RadioButton.cs: Removed vars that are provided by base class, added
16764           new keyword where required
16765         * LinkLabel.cs: Added new keyword where required
16766         * Control.cs (WndProc): Removed unused variable
16767         * TextBoxBase.cs:
16768           - Finished SelectionLength property
16769           - Implemented SelectionStart property
16770           - Implemented Text property
16771           - Removed unused vars
16772         * MessageBox.cs: Added new keyword where required
16773         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
16774           WndProc signature
16775         * MenuAPI.cs: Added new keyword where required
16776         * ButtonBase.cs: Removed vars that are provided by base class, added
16777           new keyword where required
16778         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
16779           argument to double, to allow compiling with csc 2.0 (Atsushi ran
16780           into this)
16781         * Application.cs (Run): Now triggers the ThreadExit event
16782         * CommonDialog.cs: Added new keyword where required; now properly sets
16783           parent (owner) for dialog
16784         * XplatUIX11.cs: Commented out unused vars
16785         * StatusBar.cs: Fixed signature for Text property
16786         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
16788 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16790         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
16791         TrackBar.cs, MonthCalendar.cs: remove unused vars
16793 2005-01-03  Jackson Harper  <jackson@ximian.com>
16795         * ThemeWin32Classic.cs:
16796         * X11Keyboard.cs: Remove unused vars.
16798 2005-01-03  Peter Bartok  <pbartok@novell.com>
16800         * TextBox.cs:
16801           - set_Text: Tied into TextControl
16802           - set_TextAlignment: Tied into TextControl
16803         * TextControl.cs:
16804           - Added alignment properties and implemented alignment handling
16805             and drawing (still has a bug, not generating proper expose events)
16806           - Added new Line() constructor to allow passing the line alignment
16807           - Fixed selection setting, properly handling end<start now
16808           - Added aligment considerations to RecalculateDocument()
16809         * TextBoxBase.cs:
16810           - Now properly enforces control height for single line controls
16811           - Added support for CharacterCasing
16812           - Added IsInputKey override
16813           - Fixed Keys.Enter logic
16814           - Added SetBoundsCore override
16815           - Fixed mouse selection handling
16817 2005-01-03  Jackson Harper  <jackson@ximian.com>
16819         * TreeView.cs:
16820           - Collapse and uncheck all nodes when CheckBoxes is disabled.
16821           - Checkboxes are always aligned to the bottom of the node,
16822           regardless of item height.
16823           - Use the node bounds to draw the text so we can center it when
16824           the item height is greater then the font height.
16825           - Node::Bounds are only the text part of the node.
16826         * TreeNode.cs: New method to combine collapsing and unchecking all
16827           nodes recursively.
16829 2005-01-02  Jackson Harper  <jackson@ximian.com>
16831         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
16832         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
16833         tree when a check is changed. TODO: Only refresh the checked node.
16835 2004-12-30  Jackson Harper  <jackson@ximian.com>
16837         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
16838         * TreeNode.cs: When collapsing make sure to never collapse the
16839         root node.
16841 2004-12-29  Jackson Harper  <jackson@ximian.com>
16843         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
16844         
16845 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
16847         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
16849 2004-12-28  Peter Bartok  <pbartok@novell.com>
16851         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
16852           not yet assigned
16854 2004-12-28  Peter Bartok  <pbartok@novell.com>
16856         * Control.cs (WndProc): Added WM_HELP handler, now generates
16857           HelpRequested event
16858         * Form.cs: Added HelpButton property and required support code
16859         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
16861 2004-12-28  Peter Bartok  <pbartok@novell.com>
16863         * CommonDialog.cs:
16864           - Made DialogForm.owner variable internal
16865           - Added check to ensure owner form is set before setting
16866             owner properties in CreateParams
16868 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
16870         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
16871           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
16872           GetCursorPos.  Fix major visibility issues.  Rework the windowing
16873           system to support borderless/titleless windows (implements menus).
16874           Fix GetWindowPos.  Implement initial background color support for
16875           views.
16877 2004-12-28  Peter Bartok  <pbartok@novell.com>
16879         * Form.cs (get_CreateParams): Make sure we have an owner before using
16880           the owner variable. Implement proper default if no owner exists
16882 2004-12-28  Peter Bartok  <pbartok@novell.com>
16884         * In preparation for making Managed.Windows.Forms the default build target
16885           for System.Windows.Forms, the following stubbed files were added.
16886           Dialogs are currently being implemented by contributors and are only
16887           short-term place holders.
16888         * ColorDialog.cs: Initial check-in (minmal stub)
16889         * DataGrid.cs: Initial check-in (minimal stub)
16890         * DataGridLineStyle.cs: Initial check-in (minimal stub)
16891         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
16892         * DataGridTableStyle.cs: Initial check-in (minimal stub)
16893         * FontDialog.cs: Initial check-in (minimal stub)
16894         * FileDialog.cs: Initial check-in (minimal stub)
16895         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
16896         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
16897         * OpenFileDialog: Initial check-in (minimal stub)
16898         * IComponentEditorPageSite.cs: Initial check-in
16899         * Splitter.cs: Initial check-in (for Jackson)
16900         * SplitterEventArgs.cs: Initial check-in (for Jackson)
16901         * SplitterEventHandler.cs: Initial check-in (for Jackson)
16902         * TextBox.cs: Initial check-in; still needs some wiring to
16903           TextControl backend
16904         * Form.cs: Implemented ControlBox property
16905         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
16906         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
16907         * TextControl.cs: Added selection functionality; added todo header
16908         * TextBoxBase.cs:
16909           - Implemented Lines property
16910           - Implemented TextHeight property
16911           - Implemented SelectedText property
16912           - Implemented SelectionLength property
16913           - Implemented SelectAll method
16914           - Implemented ToString method
16915           - Removed and cleaned up some debug code
16916           - Implemented (still buggy) mouse text selection
16918 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
16920         * ComboBox.cs: Complete DropDownList implementation, fixes.
16922 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
16924         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
16925         * ComboBoxStyle.cs: ComboBoxStyle enum
16926         * ComboBox.cs: Initial work on ComboBox control
16928 2004-12-21  Peter Bartok  <pbartok@novell.com>
16930         * Control.cs (ctor, CreateParams): Moved setting of is_visible
16931           forward so that anything that creates a window gets the default,
16932           also no longer uses Visible property in CreateParams to avoid
16933           walking up the parent chain and possibly get the wrong visible
16934           status. Fixed IsVisible to no longer walk up to the parent.
16936 2004-12-21  Peter Bartok  <pbartok@novell.com>
16938         * Form.cs (ShowDialog): Unset modality for the proper window
16940 2004-12-20  Peter Bartok  <pbartok@novell.com>
16942         * CommonDialog.cs: Initial check-in
16944 2004-12-20  Peter Bartok  <pbartok@novell.com>
16946         * Control.cs (Visible): Now uses the parent window instead of the
16947           client area window for the property
16949         * Form.cs
16950           - ShowDialog(): Now uses the proper window for modality
16951           - The default visibility state for the form parent is now false. This
16952             will prevent the user from seeing all the changes to the form and
16953             its controls before the application hits Application.Run()
16954           - Removed some stale commented out code
16956         * NativeWindow.cs:
16957           - Added FindWindow() method to have a method to check for existence
16958             of a window handle
16959           - Added ability to override default exception handling (for example
16960             when debugging with VS.Net; to do this the ExternalExceptionHandler
16961             define must be set
16962           - Removed some useless debug output
16964         * XplatUIX11.cs:
16965           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
16966             not working as expected
16967           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
16968             property to allow switching back to the modal window if focus is
16969             given to another one of our windows (Application Modal)
16970           - Now only sets override_redirect if we create a window
16971             without WS_CAPTION
16972           - Moved EventMask selection before mapping of newly created window
16973             so we can catch the map event as well
16974           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
16975           - Added various Atom related DllImports
16976           - Implemented Exit() method
16977           - .ctor() : No longer shows window if WS_VISIBLE is not defined
16978             in the CreateParams
16980         * MessageBox.cs: Now properly deals with the FormParent window by
16981           providing an override the FormParent CreateParams property to
16982           set as POPUP instead of OVERLAPPED window.
16984 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16986         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
16987         Minor code cleanup.
16989 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16990         
16991         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
16993 2004-12-18  Peter Bartok  <pbartok@novell.com>
16995         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
16996           implementing SetModal() method
16998 2004-12-18  Peter Bartok  <pbartok@novell.com>
17000         * X11Structs.cs (XGCValues): Fixed type of function element
17001         * XplatUI.cs: Added ScrollWindow() method
17002         * XplatUIDriver.cs: Added ScrollWindow() abstract
17003         * XplatUIWin32.cs: Implemented ScrollWindow() method
17004         * XplatUIX11.cs: Implemented ScrollWindow() method
17005         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
17007 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
17009         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
17010         Some more keyboard support (INCOMPLETE)
17012 2004-12-17  Peter Bartok  <pbartok@novell.com>
17014         * TextControl.cs:
17015         - Added color attribute to line tags.
17016         - Added color argument to all functions dealing with tags
17017         - Added color argument support to various functions
17018         - Fixed miss-calculation of baseline/shift in certain circumstances
17020         * TextBoxBase.cs: Added new color option to test code
17022 2004-12-17  Jackson Harper  <jackson@ximian.com>
17024         * TreeNode.cs:
17025         * MonthCalendar.cs: Signature fixes
17027 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
17029         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
17030         keyboard event moved it.  Create a new graphics context for each paint resolves this
17032 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
17034         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
17035         Make caret exist and go blink blink.  Initial keyboard support.
17036         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
17037         works.
17039 2004-12-17  Jackson Harper  <jackson@ximian.com>
17041         * XplatUIStructs.cs: Updated set of virtual keycodes.
17042         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
17044 2004-12-17  Jackson Harper  <jackson@ximian.com>
17046         * XplatUIX11.cs: Prune old keyboard code.
17048 2004-12-17  Jackson Harper  <jackson@ximian.com>
17050         * XplatUIX11.cs: When generating mouse wparams get the modifier
17051         keys from the ModifierKeys property.
17053 2004-12-17  Jackson Harper  <jackson@ximian.com>
17055         * X11Keyboard.cs: Send up/down input when generating
17056         messages. Remove some unused vars.
17058 2004-12-17  Jackson Harper  <jackson@ximian.com>
17060         * TabControl.cs:
17061         * TreeView.cs: get rid of warnings.
17063 2004-12-17  Jackson Harper  <jackson@ximian.com>
17065         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
17067 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
17069         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
17070           CheckedListBox.cs: Implementation
17072 2004-12-17  Peter Bartok  <pbartok@novell.com>
17074         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
17076 2004-12-16  Peter Bartok  <pbartok@novell.com>
17078         * TextControl.cs:
17079           - InsertCharAtCaret(): Fixed start pos fixup
17080           - CaretLine_get: No longer derives the line from the tag, the tag
17081             could be stale if lines in the document have been added or deleted
17082           - RebalanceAfterDelete(): Fixed bug in balancing code
17083           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
17084           - Line.Streamline(): Now can also elminate leading empty tags
17085           - DumpTree(): Added a few more tests and prevented exception on
17086             uninitialized data
17087           - Added Debug section for Combining lines
17088           - Delete(): Now copies all remaining properties of a line
17089           
17090         * TextBoxBase.cs:
17091           - Left mousebutton now sets the caret (and middle button still acts
17092             as formatting tester, which must go away soon)
17093           - Added Debug section for Deleting/Combining lines
17094           - Fixed calculations for UpdateView after Combining lines
17096 2004-12-16  Peter Bartok  <pbartok@novell.com>
17098         * TextControl.cs: Now properly aligns text on a baseline, using the
17099           new XplatUI.GetFontMetrics() method. Simplified several calculations
17100         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
17101           defined
17103 2004-12-16  Peter Bartok  <pbartok@novell.com>
17105         * XplatUI.cs: Added GetFontMetrics() method
17106         * XplatUIDriver.cs: Added GetFontMetrics() abstract
17107         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
17108           into libgdiplus, our private GetFontMetrics function
17109         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
17110         * XplatUIWin32.cs: Implemented GetFontMetrics() method
17112 2004-12-16  Jackson Harper  <jackson@ximain.com>
17114         * XplatUIStruct.cs: Add enum for dead keys
17115         * X11Keyboard.cs: Map and unmap dead keys.
17117 2004-12-16  Jackson Harper  <jackson@ximian.com>
17119         * X11Keyboard.cs: Detect and use the num lock mask.
17121 2004-12-16  Peter Bartok  <pbartok@novell.com>
17123         * Control.cs (CreateGraphics): Added check to make sure the
17124           handle of the window exists before calling Graphics.FromHwnd()
17126 2004-12-16  Peter Bartok  <pbartok@novell.com>
17128         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
17129           contains a lot of code that's not supposed to be there for the
17130           real thing, but required for developing/testing the textbox
17131           backend.
17133 2004-12-16  Peter Bartok  <pbartok@novell.com>
17135         * TextControl.cs:
17136         - Fixed Streamline method
17137         - Added FindTag method to Line
17138         - Added DumpTree method for debugging
17139         - Added DecrementLines() method for deleting lines
17140         - Fixed UpdateView to update the cursor to end-of-line on single-line
17141           updates
17142         - Added PositionCaret() method
17143         - Fixed MoveCaret(LineDown) to move into the last line, too
17144         - Added InsertChar overload
17145         - Fixed InsertChar tag offset calculations
17146         - Added DeleteChar() method
17147         - Added Combine() method for folding lines
17148         - Fixed Delete() method, no longer allocates wasted Line object and
17149           now copies all properties when swapping nodes
17150         - Delete() method now updates document line counter
17152 2004-12-15  Jackson Harper  <jackson@ximian.com>
17154         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
17155         * X11Keyboard.cs: Expose the currently selected modifier keys
17156         through a property.
17158 2004-12-15  Peter Bartok  <pbartok@novell.com>
17160         * TextControl.cs: Initial check-in. Still incomplete
17162 2004-12-15  Jackson Harper  <jackson@ximian.com>
17164         * TreeNode.cs:
17165         * TreeView.cs: Fix build on csc (second time today ;-))
17167 2004-12-15  Jackson Harper  <jackson@ximian.com>
17169         * TreeView.cs: Store the treenodes plus/minus box bounds when it
17170         is calculated and use this for click testing.
17171         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
17173 2004-12-15  Jackson Harper  <jackson@ximian.com>
17175         * TreeView.cs: Pass the nodes image index to the image list when
17176         drawing that image.
17178 2004-12-15  Jackson Harper  <jackson@ximian.com>
17180         * X11Keyboard.cs: Set messages hwnd.
17181         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
17182         post_message calls.
17184 2004-12-15  Jackson Harper  <jackson@ximian.com>
17186         * X11Keyboard.cs: Fix to compile with csc.
17187         
17188 2004-12-15  Jackson Harper  <jackson@ximian.com>
17190         * X11Structs.cs: Add key mask values
17191         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
17192         * X11Keyboard.cs: New file - Extrapolates and interpolates key
17193         down/up foo into WM_CHAR foo
17194         * KeyboardLayouts.cs: Common keyboard layouts
17195         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
17196         post messages into the main queue.
17198 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
17200         * Button.cs: implement ProcessMnemonic
17201         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
17202           brushes everytime
17203         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
17204         * ButtonBase.cs: Show HotkeyPrefix (not the &)
17206 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
17207         
17208         * MonthCalendar.cs: Implemented click-hold for next/previous month
17209           and date selection
17210           
17211 2004-12-11  Peter Bartok  <pbartok@novell.com>
17213         * X11Structs.cs:
17214           - Added XKeyboardState (moved from XplatUIX11.cs)
17215           - Added XCreateGC related enums and structures
17216           - Added GXFunction for XSetFunction
17218         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
17220         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
17221           CaretVisible() calls
17223         * ToolTip.cs: Added code to prevent stealing focus from app windows
17225         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
17226           DestroyCaret, SetCaretPos and CaretVisible)
17228         * XplatUIX11.cs:
17229           - Added implementation for caret functions
17230           - Moved hover variables into a struct, to make it a bit easier
17231             on the eyes and to debug
17232           - Removed XKeyboardState (moved to XplatUIX11.cs)
17233           - Moved Keyboard properties into the properties region
17235         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
17236           call to get a graphics context for our control
17238         * XplatUIOSX.cs: Added empty overrides for the new caret functions
17240         * TreeView.cs: Fixed bug. No matter what color was set it would always
17241           return SystemColors.Window
17243         * XplatUIWin32.cs: Implemented caret overrides
17245 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
17247         * ListBox.cs: fire events, implement missing methods and properties,
17248         sorting.
17250 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
17252         * MonthCalendar.cs: invalidation bug fixing
17253         * ThemeWin32Classic.cs: paint fixing
17255 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
17257         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
17258         prepare the CGContextRef there now.
17260 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
17262         * MonthCalendar.cs:
17263           - optimisationL only invalidate areas that have changed
17264         * ThemeWin32Classic.cs:
17265           - only paint parts that intersect with clip_area
17267 2004-12-09  Peter Bartok  <pbartok@novell.com>
17269         * Application.cs: Undid changes from r37004 which cause problems
17270         on X11
17272 2004-12-09  Ravindra  <rkumar@novell.com>
17274         * ToolBar.cs: Added support for displaying ContextMenu
17275         attached to a button on ToolBar.
17276         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
17277         property.
17279 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
17281         * Label.cs: autosize works in text change and removes unnecessary
17282         invalidate
17284 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
17286         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
17287         remove warnings
17289 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
17291         * XplatUIOSX.cs: Added mouse move/click/grab support
17292         Remove some debugging WriteLines not needed anymore.
17293         Add window resizing/positioning.
17294         Fix visibility on reparenting.
17296 2004-12-08  Peter Bartok  <pbartok@novell.com>
17298         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
17300 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
17302         * XplatUIOSX.cs: Initial checkin
17303         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
17305 2004-12-03  Ravindra <rkumar@novell.com>
17307         * ListView.cs: Added some keybindings and fixed scrolling.
17308         ScrollBars listen to ValueChanged event instead of Scroll
17309         Event. This would let us take care of all changes being
17310         done in the scrollbars' values programmatically or manually.
17311         * ListView.cs (CanMultiselect): Added a check for shift key.
17312         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
17313         * ListViewItem.cs (Clone): Fixed. We need to make a copy
17314         of ListViewSubItemCollection as well.
17316 2004-12-06  Peter Bartok <pbartok@novell.com>
17318         * Control.cs (Parent): Added check and exception to prevent
17319         circular parenting
17321 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
17323         * ListBox.cs: implemented clipping, selection single and multiple,
17324         bug fixing
17326 2004-12-03  Ravindra <rkumar@novell.com>
17328         * ListView.cs (ListView_KeyDown):
17329         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
17330         when CTRL key is pressed.
17331         * ListViewItem.cs (Selected): Fixed setting the property.
17333 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
17335         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
17337         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
17338         MinimizeBox, ShowInTaskbar, TopMost properties.
17340         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
17341         will be implemented).
17343 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
17345         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
17347         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
17348         tests.
17349         
17350         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
17351         
17352         * TreeView.cs: BackColor is Colors.Window.
17354 2004-12-01  Jackson Harper  <jackson@ximian.com>
17356         * TreeView.cs: When resizing the tree if the user is making it
17357         smaller we don't get expose events, so we need to handle adding
17358         the horizontal scrollbar in the size changed handler as well as
17359         the expose handler.
17361 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
17363         * DrawItemState.cs: fixes wrong enum values
17365 2004-12-01  Jackson Harper  <jackson@ximian.com>
17367         * TreeView.cs: Resize the hbar as well as the vbar on resize.
17369 2004-12-01  Jackson Harper  <jackson@ximian.com>
17371         * NodeLabelEditEventArgs.cs:
17372         * NodeLabelEditEventHandler.cs:
17373         * OpenTreeNodeEnumerator.cs:
17374         * TreeNode.cs:
17375         * TreeNodeCollection.cs:
17376         * TreeView.cs:
17377         * TreeViewAction.cs:
17378         * TreeViewCancelEventArgs.cs:
17379         * TreeViewCancelEventHandler.cs:
17380         * TreeViewEventArgs.cs:
17381         * TreeViewEventHandler.cs: Initial implementation.
17383 2004-12-01  Ravindra <rkumar@novell.com>
17385         * ListView.cs (CalculateListView): Fixed scrolling related
17386         calculations. Also, removed some debug statements from other
17387         places.
17388         * ListViewItem.cs: Changed access to 'selected' instance variable
17389         from private to internal.
17390         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
17392 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
17394         * ThemeWin32Classic.cs: remove cache of brush and pens for
17395         specific controls and use the global system, fixes scrollbutton
17396         bugs (for small sizes, disabled, etc)
17397         
17398         * ScrollBar.cs: does not show the thumb for very small controls
17399         (as MS) and allow smaller buttons that the regular size
17401 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
17403         * UpDownBase.cs: Add abstract methods for the interface.
17404         Add new virtual methods (need to be hooked up to TextEntry when it
17405         exists).
17406         Add override methods for most features.
17407         Computes the size, forces the height of the text entry.
17409         * NumericUpDown.cs: Put here the current testing code.
17411         * Set eol-style property on all files that do not have mixed line
17412         endings, to minimize the future problems.  There are still a few
17413         files with mixed endings, and someone should choose whether they
17414         want to move it or not.
17416 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
17418         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
17419         System.Colors
17420         
17421 2004-11-30  Ravindra <rkumar@novell.com>
17423         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
17424         drawing and replaced use of SystemColors by theme colors.
17425         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
17426         * ListView.cs (ListViewItemCollection.Add): Throw exception when
17427         same ListViewItem is being added more than once.
17429 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
17431         * MonthCalendar.cs:
17432           - ControlStyles love to make the control not flicker
17433           
17434 2004-11-30  Peter Bartok  <pbartok@novell.com>
17436         * CharacterCasing.cs: Added
17438 2004-11-29  Peter Bartok  <pbartok@novell.com>
17440         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17441           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
17442           I am removing these files as they conflict with already completed
17443           work. While it is fantastic to get contributions to MWF, I
17444           respectfully ask that everyone please coordinate their contributions
17445           through mono-winforms-list or #mono-winforms at this time. We're
17446           explicitly avoiding stubbing and don't want controls that don't have
17447           their basic functionality implemented in svn. Please also see
17448           http://www.mono-project.com/contributing/winforms.html
17451 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
17453         * Application.cs (ModalRun): Don't hang after exit.
17455         * Theme.cs: New TreeViewDefaultSize property.
17457         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
17458         with less hardcoded SystemColors constant.
17459         Implemented TreeViewDefaultSize.
17461         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17462         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
17465 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
17467         * MonthCalendar.cs:
17468           - Fix NextMonthDate and PrevMonthDate click moving calendar
17470 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17472         * MonthCalendar.cs:
17473           - Fix usage of ScrollChange Property when scrolling months
17475 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
17477         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
17478          - Fixes menu destroying
17479          - Support adding and removing items on already created menus
17481 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17483         * MonthCalendar.cs:
17484           - Re-worked all bolded dates handling to match win32
17485         * ThemeWin32Classic.cs:
17486           - Fixed rendering with bolded dates
17488 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
17490         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
17491         - Horizontal scroolbar
17492         - Multicolumn
17493         - Fixes
17496 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
17498         * MonthCalendar.cs:
17499           - Fix Usage of MaxSelectionCount from SelectionRange
17500           - Fixed Shift + Cursor Selection
17501           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
17502           - Fixed normal cursor selection to be compat with win32
17503           - Fixed Shift + Mouse Click selection
17505 2004-11-24  Peter Bartok <pbartok@novell.com>
17507         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
17508         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
17509         * XplatUIX11.cs:
17510           - CreatedKeyBoardMsg now updates keystate with Alt key
17511           - Added workaround for timer crash to CheckTimers, Jackson will
17512             develop a proper fix and check in later
17513           - Implemented DispatchMessage
17514           - Removed calling the native window proc from GetMessage (call
17515             now moved to DispatchMessage)
17517         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
17518           the keydata (Fixes bug #69831)
17520         * XplatUIWin32.cs:
17521           - (DispatchMessage): Switched to return IntPtr
17522           - Added DllImport for SetFocus
17524 2004-11-24  Ravindra <rkumar@novell.com>
17526         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
17527         background drawing.
17528         * ListViewItem.cs: Fixed various properties, calculations
17529         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
17530         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
17531         and some internal properties. Fixed MouseDown handler and Paint
17532         method.
17534 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17536         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
17538 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17540         * ContainerControl.cs: correct accidental check in of local changes
17542 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17544         * ThemeWin32Classic.cs:
17545                 - Fixed Drawing Last month in grid (sometimes not showing)
17546         * MonthCalendar.cs:
17547                 - Fixed title width calculation bug (makeing title small)
17549 2004-11-23  Peter Bartok <pbartok@novell.com>
17551         * XplatUIX11.cs:
17552           - Added generation of WM_MOUSEHOVER event
17553           - Added missing assignment of async_method atom
17554           - Fixed WM_ERASEBKGND; now only redraws the exposed area
17556 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17558         * ThemeWin32Classic.cs:
17559                 - Fixed Drawing of today circle when showtodaycircle not set
17560                 - fixed drawing of first and last month in the grid (gay dates)
17561         * MonthCalendar.cs:
17562                 - Fixed Drawing of today circle
17563                 - Fixed drawing of grady dates
17564                 - Fixed HitTest for today link when ShowToday set to false
17565                 - Fixed DefaultSize to obey ShowToday
17567 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17569         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
17570         * System.Windows.Forms/Theme.cs
17571         * MonthCalendar.cs: added for MonthCalendar
17572         * SelectionRange.cs: added for MonthCalendar
17573         * Day.cs: added for MonthCalendar: added for MonthCalendar
17574         * DateRangeEventArgs.cs: added for MonthCalendar
17575         * DateRangeEventHandler.cs: added for MonthCalendar
17577 2004-11-22  Ravindra <rkumar@novell.com>
17579         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
17580         property.
17582 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
17584         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
17585         event handler.
17586         
17587         * NumericUpDown.cs: Added new implementation.
17588         * UpDownBase.cs: Added new implementation.
17590         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
17591         implementations.
17592         
17593         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
17594         implementations.
17596         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
17597         methods.
17599 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
17601         * Timer.cs  (Dispose): Should call the base dispose when
17602         overriding.
17604 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17606         * ScrollBar.cs: updates thumb position when max, min or increment
17607         is changed
17609 2004-11-21  Ravindra <rkumar@novell.com>
17611         * ListView.cs: Implemented item selection, activation and
17612         column header style. Fixed properties to do a redraw, if
17613         required. Added support for MouseHover, DoubleClick, KeyDown
17614         and KeyUp event handling and some minor fixes.
17615         * ListViewItem.cs: Fixed constructor.
17616         * ThemeWin32Classic.cs: Improved drawing for ListView.
17618 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17620         * ThemeWin32Classic.cs: initial listbox drawing code
17621         * DrawMode.cs: new enumerator
17622         * ListControl.cs: stubbed class
17623         * ListBox.cs: initial implementation
17624         * Theme.cs: new methods definitions
17625         * SelectionMode.cs: new enumerator
17627 2004-11-17  Peter Bartok  <pbartok@novell.com>
17629         * XplatUIWin32.cs: Added double-click events to the class style
17630         * Control.cs (WndProc):
17631           - Added handling of click-count to MouseDown/ MouseUp events.
17632           - Added handling of middle and right mouse buttons
17633           - Removed old debug code
17635 2004-11-17  Jackson Harper  <jackson@ximian.com>
17637         * XplatUIX11.cs: Use the new Mono.Unix namespace.
17639 2004-11-17  Ravindra <rkumar@novell.com>
17641         * ListView.cs: Added event handling for MouseMove/Up/Down.
17642         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
17643         * ThemeWin32Classic.cs: We need to clear the graphics context and
17644         draw column header in a proper state.
17647 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
17649         *  Menu.cs: fixes signature
17651 2004-11-16  Peter Bartok  <pbartok@novell.com>
17653         * XplatUIX11.cs (GetMessage): Implemented generation of
17654           double click mouse messages
17656 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
17658         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
17659         not by menu
17661 2004-11-11  Peter Bartok  <pbartok@novell.com>
17663         * HandleData.cs: Added Visible property
17664         * XplatUIX11.cs (IsVisible): Now uses Visible property from
17665           HandleData
17666         * XplatUIX11.cs: Removed old debug leftovers
17667         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
17668         * Control.cs (WndProc): Removed old debug leftovers,
17669           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
17670           needed WM_SIZE handling
17672 2004-11-11  Jackson Harper  <jackson@ximian.com>
17674         * OwnerDrawPropertyBag.cs:
17675         * TreeViewImageIndexConverter.cs: Initial implementation
17677 2004-11-10  Jackson Harper  <jackson@ximian.com>
17679         * ThemeWin32Classic.cs:
17680         * TabControl.cs: instead of moving tabs by the slider pos just
17681         start drawing at the tab that is offset by the slider. This way
17682         scrolling always moves by exactly one tab.
17684 2004-11-10  Jackson Harper  <jackson@ximian.com>
17686         * TabControl.cs: You can only scroll left when the slider has
17687         already ben moved right.
17688         
17689 2004-11-10  Jackson Harper  <jackson@ximian.com>
17691         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
17692         the clip area.
17693         
17694 2004-11-10  Jackson Harper  <jackson@ximian.com>
17696         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
17697         clip area.
17698         
17699 2004-11-09  Jackson Harper  <jackson@ximian.com>
17701         * TabControl.cs (CalcXPos): New helper method so we can determine
17702         the proper place to start drawing vertical tabs.
17703         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
17704         
17705 2004-11-09  Jackson Harper  <jackson@ximian.com>
17707         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
17708         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
17709         and Bottom, left and right are illegal values for this and
17710         multiline is enabled when the alignment is set to left or right.
17711         (DrawTab): Each alignment block should draw the text itself now
17712         because Left requires special love. Also add rendering for Left
17713         aligned tabs.
17714         
17715 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
17717         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
17718         does not destroy the windows, removes debugging messages
17720 2004-11-09  jba  <jba-mono@optusnet.com.au>
17722         * ThemeWin32Classic.cs
17723         (DrawButtonBase): Fix verticle text rect clipping in windows
17724         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17725         rendering and incorrect text rect clipping
17726         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17727         rendering and incorrect text rect clipping
17728         
17729 2004-11-08  Jackson Harper  <jackson@ximian.com>
17731         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
17732         bottom when they are bottom aligned so the bottoms of the tabs get
17733         displayed.
17734         * TabControl.cs (DropRow): Move rows up instead of down when the
17735         tab control is bottom aligned.
17737 2004-11-08 13:59  pbartok
17739         * XplatUIX11.cs:
17740           - Added handling for various window styles
17741           - Added handling for popup windows
17742           - Added SetTopmost handling
17744 2004-11-08 13:55  pbartok
17746         * XplatUIWin32.cs:
17747           - Added argument to SetTopmost method
17748           - Fixed broken ClientToScreen function
17750 2004-11-08 13:53  pbartok
17752         * XplatUIStructs.cs:
17753           - Added missing WS_EX styles
17755 2004-11-08 13:53  pbartok
17757         * XplatUI.cs, XplatUIDriver.cs:
17758           - Added argument to SetTopmost
17760 2004-11-08 13:52  pbartok
17762         * X11Structs.cs:
17763           - Added XSetWindowAttributes structure
17764           - Improved XWindowAttributes structure
17765           - Added SetWindowValuemask enum
17766           - Added window creation arguments enum
17767           - Added gravity enum
17768           - Added Motif hints structure
17769           - Added various Motif flags and enums
17770           - Added PropertyMode enum for property functions
17772 2004-11-08 13:50  pbartok
17774         * Form.cs:
17775           - Fixed arguments for updated SetTopmost method
17777 2004-11-08 13:49  pbartok
17779         * ToolTip.cs:
17780           - Fixed arguments for updated SetTopmost function
17781           - Fixed usage of PointToClient
17783 2004-11-08 13:44  pbartok
17785         * MenuAPI.cs:
17786           - Added Clipping of children and siblings
17788 2004-11-08 13:41  pbartok
17790         * MainMenu.cs:
17791           - Removed SetMenuBarWindow call. We do this in Form.cs
17793 2004-11-08 13:40  jackson
17795         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
17796           scrolling jimmi in the correct location with bottom aligned tabs
17798 2004-11-08 13:36  pbartok
17800         * ContainerControl.cs:
17801           - Implemented BindingContext
17802           - Implemented ParentForm
17804 2004-11-08 12:46  jackson
17806         * TabControl.cs: Put bottom rendered tabs in the right location
17808 2004-11-08 07:15  jordi
17810         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
17811           removes dead code
17813 2004-11-05 17:30  jackson
17815         * TabControl.cs: When selected tabs are expanded make sure they
17816           don't go beyond the edges of the tab control
17818 2004-11-05 14:57  jackson
17820         * TabControl.cs: Reset show_slider so if the control is resized to
17821           a size where it is no longer needed it's not displayed anymore
17823 2004-11-05 13:16  jackson
17825         * TabControl.cs: Make tab pages non visible when added to the
17826           control
17828 2004-11-05 12:42  jackson
17830         * TabControl.cs: Implement SizeMode.FillToRight
17832 2004-11-05 12:16  jackson
17834         * Control.cs: Do not call CreateHandle if the handle is already
17835           created
17837 2004-11-05 11:46  jackson
17839         * TabControl.cs: Remove superflous call to CalcTabRows
17841 2004-11-05 09:07  jackson
17843         * XplatUIX11.cs: Update for Mono.Posix changes
17845 2004-11-05 07:00  ravindra
17847         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
17848           scrolling.
17850 2004-11-04 22:47  jba
17852         * ThemeWin32Classic.cs:
17853           - Fix Button rendering for FlatStyle = Flat or Popup
17854           - Fix RadioButton and CheckBox rendering when Appearance = Button
17855             (normal and flatstyle).
17856           - Correct outer rectangle color when drawing focus rectangle
17857           - Adjust button bounds to be 1 px smaller when focused
17858           - Make button not draw sunken 3d border when pushed (windows compat)
17859           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
17860           - Offset the text in RadioButton and Checkbox when being rendered as
17861           a button.
17862           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
17863           radiobuttons
17864           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
17865           - Fixed disabled text rendering for normally rendered radiobuttons
17867 2004-11-04 10:26  jackson
17869         * TabControl.cs: Recalculate tab rows when resizing
17871 2004-11-04 07:47  jordi
17873         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
17874           collection completion, drawing issues, missing features
17876 2004-11-04 05:03  ravindra
17878         * ScrollBar.cs:
17879                 - We need to recalculate the Thumb area when
17880                 LargeChange/maximum/minimum values are changed.
17881           - We set the 'pos' in UpdatePos() method to minimum, if it's less
17882                 than minimum. This is required to handle the case if large_change is
17883                 more than max, and use LargeChange property instead of large_change
17884                 variable.
17885           - We return max+1 when large_change is more than max, like MS does.
17887 2004-11-04 04:29  ravindra
17889         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
17890                 - Changed default value signatures (prefixed all with ListView).
17891                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
17892                 ListView.
17893           - Fixed calculations for ListViewItem and implemented Clone()
17894           method.
17896 2004-11-04 04:26  ravindra
17898         * Theme.cs, ThemeWin32Classic.cs:
17899                 - Changed default ListView values signatures (prefixed all with
17900                 ListView).
17901           - Fixed default size values for VScrollBar and HScrollBar.
17902                 - Fixed DrawListViewItem method.
17904 2004-11-04 04:05  ravindra
17906         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
17908 2004-11-04 04:04  ravindra
17910         * ImageList.cs: Implemented the missing overload for Draw method.
17912 2004-11-03 19:29  jackson
17914         * TabControl.cs: Handle dropping rows on selection properly
17916 2004-11-03 11:59  jackson
17918         * TabControl.cs: remove debug code
17920 2004-11-03 11:52  jackson
17922         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
17923           the scrolly widgerywoo
17925 2004-11-02 13:52  jackson
17927         * TabControl.cs: Resize the tab pages and tabs when the tab control
17928           is resized
17930 2004-11-02 13:40  jackson
17932         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
17933           selected tab to the bottom
17935 2004-11-02 13:39  jackson
17937         * TabPage.cs: Store the tab pages row
17939 2004-11-02 12:33  jordi
17941         * MenuItem.cs: fixes handle creation
17943 2004-11-02 11:42  jackson
17945         * TabControl.cs: signature fix
17947 2004-11-02 08:56  jackson
17949         * TabControl.cs: Calculate whether the tab is on an edge properly.
17950           Remove top secret debugging code
17952 2004-11-01 19:57  jackson
17954         * TabControl.cs: Add click handling, and proper sizing
17956 2004-11-01 19:47  jackson
17958         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
17959           tab controls
17961 2004-11-01 19:39  jackson
17963         * TabPage.cs: add internal property to store the bounds of a tab
17964           page
17966 2004-10-30 04:23  ravindra
17968         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
17969           values.
17971 2004-10-30 04:21  ravindra
17973         * ListView.cs, ListViewItem.cs: Added support for scrolling and
17974           fixed calculations.
17976 2004-10-30 03:06  pbartok
17978         * XplatUIX11.cs:
17979           - Removed extension of DllImported libs
17981 2004-10-29 09:55  jordi
17983         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
17984           navigation, itemcollection completion, menu fixes
17986 2004-10-27 22:58  pbartok
17988         * XplatUIX11.cs:
17989           - Now throws a nice error message when no X display could be opened
17991 2004-10-26 13:51  jordi
17993         * ListView.cs: removes warning
17995 2004-10-26 03:55  ravindra
17997         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
17998           ThemeWin32Classic.cs: Some formatting for my last checkins.
18000 2004-10-26 03:36  ravindra
18002         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
18003           control and default values.
18005 2004-10-26 03:35  ravindra
18007         * Theme.cs: Added some default values for ListView control.
18009 2004-10-26 03:33  ravindra
18011         * ToolBar.cs: ToolBar should use the user specified button size, if
18012           there is any. Added a size_specified flag for the same.
18014 2004-10-26 03:33  ravindra
18016         * ColumnHeader.cs: Added some internal members and calculations for
18017           ColumnHeader.
18019 2004-10-26 03:32  ravindra
18021         * ListViewItem.cs: Calculations for ListViewItem.
18023 2004-10-26 03:31  ravindra
18025         * ListView.cs: Added some internal members and calculations for
18026           ListView.
18028 2004-10-22 13:31  jordi
18030         * MenuAPI.cs: speedup menus drawing
18032 2004-10-22 13:16  jackson
18034         * XplatUIX11.cs: Make sure to update exposed regions when adding an
18035           expose event
18037 2004-10-22 11:49  jackson
18039         * Control.cs: oops
18041 2004-10-22 11:41  jackson
18043         * Control.cs: Check to see if the window should have its background
18044           repainted by X when drawing.
18046 2004-10-22 11:31  jackson
18048         * XplatUIX11.cs: When invalidating areas only use XClearArea if
18049           clear is true, this way we do not get flicker from X repainting the
18050           background
18052 2004-10-22 11:28  jackson
18054         * XEventQueue.cs: Queue properly
18056 2004-10-21 09:38  jackson
18058         * XEventQueue.cs: Fix access modifier
18060 2004-10-21 09:36  jackson
18062         * XEventQueue.cs: Don't loose messages
18064 2004-10-21 09:22  jackson
18066         * XEventQueue.cs: Don't loose messages
18068 2004-10-20 04:15  jordi
18070         * BootMode.cs: enum need it by SystemInfo
18072 2004-10-19 21:58  pbartok
18074         * XplatUIWin32.cs:
18075           - Small sanity check
18077 2004-10-19 21:56  pbartok
18079         * Form.cs:
18080           - Added private FormParentWindow class which acts as the container
18081             for our form and as the non-client area where menus are drawn
18082           - Added/Moved required tie-ins to Jordi's menus
18083           - Fixed/Implemented the FormStartPosition functionality
18085 2004-10-19 21:52  pbartok
18087         * Control.cs:
18088           - Removed unneeded locals
18089           - Added code to all size and location properties to understand and
18090             deal with the parent container of Form
18092 2004-10-19 21:33  pbartok
18094         * Application.cs:
18095           - Fixed to deal with new Form subclasses for menus
18097 2004-10-19 17:48  jackson
18099         * XEventQueue.cs: commit correct version of file
18101 2004-10-19 16:50  jackson
18103         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
18105 2004-10-19 16:15  jordi
18107         * MenuAPI.cs: MenuBarCalcSize returns the height
18109 2004-10-19 08:31  pbartok
18111         * Control.cs:
18112           - Added missing call to PreProcessMessage before calling OnXXXKey
18113           methods
18115 2004-10-19 00:04  ravindra
18117         * ToolTip.cs: Fixed constructor.
18119 2004-10-18 09:31  jordi
18121         * MenuAPI.cs: menuitems in menubars do not have shortcuts
18123 2004-10-18 09:26  jordi
18125         * MenuItem.cs: fixes MenuItem class signature
18127 2004-10-18 08:56  jordi
18129         * MenuAPI.cs: prevents windows from showing in the taskbar
18131 2004-10-18 00:28  ravindra
18133         * ToolTip.cs: Suppressed a warning message.
18135 2004-10-18 00:27  ravindra
18137         * Control.cs: Default value of visible property must be true.
18139 2004-10-17 23:19  pbartok
18141         * ToolTip.cs:
18142           - Complete implementation
18144 2004-10-17 23:19  pbartok
18146         * XplatUIX11.cs:
18147           - Added EnableWindow method
18148           - Added SetModal stub
18149           - Added generation of WM_ACTIVATE message (still needs testing)
18150           - Added SetTopMost stub
18151           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
18153 2004-10-17 23:17  pbartok
18155         * XplatUIWin32.cs:
18156           - Removed VirtualKeys to XplatUIStructs
18157           - Implemented SetTopMost method
18158           - Implemented EnableWindow method
18159           - Bugfix in ScreenToClient()
18160           - Bugfixes in ClientToScreen()
18162 2004-10-17 22:51  pbartok
18164         * XplatUIStructs.cs:
18165           - Added WS_EX styles to WindowStyles enumeration
18167 2004-10-17 22:50  pbartok
18169         * XplatUI.cs, XplatUIDriver.cs:
18170           - Added method for enabling/disabling windows
18171           - Added method for setting window modality
18172           - Added method for setting topmost window
18174 2004-10-17 22:49  pbartok
18176         * ThemeWin32Classic.cs:
18177           - Added ToolTip drawing code
18179 2004-10-17 22:49  pbartok
18181         * Theme.cs:
18182           - Added ToolTip abstracts
18184 2004-10-17 22:47  pbartok
18186         * Form.cs:
18187           - Fixed Form.ControlCollection to handle owner relations
18188           - Added Owner/OwnedForms handling
18189           - Implemented Z-Ordering for owned forms
18190           - Removed unneeded private overload of ShowDialog
18191           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
18192             so I hope)
18193           - Fixed Close(), had wrong default
18194           - Added firing of OnLoad event
18195           - Added some commented out debug code for Ownership handling
18197 2004-10-17 22:16  pbartok
18199         * Control.cs:
18200           - Fixed/implemented flat list of controls
18202 2004-10-17 22:14  pbartok
18204         * Application.cs:
18205           - Added code to simulate modal dialogs on Win32
18207 2004-10-17 16:11  jordi
18209         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
18210           mouse event
18212 2004-10-17 13:39  jordi
18214         * MenuAPI.cs: menu drawing fixes
18216 2004-10-15 09:10  ravindra
18218         * StructFormat.cs: General Enum.
18220 2004-10-15 09:09  ravindra
18222         * SizeGripStyle.cs: Enum for Form.
18224 2004-10-15 09:08  ravindra
18226         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
18227           in Theme for ListView.
18229 2004-10-15 09:06  ravindra
18231         * ColumnHeader.cs: Flushing some formatting changes.
18233 2004-10-15 09:05  ravindra
18235         * ListViewItem.cs: Implemented GetBounds method and fixed coding
18236           style.
18238 2004-10-15 09:03  ravindra
18240         * ListView.cs: Implemented Paint method and fixed coding style.
18242 2004-10-15 07:34  jordi
18244         * MenuAPI.cs: fix for X11
18246 2004-10-15 07:32  ravindra
18248         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
18249                 - Renamed Paint() method to Draw() for clarity. Also, moved
18250                 DrawImage() to OnPaint().
18252 2004-10-15 07:25  ravindra
18254         * CheckBox.cs, RadioButton.cs:
18255                 - Removed Redraw (), we get it from ButtonBase.
18256                 - Implemented Paint (), to do class specific painting.
18258 2004-10-15 07:16  ravindra
18260         * ButtonBase.cs:
18261                 - Redraw () is not virtual now.
18262                 - Added an internal virtual method Paint (), so that
18263                 derived classes can do their painting on their own.
18264                 - Modified OnPaint () to call Paint ().
18266 2004-10-15 06:43  jordi
18268         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
18269           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
18271 2004-10-15 00:30  ravindra
18273         * MessageBox.cs:
18274                 - MessageBox on windows does not have min/max buttons.
18275                 This change in CreateParams fixes this on Windows. We
18276                 still need to implement this windowstyle behavior in
18277                 our X11 driver.
18279 2004-10-14 05:14  ravindra
18281         * ToolBar.cs:
18282                 - Changed Redraw () to do a Refresh () always.
18283                 - Fixed the MouseMove event handling when mouse is pressed,
18284                 ie drag event handling.
18285                 - Replaced the usage of ToolBarButton.Pressed property to
18286                 ToolBarButton.pressed internal variable.
18288 2004-10-14 05:10  ravindra
18290         * ToolBarButton.cs:
18291                 - Added an internal member 'inside' to handle mouse move
18292                 with mouse pressed ie mouse drag event.
18293                 - Changed 'Pressed' property to return true only when
18294                 'inside' and 'pressed' are both true.
18295                 - Some coding style love.
18297 2004-10-14 00:17  ravindra
18299         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
18300           public method.
18302 2004-10-14 00:15  ravindra
18304         * ButtonBase.cs: Redraw () related improvements.
18306 2004-10-14 00:14  ravindra
18308         * MessageBox.cs: Moved InitFormSize () out of Paint method and
18309           removed unnecessary calls to Button.Show () method.
18311 2004-10-13 17:50  pbartok
18313         * XplatUIX11.cs:
18314           - Formatting fix
18315           - Removed destroying of window until we solve the problem of X
18316             destroying the window before us on shutdown
18318 2004-10-13 16:32  pbartok
18320         * ButtonBase.cs:
18321           - Now Redraws on MouseUp for FlatStyle Flat and Popup
18323 2004-10-13 14:18  pbartok
18325         * XplatUIX11.cs:
18326           - Added code to destroy the X window
18328 2004-10-13 14:18  pbartok
18330         * XplatUIWin32.cs:
18331           - Added code to destroy a window
18333 2004-10-13 14:12  pbartok
18335         * ButtonBase.cs:
18336           - Added the Redraw on Resize that got dropped in the last rev
18338 2004-10-13 09:06  pbartok
18340         * ThemeWin32Classic.cs:
18341           - Path from John BouAntoun:
18342             * Fix check rendering (centre correctly for normal style, offset
18343               correctly for FlatStyle).
18344             * Fix border color usage (use backcolor) for FlatStyle.Popup
18345             * Use checkbox.Capture instead of checkbox.is_pressed when
18346               rendering flatstyle states.
18348 2004-10-12 21:48  pbartok
18350         * ThemeWin32Classic.cs:
18351           - Removed all occurences of SystemColors and replaced them with the
18352             matching theme color
18354 2004-10-12 21:41  pbartok
18356         * ThemeWin32Classic.cs:
18357           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
18358             him using the function for flatstyle drawing
18359           - Changed functions to use the new version of CPDrawBorder3D
18361 2004-10-12 21:15  pbartok
18363         * ControlPaint.cs:
18364           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
18365             match MS documentation. They need to return defined colors if the
18366             passed color matches the configured control color. Thanks to John
18367             BouAntoun for pointing this out.
18369 2004-10-12 20:57  pbartok
18371         * Control.cs:
18372           - Fix from John BouAntoun: Raise ForeColorChanged event when text
18373             color is changed
18375 2004-10-12 20:46  pbartok
18377         * CheckBox.cs:
18378           - Fix from John BouAntoun: Now properly sets the Appearance property
18380 2004-10-12 20:45  pbartok
18382         * ThemeWin32Classic.cs:
18383           - Fixes from John BouAntoun: now handles forecolors and backcolors
18384             for flatstyle rendered controls much better; It also fixes normal
18385             checkbox rendering when pushed or disabled.
18387 2004-10-08 02:50  jordi
18389         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
18390           work
18392 2004-10-07 08:56  jordi
18394         * ThemeWin32Classic.cs: Removes deletion of cached brushes
18396 2004-10-06 03:59  jordi
18398         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
18399           XplatUIWin32.cs: removes warnings from compilation
18401 2004-10-05 12:23  jackson
18403         * RadioButton.cs: Fix ctor
18405 2004-10-05 11:10  pbartok
18407         * MessageBox.cs:
18408           - Partial implementation by Benjamin Dasnois
18410 2004-10-05 10:15  jackson
18412         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
18413           by John BouAntoun
18415 2004-10-05 03:07  ravindra
18417         * ToolBar.cs:
18418                 - Removed a private method, Draw ().
18419                 - Fixed the ButtonDropDown event handling.
18420                 - Fixed MouseMove event handling.
18422 2004-10-05 03:04  ravindra
18424         * ThemeWin32Classic.cs:
18425                 - Added DrawListView method and ListViewDefaultSize property.
18426                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
18427                 - Changed DOS style CRLF to Unix format (dos2unix).
18429 2004-10-05 03:03  ravindra
18431         * Theme.cs:
18432                 - Added DrawListView method and ListViewDefaultSize property.
18434 2004-10-05 02:42  ravindra
18436         * ToolBarButton.cs: Added an internal member dd_pressed to handle
18437           clicks on DropDown arrow.
18439 2004-10-04 22:56  jackson
18441         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
18442           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
18443           Control handle the buffers, derived classes should not have to
18444           CreateBuffers themselves.
18446 2004-10-04 21:20  jackson
18448         * StatusBar.cs: The control handles resizing the buffers now.
18450 2004-10-04 21:18  jackson
18452         * Control.cs: When resizing the buffers should be invalidated. This
18453           should be handled in Control not in derived classes.
18455 2004-10-04 14:45  jackson
18457         * TabPage.cs: oops
18459 2004-10-04 02:14  pbartok
18461         * LeftRightAlignment.cs:
18462           - Initial check-in
18464 2004-10-04 01:09  jordi
18466         * ThemeWin32Classic.cs: fixes right button position causing right
18467           button not showing on horizontal scrollbars
18469 2004-10-02 13:12  pbartok
18471         * XplatUIX11.cs:
18472           - Simplified the Invalidate method by using an X call instead of
18473             generating the expose ourselves
18474           - Added an expose when the window background is changed
18475           - Implemented ClientToScreen method
18477 2004-10-02 13:08  pbartok
18479         * XplatUIWin32.cs:
18480           - Added Win32EnableWindow method (test for implementing modal
18481           dialogs)
18482           - Added ClientToScreen method and imports
18484 2004-10-02 13:07  pbartok
18486         * XplatUI.cs, XplatUIDriver.cs:
18487           - Added ClientToScreen coordinate translation method
18489 2004-10-02 13:06  pbartok
18491         * KeyPressEventArgs.cs:
18492           - Fixed access level for constructor
18494 2004-10-02 13:06  pbartok
18496         * NativeWindow.cs:
18497           - Changed access level for the window_collection hash table
18499 2004-10-02 13:05  pbartok
18501         * Form.cs:
18502           - Added KeyPreview property
18503           - Added Menu property (still incomplete, pending Jordi's menu work)
18504           - Implemented ProcessCmdKey
18505           - Implemented ProcessDialogKey
18506           - Implemented ProcessKeyPreview
18508 2004-10-02 13:02  pbartok
18510         * Control.cs:
18511           - Added private method to get the Control object from the window
18512           handle
18513           - Implemented ContextMenu property
18514           - Implemented PointToScreen
18515           - Implemented PreProcessMessage
18516           - Implemented IsInputChar
18517           - Implemented IsInputKey
18518           - Implemented ProcessCmdKey
18519           - Completed ProcessKeyEventArgs
18520           - Fixed message loop to call the proper chain of functions on key
18521           events
18522           - Implemented ProcessDialogChar
18523           - Implemented ProcessDialogKey
18524           - Implemented ProcessKeyMessage
18525           - Implemented ProcessKeyPreview
18526           - Added RaiseDragEvent stub (MS internal method)
18527           - Added RaiseKeyEvent stub (MS internal method)
18528           - Added RaiseMouseEvent stub (MS Internal method)
18529           - Added RaisePaintEvent stub (MS Internal method)
18530           - Added ResetMouseEventArgs stub (MS Internal method)
18531           - Implemented RtlTranslateAlignment
18532           - Implemented RtlTranslateContent
18533           - Implemented RtlTranslateHorizontal
18534           - Implemented RtlTranslateLeftRight
18535           - Added generation of KeyPress event
18537 2004-10-02 05:57  ravindra
18539         * ListViewItem.cs: Added attributes.
18541 2004-10-02 05:32  ravindra
18543         * ListView.cs: Added attributes.
18545 2004-10-01 11:53  jackson
18547         * Form.cs: Implement the Close method so work on MessageBox can
18548           continue.
18550 2004-09-30 14:06  pbartok
18552         * XplatUIX11.cs:
18553           - Bug fixes
18555 2004-09-30 11:34  jackson
18557         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
18559 2004-09-30 07:26  ravindra
18561         * ListViewItemConverter.cs: Converter for ListViewItem.
18563 2004-09-30 07:26  ravindra
18565         * SortOrder.cs: Enum for ListView control.
18567 2004-09-30 07:25  ravindra
18569         * ColumnHeader.cs: Supporting class for ListView control.
18571 2004-09-30 07:24  ravindra
18573         * ListView.cs, ListViewItem.cs: Initial implementation.
18575 2004-09-30 07:20  ravindra
18577         * ItemActivation.cs: Enum for ListView Control.
18579 2004-09-29 20:29  pbartok
18581         * XplatUIX11.cs:
18582           - Added lookup of pixel value for background color; tries to get a
18583             color 'close' to the requested color, it avoids having to create a
18584             colormap.  Depending on the display this could mean the used color
18585             is slightly off the desired color. Might have to change it to a more
18586             resource intensive colormap approach, but it will work as a
18587           workaround to avoid red screens.
18589 2004-09-29 14:27  jackson
18591         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
18593 2004-09-28 12:44  pbartok
18595         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
18596           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
18597           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
18598           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
18599           TrackBar.cs, VScrollBar.cs:
18600           - Streamlined Theme interfaces:
18601             * Each DrawXXX method for a control now is passed the object for
18602               the control to be drawn in order to allow accessing any state the
18603               theme might require
18605             * ControlPaint methods for the theme now have a CP prefix to avoid
18606               name clashes with the Draw methods for controls
18608             * Every control now retrieves it's DefaultSize from the current
18609             theme
18611 2004-09-28 12:17  jackson
18613         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
18614           drawing
18616 2004-09-24 14:57  jackson
18618         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
18619           Gives us a nice little performance boost.
18621 2004-09-24 12:02  jackson
18623         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
18624           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
18625           Control and supporting classes. Initial checkin
18627 2004-09-23 13:08  jackson
18629         * Form.cs: Temp build fixage
18631 2004-09-23 01:39  ravindra
18633         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
18634           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
18635           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
18636           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
18637           EventHandlers needed by ListView Control.
18639 2004-09-22 14:12  pbartok
18641         * ScrollableControl.cs:
18642           - Implemented DockPadding property
18643           - Implemented AutoScroll property
18644           - Implemented AutoScrollMargin property
18645           - Implemented AutoScrollMinSize property
18646           - Implemented AutoScrollPosition property
18647           - Implemented DisplayRectangle property (still incomplete)
18648           - Implemented CreateParams property
18649           - Implemented HScroll property
18650           - Implemented VScroll property
18651           - Implemented OnVisibleChanged property
18653 2004-09-22 14:09  pbartok
18655         * Form.cs:
18656           - Added Form.ControllCollection class
18657           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
18658             RemoveOwnedForm (still incomplete, missing on-top and common
18659             minimize/maximize behaviour)
18660           - Added StartPosition property (still incomplete, does not use when
18661             creating the form)
18662           - Added ShowDialog() methods (still incomplete, missing forcing the
18663             dialog modal)
18665 2004-09-22 14:05  pbartok
18667         * Application.cs:
18668           - Added message loop for modal dialogs
18670 2004-09-22 14:02  pbartok
18672         * GroupBox.cs:
18673           - Fixed wrong types for events
18675 2004-09-22 14:00  pbartok
18677         * Shortcut.cs, FormWindowState.cs:
18678           - Fixed wrong values
18680 2004-09-22 12:01  jackson
18682         * Control.cs: Text is never null
18684 2004-09-20 22:14  pbartok
18686         * XplatUIWin32.cs:
18687           - Fixed accessibility level for Idle handler
18689 2004-09-20 18:54  jackson
18691         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18692           XplatUIX11.cs: New message loop that uses poll so we don't get a
18693           busy loop
18695 2004-09-17 10:43  pbartok
18697         * ScrollBar.cs:
18698           - Fixed behaviour of arrow buttons. Now properly behaves like
18699             Buttons (and like Microsoft's scrollbar arrow buttons)
18701 2004-09-17 10:14  pbartok
18703         * ScrollBar.cs:
18704           - Added missing release of keyboard/mouse capture
18706 2004-09-17 06:18  jordi
18708         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
18709           Theme.cs: Very early menu support
18711 2004-09-16 17:45  pbartok
18713         * XplatUIWin32.cs:
18714           - Fixed sending a window to the front
18715           - Added overload for SetWindowPos to avoid casting
18717 2004-09-16 17:44  pbartok
18719         * Control.cs:
18720           - Added SendToBack and BringToFront methods
18722 2004-09-16 07:00  ravindra
18724         * Copyright: Added Novell URL.
18726 2004-09-16 07:00  ravindra
18728         * ToolBar.cs: Invalidate should be done before redrawing.
18730 2004-09-15 21:19  ravindra
18732         * ColumnHeaderStyle.cs: Enum for ListView Control.
18734 2004-09-15 21:18  ravindra
18736         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
18737           ListView Control.
18739 2004-09-13 18:26  jackson
18741         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
18742           properly
18744 2004-09-13 18:13  jackson
18746         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
18747           a second thread and post messages into the main threads message
18748           queue. This makes timing much more consistent. Both win2K and XP
18749           have a minimum timer value of 15 milliseconds, so we now do this
18750           too.
18752 2004-09-13 15:18  pbartok
18754         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18755           XplatUIX11.cs:
18756           - Added Z-Ordering methods
18758 2004-09-13 10:56  pbartok
18760         * Form.cs:
18761           - Fixed #region names
18762           - Moved properties and methods into their proper #regions
18764 2004-09-13 10:51  pbartok
18766         * Form.cs:
18767           - Added Accept and CancelButton properties
18768           - Added ProcessDialogKey() method
18770 2004-09-13 08:18  pbartok
18772         * IWindowTarget.cs:
18773           - Initial check-in
18775 2004-09-10 21:50  pbartok
18777         * Control.cs:
18778           - Added DoDragDrop() [incomplete]
18779           - Properly implemented 'Visible' handling
18780           - Added SetVisibleCore()
18781           - Implemented FindChildAtPoint()
18782           - Implemented GetContainerControl()
18783           - Implemented Hide()
18785 2004-09-10 19:28  pbartok
18787         * Control.cs:
18788           - Moved methods into their appropriate #regions
18789           - Reordered methods within regions alphabetically
18791 2004-09-10 18:57  pbartok
18793         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18794           - Added method to retrieve text from window
18796 2004-09-10 18:56  pbartok
18798         * Control.cs:
18799           - Moved some internal functions into the internal region
18800           - Implemented FontHeight
18801           - Implemented RenderRightToLeft
18802           - Implemented ResizeRedraw
18803           - Implemented ShowFocusCues
18804           - Implemented ShowKeyboardCues
18805           - Implemented FromChildHandle
18806           - Implemented FromHandle
18807           - Implemented IsMnemonic
18808           - Implemented ReflectMessage
18809           - All public and protected Static Methods are now complete
18811 2004-09-10 16:54  pbartok
18813         * Control.cs:
18814           - Implemented remaining missing public instance properties
18815           - Alphabetized some out of order properties
18817 2004-09-10 05:51  ravindra
18819         * PictureBox.cs: Added a check for null image.
18821 2004-09-10 00:59  jordi
18823         * GroupBox.cs: remove cvs tag
18825 2004-09-09 05:25  ravindra
18827         * ToolBar.cs: Make redraw accessible from ToolBarButton.
18829 2004-09-09 05:23  ravindra
18831         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
18832           parent redraw.
18834 2004-09-09 02:28  pbartok
18836         * ThemeWin32Classic.cs:
18837           - Improve disabled string look
18839 2004-09-09 01:15  jordi
18841         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
18842           args and handler
18844 2004-09-08 23:56  ravindra
18846         * ItemBoundsPortion.cs: It's enum, not a class!
18848 2004-09-08 23:47  ravindra
18850         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
18851           Enums for Form.
18853 2004-09-08 21:13  ravindra
18855         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
18856           ListView control.
18858 2004-09-08 21:03  ravindra
18860         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
18861           avoid crash.
18863 2004-09-08 21:01  ravindra
18865         * ScrollableControl.cs: Removed unreachable code.
18867 2004-09-08 06:45  jordi
18869         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
18871 2004-09-08 01:00  jackson
18873         * XplatUIX11.cs: Only run the timers when updating the message
18874           queue. This effectively gives X messages a higher priority then
18875           timer messages. Timers still need love though
18877 2004-09-07 14:01  jackson
18879         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
18880           this for us and the handle is no longer valid.
18882 2004-09-07 13:59  jackson
18884         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
18885           loop that manages to not crash. TODO: Add poll and cleanup timers
18887 2004-09-07 11:12  jordi
18889         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
18891 2004-09-07 03:40  jordi
18893         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
18894           fixes, methods, multiple links
18896 2004-09-06 06:55  jordi
18898         * Control.cs: Caches ClientRectangle rectangle value
18900 2004-09-05 02:03  jordi
18902         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
18903           certain situations
18905 2004-09-04 11:10  jordi
18907         * Label.cs: Refresh when font changed
18909 2004-09-02 16:24  pbartok
18911         * Control.cs:
18912           - Added sanity check to creation of double buffer bitmap
18914 2004-09-02 16:24  pbartok
18916         * ButtonBase.cs:
18917           - Fixed selection of text color
18918           - Fixed handling of resize event; now properly recreates double
18919             buffering bitmap
18920           - Added missing assignment of TextAlignment
18921           - Added proper default for TextAlignment
18923 2004-09-02 14:26  pbartok
18925         * RadioButton.cs:
18926           - Added missing RadioButton.RadioButtonAccessibleObject class
18928 2004-09-02 14:26  pbartok
18930         * Control.cs:
18931           - Added missing Control.ControlAccessibleObject class
18932           - Started to implement Select()ion mechanisms, still very incomplete
18934 2004-09-02 14:25  pbartok
18936         * AccessibleObject.cs:
18937           - Added missing methods
18939 2004-09-02 14:23  pbartok
18941         * AccessibleNavigation.cs, AccessibleSelection.cs:
18942           - Initial check-in
18944 2004-09-02 10:32  jordi
18946         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
18947           pool for pens, brushes, and hatchbruses
18949 2004-09-01 15:30  jackson
18951         * StatusBar.cs: Fix typo
18953 2004-09-01 14:44  pbartok
18955         * RadioButton.cs:
18956           - Fixed state
18958 2004-09-01 14:39  pbartok
18960         * Button.cs, RadioButton.cs:
18961           - Functional initial check-in
18963 2004-09-01 14:01  pbartok
18965         * CheckBox.cs:
18966           - Added missing default
18967           - Added missing region mark
18969 2004-09-01 09:10  jordi
18971         * Label.cs: fixes method signatures, new methods, events, fixes
18972           autosize
18974 2004-09-01 07:19  jordi
18976         * Control.cs: Init string variables with an empty object
18978 2004-09-01 04:20  jordi
18980         * Control.cs: fires OnFontChanged event
18982 2004-08-31 20:07  pbartok
18984         * ButtonBase.cs:
18985           - Enabled display of strings
18987 2004-08-31 20:05  pbartok
18989         * Form.cs:
18990           - Added (partial) implementation of DialogResult; rest needs to be
18991             implemented when the modal loop code is done
18993 2004-08-31 19:55  pbartok
18995         * CheckBox.cs:
18996           - Fixed to match the removal of the needs_redraw concept
18998 2004-08-31 19:55  pbartok
19000         * ButtonBase.cs:
19001           - Removed the rather odd split between 'needs redraw' and redrawing
19002           - Now handles the events that require regeneration (ambient
19003             properties and size)
19005 2004-08-31 19:41  pbartok
19007         * Control.cs:
19008           - Added firing of BackColorChanged event
19009           - Added TopLevelControl property
19010           - Fixed handling of WM_ERASEBKGRND message
19012 2004-08-31 12:49  pbartok
19014         * ButtonBase.cs:
19015           - Removed debug
19016           - Minor fixes
19018 2004-08-31 12:48  pbartok
19020         * CheckBox.cs:
19021           - Finished (famous last words)
19023 2004-08-31 04:35  jordi
19025         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
19026           scrolling bugs, adds new methods
19028 2004-08-30 14:42  pbartok
19030         * CheckBox.cs:
19031           - Implemented CheckBox drawing code
19033 2004-08-30 14:42  pbartok
19035         * ButtonBase.cs:
19036           - Made Redraw() and CheckRedraw() virtual
19037           - Improved mouse up/down/move logic to properly track buttons
19039 2004-08-30 09:44  pbartok
19041         * CheckBox.cs:
19042           - Updated to fix broken build. Not complete yet.
19044 2004-08-30 09:28  pbartok
19046         * CheckState.cs:
19047           - Initial checkin
19049 2004-08-30 09:17  pbartok
19051         * Appearance.cs:
19052           - Initial check-in
19054 2004-08-27 16:12  ravindra
19056         * ToolBarButton.cs: Added TypeConverter attribute.
19058 2004-08-27 16:07  ravindra
19060         * ImageIndexConverter.cs: Implemented.
19062 2004-08-27 14:17  pbartok
19064         * Control.cs:
19065           - Removed unneeded stack vars
19066           - First attempt to fix sizing issues when layout is suspended
19068 2004-08-25 15:35  jordi
19070         * ScrollBar.cs: more fixes to scrollbar
19072 2004-08-25 14:04  ravindra
19074         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
19075           Added the missing divider code and grip for ToolBar Control.
19077 2004-08-25 13:20  pbartok
19079         * Control.cs:
19080           - Control now properly passes the ambient background color to child
19081             controls
19083 2004-08-25 13:20  jordi
19085         * ScrollBar.cs: small bug fix regarding bar position
19087 2004-08-25 12:33  pbartok
19089         * Timer.cs:
19090           - Now only calls SetTimer or KillTimer if the enabled state has
19091           changed
19093 2004-08-25 12:33  pbartok
19095         * XplatUIWin32.cs:
19096           - Fixed timer handling, now seems to work
19097           - Improved error message for window creation
19099 2004-08-25 12:32  pbartok
19101         * Control.cs:
19102           - Fixed generation of MouseUp message
19104 2004-08-25 12:29  jordi
19106         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
19107           and fixes for progressbar
19109 2004-08-24 18:43  ravindra
19111         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
19112           in ToolBar control.
19114 2004-08-24 17:15  pbartok
19116         * Panel.cs:
19117           - Added #region
19118           - Added missing events
19119           - Alphabetized
19121 2004-08-24 17:14  pbartok
19123         * StatusBar.cs, PictureBox.cs:
19124           - Now uses Control's CreateParams
19126 2004-08-24 16:36  pbartok
19128         * XplatUIX11.cs:
19129           - Fixed background color handling
19130           - Fixed sending of enter/leave events on a grab
19132 2004-08-24 16:35  pbartok
19134         * X11Structs.cs:
19135           - Refined definitions for CrossingEvent
19137 2004-08-24 12:37  jordi
19139         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
19140           formmating, methods signature, and adds missing events
19142 2004-08-24 12:24  jordi
19144         * Control.cs: fire OnEnabledChanged event
19146 2004-08-24 11:17  pbartok
19148         * XplatUIWin32.cs:
19149           - Implemented SetTimer() and KillTimer()
19151 2004-08-24 11:16  pbartok
19153         * XplatUIX11.cs:
19154           - Now uses Remove instead of Add to kill the timer
19156 2004-08-24 10:16  jackson
19158         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
19159           picture boxes in the theme now. Draw picture box borders and obey
19160           sizing modes
19162 2004-08-24 05:49  jackson
19164         * Timer.cs: Remove top secret debugging code
19166 2004-08-24 05:34  jackson
19168         * PictureBox.cs: Temp hack to make picture boxes draw their full
19169           image
19171 2004-08-24 05:29  jackson
19173         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19174           XplatUIX11.cs: Move timers to the driver level. On X they are
19175           queued by the driver and checked on idle.
19177 2004-08-24 01:07  jackson
19179         * XplatUIX11.cs: Use a queue for async messages instead of passing
19180           them as ClientMessages since that was totally broken. Also simply
19181           check for events and return an idle message if none are found. This
19182           gives us an idle handler, and prevents deadlocking when no messages
19183           are in the queue.
19185 2004-08-23 18:19  ravindra
19187         * XplatUIWin32.cs: Removed the unwanted destructor.
19189 2004-08-23 17:27  pbartok
19191         * ButtonBase.cs:
19192           - Finishing touches. Works now, just needs some optimizations.
19194 2004-08-23 16:53  jordi
19196         * ScrollBar.cs: small fix
19198 2004-08-23 16:45  pbartok
19200         * Application.cs:
19201           - Removed debug output
19202           - Simplifications
19204 2004-08-23 16:43  jordi
19206         * ScrollBar.cs: [no log message]
19208 2004-08-23 16:10  pbartok
19210         * Form.cs:
19211           - Fixed handling of WM_CLOSE message
19212           - Removed debug output
19214 2004-08-23 16:09  pbartok
19216         * Application.cs:
19217           - Added handling of Idle event
19218           - Added handling of form closing
19219           - Fixed reporting of MessageLoop property
19220           - Removed some unneeded code, should provide a bit of a speedup
19222 2004-08-23 15:22  pbartok
19224         * Control.cs:
19225           - Added InitLayout() method
19226           - Added code to properly perform layout when Anchor or Dock property
19227             is changed
19228           - Changed 'interpretation' of ResumeLayout. MS seems to have a
19229             LAMESPEC, tried to do it in a way that makes sense
19231 2004-08-23 14:10  jordi
19233         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
19234           properties and methods
19236 2004-08-23 13:55  pbartok
19238         * Control.cs:
19239           - Properly fixed Jordi's last fix
19240           - Now uses Cursor's Position property instead of calling XplatUI
19241           directly
19243 2004-08-23 13:44  jordi
19245         * PaintEventHandler.cs: Adding missing attribute
19247 2004-08-23 13:39  pbartok
19249         * Cursor.cs:
19250           - Implemented Position property
19252 2004-08-23 13:39  pbartok
19254         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19255           - Added method to move mouse cursor
19257 2004-08-23 13:39  pbartok
19259         * XplatUIX11.cs:
19260           - Fixed setting of background color
19261           - Added method to move mouse cursor
19263 2004-08-23 13:16  jordi
19265         * Control.cs: avoids null exception
19267 2004-08-22 17:46  jackson
19269         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
19270           PictureBox
19272 2004-08-22 17:40  jackson
19274         * XplatUIX11.cs: Add some missing locks
19276 2004-08-22 15:10  pbartok
19278         * Control.cs, Form.cs:
19279           - Removed OverlappedWindow style from Control, instead it's default
19280             now is child
19281           - Made form windows OverlappedWindow by default
19283 2004-08-22 13:34  jackson
19285         * ScrollBar.cs: Update the position through the Value property so
19286           the OnValueChanged event is raised.
19288 2004-08-22 12:04  pbartok
19290         * SWF.csproj:
19291           - Added Cursor.cs and UserControl.cs
19293 2004-08-22 12:03  pbartok
19295         * Cursor.cs:
19296           - Started implementation, not usable yet
19298 2004-08-22 12:00  pbartok
19300         * UserControl.cs:
19301           - Implemented UserControl (complete)
19303 2004-08-21 19:20  ravindra
19305         * ToolBar.cs: Correcting the formatting mess of VS.NET.
19307 2004-08-21 18:49  ravindra
19309         * ToolBar.cs: Probably this completes the missing attributes in
19310           toolbar control.
19312 2004-08-21 18:03  ravindra
19314         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
19315           Fixed toolbar control signatures.
19317 2004-08-21 16:32  pbartok
19319         * LinkLabel.cs:
19320           - Signature Fixes
19322 2004-08-21 16:30  pbartok
19324         * Label.cs:
19325           - Signature fixes
19327 2004-08-21 16:19  pbartok
19329         * Control.cs, Label.cs:
19330           - Signature fixes
19332 2004-08-21 15:57  pbartok
19334         * ButtonBase.cs:
19335           - Added loads of debug output for development
19336           - Fixed typo in method name
19338 2004-08-21 15:52  pbartok
19340         * ToolBarButtonClickEventArgs.cs:
19341           - Added missing base class
19343 2004-08-21 14:53  pbartok
19345         * Control.cs:
19346           - Updated to match new GrabWindow signature
19348 2004-08-21 14:51  pbartok
19350         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19351           - Added method to get default display size
19353 2004-08-21 14:23  pbartok
19355         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19356           - Added method to query current grab state
19357           - Added argument to allow confining a grab to a window
19359 2004-08-21 14:22  pbartok
19361         * Keys.cs:
19362           - Added [Flags] attribute so that modifiers can be used in bitwise
19363           ops
19365 2004-08-21 14:21  pbartok
19367         * TrackBar.cs, ScrollBar.cs:
19368           - Replaced direct XplatUI calls with their Control counterpart
19370 2004-08-21 13:32  pbartok
19372         * Control.cs:
19373           - Implemented Created property
19375 2004-08-21 13:28  pbartok
19377         * Control.cs:
19378           - Implemented ContainsFocus
19380 2004-08-21 13:26  pbartok
19382         * Control.cs:
19383           - Implemented CausesValidation
19385 2004-08-21 13:21  pbartok
19387         * Control.cs:
19388           - Implemented CanFocus
19389           - Implemented CanSelect
19390           - Implemented Capture
19392 2004-08-21 12:35  pbartok
19394         * XplatUIWin32.cs:
19395           - Fixed bug with Async message handling
19396           - Implemented getting the ModifierKeys
19398 2004-08-21 12:32  jackson
19400         * AsyncMethodResult.cs: Make sure we have the mutex before we
19401           release it. Fixes BeginInvoke on windows
19403 2004-08-21 11:31  pbartok
19405         * XplatUIWin32.cs, XplatUIX11.cs:
19406           - Drivers now return proper mouse state
19408 2004-08-21 10:54  jackson
19410         * Control.cs: Implement EndInvoke
19412 2004-08-21 10:48  jackson
19414         * Timer.cs: Remove unneeded finalizer
19416 2004-08-20 19:52  ravindra
19418         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
19419           in mouse event handling in the ToolBar control.
19421 2004-08-20 19:50  ravindra
19423         * ImageList.cs: Changed draw method to use the arguments passed in
19424           to draw the image.
19426 2004-08-20 18:58  pbartok
19428         * XplatUIStructs.cs:
19429           - Added private message for async communication
19431 2004-08-20 17:38  ravindra
19433         * Control.cs: Made RightToLeft property virtual and removed a
19434           Console.WriteLine.
19436 2004-08-20 14:39  jordi
19438         * ThemeGtk.cs: use style_attach
19440 2004-08-20 14:39  pbartok
19442         * XplatUIWin32.cs:
19443           - Added jackson's Async code from X11 to Win32
19445 2004-08-20 14:09  pbartok
19447         * SWF.csproj:
19448           - Added all new files
19450 2004-08-20 14:09  pbartok
19452         * Control.cs:
19453           - Added call to set window background color
19455 2004-08-20 14:03  pbartok
19457         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19458           - Added method for setting the window background
19460 2004-08-20 14:02  pbartok
19462         * XplatUIWin32.cs:
19463           - Added method for setting the background color
19464           - Added handling for erasing the window background
19466 2004-08-20 13:45  jordi
19468         * TrackBar.cs: fixes timer, new properties and methods
19470 2004-08-20 13:34  jackson
19472         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
19473           correct thread
19475 2004-08-20 13:22  jackson
19477         * Timer.cs: Timer Tick events are now handed through Controls Async
19478           mechanism so the callbacks are executed in the same thread as X
19480 2004-08-20 13:19  jackson
19482         * XplatUIDriver.cs: Expose functionality to send async messages
19483           through the driver
19485 2004-08-20 13:18  jackson
19487         * Control.cs: Implement Begininvoke
19489 2004-08-20 13:14  jackson
19491         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
19492           messages through the driver
19494 2004-08-20 13:12  jackson
19496         * XplatUIX11.cs: Lock before all X operations. Also added Async
19497           method functionality through XSendEvent
19499 2004-08-20 13:11  jackson
19501         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
19502           This will screw up on 64 bit systems)
19504 2004-08-20 13:10  jackson
19506         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
19507           Async messages through X/Win32
19509 2004-08-19 19:39  pbartok
19511         * XplatUIX11.cs:
19512           - Updated code to match new HandleData.DeviceContext type
19514 2004-08-19 19:38  pbartok
19516         * HandleData.cs:
19517           - Made DeviceContext a generic object to allow usage from various
19518           drivers
19519           - Added support for queueing Windows messages
19521 2004-08-19 19:37  pbartok
19523         * XplatUIWin32.cs:
19524           - Added generation of MouseEnter, MouseLeave and MouseHover events
19525           - Added cleanup on EndPaint
19527 2004-08-19 19:17  pbartok
19529         * Control.cs:
19530           - Added handling of WM_MOUSEHOVER
19531           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
19532           code
19534 2004-08-19 18:55  jordi
19536         * ThemeGtk.cs: fixes button order
19538 2004-08-19 18:12  jordi
19540         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
19542 2004-08-19 17:09  pbartok
19544         * Control.cs:
19545           - Added Right property
19546           - Added RightToLeft property
19548 2004-08-19 16:27  jordi
19550         * ThemeGtk.cs: experimental GTK theme support
19552 2004-08-19 16:26  jordi
19554         * ITheme.cs, Theme.cs: move themes from an interface to a class
19556 2004-08-19 16:25  jordi
19558         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
19559           theme enhancaments
19561 2004-08-19 16:04  pbartok
19563         * XplatUIX11.cs:
19564           - Added colormap basics
19565           - Added a way to re-initialize with a different display handle
19566           - Fixed setting of the window background color
19567           - Added various X11 imports related to colors and colormaps
19569 2004-08-19 15:51  pbartok
19571         * X11Structs.cs:
19572           - Removed packing hints (Paolo suggested this a while back)
19573           - fixed colormap type
19574           - Added default Atom types
19575           - Added Screen and color structs and enums
19577 2004-08-19 15:39  pbartok
19579         * ImageList.cs:
19580           - Added missing Draw() method
19581           - Added missing RecreateHandle event
19583 2004-08-19 15:30  pbartok
19585         * Form.cs:
19586           - Added handling of WM_CLOSE
19588 2004-08-18 13:16  jordi
19590         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
19591           a table
19593 2004-08-18 09:56  jordi
19595         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
19597 2004-08-17 15:31  ravindra
19599         * SWF.csproj: Updated project.
19601 2004-08-17 15:25  pbartok
19603         * Control.cs:
19604           - Drawing improvement; don't call UpdateBounds if we are not visible
19605             (or have been minimized)
19607 2004-08-17 15:24  pbartok
19609         * XplatUIWin32.cs:
19610           - Finished IsVisible
19611           - Added Win32GetWindowPlacement
19613 2004-08-17 15:08  jackson
19615         * Panel.cs: Initial checkin of the Panel
19617 2004-08-17 14:25  pbartok
19619         * Control.cs:
19620           - Fixed broken handling of default window sizes
19622 2004-08-17 13:29  jackson
19624         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
19625           has a large startup time.
19627 2004-08-17 10:25  jackson
19629         * HandleData.cs: union areas properly
19631 2004-08-17 10:12  jackson
19633         * HandleData.cs: union areas properly
19635 2004-08-16 20:00  ravindra
19637         * ToolBar.cs, ToolBarButton.cs: Added attributes.
19639 2004-08-16 18:48  ravindra
19641         * ToolBar.cs: Added attributes.
19643 2004-08-16 17:17  ravindra
19645         * SWF.csproj: Updated project.
19647 2004-08-16 17:16  jackson
19649         * XplatUIX11.cs: Check for more expose events before sending a
19650           WM_PAINT so they can all be grouped together. This makes dragging a
19651           window across another window redraw in a sane way.
19653 2004-08-16 15:47  pbartok
19655         * Control.cs:
19656           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
19657             support OnMouseEnter/Leave()
19658           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
19659             exposure handling
19661 2004-08-16 15:46  pbartok
19663         * XplatUIStructs.cs, XplatUIX11.cs:
19664           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
19665           OnMouseEnter/Leave()
19667 2004-08-16 15:34  jackson
19669         * XplatUIX11.cs: Group multiple expose events in HandleData, make
19670           sure messages get the message field set to WM_NULL if they are not
19671           handled.
19673 2004-08-16 15:24  jackson
19675         * HandleData.cs: HandleData is used for storing message information
19676           for window handles
19678 2004-08-15 17:23  ravindra
19680         * ColorDepth.cs: Added attribute.
19682 2004-08-15 17:23  ravindra
19684         * SWF.csproj: Updated project for ToolBar Control.
19686 2004-08-15 17:20  ravindra
19688         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
19689           control and also dos2unix format.
19691 2004-08-15 17:13  ravindra
19693         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
19694           ToolBarButtonClickEventArgs.cs,
19695           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
19696           ToolBarTextAlign.cs: First Implementation of ToolBar control.
19698 2004-08-15 15:31  pbartok
19700         * ButtonBase.cs:
19701           - First (mostly) working version
19703 2004-08-13 16:15  pbartok
19705         * Control.cs:
19706           - Fixed Anchor default
19708 2004-08-13 15:43  pbartok
19710         * Control.cs:
19711           - Changed GetCursorPos signature
19713 2004-08-13 15:42  pbartok
19715         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19716           - Changed signature for GetCursorPos
19718 2004-08-13 15:25  pbartok
19720         * XplatUIX11.cs:
19721           - Cleanup
19722           - Fixed resizing/exposure handling
19724 2004-08-13 15:22  jordi
19726         * ThemeWin32Classic.cs: removes redundant code and fixes issues
19727           with tickposition
19729 2004-08-13 14:55  jordi
19731         * TrackBar.cs: change from wndproc to events
19733 2004-08-13 13:00  jordi
19735         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19736           XplatUIX11.cs: implements PointToClient (ScreenToClient)
19738 2004-08-13 12:53  pbartok
19740         * XplatUIWin32.cs:
19741           - Changed GetWindowPos to also provide client area size
19742           - Fixed broken prototypes for several win32 functions
19744 2004-08-13 12:53  pbartok
19746         * XplatUI.cs, XplatUIDriver.cs:
19747           - Changed GetWindowPos to also provide client area size
19749 2004-08-13 12:52  pbartok
19751         * XplatUIX11.cs:
19752           - Added generation of WM_POSCHANGED
19753           - Changed GetWindowPos to also provide client area size
19755 2004-08-13 12:52  pbartok
19757         * Control.cs:
19758           - Added Dispose() and destructor
19759           - Fixed resizing and bounds calculation
19760           - Fixed Layout
19761           - Added memory savings for invisible windows
19763 2004-08-13 12:46  jordi
19765         * TrackBar.cs: adds timer and grap window
19767 2004-08-13 10:25  jackson
19769         * Timer.cs: SWF Timer
19771 2004-08-12 16:59  pbartok
19773         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19774           - Implemented method to get current mouse position
19776 2004-08-12 14:29  jordi
19778         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
19779           enhancement, fix mouse problems, highli thumb, etc
19781 2004-08-12 13:31  pbartok
19783         * Control.cs:
19784           - Fixed Anchoring bugs
19786 2004-08-12 13:01  jackson
19788         * StatusBar.cs: Don't forget things
19790 2004-08-12 12:54  jackson
19792         * ThemeWin32Classic.cs: Handle owner draw status bars
19794 2004-08-12 12:54  jackson
19796         * StatusBar.cs: Implement missing properties, events, and methods.
19797           Handle mouse clicking
19799 2004-08-12 10:19  jackson
19801         * StatusBarPanelClickEventArgs.cs,
19802           StatusBarPanelClickEventHandler.cs: Classes for handling status
19803           bar panel click events
19805 2004-08-12 10:10  jackson
19807         * Control.cs: Add missing properties
19809 2004-08-12 09:46  pbartok
19811         * BindingsManagerBase.cs:
19812           - Name changed to BindingManagerBase.cs
19814 2004-08-12 09:25  jordi
19816         * ScrollableControl.cs: calls ctrlbase instead of exeception
19818 2004-08-11 16:28  pbartok
19820         * InputLanguageChangingEventArgs.cs:
19821           - Never check in before compiling. Fixes the last check-in
19823 2004-08-11 16:26  pbartok
19825         * InputLanguageChangingEventArgs.cs:
19826           - More signature fixes
19828 2004-08-11 16:20  pbartok
19830         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
19831           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
19832           ImageListStreamer.cs, InputLanguage.cs,
19833           InputLanguageChangedEventArgs.cs,
19834           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
19835           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
19836           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
19837           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19838           - Signature fixes
19840 2004-08-11 16:16  pbartok
19842         * Application.cs:
19843           - Fixed Signature
19844           - Added .Net 1.1 method
19846 2004-08-11 15:25  pbartok
19848         * SWF.csproj:
19849           - Fixed BindingManagerBase.cs filename
19851 2004-08-11 15:22  pbartok
19853         * BindingManagerBase.cs:
19854           - Was checked in with wrong filename
19856 2004-08-11 14:50  pbartok
19858         * SWF.csproj:
19859           - Updated
19861 2004-08-11 13:41  jordi
19863         * XplatUIWin32.cs: Fixes ClientRect
19865 2004-08-11 13:19  pbartok
19867         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19868           XplatUIX11.cs:
19869           - We had SetWindowPos and MoveWindow to set window positions and
19870             size, removed MoveWindow. We have GetWindowPos, so it made sense to
19871             keep SetWindowPos as matching counterpart
19872           - Added some X11 sanity checking
19874 2004-08-11 12:59  pbartok
19876         * Control.cs:
19877           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
19878             (It seems that SetBounds is just a front for SetBoundsCore and
19879              SetBoundsCore updates the underlying window system and
19880              UpdateBounds is responsible for updating the variables associated
19881              with the Control and sending the events)
19882           - Major cleanup of Size handling; we now have two sizes, client_size
19883             and bounds. Bounds defines the window with decorations, client_size
19884             without them.
19886 2004-08-11 12:55  pbartok
19888         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19889           - Added method to calculate difference between decorated window and
19890             raw client area
19892 2004-08-11 12:54  pbartok
19894         * Label.cs:
19895           - Forcing redraw on resize
19897 2004-08-11 11:43  pbartok
19899         * ImageList.cs:
19900           - Removed disposing of the actual images when the list is disposed
19902 2004-08-11 09:13  pbartok
19904         * Control.cs:
19905           - Now properly reparents windows
19907 2004-08-11 08:37  pbartok
19909         * Control.cs:
19910           - Duh!
19912 2004-08-11 07:47  pbartok
19914         * Control.cs:
19915           - Rewrote the collection stuff. Might not be as fast now, not
19916             keeping the number of children around and accessible directly, but
19917             it's more straightforward
19919 2004-08-11 07:44  pbartok
19921         * AccessibleObject.cs:
19922           - Fixed to match ControlCollection rewrite
19924 2004-08-11 07:43  pbartok
19926         * ImageList.cs:
19927           - Added missing creation of the collection list
19929 2004-08-10 20:08  jackson
19931         * StatusBar.cs: Get the paint message from WndProc
19933 2004-08-10 19:31  jackson
19935         * ThemeWin32Classic.cs: Create Brushes as little as possible
19937 2004-08-10 19:20  jackson
19939         * UICues.cs: Add Flags attribute
19941 2004-08-10 19:19  jackson
19943         * StatusBarPanel.cs: Signature cleanup
19945 2004-08-10 19:10  jackson
19947         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
19948           Initial implementation of status bar item drawing
19950 2004-08-10 17:27  jordi
19952         * TrackBar.cs: add missing methods, properties, and restructure to
19953           hide extra ones
19955 2004-08-10 16:24  jackson
19957         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
19958           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
19959           attribute
19961 2004-08-10 13:21  jordi
19963         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
19964           enhancements and standarize on win colors defaults
19966 2004-08-10 12:52  jackson
19968         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
19969           ThemeWin32Classic.cs: Implement DrawItem functionality
19971 2004-08-10 12:47  jordi
19973         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
19975 2004-08-10 12:32  jordi
19977         * Control.cs: throw ontextchange event
19979 2004-08-10 11:43  pbartok
19981         * Control.cs:
19982           - Added more to the still unfinished Dock/Anchor layout code
19984 2004-08-10 11:39  pbartok
19986         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19987           - Added GetWindowPos method
19989 2004-08-10 11:36  pbartok
19991         * XplatUIWin32.cs:
19992           - Implemented several methods
19994 2004-08-10 09:47  jackson
19996         * TrackBar.cs: Allow control to handle buffering
19998 2004-08-10 09:41  jackson
20000         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
20002 2004-08-10 09:24  jackson
20004         * Label.cs, LinkLabel.cs: Let Control handle buffering.
20006 2004-08-10 09:09  jackson
20008         * StatusBar.cs: Let Control handle all the buffering.
20010 2004-08-10 09:08  jackson
20012         * Control.cs: Control will now handle the buffering code, so each
20013           control does not have to implement this.
20015 2004-08-10 08:34  jackson
20017         * XplatUIDriver.cs: Use default colors from the theme
20019 2004-08-09 17:12  pbartok
20021         * ImageList.cs:
20022           - Fixed several bugs Ravindra pointed out
20024 2004-08-09 16:11  pbartok
20026         * Control.cs:
20027           - Added incomplete dock layout code
20028           - Added support for mouse wheel
20030 2004-08-09 16:09  pbartok
20032         * XplatUIX11.cs:
20033           - Added handling for middle and right mousebutton
20034           - Added handling for mouse wheel
20035           - Added handling for key state and mouse state and position
20036           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
20037           messages
20039 2004-08-09 15:40  jackson
20041         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
20042           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
20043           checkin
20045 2004-08-09 15:37  jackson
20047         * StatusBar.cs: Initial implementation of StatusBar
20049 2004-08-09 15:36  jackson
20051         * ITheme.cs: Add support for drawing status bar and getting status
20052           bar item sizes
20054 2004-08-09 15:35  pbartok
20056         * MouseButtons.cs:
20057           - Fixed values
20059 2004-08-09 15:34  jackson
20061         * ThemeWin32Classic.cs: Add support for drawing status bar and get
20062           status bar item sizes
20064 2004-08-09 15:21  jackson
20066         * ThemeWin32Classic.cs: Use known colors for default control
20067           colours
20069 2004-08-09 15:12  jackson
20071         * ThemeWin32Classic.cs: Make the default font static, it is static
20072           in control so this doesn't change functionality and creating fonts
20073           is sloooooow.
20075 2004-08-09 14:56  pbartok
20077         * X11Structs.cs:
20078           - Added GrabMode enum
20080 2004-08-09 14:55  pbartok
20082         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20083           - Removed Run method, was only required for initial development
20085 2004-08-09 14:51  pbartok
20087         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20088           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
20089           capture
20091 2004-08-09 13:48  pbartok
20093         * XplatUIX11.cs:
20094           - Fixed default sizing for child windows
20096 2004-08-09 12:56  pbartok
20098         * XplatUIX11.cs:
20099           - Added generation of WM_DESTROY message
20100           - Added handling of window manager induced shutdown
20102 2004-08-09 11:31  jackson
20104         * ThemeWin32Classic.cs: New names for control properties
20106 2004-08-09 11:25  jackson
20108         * Control.cs: Use new color names
20110 2004-08-09 11:02  jackson
20112         * XplatUI.cs: Get default window properties from the theme
20114 2004-08-09 11:01  jackson
20116         * ITheme.cs: The theme engine now controls default window
20117           properties
20119 2004-08-09 11:00  jackson
20121         * ThemeWin32Classic.cs: Add default window color properties
20123 2004-08-09 10:17  jackson
20125         * ThemeWin32Classic.cs: Use correct default back color
20127 2004-08-09 10:05  jackson
20129         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
20130           the theme now.
20132 2004-08-09 09:56  jackson
20134         * XplatUI.cs: Remove defaults, these are handled by the theme now.
20136 2004-08-09 09:54  jackson
20138         * Control.cs: Get default properties from the theme.
20140 2004-08-09 09:53  jackson
20142         * ITheme.cs: Themes now handle default control properties
20144 2004-08-09 09:53  jackson
20146         * ThemeWin32Classic.cs: Themes now handle default control
20147           properties so coloring will be consistent
20149 2004-08-08 16:54  jordi
20151         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
20153 2004-08-08 15:08  jordi
20155         * XplatUIX11.cs: fixes keyboard crash
20157 2004-08-08 13:47  jordi
20159         * Label.cs: add cvs header info
20161 2004-08-08 12:09  jackson
20163         * ThemeWin32Classic.cs: Add pen_buttonface
20165 2004-08-08 11:52  jordi
20167         * Label.cs, LinkLabel.cs: [no log message]
20169 2004-08-08 11:34  jordi
20171         * ThemeWin32Classic.cs: Use Windows Standard Colours
20173 2004-08-07 17:32  jordi
20175         * TrackBar.cs: throw exceptions of invalid enums values
20177 2004-08-07 17:31  jordi
20179         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
20180           draw method name
20182 2004-08-07 16:56  jackson
20184         * HorizontalAlignment.cs: Initial checkin
20186 2004-08-07 13:16  jordi
20188         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
20189           methods
20191 2004-08-07 13:05  jordi
20193         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
20194           GetSysColor defines
20196 2004-08-06 18:01  pbartok
20198         * ThemeWin32Classic.cs:
20199           - Fixed some rounding issues with float/int
20201 2004-08-06 18:00  jackson
20203         * DockStyle.cs, AnchorStyles.cs:
20205                   Add flags and serializable attributes.
20207 2004-08-06 17:46  pbartok
20209         * XplatUIX11.cs:
20210           - Implemented GetParent
20212 2004-08-06 17:18  pbartok
20214         * TrackBar.cs:
20215           - Fixed some rounding issues with float/int
20217 2004-08-06 17:17  pbartok
20219         * X11Structs.cs, XplatUIX11.cs:
20220           - Fixed Refresh and Invalidate
20222 2004-08-06 15:30  pbartok
20224         * Control.cs, X11Structs.cs, XplatUIX11.cs:
20225           - Fixed recursive loop when resizing
20226           - Improved/fixed redrawing on expose messages
20228 2004-08-06 09:53  jordi
20230         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
20231           keyboard navigation
20233 2004-08-06 08:02  pbartok
20235         * X11Structs.cs, XplatUIX11.cs:
20236           - Fixed reparenting
20237           - Fixed window border creation
20239 2004-08-05 15:38  pbartok
20241         * XplatUIX11.cs:
20242           - Attempted fix for reparenting problems
20244 2004-08-04 15:14  pbartok
20246         * Control.cs:
20247           - Fixed Invalidation bug (calculated wrong client area)
20248           - Added ClientSize setter
20250 2004-08-04 15:13  pbartok
20252         * Form.cs:
20253           - Added AutoScale properties
20255 2004-08-04 15:13  pbartok
20257         * SWF.csproj:
20258           - Added latest files
20260 2004-08-04 14:11  pbartok
20262         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20263           XplatUIX11.cs:
20264           - Added Invalidate handling
20266 2004-08-03 17:09  jordi
20268         * XplatUIDriver.cs: fixes spelling mistake
20270 2004-07-27 09:53  jordi
20272         * TrackBar.cs: fixes trackbar events, def classname, methods
20273           signature
20275 2004-07-27 09:29  jordi
20277         * ScrollBar.cs: fixes scrollbar events
20279 2004-07-27 04:38  jordi
20281         * Control.cs: changes to be able to run winforms samples
20283 2004-07-26 11:42  jordi
20285         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
20286           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
20288 2004-07-26 05:41  jordi
20290         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
20291           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
20292           implementation
20294 2004-07-22 09:22  jordi
20296         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
20297           check link overlapping, implement events, and fixes
20299 2004-07-21 10:28  jordi
20301         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
20303 2004-07-21 10:19  jordi
20305         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
20306           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
20307           LinkLabelLinkClickedEventArgs.cs,
20308           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
20309           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
20310           implementation
20312 2004-07-19 13:09  jordi
20314         * Control.cs, Label.cs: label control re-written: added missing
20315           functionlity, events, and properties
20317 2004-07-19 10:49  jordi
20319         * Control.cs: fixes SetBounds logic
20321 2004-07-19 01:29  jordi
20323         * Control.cs: Call RefreshWindow only if the window has created
20325 2004-07-15 14:05  pbartok
20327         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
20328           - Implemented ImageList and ImageList.ImageCollection classes
20329           - Added ColorDepth enumeration
20330           - Updated SWF VS.Net project
20332 2004-07-15 11:06  jordi
20334         * XplatUIStructs.cs: added MsgButons enum
20336 2004-07-15 11:03  jordi
20338         * Control.cs: added basic mouse handeling events
20340 2004-07-15 03:38  jordi
20342         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
20343           Vertical TrackBar control implementation
20345 2004-07-13 09:33  jordi
20347         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
20349 2004-07-13 09:31  jordi
20351         * Control.cs, Form.cs: commit: new properties and fixes form size
20352           problems
20354 2004-07-09 14:13  miguel
20356         * ProgressBar.cs: Spelling
20358 2004-07-09 11:25  pbartok
20360         * ProgressBar.cs:
20361           - Removed usage of Rectangle for drawing. Miguel pointed out it's
20362           faster
20364 2004-07-09 11:17  miguel
20366         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
20368                 * ProgressBar.cs: Fixed spelling for `block'
20370                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
20371                 style guidelines.
20373                 Avoid using the += on rect.X, that exposed a bug in the compiler.
20375 2004-07-08 23:21  pbartok
20377         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
20378           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
20379           BaseCollection.cs, Binding.cs, BindingContext.cs,
20380           BindingMemberInfo.cs, BindingsCollection.cs,
20381           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
20382           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
20383           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
20384           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
20385           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
20386           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
20387           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
20388           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
20389           FrameStyle.cs, GiveFeedbackEventArgs.cs,
20390           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
20391           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
20392           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
20393           InputLanguageChangedEventArgs.cs,
20394           InputLanguageChangedEventHandler.cs,
20395           InputLanguageChangingEventArgs.cs,
20396           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
20397           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
20398           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
20399           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
20400           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
20401           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
20402           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
20403           QueryAccessibilityHelpEventArgs.cs,
20404           QueryAccessibilityHelpEventHandler.cs,
20405           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
20406           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
20407           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
20408           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
20409           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
20410           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
20411           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
20412           XplatUIX11.cs, lang.cs:
20413           - Initial check-in