* AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
[mcs.git] / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob51ad6864619656807f778ada2ae0ef3603fa2e82
1 2006-12-06  Chris Toshok  <toshok@ximian.com>
3         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
5         Control.child_controls private.  switch all uses over to
6         Control.Controls.
8 2006-12-06  Chris Toshok  <toshok@ximian.com>
10         * System.Windows.Forms/GroupBox.cs,
11         System.Windows.Forms/AccessibleObject.cs,
12         System.Windows.Forms/ErrorProvider.cs,
13         System.Windows.Forms/Control.cs,
14         System.Windows.Forms/UpDownBase.cs,
15         System.Windows.Forms/ScrollBar.cs,
16         System.Windows.Forms/DateTimePicker.cs,
17         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
18         System.Windows.Forms/ToolTip.cs,
19         System.Windows.Forms/RadioButton.cs,
20         System.Windows.Forms/LinkLabel.cs,
21         System.Windows.Forms/Splitter.cs,
22         System.Windows.Forms/TextBoxBase.cs,
23         System.Windows.Forms/ToolStripTextBox.cs,
24         System.Windows.Forms/ContainerControl.cs,
25         System.Windows.Forms/ThemeWin32Classic.cs,
26         System.Windows.Forms/SizeGrip.cs,
27         System.Windows.Forms/ToolStripDropDown.cs,
28         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
29         private.  switch all uses over to Control.Parent.
31 2006-12-06  Chris Toshok  <toshok@ximian.com>
33         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
34         Control does this before calling emitting these events.
36         * TabControl.cs: same.
38         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
39         Control.client_rect.
41         * ButtonBase.cs: use the ClientSize property instead of the
42         client_size field.
44         * ScrollableControl.cs: same.
46         * Control.cs: another pass at making properties private.  also,
47         move the initialization of tab_stop to the ctor.
49 2006-12-05  Andreia Gaita <avidigal@novell.com>
51         * TabControl.cs: Let the selected index be set freely if the 
52         control handle is not yet created.
54 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
56         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
57         internal until I can rewrite DefaultLayout.
58         * ToolStrip.cs: Fix build error and some general cleaning.
59         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
60         Fix build errors caused by making some of Control's fields private.
62 2006-12-05  Jackson Harper  <jackson@ximian.com>
64         * TextControl.cs: Redo Insert a little so that it use IndexOf
65         instead of Split, this prevents it from messing up on things like
66         \n\n\n. Also more effecient since the split array doesn't need to
67         be created.
68         * TextBoxBase.cs: AppendText doesnt handle multiline and non
69         multiline text differently, this is the first of many fixes that
70         will make multiline/non-multiline the same thing as far as the
71         TextBoxBase is concerned.
72         - Don't split the text and insert lines, this can lose some line
73         endings (like is the last line a soft or hard break). Instead use
74         the new Insert.
75         - Fix an off by one when combining all the lines in the Text
76         getter.
77         - Remove separate multiline handling from the Text getter/setter.
79 2006-12-05  Chris Toshok  <toshok@ximian.com>
81         * ButtonBase.cs: a few changes:
83         - don't reinitialize internal Control fields in the ctor when they
84         have the same values as Control sets them.
86         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
87         this before calling those methods.
89         - we don't need to call Refresh for anything.  use Invalidate
90         instead.
92         - OnEnabledChanged doesn't need to redraw at all - Control.cs
93         calls Refresh in its OnEnabledChanged.
94         
95         - several of the events we were registered for in the ctor to
96         redraw ourselves already include calls to Invalidate in the
97         property setters that raise the events.  remove the extra
98         invalidation.
100         - reformat a switch statement that was 83274658 columns wide.
101         
102 2006-12-05  Mike Kestner  <mkestner@novell.com>
104         * ComboBox.cs: fix a unit test regression from a TextBox
105         SelectionLength return of -1 when there's no selection.  
107 2006-12-05  Chris Toshok  <toshok@ximian.com>
109         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
110         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
111         cleaning up some of the internal Control fields being used by
112         subclasses.
114 2006-12-05  Mike Kestner  <mkestner@novell.com>
116         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
117         listbox after AddImplicit calls since it defaults to hidden. Add a 
118         hack to preserve requested heights across DropDownStyle changes.
120 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
122         * PropertyGrid.cs: Hide FindFirstItem method from public API.
124 2006-12-05  Chris Toshok  <toshok@ximian.com>
126         * DataGridView.cs: fix compiler warnings.
128         * PrintControllerWithStatusDialog.cs: same.
130         * ToolBar.cs: same.
132         * FolderBrowserDialog.cs: same.
134         * Splitter.cs: same.
136         * DataGridViewComboBoxCell.cs: same.
138         * XplatUIWin32.cs: same.
140         * PictureBox.cs: same.
142         * Win32DnD.cs: same.
144         * PageSetupDialog.cs: same.
146         * FileDialog.cs: same.
148         * PrintDialog.cs: same.
150         * DataGridTextBoxColumn.cs: same.
152         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
154 2006-12-05  Chris Toshok  <toshok@ximian.com>
156         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
157         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
158         System.ComponentModel.EventHandlerList work.
160 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
162         * DrawTreeNodeEventArgs.cs: Added.
164 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
165         
166         * InternalWindowManager.cs: Remove an unused field.
167         
168 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
170         * InternalWindowManager.cs:
171         - Save the point where the title bar is clicked.
172         
173         * MdiWindowManager.cs:
174         - Only allow moving of the window as long as the 
175         clicked point on the title bar does not get out of
176         MdiClient's rectangle. Fixes #79982.
177         
178         * MdiClient.cs:
179         - Added Horizontal/VerticalScrollbarVisible.
180         - Simplified the scrollbar sizing algorithm.
181         - Cache the difference in scrolled value in
182         H/VBarValueChanged and move the calculation out
183         of the for loop.
185 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
187         * Control.cs: Make the Console.WriteLine in WndProc 
188         write more info.
190 2006-12-05  Chris Toshok  <toshok@ximian.com>
192         * ToolStripManager.cs, ToolStripButton.cs,
193         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
194         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
195         ToolStripSplitButton.cs, ToolStripSeparator.cs,
196         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
197         ToolStripProgressBar.cs, ToolStripContainer.cs,
198         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
199         to using System.ComponentModel.EventHandlerList.
201 2006-12-04  Chris Toshok  <toshok@ximian.com>
203         * LinkLabel.cs: fix up compiler warnings.
205         * TableLayoutSettings.cs: same.
207         * TreeView.cs: same.
209         * ToolBar.cs: same.
211         * TabControl.cs: same.
213         * RichTextBox.cs: same.
215         * ListViewItem.cs: same.
217         * PropertyGrid.cs: same.
219         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
221         * ToolTip.cs same.
223         * TextRenderer.cs: fix up compiler warnings.
225         * Label.cs: same.
227         * Form.cs: corcompare fixes.
229         * PictureBox.cs: fix up compiler warnings.
231         * ImageListStreamer.cs: same.
233         * TrackBar.cs: corcompare fix.
235         * Control.cs: fix up compiler warnings.
237         * SplitterPanel.cs: same.
239         * NumericTextBox.cs: same.
241         * ImageList.cs: same.
243         * StatusStrip.cs: same.
245         * ProgressBar.cs: corcompare fix.
247         * ToolStripButton.cs: fix up compiler warnings.
249         * ToolStripStatusLabel.cs: same.
251         * ToolStripSplitButton.cs: same.
253         * ToolStripSeparator.cs: same.
255         * ToolStripProgressBar.cs: same.
257         * ToolStripDropDownMenu.cs: same
259         * ToolStripDropDown.cs: same.
261         * ToolStripDropDownButton.cs: same.
263         * ToolStrip.cs: same.
265         * ToolStripControlHost.cs: same.
267         * ToolStripContentPanel.cs: same.
269         * ToolStripDropDown.cs: same.
271         * ToolStripContainer.cs: same.
273         * ToolStripPanel.cs: same, and add "new" where we need it to work
274         with the new ArrangedElementCollection.
276         * ToolStripItemCollection.cs: add "new" where we need it to work
277         with the new ArrangedElementCollection.
279 2006-12-04  Andreia Gaita <avidigal@novell.com>
281         * TabControl.cs: Fix default tab selection to after TabControl
282         gets focus and not before. Fixes #80128
284 2006-12-04  Chris Toshok  <toshok@ximian.com>
286         * DataGridTableStyle.cs: remove the gross calling of
287         datagrid.Refresh from here.  It's a broken idea and it doesn't
288         work anyway.
290         * DataGrid.cs: instead, just register/unregister from the
291         DataGridTableStyle events in CurrentTableStyle.  we play it
292         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
293         even though some would most likely not require it.  Fixes bug
294         #80115 (and one portion of #80117 as a side effect).
296 2006-12-04  Chris Toshok  <toshok@ximian.com>
298         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
299         so the textbox (if any) goes away.  Fixes bug #80117.
301 2006-12-04  Chris Toshok  <toshok@ximian.com>
303         * DataGridColumnStyle.cs: set the column's readonly property
304         initially based on the property descriptor's IsReadOnly.  Fixes
305         bug #80044.
307 2006-12-04  Chris Toshok  <toshok@ximian.com>
309         * ComboBox.cs: wrap the dropdown style changing work in
310         SuspendLayout/ResumeLayout.  Fixes bug #79968.
312 2006-12-04  Jackson Harper  <jackson@ximian.com>
314         * TextBoxBase.cs: Fix off by one, since these are one-based.
315         * TextBox.cs: Select all the text when we get focus.  The TextBox
316         does this but the RTB does not.
318 2006-12-04  Chris Toshok  <toshok@ximian.com>
320         * DataGridTextBoxColumn.cs: remove some spew.
322         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
323         but some part of me is saying "it shouldn't be here.."  At any
324         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
325         setting the value.
327 2006-12-04  Chris Toshok  <toshok@ximian.com>
329         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
330         to reassign the propertydescriptor.
332 2006-12-04  Jackson Harper  <jackson@ximian.com>
334         * TextBoxBase.cs:
335         * TextControl.cs: Remove some unused variables.  Maybe this will
336         patch things up between mike and I.
337         - don't split lines less then one char wide, if the viewport is
338         that small text won't be visible anyways.
339         
340 2006-12-04  Jackson Harper  <jackson@ximian.com>
342         * TextBoxBase.cs: Default selection length is -1, need to do some
343         more testing on windows to see when this is used for the property.
344         - Redid the Lines [] property to that we properly remove soft line
345         breaks
346         - added support for preserving carriage returns
347         -  CanUndo is not a variable like 'is undo enabled' it just returns
348         true if there is undo operations available.
349         - AppendText doesn't need to grab the last tag itself anymore,
350         this happens automatically when we move the cursor.
351         * TextControl.cs: Add CompoundActions to the undo class. This
352         allows combining the other operations into one big option.  ie a
353         paste will combine { delete old, insert new, move cursor }
354         - Add InsertString undo operation
355         - New method for deleting multiline text
356         - Add carriage returns to lines. So we can preserve carriage
357         returns when text is 'roundtripped'
359 2006-12-04  Chris Toshok  <toshok@ximian.com>
361         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
362         minimum 0.  Fixes the scrollbar exception in bug #80136.
364 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
366         * MdiClient.cs: 
367         * MdiWindowManager: Removed unused fields and methods.
368         
369 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
370         
371         * StatusBar.cs: Update all panels when a AutoSize=Contents
372         panel needs updating.
373         
374         * StatusBarPanel.cs: Remove twidth and only use initialize.
375         Fixes #80031.
376                 
377 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
379         * Form.cs: When a form's MdiParent is set add it directly
380         on top of the z-order in stead of relying on MdiClient's
381         ActivateChild to do it. Fixes #80135.
382         
383         * MdiClient.cs: 
384         - Remove original_order, mdi_child_list is already doing
385         the same thing.
386         - Create mdi_child_list on construction in
387         stead of first use (avoids a few null checks).
389         * MenuItem.cs: Use an already existing list of mdi children
390         to get the correct order of children and remove the other
391         redundant list.
393 2006-12-04  Chris Toshok  <toshok@ximian.com>
395         * PropertyGridView.cs: cached_splitter_location is only used in
396         !DOUBLEBUFFER code.
398         * PropertyGrid.cs: implement the ComComponentNameChanged event
399         using Events, hoping that would fix the warning.  Looks like a
400         compiler bug instead (#80144).
402         * PropertyManager.cs: remove unused method.
404 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
406         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
407         include parentesis to fix expression evaluation. Fixes #79634.
409 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
410         
411         * MenuAPI.cs:
412         - Changes to fix behavior in Menu control, some reported in #80097
413         and other detected during behavior refactory like a select event
414         problems.
415         - Remove unneded "if's" conditions.
416         - Created an internal to flag when popup is active in control, we need 
417         it because in .NET you can have menu active but without popup active
418         when you active menu using popup without visible items.
419         - Mimic win32 behavior for Select and Popup events.  
420         - Dont open popup menu when you dont have visible subitems.
421         - Do nothing when click on disabled menu item.
422         - Some small changes to follow the coding style guidelines.
423         - Unselect menu only when another control gives focus. Fixes #80097.
424         - Remove unused code.
425         
426         * MenuItem.cs: internal VisibleItems method to check if menu
427         theres visible subitems, it will be usefull to fix some 
428         behavior in Menu control.
429         
430 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
431         
432         * Timer.cs: Tag property for 2.0 profile.
433         
434 2006-12-01  Chris Toshok  <toshok@ximian.com>
436         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
437         
438         * Win32DnD.cs: comment out some unused fields.
440         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
441         some unused properties/methods.
443         * XplatUIX11.cs: fix MousePosition so we override the base class's
444         property instead of conflicting with it.
446         * PictureBox.cs: comment out some unused fields
448         * OSXStructs.cs: make some struct fields public.
450         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
451         MousePosition so we override the base class's property instead of
452         conflicting with it.
454         * X11Dnd.cs: comment out some unused fields
456         * X11DesktopColors.cs: fix some struct field visibility to quiet
457         the compiler.
459         * X11Dnd.cs: remove some debug code.
461         * ThemeClearlooks.cs: comment out unused field.
463         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
465         * ThemeGtk.cs: comment out some unused pinvokes.
467         * Timer.cs: remove some unused fields.
469         * ThemeClearlooks.cs: comment out unused field.
471         * UpDownBase.cs: comment out unused field.
473         * DataObject.cs: comment out unused field.
475         * DataGridBoolColumn.cs: reomve unused field.
477         * DataGrid.cs: remove unused field.
479         * Cursor.cs: remove old ToBitmap code.
481         * ControlPaint.cs: remove unused method.
483         * ScrollBar.cs: remove unused fields.
485         * ComboBox.cs: remove unused field, and chain up to
486         AccessibleObject ctor.
488         * ListBox.cs: remove unused field.
490         * ButtonBase.cs: wrap a couple fields in NET_2_0.
492         * GridEntry.cs: remove unused fields.
494         * Binding.cs: remove unused fields.
496         * AxHost.cs: remove unused method.
498         * ContainerControl.cs: remove unused field.
500         * ScrollableControl.cs: remove unused fields.
502 2006-12-01  Chris Toshok  <toshok@ximian.com>
504         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
505         the Where/WhereString stuff.  it's easy enough to CWL
506         Environment.StackTrace.
508         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
509         unused private fields.
511 2006-12-01  Jackson Harper  <jackson@ximian.com>
513         * TextControl.cs: Do not update the view while inserting multiline
514         text. If we update the view we might wrap lines, before entering
515         the new lines, which causes the new line insertion calculations to
516         be totally fubared.
517         - Remove an old TODO
518         - Make debug output a little nicer
519         
520 2006-12-01  Chris Toshok  <toshok@ximian.com>
522         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
524 2006-12-01  Chris Toshok  <toshok@ximian.com>
526         [ fix the majority of the CS0108 warnings we've been suppressing ]
527         
528         * TreeView.cs: mark BackgroundImageChanged as 'new'.
530         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
531         to "LayoutToolBar" to quiet mcs.
532         
533         * TabControl.cs: mark our ControlCollection class as 'new'.
535         * TextBoxBase.cs: mark some events as 'new'.
537         * Splitter.cs: TabStop is 'new'.
539         * ControlBindingsCollection.cs: mark a few methods as new since
540         they change the visibility from protected to public.
542         * RadioButton.cs: DoubleClick -> base class, and remove unused
543         HaveDoubleClick.
545         * MonthCalendar.cs: ImeMode property -> base class, and mark many
546         events as new.
548         * NumericUpDown.cs: TextChanged -> base class.
550         * CheckedListBox.cs: mark our ObjectCollection class as new to
551         quiet mcs.
553         * FolderBrowserDialog.cs: make HelpRequest event new and have it
554         muck with the base class.
556         * StatusBar.cs: fix some mcs warnings about Update being the same
557         name as a base class method.
559         * RichTextBox.cs: mark some events as new, and make them do things
560         to the base class impl.
562         * UserControl.cs: mark TextChanged as new, and have it manipulate
563         base.TextChanged.
565         * UpDownBase.cs: mark some things new.
567         * CheckBox.cs: mark DoubleClick "new", and add some text about
568         what we need to look at.
570         * Panel.cs: make the events "new", and manipulate the base
571         version.  these are just here for attributes.
573         * AccessibleObject.cs: make owner private.
575         * Control.cs: deal with AccessibleObject.owner being private.
576         cache our own copy if we need it.
578         * Button.cs: add "new" to the DoubleClickEvent.
580         * ListBox.cs: no need to track our own has_focus here.  let
581         Control.has_focus do it for us.  Also some other work to clear up
582         warnings about not overriding base class methods of the same name.
583         
584         * ComboBox.cs: clear up some warnings about not override base
585         class methods of the same name.
587 2006-12-01  Chris Toshok  <toshok@ximian.com>
589         * Form.cs: flag a few things as "new" to quiet some of the mcs
590         warnings.
592         * AxHost.cs: same.
594         * PrintPreviewDialog.cs: same.
596         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
597         now DGV isn't so horrible on the class status page.  also, move
598         all events to using System.ComponentModel.EventHandlerList.  my
599         wrists hurt.
601 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
603         * MdiWindowManager.cs:
604         - Set form to active mdi child if shown,
605         and update the active mdi child to the next 
606         remaining child in the z-order if the form is hidden.
608         * Form.cs: 
609         - Track if the form has been visible and if its 
610         visibility is beeing changed, so that the MdiClient
611         can properly decide the ActiveMdiChild. The MdiClient 
612         cannot track this since the form can change visibility 
613         before MdiClient is created.
615         * MdiClient.cs:
616         - Don't activate anything of the parent form is changing
617         its visibility.
618         - Rework ActiveMdiChild to only return visible mdi 
619         children and take into account several other corner 
620         cases.
622 2006-12-01  Chris Toshok  <toshok@ximian.com>
624         * IBindableComponent.cs: new 2.0 interface.
626 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
628         * DataGrid.cs: Font for caption area is bold by default.
630 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
632         * Menu.cs: Tag property for 2.0.
633         
634 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
636         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
637         
638 2006-12-01  Chris Toshok  <toshok@ximian.com>
640         * TreeView.cs: doh, the Begin* events should be
641         TreeViewCancelEventHandler.
643 2006-12-01  Chris Toshok  <toshok@ximian.com>
645         * Form.cs: Form.ControlCollection already stores off the
646         form_owner field.  don't access the base class's internal "owner"
647         field.
649         * Control.cs: make all the fields in Control.ControlCollection
650         private.  there's no need for any internal fields here.
652 2006-12-01  Chris Toshok  <toshok@ximian.com>
654         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
655         OnHandleCreated.  Fixes bug #80109.
657 2006-12-01  Chris Toshok  <toshok@ximian.com>
659         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
660         SplitContainer.cs, Control.cs, StatusStrip.cs,
661         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
662         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
663         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
664         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
665         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
666         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
667         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
668         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
669         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
670         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
672         do most of the work to convert our code over to use
673         System.ComponentModel.Component.Events for
674         adding/removing/dispatching events.
677 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
679         * DataGridView.cs: Fix an ArgumentNullException reported 
680         twice today in IRC.
682 2006-11-30  Mike Kestner  <mkestner@novell.com>
684         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
685         grabbed listbox.  Fixes #80036 and #80101.
687 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
689         * Message.cs: Changed ToString() to match MS.
690         
691 2006-11-30  Jackson Harper  <jackson@ximian.com>
693         * TextBoxBase.cs: You can still change the selected text on a read
694         only textbox.
695         * TextControl.cs: Lower magic number for wrap calculations. This
696         lets text get closer to the right (far) edge.
698 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
700         * Control.cs: Tweak 2.0 layout properties.
701         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
702         * TextRenderer.cs: Add a new overload.
703         * ToolStrip*: Huge amount of changes and new features.
705 2006-11-30  Mike Kestner  <mkestner@novell.com>
707         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
708         scroll range correct.  Fixes #79994.
710 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
712         * MdiWindowManager.cs: Update main form's text when
713         a form is closed. (fixes #80038)
714         
715 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
717         * ToolBar.cs:
718         - Fix an regression in ButtonSize.
719         - Get ImeMode default value change to "Disable".
720         - Get ShowTooltips default value change to true, default value is 
721         "false" but after make a test in .NET we get "true" result as default.
722         
723 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
725         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
727 2006-11-29  Chris Toshok  <toshok@ximian.com>
729         * XplatUIWin32.cs (GetWindowTransparency): check return value of
730         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
731         SetWindowTransparency hasn't been called.
733 2006-11-29  Chris Toshok  <toshok@ximian.com>
735         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
736         if it's supported.
737         (set_AllowTransparency): reorder things a little so that the
738         WS_EX_LAYERED style is removed properly.
740 2006-11-29  Chris Toshok  <toshok@ximian.com>
742         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
743         
744         * Form.cs: only call the XplatUI transparency method (get/set) if
745         SupportsTransparency says it's supported. Otherwise fallback to
746         doing nothing (in the set case) or returning the instance field we
747         cache (in the get case).
749         * XplatUIStructs.cs: add TransparencySupport flag enum.
750         
751         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
752         change to SupportsTransparency.
754         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
755         TransparencySupport.None from SupportsTransparency.
757         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
758         TransparencySupport.Set from SupportsTransparency.
760         * XplatUIWin32.cs: implement GetWindowTransparency calling
761         GetLayeredWindowAttributes, and implement SupportsTransparency by
762         checking whether or not both
763         GetWindowTransparency/SetWindowTransparency are available
764         entrypoints.  We need to do this since SetWindowTransparency is
765         available as of win2k, but GetWindowTransparency requires winxp.
766         yay win32 api.
768         * XplatUI.cs: Add GetWindowTransparency, and change
769         SupportsTransparency to allow for either/both Get/Set.
771 2006-11-29  Chris Toshok  <toshok@ximian.com>
773         * DataGrid.cs: keep from going into an infinite loop redrawing a
774         datagrid that has no datasource.  Fixes bug #80033.
776 2006-11-29  Chris Toshok  <toshok@ximian.com>
778         * MenuItem.cs: fix the NRE when we assign text (and therefore call
779         Invalidate) before the mainmenu has been assigned to a control.
781 2006-11-29  Chris Toshok  <toshok@ximian.com>
783         * DataGrid.cs: detect when we should be double the double click
784         row/column autosize stuff, although that codepath has yet to be
785         written.  part of the work for bug #79891.
787 2006-11-29  Chris Toshok  <toshok@ximian.com>
789         * Binding.cs (SetControl): fix unit test.
791 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
793         * PageSetupDialog.cs: Validate the margins and set them in
794         PageSettings. 
795         * NumericTextBox.cs: New class to mimic the behavior of the
796         textboxes used in the printing dialogs.
798 2006-11-29  Andreia Gaita  <avidigal@novell.com>
799         
800         * Form.cs: Revert previous change (remove call UpdateBounds
801         from form constructor), because it messes with the handle creation
802         order, and that one needs lots and lots of love.
803         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
804         for valid printer and throw InvalidPrinterException if document
805         is set but printer not valid), adding a MonoTODO. Once 
806         handle creation is done properly, we can put this back in.
808 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
810         * MenuItem.cs: Create a invalidate method for menu item, to be
811         calling from set text, it make text changes to imadiate update
812         on screen. Fixes #80013. 
813         
814 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
816         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
817         fixes bug #80070 and some other problem on toolbar buttons
818         layout.
820 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
822         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
823         with dotted brush.      Fixes #79564
824         
825 2006-11-28  Andreia Gaita  <avidigal@novell.com>
827         * Form.cs: Removed call to UpdateBounds on Form
828         constructor, it was causing a call to CreateHandle
829         before it was supposed to.
830         * PrintControllerWithStatusDialog: Applied patch
831         by Chris Toshok to hide controller when there are
832         no printers available.
833         PrintDialog.cs: initialize printer settings to 
834         null - correct DefaultValues test #5
835         * PrintPreviewControl.cs: Move PrintController
836         initialization to GeneratePreview
837         * PrintPreviewDialog.cs: 
838         - Remove Preview generation     from Document_set(). It is 
839         called on OnPaint
840         - Throw InvalidPrinterException on CreateHandle if
841         a Document is set but there are no printers or 
842         printer is not valid.
843         * ThemeWin32Classic: don't paint PrintPreviewControl
844         if there is nothing to paint    
846 2006-11-28  Miguel de Icaza  <miguel@novell.com>
848         * Form.cs: Add another popular method.
850         * TabPage.cs: ditto.
852 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
854         * MenuItem.cs: Fixed a warning.
855         * InternalWindowManager: Fixed a warning.
857 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
859         * MenuItem.cs:
860         - When cloning a menu also clone MdiList and clone the 
861           window menu items properly (as the forms and menuitems
862           are kept in an internal hashtable, these need updating 
863           as well)
864         - Rewrote the window menu code, menu items are added in the
865           order the forms were added to their parent, and they are
866           updated every time the window menu is shown (before the
867           list was only generated once, in the current order of the
868           forms, and would never be updated). A checkmark is shown
869           next to the item corresponding to the active mdi child.
871 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
873         * XplatUIStructs.cs: 
874         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
875         
876         * XplatUIWin32.cs: 
877         - Added TME_NONCLIENT to TMEFlags.
878         - Handles WM_NCMOUSEMOVE in GetMessage to 
879           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
881         * MdiWindowManager:
882         - Now merges mdi child menu to parent menu when maximized.
883         - Recalculate NC areas of both mdi child and mdi parent. 
884           Fixes #79757 (4).
885           on window state and size changes.Fixes #79844 (3).
886         - Handle WM_NCCALCSIZE to properly calculate borders.
888         * Form.cs:
889         - Add/remove to the mdi containers list of mdi children 
890           in the order they are added.
891         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
892           to the maximized mdi child.
893         
894         * InternalWindowManager.cs:
895         - Only execute a click on the control buttons on the mouse up,
896           not on the mouse down. Show the state of the button 
897           (was only showing Normal state, never Pressed state). The
898           pressed button now follows the mouse (if you click the Close 
899           button and move the mouse over the Maximize button, the 
900           Maximize button will be shown as pressed). Since Win32 does
901           not generate WM_NCLBUTTONUP if you release the button outside
902           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
903           it as a mouse up.
904         
905         * ThemeWin32Classic.cs:
906         - Draw a missing border around mdi child forms. Fixes #79844 (2).
908         * MdiClient.cs:
909         - Added a list of forms which contains the order the forms are
910           added to the mdi parent.
911         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
912         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
913         - If the active form changes set the scrollbars to the top
914           of the Z order, otherwise the form could hide them.
915         - Scrollbars are now sized according to ClientSize, not 
916           to Size, and they take into account the other scrollbar
917           to determine maximum.
918         
919 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
920         
921         * XplatUI.cs:
922         * XplatUIDriver.cs:
923         * XplatUIX11.cs:
924         * XplatUIWin32.cs:
925         * XplatUIOSX.cs:
926         - Added RequestAdditionalWM_NCMessages for windows to 
927           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
928           Currently only implemented in XplatUIWin32.
930 2006-11-27  Chris Toshok  <toshok@ximian.com>
932         * Hwnd.cs: only add the hwnd to the windows hash in
933         set_WholeWindow and set_ClientWindow if whole_window/client_window
934         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
936 2006-11-27  Mike Kestner  <mkestner@novell.com>
938         * ComboBox.cs: remove redundant OnDropDown call.  It is called
939         from the ComboListBox.ShowWindow code. Fixes #79969.
941 2006-11-27  Chris Toshok  <toshok@ximian.com>
943         * Hwnd.cs: remove the setters for ExposePending and
944         NCExposePending - noone uses them.
946 2006-11-27  Jackson Harper  <jackson@ximian.com>
948         * TextControl.cs: new param for ReplaceSelection which determines
949         whether we select the new selection, or set the cursor to the end
950         of the new selection.
951         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
952         pasting, select the new text.
953         * RichTextBox.cs: Use new param for ReplaceSelection.
955 2006-11-27  Jackson Harper  <jackson@ximian.com>
957         * TextBoxBase.cs: Set the selection to the caret after the caret
958         is moved, otherwise they get out of sync.
960 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
962         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
963         it fixes #80015
965 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
967         * ThemeWin32Classic.cs: 
968         - Fix toolbar drop down arrow position.
969         - Fix drop down appearance when ToolBar.Appearance is normal,
970         it fixes #80018.
971         
972 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
974         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
975         * Control.cs: Same.
976         * UpDownBase.cs: Same.
977         * ButtonBase.cs: Same.
978         * ScrollBar.cs: Same.
979         * TrackBar.cs: Same.
980         * PictureBox.cs: Same.
981         * UserControl.cs: Same.
982         * Label.cs: Same.
983         * ListControl.cs: Same.
984         * TextBoxBase.cs: Same.
985         * ListView.cs: Same.
986         * RichTextBox.cs: Same.
987         * TreeView.cs: Same.
989 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
991         * PrintDialog.cs:
992         - Text label for where 
993         - Text label comment was not shown
995 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
997         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
999 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1001         * InternalWindowManager.cs: 
1002         - Handle WM_PARENTNOTIFY to activate the form
1003         if any child control is clicked.
1004         - The form is only sizable if not minimized.
1006         * MdiWindowManager.cs:
1007         - Save the IconicBounds if the form is moved.
1008         - Rework SetWindowState, now the window bounds 
1009         are stored only if the old window state is Normal.
1010         
1011         * MdiClient.cs:
1012         - In SetWindowStates store the old window state if 
1013         the window is maximized and restore window state if
1014         the window looses focus.
1015         - Don't handle any scrollbar value changes if 
1016         initializing the scroll bars. Fixes #79771.
1017         - Reworked ArrangeIconicWindows. Current algorithm
1018         tests bounds agains all other minimized windows, if
1019         any intersections create new bounds (going left to 
1020         right, bottom to top) and then test again. When 
1021         successful the bounds are saved and never computed
1022         again. Fixes #79774.
1024 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1026         * InternalWindowManager.cs: Added HandleTitleBarUp.
1028 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1030         * NumericUpDown.cs: In .NET 1.1, user entered text is still
1031         hexadecimal in ParseUserEdit.
1033         
1034 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
1036         * MdiWindowManager.cs: 
1037         - Handle a click on the form's icon to show the 
1038         system menu (when maximized). Fixes #79775.
1039         - Change the existing click handler for the form's
1040         icon when not maximized to show on MouseUp.
1041         Fixes #79776.
1043         * Form.cs: In OnResize only layout the mdi child's
1044         parent if it actually has a parent. Might not if
1045         the window is closing.
1048 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1050         * MdiClient.cs: Ignore active MDI client for text of parent, if
1051         child has no text set.
1053 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
1055         * ToolBar.cs: Fixed ToString to match MS.
1057 2006-11-22  Andreia Gaita  <avidigal@novell.com>
1059         * NumericUpDown: 
1060         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
1061         update inner values on set. Fixes #79966.
1062         - Override OnLostFocus to update value on NET 2. Fixes #79950.
1063         - Fix hexadecimal parsing.
1064         
1065         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
1066         parent. Fixes #79957
1068 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1070         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
1071         the actual size has to be queried, since if height /
1072         width is negative Win32 changes it to 0. 
1073         Fixes #79999 on Windows.
1074         
1075         * XplatUIX11.cs: Set height / width to 0 if negative
1076         in SetWindowPos. Fixes #79999 on Linux.
1077         
1078 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
1080         * ThemeWin32Classic.cs: Fix text redenring when button is
1081         pressed.
1083 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
1085         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
1086         and later navigate by mouse. Fixes #79528.
1088 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
1090         * ToolBar.cs: Set default value for TabStop to false in
1091         constructor, it fixes remaining behavior of bug #79863.
1093 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1095         * MdiWindowManager.cs:
1096         * InternalWindowManager.cs:
1097         - Moved a few methods specific to Mdi from 
1098         InternalWindowManager to MdiWindowManager.
1099         Fixes #79996.
1100         
1101 2006-11-21  Chris Toshok  <toshok@ximian.com>
1103         * XplatUIOSX.cs: stub out InvalidateNC.
1105         * XplatUIWin32.cs: implement InvalidateNC using the call I found
1106         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
1108         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
1110         * XplatUIDriver.cs: add InvalidateNC abstract method.
1112         * XplatUI.cs: add InvalidateNC.
1114 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
1116         * ToolBar.cs: Invalidate complete button area when pressed status 
1117         was changed.
1118         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
1119         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
1120         by 1 when button is pressed.
1122 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1124         * ToolButton.cs: Invalidate middle of DropDown button when
1125         ToolBar theres DropDownArrows.
1126         * ThemeWin32Classic.cs: Change position of DropDown arrow and
1127         fix DropDown drawing operations.
1129 2006-11-20  Chris Toshok  <toshok@ximian.com>
1131         * NativeWindow.cs: fix the formatting of functions ('{' on the
1132         following line), and enable the thread exception dialog.
1134         * Application.cs: remove the duplicate exception catching from
1135         here.
1137 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1139         * Toolbar.cs: Triggers button click event when click on icon
1140         of dropdown ToolBarButton. Fixes #79912.
1141         
1142 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1144         * Theme.cs:
1145         * ThemeWin32Classic.cs:
1146         - Added a property WindowBorderFont to enable themeing
1147           of mdi child windows' Text.
1148           
1149 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1151         * InternalWindowManager.cs:
1152         * Form.cs:
1153         * MdiClient.cs:
1154         * MdiWindowManager.cs: 
1155         - If mdi child is maximized, set mdi parent's
1156           text to "Parent - [Child]". Fixes #79770.
1157         - If there is any maximized mdi child windows, only the active 
1158           window (and any new windows) is maximized, the rest are normal.
1159         - On a WindowState change only save mdi child's window bounds 
1160           if the old window state was normal. Fixes #79774.
1161         - The scroll bars are now calculated on hopefully all
1162           necessary events. Fixed #79771 / #79844->6 / #79906.
1163         - MdiClient.SizeScrollBars() now takes into account docked 
1164           controls in the parent when calculating available space.
1165         - InternalWindowManager now always repaints the entire title
1166           area. Fixes #79844->1/4/5.
1167         - Added RequestNCRecalc on mdi child windowstate changes.
1168           Fixes #79772.
1170 2006-11-20  Mike Kestner  <mkestner@novell.com>
1172         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
1173         in the MouseUp handler of the listbox and move the return handling
1174         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
1176 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
1178         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
1180 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
1182         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
1183           working in 1.2.x anymore. So, updated.
1185 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
1187         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
1188         NumberGroupSeparator of current culture instead of assuming en-US.
1189         Fixed bug #79967.
1191 2006-11-17  Mike Kestner  <mkestner@novell.com>
1193         * Control.cs: Add the concept of implicit bounds setting so that
1194         dock/undock round trips preserve explicitly set size/locations.
1195         Fixes #79313.
1197 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
1199         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
1200           can't handle those filters. (Fixes bug #79961)
1202 2006-11-17  Chris Toshok  <toshok@ximian.com>
1204         [ fixes the exit/crashes associated with #79835.  it's clearly
1205         suboptimal though, we need to figure out a better way to solve
1206         this. ]
1207         
1208         * PrintPreviewControl.cs: deal with the new invalid printer
1209         exceptions.
1211         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
1212         and return false (so CommonDialog.ShowDialog doesn't actually show
1213         the form.)
1215         * PrintDialog.cs: enable/disable the Ok button depending on
1216         whether or not the printer is valid.
1218         * CommonDialog.cs (ShowDialog): only actually show the form if
1219         RunDialog returns true.
1221 2006-11-17  Jackson Harper  <jackson@ximian.com>
1223         * TextControl.cs: When soft splitting a line, mark it as a soft
1224         split line. Also carry over the current line break to the next
1225         line.
1227 2006-11-17  Chris Toshok  <toshok@ximian.com>
1229         * XplatUIX11.cs: when scrolling a window with an invalid area, we
1230         only want to shift the part of the invalid area that overlaps the
1231         area we're scrolling.  we also don't want to clear the invalid
1232         area unless the invalid area was entirely contained within the
1233         scrolling area.
1235 2006-11-16  Chris Toshok  <toshok@ximian.com>
1237         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
1238         also make sure to free the memory returned by XGetWindowProperty
1239         in GetText().
1241         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
1243 2006-11-16  Chris Toshok  <toshok@ximian.com>
1245         * XplatUI.cs: add a new super secret way to get at the totally
1246         unsupported X11 backend.
1248 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
1250         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
1252 2006-11-16  Jackson Harper  <jackson@ximian.com>
1254         * TreeView.cs: Allow more explicit setting of top node position
1255         for scrollbars. Slower algo, but more accurate.
1256         - CollapseAll should maintain the current top node.
1257         * TextBoxBase.cs: When positioning the caret, use the line, pos
1258         method, since the x, y method does not grab the correct tag, and
1259         the caret height never gets set correctly. (Maybe I should just do
1260         away with the caret having its own height, and always use the
1261         carets current tag for height).
1263 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
1265         [Fixes 79778, 79923]
1267         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
1268         Parent to the FosterParent instead.
1270 2006-11-16  Jackson Harper  <jackson@ximian.com>
1272         * TreeView.cs: Need to recalc the topnode when we expand or
1273         collapse. The scrolling methods can't handle this on their own,
1274         since they use differences between the last scroll position, and
1275         those difference get completely messed up since we are expanding
1276         nodes.  This problem should probably be fixed in the scrolling
1277         methods, so they can figure out exactly where they are, but this
1278         will slow things down a little.
1279         * ThemeWin32Classic.cs: Special case for groupboxes with empty
1280         strings, makes nunit-gui look a lot nicer.
1282 2006-11-16  Chris Toshok  <toshok@ximian.com>
1284         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
1285         the broken multithreaded event handling we have in here.  File
1286         this entry under "Why we should move to the new X11 backend".
1288         Any thread can make it into UpdateMessageQueue, which gets events
1289         from the X socket - some of which could belong to hwnds being
1290         managed by a different thread.  We can also have multiple threads
1291         in UpdateMessageQueue at the same time, with each one reading from
1292         the X socket.  This leads to many problems, with the following
1293         solutions:
1295         We can't use hwnd.Queue.Enqueue anywhere in here and must use
1296         EnqueueLocked.
1298         The MotionNotify compression we do can't work across threads
1299         (without locking the entire queue, perhaps) since we call
1300         hwnd.Queue.Peek, so we just punt and don't compress motion events
1301         unless the owning thread is the one which got the X event.
1303         ConfigureNotify is another fun one, since it modifies the hwnd's
1304         bounds and then enqueues the event.  We add a lock to Hwnd which
1305         is held when setting configure_pending to true (and enqueuing the
1306         event).
1308         There is a race wrt the wake socket.  we need to make sure that
1309         only 1 thread is waiting on that socket, or else a thread could
1310         sleep waiting for data that never comes.  It's difficult (but not
1311         impossible) to make happen, because it seems to require something
1312         like the following:
1314             1. Thread 1 polls on wake_receive
1315         
1316             2. poll returns saying there's data to be read on
1317                wake_receive.
1318         
1319             3. Thread 2 polls on wake_receive and immediately returns
1320                saying there's data to be read.
1322             4. Thread 2 reads the wakeup byte from wake_receive
1324             5. Thread 1 attempts to read the wakeup byte from
1325                wake_receive.
1327             6. Thread 2 exits (due to a form closing, perhaps).
1329             7. Thread 1 blocks forever.
1330         
1331         Fun, eh?
1333         Fixing the Expose handling isn't done yet, and the races inherent
1334         in that piece of code are responsible for the drawing mistakes you
1335         see when generating expose events in a MT app (like NPlot).  This
1336         one is the likely to be the hardest to bandaid, and it doesn't
1337         appear to cause anything but drawing problems.  The other issues
1338         caused apps to exit or hang.
1340         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
1341         called from a different thread than the one that should be calling
1342         these functions.
1344         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
1346 2006-11-15  Chris Toshok  <toshok@ximian.com>
1348         * Application.cs: null out the context's MainForm when we exit
1349         RunLoop.  Fixes a newly checked in unit test as well as the last
1350         ODE from bug #79933.
1352 2006-11-15  Chris Toshok  <toshok@ximian.com>
1354         * Form.cs (set_Owner): allow a null value so we can clear the
1355         form's owner.
1356         (Dispose): set all our owned_form's Owner properties to null, and
1357         clear the owned_forms collection.
1358         (WM_CLOSE): clean up this a little bit.. still not right though.
1360         * ApplicationContext.cs: OnMainFormClosed should only call
1361         ExitThreadCore if the main form isn't recreating.  Fixes unit
1362         test.
1364 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1366         [Fixes 78346]
1368         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
1370 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1372         [Fixes 79433]
1374         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
1375         keep popup window types from stealing focus from the main form
1376         on Windows.
1378         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
1380         * MenuAPI.cs: Set above flag to true.
1382 2006-11-15  Chris Toshok  <toshok@ximian.com>
1384         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
1385         the button being released is not in wParam.
1387 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1389         * Form.cs: Add the released button to MouseEventArgs.Button
1390         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
1391         on Win32.
1393 2006-11-15  Chris Toshok  <toshok@ximian.com>
1395         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
1396         GetText().  untested because it's unused in our implementation.
1397         Control.Text always caches the text, even if
1398         ControlStyles.CacheText is not set.
1400         fixes bug #79939.
1402 2006-11-15  Chris Toshok  <toshok@ximian.com>
1404         [ fixes #79933 ]
1405         
1406         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
1407         message.  no hiding, no disposing.
1409         in the WM_CLOSE handler, hide the form if it's modal.
1411 2006-11-15  Chris Toshok  <toshok@ximian.com>
1413         * XplatUIX11.cs: use AddExpose instead of sending a message.
1414         fixes textbox border drawing.
1416 2006-11-15  Chris Toshok  <toshok@ximian.com>
1418         * PropertyGridView.cs: keep from crashing on mouse move/down when
1419         the property grid is empty.
1421 2006-11-14  Jackson Harper  <jackson@ximian.com>
1423         * TextControl.cs: Make PageUp and PageDown more like the MS
1424         versions.
1425         * TextBoxBase.cs: When we set the text property position the
1426         cursor at the beginning of the document.
1428 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1430         * Form.cs: if a mdi child's WindowState has changed
1431         before it's creation, it would display wrong control
1432         buttons.
1433         
1434 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
1436         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
1437           (Fixes bug #79927)
1439 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1441         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
1442         the window gets to paint its borders even if the window is
1443         getting smaller.
1444         
1445         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
1446         otherwise the old control buttons would still be painted 
1447         if the window gets bigger.
1448         
1449         * PaintEventArgs.cs: add an internal method so that the clip 
1450         rectangle can be changed.
1451         
1452 2006-11-13  Chris Toshok  <toshok@ximian.com>
1454         [ fixes bug #79745 ]
1455         
1456         * NotifyIcon.cs: lots of cleanup.
1458         * X11Structs.cs: add an enum for XEMBED messages.
1460         * XplatUIX11.cs: reindent one of the giant switch statements, it
1461         was taking up an additional tab stop, and this file is already way
1462         too wide for my laptop's screen.
1464         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
1465         we get it, resize the hwnd to the WMNormalHints max_width/height.
1467 2006-11-13  Jackson Harper  <jackson@ximian.com>
1469         * TextBoxBase.cs: Compute the value changes for the mouse wheel
1470         teh simple way.
1472 2006-11-13  Chris Toshok  <toshok@ximian.com>
1474         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
1475         #79898.  force a reference to the Region to stick around so the
1476         unmanaged object isn't collected (rendering our handle in the MSG
1477         stale).
1479 2006-11-13  Chris Toshok  <toshok@ximian.com>
1481         * XplatUIX11.cs: fix #79917 for window managers which support
1483         using XStoreName on the raw utf8, and we need to convert to
1484         COMPOUND_TEXT if it's non-latin1.
1486 2006-11-13  Chris Toshok  <toshok@ximian.com>
1488         * Form.cs (set_DialogResult): we need to set closing to false if
1489         we're setting our result to None.  fixes bug #79908.
1491 2006-11-13  Jackson Harper  <jackson@ximian.com>
1493         * TextControl.cs: When formatting text, compute the adjusted tag
1494         lengths correctly, using FindTag for the end tag instead of trying
1495         to figure it out outselves.
1496         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
1497         the item, ItemHeight doesn't work, because trees with large
1498         imagelists use those for their height
1499         * TreeView.cs: ActualItemHeight factors in the image height
1500         - compute left edge of checkboxes correctly
1501         - when expanding/collapsing move the bottom down one pixel, so we
1502         aren't moving part of the node
1504 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1506         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
1507         stack in PaintEventStart so that it won't get disposed by the gc
1508         before reaching PaintEventEnd.
1510 2006-11-13  Jackson Harper  <jackson@ximian.com>
1512         * TextBoxBase.cs: Don't select the word if we are on a line with
1513         no text.
1514         - We don't need to position the caret on mouse up, since the mouse
1515         move handler should be doing this
1516         - When double clicking a blank line, the caret is advanced to the
1517         next line.
1519 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
1521         * TreeNodeCollection.cs: Avoid duplicating indexer code.
1523 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
1525         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
1526         Fixes part of bug #79910.
1528 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
1530         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
1531           (bug #79903). Some minor string updates to match ms.
1533 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1535         * FileDialog.cs: Don't add an extension if the filename
1536           already ends with that extension.
1538 2006-11-10  Jackson Harper  <jackson@ximian.com>
1540         * TreeView.cs: Use the currently highlighted node for the
1541         BeforeSelect event.
1542         * TextBoxBase.cs: There is no need to expand selection on
1543         MouseMove.
1544         - CanUndo means 'is there any undo operations', not 'is undo
1545         allowed on this textcontrol. Fixed ClearUndo unit test.
1547 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
1549         * Button.cs: only perform click when button is Selectable (so as 
1550         not to activate default buttons when they're disabled)
1551         
1552         * Control.cs: Rewrite of the SelectNextControl and related 
1553         methods. HandleClick now selects next control if the current one
1554         is being disabled.
1555         
1556         * Form.cs: OnActivated selects next active control only if Load 
1557         has already occurred. If Load hasn't run, there's no point in 
1558         selecting here, Load might change the state of controls.
1559         
1560         * FocusTest.cs: Tests marked as working again for these fixes
1562 2006-11-10  Chris Toshok  <toshok@ximian.com>
1564         * XplatUIX11.cs: a couple of fixes.
1566         - use XInternAtoms with almost all the atoms we need to register,
1567         instead of many, many calls to XInternAtom.  should help a bit on
1568         startup time, at the expense of making the code look a little
1569         worse.
1571         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
1572         isn't reparented (which seems to be a clue that we're running fon
1573         compiz) and they have an Owner form.  This fixes the tool windows
1574         in paint.net when running under compiz.
1576         - when setting the opacity of a window, support both the case
1577         where the window has been reparented and also when it hasn't been.
1578         Since compiz/beryl doesn't seem to reparent windows, and these are
1579         the only window managers which support translucency, I'm not sure
1580         why we need the hwnd.reparented case at all.. but leave it in.
1581         now we get translucent windows in paint.net under compiz/beryl.
1583 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1585         * FileDialog.cs: Always return the value for FilterIndex that
1586           was set. Internally convert it to values that make sense.
1588 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1589         
1590         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
1592 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1594         * Toolbar.cs: Change default value of DropDownArrows to true, the 
1595         signature still using false to make it compatible with MS but the 
1596         initial value is true. Fixes #79855.
1598 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1600         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
1601           only available on Linux.
1603 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
1605         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
1606         reduce number of calls to redraw method during toolbar creation.
1608 2006-11-09  Mike Kestner  <mkestner@novell.com>
1610         * ListView.cs : raise SelectedIndexChanged when an item is selected
1611         programmatically via the Item.Selected property.  Gert's nice 
1612         ListViewSelectedIndexChanged test fixture now runs clean.
1614 2006-11-09  Mike Kestner  <mkestner@novell.com>
1616         * ListView.cs : raise SelectedIndexChanged when a selected item is
1617         removed from the item collection using Remove or RemoveAt.
1619 2006-11-09  Mike Kestner  <mkestner@novell.com>
1621         * ListView.cs : raise SelectedIndexChanged once per selected item
1622         for compat with MS.  Fixes #79849+.
1624 2006-11-09  Chris Toshok  <toshok@ximian.com>
1626         * TabControl.cs: initialize row_count to 0, and set it to 1 when
1627         we need to (if we have any tab pages).  Fixes unit test.
1629 2006-11-09  Chris Toshok  <toshok@ximian.com>
1631         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
1632         width is 0, not 3.  Fixes a unit test.
1634 2006-11-09  Mike Kestner  <mkestner@novell.com>
1636         * ListView.cs : use Implicit scrollbars so that focus isn't 
1637         stolen from the listview when they are clicked. Fixes #79850.
1639 2006-11-09  Chris Toshok  <toshok@ximian.com>
1641         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
1642         have a root item.  Fixes #79879.
1644 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
1646         * FileDialog.cs:
1647           - Fix ToString ()
1648           - An ArgumentException is now thrown if a wrong filter
1649             is applied (matches ms). The previous filter doesn't change
1650             anymore if an exception is thrown.
1651           - Changing the FileName property also affects FileNames
1652         * ColorDialog.cs: The length of the CustomColors array is always
1653           16. It doesn't matter if we use a smaller array or null to update
1654           or change the custom colors property.
1655         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
1656           for RootFolder if we get a undefined value.
1658 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1660         * StatusBarPanel.cs: 
1661         - Width is set to MinWidth if Width is smaller than
1662         MinWidth. Fixes #79842.
1663         - MinWidth now always overrides Width (MSDN says MinWidth
1664         is set to Width when AutoSize = None, but they do not 
1665         behave like that).
1666         - Style has now the the correct default value.
1667         
1668 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1670         * TrackBar.cs: 
1671         - The control is completely invalidated on 
1672         Got/LostFocus to draw the focus rectangle correctly.
1673         - When AutoSize then height is always 45 (width for 
1674         vertical controls).
1675         
1676         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
1677         on the mouse when moved and it doesn't move when grabbed
1678         until the mouse moves as well. Also fixed some wrong 
1679         calculations when clicking on the thumb (control thought
1680         click was outside of thumb and didn't grab it).
1681         Fixes some of the issues in #79718.
1683 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
1685         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
1687 2006-11-08  Chris Toshok  <toshok@ximian.com>
1689         * PropertyGridView.cs: only call ToggleValue if the item is not
1690         readonly.
1692 2006-11-08  Jackson Harper  <jackson@ximian.com>
1694         * TextBoxBase.cs: The RichTextBox and textbox have very different
1695         word selection methods.  Implement the textbox's simple word
1696         selection here, and let the RichTextBox override and provide it's
1697         own.
1698         - Don't do extra selection on mouseup
1699         * RichTextBox.cs: Use the documents word selection algorithm, I
1700         think ideally, this function will be pulled into the
1701         RichTextBox.cs code someday.
1703 2006-11-08  Chris Toshok  <toshok@ximian.com>
1705         * RootGridEntry.cs: new class to represent GridItemType.Root.
1707         * CategoryGridEntry.cs: reformat, and add boilerplate.
1708         
1709         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
1710         returns the UI parent anyway, and we need special handling to
1711         implement the GetTarget method in the face of it.  Also, implement
1712         Select().
1714         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
1715         a root grid item, and use that instead of PropertyGrid.grid_items.
1716         Also, make use of TypeConverters (and add limitted support for
1717         ICustomTypeDescriptors) when initially populating the grid.
1718         Arrays now show up more or less properly.
1720 2006-11-08  Chris Toshok  <toshok@ximian.com>
1722         * Application.cs: set the modal dialog to non modal after we close
1723         it.  Fixes bug #79866.
1725 2006-11-08  Jackson Harper  <jackson@ximian.com>
1727         * TextControl.cs: When combining lines carry over the line end
1728         style from the end line.
1729         - Invalidate the selected area when setting it, if it is visible.
1730         * TextBoxBase.cs: Only rich text box can do full line selects.
1731         - Make sure to set the cursor position when there is a click,
1732         otherwise two clicks in separate areas could cause a large chunk
1733         to be selected.
1735 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1737         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
1738         Fixes #79863.
1740 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1742         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
1743         time. Remove tooltips when ToolButton click events.  Fixes #79856.
1745 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1747         * MenuAPI.cs: Ignore right click for menu actions and fixes
1748         menu border when clicked.  Fixes #79846.
1750 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1752         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
1753         MouseState after create wParam for message, this fixes mouse button 
1754         equal none in mouse up events.
1755         
1756 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
1758         * Control.cs : Focus() now calls Select to set the Container's
1759         Active Control and to give it focus. To avoid infinite recursion
1760         (because ActiveControl also calls Focus at one point), a check 
1761         is made in Focus with the help of a new internal variable
1762         is_focusing.
1764 2006-11-07  Mike Kestner  <mkestner@novell.com>
1766         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
1767         if there's a selection.  Fixes #79849.
1769 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
1771         * PropertyGrid.cs: Avoid fixed height of help description label.
1772         Fixes part of bug #79829.
1774 2006-11-07  Chris Toshok  <toshok@ximian.com>
1776         * XplatUIX11.cs: fix #79790 again, by using the
1777         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
1779 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1781         * ToolBar.cs: Fix left click checking.
1783 2006-11-07  Chris Toshok  <toshok@ximian.com>
1785         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
1787 2006-11-07  Chris Toshok  <toshok@ximian.com>
1789         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
1790         PropertyManager unit tests.
1792         * PropertyManager.cs: make property_name internal.
1794 2006-11-07  Chris Toshok  <toshok@ximian.com>
1796         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
1797         pass a unit test.  Also, don't set image_index to anything in
1798         response to setting the ImageList property.
1800 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1802         * ToolBar.cs: Ignore click events when mouse button is not a
1803         left button, only accepts other button for dropdown menus.  
1804         Fixes #79854.
1806 2006-11-07  Chris Toshok  <toshok@ximian.com>
1808         * DataGrid.cs: make the back and parent row buttons a little less
1809         ugly.
1811 2006-11-07  Jackson Harper  <jackson@ximian.com>
1813         * TextBoxBase.cs: When converting to Text don't put line breaks in
1814         for soft line breaks.
1815         * TextControl.cs: There is an initial "fake" line in the document,
1816         this is now a soft break line, so that an extra line feed doesn't
1817         get added to the end of documents.
1819 2006-11-07  Chris Toshok  <toshok@ximian.com>
1821         [ fix bug #79778 ]
1822         
1823         * CurrencyManager.cs: if the list is readonly, don't bother
1824         checking if IBindingList.AllowNew is true.
1826         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
1827         for non-DataRowView datasources..  or rather, make it not crash.
1828         (DataGridPaintRelationRow): make sure we limit the row painting to
1829         the area not covered by the row header, and make our cell width at
1830         least large enough to cover the relation area.  This allows grids
1831         that have relations but no rows to render correctly.
1832         (DataGridPaintRowContents): same type of changes here.
1833         (SetDataSource): move back to always calling
1834         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
1835         navigating back through relations.
1836         (HitTest): handle the case where we have no cells but have
1837         relations.  Right now we generate a hit in cell 0 of whatever the
1838         row is, not sure if this is strictly correct, but it works for our
1839         purposes.
1840         
1841         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
1842         bother doing anything.
1844 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
1846         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
1847         early version of StatusStrip.  Not responsible for eaten
1848         application or firstborn children.
1850 2006-11-06  Chris Toshok  <toshok@ximian.com>
1852         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
1853         call GetTabRect with a -1 index.  Fixes #79847.
1855 2006-11-06  Jackson Harper  <jackson@ximian.com>
1857         * TreeNodeCollection.cs: Update scrollbars after clearing.
1859 2006-11-06  Chris Toshok  <toshok@ximian.com>
1861         * NumericUpDown.cs: fix the ToString method for some unit test
1862         love.
1864 2006-11-06  Chris Toshok  <toshok@ximian.com>
1866         * PropertyGrid.cs:
1867         - set the initial SelectedGridItem if we can.
1869         - Exclude non-mergable properties only if we're merging > 1
1870         object.  Merging 1 object isn't really merging, obviously.
1872         - Handle PropertySort.NoSort just like Alphabetical, which is
1873         wrong of course, but at least gets things on the screen.
1874         
1875         * PropertyGridView.cs:
1876         - Add method "FindFirstItem" which finds the first property grid
1877         item, so we can select it by default.
1879         - make use of GridEntry.CanResetValue.
1881         - Don't call RedrawBelowItemOnExpansion here anymore, the
1882         individual GridEntry's will do that.
1884         - Remove the ITypeDescriptorContextImpl internal class.
1885         
1886         * GridEntry.cs:
1887         - this class needs to implement ITypeDescriptorContext, as it's
1888         what MS's PropertyDescriptorGridEntry does, which means we can
1889         remove the ITypeDescriptorContextImpl internal class from
1890         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
1892         - keep a reference to our PropertyGridView, and move the call to
1893         RedrawBelowItemOnExpansion here from PGV.  This means
1894         programmaticly setting Expanded actually does something visible.
1896         - add a CanResetValue() function which takes into account our
1897         possibly multiple "selected_objects" in the merged case.  Shifting
1898         PropertyGridView to use this method fixes another unreported
1899         crasher found running the test for #79829.
1901         - when Top or Bounds is updated, make sure the PropertyGridTextBox
1902         is updated to reflect this.
1904         * CategoryGridEntry.cs: the ctor takes the PGV now.
1905         
1906 2006-11-06  Jackson Harper  <jackson@ximian.com>
1908         * TextControl.cs: These are 1 based.
1909         * TextBoxBase.cs: When setting the selected text, don't change the
1910         selected text tags, this is done by ReplaceText, just position the
1911         cursor at the end of the new text.
1913 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1915         * ListView.cs: Allow label edit only when, when LabelEdit is
1916           set to true.
1918 2006-11-06  Jackson Harper  <jackson@ximian.com>
1920         * TextControl.cs: If a suitable wrapping position isn't found,
1921         just wrap right in the middle of a word.
1923 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1925         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
1926           bug #79820.
1928 2006-11-06  Jackson Harper  <jackson@ximian.com>
1930         * TreeView.cs: Can't use the VisibleCount property when setting
1931         scrollbar heights, because this doesn't take into account whether
1932         or not the horz scrollbar just came visible.
1934 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
1936         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
1937         activated.  Fixes #79369, #79832.
1939 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
1941         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
1942           had to remove support for links that point to a directory. FileInfo
1943           returns no usefull information (means, the directory they point to)
1944           for such links. Replaced some empty string ("") with String.Empty.
1946 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1948         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
1949         NullReferenceException when attempting to remove node that is not in
1950         collection. Throw NullReferenceException when null is passed to 
1951         Remove. Allow first element of the collection to be removed. Fixes
1952         bug #79831.  In GetEnumerator ().Current return null if positioned 
1953         before the first element of the collection. In GetEnumerator ().Reset,
1954         position before first element of the collection.
1956 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1958         * PropertyGrid.cs: To match MS, remove default title and description
1959         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
1960         buttons.
1962 2006-11-04  Chris Toshok  <toshok@ximian.com>
1964         * Theme.cs: add a Clamp method, just for kicks.
1966         * ThemeWin32Classic.cs: clamp all color components to [0..255].
1968 2006-11-04  Chris Toshok  <toshok@ximian.com>
1970         * Form.cs: if the form isn't visible, Close() does nothing.
1972 2006-11-03  Chris Toshok  <toshok@ximian.com>
1974         * Form.cs (Close): if the form is modal, don't Dispose of it, only
1975         Hide it.
1976         (WndProc): don't Dispose after handling the WM_CLOSE message.
1978         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
1979         them as such, instead of using casts from Control to Form.  Also,
1980         don't Dispose of the modal dialog when we fall out of the loop -
1981         Close() it instead.
1983         fixes bug #79813.
1985 2006-11-03  Chris Toshok  <toshok@ximian.com>
1987         * Control.cs (Dispose): only go through the dispose thing if we're
1988         @disposing, and we haven't already been disposed.  Fixes bug
1989         #79814.
1991         * Form.cs: no reason to call "base.Dispose()" here instead of
1992         "Dispose()".
1994 2006-11-03  Mike Kestner  <mkestner@novell.com>
1996         * ComboBox.cs : use ToString instead of casts in AddItem for
1997         sorting functionality.  Fixes #79812.
1999 2006-11-03  Chris Toshok  <toshok@ximian.com>
2001         * Application.cs: pave the way for actually using the thread
2002         exception dialog.  it's ifdefed out at the moment.
2004 2006-11-03  Chris Toshok  <toshok@ximian.com>
2006         * ThreadExceptionDialog.cs: until we get a better layout, actually
2007         hide the details textbox and label when we shouldn't see them.
2009 2006-11-03  Jackson Harper  <jackson@ximian.com>
2011         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
2012         multiline textboxes anymore.  This method also determines the
2013         width/height of a textboxes canvas area.
2014         - Sorta a revert of the last patch.  For multiline just position
2015         the controls, then bail.  This way the scrollbar width won't be
2016         altered.
2018 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
2020         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
2021         it dont need.  Fixes #79537.
2023 2006-11-02  Jackson Harper  <jackson@ximian.com>
2025         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
2026         send the status after firing the DndOver event.
2028 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2030         * TrackBar.cs: Now orientation only switches height / width if
2031         the control's handle is created (Win32 does it like this). Also 
2032         fixed a typo in ToString() for a test to pass, changed the 
2033         exception thrown in set_LargeChange and set_SmallChange to 
2034         match Win32 behaviour, and added TrackBar tests to the unit 
2035         tests.
2037 2006-11-02  Chris Toshok  <toshok@ximian.com>
2039         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
2040         not _NET_WM_STATE_NO_TASKBAR.
2042 2006-11-02  Jackson Harper  <jackson@ximian.com>
2044         * TextControl.cs: Increment count by one, since in the update view
2045         count - 1 is used.
2047 2006-11-02  Jackson Harper  <jackson@ximian.com>
2049         * TextBoxBase.cs: Use client rectangle not bounds for checking if
2050         the mouse is in the client rectangle (duh).
2052 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2053         
2054         * TrackBar.cs: Fixed trackbar jumping around when clicking
2055         on it - the trackbar was not detecting correctly at which
2056         side of the thumb the click was done. (fixes #79718)
2058 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
2060         * ListBox.cs: scroll visible area when change SelectedIndex to
2061         a non visible area.  Fixes #79481.
2063 2006-11-01  Jackson Harper  <jackson@ximian.com>
2065         * TextControl.cs: When replacing the selection move the selection
2066         start/end/anchor to the end of the new text.
2068 2006-11-01  Jackson Harper  <jackson@ximian.com>
2070         * XplatUIWin32.cs: When setting the parent change the controls
2071         visibility to it's visibility flag, not to it's old parents
2072         visibility (.Visible walks the parent chain).
2074 2006-11-01  Chris Toshok  <toshok@ximian.com>
2076         * XplatUIX11.cs: revert the #79790 fix, as the simple.
2077         XSetTransientForHint fix breaks paint .net's tool windows.  more
2078         work needed for that one.
2080 2006-11-01  Chris Toshok  <toshok@ximian.com>
2082         * ScrollBar.cs: throw ArgumentException instead of Exception in
2083         LargeChange/SmallChange setters.  fixes unit tests.
2085 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
2087         * ContainerControl.cs: reverted rev.67183 (which was itself
2088         a reversion of rev.66853... eh).
2089         
2090         * Control.cs: Fixes Reflector hang by changing Focus() call
2091         to what it was before rev.66643 (calling Select() here sets 
2092         ActiveControl, which in some situations calls back Focus and 
2093         eventually does a stack overflow). Temp fix.    
2094         Changes to GetNextControl() to not look for children to select when
2095         parent cannot be selectable (so it looks for siblings instead)  
2096         
2097 2006-10-31  Mike Kestner  <mkestner@novell.com>
2099         * CheckedListBox.cs : off by one error in returned index from
2100         ObjectCollection.Add.  Fixes #79758.
2102 2006-10-31  Chris Toshok  <toshok@ximian.com>
2104         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
2105         calls for the textbox/spinner, to keep from recursing to the point
2106         where we crash.  Fixes #79760.
2108 2006-10-31  Chris Toshok  <toshok@ximian.com>
2110         * ListControl.cs (set_SelectedValue): don't throw exceptions on
2111         null/"" value, just return.  matches ms's behavior and fixes some
2112         failing tests.
2114 2006-10-31  Chris Toshok  <toshok@ximian.com>
2116         * Control.cs (set_Capture): make a logic a little easier to
2117         follow.
2119         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
2120         if it's being destroyed.  A necessary fix surely, but a bandaid
2121         also, to fix the stuck capture problem in bug #78413.
2123 2006-10-31  Chris Toshok  <toshok@ximian.com>
2125         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
2126         convention of clearing hwnd.ClientRect when we set the
2127         width/height (so it'll be recalculated by Hwnd).
2129 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
2131         * ContainerControl.cs: reversed Contains check from
2132         ActiveControl due to hanging problems. This fix
2133         partly regresses #79667 (button does not have
2134         initial focus), so this might be a symptom for 
2135         a larger parenting problem (set_ActiveControl
2136         is being called but the child control does
2137         not have the parent set yet?)   
2138         
2139 2006-10-31  Mike Kestner  <mkestner@novell.com>
2141         * MenuAPI.cs : fix keynav when menu is click activated.
2143 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
2145         * ToolStrip*: Version 0.2.
2147         * MenuStrip.cs: Version 0.1.
2149         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
2151 2006-10-30  Chris Toshok  <toshok@ximian.com>
2153         [ fixes the oversized notify icon issue in bug #79745 ]
2154         
2155         * NotifyIcon.cs: scale the icon down to the size we're given by
2156         the XplatUI layer (this would be faster if we did it once instead
2157         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
2158         since it's never invoked.
2160         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
2161         pixels high by default, so let's hardcode our systray icon to that
2162         size.  The SYSTEM_TRAY protocol should really have a way for
2163         client apps to query for the correct icon size.. but oh well.  A
2164         couple of patches to deal with the screwy client_window ==
2165         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
2166         instance, and also make sure we don't XSelectInput twice).
2168 2006-10-30  Chris Toshok  <toshok@ximian.com>
2170         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
2171         recreating forms.  Control recreation is the bane of my existence.
2172         Fix it in a way that keeps everyone happy.
2174 2006-10-30  Chris Toshok  <toshok@ximian.com>
2176         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
2177         just non-CHILD ones.  otherwise sometimes scrollbars end up with
2178         client_windows not being resized to the proper size (ReportBuilder
2179         shows this extremely well).
2181 2006-10-30  Chris Toshok  <toshok@ximian.com>
2183         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
2184         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
2185         showing up in the gnome taskbar.  Fixes bug #79790.
2187 2006-10-30  Chris Toshok  <toshok@ximian.com>
2189         * ApplicationContext.cs: guard against a NRE.
2191         * Application.cs: null out the old MainForm for the context, so we
2192         don't try to use it again once it's disposed.  Fixes bug #79783.
2194 2006-10-30  Chris Toshok  <toshok@ximian.com>
2196         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
2197         BindingContext, set the data source directly, otherwise do the
2198         lazy approach - the actual ListManager will be created when we get
2199         a BindingContext. Fixes bug #79700.
2201 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
2203         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
2204           XplatUIX11.cs: Remove old 2 parameter SetVisible.
2206         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
2208 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
2210         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
2211         of SetVisible that allows a window to be shown, but not activated.
2212         This is needed on Windows for MenuStrip, and can probably be used
2213         with MainMenu and ComboBox to fix the focus stealing issues on
2214         Windows.
2216         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
2218 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
2220         * PictureBox.cs: Fix the output of the ToString method.
2222 2006-10-29  Chris Toshok  <toshok@ximian.com>
2224         * Control.cs (get_TopLevelControl): fix bug #79781.
2226 2006-10-29  Chris Toshok  <toshok@ximian.com>
2228         * ListControl.cs (set_DataSource): throw Exception here, not
2229         ArgumentException, to match MS behavior.
2231 2006-10-29  Chris Toshok  <toshok@ximian.com>
2233         * Form.cs: remove the try-catch's around calls to GetWindowState.
2234         We can just check the return value.
2236         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
2237         Instead return -1.
2239         * XplatUI.cs: Add note about additional return value for
2240         GetWindowState.
2242 2006-10-29  Chris Toshok  <toshok@ximian.com>
2244         * Control.cs (CreateHandle): when we create our handle, we also
2245         create the handles of our child controls.  Fixes one of the
2246         Control unit tests (CH11).
2248 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
2250         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
2252 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
2254         * ThemeClearlooks.cs: A little speedup.
2256 2006-10-27  Chris Toshok  <toshok@ximian.com>
2258         * Control.cs: implement Control.FromChildHandle in a way that
2259         matches the docs (and fixes the failed test.)
2261 2006-10-27  Chris Toshok  <toshok@ximian.com>
2263         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
2264         comments).
2266         * DataGrid.cs: implement ResetForeColor such that the tests
2267         succeed.
2268         
2269 2006-10-27  Chris Toshok  <toshok@ximian.com>
2271         * ToolBarButton.cs: setting text/tooltiptext to null results in it
2272         being set to "".  Fixes bug #79759.
2274 2006-10-27  Jackson Harper  <jackson@ximian.com>
2276         * TextControl.cs: We need to clear the entire selection area when
2277         setting the start, otherwise multiline selections are still
2278         visible.
2280 2006-10-26  Chris Toshok  <toshok@ximian.com>
2282         * PropertyGridView.cs: 
2284         - ifdef all the code specific to the double
2285         buffer case, and provide some alternatives in the non-doublebuffer
2286         code, which makes heavy use of XplatUI.ScrollWindow to move things
2287         around without having to invalidate (and cause flicker).  There
2288         are still some drawing problems in the non-doublebuffered case, so
2289         DOUBLEBUFFER is defined by default.
2291         - Fix the way dropdowns are handled.  now we explicitly watch for
2292         the events which might cause the dropdown to close, and break out
2293         of the nested event loop there.  This gets rid of all Capture
2294         code, at the expense of the Msg special casing.  Seems to work,
2295         though, and fixes bug #79743.
2297 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
2298         * Control.cs: SetIsRecreating now recreates implicitly added
2299         child controls as well. Finally fixes #79629. The flag passed to 
2300         SetIsRecreating has also been removed since it wasn't used.
2301         
2302 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2304         * PageSetupDialog.cs: Clean some code, fix some bits, 
2305         add some checks, and add a printer sub-dialog.
2307 2006-10-26  Chris Toshok  <toshok@ximian.com>
2309         * PropertyGrid.cs: make set_SelectedObject call
2310         set_SelectedObjects, and move the duplicate logic to the
2311         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
2313         * PropertyGridView.cs: hide the textbox when we get a
2314         SelectedObjectsChanged event.
2316         Fixes bug #79748.
2318 2006-10-26  Chris Toshok  <toshok@ximian.com>
2320         * PropertyGridView.cs: deal with the type converter not supporting
2321         GetStandardValues() or GetStandardValues() returning null, which
2322         is does in the default case.  Fixes #79742.
2324 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
2326         * CheckedListBox.cs: nunit no longer crashes when selecting 
2327         Project/Edit menu option
2328         
2329 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
2331         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
2332         is no menu selected. fixes #79739
2334 2006-10-25  Chris Toshok  <toshok@ximian.com>
2336         * PropertyGridView.cs: factor out the splitter invalidation code
2337         into the SplitterPercent setter, and for kicks implement the
2338         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
2339         amount in either direction.
2341 2006-10-25  Chris Toshok  <toshok@ximian.com>
2343         * PropertyGridView.cs: do some cleanup of the brush used to draw
2344         text - read only fields should be grayed out.  not sure how to do
2345         this with the textbox, though.  but the textbox's should also be
2346         readonly now at least.  Also, hide/show the textbox when resizing
2347         the control.
2348         
2349         * CursorConverter.cs: use System.Reflection when getting the
2350         properties of Cursors, as TypeDescriptor.GetProperties isn't
2351         returning static properties.
2353 2006-10-25  Chris Toshok  <toshok@ximian.com>
2355         * PropertyGridView.cs: factor out the up/down handling, and reuse
2356         it for page up/down.  also add End/Home support.
2358 2006-10-25  Chris Toshok  <toshok@ximian.com>
2360         * PropertyGridView.cs:
2362         - ensure the selected grid item is visible in the scrolled area,
2363         fixes bug #79572.
2365         - fix Keys.Down handling when you're on the last item in the
2366         propertygrid.
2368 2006-10-25  Mike Kestner  <mkestner@novell.com>
2370         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
2371         clicks too.  Fixes #79725.
2373 2006-10-24  Chris Toshok  <toshok@ximian.com>
2375         * PropertyGrid.cs: use property.Converter instead of
2376         TypeDescriptor.GetConverter(property.PropertyType), so we catch
2377         TypeConverters declared on the property as well as on the
2378         PropertyType.  Fixes bug #79678.
2380 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
2382         * MimeIcon.cs, Mime.cs:
2383           Fallback to the default platform handler if no shared mime info
2384           stuff exists (fixes #79693).
2386 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2387         * ContainerControl.cs: Incorrect contains check in ActiveControl 
2388         from previous fix (duh).
2390 2006-10-20  Chris Toshok  <toshok@ximian.com>
2392         * PropertyGridView.cs: the dropdown should be MIN(number of items
2393         in list, 15).  Fixes #79551.
2395 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2396         Fixes #79384, #79394, #79652, #79667
2397         * Application.cs: 
2398         
2399         - Modal windows are now destroyed in the proper order for windows
2400         
2401         * ContainerControl.cs:
2402         
2403         - ActiveControl setter has more conditions on when to return:
2404                 - if we're reselecting the active control, but it actually
2405                 didn't have focus (window hidden or some such), it runs
2406                 - if the active control being selected doesn't actually 
2407                 exist in the container, it returns
2408         
2409         * Form.cs
2410         
2411         - The ShowDialog now gets the current form as the owner when
2412         invoking without parameters, and correctly activates the owner 
2413         when returning
2414         
2415         * MessageBox.cs
2416         
2417         - MessageBox now catches the Escape key to exit
2419 2006-10-20  Chris Toshok  <toshok@ximian.com>
2421         * PropertyGridView.cs: fix a number of issues (bug #78565, and
2422         most of bug #79676):
2424         - you can navigate around the property grid with the arrow keys.
2426         - the dropdown is sized properly when the pg has a vertical
2427         scrollbar.
2429         - fix the indentation for subentries, and properly select the
2430         entire label rect.
2432         - fix the gray bar's drawing (only draw it to the last element,
2433         not for the height of the control.  Also make sure we draw that
2434         last horizontal grid line.
2436         - use the same mechanism the datagrid uses wrt the editing textbox
2437         when scrolling/resizing/etc.  Namely, we hide it first, do the
2438         operation, then show it again (if it's still visible).
2439         
2440         - aggressively remove a lot of unnecessary refreshes (and also
2441         calls to Invalidate(). call more limited variants, and only redraw
2442         what we need.)
2443         
2444         * PropertyGrid.cs:
2446         - when we're populating the merged collection, fill in the UI
2447         parent with either the passed in item, or the category item we
2448         create.
2450         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
2452         * GridItem.cs: drop some fully qualified names.
2453         
2454         * GridEntry.cs: add a "UIParent", which is basically the parent
2455         treenode.
2457         * GridItemCollection.cs: add an IndexOf method.
2459 2006-10-20  Mike Kestner  <mkestner@novell.com>
2461         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
2462         a working win32 NC invalidation mechanism, we can't invalidate
2463         menus.  [Fixes #79705]
2465 2006-10-20  Mike Kestner  <mkestner@novell.com>
2467         * ListBox.cs : don't update the VScrollbar if the list is empty,
2468         just hide it.  [Fixes #79692]
2470 2006-10-20  Jackson Harper  <jackson@ximian.com>
2472         * RichTextBox.cs: Handle some special chars better, and don't skip
2473         the entire group when we encounter a special char that we don't
2474         handle correctly.
2476 2006-10-18  Chris Toshok  <toshok@ximian.com>
2478         * PropertyGridView.cs: address a number of issues from bug #79676,
2479         mostly of the cosmetic variety.
2481         - The highlight rectangle for indented items not extends all the
2482         way to the left.
2484         - Indented items aren't indented so much.
2486         - the dropdown is properly sized width-wise if the pg has a
2487         vertical scrollbar.
2489 2006-10-18  Chris Toshok  <toshok@ximian.com>
2491         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
2492         systray stuff is rather convoluted to begin with.
2494         systray icons are a single window for some reason (that I haven't
2495         figured out yet), and for them, client_window == whole_window.
2496         Given the way the tests are structured elsewhere to determine
2497         which paints are pending (client vs. nc), that situation will
2498         always yield PAINT, not NCPAINT.  So, if we have a pending
2499         nc_expose and no pending expose, remove the hwnd from the paint
2500         queue, and also set nc_expose_pending to false, to keep us from
2501         blocking further expose's adding the hwnd to the paint queue.
2503         phew.  like i said, a rather convoluted change.  Fixes the
2504         notifyicon repaint issues in bug #79645.
2506 2006-10-18  Chris Toshok  <toshok@ximian.com>
2508         * Form.cs: when getting the backcolor of the form, don't get
2509         base.BackColor, as this allows parents to influence the background
2510         color.  This breaks mdi forms.  Instead, if the background_color
2511         is empty, return the default.
2513 2006-10-18  Chris Toshok  <toshok@ximian.com>
2515         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
2516         to being private instead of internal static.
2518         * Control.cs: remove all the stupid ParentWaitingOnRecreation
2519         crap, it wasn't working for more deeply nested controls anyway,
2520         and we already have the is_recreating flag - use that instead.
2521         Before calling DestroyHandle in RecreateHandle, recurse through
2522         the control tree setting it to true.  this returns the recreate
2523         code to much of its original simplicity, while now guaranteeing we
2524         actually recreate everything we're supposed to.  This change gets
2525         fyireporting actually showing mdi children.
2527 2006-10-17  Chris Toshok  <toshok@ximian.com>
2529         * Form.cs: remove some debug spew, and collapse some duplicate
2530         code at the end of SetClientSizeCore.
2532         * XplatUIX11.cs: 
2533         - add some more debug spew here too wrt Destroy handling.
2534         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
2535         in Control's handling of WM_DESTROY.
2536         - Remove the handling of zombie window DestroyNotifies from the
2537         event loop - we don't need it.  Now the only DestroyNotifies we
2538         actually handle are ones generated by X.
2539         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
2540         match gtk's (functioning) handling of this. This keep metacity
2541         from leaving droppings in the form of wm borders with no window
2542         contents all over the place.
2544         * Control.cs:
2545         - add a bunch of debug spew wrt control recreation.
2546         - fix a bug where we weren't tracking Visible properly on
2547         recreated hwnds.
2548         - fixed the WM_PAINT double buffer handling to support re-entrant
2549         calls (yes, i know it's gross, but it's happening to us).
2551 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2552         * ThemeWin32Classic.cs: changed drawing of selected days
2553         to make them look better.
2555 2006-10-16  Chris Toshok  <toshok@ximian.com>
2557         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
2558         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
2560         * XplatUIX11.cs: move away from using hwnd.client_dc and
2561         hwnd.non_client_dc and on to a stack of dc's (and in window's
2562         case, PAINTSTRUCT's), so we can deal with nested Paint calls
2563         without puking or not disposing of Graphics objects.
2565         * XplatUIOSX.cs: same.
2567         * XplatUIWin32.cs: same.
2569 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
2571         * FileDialog.cs: Don't call on_directory_changed inside
2572           OnSelectedIndexChanged (it changes the SelectedIndex too).
2573           Instead move it to OnSelectionChangeCommitted.
2575 2006-10-13  Chris Toshok  <toshok@ximian.com>
2577         * XplatUIX11.cs: more Destroy work.  the current code does the
2578         following things, in order:
2580         1. Enumerates all handles of all controls at or below the one
2581         being destroyed, in pre-order.  As it is doing this, it marks the
2582         handles as zombie and clears all references to them.
2583         
2584         2. calls XDestroyWindow on the window passed in.
2586         3. SendMessage's WM_DESTROY to all he handles in the accumulated
2587         list.
2589 2006-10-13  Chris Toshok  <toshok@ximian.com>
2591         * XplatUIX11.cs: set hwnd.zombie to true before calling
2592         SendMessage (WM_DESTROY).  this keeps us from marking the new
2593         window a zombie, and also keeps us from calling sendmessage at
2594         all.
2596 2006-10-13  Jackson Harper  <jackson@ximian.com>
2598         * TextControl.cs: Do not show the caret and selection at the same
2599         time.  Reduces ugliness by 35%.
2601 2006-10-13  Chris Toshok  <toshok@ximian.com>
2603         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
2604         zombie after we do the recursive call, so we actually do call
2605         SendMessage on the children controls.
2606         (GetMessage): if we find a pending paint event for a zombie hwnd,
2607         remove the hwnd from the paint queue, or else it will always be
2608         there (and we'll effectively loop infinitely)
2610 2006-10-13  Mike Kestner  <mkestner@novell.com>
2612         * MenuItem.cs : add Selected format under keynav too.
2613         Fixes #79528.
2615 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
2617         * PropertyGrid.cs: Fixed some NRE's and small difference between our
2618         implementation and that of MS.
2620 2006-10-13  Chris Toshok  <toshok@ximian.com>
2622         * Control.cs (OnInvalidated) only futz with the invalid_region if
2623         the control is double buffered.  this fixes the apparent hang in
2624         the ListView unit tests.  Someone needs to make the
2625         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
2627 2006-10-13  Chris Toshok  <toshok@ximian.com>
2629         * PropertyGridView.cs:
2631         - do a little refactoring so that only one place calls
2632         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
2633         else call that.  Also make it Refresh, since there are redraw bugs
2634         otherwise (we should take a look at that...)
2636         - do a little more refactoring work to share the body of code
2637         involved with the drop down.  it was duplicated in the code
2638         dealing with the listbox handling and in the code dealing with the
2639         UITypeEditors.
2641         - add a Capture to the dropdown form's control once it's
2642         displayed, and add a MouseDown handler that checks to make sure
2643         the position is inside the control.  If it's not, close the
2644         dropdown.  This fixes #78190.
2646         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
2647         if the value is different than the initial value.
2648         
2649 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
2651         * Control.cs: see #78650
2652         - Fixed GetNextControl for several cases:
2653                 - Changed FindFlatForward to return 
2654                 correct sibling control when more than one
2655                 control has same TabIndex as the currently 
2656                 focused one.
2657                 - Changed FindFlatBackward to loop children
2658                 from last to first and apply same logic as in
2659                 FindFlatForward
2660                 - Changed FindControlForward to search for
2661                 children when control is not a container
2662                 but has children, or search for siblings if
2663                 control is a container...
2664                 - Changed FindControlBackward   to continue
2665                 searching for child controls when hitting 
2666                 Panel-like parents
2667                 
2668         - Fixed Focus method to update ActiveControl
2669         (FocusTest.FocusSetsActive failure)
2670         
2671         * TabControl.cs:
2672         - Focus rectangle now refreshes when gaining
2673         or losing focus
2674         - Removed grab for Tab key on IsInputKey that 
2675         was keeping tab navigation from working (#78650)
2677 2006-10-13  Chris Toshok  <toshok@ximian.com>
2679         * PropertyGridView.cs:
2680         - Rewrite SetPropertyValue to loop over SelectedGridItem's
2681         SelectedObjects.
2683         - Deal with GridItem.Value == null a few places.
2685         * PropertyGrid.cs: 
2686         - replace the PopulateGridItemCollection with a pair of methods
2687         which compute the intersection of all the properties in the
2688         SelectedObjects array.  Fixes #79615.
2690         - Throw ArgumentException from set_SelectedObjects if there's a
2691         null in the array.
2693         - Add GetTarget method which can be used to traverse up the
2694         GridItem.Parent chain.  It depends on the assumption that
2695         selected_objects for different GridEntries are always in the same
2696         order (a safe assumption).  Use this method and loop over all the
2697         selected objects in the entry when calling RemoveValueChanged and
2698         AddValueChanged.
2699         
2700         * GridEntry.cs: Make this handle multiple selected objects.
2701         .Value returns null if not all the selected objects share the same
2702         value.
2704 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
2705         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
2706           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
2707           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
2708           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
2709           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
2710         add additional functionality.
2712 2006-10-12  Mike Kestner  <mkestner@novell.com>
2714         * ErrorProvider.cs : new ToolTipWindow ctor sig.
2715         * HelpProvider.cs : new ToolTipWindow ctor sig.
2716         * ToolTip.cs : remove ToolTip param from Window sig since it is
2717         not used.
2718         * ToolBar.cs : add tooltip support.  Fixes #79565.
2720 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2722         * ComboBox.cs: move the events in set_SelectedIndex to 
2723         after the call to HighlightIndex in order to avoid 
2724         possible recursion and subsequent problems with the call
2725         to HighlightIndex and include a range check in 
2726         set_HighlightIndex. Fixes #79588
2727         
2728 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2730         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
2731         to ui thread's settings instead of sunday. 
2732         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
2734 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2736         * DateTimePicker.cs
2737         * MonthCalendar.cs
2738         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
2739         and implement missing functionality (selecting different parts 
2740         of the date and edit them individually with the keyboard).
2741         
2742 2006-10-11  Chris Toshok  <toshok@ximian.com>
2744         * Control.cs (OnInvalidated): fix NRE relating to last change.
2746 2006-10-11  Chris Toshok  <toshok@ximian.com>
2748         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
2749         atoms in _NET_WM_STATE here if the window is maximized.  We need
2750         to do this because we're *replacing* the existing _NET_WM_STATE
2751         property, so those atoms will be lost otherwise, and any further
2752         call to GetWindowState will return Normal for a window which is
2753         actually maximized.  Fixes #79338.
2755 2006-10-11  Jackson Harper  <jackson@ximian.com>
2757         * TextControl.cs: Special case for setting selection end to
2758         selection start, we basically kill the anchor.
2759         - some todo comments.
2761 2006-10-11  Chris Toshok  <toshok@ximian.com>
2763         * Control.cs: switch to using an "invalid_region" to track which
2764         parts of the image buffer need updating.  This is more code than
2765         the simple fix from r66532.  That version just attempted to always
2766         fill the entire buffer on redraw, which turns out to be
2767         inefficient when invalidating small rectangles.  This version
2768         simply adds the invalid rectangle to the invalid region.  When we
2769         get any WM_PAINT message we see if it can be filled using the
2770         image buffer, and if it can't (if the paint event's clip rectangle
2771         is visible in the invalid region) we first fill the image buffer.
2772         So, the image buffer is still a cache, we just fill it lazily.
2774         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
2775         need it any longer.
2777 2006-10-11  Chris Toshok  <toshok@ximian.com>
2779         * XplatUIX11.cs (SetWindowPos): we need to update both position as
2780         well as size after calling XMoveResizeWindow.  This keeps us from
2781         ignoring future SetWindowPos calls.  Fixes the disappearing
2782         DateTimePicker in the ToolBarDockExample from bug #72499.
2784 2006-10-11  Chris Toshok  <toshok@ximian.com>
2786         * TextBoxBase.cs: reorder things a bit when it comes to
2787         resizing-causing-recalculation.  we were recalculating the
2788         document when our position was changed, which shouldn't happen.
2789         We only care about size changes.  Clear up some more redundant
2790         recalculation calls while I'm at it.  This makes the toolbar dock
2791         example snappy when you're just dragging toolbars around (since it
2792         causes a relayout whenever you move one.)
2794 2006-10-11  Chris Toshok  <toshok@ximian.com>
2796         * ToolBarButton.cs (get_Rectangle): this only returns
2797         Rectangle.Empty if Visible == false, or Parent == null.
2798         Parent.Visible doesn't matter.
2800 2006-10-10  Chris Toshok  <toshok@ximian.com>
2802         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
2803         by .net 1.1, so switch to an internal method instead.
2805 2006-10-10  Chris Toshok  <toshok@ximian.com>
2807         * Control.cs (WM_PAINT): when a control is double buffered we draw
2808         initially to the ImageBuffer and then copy from there.  But when a
2809         parent control which has child controls is double buffered, the
2810         initial drawing doesn't encompass the entire ClientRectangle of
2811         the parent control, so we end up with uninitialized bits (this is
2812         easily seen by dragging the top toolbar in
2813         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
2814         manually set the ClipRectangle of the paint_event (only the one we
2815         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
2816         of the nastiness in bug #72499.
2818         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
2819         which we use in Control.cs's WM_PAINT handling.
2821 2006-10-10  Jackson Harper  <jackson@ximian.com>
2823         * TextBoxBase.cs: Finish off the autoscrolling stuff.
2825 2006-10-10  Chris Toshok  <toshok@ximian.com>
2827         * Cursor.cs: Apply a slightly different patch to the one suggested
2828         in #79609.
2830 2006-10-10  Jackson Harper  <jackson@ximian.com>
2832         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
2833         not the parent form.
2834         * TextControl.cs: use difference in old line count vs new count to
2835         calculate how many lines were added, this takes into account soft
2836         line breaks properly.
2838 2006-10-10  Chris Toshok  <toshok@ximian.com>
2840         * LinkLabel.cs: don't call MeasureCharacterRanges against a
2841         rectangle located at 0,0 and the size of the text.  Use
2842         ClientRectangle instead.  This fixes rendering of non-left aligned
2843         link labels.
2845 2006-10-10  Jackson Harper  <jackson@ximian.com>
2847         * TextBoxBase.cs: When we set the selection start position the
2848         caret.
2849         * TextControl.cs: Need to update the caret when we decrement it to
2850         zero.
2851         - Make sure that the selection_visible flag gets reset to false if
2852         the selection isn't visible.  Before this you could get it set to
2853         visible by changing the selection start, then changing the end to
2854         equal the start.
2856 2006-10-09  Jackson Harper  <jackson@ximian.com>
2858         * TreeView.cs: Don't update scrollbars when we aren't visible.
2859         * TreeNodeCollection.cs: Only need to update scrollbars if being
2860         added to an expanded visible node or the root node.
2862 2006-10-09  Chris Toshok  <toshok@ximian.com>
2864         * XplatUIX11.cs (SendMessage): fix NRE.
2866 2006-10-09  Jackson Harper  <jackson@ximian.com>
2868         * TextBoxBase.cs: Implement horizontal autoscrolling.
2869         * TextControl.cs: Add a movement types that allows moving forward
2870         and backwards without wrapping.
2872 2006-10-09  Mike Kestner  <mkestner@novell.com>
2874         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
2875         with focus "expansion" of labels.  Fixes #79532 and then some.
2876         * ThemeWin32Classic.cs : add LineLimit to ListView label format
2877         when wrapping.
2879 2006-10-09  Jackson Harper  <jackson@ximian.com>
2881         * TextBoxBase.cs: Set the default max values to MaxValue since
2882         we use the scrollbar for autoscrolling and the default value is
2883         100.  If we don't do this the caret won't keep up with typing
2884         after about 18 characters.
2885         * TextControl.cs: Make sure the selection is offset by the
2886         viewport x.  This fixes selection when using auto scrolling.
2888 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
2889         
2890         * Form.cs: The active control should be selected after the 
2891         OnLoad so that any child control initialization that affects
2892         the selection is done. Fixes #79406
2894 2006-10-06  Chris Toshok  <toshok@ximian.com>
2896         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
2897         to have no evil effects.
2899         - Stop selecting StructureNotifyMask on non-toplevel windows.
2901           The only way children should be resized is by using the SWF api,
2902           and we already send WM_WINDOWPOSCHANGED messages in those cases.
2903           Toplevel windows can be interacted with via the window manager,
2904           and so we keep the input mask there.
2906           The other event StructureNotifyMask gives us (that we care
2907           about) is DestroyNotify.  The code is already structured such
2908           that it assumes we won't be getting a DestroyNotify event for
2909           the window we pass to XDestroyWindow (which is what
2910           StructureNotifyMask is supposed to guarantee.)  So, that code
2911           shouldn't be affected by this either.
2913         - Stop selecting VisibilityChangeMask altogether.
2915           We weren't doing anything with the resulting events anyway.
2916         
2917         This vastly reduces the number of X requests and events we see
2918         when resizing/laying out a large ui.
2920 2006-10-06  Chris Toshok  <toshok@ximian.com>
2922         * ScrollableControl.cs (DisplayRectangle): we need to take into
2923         account the DockPadding regardless of whether or not auto_scroll
2924         == true.  rework this slightly to this effect, and fix bug #79606,
2925         and part of #72499 (you can now see the drag handles and drag
2926         toolbars around).
2928 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
2930         * ListViewItem.cs: Collections of selected and checked items are now
2931         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
2932         we mark the collection "dirty".
2933         * ListView.cs: Marked collections readonly. Modified UpdateSelection
2934         to only clear SelectedItems when a new item is selected and MultiSelect
2935         is enabled. CheckedItems and SelectedItems now subscribe to Changed
2936         event of ListViewItemCollection, and mark its list dirty whenever
2937         that event is fire. This allows us to return selected/checked items 
2938         in the same order as they are in the Items collection. This matches
2939         the MS behavior.
2941 2006-10-06  Chris Toshok  <toshok@ximian.com>
2943         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
2944         right mouse clicks.  Fixes bug #79593.
2946 2006-10-06  Chris Toshok  <toshok@ximian.com>
2948         * Splitter.cs: doh, fix splitters that don't want to cancel the
2949         movement when you drag them.  Also, impose the limits on the
2950         values we send to the SplitterMovingEvent.  Fixes #79598.
2952 2006-10-06  Jackson Harper  <jackson@ximian.com>
2954         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
2955         since we use this for auto scrolling also.
2957 2006-10-05  Chris Toshok  <toshok@ximian.com>
2959         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
2960         beginning to think that most datagrid column types don't need this
2961         method.  Fixes bug #79392.
2963 2006-10-05  Chris Toshok  <toshok@ximian.com>
2965         * DataGrid.cs: move back to a more lazy scheme for creating the
2966         CurrencyManager, so we aren't updating it every time you set
2967         either DataSource or DataMember.  Also, don't call
2968         RecreateDataGridRows if the currency manager hasn't changed.
2970 2006-10-05  Chris Toshok  <toshok@ximian.com>
2972         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
2973         emitted, SelectedIndex should already be updated.  Fixes bug
2974         #78929.
2976 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
2978         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
2979           ToolStripTextBox.cs: Initial commit.
2980         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
2982 2006-10-05  Jackson Harper  <jackson@ximian.com>
2984         * TabControl.cs: We need to invalidate the tab control area when
2985         new ones are added (duh).
2987 2006-10-03  Chris Toshok  <toshok@ximian.com>
2989         * Form.cs (ProcessDialogKey): if the focused control is in this
2990         form and is a button, call its PerformClick method here.  Fixes
2991         #79534.
2993 2006-10-04  Jackson Harper  <jackson@ximian.com>
2995         * TabPage.cs: Ignore setting of Visible, and add an internal
2996         method for setting the controls visibility.  TabPage's Visible
2997         property is a little strange on MS, this seems to make us
2998         compatible, and fixes cases where people set all the tab pages to
2999         visible.
3000         * TabControl.cs: Use the new internal setting on tab pages
3001         visibility.
3003 2006-10-03  Mike Kestner  <mkestner@novell.com>
3005         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
3007 2006-10-03  Mike Kestner  <mkestner@novell.com>
3009         * ListView.cs : use is_visible instead of Visible to check if 
3010         scrollbars should be placed/sized.  Also some max_wrap_width
3011         love for LargeIcon view.  [Fixes #79533]
3013 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
3015         * TextControl.cs :
3016           Make set_TextAlign() do actually update the align. Fixed #78403.
3018 2006-10-03  Chris Toshok  <toshok@ximian.com>
3020         * DataGrid.cs: fix a crash when switching datasources if the
3021         vertical scrollbar is at someplace other than Value = 0.  Also,
3022         reduce the number of recalculation passes we do in SetDataSource
3023         from 2 to 1.
3025 2006-10-03  Jackson Harper  <jackson@ximian.com>
3027         * TextBoxBase.cs: Move the if value the same bail check up, we
3028         don't want to empty the document if it is already empty, this
3029         seems to severly mess up the caret.  TODO: I should probably fix
3030         the empty statement to update teh caret somehow.
3032 2006-10-03  Chris Toshok  <toshok@ximian.com>
3034         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
3035         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
3036         reflection, an internal row type, properties on said type, etc.)
3037         will work with our datagrid.  Fixes #79531.
3039 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
3041         * FileDialog.cs: Don't crash if a path is not accessible
3042           (System.UnauthorizedAccessException). Fixes #79569.
3043         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
3044           a ':' too. Return unknown icon for those paths/files.
3046 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
3048         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
3049         GetContainerControl returns null.
3051 2006-10-02  Chris Toshok  <toshok@ximian.com>
3053         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
3054         call to XGetWindowAttributes instead of "handle".  fixes an X
3055         error using notifyicon after the NotifyIconWindow to Form base
3056         class switch.
3058 2006-10-02  Chris Toshok  <toshok@ximian.com>
3060         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
3061         server grab and looping we need to do to get down to the most
3062         deeply nested child window.
3063         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
3064         QueryPointer again after the WarpPointer so we can generate a
3065         proper (fake) MotionNotify event to be enqueued in the destination
3066         window's queue.
3067         (GetCursorPos): call QueryPointer.
3069         Fixes #79556.
3071 2006-10-02  Jackson Harper  <jackson@ximian.com>
3073         * NotifyIcon.cs: Derive the notify icon from a form, so things
3074         like FindForm work on it.
3075         - Swallow the WM_CONTEXTMENU message, since that is generated on
3076         mouse down, and context menu is a mouse up kinda guy.  I believe
3077         the correct fix here is probably to make the notify icon entirely
3078         NC area, but this seems to work fine for anyone not manipulating
3079         WndProc.
3081 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
3083         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
3084           ToolStripItemCollection.cs, ToolStripLabel.cs,
3085           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
3086           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
3087           Initial implementation.
3088         * TextRenderer.cs: Provide padding to MeasureText.
3090 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
3092         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
3093         of ButtonBaseAccessibleObject. Fix bug #79552.
3095 2006-10-02  Jackson Harper  <jackson@ximian.com>
3097         * MdiWindowManager.cs: When maximizing use the containers client
3098         rect, not it's bounds, so nc area is accounted correctly.
3099         - Use the parent form's size for the menu position, since the
3100         client isn't always the full form size.
3102 2006-10-01  Chris Toshok  <toshok@ximian.com>
3104         * ScrollableControl.cs: make sure neither right_edge or
3105         bottom_edge are < 0, since they're used as LargeChange for the
3106         horiz/vert scrollbars respectively.  Fixes #79539.
3108 2006-10-01  Chris Toshok  <toshok@ximian.com>
3110         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
3111         the xplatuix11 code can cause us to destroy/recreate our handle.
3113         * XplatUIX11.cs
3114         (SystrayAdd):
3115         - this code can be invoked many times for the same Hwnd.  Make
3116           sure we only destroy the client window once (the first time this
3117           method is called).  This fixes bug #79544.
3118         - Remove the call to the improperly bound XSync.  why we had two
3119           bindings to this, I will never know, but this call resulted in
3120           events being discarded from the queue(!).
3121         - correct a misunderstanding of _XEMBED_INFO - the second atom is
3122           not our current state but the state we wish to be in.  So, 0 if
3123           we don't want to be mapped.  Change it to 1.
3124         (SystrayRemove): The XEMBED spec makes mention of the fact that
3125         gtk doesn't support the reparent of client windows away from the
3126         embedder.  Looking at gtksocket-x11.c seems to agree with this.
3127         The only avenue we have for removing systray icons is to destroy
3128         them.  We don't want the handle to go away for good, though, so
3129         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
3130         #79545.
3131         
3132 2006-10-01  Chris Toshok  <toshok@ximian.com>
3134         * Form.cs (WndProc): inline the native_enabled variable usage into
3135         the cases in which it's used.  Fixes #79536.
3137 2006-09-29  Mike Kestner  <mkestner@novell.com>
3139         * ListView.cs : toggle the selection state for ctrl clicks in 
3140         multiselect mode. [Fixes #79417]
3142 2006-09-29  Mike Kestner  <mkestner@novell.com>
3144         * ListView.cs : kill CanMultiSelect and refactor the selection
3145         code to support multiselection in the absence of mod keys. Steal
3146         arrow/home/end keys by overriding InternalPreProcessMessage to
3147         restore regressed keynav behavior.
3148         [Fixes #79416]
3150 2006-09-29  Jackson Harper  <jackson@ximian.com>
3152         * MdiClient.cs: Repaint the titlebars when the active window is
3153         changed.
3155 2006-09-29  Chris Toshok  <toshok@ximian.com>
3157         * Application.cs: when entering a runloop with a modal, make sure
3158         the hwnd is enabled.  Fixes #79480.
3160 2006-09-29  Chris Toshok  <toshok@ximian.com>
3162         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
3163         when ListManager.CanAddRows == false, bump us back one.
3165         * DataGridColumnStyle.cs (ParentReadOnly): remove the
3166         listmanager.CanAddRows check.  This makes ArrayLists uneditable
3167         using a datagrid, which is not right.
3168         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
3169         is an IEditable, but call property_descriptor.SetValue regardless.
3170         fixes #79435.
3172 2006-09-29  Chris Toshok  <toshok@ximian.com>
3174         * DataGridBoolColumn.cs: we need to test equality in the face of
3175         possible null values (as is the case with the default NullValue).
3176         This patch keeps us from crashing in that case.
3178 2006-09-29  Jackson Harper  <jackson@ximian.com>
3180         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
3181         here, since it will get called for every node collection in the
3182         tree. This is now done in the treeview once the sorting is
3183         finished.
3184         * TreeView.cs: Recalculate the visible order, and update the
3185         scrollbars after sorting, set the top nope to the root so that the
3186         recalc actually works.
3188 2006-09-29  Chris Toshok  <toshok@ximian.com>
3190         * LinkLabel.cs: more handling of the default link collection in
3191         the face of LinkArea manipulation.  The default link collection
3192         contains 1 element (start=0,length=-1).  If the user sets LinkArea
3193         to anything and the links collection is the default, clear it.
3194         Then only add the link if its nonempty.  Fixes #79518.
3196 2006-09-29  Chris Toshok  <toshok@ximian.com>
3198         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
3199         piece correctly when we hit a '\n'.  Fixes #79517.
3201 2006-09-29  Chris Toshok  <toshok@ximian.com>
3203         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
3204         change the binding of gdk_init_check to take two IntPtr's, and
3205         pass IntPtr.Zero for both of them.  Fixes #79520.
3207 2006-09-29  Mike Kestner  <mkestner@novell.com>
3209         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
3210         [Fixes #78779]
3212 2006-09-28  Jackson Harper  <jackson@ximian.com>
3214         * XplatUIX11.cs: When translating NC messages make sure we go from
3215         whole window to screen, not client window to screen.
3216         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
3217         method doesn't exist
3218         - Skip over controls that aren't forms when arranging.
3220 2006-09-28  Jackson Harper  <jackson@ximian.com>
3222         * XplatUIWin32.cs: Clip the rect to the parent window.
3223         * XplatUIStructs.cs: Add clipping modes struct.
3224         * InternalWindowManager.cs: New private method that factors title
3225         bar heights in when calculating the pos of an NC mouse message.
3226         - Use SendMessage to force a paint when the form's size is changed
3227         instead of painting the decorations immediately.
3228         - Don't let the NC button click messages get to DefWndProc,
3229         because they will attempt to handle windowing themself, and this
3230         messes up z-order (it will put them in front of the scrollbars).
3231         * XplatUIX11.cs: Make sure that we don't reset window managers if
3232         we already have one (ie the window is an MDI window).
3234 2006-09-28  Chris Toshok  <toshok@ximian.com>
3236         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
3237         menu code really needs going over.
3239 2006-09-27  Chris Toshok  <toshok@ximian.com>
3241         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
3242         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
3243         window is maximizable.  So, we need to make sure that even if we
3244         clear the border/wm frame of those functions, they're still
3245         available (basically, we remove the decoration without removing
3246         the function).  Half the fix for #79338.
3248 2006-09-27  Chris Toshok  <toshok@ximian.com>
3250         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
3251         Fixes bug #79515.
3253 2006-09-27  Chris Toshok  <toshok@ximian.com>
3255         * Splitter.cs: reorder things a bit so that we don't actually
3256         draw/move the splitter until after calling OnSplitterMoving.  This
3257         lets users cancel/disallow the movement by explicitly setting
3258         event.SplitX/SplitY.  Fixes #79372.
3260 2006-09-27  Jackson Harper  <jackson@ximian.com>
3262         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
3263         because it is most likely on a window being destroyed, and that
3264         will give us an X11 error.
3266 2006-09-27  Chris Toshok  <toshok@ximian.com>
3268         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
3269         the dropdown button now toggles between showing and hiding the
3270         dropdown.  Also, get rid of dropdown_form_showing and just use
3271         dropdown_form.Visible.  We still don't do a grab, but I'll leave
3272         that part to someone who has handled Capture-fu before.
3274 2006-09-27  Chris Toshok  <toshok@ximian.com>
3276         * DataGrid.cs: return false if alt isn't pressed when '0' is
3277         pressed.  this keeps the '0' key from being swallowed, and fixes
3278         bug #79350.
3280 2006-09-27  Chris Toshok  <toshok@ximian.com>
3282         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
3283         Calling Refresh (in response to a scrollbar event) screws up the
3284         scrollbar painting.  Fixes bug #78923.
3286 2006-09-27  Chris Toshok  <toshok@ximian.com>
3288         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
3289         then insert into hashtable" blocks threadsafe.
3291 2006-09-27  Chris Toshok  <toshok@ximian.com>
3293         * MessageBox.cs (CreateParams): the styles should be |'ed with our
3294         baseclass's, since otherwise the
3295         ControlBox/MinimizeBox/MaximizeBox assignments above have no
3296         effect.  This gets the close button back in messageboxes.
3298 2006-09-27  Chris Toshok  <toshok@ximian.com>
3300         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
3301         flag, not just != 0.  this makes flags that are actually multiple
3302         bits (like WS_CAPTION) work.  fixes bug #79508.
3304 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
3306         * PageSetupDialog.cs: add support for getting and settings the 
3307         paper size, source and orientation.
3309 2006-09-26  Chris Toshok  <toshok@ximian.com>
3311         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
3312         and caption == "", we need to remove the resize handles as well as
3313         the title bar.
3315         * Control.cs (set_Text): turns out that setting Text on a form
3316         should change the WM styles on the window, since if ControlBox ==
3317         false, the only way to get a window border is to have a non-""
3318         Text property.  check winforms/forms/text.cs for an example.  so,
3319         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
3320         update both window styles and title.  This fixes a lot of dialogs
3321         (including the preferences dialog in MonoCalendar.)
3323 2006-09-26  Chris Toshok  <toshok@ximian.com>
3325         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
3326         control isn't a Form), call Win32ShowWindow to hide the window,
3327         but don't update the control Visible property.  When we reparent
3328         back to a parent control, call SetVisible in order for the
3329         window's visibility to be reinstated.
3331         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
3332         the FosterParent.
3334         * Control.cs (ControlCollection.Remove): remove that value.Hide()
3335         call for good, since it breaks MonoCalendar (and other things I'm
3336         sure.) Also, set all_controls to null *after* the owner calls,
3337         which end up regenerating it.
3338         (ChangeParent): allow new_parent to be == null, passing
3339         IntPtr.Zero down to XplatUI.
3341         this fixes #79294 the right way.
3343 2006-09-26  Mike Kestner  <mkestner@novell.com>
3345         * GridEntry.cs : internal SetParent method.
3346         * PropertyGrid.cs : attach to property changed on the proper
3347         target if we have a hierarchical grid with subobjects. Setup
3348         GridItem.Parent for hierarchical items.
3349         * PropertyGridView.cs : Set value on the correct target for
3350         hierarchical grids. [Fixes #78903]
3352 2006-09-26  Chris Toshok  <toshok@ximian.com>
3354         * Control.cs (ChildNeedsRecreating): this should return true if
3355         either we're being recreated and the child is in our list, or our
3356         parent is waiting for our recreation.
3358 2006-09-26  Chris Toshok  <toshok@ximian.com>
3360         * Control.cs (ControlCollection.Remove): reinstate the
3361         value.Hide() call as suggested in bug #79294.
3363 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
3365         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
3366         coordinates (versus a relative move).
3368 2006-09-26  Chris Toshok  <toshok@ximian.com>
3370         * Control.cs: rework child recreation a little bit.  It turns out
3371         that we race between the DestroyNotify the WM_DESTROY message.  If
3372         the parent gets its DestroyNotify before the child gets the
3373         WM_DESTROY message, the child ends up not recreating (since the
3374         parent finishes its recreation on DestroyNotify, and the child
3375         checks ParentIsRecreating.)
3377         So, instead we store off a list of all the child controls which
3378         need to be recreated when the parent control starts to recreate
3379         itself.  Then, when child controls get their WM_DESTROY message we
3380         check to see if they're in the parent's pending recreation list,
3381         and if so, we recreate.  This removes all dependency on ordering
3382         from the code and fixes the initial MonoCalendar upgrade dialog.
3383         
3384 2006-09-26  Jackson Harper  <jackson@ximian.com>
3386         * TextControl.cs: Use the Line to get the length of the line,
3387         since soft line breaks can change the end line.
3389 2006-09-26  Chris Toshok  <toshok@ximian.com>
3391         * Control.cs (ControlCollection.AddImplicit): don't add the
3392         control again if it's already in one of our lists.  This keeps us
3393         from adding controls over and over again for comboboxes when their
3394         handle gets recreated (as the combobox adds implicit controls in
3395         OnHandleCreated).  Fixes the X11 errors in bug #79480.
3397 2006-09-26  Jackson Harper  <jackson@ximian.com>
3399         * TextControl.cs: When deleting characters make sure that any
3400         orphaned zero lengthed tags get deleted.
3401         - Fix ToString for zero lengthed tags.
3403 2006-09-25  Jackson Harper  <jackson@ximian.com>
3405         * TextControl.cs: When getting a tag at the location there can be
3406         multiple tags at the same spot, these are 0-lengthed tags that
3407         appear when extra formatting has been stuck in a location.  We
3408         need to pull out the last of these 0 lengthed tags.
3410 2006-09-25  Jackson Harper  <jackson@ximian.com>
3412         * TextControl.cs: Fix print out in debug method.
3413         * TextBoxBase.cs: When text is set bail if we are setting to the
3414         previous value.
3415         
3416 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
3418         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
3419           It is now possible to change the selected index in a FontXXXListBox
3420           with the up and down arrow keys from the FontXXXTextBoxes.
3421           Also, send the FontXXXTextBox mouse wheel event to the corresponding
3422           FontXXXListBoxes to match ms.
3424 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
3426         * SystemInformation.cs: Return a clone of the theme's MenuFont because
3427         anyone can dispose it, anytime. All other properties returns enums, 
3428         structs or basic types so they don't need such tricks.
3430 2006-09-22  Jackson Harper  <jackson@ximian.com>
3432         * XplatUI.cs:
3433         * XplatUIWin32.cs:
3434         * Clipboard.cs:
3435         * DataFormats.cs:
3436         * XplatUIOSX.cs:
3437         * XplatUIDriver.cs: Update interface to add a primary selection
3438         flag, so the driver can use the primary selection buffer if
3439         needed.
3440         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
3442         * RichTextBox.cs: We need to supply the data object to paste now
3443         (so we can choose to supply CLIPBOARD or PRIMARY).
3444         * TextBoxBase.cs: Supply data object to paste (see above).
3445         - Middle click uses the primary selection data object.
3446         
3447 2006-09-21  Chris Toshok  <toshok@ximian.com>
3449         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
3450         of SetWMStyles.  It's still a rat's nest and is largely
3451         order-dependent which I dislike immensely.  This also fixes the X
3452         button disappearing from toplevel forms.
3454 2006-09-21  Mike Kestner <mkestner@novell.com>
3456         * ListBox.cs: move Jordi's click/dblclick raising code to the
3457         mouse up handler.
3459 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3461         * ListBox.cs: Fixes 79450
3463 2006-09-21  Mike Kestner <mkestner@novell.com>
3465         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
3466         to deal with people updating the TreeNodeCollection after the tree
3467         is disposed.  "Fixes" 79330.
3469 2006-09-20  Jackson Harper <jackson@ximian.com>
3471         * TextControl.cs: Push the cursor record onto the undo stack
3472         before the delete action. This fixes 78651.
3474 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
3476         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
3477         CreateParams. Fixes 79329.
3479 2006-09-19  Chris Toshok  <toshok@ximian.com>
3481         * XplatUIX11.cs: a couple of blanket code massage passes to clean
3482         things up a bit.  First, get rid of the NetAtoms array (and the NA
3483         enum), and just embed the atoms as static fields.  Also, add a
3484         couple of functions (StyleSet and ExStyleSet) to clean up all the
3485         bitmask testing of styles.
3487         * X11Structs.cs: remove the NA enum, not needed anymore.
3488         
3489 2006-09-19  Chris Toshok  <toshok@ximian.com>
3491         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
3492         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
3493         added cleanup to get MessageBox titles appearing again, which were
3494         broken by my earlier fix for caption-less/ControlBox-less windows.
3496 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
3498         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
3499           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
3500           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
3501           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
3502           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
3503           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
3504           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
3505           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
3506           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
3507           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
3508           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
3509             Inital import.
3510         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
3511           ToolStripButton.cs: Stubs needed for above.
3512         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
3514 2006-09-15  Chris Toshok  <toshok@ximian.com>
3516         * XplatUIX11.cs:
3517         - make the MessageQueues hashtable Synchronized.
3518         
3519         - SendMessage: if the Hwnd is owned by a different thread, use the
3520         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
3521         thread.  Fixes bug #79201.
3523 2006-09-15  Chris Toshok  <toshok@ximian.com>
3525         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
3526         ControlBox == false, we disallow maximize/minimize/close.  If the
3527         form Caption is "" we also disallow move (and get rid of the Title
3528         decoration).  Unfortunately, regardless of how things are set,
3529         we're stuck with the Title and WM menu.
3531 2006-09-15  Chris Toshok  <toshok@ximian.com>
3533         * Application.cs: add locking around the static message_filters
3534         ArrayList, part of #79196.
3536 2006-09-15  Chris Toshok  <toshok@ximian.com>
3538         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
3539         Form.ControlBox == false, the window has no titlebar nor resize
3540         handles.  fixes bug #79368.
3542 2006-09-15  Chris Toshok  <toshok@ximian.com>
3544         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
3545         >= 0.  Fixes bug #79370.
3547 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
3548         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
3549         * Control.cs:
3550             Add properties: LayoutEngine, Margin, DefaultMargin.
3551             Add method: GetPreferredSize.
3552             Move layout logic from PerformLayout to layout engines. 
3554 2006-09-13  Chris Toshok  <toshok@ximian.com>
3556         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
3557         fix for #79326 broke #78718, so this change addresses that.
3559         - in SendWMDestroyMessages remove the call to
3560         CleanupCachedWindows, since we might be recreating the control and
3561         need to maintain the references to right Hwnd handles.  Also, set
3562         the zombie flag to true for each of the children in the hierarchy
3563         instead of calling hwnd.Dispose.  This will cause GetMessage to
3564         ignore all events for the window except for DestroyNotify.
3566         - In GetMessage, ignore messages except for DestroyNotify for
3567         zombie hwnds.
3568         
3569         * Control.cs: revert the is_recreating fix from the last
3570         ChangeLog.  It's definitely "right", but it breaks switching from
3571         an MDI form to a non-MDI form.  Will need to revisit that.
3573         * Hwnd.cs: add a zombie flag, which means "the
3574         client_window/whole_window handles are invalid, but we're waiting
3575         for the DestroyNotify event to come in for them".  Set the flag to
3576         false explicitly if setting WholeWindow/ClientWindow, and also
3577         when Disposing.
3578         
3579 2006-09-13  Chris Toshok  <toshok@ximian.com>
3581         * XplatUIX11.cs: rework window destruction slightly.
3583         - when destroying the windows associated with a control, we don't
3584         need 2 separate XDestroyWindow calls.  Just the one for the
3585         whole_window (or for client_window if whole_window is somehow
3586         IntPtr.Zero -- can this happen?) is enough.
3588         - reworked SendWMDestroyMessages slightly, so we always dispose
3589         the child control hwnd's after sending the messages.
3590         
3591         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
3592         the two places it was used (one was even using hwnd.Handle and the
3593         other hwnd.client_window.  ugh), adding another call in
3594         SendWMDestroyMessages.  We need this new call because now the
3595         DestroyNotify events in the queue will be ignored for the child
3596         controls (as their hwnd's were disposed, and the window id's
3597         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
3599         - this fixes bug #79326.
3601 2006-09-13  Chris Toshok  <toshok@ximian.com>
3603         * Control.cs: don't always set is_recreating to false at the end
3604         of RecreateHandle, since sometimes we're not done (and won't be
3605         until WndProc handles the WM_DESTROY message).  Also, set
3606         is_recreating to false in the WM_DESTROY handling code.  Part of
3607         the fix for bug #79326.
3609 2006-09-13  Miguel de Icaza  <miguel@novell.com>
3611         * X11DesktopColors.cs: Start the droppage of debugging messages.
3613         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
3615 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
3617         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
3619 2006-09-12  Chris Toshok  <toshok@ximian.com>
3621         * DataGrid.cs (get_ListManager): if the list_manager is null, try
3622         to create it using SetDataSource.  Fixes bug #79151.
3624 2006-09-11  Chris Toshok  <toshok@ximian.com>
3626         * XEventQueue.cs: add a DispatchIdle property.
3628         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
3629         either the queue is null, or the queue has DispatchIdle set to
3630         true.
3631         (DoEvents): set queue.DispatchIdle to false around the
3632         peek/translate/dispatch message loop in this method.  This keeps
3633         Application.Doevents from emitting idle events.  Part of the fix
3634         for #78823.
3636 2006-09-11  Chris Toshok  <toshok@ximian.com>
3638         * DataGrid.cs (set_DataSource): make this work for both the
3639         winforms/datagrid test and ReportBuilder.  It seems as though when
3640         we've created a ListManager (or maybe it's if we have a
3641         BindingContext?), when we set the DataSource it clears the
3642         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
3643         #79333.
3645 2006-09-11  Chris Toshok  <toshok@ximian.com>
3647         * XplatUIX11.cs: deal with queue being null, which happens in all
3648         the Clipboard functions.  Fixes one of the two problems mentioned
3649         in #78612.
3651 2006-09-11  Chris Toshok  <toshok@ximian.com>
3653         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
3654         button on various spots (including outside the menu) works closer
3655         to MS, and doesn't crash.  Fixes #79343.
3657 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
3659         * ListView.cs: Do not initialize item_sorter in init. To match MS,
3660         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
3661         and the internal comparer is set. When a new ListViewItemSorter is set,
3662         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
3663         was specified. No further processing is necessary if SortOrder is set
3664         to it's current value. If Sorting is modified to None, and View is
3665         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
3666         (either custom or our internal ItemComparer) to null, on 1.0 profile
3667         only set item_sorter to null if its our internal IComparer. If Sorting
3668         is modified to Ascending or Descending, then use our internal IComparer
3669         if none is set, and if the current IComparer is our internal one then:
3670         on 2.0 profile always replace it with one for new Sorting, and on 1.0
3671         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
3672         Enum.IsDefined to verify whether a valid View value is specified in
3673         its setter. Automatically sort listview items when listview is
3674         created. In Sort, do nothing if ListView is not yet created, or if
3675         no item_sorter is set (no Sorting was set, Sorting was explicitly set
3676         to None or ListViewItemSorter was set to null). Added Sort overload
3677         taking a bool to indicate whether the ListView should be redrawn when
3678         items are sorted (we use this in ListViewItemCollection to avoid double
3679         redraws). Modified our internal IComparer to take the sort order into
3680         account. In Add and AddRange methods of ListViewItemCollection, also
3681         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
3682         view), but use overload with noredraw option to avoid double redraw.
3683         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
3684         true when View is Tile, and do the same when attempting to set View to
3685         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
3686         for selected/checked indices, as it involves overhead when sorting is
3687         done while these collections are not used all that often. Instead
3688         we'll build the indices on demand. Modified IList implementation of
3689         CheckedIndexCollection to use public methods if object is int.
3690         Modified CheckedListViewItemCollection to hide checked items if
3691         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
3692         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
3693         IList implementation in SelectedIndexCollection to use public methods
3694         if object is int. Modified SelectedListViewItemCollection to hide
3695         selected items if listview is not yet created.
3696         * ListViewItem.cs: CheckedIndices list no longer needs to be
3697         maintained separately (see ListView changes). Also clone font, fixes
3698         test failure.
3700 2006-09-11  Mike Kestner  <mkestner@novell.com>
3702         * ComboBox.cs: if we are updating the contents of the currently
3703         selected index, refresh the control or the textbox selection.
3704         [Fixes #79066]
3706 2006-09-11  Mike Kestner  <mkestner@novell.com>
3708         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
3709         the 'specified' logic has been moved there.  This seems like a bug 
3710         in Control.cs, since our current SetBoundsCore completely ignores 
3711         the specified parameter.  Peter's commit seems to indicate that is 
3712         the way the MS control implementation works.  [Fixes #79325]
3714 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
3716         * XplatUI.cs: Set default_class_name to be composed
3717         of current domain id. This allows MWF to be loaded in multiple
3718         domains on Win32.
3720 2006-09-09  Miguel de Icaza  <miguel@novell.com>
3722         * X11Keyboard.cs: If we are unable to obtain the input method, do
3723         not call CreateXic to create the input context.   Should fix
3724         #78944/79276.
3726 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
3728         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
3729           Simplified gnome support by adding more pinvokes to get the
3730           icon for a file or mime type.
3732 2006-09-08  Jackson Harper  <jackson@ximian.com>
3734         * MenuAPI.cs: Deslect popup context menu items before closing the
3735         window, so that you don't see the previously selected item
3736         selected when you reopen the menu.
3737         * TextControl.cs: Update the cursor position even if we don't have
3738         focus.  This fixes typing in things like the ComboBox.  I'm not
3739         totally sure we should always set the visibility if we don't have
3740         focus, but couldn't find any corner cases where the cursor showed
3741         up when it shouldn't.
3743 2006-09-08  Chris Toshok  <toshok@ximian.com>
3745         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
3746         our arrays are length 256.  & 0xff before indexing.  Fixes the
3747         crash in bug #78077.
3748         
3749 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3751         * ThemeWin32Classic.cs: 
3752         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
3753         is true. Handle that check box too.
3755 2006-09-07  Chris Toshok  <toshok@ximian.com>
3757         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
3758         79244.
3760 2006-09-07  Chris Toshok  <toshok@ximian.com>
3762         * Control.cs: in set_BackColor only do the work if
3763         background_color != value.
3765         * XplatUIX11.cs: move the clearing of invalid areas (both client
3766         and nc) to the same block of code where we set (nc_)expose_pending
3767         to false.  That is, move it from PaintEventEnd to PaintEventStart,
3768         so things that cause invalidates from within OnPaint will trigger
3769         another call to OnPaint.  Fixes bug #79262.
3771 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
3773         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
3774         * FileDialog.cs: Fix typo
3776 2006-09-07  Jackson Harper  <jackson@ximian.com>
3778         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
3779         for tab pages if they have any.
3781 2006-09-06  Mike Kestner  <mkestner@novell.com>
3783         * Splitter.cs: use the "current" rect when finishing drag handle
3784         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
3786 2006-09-06  Mike Kestner  <mkestner@novell.com>
3788         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
3789         support offset splitters. [Fixes #79298]
3791 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
3793         * Mime.cs: Fixed a bug that could override the global mime type
3794           result.
3796 2006-09-05  Jackson Harper  <jackson@ximian.com>
3798         * TabControl.cs: Better calculation method for setting the slider
3799         pos. Prevents crashes on really wide tabs.
3800         - Draw Image on tab pages if an image list is used.
3802 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3804         * MonthCalendar.cs: When Font changes, the Size should be
3805         updated to fit the new font's space requirements.
3807 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
3809         * ListBox.cs: If the items are cleared with Items.Clear set
3810           top_index to 0.
3812 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3814         * MonthCalendar.cs: Handle arrow keys as input keys. Also
3815         fire DateChanged event instead of DateSelected event when
3816         the date was changed by keyboard interaction.
3818 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3820         * DateTimePicker.cs: Handle DateChanged for the associated
3821         month_calendar control, and set month_calendar.Font from 
3822         OnFontChanged method, as well as resize the height of the
3823         control when needed. Make PreferredHeight proportional.
3825 2006-09-01  Chris Toshok  <toshok@ximian.com>
3827         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
3828         properties.
3830         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
3832 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
3834         * FileDialog.cs: Set ClientSize instead of window size, to allow space
3835           for decorations (Fixes #79219)
3837 2006-09-01  Mike Kestner  <mkestner@novell.com>
3839         * ComboBox.cs: first stab at sorting plus some selection handling
3840         fixes to bring us more in line with MS behavior.  Also switches back
3841         to index based selection.  Alternative patches for index-based 
3842         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
3843         and latency@gmx.de on bug 78848.  I assume they were similar to this
3844         code I've had simmering in my tree forever.
3845         [Fixes #78848]
3847 2006-09-01  Chris Toshok  <toshok@ximian.com>
3849         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
3850         when setting list position guard against ending up with a -1 index
3851         (the other part of the fix for #78812).  Should probably make sure
3852         we don't need the analogous fix in the ItemDeleted case.
3854         * DataGrid.cs:
3855         - in SetDataSource, work around the fact that the way
3856         OnBindingContextChanged is invoked will cause us to re-enter this
3857         method.  I'll remove the hack once I investigate
3858         OnBindingContextChanged.
3860         - fix the logic in set_DataSource and set_DataMember (basically
3861         what to do if the other of the two is null.)
3862         
3863         - in OnListManagerItemChanged, we need to take into account the
3864         edit row when deciding whether or not to call RecreateDataGridRows
3865         (part of the fix for #78812).
3867 2006-09-01  Jackson Harper  <jackson@ximian.com>
3869         * Splitter.cs: Don't do anything if there is no control to affect
3870         (prevents us from crashing in weird tet cases).
3871         * TreeView.cs: Bounding box for the mouse movement reverting
3872         focus/selection back to previously selected node.  This matches
3873         MS, and makes the tree a lot more useable.
3874         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
3875         use clipping so they are not drawn.  This fixes when the control
3876         is set to have a transparent background, or if it was over an
3877         image.
3879 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
3881         * MimeIcon.cs: Improved handling for reading default icons when
3882           using gnome (2.16 made it necessary). Check and read svg icons
3883           first, then 48x48 and then 32x32 icons.
3885 2006-08-31  Chris Toshok  <toshok@ximian.com>
3887         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
3888         visible.
3890         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
3891         ProcessKeyPreview.  Fixes part of #77806.
3893         * DataGrid.cs: big patch.
3895         - revert the queueing up of DataSource/DataMember if inside
3896         BeginInit/EndInit calls.  That's not the way the datagrid achieves
3897         its delayed databinding.  Instead, call SetDataSource in
3898         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
3899         #78811.
3901         - Also, it wasn't mentioned in #78811, but the test case exhibits
3902         behavior that was lacking in our datagrid implementation - Columns
3903         that have mapping names that don't exist in the datasource's
3904         properties aren't shown.  Yuck.  To fix this I added the bound
3905         field to the column style, and basically any calculation to figure
3906         out anything about columns uses a loop to find the bound columns.
3907         still need to investigate if I can cache an array of the bound
3908         columns or if the indices must be the same.
3910         - When setting CurrentCell, we no longer abort if the cell being
3911         edited was in the add row.  This fixes the other part of #77806.
3913         - The new code also fixes #78807.
3914         
3915         * ThemeWin32Classic.cs: perpetrate the same disgusting
3916         column.bound field hack, and only render bound fields.
3918 2006-08-31  Chris Toshok  <toshok@ximian.com>
3920         * DataGridColumnStyle.cs: add bound field.  this field is true if
3921         the datasource has a property corresponding to the mapping name.
3923         * DataGridTableStyle.cs: set the bound field on the column styles
3924         depending on whether or not we have a column for that property.
3926 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
3928         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
3929           splitter control (fixes #79228)
3931 2006-08-31  Chris Toshok  <toshok@ximian.com>
3933         * DataGridColumnStyle.cs: we need to delay the assignment of
3934         property descriptor until the last possible moment due to the lazy
3935         databinding stuff in the datagrid.  Also, fix the exceptions
3936         thrown by CheckValidDataSource to match MS.
3938 2006-08-31  Jackson Harper  <jackson@ximian.com>
3940         * Form.cs: When activated select the active control, if there is
3941         no active control, we select the first control.
3942         * XplatUIX11.cs: If there is no focus control when we get a
3943         FocusIn event, find the toplevel form and activate it.  This
3944         occurs when you popup a window, it becomes the focus window, then
3945         you close that window, giving focus back to the main window.
3947 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3949         * MonthCalendar.cs: 
3950         * ThemeWin32Classic.cs: Cache Font in bold style, as well
3951         as StringFormat with Center alignments in MonthCalendar,
3952         instead of creating new ones when drawing the control. 
3953         Also, draw the month name in bold style.
3955 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
3957         * Control.cs:
3958           - PerformLayout(): It would seem MS performs the fill even if the 
3959             control is not visible (part of #79218 fix)
3960           - ResetBackColor(): Use the setter to reset the color, to allow
3961             overriders to catch the change.
3962         * Form.cs:
3963           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
3964           - CreateHandle(): dito (part of $79218 fix)
3965           - Don't set an icon if we have a dialog
3966         * ScrollableControl.cs:
3967           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
3968           - ScrollIntoView(): No need to scroll if control is already visible
3969             (resolves fixme and fixes #79218)
3971 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3973         * MonthCalendar.cs: Change proportions in SingleMonthSize
3974         to match the aspect of the original control.
3976 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
3978         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
3979           get updated when they get maximized.
3981 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
3983         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
3985 2006-08-29  Chris Toshok  <toshok@ximian.com>
3987         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
3989 2006-08-29  Jackson Harper  <jackson@ximian.com>
3991         * TreeView.cs: Need to track selected node and highlighted node,
3992         they aren't always the same thing, when the mouse is down on a
3993         node it is hilighted, but not selected yet.
3994         - Do the HideSelection stuff right
3995         - Need to focus on rbutton mouse down. And redraw selection when
3996         right click is mouse upped.
3998 2006-08-29  Mike Kestner  <mkestner@novell.com>
4000         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
4001         when SubItems.Count < Columns.Count.  [Fixes #79167]
4003 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
4005         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
4007 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
4009         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
4010           from X. Only send based on ConfigureNotify if we don't have the
4011           correct location in hwnd (if the window manager moved us)
4013 2006-08-28  Mike Kestner  <mkestner@novell.com>
4015         * ListView.cs: remove a TODO. 
4016         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
4017         [Fixes ListView part of #79166]
4019 2006-08-28  Mike Kestner  <mkestner@novell.com>
4021         * ListView.cs: move wheel handler to parent since it is focused
4022         instead of the item_control now.  [Fixes #79177]
4024 2006-08-28  Mike Kestner  <mkestner@novell.com>
4026         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
4027         when the control is focused. [Fixes #79171]
4029 2006-08-28  Mike Kestner  <mkestner@novell.com>
4031         * ListView.cs: size the item and header controls for empty and
4032         unscrollable views.
4033         * ThemeWin32Classic.cs: draw disabled backgrounds.
4034         [Fixes #79187]
4036 2006-08-28  Chris Toshok  <toshok@ximian.com>
4038         * Form.cs: remove unused "active_form" static field.
4040         * Hwnd.cs: lock around accesses to static windows collection.
4042         * Application.cs: lock threads in Exit ().
4044 2006-08-28  Chris Toshok  <toshok@ximian.com>
4046         * NativeWindow.cs: lock around accesses to window_collection.
4047         
4048 2006-08-28  Chris Toshok  <toshok@ximian.com>
4050         * Control.cs: err, fix this the right way, by locking on controls
4051         when using it.  not by making it synchronized.
4053 2006-08-28  Chris Toshok  <toshok@ximian.com>
4055         * Control.cs: make the static "controls" field synchronized, as it
4056         gets updated from multiple threads.
4058 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
4060         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
4061           Prevent other threads from exiting when calling thread sets quit state.
4062         * XEventQueue.cs: Added PostQuitState property
4064 2006-08-27  Chris Toshok  <toshok@ximian.com>
4066         * AsyncMethodData.cs: add a slot for the window handle.
4068         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
4069         window (the destination control's window, not the foster window).
4071         * Control.cs (BeginInvokeInternal): store the window's handle in
4072         the AsyncMethodData.
4073         
4075 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
4077         * XplatUIX11.cs:
4078           - PostQuitMessage: Removed resetting S.D display handle, we might have
4079             another loop started after calling PostQuitMessage (Fixes #79119)
4080           - Created destructor to reset S.D handle
4082 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
4084         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
4086 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4088         * TextControl.cs (Insert): Update the caret position even if we don't
4089           have a handle yet, just don't call the driver in that case.
4090         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
4091           to the end of the new selection text (Fixes #79184)
4093 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4095         * Form.cs (Activate): Only activate if the handle is created)
4096         * Control.c:
4097           - Mark window as invisible when it's disposed
4098           - Check if window handle is created when setting window visible, 
4099             instead of relying just on the is_created variable
4100           - Check if object is disposed when creating the control (Fixes #79155)
4102 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4104         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
4105           when allowing layout again. Otherwise we re-generate the anchoring 
4106           distance to the border again and actually alter what the user wanted
4107           This is ugly, it'd be better if we used DisplayRectangle instead of
4108           ClientRectangle for Control.UpdateDistances, but that causes us to
4109           have other problems (initial anchoring positons would be wrong)
4110           (Fixes #78835)
4112 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4114         * Control.cs:
4115           - The size and location setters shouldn't go directly to 
4116             SetBoundsCore, but to SetBounds, which triggers layout on the
4117             parent, then calls SetBoundsCore. (Related to fix for #78835)
4118           - SetBounds: Moved actual location update code into this function
4119             from SetBoundsCore, to match MS. Added call to PerformLayout if
4120             we have a parent (to trigger resizing of anchored parents if the 
4121             child size has changed (see testcase for #78835) 
4122         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
4123           new control code
4124         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
4126 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4128         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
4129           System.Drawing when a toplevel window gets closed; there might
4130           be other toplevel windows belonging to the same app (Fixes #78052)
4132 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
4134         * FileDialog.cs: After reading FileDialog settings from mwf_config
4135           use Desktop prefix only if a real folder doesn't exist anymore.
4136         * FontDialog.cs: Added char sets.
4137           It is now possible to select the font, size or style with the
4138           textboxes.
4140 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
4142         * PrintPreviewDialog.cs: Use assembly name constants.
4144 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4146         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
4147           scrollbar from whacking it's buttons)
4149 2006-08-24  Chris Toshok  <toshok@ximian.com>
4151         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
4152         in this patch (aggregating setting Left/Top/Width/Height to
4153         setting Bounds on the scrollbars), but the crux of the fix is in
4154         Recalculate, where we scroll by the remaining scroll_position if
4155         we're hiding a scrollbar.  The 2*$5 reward in the comment is
4156         serious.
4158 2006-08-24  Jackson Harper  <jackson@ximian.com>
4160         * MdiClient.cs:
4161         * MdiWindowManager.cs: If the form is made a non-mdi window we
4162         need to remove the form closed event so that closing forms works
4163         correctly.
4165 2006-08-24  Jackson Harper  <jackson@ximian.com>
4167         * Control.cs: Make IsRecreating internal so that the driver can
4168         check it
4169         - Temporarily remove the Hide when controls are removed, its
4170         making a whole bunch of things not work because visibility isn't
4171         getting reset elsewhere correctly
4172         * Form.cs: Need to do a full handle recreation when the mdi parent
4173         is set.
4174         * XplatUIX11.cs: If we are recreating handles don't dispose the
4175         HWNDs.  What was happening is the handles were being recreated in
4176         SendWMDestroyMessages, but then flow continued on in that method
4177         and destroyed the new handles.
4179 2006-08-23  Jackson Harper  <jackson@ximian.com>
4181         * Form.cs: MdiClient is always at the back of the bus
4182         * Control.cs: When the order of items in the collection is changed
4183         we need to reset the all_controls array
4184         - do the same sorta setup thats done when adding a control when a
4185         control is set on the collection.
4187 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
4189         * TextBoxBase.cs (get_Text): Return an empty array if our document
4190           is empty (fixes #79052)
4192 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4194         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
4195           on WM_SYSCHAR messages (fixes #79053)
4197 2006-08-23  Chris Toshok  <toshok@ximian.com>
4199         * DataGrid.cs: fix flickering when scrolling vertically.
4201 2006-08-23  Chris Toshok  <toshok@ximian.com>
4203         * DataGrid.cs (EndEdit): only invalidate the row header when we
4204         need to.
4206 2006-08-23  Chris Toshok  <toshok@ximian.com>
4208         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
4209         methods.  fixes the flicker when scrolling around.
4211 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4213         * FileDialog.cs: Making sure the control is created before we get a 
4214           chance to use it with BeginInvoke (Fixes #79096)
4216 2006-08-23  Chris Toshok  <toshok@ximian.com>
4218         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
4219         width to use when painting the rows.
4221 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4223         * TextBoxBase.cs:
4224           - Throw ArgumentException if a negative value is passed to SelectionLength
4225           - Update the selection end if start is moved. end needs to be always
4226             after start. (Fixes #79095)
4227           - Track selection length; MS keeps the selection length even if start
4228             is changed; reset on all other operations affection selection
4230 2006-08-22  Jackson Harper  <jackson@ximian.com>
4232         * TreeView.cs: Make sure both scrollbars get displayed and sized
4233         correctly when the other bar is visible.
4234         - Use the original clip rectangle for checking if the area between
4235         the two scrollbars is visible, not the viewport adjusted clipping
4236         rectangle.
4238 2006-08-22  Jackson Harper  <jackson@ximian.com>
4240         * Binding.cs: We don't use IsBinding because it requires the
4241         control to be created, which really shouldn't be necessary just to
4242         set a property on the control.
4244 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4246         * ComboBox.cs: Some CB.ObjectCollection methods must throw
4247         ArgumentNullReferenceException when the argument is null.
4249 2006-08-21  Jackson Harper  <jackson@ximian.com>
4251         * Timer.cs: Track the thread that the timer is started in (NOT
4252         CREATED), this way messages for it will only be triggered on its
4253         queue.
4254         * XEventQueue.cs: Track the timers here, this makes timers per
4255         thread, like MS.
4256         * XplatUIX11.cs: The timers are moved to the XEventQueue.
4258 2006-08-19  Chris Toshok  <toshok@ximian.com>
4260         * XplatUIX11.cs: after further communication with pdb, we get the
4261         best of both worlds.  SetZOrder working for un-Mapped windows, and
4262         no X errors for un-mapped windows.
4264 2006-08-19  Chris Toshok  <toshok@ximian.com>
4266         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
4267         as it was causing pdn toolbars to not have the correct stacking.
4269 2006-08-18  Mike Kestner  <mkestner@novell.com> 
4271         * ListView.cs : guard against negative ClientArea.Width in scrollbar
4272         calculation.  Not sure why control should ever be setting a negative
4273         width though.  Fixes #78931.
4275 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4277         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
4278         null items in ObjectCollection class.
4279         * ListBox.cs.: Likewise.
4281 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
4283         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
4284           as the base method in ThemeWin32Classic should work fine.
4285           Fixed bug #78607.
4287 2006-08-18  Jackson Harper  <jackson@ximian.com>
4289         * Binding.cs: When validating if the value entered doesn't convert
4290         properly reset to the old value.
4291         * RadioButton.cs: Don't fire click when we get focus.
4293 2006-08-18  Jackson Harper  <jackson@ximian.com>
4295         * FileDialog.cs: Paint the selection on the directory combobox the
4296         same way as on MS. 
4298 2006-08-17  Jackson Harper  <jackson@ximian.com>
4300         * ErrorProvider.cs: Don't allow the error control to be selected.
4301         * Control.cs: Don't send the SetFocus messages, the control
4302         activation will do this, and if we do it blindly here validation
4303         does not work.
4305 2006-08-17  Jackson Harper  <jackson@ximian.com>
4307         * Control.cs:
4308         * ContainerControl.cs: Make validation events fire in the correct
4309         order.  TODO: For some reason the first validation event is not
4310         getting fired.
4312 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4314         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
4316 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4318         * ComboBox.cs : implement scroll wheel support for popped-down
4319         state. Fixes #78945. 
4321 2006-08-17  Jackson Harper  <jackson@ximian.com>
4323         * TreeView.cs: Specify treeview actions (old patch that didn't get
4324         committed for some reason).
4325         - Don't let the mouse wheel scroll us too far.  Just want to make
4326         the bottom node visible, not scroll it all the ways to the top.
4328 2006-08-17  Jackson Harper  <jackson@ximian.com>
4330         * XplatUIX11.cs: Mouse wheel events go to the focused window.
4332 2006-08-17  Mike Kestner  <mkestner@novell.com> 
4334         * ComboBox.cs : don't do mouseover selection in simple mode.
4336 2006-08-16  Jackson Harper  <jackson@ximian.com>
4338         * Form.cs: Fire the closing events for all the mdi child windows
4339         when a window is closed.  If the cancel args are set to true, the
4340         main window still gets the event fired, but it doesn't not close.
4341         * MdiWindowManager.cs: Do this closing cleanup in a Closed
4342         handler, instead of when the button is clicked, so cancelling the
4343         close works correctly.
4344         * ComboBox.cs: Send the mouse down to the scrollbar.
4346 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4348         * ListBox.cs: When passing 'null' to SelectedItem,
4349         set SelectedIndex to -1, to unselect items. This is the
4350         observed behaviour in .Net.
4352 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
4354         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
4355           MS flags saying there won't be any. (fixes #78800)
4356         * Control.cs (HandleClick): Made virtual
4358 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
4360         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
4361           cultures. Fixed bug #78399.
4363 2006-08-16  Jackson Harper  <jackson@ximian.com>
4365         * Form.cs: Use the MdiClients MdiChildren property to access
4366         MdiChildren instead of creating the array from the child controls.
4367         * MdiClient.cs: Maintain a separate array of the mdi children, so
4368         that insertion order is maintained when the Z-order is changed.
4370 2006-08-16  Mike Kestner  <mkestner@novell.com> 
4372         * ListView.cs : add an ItemComparer and default to it for sorting.
4373         Fixes #79076, but sorting needs a complete overhaul to be compat with
4374         MS.
4376 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4378         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
4380 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4382         * Hwnd.cs (Mapped): Properly traverse the tree
4384 2006-08-15  Chris Toshok  <toshok@ximian.com>
4386         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
4387         pass manager.Current.GetType() to ParseData.  It has to be the
4388         property type.  So, hold off doing the ParseData until we're in
4389         SetPropertyValue where we know the type.  This fixes the crash in
4390         #78821 but the textbox is still empty.
4392 2006-08-15  Chris Toshok  <toshok@ximian.com>
4394         * DataGrid.cs:
4395         - when we're scrolling, only call Edit() again if the
4396         current cell is still unobscured. Fixes bug #78927.
4397         - when handling mousedown on a cell, ensure the cell is visible
4398         before calling Edit.
4399         - remove the properties from DataGridRow, and remove the
4400         DataGridParentRow class altogether.
4401         
4403 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4405         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
4406           fire OnTextChanged by ourselves. There's no point calling base,
4407           we don't set the base value anywhere else. Fixes #78773.
4409 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4411         * ListBox.cs: Call CollectionChanged when modifying
4412         an item from Items indexer, to update the actual items
4413         in the list box.
4415 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4417         * PrintDialog.cs: Small fixes for focus and a pair of checks,
4418         to match .Net behaviour.
4420 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4422         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
4424 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4426         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
4428 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4430         * MessageBox.cs: Prevent potential NRE exception.
4431         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
4433 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4435         * MessageBox.cs: Calculate the owner of a messagebox, also make
4436           it topmost. Fixes #78753
4438 2006-08-14  Chris Toshok  <toshok@ximian.com>
4440         * XplatUIX11.cs: A couple of fixes so that metacity will let us
4441         programmatically move windows.  first, set the PPosition hint as
4442         well as the USPosition hint.  Second include some code from pdb
4443         that sets the window type to NORMAL when we set the transient for
4444         hint.  This is because, in the absence of a window type, metacity
4445         thinks any window with TransientFor set is a dialog, and refuses
4446         to let us move it programmatically.  fascists.
4448 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4450         * XplatUIX11.cs: When setting normal hints, take into consideration
4451           an different hints previously set so we don't delete them (fixes #78866)
4453 2006-08-12  Chris Toshok  <toshok@ximian.com>
4455         * ToolBarButton.cs: make Layout return a boolean, if something to
4456         do with the button's layout changed.
4458         * ToolBar.cs:
4459         - add another parameter to Redraw, @force, which all existing
4460           calls set to true.
4461         - make the Layout function return a boolean which is true if the
4462           layout has actually changed.  Redraw now uses this (and @force)
4463           to determine when to invalidate.  At present the only place
4464           where @force can be false is the call from OnResize, when
4465           background_image == null.  So, resizing a toolbar when the
4466           layout doesn't change results in no drawing.
4468 2006-08-12  Chris Toshok  <toshok@ximian.com>
4470         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
4471         the VScrollBar and HScrollbar reversed.  oops.
4473         * DataGrid.cs: fix the logic that assigns sizes to the implicit
4474         scrollbars.  we were assigning them twice (once in
4475         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
4476         therefore causing two scrollbar resizes (and redraws?) to happen
4477         per grid resize.
4479 2006-08-12  Chris Toshok  <toshok@ximian.com>
4481         * ToolBarButton.cs: redraw the entire button if the theme tells us
4482         to.
4484         * Theme.cs: add ToolBarInvalidateEntireButton.
4486         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
4487         buttons, just the border.
4489         * ThemeNice.cs: redraw the entire toolbar button since we need to
4490         draw the highlight image.
4492         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
4493         we need to redraw the entire button (not just the border).
4495 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4497         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
4498           for vertical bars. Fixes the mismatches shown by #78513
4500 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
4502         * FileDialog.cs: If a saved/remembered path doesn't exist
4503           anymore, fall back to "Desktop".
4505 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4507         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
4508           parent. It's apparently legal to not have one
4509         * XplatUIX11.cs:
4510           - SetZOrder: Don't try to set Z-Order on an unmapped window
4511           - CreateWindow: 0,0 are legal coordinates for a window. don't move
4512             it unless the coordinates are negative
4514 2006-08-10  Mike Kestner  <mkestner@novell.com>
4516         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
4517         when setting to null per msdn docs.  Fixes #78854.
4519 2006-08-10  Chris Toshok  <toshok@ximian.com>
4521         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
4522         flickering by setting a clip rectangle on the Graphics when we
4523         need to redraw just a particular menuitem.  Also, rename "OnClick"
4524         to "OnMouseDown" to reflect what it actually is.
4525         
4526         * Form.cs: track the OnMouseDown change.
4528 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
4530         * CommonDialog.cs: Properly inherit the CreateParams from the form
4531           and only change what we need. Fixes #78865
4533 2006-08-10  Chris Toshok  <toshok@ximian.com>
4535         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
4536         flickering in flat mode (and most of the flickering in general) by
4537         only invalidating the button border (and not the entire rectangle)
4538         when the state changes.  A couple of cases still flicker:
4539         ToggleButtons, and the dropdown arrow case when the user mouse
4540         ups.
4542 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
4544         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
4545           for german keyboards. Numlock state shouldn't affect the behaviour
4546           of the Del key. Fixes bug #78291.
4548 2006-08-10  Chris Toshok  <toshok@ximian.com>
4550         * ListControl.cs: remove the items.Clear line from BindDataItems,
4551         as this is the first thing done by both subclasses in their
4552         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
4553         passed -1, refresh the list.  This gets databinding working when
4554         the datasource is set on the list before the datasource is
4555         populated (as in wf-apps/ReportBuilder.)
4557         * ComboBox.cs: remove the argument to BindDataItems.  This call
4558         should really go away, and be initiated by the ListControl code.
4560         * ListBox.cs: same.
4562 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4564         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
4565           if no data is in the document when the control is displayed
4567 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
4569         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
4570           yes (fixes #78806)
4571         * TextControl.cs: 
4572           - PositionCaret: Allow positioning of caret but don't call methods 
4573             requiring a handle if the window isn't created yet
4574           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
4575           - owner_HandleCreated: Don't position the caret, just update it's 
4576             location. User might have already set a different position
4578 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4580         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
4581           windows. Screws up the returned coordinates for child windows. 
4582           Fixes #78825. I'm hoping this doesn't break something, since the
4583           code was explicitly put in 8 months ago, but no bug was attached.
4584           Menus still seem to work properly.
4586 2006-08-08  Chris Toshok  <toshok@ximian.com>
4588         * DataGrid.cs: make BeginInit/EndInit actually do what they're
4589         supposed to do - delay data binding until the EndInit call.  Also,
4590         make the table style collection's CollectionChangeAction.Refresh
4591         work properly.
4593         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
4594         (with action = Refresh) when a consituent table's MappingName is
4595         changed.
4597 2006-08-08  Chris Toshok  <toshok@ximian.com>
4599         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
4600         Invalidate, since changing the text can change the size of the all
4601         toolbar buttons.
4603 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4605         * Form.cs (AddOwnedForm): Still need to add the form to our listif
4606           we don't have it yet
4608 2006-08-08  Chris Toshok  <toshok@ximian.com>
4610         * PrintControllerWithStatusDialog.cs: don't .Close() the status
4611         dialog, as this causes X errors later on, since we actually
4612         destroy the window.  Instead, .Hide() it.
4614 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4616         * ComboBox.cs: Added focus reflection for popup window
4617         * XplatUIX11.cs: 
4618           - Removed transient setting for non-app windows for now, not sure it
4619             was needed
4620           - Fixed logic checking if we have captions when deciding 
4621             override_redirect, WS_CAPTION is two bits and a 0 check was not
4622             sufficient
4623           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
4624             complicated
4625         * Form.cs: 
4626           - AddOwnedForm: Don't just add the form to the list, call the property
4627             to ensure the driver is informed about the ownership as well
4628           - CreateHandle: Set the TopMost status in the driver if we have an owner
4629         * XplatUI.cs: Fixed debug statement
4631 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
4632         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4633           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
4634           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
4635           TrackBarRenderer.cs: Make constructor private.
4636         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
4637         * ProfessionalColorTable.cs: Make properties virtual.
4639 2006-08-06  Duncan Mak  <duncan@novell.com>
4641         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
4642         is not changing.
4644 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4645         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4646           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
4647           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
4648           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
4649           Initial import of new 2.0 classes.
4651 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4652         * Application.cs: Add 2.0 VisualStyles properties.
4654 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4655         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4656           XplatUIX11.cs: Create property to allow access to existing private
4657           variable "themes_enabled"
4659 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4661         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
4662         file size, as otherwise our class libraries fail using windows. Fixes
4663         bug #78759.
4665 2006-08-04  Jackson Harper  <jackson@ximian.com>
4667         * Form.cs:
4668         * XplatUIX11.cs: Move the toolwindow window manager creation into
4669         the X11 driver, this way on win32 we can let windows create/handle
4670         the toolwindows.
4672 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4674         * PrintDialog.cs: Remove some redundant checks, add some others,
4675         clean some code, and move the focus to the text boxes when the
4676         values are incorrect.
4678 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
4680         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
4682 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4684         * NumericUpDown.cs: Setting the Minimum and Maximum is now
4685           handled correctly. Fixes bug #79001.
4687 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4689         * PrintDialog.cs: The "Copies" numeric up down must have
4690         set the Minimum property to 1; only if the value is bigger
4691         than 1, activate "Collate" check box. This is the behaviour of .Net.
4692         Also modify the Document elements only if it is not null.
4694 2006-08-03  Jackson Harper  <jackson@ximian.com>
4696         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
4697         length. (We have a larger array then actual node count).
4698                 
4699 2006-08-03  Jackson Harper  <jackson@ximian.com>
4701         * ComboBox.cs: Don't show selection by default.
4702         - The SelectAll isn't needed here, since the focus code should do
4703         that
4704         - DDL style lists to manual selection drawing, so when they
4705         get/lose focus they have to invalidate.
4707 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
4709         * TextBoxBase.cs: Don't always show all selections by default.
4711 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
4712         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
4713           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
4714           Fixed various typos.
4716 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4718         * Control.cs: Removing the controls in a ControlCollection with
4719           Clear now hides the controls as expected. Fixes bug #78804. 
4721 2006-08-03  Jackson Harper  <jackson@ximian.com>
4723         * Control.cs: Revert previous focus patch, it breaks reflector.
4725 2006-08-03  Jackson Harper  <jackson@ximian.com>
4727         * ComboBox.cs: Cleanup selection and focus with the combobox.
4728         This also eliminates some duplicated keyboard code, since now
4729         everything is handled by the main class.
4730         - Make list selection work on mouse up instead of down, to match
4731         MS.
4733 2006-08-02  Jackson Harper  <jackson@ximian.com>
4735         * Control.cs: Setting focus needs to go through the whole
4736         selection mechanism.
4738 2006-08-02  Chris Toshok  <toshok@ximian.com>
4740         * PrintPreviewDialog.cs: change MinimumSize to use
4741         base.MinimumSize so it works.
4743 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
4745         * TextControl.cs:
4746           - UpdateCaret: Added sanity check in case caret isn't defined yet
4747           - Line.Delete: Now updating selection and caret markers if we're
4748             transfering a node (Properly fixes #78323)
4749           - SetSelectionEnd: Added sanity check
4750         * TextBoxBase.cs: Removed broken attempt to fix #78323
4752 2006-08-01  Chris Toshok  <toshok@ximian.com>
4754         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
4755         Close() call is handled in Form, not here.
4757 2006-08-01  Chris Toshok  <toshok@ximian.com>
4759         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
4760         layout/rendering.
4762         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
4763         for sizes < 100% zoom.  The code now aggressively attempts to keep
4764         from calling document.Print (), and tries not to use the scaling
4765         g.DrawImage whenever possible (it still does if you scale to >
4766         100%, since usually that involves huge images).
4768         * PrintPreviewControl.cs: hook up the close button.
4770 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
4771         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
4772           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
4773           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
4774           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
4775           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
4776           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
4777           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
4778           Removed [Serializable] for 2.0 Event Handlers.
4780 2006-07-31  Jackson Harper  <jackson@ximian.com>
4782         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
4783         * TextControl.cs: Uncomment out the body of this method.
4785 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
4787         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
4788           standard cursors.
4790 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4792         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
4793           that embed TextBox and need selections visible even if textbox is not
4794           focused to enforce that behaviour.
4795         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
4796           selection drawing
4798 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4800         * TextControl.cs:
4801           - Added new SetSelectionStart/SetSelectionEnd overloads
4802           - Fixed viewport width assignment to be accurate
4803           - Adjusted alignment line shift calculations to allow cursor on right
4804             aligned lines to be always visible at the right border (like MS)
4805         * TextBoxBase.cs:
4806           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
4807           - TextBoxBase_SizeChanged: recalculating canvas on size changes
4808           - CalculateScrollBars: Use ViewPort size instead of window size, to
4809             properly consider space occupied by the border and scrollbars 
4810             (Fixes #78661)
4811           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
4812             calculations; no longer leaves artifacts
4813           - CaretMoved: Adjusted window scrolling to match MS and fixed several
4814             calculation bugs (Still missing right/center align calculations)
4816 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
4818         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
4819           use of both scroll rect and clip rect, as they do the same.
4821 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4823         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
4824           in the event handler (fixes #78912)
4826 2006-07-31  Chris Toshok  <toshok@ximian.com>
4828         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
4829         grid.ListManager.Count, since grid.ListManager might be null.
4830         This of course begs the question "why are we drawing rows for a
4831         grid with no list manager (and therefor no rows)?"  Fixes the
4832         crash in bug #78929.
4834 2006-07-31  Chris Toshok  <toshok@ximian.com>
4836         * RelatedPropertyManager.cs: Don't always chain up to the parent
4837         ctor.  instead, call SetDataSource if the parent's position is !=
4838         -1.  Fixes the crash in #78822.
4840 2006-07-31  Chris Toshok  <toshok@ximian.com>
4842         * DataGrid.cs (get_ListManager): use field instead of property
4843         accessors for datasource and datamember.
4844         (RowsCount): make internal again.
4845         (OnMouseDown): end edits before resizing columns/rows.
4846         (OnMouseUp): restart edits after resizing columns/rows.
4848 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
4850         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
4851           This fixes the situation where the last set cursor is displayed
4852           whenever the mouse is over scrollbars.
4854 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4856         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
4857         Document properties, as well as initial values.
4859 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
4861         * XplatUIWin32.cs (SetBorderStyle): Setting both border
4862           and ClientEdge results in a 3-pixel border, which is
4863           wrong.
4865 2006-07-28  Jackson Harper  <jackson@ximian.com>
4867         * TreeNodeCollection.cs: Fix the clear method.
4868         - Fix the Shrink also
4870 2006-07-27  Jackson Harper  <jackson@ximian.com>
4872         * TreeView.cs: Make sure the visible order is computed when we
4873         attempt to size the scrollbars (for trees that mess with the
4874         scrolling when they shouldn't.
4875         - Make sure to give the scrollbars valid values.
4877 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4879         * XplatUIX11.cs: Move motion compression code to where it
4880           has less performance impact
4882 2006-07-26  Jackson Harper  <jackson@ximian.com>
4884         * UpDownBase.cs: When the control is selected make the child
4885         controls non selectable, so that a click on them won't do a
4886         focus/unfocus cycle.
4887         - Don't give focus to the text box when the spinner is selected.
4888         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
4890 2006-07-26  Chris Toshok  <toshok@ximian.com>
4892         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
4893         satisfied with this solution.  If the bitmaps are small, we should
4894         just cache them in the PrintPreviewDialog and draw them here.
4895         Also, the layout is broken for the 2-up and 3-up cases.
4897         * Theme.cs: add PrintPReviewControlPaint.
4899         * PrintPreviewDialog.cs: first pass implementation.
4901         * PrintPreviewControl.cs: first pass implementation.  No
4902         scrollbars yet.
4904         * PrintDialog.cs: only validate fields if that particular portion
4905         of the UI is enabled.  Also, set the document's controller to a
4906         PrintControllerWithStatusDialog wrapping the document's print
4907         controller.
4909         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
4910         bring up a SaveFileDialog (i hope we don't want to match the
4911         behavior of the crappy windows file entry) and set the
4912         PrinterSettings.PrintFileName accordingly.
4914 2006-07-26  Jackson Harper  <jackson@ximian.com>
4916         * ContainerControl.cs: Add a field that disables auto selecting
4917         the next control in a container when the container is activated.
4918         * UpDownBase.cs: Don't select the text box when the up down is
4919         selected.
4921 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4923         * XEventQueue.cs: Added methods for peeking (used for compression
4924           of successive events)
4925         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
4926           mouse move events (fixes #78732)
4928 2006-07-25  Jackson Harper  <jackson@ximian.com>
4930         * UpDownBase.cs: Use an internal class for the textbox so that we
4931         can control focus.  the updown control should always have focus,
4932         if either the text area or the buttons are clicked.
4933         - Send the key messages to the textbox, since it never actually
4934         has focus
4935         - Activate and decativate the textbox caret.
4937 2006-07-24  Jackson Harper  <jackson@ximian.com>
4939         * Control.cs: Use the directed select when selecting a control,
4940         this way the container controls override will get called and the
4941         whole ActiveControl chain will get triggered.  TODO: probably need
4942         to make sure this gets done everywhere instead of the old
4943         Select(Control).
4944         * ContainerControl.cs: Implement the directed Select method to
4945         find and activate the correct child control.    
4946         
4947 2006-07-22  Mike Kestner  <mkestner@novell.com>
4949         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
4950         menu handling code so that clicks without a grab work too.
4951         [Fixes #78914]
4953 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
4955         * FileDialog.cs: Enable the BackButton when dirstack has one element.
4956           Added some small optimizations.
4958 2006-07-21  Matt Hargett  <matt@use.net>
4960         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
4962 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
4964         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
4965           tests pass and match MS in some strange border cases.
4967 2006-07-21  Chris Toshok  <toshok@ximian.com>
4969         * ThemeWin32Classic.cs: handle drawing of the relation links and
4970         parent row buttons.
4972         * Theme.cs: change args to DataGridPaintParentRow.
4974         * DataGrid.cs: Don't use controls for the relation links and
4975         parent buttons, so we have to handle all their interactions in
4976         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
4977         when we're navigating through child tables, so we can reinstate
4978         selection, expanded state, current cell, etc.
4980 2006-07-20  Chris Toshok  <toshok@ximian.com>
4982         * ToolBar.cs: When we redraw a button, for whatever reason,
4983         there's no reason to redraw the entire toolbar.  Also, don't call
4984         Control.Refresh from within Redraw, as it's much heavier than
4985         Invalidate (which is really what we want).
4987 2006-07-20  Chris Toshok  <toshok@ximian.com>
4989         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
4990         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
4991         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
4992         traces from within a debug IBindingList datasource
4993         (in mono/winforms/datagrid) for *days*, I've finally gotten things
4994         to work in a similar fashion.
4996 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4998         * ListBox.cs: Don't call Sort () when setting 
4999         the Sorted property to false (avoid an unnecessary sort).
5001 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5003         * ListControl.cs: DataSource should throw an ArgumentException
5004         instead of a normal exception when the argument is not of the 
5005         correct type.
5007 2006-07-20  Mike Kestner  <mkestner@novell.com>
5009         * Control.cs: add InternalPreProcessMessage to allow us to steal
5010         key events before MWF gets its paws on them.  Adapted from a
5011         suggestion by eno.
5012         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
5013         up/down/left/right navigation. Override the new internal control
5014         method to steal the events since they never make it to WndProc.
5015         * ToolBarButton.cs: don't worry about pushed when setting hilight
5016         since the drawing code prefers pushed to hilight. Invalidate on 
5017         Hilight changes. Fixes #78547 and #78525.
5019 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
5021         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
5022           the canvas size. Fixes #78868
5024 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
5026         * Splitter.cs: Track requested split position until first layout
5027           is performed. Fixes #78871
5029 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
5031         * Application.cs: Removed code that forces 1.x for the version
5032           number if the version started with 0. Not sure why that code was
5033           there and I couldn't find any bugs that indicated we needed it.
5034           Fixes #78869
5036 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
5038         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
5039           ResetDefaults(), just write some output to the console until it's
5040           implemented. Fixes bug #78907 for now. Eliminated two warnings.
5042 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
5044         * PropertyGridView.cs: set StartPosition of drop down forms
5045         so they appear in correct initial spot.  Fixes #78190.
5047 2006-07-19  Mike Kestner  <mkestner@novell.com>
5049         * ThemeWin32Classic.cs: use parent background color when drawing
5050         flat toolbars.  Restructure the conditionals to make sure non-flat
5051         non-Divider toolbars are filled too.  Fixes #78837.
5053 2006-07-19  Mike Kestner  <mkestner@novell.com>
5055         * ListBox.cs: Sort on collection changes even if the handle
5056         isn't created yet.  Fixes #78813.
5058 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5060         * ListControl.cs: DisplayMember should never be null,
5061         and now we assign String.Empty when null is passed to it (this
5062         is the .Net way).
5064 2006-07-17  Mike Kestner  <mkestner@novell.com>
5066         * ListViewItem.cs: restructure Font and subitem Font handling 
5067         to hold a specific font and refer back to owner on null.
5068         Fixes #78761.
5070 2006-07-17  Mike Kestner  <mkestner@novell.com>
5072         * ToolBar.cs: bandaid for side-effect of previous patch which was
5073         discarding explicit heights for non-AutoSize toolbars.  Need to
5074         extend my format tester to deal with AutoSize=false. Fixes #78864.
5076 2006-07-15  Jackson Harper  <jackson@ximian.com>
5078         * LabelEditTextBox.cs:
5079         * TreeView.cs: Use a new LabelEdit class for node editing, this
5080         class automatically 'closes' itself when it gets the enter key or
5081         loses focus.
5082         - Use the client rectangle when setting the trees scrollbars, so
5083         border style is taken into account.
5084         
5085 2006-07-14  Jackson Harper  <jackson@ximian.com>
5087         * TreeNode.cs:
5088         * TreeView.cs: Make the editing work similar to MSs, firing the
5089         events correctly and ending edits correctly.
5091 2006-07-14  Mike Kestner  <mkestner@novell.com>
5093         * ToolBarButton.cs:
5094         * ToolBar.cs: layout restructuring and redraw enhancements to support
5095         formatting changes gracefully, like setting TextAlign, ImageList, 
5096         ButtonSize, and Appearance.  Handles explicit button sizing quirks
5097         of the MS controls.  Things like flat toolbars ignoring button size
5098         but becoming constant sized at the largest button's size.  Normal
5099         toolbars with an image set cannot be shrunk smaller than the image,
5100         but text can be clipped/ignored.
5101         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
5102         is zero.  Seems like DrawString should be smart enough to not put
5103         anything on screen though. Also trim labels and ellipsize at the char
5104         boundary, not word.
5105         Fixes #78711 and #78483.
5107 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5109         * FolderBrowserDialog.cs: Disable "New Folder" button and
5110           "New Folder" contextmenu menuitem if a folder like "My Computer"
5111           is selected.
5113 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5115         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
5116         * FolderBrowserDialog.cs:
5117           - Use MWFConfig to store and read size and position settings
5118           - Added code to create a new folder (button or context menu).
5119             Use TreeView labeledit to change the name of the new folder.
5121 2006-07-14  Jackson Harper  <jackson@ximian.com>
5123         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
5124         when the tree is scrolled we end editing.
5126 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
5128         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
5129           Down arrows
5131 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
5133         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
5134         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
5135         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
5136         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
5137         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
5138         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
5139         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
5140         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
5141         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
5142         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
5143         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
5144         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
5145         ListViewItemSelectionChangedEventHandler.cs,
5146         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
5147         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
5148         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
5149         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
5150         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
5151         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
5152         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
5153         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
5154         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
5155         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
5156         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
5157         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
5158         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
5159         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
5160         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
5161         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
5162         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
5163         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
5164         WebBrowserNavigatingEventHandler.cs, 
5165         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
5167 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
5169         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
5170         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
5171         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
5172         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
5173         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
5174         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
5175         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
5176         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
5177         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
5178         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
5179         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
5180         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
5181         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
5182         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
5183         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
5184         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
5185         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
5186         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
5187         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
5188         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
5189         ListViewItemStates.cs, MaskFormat.cs: Added
5191 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
5193         * PropertyGridView.cs: Fix keyboard navigation of drop down.
5194         Patch from eno for bug 78558.
5195         
5196 2006-07-13  Jackson Harper  <jackson@ximian.com>
5198         * TreeView.cs: When an edit is finished make sure that the
5199         selected node is visible.
5200         - When setting the top/bottom use the scrollbars is_visible, so
5201         everything will be set correctly even if the tree isn't visible
5202         yet.
5204 2006-07-13  Jackson Harper  <jackson@ximian.com>
5206         * ComboBox.cs: Revert the item->index part of my previous patch.
5207         * TreeView.cs: Use LostFocus instead of Leave for detecting when
5208         the edit box has lost focus (duh).
5209         - Just make the edit box not visible when we get return, that will
5210         take the focus, which will call EndEdit
5211         * TreeNode.cs When we start editing, notify the treeview.
5213 2006-07-12  Jackson Harper  <jackson@ximian.com>
5215         * ComboBox.cs: Clear out old items before setting the item list.
5216         This prevents databound controls from having their items added
5217         twice.
5218         - Switch the combobox to use indices whereever possible instead of
5219         using Item's.  This allows usto navigate through lists that have
5220         more then one item with the same string value (ie a, b, b, a).
5221         - Scroll the listboxes scrollbar when a non visible item is
5222         highlighted
5223         - Allow keypress to cycle through all the possible values. For
5224         example if you have b1, b2, b3 and hold down the B key all the
5225         values will be cycled through.
5226         
5227 2006-07-12  Jackson Harper  <jackson@ximian.com>
5229         * TextBoxBase.cs:
5230         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
5231         this using the internal methods.
5232         * Control.cs: Add OnGotFocusInternal.  A new method that allows
5233         controls to "override" OnGotFocus and change focus behavior if
5234         needed.
5235         - Same thing for LostFocus
5236         * ComboBox.cs: Pass off focus to the text control properly.
5238 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
5240         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
5241         * FolderBrowserDialog.cs: Almost a complete rewrite.
5242           - Better support for Environment.Specialfolders
5243           - Added support for MWFVFS
5244           - Made setting SelectedPath work
5246 2006-07-12  Jackson Harper  <jackson@ximian.com>
5248         * Control.cs: Optimze getting all the controls.
5250 2006-07-11  Jackson Harper  <jackson@ximian.com>
5252         * ContainerControl.cs: Override SETFOCUS in the container control,
5253         so that it is not selected on mouse click.
5255 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
5257         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
5258           Hopefully we will have a better way once all of focus is complete.
5260 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
5262         * ThemeWin32Classic.cs: Commented out some debug code and fixed
5263           a compile error with csc.
5265 2006-07-11  Jackson Harper  <jackson@ximian.com>
5267         * Control.cs: When hiding a control only select the next control
5268         if the current control was focused.
5269         - Don't handle enter/leave when setting/killing focus, this is
5270         done by the container control.
5271         - Remove is_selected, it's not needed anymore.
5272         - Add utility methods for selecting a child control, and for
5273         firing the Enter/Leave events.
5274         * ContainerControl.cs: When a control is activated fire the
5275         enter/leave events.
5276         - Don't wrap when processing the tab key, so that focus can be
5277         moved outside of the container.
5278         - Use the correct active control
5280 2006-07-11  Jackson Harper  <jackson@ximian.com>
5282         * ComboBox.cs: Remove some debug code that was blinding me.
5283         * UpDownBase.cs: These controls actually aren't implicit, they are
5284         visible to the user.
5286 2006-07-10  Chris Toshok  <toshok@ximian.com>
5288         * DataGrid.cs: move back to the is_adding boolean field.  god i
5289         hate this is_editing/is_adding/is_changing stuff.
5291 2006-07-10  Chris Toshok  <toshok@ximian.com>
5293         * DataGridTableStyle.cs: just check if the property type is bool.
5294         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
5295         Don't use CanRenderType.
5297         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
5298         if our text == NullText.  Remove CanRenderType.
5300         * DataGridBoolColumn.cs: nuke CanRenderType.
5302         * DataGrid.cs: reenable some code to end the current edit inside
5303         of set_CurrentCell.  This fixes the other 1.1.16 regression.
5304         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
5305         Also, remove the visible_row_count arg from CalcRowHeaders, since
5306         we don't need to worry about the actual height of the area.
5308 2006-07-10  Chris Toshok  <toshok@ximian.com>
5310         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
5311         mode, just return.
5313         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
5314         the real sense of the IsInEditOrNavigateMode property (true =
5315         navigate, false = edit).  Also, update OnKeyPress to reflect this.
5317         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
5318         column style exists, we still need to set its property descriptor
5319         to match up with our list manager.
5321 2006-07-10  Chris Toshok  <toshok@ximian.com>
5323         * ThemeWin32Classic.cs: implement the new row/header painting
5324         approach.  The parent row painting will likely go away and
5325         replaced with label controls, but the rest seems to work ok (and
5326         efficiently).
5328         * Theme.cs: change the way we draw datagrid rows.  we don't draw
5329         the row headers as a block now.  Instead we draw them in the
5330         normal draw-row loop.  Add some calls for drawing parent rows and
5331         relation rows.
5333         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
5334         a default table style.  Set the defaults from ThemeEngine.Current,
5335         not SystemColors.  Fix lots of misc issues with property setters.
5337         * DataGrid.cs: move loads of style information out of this class
5338         as it's being duplicated with DataGridTableStyle.  keep track of a
5339         special DataGridTableStyle for the properties we used to mirror
5340         here.  Switch all the style properties to access this table style
5341         instead of instance fields of this class.  Also add a internal
5342         class to represent parent rows (more needs to be stored here, like
5343         the selection state from the parent table, as well as the
5344         expansion state.)  Also, for datasources with relations, do the
5345         right thing for collapse/expand, and add support for the
5346         navigation/parent row buttons.
5348         Lastly, fix the crash in the 1.1.16 build.
5350         * GridTableStylesCollection.cs: make the explicit interface
5351         implementations call the class's methods as opposed to duplicating
5352         them.
5354         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
5355         0 so the text doesn't jump around when we move the cursor.
5357 2006-07-10  Jackson Harper  <jackson@ximian.com>
5359         * TextBoxBase.cs:
5360         * ListBox.cs: Match MS's ToString (this makes debugging focus
5361         stuff infinitely easier).
5363 2006-07-10  Jackson Harper  <jackson@ximian.com>
5365         * Control.cs (SelectNextControl): When checking the control's
5366         parent use this instead of ctrl.parent so that null can be passed
5367         to SelectNextControl. (I have unit tests for this).
5368         - Remove unused var.
5370 2006-07-10  Chris Toshok  <toshok@ximian.com>
5372         * CurrencyManager.cs: correct one regression, the removal of the
5373         finalType field.  Also, add a MonoTODO on CanAddRows, implement
5374         Refresh() correctly, and fix some event emission in
5375         ListChangedHandler.
5377 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5379         * FileDialog.cs: Don't use brackets for new folders if they exist
5380           under *nix. Instead use -(number of existing folders +1).
5382 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5384         * FileDialog.cs:
5385           - Fixed really nasty bug #78771
5386           - Don't block the whole GUI when reading directories with a lot of
5387             entries. Use an other thread instead and call BeginInvoke to
5388             update the ListView in MWFFileView
5390 2006-07-07  Chris Toshok  <toshok@ximian.com>
5392         * Control.cs (Dispose): release any Capture when disposing.
5394 2006-07-07  Chris Toshok  <toshok@ximian.com>
5396         * LinkLabel.cs (Select): if we chain up to the parent, set
5397         focused_index to -1 so we'll search for the first available link
5398         the next time the user tabs into us.  Also, if the direction is
5399         backward and focused_index == -1, start the search from the last
5400         element.
5402 2006-07-07  Chris Toshok  <toshok@ximian.com>
5404         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
5405         is beyond the end of the text, don't do anything.
5406         (CreateLinkPieces): set our ControlStyles.Selectable based on
5407         whether or not we have any links.
5408         (Link.Invalidate): use a loop instead of foreach.
5409         (Link.set_Start): null out owner.sorted_links so it'll be
5410         recreated by CreateLinkPieces.
5412 2006-07-06  Chris Toshok  <toshok@ximian.com>
5414         * LinkLabel.cs: revert the SetStyle change.
5416 2006-07-06  Chris Toshok  <toshok@ximian.com>
5418         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
5419         (OnEnableChanged): s/Refresh/Invalidate
5420         (OnGotFocus): if we have a focused index already, refocus it (so
5421         if we mouse out/in to the window it'll focus the right link).
5422         (OnKeyDown): move the tab handling out of here.
5423         (OnLostFocus): don't set focused_index to -1, so we can refocus it
5424         when we lose focus.
5425         (OnMouseDown): don't Capture here - Control handles it.  Also,
5426         focus the active link.
5427         (OnMouseUp): don't deal with Capture.
5428         (OnPaintBackgroundInternal): remove.
5429         (OnTextAlignChanged): CreateLinkPieces before calling the
5430         superclass's method.
5431         (OnTextChanged): call CreateLinkPieces before calling superclass's
5432         method.
5433         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
5434         move around.
5435         (Select): implement this, moving the selection between different
5436         links, and call parent.SelectNextControl if we don't have another
5437         link to focus in the given direction.
5438         (CreateLinkPieces): call Invalidate instead of Refresh.
5439         
5440 2006-07-06  Chris Toshok  <toshok@ximian.com>
5442         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
5443         new LinkLabel internals.
5445         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
5446         over pieces looking for active/focused/etc links.  also, deal with
5447         runs of text (and links) with embedded \n's in them, and use
5448         MeasureCharacterRanges instead of MeasureString to figure out the
5449         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
5450         two-step.
5452 2006-07-04  Jackson Harper  <jackson@ximian.com>
5454         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
5455         XKB or key auto repeat, do it manually.  Without key auto repeat,
5456         when a key is held down we get key press, key release, key press,
5457         key release, ... with auto repeat we get key press, key press, key
5458         press ..., and then a release when the key is actually released.
5460 2006-07-03  Jackson Harper  <jackson@ximian.com>
5462         * TabControl.cs:
5463         * ThemeWin32Classic.cs: Tabs do not obey normal background color
5464         rules, they are always control color regardless of the background
5465         color.
5467 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
5469         * FileDialog.cs: Added internal class MWFConfig.
5470           Removed Registry support and replaced it with support for the new
5471           MWFConfig class. See MWFConfig comments for more information.
5473 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
5475         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
5476           rectangle. Added some patches from eno from bug #78490 and fixed
5477           the arrow position for small up and down CPDrawScrollButtons.
5479 2006-06-30  Jackson Harper  <jackson@ximian.com>
5481         * InternalWindowManager.cs: Remove some debug code.
5482         * Form.cs: When an MdiParent is set to null, the window is
5483         "detatched" and becomes a normal window.
5484         * MdiClient.cs: Don't bring the new child form to the front until
5485         it is activated (setting it as active does this), this makes the
5486         previously active forms titlebar get redrawn as inactive.
5488 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
5490         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
5491           with later controls
5493 2006-06-29  Mike Kestner  <mkestner@novell.com>
5495         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
5496         arrow in keynav state.  Fixes #78682.
5498 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5500         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
5501           order (fixes #78393)
5503 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
5505         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
5506           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
5507           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
5508           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
5509           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
5510           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
5511           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
5512           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
5513           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
5514           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
5515           enumerations (FlagsAttribute, SerializableAttribute, added/removed
5516           values)
5518 2006-06-28  Mike Kestner  <mkestner@novell.com>
5520         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
5522 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5524         * PropertyGrid.cs,
5525           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
5526           item lines from other area (It also makes BackColor consistent and
5527           compatible with .NET). Fixed bug #78564.
5529 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
5531         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
5532         Patch from Eno for #78555.
5534 2006-06-27  Chris Toshok  <toshok@ximian.com>
5536         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
5538         * DataGridColumnStyle.cs: same.
5540         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
5541         
5542         * DataGridDrawingLogic.cs: nuke.
5544 2006-06-27  Chris Toshok  <toshok@ximian.com>
5546         * DataGridTableStyle.cs: clean up the constructors, and build the
5547         list of child relations for this table.  I have no idea if this is
5548         where we should be doing it (it probably isn't), but since we're
5549         already iterating over the properties..
5551         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
5552         struct and array for keeping track of row information, similar to
5553         what's shown in a hack on
5554         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
5556         * Theme.cs: be consistent about the naming of DataGrid methods,
5557         prefering ColumnWidths and RowHeights over columnsWidths and
5558         RowsHeights.
5560         * ThemeWin32Classic.cs: same, and also add support for variable
5561         sized rows (and the +/- expansion icons for related rows).
5563 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5565         * TextBoxBase.cs: Applied Eno's patch from #78660
5567 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5569         * Form.cs (ScaleCore): We don't want to scale our form if it's
5570           state is minimized or maximized, but we still need to scale our
5571           child windows. Also, added try/finally block to ensure layout
5572           gets reset (Fixes #78697)
5574 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5576         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
5578 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5580         * Form.cs: Fixed c+p error and added check to resize form if minimum
5581           size is bigger than current size (Fixes #78709)
5583 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
5585         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
5587 2006-06-26  Mike Kestner  <mkestner@novell.com>
5589         * ComboBox.cs: only do Keypress handling in the combo when there  
5590         are items in the collection. Fixes #78710.
5592 2006-06-26  Chris Toshok  <toshok@ximian.com>
5594         * Binding.cs: make this work bi-directionally.  also, clear up
5595         other mixups between Push/Pull Data (e.g. we're supposed to pull
5596         data when validating).
5598         * BindingManagerBase.cs: trim some fully qualified collection
5599         types.
5601         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
5603 2006-06-23  Chris Toshok  <toshok@ximian.com>
5605         * PropertyManager.cs: It appears (according to the unit tests)
5606         that PropertyManager doesn't use
5607         PropertyDescriptor.AddValueChanged to track propery value changes
5608         in its datasource, but uses the same scheme as Binding, where it
5609         looks for a <Property>Changed event and binds to it.
5611         Also, according to the docs, IsSuspended always returns false for
5612         a property manager with a non-null datasource.
5614 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
5616         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
5617           need to update the actual DialogResult. (Fixes #78613)
5619 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
5621         * Form.cs (ShowDialog): Release any captures before running the
5622           new message pump (fixes #78680)
5624 2006-06-22  Mike Kestner  <mkestner@novell.com>
5626         * ListView.cs: Layout column widths properly in details mode even 
5627         if HeaderStyle.None is set.  Fixes #78691.
5629 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
5631         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
5633 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
5635         * Control.cs (ContainsFocus): Using new driver method to get focused
5636           window, instead of trying to use internal tracking var, which can
5637           recursion issues (Fixes #78685)
5638         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
5639           XplatUIWin32.cs: Added GetFocus method to return focused window
5641 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5643         * ColorDialog.cs: when the mouse button is pressed inside the color
5644         matrix, don't let the cursor move out of it until the button is
5645         released, which is the behavior on windows. Changed 'colours' by
5646         'colors' to use the same word consistently.
5648 2006-06-21  Chris Toshok  <toshok@ximian.com>
5650         * DataGrid.cs: add in some basic navigation stuff (navigating to a
5651         child relation and back, using a stack).  Also, remove
5652         GetDataSource and the code that calls it - it's not needed.  Also,
5653         track CurrencyManager.ListName's removal.
5655 2006-06-21  Chris Toshok  <toshok@ximian.com>
5657         * CurrencyManager.cs: push some of the original type checking from
5658         BindingContext.CreateBindingManager to here, and remove some of
5659         the finalType stuff.  Need more tests to make sure I've got the
5660         ListName part right, and we might need more in SetDataSource.
5662         * PropertyManager.cs: add a ctor that takes just the datasource,
5663         and no property name.  Make SetDataSource work with a null
5664         property_name, and make Current return the data_source if the
5665         property descriptor is null.  this makes 'string foo = "hi";
5666         BindingContext[foo].Current' return "hi" as it should.
5668         * RelatedCurrencyManager.cs: make this code more generic - there's
5669         no reason the parent manager has to be CurrencyManager, and
5670         there's no reason to pass the DataRelation.  It suffices to use a
5671         BindingManagerBase and PropetyDescriptor.
5673         * RelatedPropertyManager.cs: make a similar change here.
5674         
5675         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
5676         flower I knew it could be.
5678 2006-06-20  Chris Toshok  <toshok@ximian.com>
5680         * PropertyManager.cs: the PropertyChangedHandler is invoked when
5681         data in the source has changed and we need to update the control,
5682         so s/PullData/PushData.
5684         * CurrencyManager.cs: Refresh is meant to update the control from
5685         data in the datasource.  So, s/PullData/PushData.
5687         * BindingContext.cs: add more ugliness (we weren't handling the
5688         case where data_source = DataTable and data_member = column_name).
5690         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
5691         from the perspective of the datasource.  PullData pulls from the
5692         control, PushData pushes to the control.
5694 2006-06-20  Chris Toshok  <toshok@ximian.com>
5696         * BindingContext.cs: rewrite the CreateBindingManager code to
5697         handle navigation paths more or less properly.  This could
5698         definitely stand some more work, in particular to push the
5699         recursion up to the toplevel.  But that relies on fixes in other
5700         places (System.Data comes to mind).
5702         Also, move to a flat hashtable (and encode the twolevel nature of
5703         the dictionary into the hash key).  This lets us implement the
5704         IEnumerable.GetEnumerator method.
5706         * RelatedCurrencyManager.cs: new class.  Update our view based on
5707         our relation and our parent CurrencyManager's position.
5709         * CurrencyManager.cs: split out some logic from the ctor into
5710         SetView, so it can be called from the new RelatedCurrencyManager
5711         subclass.
5713         * RelatedPropertyManager.cs: new class.  Update our datasource
5714         based on the position of our parent CurrencyManager.
5716         * PropertyManager.cs: split out some logic from the ctor into
5717         SetDataSource, so it can be called from the new RelatedDataSource
5718         subclass.  Also, make the Current getter return the value
5719         of the PropertyDescriptor, not the data_source.
5721         * Binding.cs: no need to duplicate the string splitting code here.
5723 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5725         * Control.cs:
5726           - set_Enabled: OnEnabledChanged is not called if the inherited state 
5727             of the control is not altered, even though  we might be changing the
5728             internal state of the control (#78458)
5729           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
5730             OnEnabledChanged, to allow easy altering of any child window state
5731           - OnEnabledChanged: Added code to enable/disable driver window state
5732           - OnParentEnabledChanged: Instead of firing the event, call 
5733             OnEnabledChanged, which will fire the event and also a) set driver
5734             window state and pass the enabled state to any grandchildren (#78458)
5736 2006-06-19  Jackson Harper  <jackson@ximian.com>
5738         * InternalWindowManager.cs: We don't set the cursor explicitly
5739         thats done via the response to NCHITTESTs.
5740         - Don't need to adjust for titlebar heights anymore, the
5741         coordinates are coming in the correct coordinates now (see peters
5742         last patch).
5745 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5747         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
5748           being translated relative to whole window, instead of client window.
5749           That caused broken offsets on mouseclick (and caused gas for our
5750           InternalWindowManager)
5752 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5754         * TextControl.cs:
5755           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
5756           - Undo(): Added replay of cursor move on DeleteChars action; added
5757             calling Undo() again if a recorded cursor move is invalid (to
5758             ensure that some action is performed on Undo)
5759         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
5761 2006-06-16  Jackson Harper  <jackson@ximian.com>
5763         * MdiClient.cs: Instead of just sizing maximized windows when
5764         there is a resize we also have to adjust the Y of minimized
5765         windows, so they stay pinned to the bottom of the mdi container.
5766         - Eliminate separate tracking of the active control, we can just
5767         get this from the controls collection.
5768         - Paint the decorations for the newly activated titlebar so we get
5769         a pretty blue bar.
5770         * InternalWindowManager.cs:
5771         * ThemeWin32Classic.cs: Minimized windows get all three buttons
5772         even if they are a tool window.
5773         
5774 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5776         * TextControl.cs (Undo): Handle non-existent cursor locations in the
5777           undo buffer, these can happen when text was deleted and the cursor
5778           was recorded first. Since we will also have a recorded cursor
5779           after the delete this is not an issue. (Fixes #78651)
5781 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
5783         * AccessibleObject.cs: Remove dependence on Control.is_selected;
5784           instead properly track control states internally (allows us to
5785           remove is_selected from Control)
5787 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5789         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
5790         whose width is not a multiple of 8.
5792 2006-06-13  Jackson Harper  <jackson@ximian.com>
5794         * MdiClient.cs:  Only maximize the next child if the current one
5795         is maximized.
5797 2006-06-13  Chris Toshok  <toshok@ximian.com>
5799         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
5800         modified.  Also, guard against grid or grid_drawing being null in
5801         Invalidate.
5803         * DataGrid.cs: Reformat tons of getters/setters.  In the
5804         DataMember setter, just call SetNewDataSource instead of
5805         duplicating some of its functionality.  In SetNewDataSource, don't
5806         check ListManager for null, since the property getter creates the
5807         object if needed.
5809         * DataGridTableStyle.cs: don't set TableStyle or call
5810         SetDataGridInternal on the column here, it's done in
5811         GridColumnStylesCollection.Add.
5813         * GridColumnStylesCollection.cs: fix all the explicit interface
5814         implementations to just call our methods.  Nuke AddInternal() and
5815         move the body of it to Add().  Also, add a call to
5816         column.SetDataGridInternal to Add().
5818         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
5819         base()+duplicate code.  Also, use the Format property instead of
5820         format to generate an Invalidate ala MS.  Lastly, create the
5821         textbox here, unconditionally.
5822         (set_Format): call Invalidate.
5823         (get_TextBox): no need to call EnsureTextBox.
5824         (Commit): remove the message box.
5825         (Edit) remove the call to EnsureTextBox.
5826         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
5827         (EnterNullValue): no need to check textbox for null.
5828         (HideEditBox): no need to check textbox for null.
5829         (SetDataGridInColumn): add the textbox to the grid's controls.
5830         (EnsureTextBox): nuke.
5831         
5832 2006-06-13  Jackson Harper  <jackson@ximian.com>
5834         * MdiWindowManager.cs: Hook up to the maximized menus paint event
5835         and redraw the buttons when needed. Unhook when the window is
5836         unmaximized.
5837         * MainMenu.cs: Add an internal Paint event, the mdi window manager
5838         needs this so that it can redraw its buttons when the menu is
5839         repainted.
5840         * InternalWindowManager.cs:
5841         * Form.cs: The method order has changed for DrawMaximizedButtons,
5842         so that it can be a PaintEventHandler.
5843         
5844 2006-06-13  Jackson Harper  <jackson@ximian.com>
5846         * MdiClient.cs: When we close a maximized mdi window, the next mdi
5847         window is activated and maximized, even if it wasn't before.
5848         - When  a new window is activated repaint the decorations of the
5849         old one, so that it no longer has the Active "look" (the blue
5850         titlebar).
5851         * InternalWindowManager.cs: Open up CreateButtons to base classes
5852         so they can recreate the buttons on state changes.
5853         - If a window is maximized give it all three buttons
5854         * MdiWindowManager.cs: Create the titlebar buttons when the state
5855         is changed, this is needed because a toolwindow will not have all
5856         three buttons until it is maximized.
5858 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
5860         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
5861           Fixed bug #78609.
5863 2006-06-12  Jackson Harper  <jackson@ximian.com>
5865         * KeysConverter.cs: Make sure we handle the Ctrl special case
5866         if its the only key.
5867         
5868 2006-06-12  Jackson Harper  <jackson@ximian.com>
5870         * Theme.cs: Add a method to get the size of a managed window
5871         toolbar button.
5872         * InternalWindowManager.cs: Remove the ButtonSize property, this
5873         should be retrieved from the theme.
5874         * MdiWindowManager.cs: Get the button size from the theme
5875         * ThemeWin32Classic.cs: Make the method to get the managed window
5876         titlebar button size public.
5877         - Handle the different button sizes of maximized toolwindows
5878         (should match any maximized window).
5879         - Get the titlebar height from the theme, not the WM (which gets
5880         it from the theme).
5882 2006-06-12  Jackson Harper  <jackson@ximian.com>
5884         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
5885         event down to the mdi window manager.
5886         - Expose some extra stuff to base classes
5887         - Make sure to end the Capture on an NC Mouse up, so that we can
5888         get double clicks properly, and the sizing doens't stick.
5889         - When doing PointToClient contain it in the workable desktop
5890         area, this prevents windows from changing size when the cursor is
5891         pulled outside of the working area while sizing.
5892         * MdiWindowManager.cs: When we get a double click maximize the
5893         window.
5894         - Reset the cursor after handling mode changes.
5896 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
5898         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
5899           current desktop, instead of just assuming a 0, 0 origin. This
5900           is needed for our internal window manager, to know the top
5901           margin of the desktop
5903 2006-06-12  Chris Toshok  <toshok@ximian.com>
5905         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
5906         we need this to get rid of the selected background in the bool
5907         column.
5908         (CancelEditing): move the ConcedeFocus call to above the Abort
5909         call.  Also, set is_changing to false and invalidate the row
5910         header if we were changing before.
5911         (ProcessKeyPreviewInternal): remove, since noone outside this
5912         class calls it anymore.  Roll the code into ProcessKeyPreview.
5913         (EndEdit): remove the internal version.
5914         (InvalidateCurrentRowHeader): make private.
5916         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
5917         Keys.Escape handling (and with it the last call to
5918         DataGrid.EndEdit from outside the class.)
5921 2006-06-12  Chris Toshok  <toshok@ximian.com>
5923         * DataGridTextBox.cs (.ctor): isedit defaults to false.
5924         (OnKeyPress): set isedit to true.
5925         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
5926         already handled by the grid.
5928         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
5929         right.  ugh.
5930         (set_DataSource): SetDataSource always returns true, so stop
5931         putting it in an if statement.
5932         (EndEdit): get rid of some {}'s
5933         (ProcessGridKey): return true in case Keys.Escape.
5934         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
5935         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
5936         PositionChanged, stopped connecting to CurrentChanged.
5937         (GetDataSource): simplify this a bunch.
5938         (SetDataSource): change return type from bool to void.
5939         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
5940         to this, and make sure we don't set ListManager.Position inside
5941         set_CurrentCell.
5942         (OnListManagerItemChanged): if we're passed an actual index,
5943         redraw that row.
5945         * CurrencyManager.cs (set_Position): don't call PullData here.
5947 2006-06-09  Jackson Harper  <jackson@ximian.com>
5949         * TreeNode.cs:  Recalculate the visible order before doing the
5950         Expand/Collapse Below calls, because those calls generate an
5951         expose.
5952         - Reduce calls to the TreeView property, which is mildly expensive
5953         by using a local var.
5954         * Form.cs: Layout the MDI child windows when creating the parent
5955         form.
5956         - Don't use the internal constructor anymore
5957         * MdiClient.cs: use the parent form width/height (if available)
5958         when laying out the child windows, we do this because the
5959         mdiclient isn't docked yet when the initial layout is done.
5960         - Don't need an internal constructor anymore.
5962 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5964         * FileDialog.cs: handle access errors when trying to create a folder
5965         or changing to a directory. No need to initialize out parameters.
5967 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5969         * FileDialog.cs: Append a number when creating a new folder if the
5970           folder already exists (use parenthesis instead of square brackets)
5972 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5974         * FileDialog.cs:
5975           - Disabled registry support for windows and added better registry
5976             error checking for other systems (need to investigate why it
5977             works perfectly on my system)
5978           - If a folder already exist show an error MessageBox instead of
5979             trying to create an indexed name.
5980           - Fixed a non intentional typo.
5982 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5984         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
5986 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5988         * FileDialog.cs: When creating a new folder don't crash if the
5989           folder already exists.
5991 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5993         * FileDialog.cs: Allmost a complete rewrite.
5994           - added a "virtual" file system that handles the differences
5995             between unix and windows file systems (especially the directory
5996             structure). Moved most of the directory and file handling code
5997             into the vfs.
5998             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
5999             UnixFileSystem and FSEntry.
6000           - Recently used folder/directory, size, location and used file names
6001             (file name ComboBox) are now stored in the registry and get read
6002             before the dialog shows up (fixes part 6 of bug #78446).
6003           - Creation of new folders/directories is now possible (context menu
6004             or ToolBar). Added TextEntryDialog for this that fills in the gap
6005             until ListView.LabelEdit works.
6006           - Fixed cursor handling (bug #78527) and focus handling for
6007             PopupButtonPanel
6008           - Various "Search in" ComboBox enhancements. The content of the
6009             dropdown listbox now almost matches ms.
6010           - Changed the behaviour when the user switches to SpecialFolder
6011             Recent to show the ListView in View.Details.
6012           - Beside using the ToolBar to change the View property of the
6013             file ListView it is now possible to use the context menu too.
6015 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
6017         * ComboBox.cs: Don't create a new ObjectCollection when an item
6018           gets inserted. Just insert the item in the existing object_items
6019           ArrayList.
6021 2006-06-08  Jackson Harper  <jackson@ximian.com>
6023         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
6024         that the treeview and root node checks are done also, this fixes a
6025         regression i caused in the unit tests.
6027 2006-06-07  Wade Berrier <wberrier@novell.com> 
6029         * RichTextBox.cs: More ISO8859-1 -> unicode
6031 2006-06-07  Mike Kestner  <mkestner@novell.com>
6033         * ComboBox.cs : use items to hold highlight/selection so that
6034         collection insertions don't require synchronization.
6036 2006-06-07  Jackson Harper  <jackson@ximian.com>
6038         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
6039         routine.  We now always keep the sized edge at the cursor instead
6040         of computing movement and adjusting rects.  There is one buglet
6041         with this method though when the cursor is moved over area that
6042         the window can not expand too (such as the toolbars on the desktop).
6044 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6046         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
6047         here. Fixes crash on startup in AlbumSurfer.
6049 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
6051         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
6052           values
6054 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6056         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
6057         statement to avoid calling XNextEvent which will block if another thread
6058         took the event that we were expecting. Fixes bug #78605.
6060 2006-06-07  Mike Kestner  <mkestner@novell.com>
6062         * ListView.cs : isolated checkbox clicking from the selection logic.
6063         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
6065 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6067         * Form.cs: Check that the value passed to Form.DialogResult
6068         is a valid enum value.
6070 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6072         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
6073         Computer'. Clicking it in the network view goes to 'My Computer'.
6074         Added CIFS filesystem type. Display the mount point of filesystems.
6075         Avoid duplicate mount points (happens for me with CIFS);
6077 2006-06-06  Jackson Harper  <jackson@ximian.com>
6079         * InternalWindowManager.cs: Draw the maximized windows buttons
6080         when resizing.
6082 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6084         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
6085         all other dialogs. Fixes bug #78585.
6087 2006-06-06  Mike Kestner  <mkestner@novell.com>
6089         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
6090         Only invalidate checkbox on checkstate changes to avoid flicker.
6091         * ListBox.cs : avoid unselect/select when clicking selected item.
6092         avoid reselection flicker for already multiselected items.
6093         Fixes #78382.
6095 2006-06-06  Jackson Harper  <jackson@ximian.com>
6097         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
6098         the parent form so that the menu is removed if needed.
6100 2006-06-06  Mike Kestner  <mkestner@novell.com>
6102         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
6103         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
6105 2006-06-06  Mike Kestner  <mkestner@novell.com>
6107         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
6110 2006-06-06  Jackson Harper  <jackson@ximian.com>
6112         * Control.cs: Use the property (instead of the field) to get the
6113         default cursor so it is instantiated correctly.
6114         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
6115         resizes so we need to manually repaint the window decorations here.
6116         - Set the titlebar button locations as soon as they are created,
6117         otherwise they are not set correctly on win32.
6118         
6119 2006-06-06  Chris Toshok  <toshok@ximian.com>
6121         * CurrencyManager.cs (set_Position): call PullData before
6122         OnCurrentChanged.
6123         (AddNew): after calling IBindingList.AddNew, update our
6124         listposition, and call OnCurrentChanged/OnPositionChanged (without
6125         calling PullData).
6126         (OnCurrentChanged): remove the call to PullData from here.
6127         (OnItemChanged): remove the call to PushData from here.
6128         (OnPositionChanged): change the test from == null to != null to
6129         match the other methods.
6130         (ListChangedHandler): the grossest part of the patch.  Implement
6131         this such that it passes the unit tests in CurrencyManagerTest and
6132         the output more or less matches that of MS's implementation.
6134 2006-06-06  Mike Kestner  <mkestner@novell.com>
6136         * ListView.cs : only update check state on single click.
6137         * ThemeWin32Classic.cs : fix focus drawing for details view without
6138         fullrowselect.  Fixes #78454.
6139         * XplatUIX11.cs : fix for double click emission.
6141 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
6143         * PropertyGridView.cs : Applied Atsushi's patch to fix
6144         font dialog bug  (#78197).
6146 2006-06-05  Jackson Harper  <jackson@ximian.com>
6148         * TreeNode.cs: Compute the next node for expanding/collapsing
6149         correctly. We now factor in nodes without a NextNode
6150         correctly. (Fixes somes cases in nunit-gui).
6151         * InternalWindowManager.cs: Set the bounds when updating the
6152         virtual position of a tool window.
6153         
6154 2006-06-05  Chris Toshok  <toshok@ximian.com>
6156         * DataGrid.cs: rename cached_currencymgr to list_manager.
6157         (set_CurrentCell): move SetCurrentCell code here, and clean it up
6158         some.
6159         (CurrentRow, CurrentColumn): single accessors so we can make the
6160         cursor movement code a lot easier to understand.
6161         (CurrentRowIndex): implement this in terms of CurrentRow.
6162         (BeginEdit): clean this up a bit.
6163         (CancelEditing): sort out the is_editing/is_changing/is_adding
6164         stuff a little.
6165         (EndEdit): minor changes.
6166         (OnKeyDown): add a comment about a (most likely) unnecessary
6167         check.
6168         (OnMouseDown): cancel editing when we click on a row header.  And
6169         use the CurrentRow setter, not CurrentCell.
6170         (ProcessDialogKey): directly call ProcessGridKey.
6171         (UpdateSelectionAfterCursorMove): factor out this common block of
6172         code (it's used everywhere that we move the cursor by updating row
6173         or column).
6174         (ProcessGridKey): pretty substantial overhaul.  Use the
6175         CurrentRow/CurrentColumn properties to make the code a lot more
6176         readable.  Only use the CurrentCell property when we have to
6177         modify both row and column at once.  Tab behavior is still broken,
6178         and Delete is untested.
6179         (Select): if we have no selected rows, set selection_start to
6180         @row.
6181         (EditCurrentCell): rename EditCell this.  It was only ever invoked
6182         with CurrentCell as the arg, so drop the arg and rename it.
6184         * DataGridColumnStyle.cs: clean up the constructors a little, and
6185         drop CommonConstructor().
6187         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
6188         actually get notified when the user hits it.
6189         (ProcessKeyMessage): *substantially* simplify this method.
6190         There's no reason (that I can see) for the textbox to be making
6191         calls into the datagrid at all.  Remove all of them but the ones
6192         for Enter handling.  those will take some more work.
6194         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
6195         calling HideEditBox.
6196         (HideEditBox): if we have an active textbox, render it invisible
6197         without causing a re-layout of the datagrid.
6199 2006-06-05  Mike Kestner  <mkestner@novell.com>
6201         * ListView.cs : fix NRE crasher when focuseditem is cleared by
6202         collection changes by resetting it to Items[0].  Fixes #78587.
6204 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6206         * MessageBox.cs: if the height of the text is larger than the icon_size,
6207         use that. Fixes bug #78575.
6209 2006-06-05  Jackson Harper  <jackson@ximian.com>
6211         * TreeView.cs: Fix line drawing when scrolling.  To do this each
6212         node is basically responsible for drawing its entire horizontal
6213         area.  When drawing a node it draws its parent node lines if
6214         needed.
6215         - Adjust the clip area to the viewport rectangle
6216         - Fix Left/Right key handling to match MS. (It expand/collapses
6217         and moves to parents/first child but does not move selection to
6218         sibling nodes).
6219         - Fix SetTop to work with new bound calculation code
6220         - When scrollbars are no longer needed we need to reset scrolling
6221         vars and recalculate the visible order so the redraw is correct
6222         * TreeNode.cs: We can't expand/collapse nodes with no children.
6224 2006-06-03  John Luke  <john.luke@gmail.com> 
6226         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
6227         so the colors work without dev packages
6228         
6229 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
6231         * Control.cs 
6232           - Select: Implemented to just use activate. Seems to match MS 
6233             behaviour closest. Documented to only do actual control walking 
6234             based on it's parameters if in a container control so I moved 
6235             the code there.
6236           - Removed selection check logic from our internal Select() method
6237         * ContainerControl.cs:
6238           - Select: Moved selection logic from Control here, since MS documents
6239             that containers obey the bool arguments. No longer calling base
6241 2006-06-02  Jackson Harper  <jackson@ximian.com>
6243         * TreeView.cs: If the selected node isn't changed when we get
6244         focus update the previously selected node so that we see the
6245         selection box.
6247 2006-06-02  Mike Kestner  <mkestner@novell.com>
6249         * ComboBox.cs: restructure grab and general mouse event handling.
6250         Make the composite control raise mouse events like it was a single
6251         control for leaves/enters/motion/up/down events.  fix dropdown list
6252         coordinate mangling and refactor it into the scrollbar subclass to
6253         reduce code duplication.  Fixes #78282 #78361 and #78457.
6255 2006-06-02  Mike Kestner  <mkestner@novell.com>
6257         * ScrollBar.cs: remove Capture setting/clearing, as it happens
6258         automatically in the Control.WndProc.
6260 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6262         * FileDialog.cs: fix crash when running SharpChess, which sets the
6263         FilterIndex to 2 with only one Filter.
6265 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6267         * ToolBar.cs: add SizeSpecified property.
6268         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
6269         try to figure out our real size, otherwise fallback to what the
6270         container says.
6272 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
6274         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
6275         * Control.cs (WndProc): MS always calls the DefWndProc to pass
6276           up the event
6278 2006-06-01  Mike Kestner  <mkestner@novell.com>
6280         * ListView.cs: revamp the focus management in ListView.  It still
6281         causes churn of LostFocus/GotFocus emissions on clicks, but it's
6282         better than not handling focus at all.  Will revisit when pdb feels
6283         the general focus handling is solid.  Fixes #78526.
6285 2006-06-01  Jackson Harper  <jackson@ximian.com>
6287         * TreeView.cs: Set the default border style in the constructor.
6288         - Move painting to use OnPaintInternal instead of capturing
6289         WM_PAINT, this is the correct way of doing things
6290         - UpdateBelow shouldn't invalidate the scrollbar area
6291         - Cap the top on update below in case the node was above the top
6292         of the viewport rectangle.
6293         - ExpandBelow and Collapse below need to obey Begin/End Update.
6294         * TreeNode.cs: Make is_expanded internal so the treenode
6295         collection can change it without firing the whole event chain.
6296         * TreeNodeCollection.cs: When clearing all the child nodes make
6297         sure to recalc the visible order.
6298         - Improve algo for remove the top node
6300 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
6302         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
6303           SendMessage directly calling window procedures, which in turn might
6304           call SetFocus()
6306 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
6308         * Control.cs: Don't handle WM_SETFOCUS if the same window already
6309           has focus (works around X11 sending a FocusIn after our SetFocus)
6310         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
6312 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
6314         * Mime.cs: Fix for the NET_2_0 build.
6315           NameValueCollection needs StringComparer now.
6317 2006-05-31  Chris Toshok  <toshok@ximian.com>
6319         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
6320         return (via an out parameter) the starting X of the column.
6321         (UpdateVisibleColumn): track change to FromPixelToColumn.
6322         (HitTest): add a ColumnResize case here.
6323         (DrawResizeLine): new function, probably poorly named.
6325         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
6326         only need to keep one reference.
6327         (set_ListManager): same.
6328         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
6329         Also, add support for HitTestType.ColumnResize.
6330         (OnMouseMove): add column resize behavior here, and change the
6331         cursor to the correct one as we move around the datagrid.
6332         (OnMouseUp): terminate the column resize if we're resizing.
6333         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
6334         for the current cell.
6335         (ConnectListManagerEvents): use cached_currencymgr.
6336         (DisconnectListManagerEvents): fill this in, using
6337         cached_currencymgr.
6338         (SetCurrentCell): remove cached_currencymgr_events handling.
6339         (SetDataMember): only call DisconnectListManagerEvents if
6340         cached_currencymgr is != null.
6341         (SetDataSource): same.
6342         (OnListManagerCurrentChanged): cached_currencymgr_events ->
6343         cached_currencymgr.
6345 2006-05-31  Jackson Harper  <jackson@ximian.com>
6347         * BindingManagerBase.cs: Remove somedebug code that creeped into
6348         SVN.
6349         * TreeNode.cs: We get the indent level dynamically right now, so
6350         don't track it as a member.
6351         * TreeNodeCollection.cs: Make sure all nodes added to the list
6352         have parents, treeviews/topnodes setup properly.
6353         - Don't attempt to track indent level.
6355 2006-05-30  Jackson Harper  <jackson@ximian.com>
6357         * BindingContext.cs: Create the currency manager tables here.
6358         This allows us to more easily create null tables (when bad data
6359         members are used), and more easily create related currency
6360         managers.
6361         * CurrencyManager.cs: All the table creation stuff is done by the
6362         binding context now.
6363         - Current should throw an exception if listposition is -1.
6364         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
6365         been bound yet.
6367 2006-05-30  Mike Kestner  <mkestner@novell.com>
6369         * ListView.cs: allow reexpansion of zero-width column headers.
6370         Fixes #78528.
6372 2006-05-28  Chris Toshok  <toshok@ximian.com>
6374         * CurrencyManager.cs (get_Current): after the late binding
6375         listposition = -1 fix, we need to guard against it here and return
6376         null, otherwise we raise an exception (which is swallowed
6377         elsewhere, and breaks datagrid databinding.)
6379 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6381         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
6382           than WM_SYSKEY, don't throw if get something unexpected (#78507)
6384 2006-05-26  Jackson Harper  <jackson@ximian.com>
6386         * ControlPaint.cs:
6387         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
6388         values, it's faster and it's all we care about (we don't care if
6389         the names aren't equal).
6390         * KeyboardLayouts.cs: Eliminate some dead code.
6391         - Lazy init things
6392         * X11Keyboard.cs: Lazy init keyboard detection.
6393         - Cleanup access modifiers a little.
6395 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6397         * XplatUIX11.cs: Once again, attempting to get layout just right.
6399 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
6401         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
6402           the sizes of each link section, that will result in sizes that
6403           match DrawString's layout (Fixes #78391)
6405 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
6407         * FileDialog.cs: If AddExtension property is true autocomplete the
6408           extensions in SaveFileDialog correctly. Fixes bug #78453.
6409           Set MyNetwork and MyComputer to "C:\" for windows. This should
6410           fix part 8 of bug #78446 for now.
6412 2006-05-26  Chris Toshok  <toshok@ximian.com>
6414         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
6415         invalidate the current row header if we need to, but presumably
6416         we'll invalidate the row corrsponding to the bounds or
6417         editingControl.
6418         (GridHScrolled): switch back to this method, as it's part of the
6419         public api.  *sigh*.
6420         (GridVScrolled): same.
6421         (OnMouseWheel): hack up something that more or less works.  Call
6422         GridHScrolled/GridVScrolled directly, instead of duplicating much
6423         of their code here.
6424         (EnsureCellVisibility): reinstate a bunch of this code, since we
6425         can't just set the scrollbar Value and expect to do all the work
6426         in the ValueChanged handler.  Also, Call Update() after scrolling
6427         in one direction so the other XplatX11.ScrollWindow call has the
6428         proper stuff in the proper places.
6429         (EditCell): set is_editing to true before calling .Edit.
6431         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
6432         don't bother comparing first.
6433         (OnKeyPress): call grid.ColumnStartedEditing before calling
6434         base.OnKeyPress.  this will set is_changing and invalidate the row
6435         header if necessary.
6436         (ProcessKeyMessage): for WM_CHAR messages, call
6437         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
6438         and WM_KEYDOWN.
6439         
6440         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
6441         it's done in the DataGrid.
6442         (NextState): call grid.ColumnStartedEditing, which takes care of
6443         invalidating the row header (and setting is_changing).
6445         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
6446         here.  it's done in the DataGrid.
6448 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6450         * Control.cs: allow changing the cursor when the mouse position is
6451         out of bounds but Capture is set.
6452         * LinkLabel.cs: handle the case when the mouse button is pressed on the
6453         linklabel but released somewhere else.
6455 2006-05-25  Jackson Harper  <jackson@ximian.com>
6457         * TreeView.cs: When we get focus if there is no selected node make
6458         it the top node
6459         - Remove some uneeded setup code from Draw.
6460         * TreeNodeCollection.cs: If the tree doesn't have a top node when
6461         a new node is inserted make the new node the top.
6462         * XplatUIX11.cs:
6463         * Timer.cs: Use Utc time so that no local time zone stuff needs to
6464         be used (should be faster).
6465         
6466 2006-05-25  Chris Toshok  <toshok@ximian.com>
6468         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
6469         problem with the last commit.
6471 2006-05-25  Chris Toshok  <toshok@ximian.com>
6473         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
6474         need the invalidate call here, while scrolling right-to-left via
6475         the left arrow key (i.e. moving the editing cell while scrolling).
6477         * DataGrid.cs (.ctor): remove the initialization of
6478         ctrl_pressed/shift_pressed.  We no longer track them using key
6479         up/down handlers, but by using Control.ModifierKeys.  Also, switch
6480         to using ValueChanged handlers on the scrollbars instead of
6481         Scrolled event handlers.  This simplifies a bunch of the scrolling
6482         code.
6483         (GridHValueChanged): rename from GridHScrolled, and change it to
6484         work with the new event args.
6485         (GridVValueChanged): same.
6486         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
6487         (OnMouseWheel): actually scroll the datagrid.  Don't change the
6488         selected cell.
6489         (ProcessGridKey): correct all the keyboard navigation stuff I
6490         could find.  Ctrl up/down/left/right/home/end work now.
6491         (EnsureCellVisibility): correct method name spelling.  Also,
6492         simplify this a touch by not explicitly calling the
6493         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
6494         scrollbar value.
6495         (OnKeyUpDG): no need for this method now.
6496         
6497 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6499         * LinkLabel.cs: display the OverrideCursor when hovering the label.
6500         Fixes bug #78392.
6502 2006-05-25  Chris Toshok  <toshok@ximian.com>
6504         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
6505         r61019.
6507 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6509         * Application.cs: Moved setting of is_modal and closing to before
6510           we create the control, to allow the event handlers called as a
6511           result of creation affect closing. Also removed Gonzalo's previous
6512           change to setting DialogResult, the behaviour has been moved to 
6513           Form.ShowDialog()
6514         * Form.cs: 
6515           - ShowDialog(): Removed explicit creation of the form, let RunLoop
6516             handle it instead
6517           - ShowDialog(): If no dialog result is set, we need to return Cancel
6518           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
6519             the close is cancelled
6521 2006-05-25  Jackson Harper  <jackson@ximian.com>
6523         * StatusBar.cs: We only need to update the sizes of the other
6524         panels when we have auto size contents.  Also we are only updating
6525         the contents of the panel, not the borders, so compensate for the
6526         border width (TODO: get this width from the theme somehow).
6527         * TreeView.cs: Scrollable is true by default
6528         - Use invalidate instead of refresh where needed
6529         - Factor the scrollable value into scrollbar updating
6530         - Update the scrollbars if the Scrollable property is altered
6531         - Update the selected node if its ImageIndex is changed
6532         - Handle null nodes in UpdateNode (mainly so we don't have to
6533         check if selected is null when updating it
6534         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
6535         are factored into the visible count
6536         - Use VisibleCount for clarity in the code
6537         - When the font is changed we need to recurse through all the
6538         nodes and invalidate their sizes
6539         
6540 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6542         * Application.cs: set the DialogResult to fixed when the main form is
6543         hidden or destroyed while being modal.
6545 2006-05-25  Miguel de Icaza  <miguel@novell.com>
6547         * Theme.cs: Use Tangoified messagebox icons. 
6549         (GetSizedResourceImage): Also cope with width = 0 and do not
6550         trigger a warning in that case (0 means "give me your icon from
6551         the resouce, no special size needed).
6553 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6555         * Application.cs: Leave runloop if the the main modal form is 
6556           hidden (fixes #78484)
6558 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
6560         * BindingContext.cs : reject null datasource in Contains() and
6561           Item[].
6562         * CurrencyManager.cs : check data_member validity when data_source
6563           is dataset. When it is late binding, the initial position is -1.
6565 2006-05-24  Jackson Harper  <jackson@ximian.com>
6567         * TreeNodeCollection.cs: Dont't recalculate the visible order on
6568         inserted nodes that aren't visible.  This changes the
6569         max_visible_order which confuses scrollbar settings.
6570         - Use the enumerator to get the prev node instead of duplicating
6571         code.
6572         * TreeView.cs: Use new method for setting scrollbar values
6573         - Don't set the bounds every time the scrollbar is updated
6574         - When updating below the root node use an invalidate instead of a
6575         refresh to prevent the child controls (scrollbars) from being
6576         refreshed. (UpdateBelow still needs to be reworked anyways).
6577         - Reenable SetBottom now that visible orders are set correctly,
6578         added some debug code incase we ever get bad values there again.
6579         - Set the scrollbar max to 2 less then the max value, this
6580         compensates for the max value being one above the node count, and
6581         for scrollbars adding one extra "notch".
6582         - When drawing image nodes if there is an imagelist we draw the
6583         first image in the list if the supplied image index is out of the
6584         image list's bounds.
6585         
6586 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6588         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
6589           we receive a size change from the WM (Fixes #78503)
6591 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
6593         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
6594           rectangle (Fixes #78501)
6596 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6598         * ButtonBase.cs: 
6599           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
6600             as a bitfield.
6601           - Fixed MouseMove to no longer switch pressed state unless the left
6602             mouse button is pressed. Atsushi provided the original patch (#78485)
6603           
6604 2006-05-24  Jackson Harper  <jackson@ximian.com>
6606         * ScrollBar.cs: New internal methods that allow us to change a
6607         couple values on the scrollbar (the most common case is maximum
6608         and large change) without getting multiple invalidates.
6610 2006-05-24  Chris Toshok  <toshok@ximian.com>
6612         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
6613         (Edit): save off the original state in oldState, and set
6614         grid.is_editing to true.
6615         (OnKeyDown): abort editing if escape is pressed.  also, call
6616         NextState if space is pressed.
6617         (OnMouseDown): call NextState.
6618         (NextState): factor out shared code from OnKeyDown and OnMouseDown
6619         here.  Also, only invalidate the row header once (on the initial
6620         is_changing switch) to save on redraws.
6622 2006-05-24  Chris Toshok  <toshok@ximian.com>
6624         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
6625         if the value in the cell is different than it was before.  This
6626         keeps us from triggering a layout when we move around a datarid
6627         with a highlighted cell.
6628         (Edit): suspend layout when creating/positining the text box, and
6629         resume passing false so we don't ever actually re-layout.
6630         (ReleaseHostedControl): same.
6631         (EnsureTextBox): reformat slightly, and set WordWrap to false.
6633         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
6634         control-key sequences should go to the datagrid - remove that
6635         lock.  Also, modify the conditions under which we move between
6636         cells when moving the cursor within a cell, and remove the "this"
6637         and "base" from field accesses.  We weren't even consistent, given
6638         they all were in the base class.
6640 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
6642         * Binding.cs : (.ctor)
6643           An obvious NRE fix for BindingTest.CtorNullTest().
6645 2006-05-23  Chris Toshok  <toshok@ximian.com>
6647         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
6648         them between lines.  This fixes some quirks editing cells in the
6649         datagrid.
6651 2006-05-23  Jackson Harper  <jackson@ximian.com>
6653         * TreeView.cs: Use begin/end update when doing expand/collapse all
6654         so that we don't get flicker on the scrollbar.
6656 2006-05-23  Jackson Harper  <jackson@ximian.com>
6658         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
6659         treenode calculations to be independant of the painting code. To
6660         do this nodes track a visible order which is calculated by the
6661         treeview.
6662         - Call new methods for expanding/collapsing nodes.  These methods
6663         use scrollwindow so we don't have to update everything below the
6664         node.
6665         * TreeView.cs: Refactored drawing and scrolling code.  We don't
6666         need to update nodes when drawing anymore or calculate scrollbar
6667         stuff.
6668         - Added new methods for expanding/collapsing nodes. These methods
6669         use ScrollWindow so as to not have to redraw all the nodes below.
6670         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
6671         we add/remove nodes or sort.
6672         - Handle removing the selected and the top node properly.
6674 2006-05-23  Chris Toshok  <toshok@ximian.com>
6676         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
6677         maybe this should actually happen in the datagrid code?
6678         (EndEdit): no need to invalidate anything, given that
6679         ReleaseHostedControl causes the datagrid to relayout, which
6680         invalidates everything anyway.
6682         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
6683         in SetCurrentCell).
6684         (set_SelectionBackColor): call InvalidateSelection instead of
6685         Refresh.
6686         (set_SelectionForeColor): same.
6687         (BeginEdit): Flesh this out a bit.
6688         (CancelEditing): only do any of this if we're editing/adding.
6689         (EndEdit): same.
6690         (OnMouseDown): there's no need to cancel editing here, it's done
6691         in SetCurrentCell.
6692         (SetCurrentCell): only invalidate the current row header if it's a
6693         different row than the new one.
6694         (ShiftSelection): fix this to work like MS does.
6695         (ResetSelection): factor out the invalidation of selected_rows to
6696         InvalidateSelection.
6697         (SetDataSource): cancel any editing that's going on.
6699         * DataGridColumnStyle.cs
6700         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
6701         call the non-interface version.
6703         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
6704         header rectangle with the clip rectangle so we don't redraw the
6705         entire header for just a small area.  Gets rid of the last flicker
6706         when horizontally scrolling.
6707         (DataGridPaintRow): same.
6709 2006-05-23  Mike Kestner  <mkestner@novell.com>
6711         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
6712         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
6713         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
6714         Critical bug report.
6716 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6718         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
6719           and this fixes #78493
6721 2006-05-23  Miguel de Icaza  <miguel@novell.com>
6723         * Theme.cs (GetSizedResourceImage): Scale images if the proper
6724         size is not found.  
6725         
6726         * FileDialog.cs: Do not change the background for the side bar as
6727         it wont work nicely with the theme, and also reduces the artifacts
6728         in rendering the icons (which I want to fix too).
6730         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
6731         resources, not resgen resources. 
6733         (PlatformDefaultHandler): Pull images using the new API.
6735 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6737         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
6738           a reference to the hwnd and will not remove it unless there are
6739           no pending exposures (fixes #78341)
6740         * XplatUI.cs: Improved debug
6742 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
6744         * MenuAPI.cs : don't handle OnClick event when it was not the left
6745           button. Fixed bug #78487.
6747 2006-05-23  Mike Kestner  <mkestner@novell.com>
6749         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
6750         prefer submenus to the top menu for item lookup, to avoid popping down
6751         top-row items.
6753 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
6755         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
6756           Graphics.FillRectangle as the visual results are really bad (even
6757           on win). We now draw perfect arrows (and perfect shadows when the
6758           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
6759           Pen.DashPattern to draw the dots of each line.
6761 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
6763         * FileDialog.cs: Update the filename combobox when navigating through
6764           the ListView with the cursor keys. Fixes part 7 of bug #78446.
6766 2006-05-22  Mike Kestner  <mkestner@novell.com>
6768         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
6769         Fixes #78463.
6771 2006-05-22  Mike Kestner  <mkestner@novell.com>
6773         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
6774         requests. Fix a misspelled parameter and a copy paste exception error
6775         in Select.
6777 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
6779         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
6780           to get the same width/height (5/13) on X11 as the default font has on
6781           win32. This means that our DefaultFont emSize is smaller than the 
6782           the MS SWF equivalent (even thought the width/height stays the same)
6784 2006-05-20  Jackson Harper  <jackson@ximian.com>
6786         * MdiClient.cs:
6787         * MdiWindowManager.cs:
6788         * InternalWindowManager.cs: Make sure to use the border width from
6789         the theme.
6791 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
6793         * PrintDialog.cs: Implements printer details
6795 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
6797         * FileDialog.cs: Added focus handling for PopupButtonPanel.
6798           Fixes part 1 and 2 of bug #78446
6800 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
6802         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
6803           instead of sticking to the first ever calculated value
6805 2006-05-19  Mike Kestner  <mkestner@novell.com>
6807         * ComboBox.cs: fix mouse motion selection to use MousePosition and
6808         PointToClient, since Capture is set. Fixes #78344.
6810 2006-05-19  Mike Kestner  <mkestner@novell.com>
6812         * ListView.cs: match MS behavior in Details view where items are not
6813         drawn if Columns.Count == 0. 
6814         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
6815         Use a separate pen to draw the check, since changing the width affects
6816         the box as well.  Fixes #78454.
6818 2006-05-18  Miguel de Icaza  <miguel@novell.com>
6820         * ListView.cs: ArgumentOutOfRangeException, single versions of the
6821         exception should throw the name of the invalid argument.
6823         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
6824         there are no files listed. 
6826 2006-05-18  Jackson Harper  <jackson@ximian.com>
6828         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
6829         up.
6831 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6833         * Control.cs: Brought back our old UpdateZOrder method as a private
6834           function and switched our calls from UpdateZOrder to the new one.
6835           This fixes the Paint.Net canvas disappearing bug.
6837 2006-05-18  Jackson Harper  <jackson@ximian.com>
6839         * Theme.cs:
6840         * ThemeWin32Classic.cs:
6841         * InternalWindowManager.cs: Move the drawing into the theme,
6842         expose everything the theme should need from the window manager.
6844 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6846         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
6847           from the call to NativeWindow to avoid walking up the parent chain
6848           further than needed (speeds up setting cursors and avoids setting
6849           the wrong cursor if a parent has another cursor defined)
6850         * Cursor.cs: When loading an icon as cursor, MS uses the center of
6851           the icon as hotspot, not what's contained as hotspot in the icon
6852           file. This fixes the perceived drawing offset seen with Paint.Net
6853         
6854 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6856         * XplatUIX11.cs: 
6857           - Store the calculated rectangle in Hwnd object and use it when 
6858             setting the client size
6859           - Force Toolwindows to always be type Dock, to ensure they're on top
6861 2006-05-18  Mike Kestner  <mkestner@novell.com>
6863         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
6864         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
6865         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
6866         Substantial refactoring to remove confusing nested classes. Coding
6867         standard and Get+Set->property refactorings.  Shift to index based
6868         highlighting in ComboListBox instead of constantly using IndexOf and
6869         Items[]. Add invalidations on resize for DropDownList to fix ugliness
6870         in FileDialog growth.  Draw borders manually since Simple mode needs
6871         to look like two independent controls.  Make listbox border
6872         conditional to DropDownStyle.  Improved OwnerDraw support.
6874 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
6876         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
6877         Don't set the disposed graphics to null, so we can throw the "right"
6878         exception if the graphics is reused later (added a flag to avoid 
6879         double disposing). Some behaviours are different under 2.0 and are
6880         filled under bug #78448.
6882 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6884         * Control.cs: When double-buffering is enabled, we need to reset
6885           our graphics context between paint calls. Otherwise, any 
6886           transformations and other alterations on the context will 
6887           become cumulative (#77734)
6889 2006-05-18  Mike Kestner  <mkestner@novell.com>
6891         * ListView.cs: do focused item selection like MS on clicks. 
6892         Rework focus handling for ItemControl so LostFocus invalidates as
6893         well.
6894         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
6895         the ListView ItemControl has focus.
6897 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
6899         * XplatUIX11.cs: If client_window ends up being width or height zero
6900           due to border settings, move it off window inside whole_window (#78433)
6902 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6904         * Mime.cs: Shrink the mime file cache correctly.
6906 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6908         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
6910 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6912         * XplatUIX11.cs (AddExpose): More sanity checks
6914 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6916         * XplatUIX11.cs:
6917           - AddExpose: Don't add expose ranges outside the size of our
6918             window
6919           - Cast opacity values to Int32 to avoid crashes with certain
6920             values
6921           - Added disabled code paths that protect against illegal cross-
6922             thread painting (Developers.exe)
6924 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6926         * ProgressBar.cs: Invalidate the control when it's resized
6927           since block size is based on control size. (#78388)
6929 2006-05-16  Miguel de Icaza  <miguel@novell.com>
6931         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
6932         of setting the incoming argument to the "reset" value, we set the
6933         this.datamember to string.empty (before we were invalidating the
6934         incoming data).   
6936         Fixes 78420
6938 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6940         * Form.cs: Only apply transparency settings after the form
6941           is created. (Fixes #77800)
6943 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6945         * ApplicationContext.cs: Grab the HandleDestroyed event so
6946           we know when to fire OnMainFormClosed 
6948 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6950         * Application.cs: Introduced sub-class to allow tracking of
6951           threads and centralized triggering of the event mess for
6952           ThreadExit, AppExit, etc..  (#76156)
6954 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
6956         * MimeIcon.cs:
6957           - Do not return a null icon index value for a mime subclass.
6958             Instead try the main mime type class too.
6959           - Seems that some newer distributions don't have a link to some
6960             gnome default icons anymore. So check the default gnome dir too.
6961           
6963 2006-05-16  Jackson Harper  <jackson@ximian.com>
6965         * MdiClient.cs: Don't paint the parent background image if we have
6966         our own background image.
6968 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6970         * Control.cs:
6971           - PerformLayout: Do not shrink space filled by DockStyle.Fill
6972             controls, all filled controls are supposed to overlap (#78080)
6973           - UpdateZOrder is supposed to update the control's z-order in the
6974             parent's z-order chain. Fixed to behave like that
6975           - BringToFront: Removed obsolete code
6976           - SendToBack: Simplyfied
6977           - SetChildIndex: Trigger layout calculations when Z-order changes
6978             since layout is done by z-order
6980 2006-05-16  Chris Toshok  <toshok@ximian.com>
6982         [ fixes bug #78410 ]
6983         * DataGrid.cs (set_AlternatingBackColor): use
6984         grid_drawing.InvalidateCells instead of Refresh().
6985         (set_BackColor): call grid_drawing.InvalidateCells.
6986         (set_BackgroundColor): use Invalidate instead of Refresh.
6988         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
6989         invalidate the cell area.
6991 2006-05-15  Chris Toshok  <toshok@ximian.com>
6993         [ fixes bug #78011 ]
6994         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
6995         on to DataGridPaintRow.
6996         (DataGridPaintRow): take a clip argument, and only draw the cells
6997         which intersect it.  same with the not_usedarea.
6999         * Theme.cs (DataGridPaintRow) add @clip parameter.
7001         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
7002         XplatUI.ScrollWindow.
7003         (ScrollToRow): same.
7005         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
7006         with last column which was causing a gray swath to appear with the
7007         XplatUI.ScrollWindow code.
7009 2006-05-15  Chris Toshok  <toshok@ximian.com>
7011         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
7012         use XplatUI.ScrollWindow.
7013         (VerticalScrollEvent): use XplatUI.ScrollWindow.
7015 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
7017         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
7019 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
7021         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
7022           file since there are no equivalent X11 cursors
7024 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
7026         * MonthCalendar.cs : DateTimePicker should reflect selected date
7027           on mouse*up*, not mouse*down*. Fixed originally reported part of
7028           bug #76474.
7030 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
7032         * TabControl.cs : When argument index is equal or more than tab
7033           count, just ignore. Fixed bug #78395.
7035 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
7037         * Control.cs: Dispose all child controls when control is diposed (#78394)
7039 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7041         * ColorDialog.cs: Finally it is possible to select the color with
7042           the text boxes
7044 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7046         * PrintDialog.cs: Fix typo
7048 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
7050         * PrintDialog.cs: PrintDialog is not resizable
7051         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
7052           color. Made some ToolBar drawing methods protected virtual.
7054 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
7056         * PrintDialog.cs: Implementation of the PrintDialog
7058 2006-05-12  Chris Toshok  <toshok@ximian.com>
7060         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
7061         thumb, instead use MoveThumb.  This has the side effect of making
7062         most of the other thumb moving machinery use MoveThumb as well.
7063         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
7064         need to actually invalidate the rectangle where the new thumb will
7065         go.
7066         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
7067         We force an Update() after, so it's not as fast as it could be,
7068         but at least there's zero flicker and no droppings.
7069         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
7070         (UpdateThumbPos): add another argument (dirty), which says whether
7071         or not to calculate/add dirty regions which we later invalidate.
7072         For cases where we know we're going to use MoveThumb, we pass
7073         false for this.  Otherwise, pass true.
7075 2006-05-12  Jackson Harper  <jackson@ximian.com>
7077         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
7078         the status bar.
7079         
7080 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
7082         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
7083           and GetClipRegion methods and UserClipWontExposeParent property.
7084         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
7085           overriding UserClipWontExposeParent property, setting to false, since
7086           Win32 handles the required expose messages to draw our clipped parent
7087           areas internally
7088         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
7089           PaintEventStart to set the user clip region if set.
7090         * Control.cs: 
7091           - Now internally tracking the Region for the control since we need to
7092             store it if the handle is not yet created and only set it when it
7093             becomes created. Before setting the region forced handle creation
7094           - Added code to draw the parents underneath a user-clipped region
7095         * Hwnd.cs: Added UserClip property
7097 2006-05-12  Chris Toshok  <toshok@ximian.com>
7099         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
7100         (set_Maximum): same.
7101         (set_Minimum): same.
7102         (set_SmallChange): same.
7103         (OnMouseUpSB): remove the call to refresh when releasing the
7104         thumb.  We shouldn't need it.
7105         
7106 2006-05-12  Miguel de Icaza  <miguel@novell.com>
7108         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
7109         AutoSize set to None, we do not need to relayout everything, we
7110         just need to invalidate the current region.
7112         (Draw): Do not draw the entire ClientArea, just redraw the
7113         clip area being passed.
7115         * MdiClient.cs: Make MdiClient constructor with the Form argument
7116         internal. 
7118 2006-05-12  Jackson Harper  <jackson@ximian.com>
7120         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
7121         parents background image,  but strangely not their own.
7122         - (DrawStatusBarPanel): Take into account horizontal alignment
7123         when drawing the strings and icons.
7125 2006-05-12  Mike Kestner  <mkestner@novell.com>
7127         * ListBox.cs: avoid invalidations for focus when the collection is
7128         empty. 
7130 2006-05-12  Chris Toshok  <toshok@ximian.com>
7132         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
7133         invalidate the entire thumb area.  Call InvalidateDirty which
7134         limits the redraw to the thumb itself and surrounding pixels.
7136         * XplatUIX11.cs (ScrollWindow): optimize copying.
7137         
7138 2006-05-12  Chris Toshok  <toshok@ximian.com>
7140         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
7141         Figure out the positioning/layout in a single pass instead of
7142         multiple recursive invocations.  Speeds up the initial display of
7143         the data grid.  Also, make many things private that were
7144         originally public but unused outside this class.
7146 2006-05-11  Jackson Harper  <jackson@ximian.com>
7148         * MdiClient.cs: Improved layout code.
7150 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
7152         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
7153           not SelectedObject.
7155 2006-05-11  Chris Toshok  <toshok@ximian.com>
7157         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
7158         union of that will always be {0,0,width,height}.
7160 2006-05-11  Jackson Harper  <jackson@ximian.com>
7162         * Form.cs: Match MS's DefaultSize for forms (they must have
7163         changed the size in sp2).
7165 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
7167         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
7169 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
7171         * TextControl.cs : Fixed bug #78109. This incorrect position
7172           comparison caused crash on automatic line split.
7173         * TextBoxBase.cs : reduce duplicate code.
7175 2006-05-10  Jackson Harper  <jackson@ximian.com>
7177         * MdiClient.cs: Active form is only sent to the back when using
7178         the Next form functionality, when a form is clicked the current
7179         active shouldn't be sent to the back.
7180         - Layout the mdi windows when the container is first made visible.
7181         * Form.cs: Give the MdiClient a ref to the containing form when we
7182         create it.
7183         
7184 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
7186         * LinkLabel.cs : link_font could be uninitialized, so populate one
7187           before actual use. Fixed bug #78340.
7189 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
7191         * XplatUIX11.cs : clipboard format native value is IntPtr.
7192           Fixed bug #78283.
7194 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7196         * Control.cs: 
7197           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
7198             which is passed up the parent chain by DefWndProc
7199           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
7200             to DefWndProc (#77956)
7201         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
7203 2006-05-10  Jackson Harper  <jackson@ximian.com>
7205         * MdiClient.cs: We need to remove the controls from the mdi
7206         collection, when we close the window.
7207         * MdiWindowManager.cs: Special handling of closing mdi windows.
7208         * InternalWindowManager.cs: Make the close method virtual so the
7209         mdi window manager can handle it specially.
7211 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
7213         * DataGrid.cs:
7214           - Recalculate grid when the data source has changed
7215           - Matches styles provided by user from all data sources types
7216         * DataGridTableStyle.cs: For columns that provided by the user set the
7217         with the preferred value is there was unassigned.
7218         * CurrencyManager.cs: throw OnItemChanged event
7220 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
7222         * PictureBox.cs: Don't animate until handle is created. Start animation
7223           when handle is created.
7225 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7227         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
7228           current codebase.
7229         * XEventQueue.cs: We don't need to provide the extra info
7231 2006-05-10  Jackson Harper  <jackson@ximian.com>
7233         * MdiClient.cs: If the mdi clients parent form has a background
7234         image set, we draw that background image for the mdi area's
7235         background.
7237 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
7239         * TextBoxBase.cs: Set IBeam cursor (#78347)
7241 2006-05-10  Mike Kestner  <mkestner@novell.com>
7243         * ToolBar.cs: fix some text padding issues with ButtonSize
7244         calculation. Update the default size to match MS documentation.
7245         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
7246         button size. Fixes #78296.
7248 2006-05-10  Mike Kestner  <mkestner@novell.com>
7250         * ListBox.cs: use is_visible for scrollbar positioning in case the
7251         control isn't on screen yet.  Fix off by one with Right vs Width
7252         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
7253         
7254 2006-05-10  Jackson Harper  <jackson@ximian.com>
7256         * X11Dnd.cs: Drop to a control with another control on top of it.
7257         * ToolBar.cs: Work on a copy of the buttons list, so that it can
7258         be modified in click handlers. TODO: Look for similar problems in
7259         other controls.
7261 2006-05-09  Jackson Harper  <jackson@ximian.com>
7263         * Form.cs: Window managers need the old window state when setting
7264         window state now.
7265         * InternalWindowManager.cs: Allow the base mdi window manager to
7266         handle more of the MDI only stuff (like maximize buttons).
7267         * MdiWindowManager.cs: Fix some snafus in changing the window
7268         state.  Add all the menu functionality, for both popup and
7269         maximized menus.
7270         * MdiClient.cs: When a new form is selected the currently
7271         activated form is sent to the back, this matches MS.
7272         - Implement a new method to activate the next mdi child window.
7274 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
7276         * Control.cs: 
7277           - Added new InternalCapture method to allow controls to prevent
7278             the capture behaviour on the click handlers
7279           - Switched to use InternalCapture
7280         * ComboBox.cs:
7281           - Using InternalCapture to prevent mouse captures from being released
7282             on mouse button release (Fixes #78100)
7283         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
7284           returns Form borders if a caption is present. (Fixes #78310)
7286 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
7288         * TreeNode.cs: Changed serialization .ctor to not require every field
7289           to be present. (#78265)
7290         * OwnerDrawPropertyBag.cs: Added serialization .ctor
7292 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
7294         * MimeIcon.cs: for is faster than foreach for strings.
7296 2006-05-05  Mike Kestner  <mkestner@novell.com>
7298         * CheckedListBox.cs: update check handling code to not use selected.
7299         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
7300         behavior for visual feedback, motion response, shift/ctrl handling,
7301         and properly deal with all 4 selection modes. Updates to bounds
7302         handling logic.  Add scroll wheel support. [Fixes #77842]
7304 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
7306         * ListView.cs:
7307           - Moved adding of Implicit controls into .ctor. That way, subsequent
7308             creation of the controls will not cause them to think they are 
7309             toplevel windows (fixes #78200 header problem)
7310           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
7311           - Switched visibility setting of header control to use internal field
7312             to avoid triggering handle creation
7313           - Now checking if handle is created before causing a refresh when items
7314             are added (This makes us now match handle creation time with MS)
7315         * Splitter.cs: Removed loading of private splitter cursor, switched to
7316           Cursors version now that that is loading the right ones
7317         * Cursors.cs: Load proper splitter cursors from resources
7318         * Cursor.cs: Added second method of loading resource cursors for the 
7319           VS.Net users amongst us
7321 2006-05-05  Mike Kestner  <mkestner@novell.com>
7323         * ListView.cs: give header_control a minimum size based on the
7324         ListView size.
7326 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
7328         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
7329           window seems to do that with metacity, so set that type. (#78120)
7331 2006-05-05  Mike Kestner  <mkestner@novell.com>
7333         * ListViewItem.cs: fix Details mode checkbox layout bug.
7334         * ThemeWin32Classic.cs: draw a ListView column header for unused space
7335         at the end of the header, if it exists. [Fixes for #78200]
7337 2006-05-04  Jackson Harper  <jackson@ximian.com>
7339         * MdiClient.cs: Add a helper property to get the container form.
7340         * MdiWindowManager.cs: We have to make sure to use the menu origin
7341         when drawing the icons and buttons, this fixes maximized window
7342         icons/buttons on win32.
7343         * InternalWindowManager.cs: Reset the restore captions when a
7344         window goes from Maximized to Minimized and vice versa. Move the
7345         DrawMaximizedButtons into the MdiWindowManager source, tool
7346         windows can't be maximized. NOTE: This could use a little
7347         refactoring if time ever permits.
7348         
7349 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7351         * TextBox.cs: Add MWFCategoryAttributes
7352         * TextBoxBase.cs: Add MWFCategoryAttributes
7353         * Form.cs: Add MWFCategoryAttributes
7355 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7357         * Control.cs: Add MWFCategoryAttributes
7358         * ScrollableControl.cs: Add MWFCategoryAttributes
7360 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
7362         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
7363           Divider is true. Fix a little glitch in PropertyToolBar
7364           drawing code
7366 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
7368         * Control.cs:
7369           - Dispose: Call base.Dispose, this causes the disposed event
7370             to be fired (and probably other, more important stuff)
7371           - SetVisibleCore: Set is_visible to true after creating the
7372             window so that the window still gets created invisible (if
7373             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
7374             to generate a WM_ACTIVE message
7375         * Form.cs: Call Dispose when we want to destroy the window, instead of
7376           just destroying the handle (Dispose will do that for us)
7377         * XplatUIX11.cs:
7378           - RootWindow also needs a queue, so we can properly process the
7379             property change events from RootWindow (like Activate)
7380           - Generatic synthetic WM_ACTIVE message when the active window is
7381             being destroyed
7383 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7385         * LinkLabel.cs: Trigger a recalc of our label dimensions when
7386           bounds are changed
7388 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
7390         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
7391           for determining width and height (image might not be assigned if
7392           we're drawing an imagelist)
7394 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7396         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
7397         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
7398           height from system
7399         * Theme.cs: No longer returns hardcoded menu height, instead calls
7400           new driver method
7401         * Form.cs (OnLoad): Scaling happens before triggering Load events 
7402           on MS (# 78257)
7404 2006-05-01  Mike Kestner  <mkestner@novell.com>
7406         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
7408 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
7410         * TextBoxBase.cs: Removed Fixme
7411         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
7413 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
7415         * XplatUIX11.cs:
7416           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
7417             the rectangle relative to the parent, considering borders. We
7418             don't really want that.
7419           - ScrollWindow: Fixed warning to be more understandable
7420         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
7421           scrollbars and scroll only the visible area
7422         * RichTextBox.cs: Removed debug output
7424 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7426         * NumericUpDown.cs (Text): Just use base
7427         * UpDownBase.cs: Ensure txtView is created before using it
7429 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7431         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
7432           casting to IntPtr to avoid 64bit overflow errors
7434 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7436         * Control.cs:
7437           - AllowDrop: Don't force handle creation.
7438           - CreateHandle: Added call to tell driver if we're allowed to drop
7440 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7442         * FileDialog.cs: Remember the last directory not only for the
7443           current instance but also for new FileDialog instances.
7445 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7446         
7447         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
7448           broke sending async messages
7450 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7452         * XplatUIX11.cs:
7453           - ScrollWindow: Fixed method. We finally generate expose events again
7454             for scrolled areas. This was causing 'garbage' when scrolling
7455             textbox and other controls that used ScrollWindow
7456           - Switched from using the regular queue for paint events to the MS 
7457             model of 'generating' paint events when the queue is empty.
7458             We use the new XQueueEvent.Paint subclass to store which windows
7459             need painting.
7460           - AddExpose now takes the x/y/width/height of the exposed area
7461             and inserts the window into the paint queue if not already there
7462           - InvalidateWholeWindow: Switched to use new AddExpose method
7463           - UpdateMessageQueue: Added which queue to monitor for paint events
7464           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
7465             the unlikely case nothing above handles it. We reset the expose
7466             pending states to get them off the queue.
7467           - GetMessage: Now pulls a paint event if no other events are in the
7468             queue
7469           - Invalidate: Switched to new AddExpose method
7470           - PeekMessage: Updated to understand pending paint events
7471           - UpdateWindow: Fixed logic bug. We were only updating if the window
7472             didn't need updating. Also switched to sending WM_PAINT directly,
7473             like MS does.
7474         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
7475           and random access Remove(). The random access is needed to handle
7476           UpdateWindow() where a WM_PAINT is sent directly without accessing
7477           the queue.
7478         * ScrollBar.cs: Added Update() calls to cause immediate updates to
7479           allow for better feedback when scrolling. Scrollbars are small and
7480           the immediate update should make it 'feel' more responsive without
7481           slowing things down. ScrollBar still needs it's invaliate logic
7482           updated to not always invalidate the whole bar on certain changes.
7484 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7486         * Control.cs:
7487         (BackColor): if the control does not support a transparent background,
7488         return the default backcolor when the parent backcolor is transparent.
7490 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
7492         * Application.cs: Updated to new StartLoop/GetMessage API
7493         * RichTextBox.cs: Provide some output on RTF parsing errors
7494         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
7495           new queue_id argument to GetMessage and PeekMessage to allow faster
7496           handling of per-thread queues in drivers.
7497         * Hwnd.cs: Added Queue tracking and property
7498         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
7499         * XEventQueue.cs: Added thread trackingA
7500         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
7501         * XplatUIX11.cs:
7502           - Implemented new per-thread queue
7503           - GetMessage: Fixed return/break behaviour on several cases. We were
7504             returning stale messages in some cases, instead of just processing
7505             the next message
7507 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7509         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
7511 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
7513         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
7514           fixed off-by-one comparisons between Width/Height and Right/Bottom.
7516 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7518         * PropertyGridView.cs: Fix drop down width.
7520 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7522         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
7523           a mess in DrawToolBar, so I removed one of them.
7525 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7527         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
7528           needed (clip). Otherwise we get artifacts.
7530 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7532         * FixedSizeTextBox.cs: Added constructor to allow specifying which
7533           dimension is fixed
7534         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
7535           and switched FixedSizeTextBox to only be fixed vertical (#78116)
7536         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
7537           if it matches the scale base font (avoids unneeded scaling)
7539 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7541         * X11DesktopColors.cs: One gtk_init_check should be enough
7543 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
7545         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
7546           match MS behaviour
7548 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7550         * TextBoxBase.cs: 
7551           - Generate OnTextChanged for Backspace even if we're only deleting
7552             the current selection
7553           - When setting the Text property, only select all text if the
7554             control does not have focus when it is being set. Otherwise
7555             just place the cursor at the beginning of the control
7557 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7559         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
7560           Added a little helper to draw PropertyGrid ToolBar with a different
7561           border and a different BackColor.
7562         * PropertyGrid.cs: Some background parts didn't get painted with the
7563           correct background color. Added a class that helps us to draw the
7564           correct border for PropertyGridView and a class that helps us to
7565           draw ToolBars with a different backcolor
7566         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
7568 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
7570         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
7571         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
7573 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7575         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
7576           into the palette entries. Also, since we're working on a copy
7577           we needed to copy the palette back onto the bitmap.
7578         * Cursor.cs: Same fix as XplatUIWin32.cs.
7580 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
7582         * ImageListStreamer.cs: Need to read the var (or we're off)
7584 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7586         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
7587           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
7588           TextBoxBase.cs: Unused var fixes
7589         * AxHost.cs: Small 2.0 fix
7590         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
7591           as it seems that is what at least Metacity expects. This will make
7592           icons show up on 64bit platforms. We still have some 64bit size
7593           issues, though, since the startup app window size still won't match.
7595 2006-04-25  Mike Kestner  <mkestner@novell.com>
7597         * *.cs: cleanup newly reported exception var unused warnings.
7599 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7601         * ThemeWin32Classic.cs: Button image alignment now matches exactly
7602           ms
7604 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7606         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
7607           image. The image position is always the same, no matter if the
7608           button is pressed or not.
7610 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7612         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
7613           selection and set the correct filename for SaveFileDialog.
7614           Patch by Emery Conrad.
7616 2006-04-24  Mike Kestner  <mkestner@novell.com>
7618         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
7619         check for item.X outside the ClientRect instead of item.Y. Fixes
7620         #78151.
7622 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7624         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
7625         trust that value blindly and do some sanity check. Fixes bug #77814.
7627 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7629         * ImageListStreamer.cs: save the mask as a 1bpp image.
7631 2006-04-21  Mike Kestner  <mkestner@novell.com>
7633         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
7634         pass Checked and Indeterminate to the Theme Engine. Improve
7635         encapsulation with ListBox.
7636         * ListBox.cs: Keep a StringFormat instead of calculating it every item
7637         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
7638         nested types.  Move all CheckState functionality to CheckedListBox.
7639         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
7640         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
7641         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
7642         single base list. Fix scrollbar sizing and placement to mirror MS.
7643         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
7644         used.
7645         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
7646         for CheckedListBox by using new DrawItemState info.  Center the
7647         checkboxes on the items. Use new StringFormat property.
7649 2006-04-18  Jackson Harper  <jackson@ximian.com>
7651         * Form.cs: MdiChildren don't do default locations the same way as
7652         regular forms.  This prevents a crash when trying to position the
7653         mdi windows.
7655 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
7657         * PropertyGridTextBox.cs: Formatting, copyright
7658         * PropertiesTab.cs: Formatting
7659         * PropertyGrid.cs: Formatting
7660         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
7661           click toggling of values
7662           
7663 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
7665         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
7666         * Control.cs (.ctor): verify_thread_handle is static, don't reset
7667           every time a control is created
7668         * Application.cs: Removed obsolete EnableRTLMirroring method
7670 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
7672         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
7673         SelectedIndex to -1. Fixes bug #78121.
7675 2006-04-17  Jackson Harper  <jackson@ximian.com>
7677         * Binding.cs: Handle null values for Current and BindingContext.
7678         This occurs when binding is a little delayed.
7679         * CurrencyManager.cs: return null for Current when there are no
7680         items in the list.
7681         - Hookup to the listchanged event on the DataView and update
7682         bindings when the list is changed.  This fixes late binding of
7683         controls.
7685 2006-04-17  Jackson Harper  <jackson@ximian.com>
7687         * X11Dnd.cs:
7688         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
7689         Ringenbach.
7691 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
7693         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
7694           place
7695         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
7696           with the correct ButtonState
7698 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
7700         * XplatUIX11.cs: Improved distinguishing between window types to
7701           tell the WM a type closer to what the app wants (Fixes #78107)
7703 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7705         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
7706           GrabHandle
7708 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7710         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
7711           drawing code to reflect the size grip changes
7713 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7715         * ImageListStreamer.cs: fix handling of the mask that follows the main
7716         bitmap when deserializing and serialize it properly. The generated mask
7717         should better be a 1bpp image, but I'll do that later.
7719 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7721         * FileDialog.cs: Show something in the DirComboBox on *nix if the
7722           path doesn't fit into some of our Current.Places
7724 2006-04-13  Jackson Harper  <jackson@ximian.com>
7726         * ComboBox.cs: Use borders instead of drawing our own decorations,
7727         try to obey correct rules for heights.
7728         * Theme.cs:
7729         * ThemeNice.cs:
7730         * ThemeClearLooks.cs:
7731         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
7732         this is now handled by borders.
7733         - Remove unused DrawListBoxDecorationSize method.
7734         
7735 2006-04-13  Mike Kestner  <mkestner@novell.com>
7737         * MenuAPI.cs: null guarding for the disbled click check fixes crash
7738         reported by Alex.
7740 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7742         * ThemeWin32Classic.cs: 
7743           - Fixed CPDrawStringDisabled
7744           - Corrected drawing of disabled menu items
7745           - Fixed drawing of disabled radio buttons (bug #78095)
7746           - Draw check in a disabled CheckBox with color ControlDark 
7748 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7750         * Form.cs: Use the provided width when calculating the menu size;
7751           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
7752           and ClientSize.Width won't be updated yet
7753         * Application.cs: Use Visible instead of Show() to make form visible,
7754           this way we create the handle later and menusize is considered
7756 2006-04-12  Mike Kestner  <mkestner@novell.com>
7758         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
7759         reporting.
7761 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7763         * TextBox.cs: Implemented context menu
7765 2006-04-12  Mike Kestner  <mkestner@novell.com>
7767         * ListView.cs: implement box selection. fixes #77838.
7768         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
7770 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7772         * XplatUIX11.cs: Added setting of window type when transient window
7773           is created (metacity would move it otherwise)
7774         * X11Structs.cs: Added WINDOW_TYPE atoms
7775         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
7776           background (the control is Opaque but still wants transparent
7777           backgrounds)
7779 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7781         * Control.cs: Added OnPaintBackgroundInternal to allow controls
7782           that set Opaque but don't mean it (like all ButtonBase-derived
7783           controls) to still draw their background
7784         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
7785           the background
7787 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7789         * Control.cs (PaintControlBackground): Set the graphics object
7790           on our PaintEvent to null to prevent it from being disposed
7791           when the PaintEvent gets disposed
7793 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
7795         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
7796         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
7798 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7800         * Control.cs: 
7801           - Added transparency check to BackColor property. Transparent
7802             backgrounds are only allowed if the control styles permit it
7803           - Added recursive painting of parent control background and
7804             foreground if a control with a transparent backcolor is drawn
7805             (Thanks to Tim Ringenback for providing his 'hack' as a base
7806              for this patch) Fixes #77985 and #78026.
7807           - Added Opaque style check before calling OnPaintBackground, no
7808             need to draw the background if the control is opaque
7809           - Removed ControlAccessibleObject owner variable (inherited from
7810             base, no need to define again)
7811           - Added some documentation links explaining the drawing events
7812             and styles
7814 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7816         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
7817           that the affected control is the located at the left border of our
7818           parent (Fixes #77936)
7820 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7822         * TextBoxBase.cs: When rendering disabled or readonly controls,
7823           draw the background with 'Control' instead of 'Window' color as
7824           long as the user hasn't specifically set a color
7826 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7828         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
7829           since that won't be updated if the user types text (only if it's
7830           programatically set)
7832 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7834         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
7835           layout changes do to app-triggered resizes will have the proper
7836           display rectangle for layout
7838 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
7840         * ThemeWin32Classic.cs:
7841           - Make use of the SystemBrushes and SystemPens wherever possible
7842           - Corrected some highlight colors
7843           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
7844             drawing
7845         * Theme.cs: Added Empty field to CPColor struct
7847 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7849         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
7850           is displayed when calculating the display rectangle. Thanks to Mike
7851           for teaching me the err of my ways.
7853 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
7855         * ScrollableControl.cs:
7856           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
7857             (instead of 0,0) and we now return the real width/height instead of
7858             just the clientrectangle, adjusted for padding. The rectangle is
7859             now cached and created by the new CalculateDisplayRectangle method.
7860           - Created new CalculateDisplayRectange method, which basically does
7861             what get_DisplayRectangle() did originally, but now using the 
7862             right edge instead of DisplayRectangle to determine the size of
7863             our scrollbars
7864           - get_Canvas(): Fixed it to properly calculate canvas for 
7865             right/bottom controls which seem to be placed to the right/bottom
7866             of any controls that have a fixed location
7867           - Removed TODO that's taken care of
7868           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
7869             and SetDisplayRectLocation according to new MSDN2 docs
7870           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
7871             event when that is called, this is added for compatibility
7872           - ScrollControlIntoView(): Implemented.
7873           - Switched scrollbars to be implicit, they shouldn't be selectable
7874         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
7875           call it when the active control is set/changed
7876         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
7877         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
7878           implicit_control variable (used for native Win32 message generation)
7879         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
7880           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
7881         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
7882         * XplatUIStructs.cs: Added ScrollBarCommands enum
7884 2006-04-10  Jackson Harper  <jackson@ximian.com>
7886         * ButtonBase.cs:
7887         * CheckedListBox.cs:
7888         * ComboBox.cs:
7889         * DataGrid.cs:
7890         * DataGridView.cs:
7891         * Form.cs:
7892         * GroupBox.cs:
7893         * ListBox.cs:
7894         * PrintPreviewControl.cs:
7895         * ProgressBar.cs:
7896         * PropertyGrid.cs:
7897         * Splitter.cs:
7898         * StatusBar.cs:
7899         * TrackBar.cs:
7900         * UpDownBase.cs: Fixup base event overrides.
7901         
7902 2006-04-06  Mike Kestner  <mkestner@novell.com>
7904         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
7905         all user-initiated value changes to min <= value <= max-thumbsz+1.
7906         (set_Value): check for vert/horiz when calculating new thumb position.
7907         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
7908         like MS does.
7909         (OnMouseMoveSB): refactor the thumb dragging code and refine
7910         invalidation logic to reduce flicker.
7911         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
7912         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
7913         (UpdateThumbPosition): small code readability cleanup
7915 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
7917         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
7918           different
7920 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7922         * ThemeNice.cs: Use a better graphics effect when a button is pressed
7924 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7926         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
7927         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
7928           This dramatically reduces the number of Pen.Dispose calls. 
7929           Where possible call ResPool methods only once instead of calling it
7930           over and over again (for example for the same color).
7932 2006-04-06  Mike Kestner  <mkestner@novell.com>
7934         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
7935         Also remove an unused private field on the collection. Fixes #77972.
7937 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7939         * ThemeNice.cs: Added ToolBar drawing code
7941 2006-04-06  Mike Kestner  <mkestner@novell.com>
7943         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
7944         I'm assuming that means we need to look up the toplevel for the
7945         provided control. Fixes the crash trace in #77911 but exposes another
7946         crash in some strange reflection usage in NDocGui.
7948 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7950         * ThemeNice.cs: Gave it a little silver touch and added Images
7951           method
7952         * FontDialog.cs: FontDialog is not resizable
7953         * FileDialg.cs: Added SizeGripStyle.Show
7955 2006-04-05  Jackson Harper  <jackson@ximian.com>
7957         * KeyboardLayouts.cs: Remove warning.
7959 2006-04-05  Jackson Harper  <jackson@ximian.com>
7961         * Control.cs: Enable OnPaintInternal so we can use it for drawing
7962         all of our controls instead of Paint +=.
7963         * ListBox.cs:
7964         * ListView.cs:
7965         * MenuAPI.cs:
7966         * MessageBox.cs:
7967         * NotifyIcon.cs:
7968         * ProgressBar.cs:
7969         * ScrollBar.cs:
7970         * Splitter.cs:
7971         * StatusBar.cs:
7972         * TabControl.cs:
7973         * TextBoxBase.cs:
7974         * ToolBar.cs:
7975         * TrackBar.cs:
7976         * UpDownBase.cs:
7977         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
7978         use OnPaintInternal. Remove Width/Height and Visible checks in
7979         paint handler, this is done at a higher level now.
7980         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
7981         * PaintEventArgs.cs: Add a handled flag so controls that don't
7982         want anymore painting after OnPaintInternal can make sure OnPaint
7983         isn't called.
7985 2006-04-05  Mike Kestner  <mkestner@novell.com>
7987         * Form.cs: fix the menu WndProc hacks to respect the native enabled
7988         state of the form, so that we don't process events when Modal dialogs
7989         are up. Fixes #77922.
7991 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
7993         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
7994           checking is done.
7996 2006-04-05  Mike Kestner  <mkestner@novell.com>
7998         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
8000 2006-04-05  Mike Kestner  <mkestner@novell.com>
8002         * ListView.cs (HeaderMouseMove): null guarding for the over column
8003         when setting up the drag_to_index.  Fixes #78015.
8005 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
8007         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
8008           in the taskbar. Transient windows seem to accomplish that.
8010 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
8012         * Form.cs:
8013           - Re-enabled CreateParams.X/Y code for FormStartPosition
8014           - Added code for manual placement when creating the Control
8015           - Incomplete patch to treat MDI forms differently when
8016             setting the ClientSizeCore. (Still need to figure out handling
8017             x/y coords there)
8018         * XplatUIX11.cs:
8019           - When we're explicitly setting the X/Y position of a non-Child
8020             window, let the WM know. Metacity really wants this.
8022 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8024         * ThemeNice.cs: Added CPDrawButton
8026 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8028         * ThemeNice.cs: Changed the color for focused buttons and activated
8029           the arrows for small scroll buttons.
8031 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
8033         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
8034           anymore. Changed some method modifiers to protected (virtual)
8035         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
8036           changes
8037         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
8038           Updated drawing of menus, buttons and progressbars; added
8039           CPDrawBorder3D 
8041 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8043         * ImageListStreamer.cs: implemented serialization/deserialization
8044         of the images.
8046 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
8048         * ThemeWin32Classic.cs:
8049           - Removed all the DrawFrameControl stuff; CPDrawButton,
8050             CPDrawCheckBox and CPDrawRadioButton are now handled directly
8051             inside the methods
8052           - Updated and corrected the drawing code of CPDrawButton,
8053             CPDrawCheckBox and CPDrawRadioButton to better match ms
8054           - Updated theme checkbox and radiobutton code to use the CP*
8055             methods
8057 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
8059         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
8060           bug is fixed
8062 2006-03-31  Jackson Harper  <jackson@ximian.com>
8064         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
8065         sometimes.
8066         * UpDownBase.cs: Don't CreateGraphics manually, use a
8067         Refresh. Ideally we would invalidate the correct areas here.
8069 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
8071         * XplatUIX11.cs: 
8072           - We now track the mapping state of windows. If a window (or 
8073             one of it's parents) is not mapped we no longer permit
8074             WM_PAINT messages to be generated since we'd otherwise get 
8075             lots of BadMatch X errors. Jackson did all the work figuring
8076             out the problem.
8077           - Destroying the caret if the window it's contained in is 
8078             destroyed. Can't use regular DestroyCaret method since it
8079             might fall into a drawing function (trying to remove the
8080             caret) and with that generate new BadMatch errors. Again,
8081             Jackson tracked this down.
8082           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
8083             make sure we send the messages to all windows. (The old code
8084             would send the WM_DESTROY to the window, and then all child
8085             windows would be 'gone' because the WM_DESTROY handle lookup
8086             would no longer find the destroyed window)
8087         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
8088         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
8090 2006-03-31  Jackson Harper  <jackson@ximian.com>
8092         * ScrollableControl.cs: Dont recalc if we are not visible.
8094 2006-03-31  Mike Kestner  <mkestner@novell.com>
8096         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
8097         the visibility branch.
8099 2006-03-31  Jackson Harper  <jackson@ximian.com>
8101         * ScrollBar.cs: Cap values when incrementing/decrementing.
8103 2006-03-31  Mike Kestner  <mkestner@novell.com>
8105         * MenuAPI.cs: setup menu.tracker for popup/context menus.
8106         * ToolTip.cs: guard against timer expirations with no active control.
8107         Not sure why it happened.
8109 2006-03-31  Mike Kestner  <mkestner@novell.com>
8111         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
8112         text.
8113         * ToolTip.cs: Position the tooltip based on where the cursor is at
8114         popup time, not at MouseEnter time.  Add a Down state so that we don't
8115         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
8116         positioning offset. Lookup DisplaySize at positioning time, since it
8117         can theoretically change during invocation.
8118         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
8119         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
8121 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8123         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
8124           Fixes behaviour when the Text property of the box is String.Empty
8126 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
8128         * XplatUIX11.cs: Only send mouseleave for our client windows, not
8129           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
8130           a window)
8132 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8134         * FileDialog.cs: Visual enhancement for the popup buttons in 
8135           PopupButtonPanel
8137 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
8139         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
8140           code
8142 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
8144         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
8145           highlighted menu items to match ms
8147 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
8149         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
8151 2006-03-30  Mike Kestner  <mkestner@novell.com>
8153         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
8154         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
8155         go active to account for HotLight to Selected transition.
8156         * MenuItem.cs: add internal Selected prop. Fill out the Status
8157         property by calculating it from item info. Add HotLight,
8158         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
8160 2006-03-30  Mike Kestner  <mkestner@novell.com>
8162         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
8164 2006-03-29  Jackson Harper  <jackson@ximian.com>
8166         * Form.cs: Implement TODO.
8168 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
8170         * PrintPreviewDialog.cs: Implemented missing methods and events; still
8171           missing proper dialog setup in the constructor
8173 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
8175         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
8176         * Control.cs:
8177           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
8178           - Fixed ResetBindings and removed TODO
8179           - Added check for cross-thread calls to get_Handle()
8180           - Added Marshaller attribute for set_Font to satisfy class status
8181         * FontDialog.cs: Removed TODOs that seemed implemented
8182         * UpDownBase.cs: Removed unneeded TODO and Fixme
8183         * MessageBox.cs: Implemented support for Default button and removed TODO
8184         * FileDialog.cs: Removed obsolete TODO
8185         * DomainUpDown.cs: Removed obsolete TODO
8186         * ButtonBase.cs: Removed obsolete TODO
8187         * XplatUIWin32.cs: Removed obsolete TODO
8188         * Form.cs:
8189           - Removed obsolete TODO
8190           - Calling CheckAcceptButton when the acceptbutton is changed to allow
8191             internal status updates
8192           - Making sure the active control is selected when the control is created
8193         * CurrencyManager.cs: Removed obsolete TODO
8195 2006-03-29  Mike Kestner  <mkestner@novell.com>
8197         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
8198         of PrintPreviewDialog and RichTextBox.
8200 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
8202         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
8203           DarkDark, Light and LightLight colors for a specific color
8204         * ThemeWin32Classic.cs:
8205           - Use Button drawing code to draw RadioButtons and CheckBoxes with
8206             Appearance = Button 
8207           - Make use of the new ResPool helper CPColor
8208           - Draw ProgressBar and StatusBar with correct 3D borders
8210 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
8212         * ColorDialog.cs: Return selected color. Fixes bug #77940.
8214 2006-03-28  Mike Kestner  <mkestner@novell.com>
8216         * ListView.cs: fix Icon layout to plan for scrollbar widths when
8217         calculating col/row counts.
8219 2006-03-28  Mike Kestner  <mkestner@novell.com>
8221         * ColumnHeader.cs:
8222         * ListView.cs:
8223         * ListViewItem.cs:
8224         * Menu.cs: 
8225         switch to explicit interface method implementation for some methods
8226         corcompare identifies as inconsistent with MS.
8228 2006-03-28  Mike Kestner  <mkestner@novell.com>
8230         * MainMenu.cs: 
8231         * Menu.cs:
8232         add a few missing methods from the class status output.
8234 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
8236         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
8237           correct.
8239 2006-03-28  Mike Kestner  <mkestner@novell.com>
8241         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
8243 2006-03-27  Mike Kestner  <mkestner@novell.com>
8245         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
8246         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
8248 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
8250         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
8252 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8254         * ThemeWin32Classic.cs:
8255           - GroupBox: Inserted a little gap between the text and the lines
8256             on the right side
8257           - Made the code in CPDrawBorder3D more readable
8258           - Corrected the drawing location of the up and down arrows in 
8259             CPDrawScrollButton
8261 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8263         * ControlPaint.cs: Corrected line widths in DrawBorder for
8264           ButtonBorderStyle Inset and Outset
8266 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8268         * ThemeWin32Classic.cs:
8269           - Rewrote the totally broken CPDrawBorder3D method. That was
8270             one of the main problems for the terrific ThemeWin32Classic
8271             look
8272           - Updated and corrected Button drawing
8273           - Correct the dimensions of the SizeGrip to match ms ones
8274           - Removed a small drawing glitch in DrawComboBoxEditDecorations
8275         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
8276           Border3DStyle.Sunken to match ms.
8278 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
8280         * ThemeWin32Classic.cs: First small part of the "de-uglify
8281           ThemeWin32Classic" effort, SizeGrip
8283 2006-03-24  Jackson Harper  <jackson@ximian.com>
8285         * XplatUIX11.cs: Give a max idle time of one second, this matches
8286         MS and forces an Idle event every second when there are no other
8287         events in the queue.
8289 2006-03-24  Mike Kestner  <mkestner@novell.com>
8291         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
8292         * ListView.Item.cs: fix layout issues with null image lists and images
8293         smaller than checkbox size.
8294         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
8295         mode like MS does.  It's weird, but consistent.  ;-)
8296         Fixes #77890.
8298 2006-03-24  Mike Kestner  <mkestner@novell.com>
8300         * ListView.cs: Scroll wheel support for the item control.  Fixes
8301         #77839.
8303 2006-03-23  Jackson Harper  <jackson@ximian.com>
8305         * ScrollableControl.cs: Special case negative sized areas, not
8306         zero.
8307         * MonthCalendar.cs: Save the rect of the clicked date so we can
8308         use it for invalidation.
8309         - Try to cut down on the number of invalidates
8310         - Invalidate the rect the mouse is over and was over when moving
8311         the mouse, so we get the focus box following the cursor.
8313 2006-03-23  Mike Kestner  <mkestner@novell.com>
8315         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
8316         focus rectangle drawing. Fixes #77835.
8318 2006-03-23  Mike Kestner  <mkestner@novell.com>
8320         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
8321         the if and else if and reverting back to the original == check on the
8322         None conditional.
8324 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
8326         * FontDialog.cs: Update the example panel if the selected index of
8327           the fontListBox changes.
8329 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
8331         * FileDialog.cs: Make FileDialog remember which directory it was in
8332           last in the same execution.
8334 2006-03-22  Mike Kestner  <mkestner@novell.com>
8336         * FileDialog.cs: make the DropDownMenu on the toolbar display
8337         RadioChecks since they are mutually exclusive and that's what MS does.
8339 2006-03-22  Mike Kestner  <mkestner@novell.com>
8341         * Theme.cs: add Color param to CPDrawMenuGlyph.
8342         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
8343         checks and radio marks and arrows are visible on highlighted items.
8344         * ControlPaint.cs: update to use new Theme signature.
8346 2006-03-22  Mike Kestner  <mkestner@novell.com>
8348         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
8349         is active. Fixes #77870.
8351 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8353         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
8354           to be focused/selected after startup
8356 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8358         * ColorDialog.cs: 
8359           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
8360             CustomColors and ShowHelp properties
8361           - Some internal rewrites to get better results when using the
8362             ColorMatrix
8364 2006-03-22  Mike Kestner  <mkestner@novell.com>
8366         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
8367         HoverSelection.  Fixes #77836.
8369 2006-03-22  Mike Kestner  <mkestner@novell.com>
8371         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
8372         ToggleButtons.  (De)Sensitize the Back button around a stack count of
8373         1, not 0.  Update ButtonSize based on a pixel count of the win32
8374         control.  Adjust the toolbar size/location for new button size.
8376 2006-03-22  Jackson Harper  <jackson@ximian.com>
8378         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
8379         true.
8380         * ScrollBar.cs: When doing increments and decrements we need to
8381         set the Value property so that ValueChanged gets raised. A
8382         possible optimization here would be to make an internal SetValue
8383         that doesn't invalidate immediately.
8384         * ToolTip.cs: Tooltips get added to their container (when
8385         supplied) so they get disposed when the container is disposed.
8386         - Don't create tooltips for String.Empty. This prevents all these
8387         little 2-3 pixel windows from showing up when running nunit-gui
8388         and driving me mad.
8389         * Form.cs: Don't set topmost when setting the owner if the handles
8390         haven't been created yet.  The topmost set will happen when the
8391         handles are created.
8393 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
8395         * XplatUIX11.cs:
8396           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
8397           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
8398             visible (to allow them to recalculate their sizes)
8400 2006-03-21  Mike Kestner  <mkestner@novell.com>
8402         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
8403         methods. Removed a ton of redundant code.  Still not really happy with
8404         the border rendering, but I think that's mainly because of the
8405         ControlDarkDark being black instead of a dark grey. Depending on how 
8406         close we want to be, we might want to revisit those color choices.
8407         Among the new features added during the refactor were DropDownArrow
8408         pressed rendering, Disabled image rendering.  Proper flat appearance
8409         boundary rendering.  Removed the Divider and Wrapping dividers since I
8410         can't figure out any combination of themes and conditions to make the
8411         MS control draw a horizontal line on a toolbar despite what the
8412         Divider property docs indicate.
8413         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
8414         conditions and incorrect layout.  Updated to coding standard.
8415         * ToolBarButton.cs: refactored layout and positioning code from
8416         ToolBar to here.  Invalidate wherever possible instead of forcing
8417         redraws of the whole toolbar. 
8418         (Known remaining issues: explicit ButtonSize smaller than provided
8419         images.)
8421 2006-03-21  Mike Kestner  <mkestner@novell.com>
8423         * ContextMenu.cs (Show): use the position parameter instead of just
8424         showing at the MousePosition.
8426 2006-03-21  Jackson Harper  <jackson@ximian.com>
8428         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
8429         control handle this.
8430         * TreeNodeCollection.cs: If we are clearing the root node we need
8431         to reset top_node so calcs can still happen.
8432         * ThemeWin32Classic.cs: This is a Flags so we need to check
8433         properly.
8434         
8435 2006-03-21  Jackson Harper  <jackson@ximian.com>
8437         * DataGrid.cs: Create columns when the binding context has been
8438         changed.
8439         * X11Structs.cs: Keysyms are uints.
8440         - Add size to fix build.
8442 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
8444         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8445           XplatUIOSX.cs: 
8446           - Added ResetMouseHover method to allow controls to retrigger
8447             hovering if they need it more than once
8448           - Implemented MouseHoverTime and MouseHoverSize properties
8449         * Timer.cs: Start() must reset the interval
8450         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
8451           properties
8453 2006-03-21  Jackson Harper  <jackson@ximian.com>
8455         * X11Keyboard.cs: improved layout detection. Move the nonchar
8456         tables into this file.
8457         * KeyboardLayouts.cs: Move the tables into resource files.
8459 2006-03-21  Mike Kestner  <mkestner@novell.com>
8461         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
8463 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
8465         * Mime.cs: Various speed optimizations. Looking up mime types
8466           is now 2 times faster than before
8468 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
8470         * CreateParams.cs: Added internal menu field
8471         * Control.cs: 
8472           - Switched call order for UpdateBounds; now we always call
8473             the one that also takes ClientSize, and we're calculating the 
8474             client size via driver method in the others. The previous
8475             method of tracking client size by difference wasn't working
8476             for forms where even the starting client size wouldn't match
8477             the overall form size (due to borders) (Part of fix for #77729)
8478           - CreateParams(): Do not use parent.Handle unless the handle is
8479             already created. Causes havoc with Nexxia and throws off our
8480             creation of controls
8481         * XplatUIX11.cs:
8482           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
8483           - Switched handling of ConfigureNotify over to new PerformNCCalc 
8484             method (consolidates code)
8485           - Changed RequestNCRecalc to use new PerformNCCalc method
8486           - Added calls to RequestNCRecalc when menus and borders are changed
8487             to allow app to set NC size. (Part of fix for #77729) This matches
8488             when MS send a WM_NCRECALC on Win32 windows.
8489           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
8490             (Part of fix for #77729). This matches what MS does, they also
8491             send that message when the form is made visible.
8492           - XException.GetMessage: Improved usability of X errors by including
8493             a translation of the window into Hwnd and Control class
8494           - Improved debug info for window creation, reparenting and destruction
8495           - Created helper method WindowIsMapped() [Currently not used]
8496         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
8497         * Form.cs:
8498           - CreateParams: Now setting our menu on the new internal menu field
8499           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
8500             avoid calculating the same property twice
8501         * Hwnd.cs:
8502           - Improved usability of ToString() for debugging purposes
8503           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
8504             determine the height of the menu, instead of just the font. This
8505             required to also create a graphics context and to keep a bmp 
8506             around (for performance reasons)
8508 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
8510         * MenuAPI.cs: Added OnMouseUp method
8511         * Form.cs:
8512           - Now remembering the requested client size, avoids size errors
8513           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
8514             instead of base if the menu is active. This is required due to
8515             control now capturing and releasing on down/up and it would
8516             prematurely release our menu capture
8518 2006-03-17  Jackson Harper  <jackson@ximian.com>
8520         * KeyboardLayouts.cs: Add the czech layouts.
8522 2006-03-16  Jackson Harper  <jackson@ximian.com>
8524         * Control.cs: Use the viewport space when sizing not the controls
8525         client size, so things like ScrollableControl that effect the
8526         viewport size (when scrollbars are added) are computed correctly.
8527         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
8528         of ManagerEntrys.
8529         - Handle creating BindingManagers for null data sources.
8530         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
8531         source, otherwise when rows are added they are added to the 'fake'
8532         datasource and we will crash when trying to set the position in
8533         those rows.
8534         - Use Implicit scrollbars on the datagrid so they arent
8535         selectable.
8536         
8537 2006-03-16  Jackson Harper  <jackson@ximian.com>
8539         * Binding.cs:
8540         * InternalWindowManager.cs:
8541         * MdiWindowManager.cs:
8542         * X11Keyboard.cs: I really want Mike to love me again (fix
8543         compiler warnings).
8545 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
8547         * DataGrid.cs:
8548           - OnMouseDown: Switch to editing mode when clicking on the cell
8549                          even if we're clicking on the cell that's currently 
8550                          selected
8551           - ProcessGridKey: Left/Right now wrap like MS.Net does
8552           - ProcessGridKey: Tab now knows to add a new row when tab is
8553                             pressed in the cell of the last column of the 
8554                             last row
8555           - ProcessGridKey: Enter now adds another row  if pressed in the last
8556                             row and selectes the new row, same column cell
8557           - ProcessGridKey: Home/End navigate columns, not rows, like 
8558                             originally implemented
8559           - Broke ProcessKeyPreview code out into an extra Internal method
8560             so it can be called from the edit code
8561         * DataGridTextBox.cs (ProcessKeyMessage):
8562           - Switched to accept Tab keypresses
8563           - Added F2 handling to allow jumping to the end of the edited cell
8564           - Added logic to allow moving caret left/right inside edited cell
8565             and making the edited cell jump when the caret hits cell borders
8566           - Tab and Enter are now passed to the datagrid after being handled
8567         * TextBoxBase.cs:
8568           - Removed capture code now that Control handles it
8569           - set_SelectionStart now ensures caret is visible
8571 2006-03-16  Jackson Harper  <jackson@ximian.com>
8573         * TrackBar.cs: Debackwards the increment/decrement for handling
8574         mouse clicks on the bar with vertical trackbars.
8575         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
8576         bottom to match MS.
8578 2006-03-16  Mike Kestner  <mkestner@novell.com>
8580         * ListView.cs: make shift/ctrl keyboard and mouse selection 
8581         consistent with the MS control. Fix a bug in
8582         SelectedListViewItemCollection.Clear that was pissing me off for the
8583         better part of a day because the collection was being altered
8584         underneath us as we walked the list.
8586 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
8588         * Control.cs: Not sure how we could miss this so long, but it seems
8589           that MS.Net has Capture set all the way from before calling 
8590           OnMouseDown through sending the mouse events until after
8591           OnMouseUp. This will fix DataGrid's selection being set to end
8592           at the location of the MouseUp.
8594 2006-03-15  Jackson Harper  <jackson@ximian.com>
8596         * BindingContext.cs: Check the binding after its added so that it
8597           can initialize the binding managers and hookup to events.
8598         * Binding.cs: Data members seem to sometimes include rows/cols in
8599           the format Row.Column we now take this into account.
8600           - Hookup to the position changed event so we can update the
8601           control when the position has changed in the data set.
8602         * CurrencyManager.cs: Take into account the row/col naming
8603           convention when creating dataset tables.
8604         * BindingContext.cs: Using a newer better way of storing
8605           datasource/datamember pairs.  Hopefully this better matches MS for
8606           looking up binding managers.
8609 2006-03-15  Jackson Harper  <jackson@ximian.com>
8611         * BindingContext.cs: The currency manager needs the data member
8612         name, if the member is a data set we use the name to find the
8613         correct table.
8614         * CurrencyManager.cs: When creating the list prefer an IList over
8615         an IListSource.
8616         - Attempt to create a DataTable from a DataSet (TODO: might need
8617         some better error checking here, although MS doesn't seem to have much)
8618         - If we have a DataTable create a view and use it as our list.
8620 2006-03-15  Mike Kestner  <mkestner@novell.com>
8622         * ListView.cs: keep a matrix of the icon mode layout to facilitate
8623         keyboard navigation. Support Up/Down/Left/Right selection correctly
8624         for all 4 View modes.
8625         * ListViewItem.cs: add internal row/col fields for icon layouts.
8627 2006-03-15  Jackson Harper  <jackson@ximian.com>
8629         * TabControl.cs: Redraw the tabs when we resize so their newly
8630         calculated sizes are drawn on screen.
8631         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
8632         composite characters.
8633         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
8634         - filter events so that composite characters can be created
8635         patches by peter
8636         * X11Structs.cs: Add XIMProperties enum.
8638 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8640         * Control.cs (BringToFront, SendToBack): Don't use window or handle
8641           unless it's created
8643 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8645         * Control.cs (PerformLayout): We don't need to consider visiblity
8646           for anchoring, only for docking. This fixes 'whacky' alignment
8647           in listbox and other controls that use implicit scrollbars after
8648           the previous PerformLayout patch
8649         * ListBox.cs: Switched to use implicit scrollbars
8650           
8651 2006-03-14  Mike Kestner  <mkestner@novell.com>
8653         * ToolBar.cs: 
8654         * VScrollBar.cs:
8655         - chain up the "new event" overrides to base and use
8656         OnEvent to raise them.  Part of fix for bug #76509.
8658 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
8660         * FileDialog.cs: Do not select an item in the parent directory
8661           on backspace
8663 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8665         * Control.cs (PerformLayout): It would seem that we considered
8666           invisible windows for our layout. Not quite the right thing
8667           to do. Now we don't any longer, thereby fixing bug #76889.
8669 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8671         * Control.cs (CanFocus): I goofed. A control can have focus 
8672           even though it's not selectable. Made it match MS docs.
8674 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8676         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
8677           center by default (fixes #76895)
8678         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
8679           all uses of Border3DSides.All with the explicit ORd together
8680           Left|Right|Top|Bottom because I assume that nobody was aware 
8681           that All also implies a center fill. Most places I checked had
8682           a fill right above.
8683         * ProgressBarStyle.cs: Added
8685 2006-03-13  Mike Kestner  <mkestner@novell.com>
8687         * ListView.cs: fix breakage in drag shadow header positioning 
8688         from Peter's csc compilation fix.
8690 2006-03-13  Mike Kestner  <mkestner@novell.com>
8692         * ListView.cs: fix NRE produced by backspacing twice in a focused
8693         FileDialog.
8695 2006-03-13  Mike Kestner  <mkestner@novell.com>
8697         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
8699 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8701         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
8702           be changed
8703         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
8704           the allowed size before making programmatic size changes
8706 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
8708         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
8709           set, metacity is broken and will still use the emty sizes in 
8710           the struct. (Fix for #77089)
8712 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8714         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
8715           WindowExStyles and marked both enums as Flags
8716         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
8717           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
8718           to match WindowStyles split
8719         * XplatUIX11.cs:
8720           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
8721           - Updated to match WindowStyles split
8722         * XplatUIWin32.cs:
8723           - Fixed FosterParent creation, was using ExStyle on the Style field
8724             (This should help with Popup focus issues)
8725           - Updated to match WindowStyles split
8727 2006-03-13  Jackson Harper  <jackson@ximian.com>
8729         * MdiWindowManager.cs: Use the system menu height. Fixes some
8730         strange sizing issues.
8732 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8734         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
8735         * TextBoxBase.cs:
8736           - Scroll to caret after inserting text (#77672)
8737           - Make scroll range one pixel higher, fixes off-by-one error (and
8738             makes underlines visible on the last line)
8740 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
8742         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
8743           the keyboard state from being stuck with keys in 'pressed' state when
8744           focus is switched away via keyboard
8745         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
8746           reset the keyboard if no X11 KeyUp events are expected to come
8747         * X11Structs.cs: Switched type of Visible to bool to match driver
8749 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8751         * TextControl.cs:
8752           - Switched caret to be just 1 pixel wide, matches MS and looks less
8753             clunky
8754           - Moved caret display 1 pixel down from the top of the control
8755             to improve view
8756           - InsertCharAtCharet: Update the selection start if moving the caret
8757             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
8758           - No longer always creating the caret when the caret methods are
8759             called. Only the actual ShowCaret/HideCaret will do that now
8760           - Only setting caret visible if the owner control has focus
8761           - UpdateView: Added invalidation-shortcut logic for center and right 
8762             aligned text. Previously we'd update all according to the left
8763             logic which caused drawing errors. Also fixed height of invalidated
8764             areas, now properly invalidating the whole area (was off-by-one)
8765           - owner_HandleCreated: Always generate the document when the
8766             handle is created; this ensures that 
8767         * TextBoxBase.cs:
8768           - Fixed situation where caret would disappear under the right
8769             window border, also improved scrolling behaviour on left-
8770             aligned textboxes
8771           - Fixed right-aligned textboxes to have a border to the
8772             right instead of the caret being under the right border
8773         * XplatUIX11.cs:
8774           - Switched from 'nested' to simple visible/not visible tracking 
8775             for caret (part of fix for #77671)
8776           - No longer passing through translated FocusIn/FocusOut messages
8777             since we were notifying too often and the wrong windows. Instead
8778             we just notify our focussed window of receiving or loosing focus
8779         * XplatUIWin32.cs: Switched from 'nested' show/hide 
8780           counting for caret to simple visible yes/no behaviour (part of 
8781           fix for #77671)
8783 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8785         * Mime.cs: Remove debug code...
8787 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8789         * MimeGenerated.cs: Removed
8790         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
8791           and subclasses) from /usr/(local/)share/mime and
8792           $HOME/.local/share/mime.
8794 2006-03-10  Jackson Harper  <jackson@ximian.com>
8796         * MdiWindowManager.cs: Recalc the NC area when a window is
8797         maximized/restored so that the menu area is drawn on forms that
8798         don't have a menu.
8800 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8802         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8803           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
8804           us to force a WM_NCCALCRESIZE message being sent. This is needed
8805           for MDI maximizing.
8807 2006-03-10  Jackson Harper  <jackson@ximian.com>
8809         * Form.cs: We need to use the ActiveMenu when calculating menu
8810         height.
8811         - Fix nullref when the window manager hasn't been created yet.
8812         * Control.cs: Fix nullref when we try to bring a control to the
8813         front that has no parent.
8814         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
8815         height.
8816         - Add a dummy item to the maximized menu so it always has the
8817         correct height. Otherwise when there are no menus we don't get our
8818         icon and buttons.
8819         
8821 2006-03-10  Jackson Harper  <jackson@ximian.com>
8823         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
8824         stuff.
8825         * Form.cs: Make the window_state internal so the window managers
8826         can track it.
8827         - When an MDI child is maximized let its window manager create the
8828         main menu (so it can add its icon).
8829         - Notify the window managers of state changes
8830         - Let the window manager paint its buttons and handle button
8831         clicks on the menu when it is maximized.
8832         * InternalWindowManager.cs: Move the prev_bounds into the mdi
8833         window manager, since tool windows don't use it, only mdi windows.
8834         - Tell the main form that we don't want it to handle NCPAINT
8835         itself to avoid extra painting.
8836         - Handle clicks on a maximized windows menu.
8837         - Handle window state changes
8838         - Handle minimize/maximize clicks correctly by setting the window state.
8839         * MdiWindowManager.cs: Add an icon menu that (the menu you get
8840         when clicking on the forms icon).
8841         - New method to create a forms maximized menu. This is its normal
8842         menu + an icon.
8843         - Handle window state changes.
8844         - Handle sizing of maximized windows.  Maximized windows are just
8845         drawn bigger then the parent visible area. All controls are still
8846         there, they are just outside the visible area (this matches windows).
8847         * MdiClient.cs: No scrollbars when a child window is maximized.
8848         - Let the children windows figure out how big they should be when
8849         sizing maximized windows.
8850         - Implement a version of ArrangeIconicWindows somewhat similar to
8851         Windows version.  There are some little differences, but I don't
8852         think any app will rely on the layout of minimized mdi windows.
8854 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8856         * Padding.cs: Several fixes to allow compiling with csc 2.0
8858 2006-03-09  Jackson Harper  <jackson@ximian.com>
8860         * Menu.cs:
8861         * MenuItem.cs: Cheap hack so we can add items to the list without
8862         the events being raised.  This allows adding mdi items during
8863         drawing. TODO: Should probably find a better time to add the items.
8865 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8867         * ThemeWin32Classic.cs:
8868           - CheckBox_DrawText: Added logic to not wrap if not enough space
8869             is available (Fix for bug #77727)
8870           - RadioButton_DrawText: Added logic not to wrap if not enough
8871             space is available (Fix for bug #77727). Also removed some
8872             duplicate code, DrawString always drawing the regular text
8873             before hitting the if statement.
8875 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
8877         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
8879 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8881         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
8882         * ContainerControl.cs: Partial implementation of some 2.0 scaling
8883           methods. Moved the new 2.0 properties into alphabetical order with
8884           other properties and added MonoTODO tags
8886 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8888         * AutoScaleMode.cs: Added. Fix build.
8890 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8892         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8893           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
8894           and was requiring premature handle creation for calls from above
8895         * Form.cs, Control.cs: Removed handle arguments from calls to
8896           CalculateClientRect()
8898 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8900         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
8901           drag_column.column_rect is MarshalByRef and can't be used that way
8903 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8905         * AxHost.cs: Added deserialization constructor for 
8906           AxHost+State (fixes 77743)
8908 2006-03-09  Mike Kestner  <mkestner@novell.com>
8910         * ListView.cs: 
8911         - Added column drag reordering for details view.
8912         - fixed behavior when mouse is dragged off column and
8913         AllowColumnReorder is false.
8914         * ColumnHeader.cs: clone the format too in Clone.
8915         * Theme.cs: add DrawListViewHeaderDragDetails method.
8916         * ThemeWin32Classic.cs:
8917         - impl new method for drawing drag column shadows and targets.
8918         - support column offset for details mode in DrawListViewItem.
8920 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8922         * TextControl.cs: Reset the char_count when the document is cleared
8923           (Fixes bug reported on mono-winforms mailing list)
8925 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8927         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
8928           of calling base we simply process the key ourselves, since both
8929           DefWindowProc and the handled method would set m.Result. 
8930           (Fixes #77732)
8932 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8934         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
8935           method also moves the window; instead implemented a copy of
8936           Control.ScaleCore (Part of fix for #77456)
8937         * TextBoxBase.cs: 
8938           - Created new CreateGraphicsInternal method to allow providing
8939             a graphics context when no handle is created without triggering
8940             handle creation. (Part of fix for #77456)
8941           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8942         * TextControl.cs: 
8943           - Switched Constructor to require TextBoxBase instead of Control (to
8944             allow uncast access to CreateGraphicsInternal)
8945           - Safeguarded use of owner.Handle property. No longer accessing it
8946             unless the handle is already created.
8947           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8948           - Now triggering a recalc when owning control becomes visible
8949         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
8950           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
8951           premature handle creation (Part of fix for #77456)
8952         * Control.cs:
8953           - We now only destroy our double-buffering buffers when the
8954             control is resized or disposed, but not when visibility
8955             changes. (The code even re-created them twice every time)
8956           - Now requiring a redraw of the buffer on visibility changes
8957             (fixes bug 77654 part 2)
8958           - Not passing OnParentVisibleChanged up unless the control
8959             is visible
8960           - CanFocus: Fixed to match MS documentation
8961           - Focus: Fixed to return actual focus state and to check if
8962             setting focus is legal before setting it
8964 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
8966         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
8967           when to draw focus rectangle by looking at parent focus and
8968           selected state instead. This fixes TabPages on Linux sometimes
8969           having none or multiple focus rectangles.
8970         * XplatUIX11.cs (SetFocus): 
8971           - Don't set the focus if the same window already has focus
8972           - Use SendMessage instead of PostMessage (like it's Win32
8973             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
8974             to match MS behaviour
8975         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
8976           are not selectable.
8978 2006-03-07  Jackson Harper  <jackson@ximian.com>
8980         * PictureBox.cs: Revert line I accidently committed last week.
8982 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
8984         * Control.cs: 
8985           - Added new IsRecreating and ParentIsRecreating properties to
8986             allow testing if RecreateHandle has been called on ourselves
8987             or one of our parents
8988           - WndProc(WM_DESTROY): If our control handle is being recreated
8989             we immediately need to create the handle when receiving the
8990             destroy, that way our child windows find a valid parent handle
8991             when they themselves are being recreated upon WM_DESTROY receipt
8992             (fix for bug #77654 part 1)
8993         * XplatUIX11.cs:
8994           - DestroyWindow: WM_DESTROY must be sent to our own window before
8995             notifying any child windows. MS documents that child windows
8996             are still valid when WM_DESTROY is received. (Control now relies on
8997             this behaviour)
8998           - Added some fine-grain debug options
9000 2006-03-06  Jackson Harper  <jackson@ximian.com>
9002         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
9003         box and base calculations off this.
9004         * MdiChildContext.cs:
9005         * MdiWindowManager.cs: Don't need to ensure scrollbars here
9006         anymore.
9007         
9008 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
9010         * Splitter.cs: In situations where the affected control is added
9011           to the parent's control list after the splitter, we would not
9012           populate affected. Now we try populating it on mousedown, if
9013           it's not already set, and force it to be re-set whenever our
9014           parent changes.
9016 2006-03-03  Matt Hargett  <matt@use.net>
9018         * Control.cs: implement Control.Padding
9019         * Padding.cs: -Padding.All returns -1 when constructing with the
9020         implicit default ctor
9021         -Padding.ToString() matches MS.NET
9022         * ContainerControl.cs: implement
9023         ContainerControl.AutoScaleDimensions
9024         * ListControl.cs: implement ListControl.FormattingEnabled
9025         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
9026         * ButtonBase.cs:
9027         * TabPage.cs: Implement UseVisualStyleBackColor.
9028         * PictureBox.cs: Implement PictureBox.InitialImage.
9030 2006-03-03  Mike Kestner  <mkestner@novell.com>
9032         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
9033         event declarations to proxy to base event.
9034         * ListViewItem.cs: update to use ItemControl.
9035         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
9036         * ThemeWin32Classic.cs: update to new ListView theme API and fix
9037         column header label rendering for 0 width columns.
9039 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
9041         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
9042           that causes the control to be created. Fixes #77476.
9044 2006-03-02  Jackson Harper  <jackson@ximian.com>
9046         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
9047         expose_pending.
9049 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
9051         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
9052           passed in for the EventArgs (fixes #77690)
9054 2006-03-01  Jackson Harper  <jackson@ximian.com>
9056         * ScrollBar.cs: Refresh afterbeing resized.
9058 2006-02-28  Mike Kestner  <mkestner@novell.com>
9060         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
9061         Clean up a tracker compile warning.
9062         * MenuItem.cs: add internal PerformPopup method.
9063         [Fixes #77457]
9065 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
9067         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
9068           implicit expose) when the text is set to null
9070 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
9072         * RichTextBox.cs (FlushText): When newline is true, we always
9073           need to split the line, even if no text is on it and we may
9074           never eat newlines. (Fixes #77669)
9076 2006-02-28  Mike Kestner  <mkestner@novell.com>
9078         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
9079         and set Selected instead.
9080         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
9081         collections.
9083 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
9085         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
9087 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
9089         * FontDialog.cs:
9090           - Got rid of the panel. All controls are now directly added to
9091             the dialog form
9092           - It is now possible to set a font with the Font property
9093           - MinSize and MaxSize property do now what they should
9094           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
9095           - Searching and selecting a font with the font textbox works now,
9096             the same applies to the style and size textbox
9097           - Draw the correct 3D border in the example panel
9098           - Fixed a little mem leak (unused fonts didn't get disposed)
9099           - Many other internal updates/rewrites...
9100           - Fix typo
9102 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
9104         * TextControl.cs: 
9105           - InsertRTFFromStream: Added 'number of characters inserted' argument
9106           - set_SelectedRTF: Now using the number of characters to calculate
9107             the new location for the selection and cursor (x/y cannot be used
9108             due to potentially already wrapped text)
9110 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
9112         * TextControl.cs: Added property and implemented means to allow 
9113           disabling recalculation of a document (can be used to speed up
9114           multiple inserts and is needed to make RTF inserts predictable, see
9115           bug #77659)
9116         * RichTextBox.cs: Using the new NoRecalc property of Document to
9117           keep x/y insert locations predictable. Also makes it faster inserting
9118           large chunks of RTF
9120 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
9122         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
9123           it's easier for a child control to handle the other messages without
9124           having to duplicate the special functionality
9125         * TextBoxBase.cs
9126           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
9127             code to handle processing the key ourselves, in order to get 
9128             access to the result of KeyEventArgs.Handled. We now only call 
9129             ProcessKey if they key hasn't been handled already. Fixes #77526.
9130           - set_Text: If null or empty string is given, just clear the 
9131             document. Fixes part of #77526
9133 2006-02-27  Jackson Harper  <jackson@ximian.com>
9135         * SizeGrip.cs: Paint the background color before painting the grip
9136         so things look right.
9137         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
9139 2006-02-27  Mike Kestner  <mkestner@novell.com>
9141         * ListView.cs:
9142           - Restructure layout and invalidation model to remove a ton of
9143           flicker from the control and speed up performance in general.
9144           - Add manual column resize, flickers like crazy, but I already have
9145           some ideas on how I'll fix that. (#76822)
9146           - Merge the three Icon-based views into a single layout method.
9147           - Move item selection interaction logic from the item since 
9148           interaction with the collections is more appropriate to the view.
9149           - Deselection on non-item clicks.
9150         * ListViewItem.cs:
9151           - Encapsulate most of the layout. Add some internal props to trigger
9152           layout.  Move to a model where Items invalidate themselves instead
9153           of just invalidating the whole control every time something changes.
9154           - Invalidate on Text/Caption changes.
9155           - switch to an offset based layout model to avoid having to absolute
9156           position every element on item moves.
9157           - correct checkbox layout to conform to MS layout.
9158         * ThemeWin32Classic.cs:
9159           - refactor some column header drawing code.
9160           - fix string justification for column headers (#76821)
9161           - make SmallIcon labels top justified for compat with MS impl.
9162         * ThemeClearlooks.cs:
9163           - adjust to new ListViewItem internal checkbox bounds api.
9165 2006-02-27  Jackson Harper  <jackson@ximian.com>
9167         * Control.cs:  Change where implicit controls fall in the zorder.
9168         They are now on top of all children.
9169         - Synced AddImplicit code with Add
9170         - Removed unused enumerator.
9171         * SizeGrip.cs: Remove the TODO as its been TODONE.
9173 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
9175         * TextControl.cs(Insert): Combine the last lines unless the insertion
9176           string ends with \n\n, otherwise we leave one line too many (Fixes
9177           something I noticed with the testapp for #77526; the bug itself was
9178           already fixed in the previous checkin)
9180 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
9182         * RichTextBox.cs:
9183           - SelectionColor and SelectionFont methods no longer set absolute
9184             styles. Instead, the keep font or color respectively (This 
9185             resolves a long-standing FIXME in the code)
9186           - When flushing RTF text, the insert code now considers text trailing
9187             behind the insertion point (Fixes the bug where when replacing
9188             the selected text via SelectedRTF the remainder of the line behind 
9189             the selection would stay on the first insertion line)
9190         * TextBoxBase.cs:
9191           - AppendText now updates the selection points after inserting text
9192           - AppendText now ensures that the last tag (sometimes 0-length) of
9193             the document is used for the style information (Fixes part of 
9194             bug #77220)
9195         * TextControl.cs:
9196           - Created new FontDefiniton class to allow describing partial style
9197             changes
9198           - StreamLine() now takes a lines argument, to allow it to decide
9199             whether an encountered zero-length tag is the last in the document
9200             (which must be kept to not loose the font/color contained in it,
9201             for later appends)
9202           - Created Combine() and Split() methods for Marker structs, to 
9203             support marker updates due to reformatted documents (soft line
9204             wraps)
9205           - Implemented Document.CaretTag setter
9206           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
9207             of the last line (Not the cause, but also exposed by bug #77220)
9208           - Added LineTag argument to InsertString method, to allow callers
9209             to force a certain tag to be used (required to force use of the
9210             trailing zero-length tag of a document)
9211           - Now updating markers in Combine(), to avoid stale tag markers
9212           - Added some method descriptions to aid maintenance
9213           - Implemented new FormatText concept, allowing additive/subtractive
9214             formatting by only specifying the components that are to be 
9215             changed. This was needed for resolving the RTB.SelectedColor/
9216             RTB.SelectedFont fixmes
9217           - Added Break() support method to allow breaking up linetags (used
9218             for partial formatting)
9219           - Added GenerateTextFormat() method. It is used for partial 
9220             formatting and allows to generate a full font/color from given
9221             attributes and an existing tag.
9223 2006-02-26  Jackson Harper  <jackson@ximian.com>
9225         * XplatUIX11.cs:  Use the correct caption height.
9226         - Translate hittest coordinates to screen coords to match MS.
9227         * XplatUIWin32.cs: When we create MDI windows we need to reset
9228         some of the style flags, so we get a nice blank window, and can
9229         draw all the decorations ourselves.
9230         - Set a clipping rectangle on the non client paint event, the
9231         window manager drawing code needs one.
9232         * Form.cs: The window manager needs to know when the window state
9233         has been updated.
9234         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
9235         don't need to factor in border and title sizes in these
9236         methods. TODO: Remove the args and fix the call points.
9237         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
9238         properly.
9239         - Let the driver set the cursors.
9240         - Improve active window handling
9241         - Correct sizes for title bars and buttons.
9242         - Match MS drawing better
9243         * MdiWindowManager.cs: We don't need to handle border style
9244         updates specially anymore.
9245         - Check for scrollbars when windows are done moving
9246         - Handle Active properly.
9247         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
9248         correctly. I am spewing the exception though, so we don't hide the
9249         bugs.
9250         
9251 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
9253         * DataGridViewRowPostPaintEventArgs.cs,
9254           DataGridViewCellPaintingEventArgs.cs,
9255           DataGridViewRowCollection.cs,
9256           DataGridViewRowPrePaintEventArgs.cs,
9257           DataGridViewCell.cs: Clear a few warnings and implement a few
9258           exceptions that should be thrown.
9260 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
9262         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
9263           'inheriting' our parent's (non-default) cursor. (Part of
9264            the fix for #77479)
9266 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
9268         * XplatUIX11.cs: Fixed cast to make csc happy
9270 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
9272         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
9273           it's for the client area (part of fix for #77479 and needed
9274           for MDI window cursor handling)
9275         * XplatUIX11.cs
9276           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
9277             the appropriate default cursors and also passing the message
9278             up the parent chain 
9279           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
9280             for non-client areas
9282 2006-02-15  Jackson Harper  <jackson@ximian.com>
9284         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
9285         is a real MDI window
9287 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
9289         * X11DesktopColors.cs: Instead of checking the desktop session
9290           string for "KDE" check if it starts with "KDE"
9292 2006-02-10  Jackson Harper  <jackson@ximian.com>
9294         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
9295         systems).
9297 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
9299         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
9300           errors
9301         * ColorDialog.cs:
9302           - Got rid of the panel. All controls are now directly added to
9303             the dialog form
9304           - Changed to mono coding style
9306 2006-02-10  Jackson Harper  <jackson@ximian.com>
9308         * InternalWindowManager.cs: We don't need the set visibility to
9309         false hack anymore now that peter has written beautiful shutdown
9310         code.
9312 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
9314         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
9315           where already explicitly destroyed
9317 2006-02-10  Jackson Harper  <jackson@ximian.com>
9319         * MdiClient.cs: Handle the case where windows are too high or to
9320         the left and we need scrollbars.
9322 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
9324         * MimeIcon.cs: Added some icons
9325         * FileDialog.cs:
9326           - Fixed bug #77477
9327           - Got rid of the panel. All controls are now directly added to
9328             the dialog form
9329           - Changed to mono coding style
9330           - On Linux "My Computer" and "My Network" will now show some
9331             more usefull information. A new class, MasterMount, gathers
9332             this information from /proc/mount. Updated MWFFileView to make
9333             use of this information
9334           - Fixed a bug that caused FileDialog to crash when
9335             ".recently_used" file had a zero size
9336           - FilterIndex does now what it should
9337           - Some Refactoring
9338         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
9339             FileDialog changes
9341 2006-02-09  Jackson Harper  <jackson@ximian.com>
9343         * ComboBox.cs: Don't touch if null.
9345 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
9347         * Cursor.cs: 64bit safeness fix
9348         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
9350 2006-02-09  Jackson Harper  <jackson@ximian.com>
9352         * Form.cs: If a form is made into an MDI form update the styles so
9353         all the props can get set correctly.
9354         - Kill the mdi_container when we dont need it anymore.
9355         * InternalWindowManager.cs: Add missing NOT
9357 2006-02-08  Jackson Harper  <jackson@ximian.com>
9359         * InternalWindowManager.cs: Respek clipping when drawing MDi
9360         decorations.
9362 2006-02-08  Jackson Harper  <jackson@ximian.com>
9364         * Hwnd.cs: Add bits to track non client expose events.
9365         * XplatUIX11.cs: Track non client expose events on the hwnd. This
9366         gives us a proper invalid rect and will allow for some nice
9367         optimizations with NC client drawing
9368         - MDI windows are children windows, so move their style handling
9369         into the child window block.
9370         * InternalWindowManager.cs: Remove a state reset that was
9371         getting invoked at the wrong time. Fixes managed windows getting
9372         into a 'stuck' captured state.
9374 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9376         * TextControl.cs (Document.ctor): Now initializing 
9377           selection_anchor. Fixes #77493
9379 2006-02-07  Jackson Harper  <jackson@ximian.com>
9381         * TrackBar.cs: The increment/decrements were backwards.
9383 2006-02-07  Mike Kestner  <mkestner@novell.com>
9385         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
9386         to the instance itself.
9388 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9390         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
9391           on ulongs and pointers, the size differs between 32bit and 64bit
9392           systems. 
9394 2006-02-07  Mike Kestner  <mkestner@novell.com>
9396         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
9397         for 64 bit platforms to work around a metacity bug. 
9399 2006-02-07  Jackson Harper  <jackson@ximian.com>
9401         * TrackBar.cs: Process the input keys we need, and hookup to
9402         KeyDown instead of using WndProc, so we get key messages.
9404 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
9406         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
9407           machine we're on. 
9408         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
9409           we need to translate the XdndVersion atoms array before sending it
9411 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
9413         * XplatUIX11.cs: 
9414           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
9415             number of bits for the property, not the number of bytes. The
9416             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
9417             but would not crash since it specified 8 bits instead of 4 bits)
9418           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
9419             defined as XID -> long in the C headers)
9420           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
9421             references since those are now IntPtr to begin with
9422           - Switched all Atom.XXX 'int' casts to IntPtr casts
9423           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
9424           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
9425           - Added XChangeActivePointerGrab DllImport (for X11DnD)
9426         * X11Structs.cs:
9427           - Changed 'int' type for Atoms in XEvent structures to IntPtr
9428           - Changed atom in HoverStruct to be IntPtr
9429         * X11DnD.cs:
9430           - Removed local DllImports, switched code to use those from XplatUIX11
9431           - Removed/fixed casts related to the switch of Atom to be a IntPtr
9433 2006-02-06  Mike Kestner  <mkestner@novell.com>
9435         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
9436         method signatures in the import region.  There may still be some
9437         lingering struct marshaling issues, as I didn't drill down into those.
9438         Yet.
9440 2006-02-06  Jackson Harper  <jackson@ximian.com>
9442         * ComboBox.cs: Dont manually set the top_item, this is computed
9443         when the scrollbar position is set.
9445 2006-02-06  Mike Kestner  <mkestner@novell.com>
9447         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
9448         startup crashes on amd64.  There's other fixes needed.  All pinvoke
9449         usage of Atom needs to be mapped to IntPtr for example.  And there are
9450         likely other int/long issues to be addressed.
9452 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
9454         * FileDialog.cs: One more...
9456 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9458         * FileDialog.cs: Next try
9460 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9462         * FileDialog.cs: First part of fix for #77464
9464 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9466         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
9467           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
9468           AcceptButton border drawing.
9470 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
9472         * Form.cs: Moved positioning of form after auto scaling is applied,
9473           otherwise it would possibly use wrong form size.
9475 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
9477         * Control.cs (RecreateHandle): No need to re-create any child
9478           controls, the child windows will get destroyed automatically by
9479           the windowing system or driver, and re-created when the handle
9480           is being accessed the first time. Fixes #77456
9481         * Form.cs: No longer setting the form to closing if the handle is 
9482           being recreated. This seems like the right thing to do, don't
9483           have a bug or testcase for this, though.
9485 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9487         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
9488           controls to avoid unwanted side effects
9490 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
9492         * Control.cs: 
9493           - ScaleCore needs to scale the bounds, not the ClientSize of the 
9494             control. Fixes #77416.
9495           - DefaultSize is 0,0 for control
9496         * TextBoxBase.cs: 
9497           - DefaultSize is 100, 20
9498           - SetBoundsCore: Now enforcing the height, no matter if the provided
9499             height is more or less than the preferred one, as long as AutoSize
9500             is on
9501         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
9503 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9505         * Control.cs:
9506           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
9507             call unless both performLayout is true *and* we have a pending
9508             layout change
9509           - ResumeLayout: MS does not completely nest Suspend and Resume,
9510             they bottom out at 0, fixed our code to match that.
9511           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
9512             SetBoundsCore, we were updating even when we shouldn't. This fixes
9513             swf-anchors mis-anchoring when resizing the app fast and lots.
9514           - UpdateDistances: Now only setting the left and top distance if 
9515             we have a parent and are not suspended, this is based on
9516             a suggestion by Don Edvaldson in bug #77355.
9517           - OnVisibleChanged: Fixed logic when to create the control. We may
9518             not create the control if we have no parent or if it's not visible;
9519             switched to using Visible property instead of is_visible field 
9520             since the property also considers parent states. This fixes a bug
9521             when starting Paint.Net
9523 2006-02-02  Jackson Harper  <jackson@ximian.com>
9525         * Form.cs: If the forms handle hasn't been created yet don't call
9526         into xplatui to make it top most, just set the topmost flag on the
9527         form in CreateParams
9528         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
9530 2006-02-01  Jackson Harper  <jackson@ximian.com>
9532         * ScrollableControl.cs: Refactored the Recalculate method a
9533         little, this wasn't handling all the variants of bottom and right
9534         bars needed to be added and added/removed based on their
9535         counterparts being added/removed (which changes the drawable
9536         size). Also we special case client widths and heights of 0 and
9537         don't add the scrollbar for those.
9539 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
9541         * XplatUIX11.cs: 
9542           - Added method to get AbsoluteGeometry(); currently unused, but might
9543             be used in the future, if we try again to figure out toplevel
9544             coordinates with some more crappy window managers
9545           - Added FrameExtents() method to retrieve the WM set decoration size
9546           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
9547             to deal with at least KDE, FVWM and metacity (Fixes #77092)
9548         * Hwnd.cs: 
9549           - Added whacky_wm tracking var for metacity
9550           - Added logic to have default menu height if the actual menu height
9551             has not yet been calculated (part of fix for #77426)
9552         * Form.cs: Keep track whether client size has been set and re-set 
9553           it if a menu is added/removed afterwards (Fixes #77426)
9555 2006-01-31  Jackson Harper  <jackson@ximian.com>
9557         * Control.cs: When a new Site is set on the component attempt to
9558         pull the AmbientProperties from it.
9560 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
9562         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
9563           in the background of the owning form. Fixes #77332
9565 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9567         * MimeIcon.cs: Fix for #77409
9569 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9571         * XplatUIX11GTK.cs: Initial import
9573 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
9575         * FixedSizeTextBox: fixes class signature
9577 2006-01-30  Jackson Harper  <jackson@ximian.com>
9579         * FixedSizeTextBox.cs: New internal class that represents a
9580         textBox that will not be scaled.
9581         * TreeView.cs:
9582         * ComboBox.cs:
9583         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
9584         standard TextBox.
9585                 
9586 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
9588         * XplatUIX11.cs: Retrieve default screen number instead of
9589           assuming 0. Attempted fix for #77318
9591 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
9593         * XplatUIWin32.cs: 
9594           - GetWindowPos: When a window is parented by FosterParent, use 
9595             the desktop instead of FosterParent as the base to get coordinates
9596           - CreateWindow: Don't make FosterParent the parent window for Popups
9597             if we don't want a taskbar entry, Popups automatically don't get one
9598         * Hwnd.cs: Need to call remove to actually remove the key from the
9599           hash table
9601 2006-01-30  Mike Kestner  <mkestner@novell.com>
9603         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
9605 2006-01-30  Jackson Harper  <jackson@ximian.com>
9607         * TreeView.cs:
9608         * TreeNode.cs: Raise events no matter how the treenode is
9609         checked. Patch by Don Edvalson.
9611 2006-01-30  Jackson Harper  <jackson@ximian.com>
9613         * TreeNode.cs: Signature fix.
9615 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
9617         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
9619 2006-01-20  Mike Kestner  <mkestner@novell.com>
9621         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
9622         event forwarding when menus are active.
9623         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
9624         Most of the patch is pdb's with a little rework.
9626 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9628         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
9629           Removed GetMenuDC and ReleaseMenuDC methods; replaced
9630           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
9631         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
9632         * InternalWindowManager.cs: Added use of PaintEventStart/End to
9633           handling of WM_NCPAINT message, now passing the PaintEventArgs to
9634           the PaintWindowDecorations method
9635         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
9636         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
9637         * MenuAPI.cs: Made tracker window invisible
9638         * XplatUIWin32.cs:
9639           - Removed GetMenuDC and ReleaseMenuDC methods
9640           - Implemented the client=false path for PaintEventStart and
9641             PaintEventEnd
9643 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9645         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
9646         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
9647           styles
9648         * Form.cs: 
9649           - MaximizeBox, MinimizeBox: Recreate the handle when setting
9650             the style
9651           - CreateParams: Reworked the styles to match MS look'n'feel,
9652             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
9653             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
9655 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9657         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
9658           window is not mapped, since otherwise every form that's being 
9659           created is considered minimized, which is wrong.
9660         * Form.cs: Catching the exception and returning our internal value
9661           instead
9663 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9665         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
9666           SetWindowMinMax() to have means to tell the driver about the minimum,
9667           maximum and maximized state window sizes. (Part of the fix for #76485)
9668         * Form.cs:
9669           - Implemented tracking of minimum and maximum window size, now calling
9670             new SetWindowMinMax() driver method to tell the driver (Part of the
9671             fix for #76485)
9672           - Finished handling of WM_GETMINMAXINFO method, now setting all values
9673             (Completes fix for #76485)
9674           - Calling new SetWindowMinMax driver method when the handle for a 
9675             form is created, to make sure the driver knows about it even if
9676             the values have been set before the window was created
9677           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
9678             to avoid messing up our anchoring calculations (partial fix
9679             for #77355)
9680         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
9681         * XplatUIX11.cs:
9682           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
9683           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
9684             (and presumably other freedesktop.org compliant WMs). Left the
9685             assumption unmapped=minimized, needed for SetVisible to work.
9686           - Now setting the window state when creating windows
9687           - Fixed SetVisible to consider/set the window state when mapping
9688             a Form. We cannot set the state before it's mapped, and we cannot
9689             use Form.WindowState once it's mapped (since it would ask the
9690             driver and get 'normal'. Therefore, we grab the state before
9691             mapping, map, and then set state.
9692           - Implmemented SetWindowMinMax method; Metacity does not seem to
9693             honor the ZoomHints, though.
9694         * XplatUIWin32.cs:
9695           - Removed MINMAXINFO (moved to XplatUIStructs)
9696           - Added SetWindowMinMax stub (on Win32 the only way to set that
9697             information is in response to the WM_GETMINMAXINFO message, which
9698             is handled in Form.cs)
9699           - Added logic to SetVisible to set the proper window state when a 
9700             form is made visible (fixes #75720)
9702 2006-01-26  Jackson Harper  <jackson@ximian.com>
9704         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
9705         same way we handle them with Invoke.
9707 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
9709         * Form.cs:
9710           - Added tracking of window state so CreateParams can return
9711             the appropriate style
9712           - Moved setting of WS_CAPTION style in CreateParams to allow
9713             styles without caption
9714         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
9715           control if the TextBox property is accessed. Fixes #77345
9716         * Control.cs:
9717           - get_Created: now uses is_disposed and is_created to determine
9718             return value (suggested by Jackson)
9719           - CreateHandle: No longer exits if the handle is being recreated
9720           - RecreateHandle: If the handle is not yet created call the 
9721             appropriate method to create either control or handle. If the
9722             control is already created CreateHandle will simply exit instead
9723             of just creating the handle
9724         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
9725           now SendMessage WM_DESTROY directly to the control when DestroyWindow
9726           is called.
9727         * XplatUIX11.cs: 
9728           - When DestroyWindow is called, instead of waiting for the 
9729             DestroyNotification from X11, we directly post it to the WndProc
9730             and immediately dispose the hwnd object.
9731             Same applies to DestroyChildWindows, and this obsoletes the
9732             expose_pending tracking. Contrary to Win32 behaviour we destroy our
9733             child windows before our own, to avoid X11 errors.
9734           - Removed the direct sending of WM_PAINT on UpdateWindow
9735         * XplatUIWin32.cs:
9736           - Reworked DoEvents and GetMessage to allow access to internal queue
9737             even when trying non-blocking access to the queue.  Fixes #77335. 
9738             Based on a patch suggestion by Don Edvalson. The new private
9739             GetMessage can now also be used as a backend for a PeekMessage
9740             frontend version.
9741         * XplatUI.cs: Improved debug output for CreateWindow
9743 2006-01-25  Jackson Harper  <jackson@ximian.com>
9745         * Help.cs: Allow param to be null. Patch by Don Edvalson.
9747 2006-01-24  Jackson Harper  <jackson@ximian.com>
9749         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
9750         when we have a MaxDropItems lower then the selected index.
9752 2006-01-24  Jackson Harper  <jackson@ximian.com>
9754         * Control.cs: Don't allow selection of non visible controls, allow
9755         selection of controls without parents.
9757 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9759         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
9760         * DataGridDrawingLogic.cs: Add editing row only when is necessary
9762 2006-01-23  Jackson Harper  <jackson@ximian.com>
9764         * UpDownBase.cs: Make the textbox handle all the selection and
9765         tabbing. This fixes tabing to updown controls.
9767 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9769         * TextBoxBase.cs: fixes exception thown the object was null
9771 2006-01-23  Jackson Harper  <jackson@ximian.com>
9773         * ButtonBase.cs: Just use the base CreateParams. They set
9774         visibility and enabled correctly.
9775         * ComboBox.cs:
9776         * TrackBar.cs:
9777         * MonthCalendar.cs: Lets let the base set as much of the
9778         createparams as possible so we don't have duplicate code all over
9779         the place.
9781 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
9783         * ThemeGtk.cs: Added TrackBar and some experimental code to
9784           get double buffering back
9786 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
9788         * DataGrid.cs: Allows row number set internally higher than the last
9789         when creating a new row. Restores the editing functionality.
9791 2006-01-20  Mike Kestner  <mkestner@novell.com>
9793         * MimeIcon.cs: delay Image creation until the icons are accessed
9794         instead of creating 190 scaled images on GnomeHandler startup.
9796 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
9798         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
9799           first call base before processing the event. Fixes #77279
9801 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
9803         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
9804           that the stride for the GDI bitmap would match the stride of
9805           a DIB or a Cursor.
9807 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
9809         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
9811 2006-01-19  Jackson Harper  <jackson@ximian.com>
9813         * ComboBox.cs: Hookup the text controls keydown event so we get
9814         those when the text control has the focus.
9816 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9818         * Label.cs: Now using the base events instead of defining new ones;
9819           this allows us to just call the base properties without having to
9820           duplicate all base property logic 
9822 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9824         * Label.cs: A label by default is not a tabstop (Fixes one of our
9825           failing nunit tests)
9827 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9829         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
9830         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
9832 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9834         * Cursor.cs: Reimplemented creating cursor bitmaps without using
9835           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
9836           This fixes #77218
9837         * XplatUIWin32.cs: 
9838           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
9839             constructor creates images that can't be saved. Part of the fix
9840             for #76103
9841           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
9842           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
9843             bug fix for handling window state in forms properly)
9845 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9847         * ThemeGtk.cs: Simplify ScrollBar drawing
9849 2006-01-18  Jackson Harper  <jackson@ximian.com>
9851         * Splitter.cs: Set the default dock style for the splitter control
9852         in the constructor.
9854 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9856         * ThemeGtk.cs: Corrected StateType and ShadowType for
9857           gtk_paint_box
9859 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9861         * Control.cs: Make use of Theme.DoubleBufferingSupported
9862         * ThemeGtk.cs:
9863           - Added drawing for flat style buttons
9864           - Added ScrollBar drawing
9866 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9868         * ThemeClearlooks.cs: Removed some unneeded code.
9869         * ThemeGtk.cs: First part of ThemeGtk enhancements.
9871 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9873         * LinkLabel.cs: We need to update the hover drawing when
9874           leaving the control as well.
9876 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
9878         * DataGrid.cs: Clicking on non empty areas in the columns
9879            area was giving an exception
9881 2006-01-17  Jackson Harper  <jackson@ximian.com>
9883         * ThemeWin32Classic.cs:
9884         * ListView.cs: Do not draw/clip the headers when the header style
9885         is None.
9887 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9889         * DataGrid.cs: Fixes 77260
9890         
9891 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9893         * DataGrid.cs: Clicking on a column on a empty grid was giving
9894           an exception
9896 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9898         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
9899           or any keypress will crash the grid.
9901 2006-01-17  Mike Kestner  <mkestner@novell.com>
9903         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
9904         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
9905         invisible/previously-visible items.
9906         [Fixes #76909]
9908 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
9910         * ThemeClearlooks.cs:
9911         - Added CL_Draw_Button method; now other theme controls that are 
9912           not derived from button or do not have a button can draw buttons
9913           too
9914         - Updated ComboBox drawing
9915         - Beautified RadioButton drawing
9916         - Corrected drawing of bottom and left tabs
9917         - Beautified DateTimePicker and MonthCalendar
9918         - Added CPDrawButton and CPDrawRadioButton
9920 2006-01-16  Jackson Harper  <jackson@ximian.com>
9922         * ComboBox.cs: Set the initial value of the scrollbar to the
9923         current index. Reduce the numbers of refreshs and IndexOfs called.
9925 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
9927         * FileDialog.cs: When the file listview is focused hitting the
9928           backspace key moves the fileview to the parent directory
9930 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9932         * Form.cs: 
9933           - Added RecreateHandle call when changing taskbar visibility to 
9934             trigger reparenting in Win32 driver (Fixes #75719)
9935           - If a window has minimize or maximize buttons, it cannot have
9936             a help button
9937         * XplatUIWin32.cs:
9938           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
9939             the toplevel form with FosterParent (A toolwindow not on the
9940             taskbar) (Fixes #75719)
9941           - Made FosterParent a toolwindow
9943 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9945         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
9947 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9949         * ToolTip.cs: If SetToolTip is called from a control and the mouse
9950           is currently over that control, make sure that tooltip_window.Text
9951           gets updated
9953 2006-01-13  Mike Kestner  <mkestner@novell.com>
9955         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
9957 2006-01-13  Jackson Harper  <jackson@ximian.com>
9959         * TreeView.cs: On MS GetNodeAt never actually factors in the X
9960         value passed.  Also redraw the selected node when we recieve
9961         focus, so tabbing between trees works correctly.
9963 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9965         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
9966           ~/.gconf/%gconf-tree.xml, so use
9967           .gconf/desktop/gnome/interface/%gconf.xml
9969 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9971         * TextControl.cs: Draw text in gray if control is disabled
9973 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9975         * TreeView.cs: Draw the focus rectangle outside the highlight, to
9976           make sure it's always visible. Fixes #76680.
9978 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9980         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
9982 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
9984         * PageSetupDialog.cs: Added.
9985         * PrintDialog.cs: Attributes.
9986         * PrintPreviewControl.cs: Updates.
9987         * PrintPreviewDialog.cs: Updates.
9988         
9989 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9991         * Control.cs: Undid my selection check fix, since it's not needed
9992         * TextBoxBase.cs:
9993           - Now considering the presence of hscroll/vscroll when sizing
9994             vscroll/hscroll respectively. Fixed bug #77077
9995           - Added Left/Up/Down/Right to IsInputKey list to prevent
9996             ContainerControl from stealing them. This fixes what I broke
9997             with my last checkin.
9999 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
10001         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
10002           I finally understand how the property can be set without a setter :-)
10004 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10006         * Application.cs:
10007           - Switched RunLoop to use static Message.Create to create a 
10008             Message object
10009           - Added PreProcessMessage call in runloop for keyboard events; this
10010             is part of the fix for #77219, I overlooked this originally in the
10011             MSDN doc for PreProcessMessage
10012         * Control.cs:
10013           - Removed call to PreProcessMessage from handling of keyboard 
10014             messages; it's supposed to be done in the message pump
10015           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
10016             per MSDN documentation.
10017           - IsInputChar: All chars are input chars by default; removed the 
10018             parent calling chain, MS does not document that
10019           - PreProcessMessage: If IsInputChar is true, we want to return false
10020             to allow dispatching of the message
10021           - When selecting the next control, now also check that we're not
10022             selecting ourselves again and therefore return a false positive.
10023         * TextBoxBase.cs:
10024           - Tried to match return values for IsInputKey and ProcessDialogKey
10025             to what MS returns; moved processing of our special keys outside
10026             ProcessDialogKey since MS does not seem to return true on those.
10027           - Moved code that previously was in ProcessDialogKey into new private
10028             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
10029           - Reworked handling of WM_CHAR to not have to duplicate code from
10030             Control.cs anymore, instead we simply call down to base.
10031            
10032 2006-01-12  Jackson Harper  <jackson@ximian.com>
10034         * ComboBox.cs: We always need to refresh the text area when
10035         EndUpdate is called. Fixes the combobox in the file dialog.
10036         * Control.cs: Don't create the creator_thread until the controls
10037         handle is created.  Also in InvokeRequired we check if the
10038         creator_thread is null. This gives the effect of InvokeRequired
10039         returning true if the controls handle is not created yet, and
10040         matches MS.
10042 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10044         * XplatUI.cs:
10045           - Added StartLoop() driver method. This is used to allow drivers to
10046             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
10047             loop for a particular thread
10048           - Added EndLoop() driver method. This is called once the message
10049             pump for the thread is shut down
10050           - Added SupportsTransparency method to allow the driver to indicate
10051             opacity support for windows
10052         * Form.cs:
10053           - Removed TODO attribute, completed AllowTransparency property
10054           - Added documented logic to Opacity
10055         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
10056           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
10057           versions of CompatibleTextRendering
10058         * X11Structs.cs: Added opacity atom to our atom enumeration
10059         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
10060           of a form might be set before it's reparented by the WM, and we need
10061           the opacity value without calling up to Form)
10062         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
10063           SupportsTransparency() driver methods
10064         * Application.cs: Now calling StartLoop and EndLoop driver methods
10065         * XplatUIX11.cs:
10066           - Added opacity atom registration
10067           - Added StartLoop()/EndLoop() methods. They're empty right now but
10068             will need to get implemented when we switch to a per-thread queue
10069           - Implemented SupportsTransparency() method
10070           - Implemented SetWindowTransparency() method
10071           - Added support for setting the opacity value when a window is
10072             reparented (since the opacity needs to be set on the WM frame)
10073         * XplatUIOSX.cs, XplatUIWin32.cs:
10074           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
10076 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
10078         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
10080 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
10082         * FileDialog.cs: Added ToolTip for MWFFileView
10083         * MimeIcon.cs: Rewrote GnomeHandler.
10084           - Get currently used gnome icon theme from
10085             ($HOME)/.gconf/%gconf-tree.xml
10086           - Make use of inherited icon themes
10087           - Support SVG icon themes like Tango via librsvg
10089 2006-01-12  Miguel de Icaza  <miguel@novell.com>
10091         Revert's Jackson's revert which broke 2.0 builds.   Fix both
10092         builds. 
10093         
10094         * Application.cs: Move the use_compatible_text_rendering outside
10095         the NET_2_0 define.  If we ever need to use the
10096         use_compatible_text_rendering on the individual controls they will
10097         access the variable from the common shared code paths.
10099 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
10101         * XplatUI.cs:
10102           - Added more granular debug options
10103           - Added method to print both window text and id
10104           - Switched debug output to use new Window() debug method
10105           - Added IsEnabled() driver method
10106           - Added EnableWindow() driver method
10107         * Form.cs:
10108           - Removed end_modal; no longer needed, new loop handles termination
10109             via 'closing' variable
10110           - If form is modal, setting DialogResult will now initiate loop
10111             termination via 'closing' variable
10112           - Added support for is_enabled/WS_DISABLED to CreateParams
10113           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
10114             does all the work
10115           - Removed code that's now in RunLoop from ShowDialog()
10116           - Added various documented sanity checks to ShowDialog()
10117           - Added handling of WM_DESTROY message; we set 'closing' on getting
10118             the message to indicate the message pump to terminate
10119           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
10120             send by the Application.ExitThread method. (We send the message
10121             to destroy the window after all other events have been
10122             processed through the queue, instead of destroying the handle 
10123             directly)
10124           - Moved code from Close() method to WM_CLOSE handler; added logic
10125             to only send close-related events if the form is not displayed
10126             modal
10127         * Splitter.cs (..ctor): Fixed typo in resource name
10128         * Control.cs:
10129           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
10130             brush now
10131           - set_Cursor: Now only setting calling into XplatUI if the handle for
10132             the control is already created; this avoids implict handle creation
10133             or crashes if it's not created
10134           - set_Enabled: Now setting the enabled state via the new driver method
10135             instead of just tracking it
10136           - CreateParams: Added logic to set WS_DISABLED based on enabled state
10137           - CreateControl: Reordered event firing and method calls to more
10138             closely fire events in the order MS does. Now setting the
10139             enabled state in the driver when creating the control.
10140           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
10141             match MS order
10142         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
10143           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
10144         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
10145         * Hwnd.cs:
10146           - Added tracking of window enabled state (get_Enabled/set_Enabled)
10147           - Added EnabledHwnd property to easily allow a driver to find the
10148             handle of the first enabled window in the parent chain (this is
10149             used by drivers to pass up input events of disabled windows)
10150         * XplatUIDriver.cs: Added IsEnabled() method
10151         * Application.cs:
10152           - Removed crude and obsolete exiting tracking variable
10153           - Removed internal ModalRun(); replaced by RunLoop()
10154           - Implemented private CloseForms() method to allow closing all 
10155             windows owned by a particular (or all) threads
10156           - Exit() now properly closes all windows without forcing the message
10157             pump to quit
10158           - Removed obsolete InternalExit() method
10159           - Changed Run() methods to use new RunLoop() message pump
10160           - Implemented new RunLoop() method for both modal and non-modal forms
10161         * CommonDialog.cs:
10162           - get_CreateParams: Added setting of WS_DISABLED
10163           - Simplified ShowDialog(); now all the work is done in RunLoop(),
10164             invoked via Form.ShowDialog()
10165         * NativeWindow.cs: We don't remove the window from the collection when
10166           the handle is destroyed; there might still be messages for it in the
10167           queue (mainly the resulting WM_DESTROY); instead it will be removed
10168           when Control calls InvalidateHandle in the WM_DESTROY handler
10169         * XplatUIX11.cs:
10170           - CreateWindow: Added logic to handle the WS_DISABLED window style
10171           - EnableWindow: Implemented based on Hwnd.Enabled
10172           - GetMessage: Reset PostQuitState so the method can be called again
10173           - Implemented support for disabled windows (passing messages to the
10174             first enabled parent) in handling all input messages
10175           - Added optimizations for handling Expose events
10176           - Implemeted new driver method IsEnabled()
10177           - Now always resetting paint pending tracking vars when we start paint
10178           - Re-implemented UpdateWindow via just sending a WM_PAINT message
10179         * XplatUIOSX.cs: Added IsEnabled method stub
10180         * XplatUIWin32.cs: Implemented new IsEnabled() method
10182 2006-01-11  Jackson Harper  <jackson@ximian.com>
10184         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
10185         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
10186         variables a little.
10187         * ColorDialog.cs: Clear out the old form before adding the new
10188         panel.  
10190 2006-01-11  Jackson Harper  <jackson@ximian.com>
10192         * X11Dnd.cs: Make sure to add all the text formats when adding
10193         strings to the data object.
10194         * TreeNodeCollection.cs: When adding to a sorted tree we need to
10195         do some redrawing too.  Also change the UpdateNode to an
10196         UpdateBelow so the newly added node gets painted.
10197         
10198 2006-01-11  Miguel de Icaza  <miguel@novell.com>
10200         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
10201         LinkLabel.cs, PropertyGrid.cs: Implement the
10202         UseCompatibleTextRendering property for 2.x
10204         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
10206 2006-01-11  Jackson Harper  <jackson@ximian.com>
10208         * TreeView.cs: Use the property for setting the selected node so
10209         the correct events get raised.
10210         * TreeNode.cs: Update the tree when the fore/back colours of a
10211         node are set.
10213 2006-01-10  Jackson Harper  <jackson@ximian.com>
10215         * TreeView.cs: Allow setting SelectedNode to null.
10217 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10219         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
10221 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10223         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
10225 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10227         * PrintDialog.cs: Added attributes and set default property values.
10229 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10231         * PrintControllerWithStatusDialog.cs: 
10232         Added PrintControllerWithStatusDialog.
10234 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10236         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
10237         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
10239 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
10241         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
10243 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10245         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
10246         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
10248 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
10250         * MimeIcon.cs: Added internal class SVGUtil.
10252 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
10254         * FileDialog.cs: Don't crash if there are two files with the
10255           same name but different locations.
10257 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
10259         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
10260         dates across multiple month grids. Used to not highlight entire 
10261         month, but does now.
10262         
10263 2006-01-06  Jackson Harper  <jackson@ximian.com>
10265         * MonthCalendar.cs: Removed DoEvents call to prevent a running
10266         message loop. Change timer intervals to numbers that seem more
10267         natural.
10269 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
10271         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
10272           object for location info since screen object is now implemented.
10274 2006-01-05  Jackson Harper  <jackson@ximian.com>
10276         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
10277         * AsyncMethodResult.cs: We no longer use a WeakReference for the
10278         AsyncMethodResult, this is because we ALWAYS want the
10279         ManualResetEvent to get set.
10280         * Control.cs: When disposing use an async invoke to call shutdown
10281         code, so that thigns don't block on the finalizer thread.  Also
10282         check if we even have a message loop before trying to send
10283         messages, if we don't then don't bother sending messages.
10284         - No more weak references for async methods
10285         * XplatUIDriver.cs: No more weak references for async methods.
10287 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10289         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
10290           returns two FontFamily with the same name
10292 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
10294         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
10295           drawing disabled text. Instead using the ColorGrayText color
10297 2006-01-04  Jackson Harper  <jackson@ximian.com>
10299         * TreeNode.cs: redraw the node when its image index is changed.
10301 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
10303         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
10304           time I checked there are no others like it.
10306 2006-01-04  Jackson Harper  <jackson@ximian.com>
10308         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
10309         this gives the behavoir I was looking for.
10310         * Control.cs: Special case Invoking EventHandlers, this matches MS
10311         and fixes part of bug #76326.
10313 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10315         * ThemeClearlooks.cs, FileDialog.cs:
10316           - Reflect the latest Theme class changes
10317           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
10318             with DateTime
10319             
10320 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10322         * Theme.cs: Cache UI resource images and resize them if needed
10324 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
10326         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
10327           is called. This fixes the crash in Nexxia when setting the font
10328           attributes in the chat. [However, RTF needs a look-over to make sure
10329           that all SelectionXXX methods handle the special case that selection
10330           is empty and therefore the change must be applied to all text starting
10331           at the cursor/selection start]
10333 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
10335         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10336           XplatUIOSX.cs: Added SendMessage and PostMessage methods
10337         * X11Keyboard.cs: Switched to new way of calling PostMessage
10339 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
10341         * Theme.cs: Added theme interface for images to allow the theme to
10342           control what images are used for things like FileDialog, MessageBox
10343           icons, etc.
10344         * MessageBox.cs: Now uses the new Theme icon/image interfaces
10346 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
10348         * FileDialog.cs:
10349           - Removed some dead code
10350           - Opening a recently used file does work now
10351           - Small UI enhancements
10352           - Refactoring
10354 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10356         * FileDialog.cs: Forgot too add __MonoCS__
10358 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10360         * FileDialog.cs: We are able to read recently used files now let's
10361           go on and write them.
10363 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
10365         * FileDialog.cs: Breathe some life into "last open"/"recently used"
10366           button
10367         * MimeIcon.cs: Do a check for the top level media type also
10369 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10371         * ThemeClearlooks.cs:
10372           - Added CPDrawStringDisabled
10373           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
10374             some chars if the text doesn't fit into text_rect
10375           - DrawListViewItem: If View = View.LargeIcon center the image;
10376             rewrote the drawing of ListViewItem.Text if View = 
10377             View.LargeIcon
10379 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10381         * MimeIcon.cs: Use default KDE icon theme if there is no
10382           "48x48" directory for the current icon theme, fixes #77114
10383         * Mime.cs: Disable not working and actually not used code. 
10384         * ThemeWin32Classic.cs:
10385           - Replace "new SolidBrush" in GetControlBackBrush and
10386             GetControlForeBrush with ResPool.GetSolidBrush
10387           - Changed DrawListViewItem from private to protected virtual
10388         * FileDialog.cs:
10389           - Added form.MaximizeBox = true
10390           - Don't throw an exception if there is a broken symbolic link
10392 2005-12-23  Jackson Harper  <jackson@ximian.com>
10394         * TabControl.cs: Give the panels focus, keyboard navigation is
10395         fixed so this works correctly now.
10396         - We need these key events also.
10397         * ToolBar.cs: Remove some of the poor mans double buffering.
10398         
10399 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
10401         * ComboBox.cs: The internal TextBox now returns the focus.
10403 2005-12-23  Jackson Harper  <jackson@ximian.com>
10405         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
10407 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10409         * Control.cs: Removed debug code
10410         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
10411           implicit children
10413 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
10415         * Control.cs: When creating the control, update the Z-order after
10416           all it's children are created, too. (Fixes nexxia not showing
10417           picturebox bug)
10419 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10421         * Control.cs: Do not update the anchoring distances if layout is
10422           suspended, instead do it once layout is resumed
10424 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
10426         * Control.cs: 
10427           - After many hours of debugging, for both Jackson and
10428             myself, it turns out that it helps to set the parent of a control
10429             if you want to actually see it onscreen. In the spirit of that
10430             discovery, we're now setting the parent of the control and
10431             it's children when the control's handle is created. This fix
10432             will make Lutz Roeder's Reflector run happily. 
10433           - now just creating the handle instead of the whole control when
10434             getting a graphics context for the control.
10436 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10438         * ScrollableControl.cs: When calculating the canvas, don't consider
10439           the scrollbar widths. Instead, predict if horizontal scrollbar
10440           will affect canvas when deciding on vertical display and vice versa.
10442 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10444         * RichTextBox.cs: Set default RTF font for documents that don't
10445           have a font table (Fixes #77076)
10447 2005-12-22  Jackson Harper  <jackson@ximian.com>
10449         * TextBoxBase.cs: It's difficult to do, but you can have an empty
10450         clipboard. This prevents a NullRef in that case.
10451         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
10452         clipboard. PRIMARY is for the currently selected text only. (We
10453         should implement PRIMARY at some point.
10455 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10457         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
10458           a Unicode function with a structure that was defined in Ansi way.
10459           This fixes #76942.
10461 2005-12-21  Jackson Harper  <jackson@ximian.com>
10463         * StatusBar.cs: Statusbar handles its fore/back colours on it's
10464         on. Because thats how it rolls. (and this avoids it using ambient
10465         colours).
10466         * ThemeWin32Classic.cs: Use the proper back color for filling.
10467         * Menu.cs: Use the system menu bar color for drawing menu
10468         bars. Using the window back color will bring ambient colours into
10469         the picture.
10471 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
10473         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
10474           Bitmaps were created and not disposed.
10476 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10478         * Control.cs (CreateControl): Don't do anything if the control is
10479           already created, otherwise we'd fire the OnCreated event more than
10480           once
10482 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10484         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
10485           will always match. Instead return -1. Fixes #76464.
10487 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10489         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
10490           neither the beginning nor the end of the line (Fixes bug #76479)
10492 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10494         * Control.cs:
10495           - ControlNativeWindow.ControlFromHandle(): Now handling situation
10496             where handle is invalid
10497           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
10498             instead of slower linear search
10499         * NativeWindow.cs: Don't remove the window from the hashtable until
10500           after the driver has destroyed it (since the driver might use
10501           Control.FromHandle to lookup the control object
10502         * Hwnd.cs: Added DestroyPending property to track if a window is 
10503           already destroyed as far as the driver is concerned and only hasn't
10504           yet notified the control
10505         * XplatUIX11.cs:
10506           - Activate(): Check if the window is still valid before using the 
10507             handle
10508           - Implemented DestroyChildWindow() method to mark child windows as
10509             destroyed when a window is destroyed. This prevents situations 
10510             where we might call an X method based on queued events for a
10511             window that already has been destroyed but we haven't yet pulled
10512             the destroy method from the queue.
10513           - Added a call to the new DestroyChildWindow() method to the drivers
10514             DestroyWindow code. Also now marking the destroyed window itself
10515             as pending
10517 2005-12-20  Jackson Harper  <jackson@ximian.com>
10519         * StatusBar.cs:
10520         * StatusBarPanel.cs: Don't calculate panel sizes on draw
10521         anymore. Just do them when needed, also track the rects of panels
10522         so that we can optimize refreshing more in the future.
10524 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
10526         * ColorDialog.cs: Fixed focus drawing in small color controls
10528 2005-12-19  Jackson Harper  <jackson@ximian.com>
10530         * InternalWindowManager.cs:
10531         * MdiWindowManager.cs: Cleanup some coordinate system changes so
10532         moving windows works properly.
10534 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
10536         * Control.cs: 
10537           - Removed call to InitLayout() from SetBoundsCore(); doc says
10538             it's only called when a control is added to a container
10539           - Split InitLayout logic, moved to separate UpdateDistances() method
10540             since we need to perform those calculations more often than just
10541             when adding the control to a container. (Needed to fix #77022)
10542           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
10543           - Reduced the OnBindingContextChanged events count, don't send them
10544             unless the control is created, we still aren't totally matching
10545             MS, but I can't quite figure out some of their rules
10547 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10549         * ThemeClearlooks.cs: Corrected distance between ProgressBar
10550           stripes
10552 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10554         * ThemeClearlooks.cs:
10555           - Updated ProgressBar drawing
10556           - Corrected drawing of ScrollBars and scroll buttons
10557           - Some temporary fixes for minor pixel artefacts
10559 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
10561         * Control.cs:
10562           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
10563             cause events to be sent in the same order as MS does.
10564           - Added ChangeParent() method to trigger various OnXXXChanged events
10565             that need to be fired when a parent changes (This is a reworking
10566             of the patch from r54254, with the X11 errors fixed)
10567           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
10568             since on MS we get OnLayoutChanged events when calling Clear()
10569           - Changed Enabled property to consider parent state as well, if a
10570             parent is not enabled, the control will not be either
10571           - Changed Parent property to simply call Controls.Add() since that
10572             now does all the work required, this way we avoid code duplication
10573           - Threw in a few OnBindingsContextChanged calls to try and match
10574             when MS sends them. We seem to send a few too many, though.
10575           - Added call to CreateControl when adding the control to a parent.
10576             We were never calling CreateControl. Still needs some work, in
10577             some places we treat HandleCreated and ControlCreated as equal, 
10578             which is wrong
10579           - Removed obsolete commented out code from UpdateZOrder()
10581 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10583         * ThemeClearlooks.cs: Updated TrackBar drawing.
10585 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10587         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
10589 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10591         * FileDialog.cs: Add the Help button and the open readonly
10592           checkbox only if needed
10594 2005-12-16  Jackson Harper  <jackson@ximian.com>
10596         * Control.cs: Make sure we have an active menu before trying to
10597         process commands on it. Prevents menu-less forms from crashing
10598         when Alt is pressed.
10599         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
10600         Dieter Bremes.
10601         * RichTextBox.cs: Expand statement to help out gmcs and fix the
10602         2.0 build.
10604 2005-12-16  Jackson Harper  <jackson@ximian.com>
10606         * InternalWindowManager.cs: Don't translate tool windows screen
10607         coordinates. This fixes windows 'bouncing' around when being moved.
10609 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10611         * TextBoxBase.cs:
10612           - MaxLength now treats 2^31-1 equal to unlimited length (this is
10613             not quite MS compatible, MS uses that number only for single line
10614             and 2^32-1 for multi-line, but I figure it won't hurt keeping
10615             the limit at 2GB)
10616           - Now enforcing the MaxLength limit when entering characters
10617           - Added argument to internal Paste() method to track if it's called
10618             from programatically or via keyboard, since keyboard driven pastes
10619             need to enforce max-length
10620           - Added logic to Paste to only paste as many chars as MaxLength 
10621             allows
10622         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
10623         * TextControl.cs:
10624           - Added Length property to return number of characters in document
10625           - Added private CharCount property which only tracks actual chars
10626             in the document (no linefeeds) and fires event when CharCount
10627             changes
10628           - Added tracking of character count to all methods that alter it
10629           - Added LengthChanged event to allow applications to subscribe
10630             to any changes to the document
10632 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10634         * TextBox.cs: 
10635           - Removed local password_char field (moved to TextBoxBase)
10636           - Now setting the document's password var when password is
10637             set
10638         * TextBoxBase.cs:
10639           - Added password_char field (needed here so MultiLine can
10640             access it)
10641           - Added logic to MultiLine property setter to set the document's
10642             variable when password display is allowed
10643           - Removed debug code and made some debug code conditional
10644         * TextControl.cs:
10645           - Added RecalculatePasswordLine() method to handle special password
10646             char only lines
10647           - Added PasswordChar property, also added related tracking vars
10648           - Draw() method now uses local text var for grabbing text to draw,
10649             this var is set to line.text unless we're doing password display,
10650             then it is set to the pre-generated all-password-chars line
10651           - Added calling RecalculatePasswordLine() method for password lines
10653 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10655         * Hwnd.cs: 
10656           - Added Reparented property to allow tracking of Window Manager
10657             reparenting actions (which affect X/Y calculations of toplevel 
10658             windows)
10659           - Made ToString() print window handles in hex
10660         * XplatUIX11.cs:
10661           - AddConfigureNotify(): Now uses reparented state off Hwnd to
10662             determine if X/Y needs offsetting
10663           - AddConfigureNotify(): Fixed offset calculations
10664           - Now adds ReparentNotify messages into the queue
10665           - Now processes ReparentNotify messages and causes a 
10666             WM_WINDOWPOSCHANGED message to be sent upstream if a window
10667             is reparented (as most likely it's X/Y coordinates are changed
10668             due to that)
10670 2005-12-14  Jackson Harper  <jackson@ximian.com>
10672         * XplatUIX11.cs: Tool windows still need to respek focus.
10674 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10676         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
10677           have a working release
10679 2005-12-13  Jackson Harper  <jackson@ximian.com>
10681         * Form.cs: Update styles after setting the border style regardless
10682         of whether or not the window is using a window manager.
10684 2005-12-13  Jackson Harper  <jackson@ximian.com>
10686         * Form.cs: We now hook into an internal window manager instead of just an
10687         MDI subsystem, this is so we can have properly behaving tool windows.
10688         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
10689         * InternalWindowManager.cs: New internal class that acts as a
10690         window manager for tool windows and as a base for mdi windows.
10691         * MdiWindowManager.cs: New class that acts as a window manager for
10692         mdi windows.
10694 2005-12-12  Jackson Harper  <jackson@ximian.com>
10696         * Control.cs: Updates so we match behavoir for for implicit
10697         controls. Fixes explosions in MDI.
10699 2005-12-12  Jackson Harper  <jackson@ximian.com>
10701         * Control.cs: Implement Invalidate (Region).
10703 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
10705         * Control.cs: 
10706           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
10707             the same events as MS does. MS fires events for each property 
10708             except, for unknown reasons, Cursor, when the control is reparented. 
10709             I can't seem to totally match add/remove since MS also fires some 
10710             VisibleChanged events, which makes no sense. Consolidated the
10711             parenting code into a separate method so it can be called from
10712             both Add and Remove. set_Parent no longer needs any special logic
10713             as it calls the parent's add method which implicitly fires
10714             all events
10715           - Removed some obsolete code and debug output
10716           - Enabled state is inherited from parents, if this is enabled
10718 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
10720         * Form.cs: Removed commented out code
10722 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
10724         * Control.cs:
10725           - Added internal version of Invoke, with additional argument 
10726             indicating if we're calling it from a Dispose() handler. That
10727             way we can avoid BeginInvoke throwing an exception if we're
10728             calling for an already destroyed window.
10729           - Added a dispose argument to BeginInvokeInternal, and made the
10730             check if a valid window handle chain exists conditional on
10731             it not being a dispose call
10732           - Removed code in DestroyHandle to destroy our children. Since we
10733             now handle the WM_DESTROY message we will catch all our children
10734             being destroyed.
10735           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
10736         * Form.cs:
10737           - Added a field to track the application context of the form.
10738           - No need to set closing variable as response to WM_CLOSE, instead
10739             we destroy the window. We also call PostQuitMessage if the form
10740             has an application context (which makes it the main app form,
10741             which, when closed terminates the app)
10742         * XplatUI.cs:
10743           - Dropped Exit() method, it's naming was confusing
10744           - Added PostQuitMessage() which causes GetMessage to return false
10745             once the message queue is empty
10746         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
10747           PostQuitMessage()
10748         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
10749           no longer a valid XplatUI method, but left it in since it's used
10750           internally. Added empty PostQuitMessage() method.
10751         * MenuAPI.cs: Replaced call to Exit() with call to
10752           PostQuitMessage, even though this is probably no longer needed.
10753         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
10754         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
10755         * Application.cs:
10756           - Replaced call to XplatUI.Exit() with PostQuitMessage()
10757           - Removed old debug code that would call XplatUI for exception
10758             display, enabled standard exception handling (Still not enabled
10759             though, until NativeWindow's ExternalExceptionHandler define
10760             is removed
10761         * NativeWindow.cs:
10762           - Added internal method to allow control to update NativeWindow
10763             after a window has been destroyed
10764           - Added handling of already destroyed windows when calling i
10765             DestroyWindow
10766           - Added removal of handle from list on ReleaseHandle
10767         * XplatUIX11.cs:
10768           - Dropped GetMessageResult var and related code
10769           - Added PostQuitState to field to track if PostQuitMessage has been
10770             called
10771           - Dropped Exit() method
10772           - Added PostQuitMessage() method
10773           - GetMessage now will return false if PostQuitState is set and no
10774             more messages are in the queue.
10775           - Expose handler will no longer generate WM_PAINT messages if we are
10776             in PostQuitState since it's very likely any windows have already
10777             been destroyed, and since Hwnd won't get updated until we have
10778             processed the DestroyNotify we'd be causing X errors.
10779         
10780 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10782         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
10783           Thanks to Mike for pointing out the err of my ways.
10785 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10787         * Control.cs(PreProcessMessage): Moved menu handling back, but
10788           after all other key handling, to match MS (who handles Menu in
10789           DefWndProc)
10790         * Menu.cs (WndProc): Removed my brainfart
10792 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10794         * Control.cs(PreProcessMessage): Removed special menu handling 
10795         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
10797 2005-12-07  Mike Kestner  <mkestner@novell.com>
10799         * Control.cs : special case SYSKEYUP so that we can adjust keynav
10800         state according in tracker.
10801         * Menu.cs : promote tracker field to base class and provide a tracker
10802         lookup capability.  Add/Remove shortcuts dynamically if the top menu
10803         has a tracker. Unparent items that are removed from the collection.
10804         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
10805         * Theme*.cs: add always_show_hotkeys field to support configurability
10806         of mnemonic display.  win32 doesn't show mnemonics until Alt is
10807         pressed.
10809 2005-12-07  Jackson Harper  <jackson@ximian.com>
10811         * MdiChildContext.cs: Use Control.ResetCursor.
10812         * Control.cs: ResetCursor needs to set the property so that the
10813         correct XplatUI call gets made.
10815 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10817         * Control.cs: More fixes to make our key events match MS. We
10818           were not setting the modifier state on KeyData, and we were
10819           not generating any events when Alt was pressed with a key
10820           since handling of WM_SYSxxx was missing for the OnKey methods.
10822 2005-12-07  Jackson Harper  <jackson@ximian.com>
10824         * MdiChildContext.cs: reenable the sizing code.
10825         - When the mouse leaves a window reset its cursor.
10827 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10829         * ThemeClearlooks.cs: Reflect latest Hwnd changes
10831 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10833         * Hwnd.cs: Now using the theme 3d bordersize to calculate
10834           widths of Fixed3D borders
10836 2005-12-07  Jackson Harper  <jackson@ximian.com>
10838         * MdiClient.cs: Fix warnings. Earn Mike's love.
10840 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10842         * ThemeClearlooks.cs:
10843           - Adjusted mouse over button color
10844           - Added first parts of CheckBox drawing
10845           - Added correct color for selected text background
10846           - Fixed ComboBox drawing
10847           - Added CPDrawBorder3D and CPDrawBorder
10849 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10851         * XplatUIX11.cs: Added call to XBell for AudibleAlert
10853 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
10855         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10856           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
10857           alert users via sound. We could add an enum arg with different
10858           types of alerts in the future
10860 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10862         * Control.cs: Fix behaviour problems pointed out by Mike
10864 2005-12-05  Mike Kestner  <mkestner@novell.com>
10866         * StatusBarPanel.cs: add Invalidate method and hook it into all the
10867         prop setters.  Calls parent.Refresh for now, but could be maybe be
10868         optimized with an internal method on StatusBar at some point.
10869         [Fixes #76513]
10871 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
10873         * RichTextBox.cs: Implemented get_SelectionColor
10875 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
10877         * ThemeClearlooks.cs:
10878           - Removed dead code
10879           - Draw black button border only if button is Form.AcceptButton
10880           - Draw correct button color for pressed RadioButton if the mouse 
10881             has entered the button
10882           - Updated ProgressBar drawing!
10883           - Updated CPDrawSizeGrip drawing
10884           - Updated StatusBarPanel drawing
10886 2005-12-05  Mike Kestner  <mkestner@novell.com>
10888         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
10889         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
10891 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
10893         * ThemeClearlooks.cs: Initial check-in, activate with
10894           export MONO_THEME=clearlooks
10895         * ThemeEngine.cs: Added ThemeClearlooks
10897 2005-12-03  Mike Kestner  <mkestner@novell.com>
10899         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
10900         [Fixes #76897]
10902 2005-12-02  Jackson Harper  <jackson@ximian.com>
10904         * Form.cs: If the child form has no menu the default main menu is
10905         used as the active menu.
10907 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
10909         * ListBox.cs: Check if any items exist before trying to resolve 
10910           coordinates into items
10912 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10914         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
10915           as the second color for the background hatch
10917 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10919         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
10920         * RichTextBox.cs: FormatText position arguments are 1-based, now making
10921           sure that what we pass to FormatText is always 1-based. Fixes #76885
10923 2005-11-29  Miguel de Icaza  <miguel@novell.com>
10925         * NumericUpDown.cs (EndInit): When we are done initializing,
10926         reflect any updates on the UI.
10928 2005-12-02  Jackson Harper  <jackson@ximian.com>
10930         * ImplicitHScrollBar.cs:
10931         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
10932         their container controls.
10933         * TreeView.cs: Use the new implicit scrollbars.
10935 2005-12-02  Jackson Harper  <jackson@ximian.com>
10937         * TreeView.cs: Make top_node internal so the TreeNodeCollections
10938         can play with it.
10939         * TreeNodeCollection.cs: If we remove the topnode we need to
10940         update topnode to the next node in line.
10941         - When clearing nodes go through the same process as removing
10942         them, so they get depareneted and checked if they are top node.
10944 2005-12-01  Jackson Harper  <jackson@ximian.com>
10946         * TreeView.cs: When imagelists are used the image area is
10947         selectable as well as the text.
10948         - If there are no selected nodes select the first one.
10949         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
10950         so don't do it more then we need to.
10952 2005-12-01  Jackson Harper  <jackson@ximian.com>
10954         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
10955         that arrows can be scaled.
10957 2005-12-01  Jackson Harper  <jackson@ximian.com>
10959         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
10960         fail. Patch by Dieter Bremes
10962 2005-11-30  Jackson Harper  <jackson@ximian.com>
10964         * Form.cs: Property is 2.0 only
10965         * PrintDialog.cs: Signature fix.
10967 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
10969         * TextControl.cs: 
10970           - No longer artificially moves text 2 pixels down (now that we have
10971             borders this is no longer needed)
10972           - Added calcs for left, hanging and right indent
10974 2005-11-23  Mike Kestner  <mkestner@novell.com>
10976         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
10978 2005-11-30  Jackson Harper  <jackson@ximian.com>
10980         * MdiChildContext.cs: Set the cloned menus forms, as these don't
10981         get cloned as part of CloneMenu ().
10982         * Menu.cs: Make sure the parent of the items get set correctly
10983         when they are added.  And the owners are notified of the changes.
10984         * Form.cs: Create an ActiveMenu property, so that when MDI is used
10985         we can change the menu being displayed/handled by the form without
10986         changing the menu assosciated with the form.
10987         - Don't let Mdi children draw/handle menus.
10988         
10989 2005-11-30  Jackson Harper  <jackson@ximian.com>
10991         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
10992         a MenuChanged event. Just to make the API a little more
10993         consistent.
10994         * MainMenu.cs:
10995         * MenuItem.cs: Use the new OnMenuChanged
10996         * MdiChildContext.cs: Handle menu merging.
10997         * Form.cs: Implement MergedMenu.
10998         
10999 2005-11-30  Jackson Harper  <jackson@ximian.com>
11001         * Menu.cs: We were misusing Add. Add goes behind the specified
11002         index according to the docs, and does not replace the specified
11003         index. So I added an Insert method.
11005 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
11007         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
11008           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
11009           is for Jackson
11010         * RichTextBox.cs: Added calls to base for DnD events
11012 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
11014         * TextControl.cs:
11015           - Fixed drag-selection related crash; style fixes
11016           - Implemented undo class
11017             o Implemented method to capture document state for specified
11018               range in document tree
11019             o Implemented method to restore captured document state
11020             o Implemented cursor tracking
11021             o Implemented basic undo stack
11022           - Added undo cursor tracking to methods altering cursor location
11023           - Added undo tracking to selection deletion (still missing
11024             other text-altering hookups)
11025         * RichTextBox.cs:
11026           - Added SelectionLength property
11027           - Implemented CanPaste()
11028           - Implemented Paste()
11029           - Added missing protected methods
11030           - Fixed RTF->Document conversion; now uses font index 0 and color 
11031             index 0 as the default font for the parsed text
11032           - Fixed RTF<->Document font size translation
11033           - Fixed RTF generation, now properly handles cross-tag boundaries
11034             for single line selection
11035           - No longer always appends blank line to generated RTF
11036           - Removed TODOs
11037           - Added missing attributes
11038           - Hooked up undo-related methods
11039         * TextBoxBase.cs:
11040           - Implemented Copy()
11041           - Implemented Paste()
11042           - Implemented Cut()
11043           - Fixed caret mis-behaviour on backspace across line-boundaries
11045 2005-11-29  Jackson Harper  <jackson@ximian.com>
11047         * MdiClient.cs: Add a method for activating mdi children. Very
11048         basic right now. I imagine someday it might need more girth.
11049         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
11050         children windows names are added to the menu item.
11051         * ThemeWin32Classic.cs: Draw the arrow if the item is an
11052         mdilist. This happens regardless of whether or not there are any
11053         mdi windows to see in the list, and according to my tests happens
11054         before the items are even added. Also happens if there isn't even
11055         an mdi client to get windows from.
11057 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
11059         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
11060         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
11062 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
11064         * DataGridTableStyle.cs:
11065           - Create always the styles for the missing columns even if they are
11066             provided by the user (not default table style)
11067         * DataGrid.cs:
11068           - Fixes bug 76770
11069           - Fixes SetDataBinding (always re-attach source)
11070           - Fixes SetNewDataSource (only clear styles if they are not for 
11071             this source)
11072          -  Expands OnTableStylesCollectionChanged to handle style refresh 
11073             and remove properly
11075 2005-11-29  Jackson Harper  <jackson@ximian.com>
11077         * FileDialog.cs: Implement missing bits, remove some dead
11078         code.
11079         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
11080         creation of the panel so that the options set on the dialog are
11081         seen when the panel is created.
11082         * TreeView.cs: raise a click when items are clicked.
11083         
11084 2005-11-29  Jackson Harper  <jackson@ximian.com>
11086         * MdiClient.cs: Pass some signature methods through to base.
11088 2005-11-28  Jackson Harper  <jackson@ximian.com>
11090         * ListView.cs: Raise the click event when items are clicked.
11092 2005-11-28  Jackson Harper  <jackson@ximian.com>
11094         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
11095         a nullref.
11097 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
11099         * ThemeNice.cs: - Removed 1 pixel bitmaps
11100           - Use SmoothingMode.AntiAlias where it makes sense
11101             (ScrollButton arrow for example)
11102           - Enhanced Button focus drawing
11103           - Fixed ComboBox drawing (no artefacts anymore, focus
11104             rectangle is back again, reduced size of ComboButton, etc.)
11105           - Fixed RadioButton focus drawing for Appearence.Button
11106           - Slight ScrollButton redesign
11107           - Some LinearGradientBrush size fixes
11108           - GroupBoxes have now rounded edges
11109           - Fixed StatusBar drawing
11111 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
11113         * ThemeNice.cs: - Remove dead code
11114           - use correct background colors for menus, etc.
11115           - Fake pixel drawing with 1 pixel bitmaps
11117 2005-11-24  Jackson Harper  <jackson@ximian.com>
11119         * MdiClient.cs: Size the scrollbars when resizing the window.
11120         - Resize the maximized windows when the client is resized
11121         * Form.cs: Make the child context available
11122         
11123 2005-11-23  Jackson Harper  <jackson@ximian.com>
11125         * MdiChildContext.cs: Don't size windows if they are maximized.
11127 2005-11-23  Mike Kestner  <mkestner@novell.com>
11129         * ContextMenu.cs: use MenuTracker.
11130         * Control.cs: remove menu handle usage.
11131         * Form.cs: remove menu handle usage.
11132         * Hwnd.cs: remove menu handle usage.
11133         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
11134         motion and clicks to the new Tracker handlers.
11135         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
11136         and handle usage.
11137         * MenuAPI.cs: refactored to combine popup and menubar event handling.
11138         Killed the MENU and MENUITEM data types and associated collections
11139         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
11140         MenuTracker class that exposes the leftovers from the old MenuAPI
11141         static methods. Restructured Capture handling so that only one grab is
11142         done for the entire menu hierarchy instead of handing off grabs to
11143         submenus. Tracker now has an invisible control to Capture when active.
11144         * MenuItem.cs: add sizing accessors, kill Create
11145         and handle usage.
11146         * Theme.cs: remove menu handle and MENU(ITEM) usage.
11147         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
11148         MENU(ITEM). remove menu handle usage, use Menu directly.
11149         * XplatUIDriver.cs: remove menu handle usage.
11150         * XplatUIOSX.cs: remove menu handle usage.
11151         * XplatUIWin32.cs: remove menu handle usage.
11152         * XplatUIX11.cs: remove menu handle usage.
11154 2005-11-22  Jackson Harper  <jackson@ximian.com>
11156         * Hwnd.cs: Don't compute the menu size for
11157         DefaultClientRectangle.
11158         - Reenable menu sizes being computed for GetClienRectangle.
11159         * Form.cs: Remove comment of trechery
11160         
11161 2005-11-22  Jackson Harper  <jackson@ximian.com>
11163         * Hwnd.cs: The adjustments for the menu bar are made when it is
11164         attached to the form.
11166 2005-11-19  Jackson Harper  <jackson@ximian.com>
11168         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
11169         (just like on windows).
11171 2005-11-19  Jackson Harper  <jackson@ximian.com>
11173         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
11174         use real buttons anymore because they are in non client area. The
11175         one TODO here is that I need to somehow invalidate a section of
11176         the non client area.
11178 2005-11-18  Jackson Harper  <jackson@ximian.com>
11180         * Control.cs: Put the enum check back in now that MDI doesnt have
11181         to use this to set border styles.
11182         * Form.cs: Only set mdi child windows borders if the handle has
11183         been created.
11184         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
11185         this directly on to the driver.
11186         - Get the move start position before adjusting for the titlebar
11187         height, this fixes the windows "skipping" when they are first
11188         moved.
11190 2005-11-18  Jackson Harper  <jackson@ximian.com>
11192         * XplatUIX11.cs: Just compute the mdi borders separately as they
11193         don't totally match up with normal form borders.
11195 2005-11-18  Jackson Harper  <jackson@ximian.com>
11197         * Control.cs: Set WS_ styles for borders, so that the driver does
11198         not have to retrieve the control instance to figure out what kind
11199         of borders it should have.
11200         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
11201         driver can know its an mdi child easily.
11202         * XplatUIX11.cs: Get the border styles and whether the window is
11203         MDI from the Styles and ExStyles params instead of having to get a
11204         control. This prevents a chicken and egg problem.       
11206 2005-11-18  Jackson Harper  <jackson@ximian.com>
11208         * MdiClient.cs: Fix typo so scrollbars show up correctly.
11210 2005-11-18  Jackson Harper  <jackson@ximian.com>
11212         * MdiClient.cs: Calculate when to add and remove scrollbars
11213         correctly.
11214         * MdiChildContext.cs: Adjust the y position to take the titlebar
11215         into account.
11216         - No height for FormBorderStyle.None
11218 2005-11-18  Jackson Harper  <jackson@ximian.com>
11220         * Control.cs: Allow non enum values to be used for
11221         InternalBorderStyle.  MDI does this to set a special border style.
11222         - New utility methods for converting points to/from client coords
11223         - Add the newly created control to the Controls collection before
11224         updating its style. This way UpdateStyle can walk the control
11225         heirarchy to find the control if needed.
11226         so I don't need to create a new Point object all the time.
11227         * Form.cs: Let MDI windows handle their border styles.
11228         - Set styles on MDI windows so the correct title style is derived.
11229         * MdiChildContext.cs: Move all the painting and window handling
11230         into the non client area.
11231         - Use correct sizing and put correct buttons on frames based on
11232         the FormBorderStyle.
11233         - Notify the mdi client about scrolling
11234         - Need to handle the buttons ourselves now, because they are all
11235         in non client areas and we can't add controls there.
11236         * MdiClient.cs: Halfway to scrolling, this implementation is
11237         somewhat broken though, we need to check to make sure other
11238         windows aren't causing scrolling before removing the bars. Also
11239         the bars need to be drawn on top, maybe I can switch implicit
11240         controls to be on top.
11241         * Hwnd.cs: caption_height and tool_caption_height are now
11242         properties of an hwnd, this way they can be set by the driver
11243         based on the type of window they are.  In X11 the window manager
11244         handles the decorations so caption_height is zero unless its an
11245         MDI window.
11246         - Add 3 pixel borders for MDI windows (0xFFFF).
11247         - Get rid of some code duplication, have DefaultClientRectanle
11248         just call GetClientRectangle.
11249         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
11250         Hwnd now.
11251         - Set border styles differently for mdi windows.
11252         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
11253         Hwnd now.
11254         
11255 2005-11-15  Mike Kestner  <mkestner@novell.com>
11257         * Menu.cs: when adding an item to the collection, if item is already 
11258         parented, remove it from the parent.
11260 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
11262         * X11DesktopColors.cs: Added KDE support
11264 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
11266         * XplatUIWin32.cs: 
11267           - Clipboard methods now can translate Rtf format
11268           - No longer removes clipboard contents whenever a new format is added
11269             to allow placing multiple formats on the clipboard
11270         * Clipboard.cs: Clipboard now supports getting a IDataObject and
11271           will place all formats contained in it onto the clipboard. Also
11272           now cleans the clipboard before placing a new object onto it
11273         * RichTextBox.cs:
11274           - Implemented set_Rtf
11275           - Implemented set_SelectedRtf
11276           - Created InsertRTFFromStream() method to allow single code base
11277             for all properties and methods that insert RTF into document
11278           - Removed debug output
11279         * TextControl.cs:
11280           - Fixed Delete(int) to fix up line numbers
11281           - Fixed ReplaceSelection to combine start and end line
11282           - Fixed serious DeleteChars bug that would leave the document tree
11283             broken
11284           - Improved DumpTree with several logic checks to detect broken
11285             document trees
11286           - Removed debug lines
11287           - Fixed Caret.WordForward/WordBack moving code, now always also 
11288             updates caret.tag (fixes crash when word-selecting across tag
11289             boundaries via keyboard)
11290           - Added Insert() method for inserting multiline text into documents
11291           - Fixed DeleteChars() calculation errors that would cause a broken
11292             tag chain with multiple tag lines
11293           - DeleteChars() no longer crashes on multi-tag lines if not all tags
11294           - Split() no longer moves caret if split is at caret location
11295           - ReplaceSelection() now updates the cursor and re-displays it
11296           - ReplaceSelection() now uses new Insert() method to avoid code
11297             duplication
11298           - FormatText() can now handle formatting partial lines
11299         * TextBoxBase.cs:
11300           - Append now uses new TextControl.Insert() method (this avoids 
11301             duplicate code)
11302           - Implemented Ctrl-X (Cut) (
11303           - Implemented Ctrl-C (Copy)
11304           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
11305             regeneration when pasting text; roundtripping Copy&Paste within
11306             edit control still fails due to some calculation bugs in GenerateRTF)
11307           - The Delete key will now remove the current selection if it is visible
11308         * TextBox.cs: Removed debug lines
11309         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
11310           driver to be initialized and can't therefore be done via a static ctor)
11312 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
11314         * TextControl.cs: Added backend code for finding char arrays and strings
11315         * TextBoxBase.cs:
11316           - Added mouse wheel scroll support
11317           - Added support for VScroll and HScroll events
11318         * RichTextBox.cs:
11319           - Implemented all seven Find() variants
11320           - Implemented GetCharFromPosition()
11321           - Implemented GetCharIndexFromPosition()
11322           - Implemented GetLineFromIndex()
11323           - Implemented GetPositionFromCharIndex();
11324           - Implemented SaveFile for PlainText and UnicodeText
11325           - Fixed set_Font, now setting a new font applies that font to
11326             the whole document
11327           - Implemented generic Document to RTF converter
11328           - Implemented SaveFile for RichText format (still missing unicode
11329             conversion for non-ansi chars)
11330           - Implemented get_Rtf
11331           - Implemented get_SelectedRtf
11333 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
11335         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
11336           to allow any captures to be released before triggering OnClick. This
11337           way a click handler may capture the mouse without interference.
11338         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
11339           This way we send them even though X may not allow a grab (if the window
11340           isn't visible, for example)
11342 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
11344         * DataGridViewRowEventArgs.cs: DataGridView implementation
11345         * DataGridViewElement.cs: DataGridView implementation
11346         * DataGridViewComboBoxCell.cs: DataGridView implementation
11347         * DataGridViewDataErrorContexts.cs: DataGridView implementation
11348         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
11349         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
11350         * ImageLayout.cs: DataGridView implementation
11351         * DataGridViewComboBoxColumn.cs: DataGridView implementation
11352         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
11353         * DataGridViewSelectionMode.cs: DataGridView implementation
11354         * IDataGridViewEditingControl.cs: DataGridView implementation
11355         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
11356         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
11357         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
11358         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
11359         * DataGridViewColumnSortMode.cs: DataGridView implementation
11360         * DataGridView.cs: DataGridView implementation
11361         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
11362         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
11363         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
11364         * Padding.cs: DataGridView implementation
11365         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
11366         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
11367         * DataGridViewRowEventHandler.cs: DataGridView implementation
11368         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
11369         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
11370         * DataGridViewButtonCell.cs: DataGridView implementation
11371         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
11372         * DataGridViewEditMode.cs: DataGridView implementation
11373         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
11374         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
11375         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
11376         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
11377         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
11378         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
11379         * DataGridViewCellEventHandler.cs: DataGridView implementation
11380         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
11381         * DataGridViewCellStyleConverter.cs: DataGridView implementation
11382         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
11383         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
11384         * DataGridViewColumnEventArgs.cs: DataGridView implementation
11385         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
11386         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
11387         * QuestionEventArgs.cs: DataGridView implementation
11388         * IDataGridViewEditingCell.cs: DataGridView implementation
11389         * DataGridViewTriState.cs: DataGridView implementation
11390         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
11391         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
11392         * DataGridViewColumnCollection.cs: DataGridView implementation
11393         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
11394         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
11395         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
11396         * DataGridViewColumn.cs: DataGridView implementation
11397         * DataGridViewCellBorderStyle.cs: DataGridView implementation
11398         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
11399         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
11400         * DataGridViewRow.cs: DataGridView implementation
11401         * DataGridViewImageCellLayout.cs: DataGridView implementation
11402         * DataGridViewImageCell.cs: DataGridView implementation
11403         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
11404         * DataGridViewCheckBoxCell.cs: DataGridView implementation
11405         * DataGridViewHeaderCell.cs: DataGridView implementation
11406         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
11407         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
11408         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
11409         * DataGridViewTextBoxColumn.cs: DataGridView implementation
11410         * QuestionEventHandler.cs: DataGridView implementation
11411         * DataGridViewCellStyleScopes.cs: DataGridView implementation
11412         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
11413         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
11414         * DataGridViewCell.cs: DataGridView implementation
11415         * DataGridViewCellEventArgs.cs: DataGridView implementation
11416         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
11417         * DataGridViewCellStyle.cs: DataGridView implementation
11418         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
11419         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
11420         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
11421         * TextFormatFlags.cs: DataGridView implementation
11422         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
11423         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
11424         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
11425         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
11426         * DataGridViewButtonColumn.cs: DataGridView implementation
11427         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
11428         * HandledMouseEventArgs.cs: DataGridView implementation
11429         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
11430         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
11431         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
11432         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
11433         * DataGridViewRowCollection.cs: DataGridView implementation
11434         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
11435         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
11436         * DataGridViewHitTestType.cs: DataGridView implementation
11437         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
11438         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
11439         * DataGridViewColumnEventHandler.cs: DataGridView implementation
11440         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
11441         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
11442         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
11443         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
11444         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
11445         * DataGridViewContentAlignment.cs: DataGridView implementation
11446         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
11447         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
11448         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
11449         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
11450         * DataGridViewPaintParts.cs: DataGridView implementation
11451         * DataGridViewCellCollection.cs: DataGridView implementation
11452         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
11453         * DataGridViewImageColumn.cs: DataGridView implementation
11454         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
11455         * DataGridViewElementStates.cs: DataGridView implementation
11456         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
11457         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
11458         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
11459         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
11460         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
11461         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
11462         * DataGridViewRowHeaderCell.cs: DataGridView implementation
11463         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
11464         * DataGridViewTextBoxCell.cs: DataGridView implementation
11465         * DataGridViewBand.cs: DataGridView implementation
11466         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
11467         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
11468         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
11469         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
11470         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
11471         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
11472         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
11473         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
11474         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
11475         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
11476         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
11478 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
11480         * ThemeWin32Classic.cs: 
11481           - Draw the outside focus rectangle around buttons
11482           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
11483             doesn't use end caps for every dash of a line anymore. This
11484             workaround ignores the forecolor.
11486 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
11488         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
11489           endian safe.
11491 2005-11-07  Jackson Harper  <jackson@ximian.com>
11493         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
11495 2005-11-07  Jackson Harper  <jackson@ximian.com>
11497         * ScrollableControl.cs: Calculate the maximum and change vars
11498         (more) correctly so that scrollbars appear as a sensible size.
11500 2005-11-04  Jackson Harper  <jackson@ximian.com>
11502         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
11503         collection.
11504         * TreeView.cs: When the tree is sorted null out the top_node so
11505         that it is recalculated.
11506         - Use dotted lines instead of dashed lines to match MS better.
11508 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
11510         * ListView.cs: 
11511           - Implements key search for items. Useful when browsing files with FileDialog
11512           - When changing view mode or when clear the items reset scrollbar positions
11514 2005-11-04  Jackson Harper  <jackson@ximian.com>
11516         * CurrencyManager.cs: Implement the MetaDataChanged event, the
11517         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
11518         as to what the method may do as there is no real way of creating a
11519         derived CurrencyManager and calling the method. 
11521 2005-11-03  Jackson Harper  <jackson@ximian.com>
11523         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
11524         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
11525         method which seems to just be used internally to refresh the tabs.
11527 2005-11-03  Jackson Harper  <jackson@ximian.com>
11529         * TabControl.cs: Implement the remove method. Fix some broken
11530         comments.
11532 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11534         * DateTimePicker.cs:
11535           - Added missing DateTimePickerAccessibleObject class
11536           - Added missing events
11537           - Added OnFontChanged method
11538         * Form.cs: Added missing attributes
11539         * TreeView.cs: Added missing attributes
11541 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
11543         * GridItemCollection.cs: Fix signatures
11545 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11547         * XplatUI.cs: Updated build rev/date
11548         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
11549           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
11550         * Application.cs: Trigger context-specific ExitThread events
11552 2005-11-03  Jackson Harper  <jackson@ximian.com>
11554         * Menu.cs:
11555         * MainMenu.cs:
11556         * GridTableStylesCollection.cs:
11557         * Timer.cs:
11558         * TabPage.cs:
11559         * HelpProvider.cs:
11560         * StatusBar.cs:
11561         * MonthCalendar.cs: Signature fixes
11563 2005-11-03  Jackson Harper  <jackson@ximian.com>
11565         * TreeNodeCollection.cs: Remove should not be virtual.
11566         * TreeView.cs: Implement the last of the missing methods.
11568 2005-11-03  Jackson Harper  <jackson@ximian.com>
11570         * TreeNodeConverter.cs: Implement to get off my class-status back.
11572 2005-11-03  Jackson Harper  <jackson@ximian.com>
11574         * TreeView.cs: Hookup the bits for drag and drop.
11575         * TreeNode.cs: Don't cache the tree_view or index anymore, now
11576         that nodes can be moved from tree to tree easily this just causes
11577         all sorts of problems.
11578         * TreeNodeCollection: Don't need to give treenodes an index and
11579         treeview anymore when they are added, these are computed on the
11580         fly. Also make sure to remove a node before its added.
11582 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11584         * TextControl.cs:
11585           - Added CaretSelection enum
11586           - Added comparison methods to Marker struct, makes selection code
11587             more readable
11588           - Added SelectionStart and SelectionEnd as 'moveable' location for
11589             the CaretDirection enum and handler
11590           - Added selection_prev variable to track optimized invalidation for
11591             word and line selection
11592           - Added SelectionVisible property (returns true if there is a valid 
11593             selection)
11594           - Switched CaretHasFocus to only display the caret if there is no
11595             visible selection
11596           - Avoiding StringBuilder.ToString to retrieve a single char, instead
11597             using the direct character index; should be much faster
11598           - Added various conditional debug statements
11599           - Fixed invalidation calculation for selection ranges
11600           - Added ExpandSelection() method to support word and line selection
11601           - Switched SetSelectionToCaret to use new Marker compare overloads
11602           - Added central IsWordSeparator() method to determine word 
11603             separators/whitespace and FindWordSeparator() to streamline common
11604             usage of IsWordSeparator()
11605         * TextBoxBase.cs:
11606           - Removed unneeded grabbed variable, it was just mirroring
11607             Control.Capture
11608           - No longer firing OnTextChanged event when Text setter is called,
11609             since the base will fire the event for us
11610           - Added handling of Ctrl-Up/Down selection
11611           - Added handling of Shift-Cursorkey selection
11612           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
11613             words
11614           - Added handling of Shift and Ctrl-Shift-Home/End selection
11615           - Removed some debug output
11616           - Added handling for single/double/tripple-click to place caret/
11617             select word/select line respectively (Fixes bug #76031)
11618           - Added support for drag expansion of word/line selection
11619         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
11620           current selection
11622 2005-11-02  Jackson Harper  <jackson@ximian.com>
11624         * X11Dnd.cs: If the drag is going to and from a MWF window just
11625         copy the data instead of sending it out through the X Selection
11626         mechanism.
11628 2005-11-02  Jackson Harper  <jackson@ximian.com>
11630         * X11Dnd.cs:
11631         * XplatUIX11.cs: When in a drag we don't want motion notify
11632         messages to get passed on to the other controls. This prevents
11633         mouse move messages from showing up in the drag source.
11635 2005-11-02  Jackson Harper  <jackson@ximian.com>
11637         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
11638         the correct button is release to end a drag.
11639         * XplatUIX11.cs: Make the button state internal so the drag system
11640         can access it.  Dragging needs to know about all button releases,
11641         not just left button.
11643 2005-11-02  Miguel de Icaza  <miguel@novell.com>
11645         * Form.cs (Icon): If the icon is null, reset the icon to the
11646         default value. 
11648         * Cursor.cs: When writing the AND-mask bitmap do not include the
11649         number of colors, but hardcode those to two (black and white),
11650         fixes the loading of color cursors (Paint Dot Net).
11652         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
11653         turn off autoscaling.
11655         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
11657 2005-11-02  Jackson Harper  <jackson@ximian.com>
11659         * X11Dnd.cs: Make sure to send a status message if the pointer
11660         enters a control that can not accept a drop, otherwise the cursor
11661         isn't updated correctly. Also tried to compress the lines of code
11662         a bit.
11664 2005-11-02  Jackson Harper  <jackson@ximian.com>
11666         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
11667         set actions correctly.  This isn't perfect as XDND and win32 have
11668         some differences on how you allow actions. I'll clear this up by
11669         adding a path for drag from MWF to MWF windows.
11670         * XplatUIX11.cs: Hook into the dnd system.
11672 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
11674         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
11675         previously shown but they are no longer need it. Very obvious when 
11676         browsing files with FileDialog.
11678 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
11680         * Control.cs: We always need to call OnPaintBackground. We pretty much
11681           ignore AllPaintingInWmPaint and always do the painting there, whether 
11682           it's set or not, since we always ignore the WM_ERASEBKGND message 
11683           (which we don't generate on X11). This fixes #76616.
11684         * Panel.cs: Removed unneeded background painting. This happens properly
11685           in Control.cs already
11687 2005-10-31  Mike Kestner  <mkestner@novell.com>
11689         * Menu.cs: Add items to collection before setting their index.
11690         * MenuItem.cs : add range checking with ArgumentException like MS.
11691         [Fixes #76510]
11693 2005-10-31  Jackson Harper  <jackson@ximian.com>
11695         * ListBox.cs: Invalidate if the area is visible at all not just
11696         contained in the visible rect. Fixes unselection of semi visible
11697         items.
11699 2005-10-31  Jackson Harper  <jackson@ximian.com>
11701         * Control.cs: Consistently name the dnd methods. Make them
11702         internal so we can override them to match some MS behavoir
11703         internally.
11704         * Win32DnD.cs: Use the new consistent names.
11706 2005-10-31  Jackson Harper  <jackson@ximian.com>
11708         * TreeView.cs: Don't draw the selected node when we lose focus.
11710 2005-10-31  Jackson Harper  <jackson@ximian.com>
11712         * X11Dnd.cs: We still need to reset the state even though a full
11713         reset isn't being done, otherwise status's still get sent all over
11714         the place.
11716 2005-10-31  Jackson Harper  <jackson@ximian.com>
11718         * Control.cs: Make the dnd_aware flag internal so the dnd
11719         subsystem can check it. Catch exceptions thrown in dnd handlers to
11720         match MS behavoir.
11721         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
11722         * X11Dnd.cs: Handle null data in the converters. Set the XDND
11723         version when sending a XdndEnter. Use the control/hwnd dnd_aware
11724         flags to reduce the number of dnd enters/status's sent.
11726 2005-10-31  Jackson Harper  <jackson@ximian.com>
11728         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
11730 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
11732         * PictureBox.cs: Fixes 76512
11734 2005-10-28  Jackson Harper  <jackson@ximian.com>
11736         * X11Dnd.cs: Early implementation to support winforms being a drag
11737         source for data on X11. Also restructured the converters so they
11738         can go both ways now.
11739         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
11740         
11741 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
11743         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
11744           clipboard requests
11746 2005-10-27  Jackson Harper  <jackson@ximian.com>
11748         * TreeNode.cs: Implement serialization so my DnD examples will work.
11750 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
11752         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
11753           TreeView.cs: Don't dispose objects that are not owned.
11754           
11755 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
11757         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
11758           should retrieve the current cursor and report that, but XplatUI
11759           doesn't (yet) have an interface for that (and I'm not sure I even
11760           can, on X11)
11761         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
11762           until any message loop processing is done (and the WM_SETCURSOR
11763           replaces the cursor to the proper one)
11764         * XplatUIX11.cs: 
11765           - Fixed override behaviour, we can't set the cursor globally on X11, 
11766             just for our windows.
11767           - Invalidating the System.Drawing X11 display handle when we are
11768             shutting down
11769         * Control.cs: Fix to make csc happy
11771 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
11773         * TextBoxBase.cs: 
11774           - get_Text: Add last line (without trailing newline) to returned
11775             value (Fixes 76212)
11776           - get_TextLength: Count last line in returned length
11777           - ToString: Call Text property instead of duplicating code
11779 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
11781         * ImageList.cs: Dispose ImageAttributes objects.
11783 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11785         * ImageList.cs: Use attribute constructors with less arguments where
11786           possible.
11788 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11790         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
11791           Use typeof instead of strings when assembly is referenced. Added
11792           some more comments.
11794 2005-10-21  Jackson Harper  <jackson@ximian.com>
11796         * ListView.cs: Raise a double click event. Also tried to somewhat
11797         fix when the selectedindexchanged event is raised. Its still
11798         broken though.
11800 2005-10-21  Jackson Harper  <jackson@ximian.com>
11802         * TreeView.cs: New method to invalidate the plus minus area of a
11803         node without invalidating the whole node (maybe this can be used
11804         in some more places).
11805         * TreeNodeCollection.cs: When adding to an empty node we need to
11806         invalidate its plus minus area so the little block shows up.
11807         
11808 2005-10-21  Jackson Harper  <jackson@ximian.com>
11810         * TreeView.cs: Make sure that when we invalidate a node the bounds
11811         are big enough to cover the selected box and the focus
11812         rectangle. Use a different colour for the lines connecting nodes
11813         so they show up with all themes.
11815 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11817         * NativeWindow.cs: Don't call anything that could call into the driver,
11818           we might be on a different thread.
11820 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
11822         * Control.cs(Dispose): Since Dispose might run on a different thread,
11823           make sure that we call methods that could call into the driver via
11824           invoke, to avoid thread issues
11826 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11828         * XplatUI.cs: Removed finalizer
11829         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
11830           not allowing to be called on the finalizer thread.
11832 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
11834         * ImageList.cs:
11835           - Reverted r51889 and r51891.
11836           - Added ImageListItem class that stores unmodified image items and image
11837             properties required to create list images until handle is created.
11838           - Added AddItem and moved image creation logic to AddItemInternal.
11839           - Added CreateHandle method that creates images based on unmodified items.
11840           - Added DestroyHandle that changes state to store unmodified items.
11841           - Add and AddStrip methods no more create handle.
11842           - ReduceColorDepth has no return value.
11843           - Dispose destroys handle.
11844           - Modified other methods to reflect the above changes.
11845           - Implemented key support.
11846           - Added profile 2.0 members and attributes.
11847           - Added private Reset and ShouldSerialize methods that provide the same
11848             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
11849             them as they are private.
11850           - Added some more comments about implementation details.
11852 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11854         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
11856 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11858         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
11860 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11862         * DataGridDrawingLogic.cs: Fixes column hit calcultation
11863         * DataGridColumnStyle.cs: Remove debug message
11865 2005-10-20  Jackson Harper  <jackson@ximian.com>
11867         * TreeView.cs: We can always get input keys regardless of whether
11868         or not editing is enabled. They are used for navigation.
11870 2005-10-20  Jackson Harper  <jackson@ximian.com>
11872         * TreeNode.cs: Use the viewport rect for determining if a node
11873         needs to be moved for visibility. Don't use Begin/End edit. This
11874         calls a full refresh when its done.
11875         * TreeView.cs: New SetBottom works correctly.  Make the viewport
11876         rect property internal so the treenodes can see it. When clicking
11877         on a node we need to ensure that its visible because it might just
11878         be partly visible when clicked.
11880 2005-10-20  Jackson Harper  <jackson@ximian.com>
11882         * TreeNodeCollection.cs: Remove debug code.
11884 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11886         * Datagrid.cs: Implements column sorting in Datagrid
11887         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
11889 2005-10-20  Jackson Harper  <jackson@ximian.com>
11891         * TreeNodeCollection.cs: Remove items properly. Update the correct
11892         area after removing them.
11894 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11896         * Datagrid.cs: Should not call base.OnPaintBackground
11898 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11900         * XplatUIX11.cs (GetMessage):
11901           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
11902             window instead of client window
11903           - Now properly calculates NC_xBUTTONUP message coordinates
11904           - ScreenToMenu now properly calculates it's coordinates of whole 
11905             window, since menus are in the whole window, not in the client
11906             window
11907           - Added WholeToScreen coordinate translation method
11909 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
11911         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
11912           want to return a message, loop back to the beginning of the function
11913           and grab the next real message to process instead.
11915 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11917         * Splitter.cs: Properly set limits if no filler control is used
11919 2005-10-19  Jackson Harper  <jackson@ximian.com>
11921         * ColorDialog.cs: Don't show the help button if it is not enabled
11922         instead of disabling it (this is what MS does). Don't create the
11923         panel until the dialog is run, otherwise the vars (such as
11924         ShowHelp) are not set yet.
11926 2005-10-19  Jackson Harper  <jackson@ximian.com>
11928         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
11929         are reduced when adding nodes.
11930         * TreeNode.cs:
11931         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
11932         tree.
11933         
11934 2005-10-19  Jackson Harper  <jackson@ximian.com>
11936         * FolderBrowserDialog.cs: End editing our treeview so the window
11937         actually gets refreshed.
11939 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11941         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
11942           Obsoleted handling of WM_ERASEBKGND, now always draws our background
11943           inside of WM_PAINT
11945 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11947         * MenuAPI.cs: Returns after Hidding window
11948         * XplatUIX11.cs: Added TODO found while debugging menu issues
11950 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11952         * XplatUIX11.cs: Do not re-map the whole window when it's size
11953           becomes non-zero unless it's supposed to be actually visible
11955 2005-10-18  Jackson Harper  <jackson@ximian.com>
11957         * TreeView.cs: We don't need to keep a count anymore.
11958         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
11959         use the Grow method.
11961 2005-10-18  Jackson Harper  <jackson@ximian.com>
11963         * TreeNodeCollection.cs: Insert is not supported on arrays, so
11964         implement it manually here.
11966 2005-10-18  Jackson Harper  <jackson@ximian.com>
11968         * ImageList.cs: Dont kill the list when the colour depth is
11969         changed, just change the colour depth of all the images.
11970         - Same goes for setting the image size. Just resize them all
11971         instead of killing the list softly.
11973 2005-10-18  Jackson Harper  <jackson@ximian.com>
11975         * Control.cs: Don't invalidate empty rectangles.
11977 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11979         * ListViewItem.cs:
11980           - Adds checked item to the Checked/Item lists (where empty before)
11981           - Do not add items to the Selected lists if they are already present
11982         * ListView.cs:
11983           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
11984           - When deleting items make sure that we delete them for the Selected
11985           and Checked list also.
11987 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11989         * Label.cs: Dispose objects no longer used
11990         * ThemeWin32Classic.cs: Dispose objects no longer used
11992 2005-10-18  Jackson Harper  <jackson@ximian.com>
11994         * TabControl.cs: Don't refresh the whole control when the tabs are
11995         scrolled, we just need to refresh the tab area.
11997 2005-10-17  Jackson Harper  <jackson@ximian.com>
11999         * XplatUIX11.cs: Compress code a little bit. Only calculate the
12000         after handle when we need it.
12002 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
12004         * Control.cs: When the parent size changes, recalculate anchor 
12005           positions. Partial fix for #76462
12007 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
12009         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
12010           drawn. Fixes #76462
12012 2005-10-17  Jackson Harper  <jackson@ximian.com>
12014         * MonthCalendar.cs: Don't create the numeric up down until our
12015         handle is created. Otherwise our handle is created in the
12016         constructor and we don't know if we are a WS_CHILD or WS_POPUP
12017         yet.
12019 2005-10-17  Jackson Harper  <jackson@ximian.com>
12021         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
12022         correctly.
12024 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12025         * TreeNode.cs : small logical fix (was using local var instead of field)
12026         
12027 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
12029         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
12031 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
12033         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
12035 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
12037         * Control.cs: 
12038           - Re-implemented anchoring code. My first version was really broken.
12039             This fixes bug #76033. Unlike the previous implementation we will
12040             no longer have round errors since all numbers are calculated from
12041             scratch every time. Removed various anchor-related obsolete vars.
12042           - InitLayout no longer causes layout event firing and layout to be 
12043             performed
12045 2005-10-16  Jackson Harper  <jackson@ximian.com>
12047         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
12048         which was broken).
12050 2005-10-16  Jackson Harper  <jackson@ximian.com>
12052         * TabControl.cs: Remove debug code.
12054 2005-10-16  Jackson Harper  <jackson@ximian.com>
12056         * XEventQueue.cs: Increase the default queue size (very simple
12057         apps needed to grow the queue).
12058         * Hwnd.cs: No finalizer so we don't need to suppress
12059         finalization. Compute the invalid area manually so a new rectangle
12060         does not newto be created.
12061         * ScrollableControl.cs: Don't set any params (otherwise visibility
12062         isn't set correctly).
12063         * MdiChildContext.cs: New constructor takes the mdi parent so it
12064         doesn't have to be computed and avoids a crash on windows. Draw
12065         the window icon properly, and allow the text to be seen.
12066         * Form.cs: Use new MdiChildContext constructor. Make sure the
12067         child context isn't null in wndproc.
12068         * TabControl.cs: Don't set focus, this is muddling keyboard
12069         behavoir. Expand the tab rows when a window size increase will
12070         allow extra tabs to be seen. Don't allow tabs smaller than the
12071         width of a window to be scrolled out of view.
12072         * TreeNode.cs:
12073         * TreeView.cs: Use measure string to calculate a nodes width, the
12074         width is cached and only updated when the text or the font is
12075         changed. Don't check for expand/collapse clicks on the first level
12076         nodes if root lines are disabled.
12077         
12078 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
12080         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
12082 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
12084         * DataGridBoolColumn.cs: fixes warning
12086 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
12088         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
12089         to match more to match more precisely the MS Net behavior
12091 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
12093         * Hwnd.cs: Added field to track if window is mapped
12094         * XplatUIX11.cs: 
12095           - Unmap windows if they become 0-size, re-map when 
12096             they are >0 again; fixes #76035
12097           - Re-set our error handler after initializing X11Desktop
12098             to override any error handlers Gtk or whatever was called
12099             may have set.
12101 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
12103         * CheckedListBox.cs: Removed unused vars
12104         * ListView.cs: Fixed signatures
12105         * RichTextBox.cs: Removed unused vars
12106         * TextBoxBase.cs: Removed unused vars
12107         * XplatUIWin32.cs: Removed unused vars
12108         * XplatUIX11.cs: Removed unused vars
12109         * XplatUI.cs: Updated version and date to latest published
12111 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
12113         * Cursor.cs: Added private .ctor to work around a bug in
12114           resourceset (Thanks to Geoff Norton for the help on this)
12115         * SplitterEventArgs.cs: Made fields accessible so we don't
12116           waste boatloads of objects and can reuse the same one
12117           in Splitter
12118         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
12119           any captions and borders when generating screen coordinates
12120         * Splitter.cs: Reimplemented control, now fully complete, uses
12121           rubberband drawing, supports and obeys all properties, has
12122           proper cursors
12124 2005-10-13  Miguel de Icaza  <miguel@novell.com>
12126         * Form.cs (Form): Setup default values for autoscale and
12127         autoscale_base_size;  Make these instance variables, not static
12128         variables. 
12130         (OnLoad): on the first load, adjust the size of the form.
12132 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
12134         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
12135           width argument to DrawReversibleRectangle()
12136         * XplatUIWin32.cs, XplatUIX11.cs: 
12137           - Implemented width for DrawReversibleRectangle()
12138           - Added logic to DrawReversibleRectangle that recognizes a zero
12139             width or height and only draws a line in that situation
12140         
12141 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
12143         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
12144         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
12145         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
12146           method (it uses our FosterParent window to get a graphics context)
12148 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
12150         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
12151           and SetWindowBackground methods
12152         * Control.cs:
12153           - Setting proper ControlStyles
12154           - We no longer call XplatUI.SetWindowBackground and XplatUI.
12155             EraseWindowBackground, instead we draw the window background
12156             ourselves in PaintControlBackground. This behaviour is
12157             required to match MS, where, when OnPaintBackground is not
12158             called, the background is not drawn.
12159           - Removed unneeded Refresh() in set_Text
12160         * Hwnd.cs: Dropped the ErasePending support. No longer needed
12161         * XplatUIX11.cs:
12162           - Created DeriveStyles method to translate from CreateParams to
12163             FormBorderStyle and TitleStyle, also handles BorderStyle (which
12164             matches FormBorderStyle enum values)
12165           - Consolidated SetHwndStyles and CalculateWindowRect border/title
12166             style calculations into single DeriveStyles method
12167           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
12168             from redrawing the whole window on any resize or expose.
12169           - Fixed CreateWindow usage of SetWindowValuemask. Before not
12170             all styles were applied to our whole/client window appropriately
12171           - Removed EraseWindowBackground() and SetWindowBackground() methods
12172           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
12173             no longer clear/redraw the background through X
12174           - Removed handling of erase_pending bit, we have no use for it (or
12175             so it seems)
12176         * XplatUIOSX.cs:
12177           - Removed generation and handling of WM_ERASEBKGND message
12178           - Removed EraseWindowBackground() and SetWindowBackground() methods
12179           - Removed handling of hwnd.ErasePending flag
12180         * XplatUIWin32.cs:
12181           - Removed EraseWindowBackground() and SetWindowBackground() methods
12182           - We no longer call EraseWindowBackground on PaintEventStart, we 
12183             ignore the fErase flag, erasing is handled in Control in the
12184             background handler
12185         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
12186           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
12187           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
12188           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
12189           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
12190           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
12191           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
12193 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
12195         * PropertyGrids.cs: Get sub properties
12196         * PropertyGridView.cs: Fix drawing code
12198 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12200         * ListBox.cs: Fixes 76383
12202 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12204         * DataGridTextBoxColumn.cs: Sets location and size before attachment
12205         * ThemeWin32Classic.cs: Fixes border drawing and calculations
12206         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
12209 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12211         * ComboBox.cs: Fixes border drawing
12213 2005-10-10  Miguel de Icaza  <miguel@novell.com>
12215         * MimeIcon.cs: Ignore errors if the file can not be read.
12217 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
12219         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
12220          - Fixed border calculations
12221          - Fixed horizontal scrolling in single column listboxes
12222          - Fixed drawing issues
12224 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
12226         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
12227           FormBorderStyle enum
12228         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
12229           code to determine FormBorderStyles from CreateParams
12230         * Form.cs:
12231           - Fixed bug where we'd set the wrong window styles if we were
12232             not creating an MDI window
12233           - Added call to XplatUI.SetBorderStyle when form borders are set
12234         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
12235         * Hwnd.cs:
12236           - Removed obsolete edge style
12237           - Switched from BorderStyle to FormBorderStyle
12238         
12239 2005-10-10  Jackson Harper  <jackson@ximian.com>
12241         * Form.cs: Use the property to get the window handle instead of
12242         accessing it directly. Prevents a null reference exception.
12244 2005-10-10  Jackson Harper  <jackson@ximian.com>
12246         * TreeView.cs: Don't adjust the rect given to DrawString now that
12247         our libgdiplus draws correctly.
12249 2005-10-08  Jackson Harper  <jackson@ximian.com>
12251         * TreeView.cs: Don't try to find the clicked on node if there are
12252         no nodes in the tree.
12254 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
12256         * RichTextBox.cs:
12258           restore
12260 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
12262         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
12263           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
12264           ErrorProvider.cs:
12265           Use ResPool for brushes and dispose System.Drawing objects that
12266           are not used anymore.
12268 2005-10-07  Jackson Harper  <jackson@ximian.com>
12270         * MdiChildContext.cs: Use the new borders instead of drawing them
12271         ourselves.
12273 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
12275         * Calling UpdateBounds after changing the window's BorderStyle 
12276         since the style can change the ClientSize
12278 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12280         * Control.cs: Made PaintControlBackground virtual
12281         * Panel.cs: Overriding PaintControlBackground instead of using paint
12282           event; paint event method was interfering with 'real' users of the
12283           event.
12285 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
12287         * ThemeWin32Classic.cs: remove border drawing since it is handled
12288         by the base control class now and was causing double border drawing.
12290 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12292         * Panel.cs: Redraw our background on paint. Not a pretty solution,
12293           but it does seem to match MS behaviour. This fixes bug #75324
12295 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12297         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
12298           somewhat hackish looking
12300 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12302         * TextBoxBase.cs:
12303           - We now accept Enter even if AcceptEnter is false, if the containing
12304             form does not have an AcceptButton configured (fixes bug #76355)
12305           - Calculations are now fixed to no longer use Width/Height, but
12306             ClientSize.Width/Height, since we now support borders (this was
12307             a result of fixing borders and therefore bug #76166)
12308           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
12309             true (fixes bug #76354)
12310         
12311 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12313         * Control.cs: 
12314           - Defaulting BorderStyle and setting it in XplatUI when our window 
12315             is created
12316           - Added enum check to InternalBorderStyle setter
12317         * XplatUIX11.cs: 
12318           - Added drawing of window borders
12319           - Now properly calculates WM decorations offset for toplevel 
12320             windows (fixes bug #74763)
12321         * XplatUIWin32.cs: 
12322           - Implemented BorderStyles for windows (we're letting win32 draw 
12323             the border for us)
12324           - Fixed the signature for SetWindowLong
12325         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
12326           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
12327           setting borders
12328         * UpDownBase.cs: Remove drawing of borders, this is handled by
12329           the driver, outside the client area
12330         * ListView.cs: Removed bogus border calculations. The control should
12331           be oblivious to borders, since those are not part of the client
12332           area. 
12333         * X11DesktopColors.cs: Commented out (currently) unneeded variables
12334         * ThemeWin32Classic.cs: Removed border calculations from ListView 
12335           drawing code
12337 2005-10-06  Jackson Harper  <jackson@ximian.com>
12339         * MdiChildContext.cs: Clear out the old virtual position remove
12340         all the unneeded calls to CreateGraphics.
12342 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12344         * TextControl.cs: Use proper color for highlighted text; fixes #76350
12346 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12348         * Form.cs: 
12349           - Added loading and setting of our new default icon
12350           - Only set icon if window is already created
12352 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12354         * Label.cs:
12355           - Do not explicitly set the foreground and background colors, to
12356             allow inheriting from parents (fixes #76302)
12357           - Use Control's InternalBorderStyle property to deal with borders
12359 2005-10-06  Jackson Harper  <jackson@ximian.com>
12361         * MdiChildContext.cs: Use the new xplatui function to draw a
12362         reversible rect.
12364 2005-10-06  Jackson Harper  <jackson@ximian.com>
12366         * Form.cs: Add the parent before creating the child context cause
12367         we need the parent when setting up the child.
12369 2005-10-06  Jackson Harper  <jackson@ximian.com>
12371         * FolderBrowserDialog.cs: redo the tree population code so a
12372         second thread isn't used. Should be a lot faster and more stable
12373         now.
12375 2005-10-05  Jackson Harper  <jackson@ximian.com>
12377         * TreeView.cs: There are no expand/collapse boxes if the node has
12378         no children.
12380 2005-10-05  Jackson Harper  <jackson@ximian.com>
12382         * X11DesktopColors.cs: Get menu colours for the gtk theme.
12384 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
12386         * FileDialog.cs: Fix InitialDirectory
12388 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12390         * ComboBox.cs:
12391                 - Fixes changing between styles
12392                 - Fixes simple mode
12393                 - Fixes last item crashing when navigating with keyboard
12395 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12397         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
12399 2005-10-05  Jackson Harper  <jackson@ximian.com>
12401         * TreeView.cs: If updating the root node do a full refresh.
12402         * TreeNode.cs: The root node should be expanded by default. Also
12403         added a utility prop to tell if we are the root node.
12404         * TreeNodeCollection.cs: Only refresh if the node we are being
12405         added to is expanded. Also added a comment on a potential
12406         optimization.
12407         
12408 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
12410         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
12411           in dispose method. Fixes #76330
12413 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
12415         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
12417                 - Implements vertical and horizontal scrolling using XplatUI
12418                 - Fixes keyboard navagation
12419                 - Fixes EnsureVisible
12420                 - Drawing fixes
12421                 - Handles and draws focus properly
12424 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
12426         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
12427           Create handle. NET_2_0: Destroy handle when value is null.
12429 2005-10-03  Jackson Harper  <jackson@ximian.com>
12431         * ScrollBar.cs: My last scrollbar patch was broken. This is a
12432         revert and a new patch to prevent the thumb from refreshing so
12433         much.
12435 2005-10-02  Jackson Harper  <jackson@ximian.com>
12437         * ScrollBar.cs: Don't update position if it hasn't actually
12438         changed. This occurs when you hold down the increment/decrement
12439         buttons and the thumb gets to the max/min.
12441 2005-10-01  Jackson Harper  <jackson@ximian.com>
12443         * Form.cs:
12444         * MdiChildContext.cs:
12445         * MdiClient.cs: Implement ActiveMdiChild in Form.
12447 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
12449         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
12451 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
12453         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
12454           be found
12456 2005-09-30  Jackson Harper  <jackson@ximian.com>
12458         * ListBox.cs: Don't do a full refresh unless some data has
12459         actually changed.
12461 2005-09-30  Jackson Harper  <jackson@ximian.com>
12463         * TreeView.cs: Make sure that the checkboxes size is factored in
12464         even when not visible.
12466 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12468         * FileDialog.cs: Fix Jordi's build break
12470 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12472         * FileDialog.cs: 
12473                 - Use standard the Windows colours for the combobox as espected
12474                 - Dispose objects that use resouces when no longer need them
12476 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12478         * X11DesktopColors.cs: Initial incomplete implementation
12479         * XplatUIX11.cs: Added call to initialize X11DesktopColors
12481 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
12483         * Theme.cs: 
12484           - Switched Theme color names to match the names defined in 
12485             System.Drawing.KnownColors. Life's hard enough, no need to make 
12486             it harder.
12487           - Added setters to all theme color properties so themes can set
12488             their color schemes. The setters also propagate the color changes
12489             to System.Drawing.KnownColors via reflection
12490         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
12491           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
12492           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
12493           use the new, more logical theme color names
12494         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
12495           post-NT colors
12496         * ThemeWin32Classic.cs:
12497           - Removed code to set the old classic Windows colors. Instead it
12498             now relies on the colors returned by System.Drawing.KnownColors
12499             which will be either modern static colors (Unix) or colors
12500             read from the user's configuration (Win32)
12501           - Updated to use the new, more logical theme color names
12502           - Switched DataGrid drawing code to use only Theme colors instead of
12503             a mix of System.Drawing.KnownColors and Theme colors
12504           - DrawFrameControl(): Removed code that fills the button area, the
12505             fill would overwrite any previous fill done by a control. This
12506             fixes bug #75338 
12507           - Added DrawReversibleRectangle() stub
12508         * ScrollableControl.cs: Set visible state to false when scrollbars
12509           are removed (pdn fix)
12510         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
12511           DrawReversibleRectangle() method to allow drawing primitive 
12512           'rubber bands'
12513         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
12515 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12517         * ImageList.cs: Add(Icon): Create handle.
12519 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12521         * ListView.cs:
12522         * ThemeWin32Classic.cs:
12523                 - Fixes detail mode
12524                 - Sets clippings
12525                 - Issues with drawing
12527 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12529         * ImageList.cs: Moved RecreateHandle back to ImageList as event
12530           source has to be the ImageList.
12532 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12534         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
12536 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12538         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
12540 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12542         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
12544 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
12545         * GridItem.cs: Fixed TODOs
12546         * GridItemCollection.cs: Added ICollection interface
12548 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12550         * ImageList.cs: Resize icons when needed.
12552 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
12554         * ListViewItem.cs
12555                 - Fixes GetBounds and returns on screen rects
12556         * ListView.cs:
12557                 - Fixes vertical and horzintal scrolling of items
12558         * ThemeWin32Classic.cs:
12559                 - Fixes drawing
12560                 
12561 2005-09-29  Raja R Harinath  <harinath@gmail.com>
12563         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
12565 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
12567         * ImageList.cs: Added comments about handle creation. Moved Handle,
12568           HandleCreated and OnRecreateHandle implementations to ImageCollection.
12569           Handle is created in Add methods.
12571 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12572          
12573         * DataGridDrawingLogic.cs: 
12574                 - Takes rows into account on Colum calculations
12575                 - Returns the column when clickig
12576         * DataGrid.cs:
12577                 - Fixes default HitTestInfo values
12578                 - Fixes HitTestInfo.ToString
12579                 - Fixes ResetBackColor          
12580         
12581 2005-09-28  Jackson Harper  <jackson@ximian.com>
12583         * MdiChildContext.cs: Obey rules for fixed sized windows (no
12584         sizing or cursor changes). Also added some temp code to draw the
12585         titlebars text (Makes dev a little easier).
12587 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12589         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
12591 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12592          
12593         * ListBox.cs: Fixes bug 76253
12595 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12597         * ImageList.cs: Added comments about the current implementation. Added
12598           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
12599           Format32bppArgb to preserve transparency and can use Graphics.FromImage
12600           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
12601           with Bitmap.LockBits for better performance. Revised the whole file to
12602           match MS.NET behaviour and provide better performance. Non-public
12603           interface members are calling public members even when they throw
12604           NotSupportedException for better maintainability. Moved ColorDepth,
12605           ImageSize, ImageStream and TransparentColor implementations to
12606           ImageCollection for better performance as these properties are not used
12607           by ImageList.
12608         * ImageListStreamer.cs: Added a new internal constructor that takes an
12609           ImageList.ImageCollection and serializes Images based on
12610           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
12611           match ImageList property name.
12613 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
12615         * ListBox.cs: Fixes IndexFromPoint for last item
12617 2005-09-27  Jackson Harper  <jackson@ximian.com>
12619         * Form.cs: Set the position of new mdi children correctly.
12621 2005-09-27  Jackson Harper  <jackson@ximian.com>
12623         * MdiClient.cs: New mdi children need to be added to the back of
12624         the controls collection so the zorder is set correctly. Also add a
12625         count of all the child windows that have been created.
12627 2005-09-27  Jackson Harper  <jackson@ximian.com>
12629         * Form.cs (CreateParams): Setup MDI forms correctly.
12631 2005-09-27  Jackson Harper  <jackson@ximian.com>
12633         * MdiChildContext.cs:
12634         * MonthCalendar.cs:
12635         * UpDownBase.cs:
12636         * ListBox.cs:
12637         * ListView.cs:
12638         * TextBoxBase.cs:
12639         * TreeView.cs:
12640         * ScrollableControl.cs:
12641         * ComboBox.cs: Add implicit controls using the new implict control
12642         functionality in ControlCollection. Also try to block multiple
12643         control add in a suspend/resume layout to save some cycles.
12644         
12645 2005-09-27  Jackson Harper  <jackson@ximian.com>
12647         * Control.cs: Add functionality to the controls collection to add
12648         'implicit controls' these are controls that are created by the
12649         containing control but should not be exposed to the user. Such as
12650         scrollbars in the treeview.
12651         * Form.cs: The list var of the ControlsCollection is no longer
12652         available because of the potential of implicit controls getting
12653         ignored by someone accessing the list directly.
12655 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
12657         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
12658           loose it's parent. (Fixed bug introduced in r49103 when we added
12659           setting the child parent to null on Remove)
12661 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
12663         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
12664         * Splitter.cs: Added missing attributes for BorderStyle property.
12665         * TextBoxBase.cs: Marked Calculate* methods internal.
12666         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
12667         MS.NET.
12669 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
12670          
12671         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
12673 2005-09-25  Jackson Harper  <jackson@ximian.com>
12675         * TreeView.cs: Update the node bounds correctly regardless of
12676         whether the node is visible.
12678 2005-09-25  Jackson Harper  <jackson@ximian.com>
12680         * ImageList.cs: Don't dispose the image after it is added to the
12681         image list. Only reformat images that need to be resized.
12683 2005-09-25  Jackson Harper  <jackson@ximian.com>
12685         * ImageList.cs: Don't set the format when changing the image.
12687 2005-09-25  Jackson Harper  <jackson@ximian.com>
12689         * TreeView.cs: We can't just assume the node has a font. Use the
12690         treeviews font if no node font is available.
12692 2005-09-25  Jackson Harper  <jackson@ximian.com>
12694         * TreeView.cs: Allow the scrollbars to be reset with negative
12695         values.
12696         - Don't add scrollbars to negative sized windows.
12698 2005-09-23  Jackson Harper  <jackson@ximian.com>
12700         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
12701         old Mono.Posix. Also remove some stray code that shouldn't have
12702         been committed.
12704 2005-09-23  Jackson Harper  <jackson@ximian.com>
12706         * TreeView.cs: Attempt at proper sizing of the horizontal
12707         scrollbar. Also don't resize the scrollbars unless they are
12708         visible.
12710 2005-09-23  Jackson Harper  <jackson@ximian.com>
12712         * TreeView.cs: We don't need to expand the invalid area when the
12713         selection changes, as this is all drawn in the node's bounding
12714         box. The area needs to be expanded (previous typo was contracting
12715         it) when the focus rect moves.
12717 2005-09-23  Jackson Harper  <jackson@ximian.com>
12719         * TreeView.cs: Display the selection box under the correct
12720         circumstances. We were rendering white text with no selection box
12721         before.
12723 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
12725         * TextControl.cs(Split): Now updates selection start/end if it points 
12726           into a line that's being split. Fixes a FIXME and bug #75258
12728 2005-09-23  Jackson Harper  <jackson@ximian.com>
12730         * Binding.cs:
12731         * ListControl.cs: Don't use the path when retrieving binding
12732         managers from the binding context. My bat sense tells me that the
12733         path is only used on insertion.
12735 2005-09-22  Jackson Harper  <jackson@ximian.com>
12737         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
12739 2005-09-22  Jackson Harper  <jackson@ximian.com>
12741         * Splitter.cs: There are special cursors used for splitting.
12742         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
12744 2005-09-22  Jackson Harper  <jackson@ximian.com>
12746         * Splitter.cs: Change the cursor appropriately when the splitter
12747         is moused over, so the user actually knows there is a splitter
12748         there.
12750 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12752        * Label.cs : Fix ToString method to give same output as MS.NET
12754 2005-09-22  Jackson Harper  <jackson@ximian.com>
12756         * TreeView.cs: Create the scrollbars when the handle is created
12757         and add them right away, just make them invisble. Also account for
12758         the window being shrunk vertically to the point that the vert
12759         scrollbar needs to be added.
12760         - Remove some 0.5 adjustments to get around anti aliasing issues.
12761         
12762 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
12763          
12764         * MainMenu.cs: Fixes default value
12765         * MenuItem.cs: Fixes default value
12767 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
12769         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
12771 2005-09-21  Jackson Harper  <jackson@ximian.com>
12773         * Control.cs: Don't try to set the border style on the window if
12774         it hasn't been created. When the window is created the border
12775         style will be used.
12777 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12779         * Control.cs (Update): Don't call XplatUI if we don't have a
12780           window handle yet
12782 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12784         * ContainerControl.cs: Instead of throwing an exception, print
12785           a one-time warning about Validate not being implemented
12786         * XplatUIWin32.cs: Removed debug output
12788 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12790         * Control.cs: Only set XplatUI background if we expect the windowing
12791           system to handle the background. This stops controls that draw their
12792           own background from flickering
12794         * XplatUIX11.cs: Support custom visuals and colormaps for window 
12795           creation. This allows, amongst other things, using MWF X11 windows 
12796           with OpenGL.
12798 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12800         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
12801           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
12802           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
12803           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
12804           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
12805           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
12806           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
12807           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
12808           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
12809           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
12810           GridColumnStylesCollection.cs, 
12811           IDataGridColumnStyleEditingNotificationService.cs,
12812           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
12813           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
12814           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
12815           TreeNodeCollection.cs, AmbientProperties.cs, 
12816           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12817           DataObject.cs, ErrorProvider.cs, Splitter.cs,
12818           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
12819           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
12820           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
12821           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
12822           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
12823           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
12824           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
12825           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
12826           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
12827           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
12828           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
12829           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
12830           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
12831           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
12832           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
12833           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
12834           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
12835           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
12836           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
12837           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
12838           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
12839           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
12840           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
12841           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
12842           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
12843           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
12844           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
12845           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
12846           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
12847           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
12848           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
12849           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
12850           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
12851           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
12852           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
12854 2005-09-21  Jackson Harper  <jackson@ximian.com>
12856         * TreeNode.cs: Call Before/After Expand not Collapse when
12857         expanding.
12859 2005-09-20  Jackson Harper  <jackson@ximian.com>
12860         
12861         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
12863 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12864          
12865         * ListViewItem.cs:
12866                 - Fixes bug 76120
12867                 - Fixes proper storing of subitems
12868                 - Fixes not updated items
12870 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
12872         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
12873           things if our window handle isn't created yet. Also disabled 
12874           debug for TextBoxBase
12876 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
12878         * MenuAPI.cs: Remove filtering of events to allow menu usage
12880 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12882         * Cursor.cs: Allow null to be passed to Cursor.Current.
12884 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
12886         * ThemeWin32Classic.cs:
12887           - Change some private methods/fields to protected virtual so that 
12888             they can be accessed and overriden in derived classes
12889           - First refactoring of some methods. Derived themes now don't 
12890             need to duplicate the complete code from ThemeWin32Classic
12891         * ThemeNice.cs:
12892           - Added nice StatusBar
12893           - Derive from ThemeWin32Classic and not Theme
12894           - Removed duplicate ThemeWin32Classic code
12896 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12898         * Control.cs (ControlCollection.Add): If the value null is passed
12899         the control is ignored. 
12901         Optimize this loop.
12903 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
12905         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
12906           PostQuitMessage state.
12907         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
12909 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
12911         * Application.cs: Our constructor will never get called, move 
12912           initialization to fields; fixes bug #75933
12914 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12916         * FileDialog.cs :
12917                 - Allow files to be selected properly using file name
12918                 combo box.
12919                 - Add ability to change diretory (absolute / relative)
12920                 using file name combo box.
12922 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12923          
12924         * ListBox.cs: 
12925                 - Fixes Multicolumn listboxes item wrong calculations
12926                 - Allows to click when only one item is in the listbox
12927                 - Fixes crash when no items using keyboard navigation
12929 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
12931         * ComboBox.cs: Reverted almost everything from the latest patch which
12932           broke ComboBox
12934 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
12935         
12936         * ToolTip.cs:
12937                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
12938         * ComboBox.cs:
12939                 - When DropDownStyle is Simple, it does not show scrollbar 
12940                 to the last item of the list.
12941                 - When DropDownStyle is Simple, it crashed when the list was 
12942                 scrolled down with the down cursor key.
12943                 - Fixed a bug that when DropDownStyle is DropDownList, the 
12944                 selected item was not shown.
12945                 - The position of the selected item was not preserved when 
12946                 the next dropdown happened.
12947         * ThemeWin32Classic.cs:
12948                 - Items were wrapped at the right end.
12949         * CheckedListBox.cs:
12950                 - Fixed Add method
12951         * ListBox.cs:
12952                 - Items should be fully shown.
12953                 - When resizing and vertical scrollbar disappeared, the item 
12954                 of index 0 should be on the top of the list.
12955                 - GetItemRectangle should consider the size of ver. scrollbar
12956         * StatusBar.cs:
12957                 - SizingGrip area should not be allocated when it is not 
12958                 displayed.
12959                 - Now it reflects MinWidth of the containing panel and 
12960                 fixed a crash that happens when its width becomes so small.
12962 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12964         * CheckedListBox.cs: Fixes bug 76028
12965         * ListBox.cs: Fixes bug 76028
12967 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12969         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
12970         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
12972 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
12974         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
12976 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12978         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
12980 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12982         * IRootGridEntry.cs: Added
12983         * PropertyGridCommands.cs: Added
12984         * PropertiesTab.cs: Added missing methods and property
12985         * PropertyGridView.cs: Made class internal
12986         * PropertyGridTextBox.cs: Made class internal
12988 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12990         * MimeIcon.cs: Try to check some other environment variables
12991           if "DESKTOP_SESSION" returns "default"
12993 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12995         * ThemeNice.cs: Corrected background colors (e.g. menus)
12996         * ColorDialog.cs: Use correct background colors for controls
12998 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
13000         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
13002 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
13004         * RichTextBox.cs: Added initial implementation
13005         * lang.cs: Removed. Was accidentally checked in long time ago
13006         * TODO: Removed. Contents were obsolete
13008 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
13009                                                                                 
13010         * PropertiesTab.cs : Added
13012 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
13013                                                                                 
13014         * PropertyGrid.cs : Update
13015         * PropertyGridView.cs : Update
13016         * System.Windows.Forms.resx : Added images and strings
13018 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
13020         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
13022 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
13024         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
13025           a busy loop right after the Ungrab the X11 display is otherwise 
13026           blocked
13028 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
13030         * ThemeWin32Classic.cs: Optimise the use of clipping
13032 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
13034         * DataGrid.cs: fixes recursion bug
13036 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
13038         * ThemeNice.cs: 
13039           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
13040           - Cleanup
13042 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
13044         * ThemeNice.cs: Draw nice ProgressBars
13046 2005-09-01  Miguel de Icaza  <miguel@novell.com>
13048         * VScrollBar.cs: Another buglet found by Aaron's tool. 
13050         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
13051         bug finder.
13053 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
13055         * ThemeNice.cs:
13056           - Added nicer menu drawing
13057           - Updated DrawTab
13058           - some refactoring
13060 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
13062         * CreateParams.cs (ToString): Made output match MS
13063         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
13064             handle is already created (to avoid forcing window creation)
13065         * XplatUIX11.cs: Set window text to caption after creating window,
13066           in case Text was set before window was created
13067         * Form.cs: Use this.Text instead of a static string as caption
13069 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13071         * NotifyIcon.cs: Don't set the window to visible; this screws
13072           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
13073           OnPaint without a bitmap)
13074         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
13075           happen very often anyway; we could add the check to the WM_PAINT 
13076           event generation code
13078 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
13080         * NotifyIcon.cs: Fill the icon area with a background color, to 
13081           avoid 'residue' when transparent icons are drawn
13082         * XplatUIX11.cs:
13083           - Handle whole_window == client_window when destroying windows
13084           - SystrayAdd(): Set client_window to whole_window value to
13085             get mouse and other events passed to NotifyIcon
13087 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
13089         * Form.cs: Set proper default for Opacity property
13090         * NotifyIcon.cs:
13091           - ShowSystray(): Don't bother creating telling the OS
13092             about the systray item if no icon is provided
13093           - Now handles WM_NCPAINT message to deal with whole/client window
13094             split
13095           - Create window as visible to not get caught by Expose optimization
13096         * Hwnd.cs: Removed debug message
13097         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
13098           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
13099             PaintEventStart/End to use new client argument
13100         * TextBoxBase.cs:
13101           - Commented out debug messages
13102           - Switched PaintEventStart/End to use new client argument
13103         * XplatUI.cs: Added client window bool to PaintEventStart()/
13104           PaintEventEnd() calls, to support drawing in non-client areas
13105         * XplatUIDriver.cs: 
13106           - Added client window bool to PaintEventStart()/PaintEventEnd() 
13107             calls, to support drawing in non-client areas
13108           - Added conditional compile to allow using MWF BeginInvoke 
13109             on MS runtime
13110         * XplatUIX11.cs:
13111           - Added some conditional debug output
13112           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
13113             whole/client window split
13114           - Implemented handling of client argument to PaintEventStart()/End()
13115         * Control.cs:
13116           - Throw exception if BeginInvoke() is called and the window handle
13117             or one of the window's parent handles is not created
13118           - Added conditional compile to allow using MWF BeginInvoke on
13119             MS runtime
13120           - get_Parent(): Only sets parent if handle is created. This avoids
13121             forcing window handle creation when parent is set.
13122           - Now fires Layout and Parent changed events in proper order
13123           - Switched to use Handle instead of window.Handle for Z-Order setting,
13124             the get_Parent() patch above causes us to possibly get null for 'window'
13125           - Implemented handling of client argument to PaintEventStart()/End()
13126           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
13127             default handling)
13128           - Now sends a Refresh() to all child windows when Refresh() is called
13130 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
13132         * Form.cs: Added (non-functional) Opacity property
13133         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
13135 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
13136         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
13137           use export MONO_THEME=nice to activate it.
13138           Currently supported controls:
13139           - Button
13140           - ComboBox
13141           - ScrollBar
13142           - TabControl (TabAlignment.Top only, other will follow)
13143         * ThemeEngine.cs: Add theme nice
13144         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
13145           if enabled
13147 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
13149         * Splitter.cs: Resize docked control and its neighbor.
13151 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
13152         -- Making Windows with Menus layout correctly --
13153         * Form.cs : The first leg of the fix
13154                 Menu setter - adjust Client Size as needed to make space for the menu
13155                 SetClientSizeCore - doesn't call base version to be able to pass the 
13156                         menu handle to XplatUI.CalculateWindowRect
13157         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
13158         * XplatUIX11.cs: The critical second leg of the fix
13159                 GetWindowPos needs to use a recalculated client_rect
13160                 so that resizing the window doesn't break layout of child controls. 
13161                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
13162                 Lots of \t\n killed
13164 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
13166         * Label.cs: Now properly recalculates width and height on Font and Text
13167           changes if AutoSize is set
13169 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
13170         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
13172 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
13174         * ImageList.cs: Makes ToString method compatible with MS
13176 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
13178         * MenuAPI.cs: fixes bug 75716
13180 2005-08-11 Umadevi S <sumadevi@novell.com>
13181         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
13183 2005-08-11 Umadevi S <sumadevi@novell.com>
13184         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
13186 2005-08-10  Umadevi S <sumadevi@novell.com>
13187         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
13189 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
13191         * Menu.cs: fixes bug 75700
13192         * MenuAPI.cs: fixes navigation issues
13194 2005-08-09  Umadevi S <sumadevi@novell.com>
13195         * CheckedListBox.cs - simple fix for GetItemChecked.
13197 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
13199         * ComboBox.cs: Serveral fixes
13200         * ListBox.cs: Serveral fixes
13202 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
13204         * ComboBox.cs: Fixes FindString methods and GetItemHeight
13205         * ListBox.cs: Fixes FindString methods
13207 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
13209         * DataGrid.cs: fixes bugs exposed by new tests
13211 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
13213         * Mime.cs: Compile Mono assembly references only if compiling
13214           with Mono (Allows to build with VS.Net again)
13216 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
13218         * Control.cs (PaintControlBackground): Draw background image
13219         corrrectly.
13220         (CheckForIllegalCrossThreadCalls): Stubbed.
13221         
13222         * Form.cs (OnCreateControl): Center when should be centered.
13223         
13224         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
13226 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
13228         * Binding.cs: Binding to properties should be case unsensitive
13230 2005-07-18 vlindos@nucleusys.com
13232         * DataGrid.cs: fixes setmember order
13234 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
13236         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
13237         * FileDialog.cs: FileDialog is now resizable and uses the new
13238           MimeIconEngine
13240 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
13242         * DataGridTextBoxColumn.cs: default value
13243         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
13244         * GridTableStylesCollection.cs: fixes checking MappingName
13245         * DataGridDrawingLogic.cs: fixes drawing logic issues
13246         * DataSourceHelper.cs: rewritten to make compatible with more data sources
13247         * DataGrid.cs: fixes    
13249 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
13251         * MimeGenerated.cs: Use case sensitive comparer for
13252           NameValueCollections
13254 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
13256         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
13257         * ThemeWin32Classic.cs: bug fixes, code refactoring
13258         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
13259         * DataGrid.cs: bug fixes, code refactoring
13260         * DataGridTextBox.cs: bug fixes, code refactoring
13261         * DataGridColumnStyle.cs:  bug fixes, code refactoring
13262         * Theme.cs:  bug fixes, code refactoring
13264 2005-07-01  Peter Bartok  <pbartok@novell.com> 
13266         * TextControl.cs: Quick fix for the reported crash on ColorDialog
13267           and other text box usage
13269 2005-07-01  Jackson Harper  <jackson@ximian.com>
13271         * TabControl.cs: Make sure the bottom of the tab covers the pages
13272         border.
13274 2005-06-30  Peter Bartok  <pbartok@novell.com> 
13276         * Form.cs (ShowDialog): Assign owner of the dialog
13277         * TextBoxBase.cs: Always refresh caret size when deleting, caret
13278           might have been moved to a tag with different height
13280 2005-06-30  Jackson Harper  <jackson@ximian.com>
13282         * Form.cs: Don't create an infinite loop when setting focus
13283         * MenuItem.cs: Don't dirty the parents if we don't have any
13285 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
13287         * LibSupport.cs: Rename
13289 2005-06-29  Peter Bartok  <pbartok@novell.com>
13291         * TextBoxBase.cs: Re-align caret after deleting a character
13292         * TextControl.cs:
13293           - DeleteChars(): Ensure that tag covers the provided position
13294           - StreamLine(): Drop reference for dropped tag
13296 2005-06-29  Peter Bartok  <pbartok@novell.com> 
13298         * TextControl.cs: 
13299           - Selections now work properly, anchoring at the initial location
13300             and properly extending in either direction (SetSelectionToCaret(),
13301             SetSelectionStart() and SetSelectionEnd())
13302           - No longer redraws the whole control on selection change, now
13303             calculates delta between previous and new selection and only
13304             invalidates/redraws that area
13305           - Fixed FindPos() math off-by-one errors
13306           - Changed DeleteChars() to verify the provided tag covers the
13307             provided position, selections may have a tag that doesn't cover
13308             the position if the selection is at a tag border
13309           - Fixed off-by-one errors in DeleteChars()
13310           - Added missing streamlining check in DeleteChars() to remove
13311             zero-length tags
13312           - Implemented Invalidate() method, now properly calculates exposures
13313             between two given lines/positions
13314           - Implemented SetSelection()
13315           - Obsoleted and removed FixupSelection()
13316           - Improved RecalculateDocument() logic, removing code duplication
13318 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13320         * LibSupport.cs: changes to match different input/output arguments.
13322 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13324         * LibSupport.cs: added libsupport.so init routine.
13326 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
13327         
13328         * ControlBindingsCollection.cs
13329                 - Throws an exception on null datasource when adding
13330                 - Checks for duplicated bindings when adding
13332 2005-06-28  Jackson Harper  <jackson@ximian.com>
13334         * TreeView.cs (OnKeyDown): Support left and right properly
13335         (navigates as well as expanding and collapsing.
13336         - Add support for Multiply, this expands all the selected nodes
13337         children.
13338         - Fix some tabbing.
13340 2005-06-28  Jackson Harper  <jackson@ximian.com>
13342         * TreeView.cs: Implement keyboard navigation, currently supports,
13343         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
13344         support for toggling checkboxes with the space bar.
13346 2005-06-28  Jackson Harper  <jackson@ximian.com>
13348         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
13349         tree.
13351 2005-06-28  Jackson Harper  <jackson@ximian.com>
13353         * TreeView.cs: Add missing event.
13355 2005-06-27  Peter Bartok  <pbartok@novell.com> 
13357         * TextControl.cs:
13358           - Made line ending size configurable (now allows for counting 
13359             lineendings as \n or \r\n)
13360           - Added margin to viewport to keep caret visible on right side
13361           - Fixed translation routines for line/pos to documentpos to consider
13362             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
13363           - Fixed some line-endings to be unix style
13364           - Fixed Document.FormatText to perform it's calculations 1-based
13365           - Added descriptions for a few methods that might otherwise get 
13366             used wrong
13367           - Added NOTE section with some basic conventions to remember at 
13368             the top of the file
13369           - Major fixup for RichTextBox selection drawing:
13370             * Fixed crashes when multiple tags on a single line were selected
13371             * fixed selection box drawing not overlaying text
13372             * fixed bogus offset calculation for tags not starting at index 1
13373             * Switched behaviour from using multiple Substrings of a 
13374               StringBuilder.ToString() to using multiple 
13375               StringBuilder.ToString(start, length) statements, hoping this is
13376               faster (kept original version commented out in the code, in case
13377               original version was faster)
13378         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
13379           alignment != Left
13380         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
13381           call it as well
13383 2005-06-27  Jackson Harper  <jackson@ximian.com>
13385         * TabControl.cs: Move to the left and right with the arrow
13386         keys. These keys don't cycle beyond first and last like
13387         tab. Refresh all the tabs when scrolling them to the left or
13388         right.
13390 2005-06-27  Jackson Harper  <jackson@ximian.com>
13392         * TabControl.cs:
13393           - ToString: Added method
13394           - CreateParams: Remove TODO and comment
13395           - OnKeyDown: Cycle through bounds properly.
13396           - SelectedIndex: Scroll to the right or left if we need to
13397           display the newly selected tab.
13399 2005-06-23  Jackson Harper  <jackson@ximian.com>
13401         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
13402         set.
13404 2005-06-23  Jackson Harper  <jackson@ximian.com>
13406         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
13407         CTRL-SHIFT-TAB, and HOME, END are there any others?
13409 2005-06-23  Jackson Harper  <jackson@ximian.com>
13411         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
13413 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13414         
13415         * DataGridTextBoxColumn.cs: fixes and enhancements
13416         * ThemeWin32Classic.cs: fixes and enhancements
13417         * DataGridBoolColumn.cs:  fixes and enhancements
13418         * DataGridDrawingLogic.cs:  fixes and enhancements
13419         * CurrencyManager.cs: fixes and enhancements
13420         * DataGrid.cs: fixes and enhancements
13421         * DataGridColumnStyle.cs:  fixes and enhancements
13423 2005-06-22  Jackson Harper  <jackson@ximian.com>
13425         * TabControl.cs: Add some missing methods that just call into the
13426         base. Make the TabPageCollection's IList interface behave in the
13427         same manner as the MS implementation.
13429 2005-06-22  Peter Bartok  <pbartok@novell.com> 
13431         * TextControl.cs: Added sanity check
13432         * TextBoxBase.cs: 
13433           - Fixed wrapping behaviour, don't set wrap on single line controls
13434             (this fixes the breakage of colordialog introduced in an earlier
13435              checkin)
13436           - Added rudimentary support for autoscrolling right-aligned controls
13437             (still needs fixing, also, center alignment scroll is missing)
13439 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13440         
13441         * ScrollBar.cs: Fixes thumbpos on Maximum values
13443 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
13444         
13445         * PropertyGridView.cs: Pass context information to UITypeEditors 
13447 2005-06-21  Peter Bartok  <pbartok@novell.com> 
13449         * TextBoxBase.cs:
13450           - Now calling PositionCaret with absolute space coordinates
13451           - Enabled vertical scrolling
13452           - Better tracking of scrollbar changes, tied into WidthChange
13453             event
13454           - Improved cursor tracking
13455           - Removed debug output
13456         * TextControl.cs:
13457           - PositionCaret coordinates are now works in absolute space, not 
13458             the canvas
13459           - Improved tracking of document size
13460           - Added events for width and height changes
13462 2005-06-21  Peter Bartok  <pbartok@novell.com>
13464         * Form.cs: Set focus to active control when form is activated
13465         * TextControl.cs: 
13466           - Added word-wrap functionality to RecalculateLine() 
13467           - Added some short function descriptions for VS.Net to aid in
13468             writing dependent controls
13469           - Added Caret property, returning the current coords of the caret
13470           - Added ViewPortWidth and ViewPortHeight properties
13471           - Added Wrap property
13472           - Added CaretMoved event
13473           - Removed some old debug code
13474           - Split() can now create soft splits
13475           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
13476           - Added method to format existing text
13477           - Fixed size/alignment calculations to use viewport
13478           - RecalculateDocument now can handle changing line-numbers while
13479             calculating lines
13481         * TextBox.cs:
13482           - Added some wrap logic, we don't wrap if alignment is not left
13483           - Added casts for scrollbar var, base class switched types to
13484             also support RichTextBoxA
13485           - Implemented handling of scrollbar visibility flags
13487         * TextBoxBase.cs:
13488           - Switched scrollbars type to RichTextBoxScrollBars to support
13489             RichTextBox
13490           - Added tracking of canvas width/height
13491           - Switched scrollbars to be not selectable (to keep focus on text)
13492           - Added central CalculateDocument() method to handle all redraw
13493             requirements
13494           - Added ReadOnly support
13495           - Added WordWrap support
13496           - Fixed handling of Enter key (we now treat it as a DialogKey)
13497           - Fixed caret positioning when h or v scroll is not zero
13498           - Fixed placing/generation of vertical scrollbar
13499           - Added CalculateScrollBars() method to allow updating scrollbar
13500             limits and visibility
13501           - Fixed handling of horizontal scroll
13502           - Added handling of vertical scroll
13503           - Implemented auto-'jump' when caret moves to close to a left or
13504             right border and there is text to be scrolled into view (currently
13505             there's the potential for a stack overflow, until a bug in
13506             scrollbar is fixed)
13508 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
13509         
13510         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
13512 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
13514         * Mime.cs:
13515         - added inodes.
13516         - return application/x-zerosize for files with size zero
13517           (if no extension pattern matches).
13518         - check matches collection for strings too.
13519         - return only the first mime type if the name value
13520           collection has more than one mime type.
13522 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
13523         
13524         * PropertyGrid.cs: Cleaned up some TODOs
13525         * PropertyGridView.cs: Added support for UITypeEditors
13527 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13528         
13529         * DataGrid.cs: clears cached value
13531 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13533         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
13534         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
13535         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
13536         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
13537         
13538 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
13540         * ThemeWin32Classic.cs: fixes colour
13542 2005-06-15  Peter Bartok  <pbartok@novell.com>
13544         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
13545         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
13546         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
13547         * Control.cs: Added some MWFCategory and MWFDescription attributes
13548         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
13550 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
13552         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
13553         usage
13555 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
13557         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
13558         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
13559         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
13560         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
13561         * DataGrid.cs: default datagrid settings for Default Styles, fixes
13562         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
13564 2005-06-13  Jackson Harper  <jackson@ximian.com>
13566         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
13567         isn't printed when the user enables dropping. (X11 does accept
13568         drops).
13569         
13570 2005-06-13  Jackson Harper  <jackson@ximian.com>
13572         * TreeView.cs: Remove some TODOS.
13574 2005-06-13  Jackson Harper  <jackson@ximian.com>
13576         * Form.cs: Hook into the mdi framework.
13577         * MdiClient.cs: Use the base control collections add method so
13578         parents get setup correctly. Set the default back colour and dock
13579         style.
13580         * MdiChildContext.cs: New class, this bad actor handles an
13581         instance of an MDI window. Right now there is only basic
13582         support. You can drag, close, and resize windows. Minimize and
13583         Maximize are partially implemented.
13585 2005-06-13  Jackson Harper  <jackson@ximian.com>
13587         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
13588         freaky when both vals are negative. NOTE: There are probably other
13589         places in XplatUIX11 that this needs to be done.
13591 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
13593         * DataGrid.cs: implement missing methods, move KeyboardNavigation
13594         * DataGridColumnStyle.cs: fixes signature
13596 2005-06-12  Jackson Harper  <jackson@ximian.com>
13598         * XplatUIX11.cs: Use sizing cursors similar to the ones on
13599         windows.
13601 2005-06-11  Jackson Harper  <jackson@ximian.com>
13603         * StatusBarPanel.cs: Signature cleanups. Implement
13604         BeginInit/EndInit.
13606 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
13608         * DataGridTextBoxColumn.cs: Honors aligment
13609         * GridColumnStylesCollection.cs: Contains is case unsensitive
13610         * GridTableStylesCollection.cs: several fixes
13611         * DataGridTableStyle.cs: default column creation
13612         * DataGridDrawingLogic.cs: fixes
13613         * CurrencyManager.cs: ListName property
13614         * DataGrid.cs: multiple styles support
13615         * DataGridColumnStyle.cs: fixes
13616         
13618 2005-06-10  Peter Bartok  <pbartok@novell.com>
13620         * Control.cs(Select): Moved SetFocus call to avoid potential
13621           loops if controls change the active control when getting focus
13622         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
13623           the up/down buttons
13625 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
13627         * ImageListConverter.cs: Implemented
13629 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13631         * MonthCalendar.cs: Wired in NumericUpDown control for year
13633 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13635         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
13636           DoubleClick events, since they are not meant to be fired.
13638 2005-06-09  Peter Bartok  <pbartok@novell.com>
13640         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
13641           Jonathan's standalone controls into MWF, implemented missing
13642           events, attributes and methods; added xxxAccessible classes
13643         * AccessibleObject.cs: Made fields internal so other classes
13644           can change them if needed
13646 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
13648         * UpDownBase.cs: Complete implementation
13649         * NumericUpDown.cs: Complete implementation
13650         * DomainUpDown.cs: Complete implementation
13652 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
13654         * DataGridTextBoxColumn.cs: drawing fixes
13655         * DataGridCell.cs: fixes ToString method to match MSNet
13656         * DataGridTableStyle.cs: fixes
13657         * DataGridBoolColumn.cs: fixes, drawing
13658         * DataGridDrawingLogic.cs: fixes, new methods
13659         * DataGridTextBox.cs: Keyboard and fixes
13660         * DataGrid.cs:
13661                 - Keyboard navigation
13662                 - Scrolling fixes
13663                 - Row selection (single, multiple, deletion, etc)
13664                 - Lots of fixes
13665         
13666 2005-06-07  Jackson Harper  <jackson@ximian.com>
13668         * ThemeWin32Classic.cs: Clear the background area when drawing
13669         buttons.
13671 2005-06-06  Peter Bartok  <pbartok@novell.com>
13673         * ImageListStreamer.cs: Fixed signature for GetData
13674         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
13675         * ComboBox.cs:
13676           - Added missing ChildAccessibleObject class
13677           - Added missing OnXXXFocus overrides, switched to using those
13678             instead of the event handler
13679         * Control.cs:
13680           - Added Parent property for ControlAccessibleObject
13681           - Fixed signatures
13682           - Fixed attributes
13683           - Added ResetBindings()
13684         * ListBindingConverter.cs: Implemented some methods
13685         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
13686         * ImageList.cs: Implemented basic handle scheme, removed TODOs
13687         * ContainerControl.cs: Fixed signature, now subscribing to the
13688           ControlRemoved event instead of overriding the handler, LAMESPEC
13689         * CurrencyManager.cs: Added missing attribute
13690         * MonthCalendar.cs: Added missing properties
13692 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13694         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
13695         
13696 2005-06-06  Gaurav Vaish and Ankit Jain
13698         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
13699         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
13700         
13701 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13703         * Control.cs: fixes CreateParams Width / Height.
13705 2005-06-05  Peter Bartok  <pbartok@novell.com>
13707         * Win32DnD.cs: Removed compilation warnings
13709 2005-06-05  Peter Bartok  <pbartok@novell.com>
13711         * Control.cs (CreateParams): Since we don't know if one of the
13712           properties we use is overridden, lets make sure if we fail accessing
13713           we continue with a backup plan
13715 2005-06-05  Peter Bartok  <pbartok@novell.com>
13717         * Win32DnD.cs:
13718           - Removed debug output
13719           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
13720             struct
13721           - Plugged resource leak
13722         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
13723           MS size
13725 2005-06-05  Peter Bartok  <pbartok@novell.com>
13727         * XplatUIWin32.cs: Removed DnD code
13728         * Win32DnD.cs: Implemented drop source and drop target functionality
13730 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13732         * UpDownBase.cs: remove duplicate addition of event, enable some code
13733         that was commented out.
13734         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
13735         Validate input when a key is pressed. It works fine now for every
13736         combination of Hexadecimal. Only missing some drawing love when sharing
13737         space with other controls.
13739 2005-06-04  Peter Bartok  <pbartok@novell.com>
13741         * Control.cs:
13742           - We need to pass a window for DragDrop, so enable callback events
13743           - Added DnD callback events when being a DragSource
13744         * XplatUI.cs (StartDrag): Added window handle argument
13745         * XplatUIDriver.cs (StartDrag): Added window handle argument
13746         * QueryContinueDragEventArgs: Made fields internally accessible so
13747           drivers can set them
13748         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
13749           can set them
13751 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
13753         * DataGridTextBoxColumn.cs: column text editing
13754         * DataGridTableStyle.cs: Respect columns styles created by the user
13755         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
13756         * DataGridBoolColumn.cs: bool column editing
13757         * DataGrid.cs: fixes to scrolling, properties, etc
13758         * DataGridTextBox.cs: handle keyboard
13759         * DataGridColumnStyle.cs: fixes
13761 2005-06-02  Jackson Harper  <jackson@ximian.com>
13763         * ImageListStreamer.cs: Somewhat broken implementation of
13764         GetObjectData. The RLE needs some work to match MS properly.
13766 2005-06-02  Jackson Harper  <jackson@ximian.com>
13768         * X11Dnd.cs: Attempting to keep at least one file in MWF
13769         monostyled.
13771 2005-06-02  Peter Bartok  <pbartok@novell.com>
13773         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
13774           that way
13776 2005-06-02  Peter Bartok  <pbartok@novell.com>
13778         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
13779         * XplatUI.cs: Added DoDragDrop() method
13780         * XplatUIDriver.cs: Added DoDragDrop() method
13782 2005-06-02  Jackson Harper  <jackson@ximian.com>
13784         * Splitter.cs: Implement BorderStyle.
13786 2005-06-02  Jackson Harper  <jackson@ximian.com>
13788         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
13789         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
13790         X11 using XDND.
13792 2005-06-02  Peter Bartok  <pbartok@novell.com>
13794         * DataObject.cs:
13795           - Added Data setter
13796           - Fixed broken insertion code for SetData, now also
13797             overwrites any existing entry of the same format name
13798         * Hwnd.cs: Added list of pointers that automatically gets
13799           freed when the window is disposed
13800         * XplatUI.cs: Call driver initialization method when loading
13801           a driver
13802         * Control.cs:
13803           - OnDragLeave takes EventArgs, not DragEventArgs
13804           - Added setting of WS_EX_ACCEPTFILES style when dropping is
13805             supported
13806           - Forces style update when drop state changes
13807         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
13808           not perfect since we cannot (yet) call the IDataObject.GetData()
13809           method, we keep getting 0x80004005 error, dunno why)
13811 2005-06-02  Peter Bartok  <pbartok@novell.com>
13813         * DragEventArgs.cs: Make fields internal so we can cache the
13814           object and re-set the fields from XplatUI
13816 2005-06-02  Jackson Harper  <jackson@ximian.com>
13818         * Control.cs: Add some internal methods so the DnD subsystem can
13819         raise DnD events. Also call into the driver when AllowDrop is set.
13820         * XplatUI.cs:
13821         * XplatUIDriver.cs: New method for setting whether or not a window
13822         is allowed to accept drag and drop messages.
13823                 
13824 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
13825         
13826         * ScrollBar.cs: Make sure that values sent in Scroll events
13827         are always between Maximum and Minimum.
13829 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
13831         * Menu.cs: Call MenuChanged when menuitem visibility has been
13832         changed.
13833         * MenuItem.cs: Rebuild menu when item is (not) visible.
13834         * MainMenu.cs: MainMenu has special MenuChanged.
13835         * Theme.cs: Caption and FrameBorderSize are not fixed.
13836         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
13837         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
13838         * XplatUIX11.cs,
13839         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
13840         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
13842 2005-05-30  Jackson Harper  <jackson@ximian.com>
13844         * DataFormat.cs: We can't statically initialize this stuff because
13845         it calls into the xplatui and could create a loop. So we lazy init
13846         it.
13848 2005-05-28  Jackson Harper  <jackson@ximian.com>
13850         * Control.cs: Proper implementation of Product(Name/Version).
13852 2005-05-27  Jackson Harper  <jackson@ximian.com>
13854         * DataObject.cs: Dont crash if no data is found.
13856 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
13857         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
13858                 as per status page, guessing it should be set to true
13860 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
13862         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
13863         * DataGridTableStyle.cs: set proper formatting text, def header text
13864         * ThemeWin32Classic.cs: new themable paramaters
13865         * DataGridBoolColumn.cs: paint check box, get data, fixes
13866         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
13867         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
13868         * DataGridColumnStyle.cs: fixes
13869         * Theme.cs: new themable paramaters
13870                 
13871 2005-05-26  Peter Bartok  <pbartok@novell.com>
13873         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
13875 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13876         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
13878 2005-05-24  Peter Bartok  <pbartok@novell.com>
13880         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
13881           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
13882           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
13883           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
13884           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
13885           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
13886           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
13887           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
13888           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
13889           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
13890           missing attributes, etc
13891         * DataGridPreferredColumnWidthTypeConverter.cs: Added
13893 2005-05-24  Peter Bartok  <pbartok@novell.com>
13895         * Help.cs: Added, implemented trivial functions, throws up MessageBox
13896           when user tries to get help
13897         * DataObject.cs, DataFormats.cs, LinkArea.cs,
13898           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
13899           to suppress warnings
13900         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
13901           avoid unreachable code warning
13903 2005-05-20  Peter Bartok  <pbartok@novell.com>
13905         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
13907 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13909         * DataGridTextBoxColumn.cs: Basic painting methods
13910         * DataGridTableStyle.cs: Set table style in the column
13911         * ThemeWin32Classic.cs: Use Theme for colors
13912         * DataGridDrawingLogic.cs: Implement more drawing
13913         * DataGrid.cs: drawing, theming, enhacements, fixes
13914         * DataGridColumnStyle.cs: fixes, drawing
13915         * Theme.cs: theming for Datagrid
13917 2005-05-20  Peter Bartok  <pbartok@novell.com>
13919         * Cursor.cs: Implemented GetObjectData() method
13921 2005-05-20  Peter Bartok  <pbartok@novell.com>
13923         * Cursors.cs: Added setting of cursor name
13924         * Cursor.cs:
13925           - Implemented constructors
13926           - Implemented Draw and DrawStretched
13927           - Implemented Current property
13928           - Implemented == and != operators
13929           - Implemented Dispose()
13930           - Implemented ToString
13931           - Added missing attributes
13932         * XplatUIX11.cs:
13933           - Added missing reset for OverrideCursor when DoEvents is called
13934           - Fixed creation of cursor, logic was wrong
13935         * XplatUIWin32.cs:
13936           - Added missing reset for OverrideCursor when DoEvents is called
13937           - Fixed creation of cursor, bit arrays were swapped
13938         * Clipboard.cs: Removed obsolete MonoTODO attribute
13940 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13942         * ComboBox.cs: fixes OnSelectedItemChanged
13943         * ControlBindingsCollection.cs: fixes item range check
13945 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13947         * UpDownBase.cs:
13948                 - Calc preferred height properly
13949                 - Implement missing properties
13950                 
13951         * NumericUpDown.cs: Implement missing events
13953 2005-05-19  Jackson Harper  <jackson@ximian.com>
13955         * TabControl.cs: New method that resizes the tab pages before
13956         redrawing them. This as needed as the control is double buffered
13957         and sizing will not be recalculated unless ResizeTabPages is
13958         called.
13959         * TabPage.cs: Set base.Text instead of Text in the constructor so
13960         that UpdateOwner does not get called. Use the new Redraw method of
13961         TabControl instead of Refresh so the sizing is recalculated.
13962         * ThemeWin32Classic.cs: Draw the text for button tabs.
13964 2005-05-19  Jackson Harper  <jackson@ximian.com>
13966         * Control.cs: Paint control background images. Fix typo where
13967         PaintControlBackground was not getting called correctly.
13969 2005-05-19  Peter Bartok  <pbartok@novell.com>
13971         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
13972           I can investigate, apparently I broke FileDialog
13974 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
13976         * AxHost.cs: Some simple properties.
13977         * Control.cs: window must be accessible after ctor.
13978         * Form.cs: Added TransparencyKey property.
13979         * TextBoxBase.cs: Implemented Clear. Text property can be null.
13980         * XplatUIWin32.cs: SetBorderStyle implemented.
13982 2005-05-18  Peter Bartok  <pbartok@novell.com>
13984         * DataObject.cs: Entries are not global but particular to the
13985           DataObject, now it behaves that way
13986         * XplatUIWin32.cs: Implemented Clipboard methods
13987         * Clipboard.cs: Implemented
13988         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
13989         * XplatUIOSX.cs: Updated to final clipboard prototypes
13990         * XplatUIX11.cs: Implemented Clipboard methods
13991         * XplatUIDriver.cs: Updated to final clipboard prototypes
13992         * XplatUIStructs.cs:
13993           - Added BITMAPINFOHEADER struct
13994           - Added ClipboardFormats enum
13995         * X11Structs.cs:
13996           - Added ClipboardStruct
13997           - Added Atom enum items for clipboard types
13998           - Fixed atom types for Selection event structures
13999         * DataFormats.cs:
14000           - Added internal properties and methods for drivers to enumerate
14001             all known formats
14002           - Switched initialization method to allow drivers to assign their
14003             own IDs even for the MS predefined clipboard IDs
14004         * XplatUI.cs: Updated to final clipboard interface
14006 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14007         * PropertyGridView.cs: Fixed compiler warnings.
14009 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
14010         * PropertyGrid.cs: Added some event calls
14011         * PropertyGridView.cs: Change drawing code to use double buffering
14012         * PropertyGridTextBox.cs: Changed Text property name
14013         * GridItem.cs: Added Bounds property.
14014         * GridEntry.cs: Added Bounds property.
14016 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
14018         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
14019         since GetType() may not return the correct type if the object is
14020         a remoting proxy.
14022 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
14024         * TreeNodeCollection.cs: fixes get/set item ranges
14025         
14026 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
14028         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
14029                 
14030 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
14032         * ComboBox.cs: Fix item range comparation
14033         * ListView.cs: Fix item range comparation
14035 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
14037         * FontDialog.cs:
14038           - Clear example panel when OnPaint is called
14039           - Better solution for displaying the example panel text
14040           - Select default indexes in the ListBoxes
14042 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
14044         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
14046 2005-05-11  Peter Bartok  <pbartok@novell.com>
14048         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
14049         * SelectionRangeConverter.cs: Implemented
14050         * PropertyGrid.cs: Fixed attribute value
14051         * Control.cs:
14052           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
14053           - Added Sebastien Pouliot's CAS Stack Propagation fixes
14054         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
14055           that's common to all drivers. First methods to go there are
14056           Sebastien Pouliot's CAS Stack Propagation helper methods
14057         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
14058           Sebastien Pouliot for CAS Stack Propagation
14060 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
14062         * OSXStructs.cs:
14063           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
14065 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
14067         * DataGridTextBoxColumn.cs: fixed some members
14068         * GridColumnStylesCollection.cs: indexed column is case insensitive
14069         * DataGridTableStyle.cs: fixes
14070         * ThemeWin32Classic.cs: add new theme parameter
14071         * Theme.cs: add new theme parameter
14072         * DataGridDrawingLogic.cs: Datagrid's drawing logic
14073         * DataGrid.cs: fixes, new internal properties, etc.
14074         * DataGridColumnStyle.cs: allows to set grid value
14075         *
14077 2005-05-10  Peter Bartok  <pbartok@novell.com>
14079         * AccessibleObject.cs:
14080           - Removed MonoTODO attribute on help, method is correct
14081           - Fixed Bounds property
14082         * AxHost.cs: Moved MonoTODO
14083         * ButtonBase.cs: Now setting AccessibleObject properties
14084         * RadioButton.cs: Setting proper AccessibleObject role
14085         * CheckBox.cs: Setting proper AccessibleObject role
14086         * ControlBindingsCollection.cs: Added properties, methods and attributes
14087         * DataFormats.cs: Fixed awkward internal API, and changed to enable
14088           userdefined DataFormats.Format items as well
14089         * ListControl.cs: Removed data_member from the public eye
14090         * OpenFileDialog.cs:
14091           - Made class sealed
14092           - Added missing attributes
14093         * SaveFileDialog.cs: Added missing attributes
14094         * ImageListStreamer.cs: Fixed code that caused warnings
14095         * LinkLabel.cs: Removed unreachable code
14096         * TreeView.cs: Fixed code that caused warnings
14097         * PropertyGridView.cs: Fixed code that caused warnings
14098         * GridColumnStylesCollection.cs: Added missing attributes
14099         * GridTableStylesCollection: Added missing attribute
14100         * PropertyManager: Added .ctor
14101         * SecurityIDType: Added
14102         * DataObject.cs: Implemented class
14103         * LinkArea.cs: Added missing attribute
14105 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
14107         * RadioButton.cs: call base method to allow to fire OnClick event
14108         * UpDownBase.cs: OnMouseUp call base method
14109         * CheckedListBox.cs: call base method before returning
14110         * TrackBar.cs: call base method before returning
14111         
14113 2005-05-10  Peter Bartok  <pbartok@novell.com>
14115         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
14116           for messages
14118 2005-05-10  Peter Bartok  <pbartok@novell.com>
14120         * DataFormats.cs: Implemented
14121         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
14122           XplatUIX11.cs: Added Clipboard APIs
14123         * XplatUIWin32.cs: Implemented Clipboard APIs
14124         * FolderBrowserDialog.cs: Added missing event, attributes
14126 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
14128         * CheckBox.cs: call base method to allow to fire OnClick event
14130 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
14132         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
14134 2005-05-06  Peter Bartok  <pbartok@novell.com>
14136         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
14137         * Screen.cs: Implemented
14138         * HelpNavigator.cs: Added
14139         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
14140           property
14141         * HelpProvider.cs: Implemented all we can do until we have a CHM
14142           help library (which means that "What's This" does work now)
14144 2005-05-06  Jackson Harper  <jackson@ximian.com>
14146         * XplatUIX11.cs: Fix waking up the main loop.
14147                 
14148 2005-05-05  Peter Bartok  <pbartok@novell.com>
14150         * XplatUI.cs: Updated revision
14151         * Form.cs: Removed enless loop
14152         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
14153         * Label.cs (OnPaint): Added call to base.OnPaint()
14154         * ToolTip.cs: Made ToolTipWindow reusable for other controls
14155         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
14156         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
14157         * AxHost.cs: Added
14158         * ButtonBase.cs: Moved base.OnPaint() call to end of method
14159         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
14160           to ToolTip.ToolTipWindow for drawing and size methods; this allows
14161           reuse of ToolTipWindow by other controls
14162         * SizeGrip.cs: Moved base.OnPaint() call to end of method
14163         * XplatUIX11.cs: Now clipping drawing area (experimental)
14164         * PictureBox.cs: Moved base.OnPaint() call to end of method
14165         * Theme.cs: Fixed ToolTip abstracts to match new format
14166         * ErrorProvider.cs: Implemented
14168 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
14170         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
14171         * LinkLabel.cs:
14172                 - Adds cursors
14173                 - Handles focus
14174                 - Implements LinkBehavior
14175                 - Fixes many issues
14177 2005-05-03  Jackson Harper  <jackson@ximian.com>
14179         * ListView.cs: Calculate the scrollbar positioning on resize and
14180         paint, so they get put in the correct place.
14182 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
14184         * ColorDialogs.cs: The small color panels are now handled by
14185           SmallColorControl. This fixes drawing of the focus rectangle
14186           and adds a 3D border.
14188 2005-05-03  Peter Bartok  <pbartok@novell.com>
14190         * Control.cs: Modified version of Jonathan Chamber's fix for
14191           double-buffering
14193 2005-05-03  Jackson Harper  <jackson@ximian.com>
14195         * ListView.cs: Remove redraw variable. Control now handles whether
14196         or not a redraw needs to be done, and will only raise the paint
14197         event if redrawing is needed.
14199 2005-05-03  Jackson Harper  <jackson@ximian.com>
14201         * Splitter.cs: No decorations for the splitter form. Cache the
14202         hatch brush.
14204 2005-05-03  Jackson Harper  <jackson@ximian.com>
14206         * TreeView.cs: Use dashed lines to connect nodes. Use the
14207         ControlPaint method for drawing the focus rect instead of doing
14208         that in treeview.
14210 2005-05-02  Peter Bartok  <pbartok@novell.com>
14212         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
14214 2005-04-29  Jackson Harper  <jackson@ximian.com>
14216         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
14217         entire image buffer. Just clear the clipping rectangle.
14219 2005-04-29  Jackson Harper  <jackson@ximian.com>
14221         * ThemeWin32Classic.cs: Don't draw list view items that are
14222         outside the clipping rectangle.
14224 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
14226         * ListBox.cs: added horizontal item scroll
14228 2005-04-29  Jackson Harper  <jackson@ximian.com>
14230         * ThemeWin32Classic.cs: Remove some old debug code that was
14231         causing flicker with the new double buffering code.
14233 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
14235         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
14236         behave like combobox and comboboxlist (still not sure if this is
14237         correct though).
14239 2005-04-28  Jackson Harper  <jackson@ximian.com>
14241         * ThemeWin32Classic.cs: Don't fill the middle of progress
14242         bars. This fills areas outside of the clip bounds that don't need
14243         to be filled.
14245 2005-04-28  Jackson Harper  <jackson@ximian.com>
14247         * Control.cs: Don't expose functionality to touch the image buffers.
14248         * ProgressBar.cs:
14249         * ListView.cs: We do not need to (and no longer can) manipulate
14250         the image buffers directly. All of this is handled by Control.
14252 2005-04-28  Peter Bartok  <pbartok@novell.com>
14254         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
14255           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
14256           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
14258 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
14260         * Combobox:
14261                 - Adjust control's height for non-simple comboboxes (bug fix)
14262                 - Remove dead code
14263         * MenuAPI.cs: remove unused var
14264         * ScrollBar.cs: remove unsed var
14265                  
14266         * ListBox.cs: unselect items when clearing
14268 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
14270         * ListControl.cs: honors OnPositionChanged and default Selected Item
14271         * ListBox.cs: unselect items when clearing
14273 2005-04-27  Jackson Harper  <jackson@ximian.com>
14275         * X11Keyboard.cs: Initialize a default keyboard and give a warning
14276         if a "correct" keyboard is not found. This will make us not crash,
14277         but might give some users bad keyboard layouts...seems to be the
14278         same thing rewind does.
14280 2005-04-27  Jackson Harper  <jackson@ximian.com>
14282         * BindingManagerBase.cs: Attach the current/position changed
14283         handlers to their respective events.
14285 2005-04-27  Jackson Harper  <jackson@ximian.com>
14287         * Control.cs: Make sure that the first WM_PAINT does a full draw,
14288         not just a blit.
14289         * ThemeWin32Classic.cs: Don't fill the background for picture
14290         boxes. This could overright user drawing.
14291         * ComboBox.cs: Just fill the clipping rect not the entire client
14292         rect when drawing the background. This prevents pieces of the
14293         image buffer from getting overwritten and is theoretically faster.
14295 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
14297         * ComboBox.cs: Databinding support fixes, fire missing events
14298         * ListControl.cs: implement missing methods and properties, fixes
14299         * ThemeWin32Classic.cs: Databiding support on Drawing
14300         * CheckedListBox.cs: Databinding support fixes, fire missing events
14301         * ListBox.cs: Databinding support fixes, fire missing events
14302         
14303 2005-04-25  Peter Bartok  <pbartok@novell.com>
14305         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
14307 2005-04-25  Jackson Harper  <jackson@ximian.com>
14309         * TreeView.cs: Use the horizontal scrollbars height not width when
14310         determining how much of the client area is available.
14312 2005-04-25  Jackson Harper  <jackson@ximian.com>
14314         * Control.cs: Double buffering is handled differently now. As per
14315         the spec, the extra buffer is created in the WM_PAINT message and
14316         passed down to the control's drawing code.
14317         * GroupBox.cs:
14318         * Label.cs:
14319         * CheckBox.cs:
14320         * ProgressBar.cs:
14321         * RadioButton.cs:
14322         * ColorDialog.cs:
14323         * ComboBox.cs:
14324         * PropertyGridView.cs:
14325         * UpDownBase.cs:
14326         * MessageBox.cs:
14327         * MenuAPI.cs:
14328         * ListView.cs:
14329         * ButtonBase.cs:
14330         * SizeGrip.cs:
14331         * ScrollBar.cs:
14332         * ListBox.cs:
14333         * TrackBar.cs:
14334         * ToolBar.cs:
14335         * PictureBox.cs:
14336         * DateTimePicker.cs:
14337         * StatusBar.cs:
14338         * TreeView.cs: Update to new double buffering system.
14339         * MonthCalendar.cs: Uncomment block, as Capture is now
14340         working. Update to new double buffering
14341         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
14342         * PaintEventArgs.cs: New internal method allows us to set the
14343         graphics object. This is used for double buffering.
14344         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
14345         rectangle. The internal paint_area var has been removed from
14346         StatusBar. The clipping rect should be used instead.
14347         * Theme.cs: Give the PictureBox drawing method a clipping rect.
14348         * TabPage.cs: The RefreshTabs method was removed, so just call the
14349         tab controls Refresh method now.
14350         * TabControl.cs: Update to new double buffering. Make sure the
14351         handle is created before sizing the tab pages, otherwise we will
14352         get stuck in a loop.
14354 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
14356         * LinkLabel.cs: Fix typo, bug #74719; patch
14357           from Borja Sanchez Zamorano
14359 2005-04-22  Jackson Harper  <jackson@ximian.com>
14361         * TreeNode.cs: Implement Handle stuff.
14362         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
14364 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
14366         * DataGridTextBoxColumn.cs: call base constructors, fixes
14367         * GridColumnStylesCollection.cs: missing events, methods, and functionality
14368         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
14369         * DataGridTableStyle.cs: implements create default column styles
14370         * DataGridBoolColumn.cs: which types can handle
14371         * DataGrid.cs: missing methods, fixes, new functionality
14372         * DataGridColumnStyle.cs: fixes
14374 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
14375         * FolderBrowserDialog.cs:
14376         - Use a thread to fill the TreeView
14377         - Adjusted some sizes
14379 2005-04-19  Peter Bartok  <pbartok@novell.com>
14381         * LinkLabel.cs: (Re-)create the pieces when setting the Text
14382           property. Fixes #74360.
14384 2005-04-19  Jackson Harper  <jackson@ximian.com>
14386         * XEventQueue.cs: Lock when getting the lockqueue size.
14387         * PictureBox.cs: Call base OnPaint
14388         
14389 2005-04-19  Peter Bartok  <pbartok@novell.com>
14391         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
14392           messages were no longer being processed (this broke BeginInvoke)
14394           
14395 2005-04-18  Jackson Harper  <jackson@ximian.com>
14397         * TreeView.cs: buglet that caused node images to get drawn
14398         regardless of whether or not they were in the clipping rectangle.
14400 2005-04-18  Jackson Harper  <jackson@ximian.com>
14402         * CurrencyManager.cs: There are four rules for GetItemProperties:
14403         - If the type is an array use the element type of the array
14404         - If the type is a typed list, use the type
14405         - If the list contains an Item property that is not an object, use
14406         that property
14407         - use the first element of the list if there are any elements in
14408         the list.
14409         
14410 2005-04-17  Jackson Harper  <jackson@ximian.oom>
14412         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
14413         click. This handles offsets for scrolling properly and reduces
14414         memory. Also fixed GetNode to not offset now that TopNode works
14415         properly.
14416         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
14417         
14418 2005-04-17  Jackson Harper  <jackson@ximian.com>
14420         * CursorConverter.cs: Initial implementation.
14422 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14424         * ListControl.cs: work towards complex data binding support on ListControl
14425         * CurrencyManager.cs: work towards complex data binding support on ListControl
14426         * ListBox.cs: work towards complex data binding support on ListControl
14429 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14431         * GridTableStylesCollection.cs: fixes name and constructor
14432         * DataGridTableStyle.cs: fixes
14433         * DataGridBoolColumn.cs: fixes names and constructors
14434         * DataGrid.cs: define methods and properties. Some init implementations
14435         * DataGridCell.cs: define methods and properties. Some init implementations
14436         * GridTablesFactory.cs: Define methods and properties
14438 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
14440         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
14441         graphics port changes.  We still want the coordinates in global screen
14442         coordinates.
14444 2005-04-14  Jackson Harper  <jackson@ximian.com>
14446         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
14447         check plus minus or checkbox clicks unless those features are enabled.
14449 2005-04-14  Jackson Harper  <jackson@ximian.com>
14451         * TreeView.cs: Add methods for setting the top and bottom visible
14452         nodes. TreeNode::EnsureVisible uses these methods.
14453         * TreeNode.cs: Implement EnsureVisible
14455 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
14457         * Form.cs: Pospone menu assignation if the window has not been created yet
14458         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
14459         size and position
14461 2005-04-12  Jackson Harper  <jackson@ximian.com>
14463         * TreeView.cs: Set the TopNode properly when scrolling
14464         occurs. This has the added benifit of reducing the amount of
14465         walking that needs to be done when drawing. Also removed an old
14466         misleading TODO.
14467         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
14468         
14469 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
14471         * Timer.cs: fixes interval setting when the timer is already enabled
14472         
14473 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
14475         * FolderBrowserDialog.cs: First approach
14477 2005-04-09  Peter Bartok  <pbartok@novell.com>
14479         * FolderBrowserDialog: Added
14481 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
14483         * LinkLabel.cs: move drawing code into the theme
14484         * ThemeWin32Classic.cs: drawing code and painting background bugfix
14485         * Theme.cs: define DrawLinkLabel method
14487 2005-04-05  Jackson Harper  <jackson@ximian.com>
14489         * BindingContext.cs: Use weak references so these bad actors don't
14490         stay alive longer then they need to.
14492 2005-04-05  Jackson Harper  <jackson@ximian.com>
14494         * ListControl.cs: Basic implementation of complex databinding.
14495         * ComboBox.cs:
14496         * ListBox.cs: Add calls to ListControl databinding methods.
14498 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
14500         * FileDialog.cs:
14501           - Don't change PopupButtonState to Normal when the
14502             PopupButton gets pressed several times.
14503           - Renamed ButtonPanel to PopupButtonPanel
14505 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
14507         * ColorDialog.cs: Use cached objects instead of creating them
14508         * LinkLabel.cs: Use cached objects instead of creating them
14509         * Splitter.cs: Use cached objects instead of creating them
14510         * FontDialog.cs: Use cached objects instead of creating them
14511         * PropertyGridView.cs: Use cached objects instead of creating them
14512         * MessageBox.cs: Use cached objects instead of creating them
14513         * FileDialog.cs: Use cached objects instead of creating them
14514         * ThemeWin32Classic.cs: Use cached objects instead of creating them
14515         * TreeView.cs: Use cached objects instead of creating them
14516         
14517 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
14519         * Control.cs: use Equals to compare the font since no == op
14520         * ScrollBar.cs: use Equals to compare the font since no == op
14522 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
14524         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
14526 2005-04-01  Jackson Harper  <jackson@ximian.com>
14528         * Binding.cs: Implement IsBinding.
14529         * BindingManagerBase.cs:
14530         * PropertyManager.cs:
14531         * CurrencyManager.cs: Add IsSuspended property.
14533 2005-04-01  Jackson Harper  <jackson@ximian.com>
14535         * Binding.cs: Had some IsAssignableFrom calls backwards.
14537 2005-04-01  Jackson Harper  <jackson@ximian.com>
14539         * Binding.cs: Handle null data members when pulling data.
14540         * PropertyManager.cs: Handle the data member being a property that
14541         does not exist.
14543 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14545         * DataGridTextBoxColumn.cs: fixes signature
14546         * DataGrid.cs: calls right constructor
14548 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14550         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
14551         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
14552         * GridTableStylesCollection.cs: implements GridTableStylesCollection
14553         * DataGridTableStyle.cs: implements DataGridTableStyle
14554         * DataGridBoolColumn.cs: implements DataGridBoolColumn
14555         * DataGridTextBox.cs: implements DataGridTextBox
14556         * DataGridColumnStyle.cs: implements DataGridColumnStyle
14558 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
14560         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
14562 2005-03-29  Peter Bartok  <pbartok@novell.com>
14564         * Application.cs:
14565           - Properly implemented CompanyName property
14566           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
14567             returns a path that includes CompanyName, ProductName and
14568             Version (fixes bug #70330)
14570 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
14572         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
14573           fixes bug #72588.
14575 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14577         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
14578         
14579           - Added ReadOnly CheckBox
14580           - Further refactoring: moved some code from Open-/SaveFileDialog
14581             to FileDialog
14583 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14585         * OpenFileDialog.cs: Fixed CheckFileExists
14586         * FileDialog.cs:
14587           Moved FileView and DirComboBox outside FileDialog class.
14588           They can now be used outside FileDialog
14590 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14592         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
14593         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
14595 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14597         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14598           - Added missing CreatePrompt property in SaveDialog
14599           - Overall SaveDialog handling should be better now
14600           - Added non standard ShowHiddenFiles property
14601           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
14602           - Added InitialDirectory and RestoreDirectory support
14604 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
14606         * FileDialog.cs: Made dirComboBox usable
14608 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
14610         * FileDialog.cs: Added Filter support (case sensitiv)
14612 2005-03-24  Jackson Harper  <jackson@ximian.com>
14614         * TabControl.cs: Need a couple more pixels for the lines.
14616 2005-03-23  Jackson Harper  <jackson@ximian.com>
14618         * TabControl.cs: Give the tab page focus when it is selected.
14620 2005-03-23  Jackson Harper  <jackson@ximian.com>
14622         * TabControl.cs: Account for the drawing of tabs borders when
14623         invalidating. If the slider was clicked dont do click detection on
14624         the tabs.
14626 2005-03-23  Jackson Harper  <jackson@ximian.com>
14628         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
14630 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
14632         * CategoryGridEntry.cs: Added
14633         * GridItem.cs: Added helper properties
14634         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
14635         * GridEntry.cs: Updated code for collection
14636         * PropertyGrid.cs: Cleaned up some formatting
14637         * PropertyGridView.cs: Added drop down functionality for enums.
14638         * GridItemCollection.cs: Added enumerator logic
14639         * PropertyGridEntry.cs: Added
14641 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14643         * FileDialog.cs:
14644           - Removed unnecessary commented code
14645           - Fixed handling for entering the filename manually in the combobox
14647 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14649         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
14651 2005-03-18  Peter Bartok  <pbartok@novell.com>
14653         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
14654           them being touching the border
14656 2005-03-18  Peter Bartok  <pbartok@novell.com>
14658         * TextControl.cs: Quick hack to center text better
14660 2005-03-18  Peter Bartok  <pbartok@novell.com>
14662         * ControlPaint.cs:
14663           - Don't throw NotImplemented exceptions, just print a notice once
14664             instead (requested by Miguel). This makes running existing SWF
14665             apps a bit easier
14666         * Control.cs:
14667           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
14668           - Added context menu trigger on right click
14669         * Panel.cs: Trigger invalidate on resize
14670         * StatusBar.cs:
14671           - Removed old double-buffer drawing
14672           - Added ResizeRedraw style to force proper update of statusbar
14673         * ListView.cs:
14674           - Removed debug output
14675         * ThemeWin32Classic.cs:
14676           - Fixed drawing of status bar, now draws Text property if there
14677             are no defined panels
14679 2005-03-18  Jackson Harper  <jackson@ximian.com>
14681         * ImageList.cs: When the image stream is set pull all the images
14682         from it.
14683         * ImageListStreamer.cs: Implement reading image list streams.
14685 2005-03-18  Peter Bartok  <pbartok@novell.com>
14687         * ThemeWin32Classic.cs (DrawPictureBox):
14688           - Fixed calculations for centered drawing
14689           - Fixed drawing for normal mode, not scaling the image on normal
14691 2005-03-18  Peter Bartok  <pbartok@novell.com>
14693         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
14694           textbox
14695         * FileDialog.cs:
14696           - Made Open/Save button the accept button for FileDialog
14697           - Tied the cancel button to the IButtonControl cancel button
14698           - Save/Open now properly builds the pathname
14699           - Now handles user-entered text
14700           - Preventing crash on right-click if no item is selected
14701           - Fixed Text property, now uses contents of textbox
14702           - Fixed SelectedText property, now just returns the text part that
14703             is selected in the text box
14705 2005-03-18  Jackson Harper  <jackson@ximian.com>
14707         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
14708         rect, make sure to de-adjust the interior rect after drawing the
14709         tab text.
14711 2005-03-18  Peter Bartok  <pbartok@novell.com>
14713         * MenuAPI.cs: Remove menu *before* executing selected action to
14714           prevent the menu from 'hanging around'
14715           
14716 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
14718         * XplatUIOSX.cs: Implemented WorkingArea property
14720 2005-03-17  Peter Bartok  <pbartok@novell.com>
14722         * XplatUIX11.cs: Fixed menu coord calculations
14723         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
14724           for calculating offsets
14726 2005-03-17  Peter Bartok  <pbartok@novell.com>
14728         * Hwnd.cs: Do not consider menu presence for default client
14729           rectangle location/size
14730         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14731           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
14732           translation functions
14733         * FileDialog.cs: Fixed (what I presume is a) typo
14735 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
14737         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
14738           X access (avoids X-Async errors)
14740 2005-03-16  Jackson Harper  <jackson@ximian.com>
14742         * TabControl.cs: Raise the SelectedIndexChanged event.
14744 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
14746         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14747           - Removed vertical ToolBar and replaced it with a custom panel
14748             (desktop and home button already work)
14749           - Added Help button (some controls get resized or relocated then)
14750           - Draw correct text depending on Open or Save.
14751           - Fixed some typos...
14753 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
14755         * ScrollBar.cs:
14756           - Only change Maximum and Minimum when need it (bug fix)
14758 2005-03-15  Peter Bartok  <pbartok@novell.com>
14760         * Form.cs: Use Handle for icon, to trigger creation if
14761           the window does not yet exist
14762         * Control.cs:
14763           - CanSelect: Slight performance improvement
14764           - Focus(): Preventing possible recursion
14765           - Invalidate(): Removed ControlStyle based clear flag setting
14766           - WM_PAINT: fixed logic for calling OnPaintBackground
14767           - WM_ERASEBKGND: Fixed logic, added call to new driver method
14768             EraseWindowBackground if the control doesn't paint background
14769         * XplatUIWin32.cs:
14770           - Moved EraseWindowBackground() method to internal methods
14771           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
14772             is sent via SendMessage on BeginPaint call on Win32
14773         * XplatUIX11.cs:
14774           - Added EraseWindowBackground() method
14775           - No longer sends WM_ERASEBKGND on .Expose, but on call to
14776             PaintEventStart, which more closely matches Win32 behaviour
14777           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
14778           - Fixed SetFocus() to properly deal with client and whole windows
14779         * Hwnd.cs: Added ErasePending property
14780         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
14781         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
14783 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
14785         * XplatUIOSX.cs:
14786           - Fix hard loop when timers exist.
14787           - Fix bugs with middle and right click for 3 button mice.
14789 2005-03-11  Peter Bartok  <pbartok@novell.com>
14791         * XplatUIX11.cs:
14792           - get_WorkingArea: Need to call X directly, GetWindowPos only
14793             returns cached data now
14794           - Added sanity check to GetWindowPos hwnd usage
14796 2005-03-11  Jackson Harper  <jackson@ximian.com>
14798         * BindingManagerBase.cs: This method isn't used anymore as
14799         PullData now updates the data in the control.
14801 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
14803         * Form.cs: fixes menu drawing on X11
14804         * MenuAPI.cs:  fixes menu drawing on X11
14806 2005-03-11  Peter Bartok  <pbartok@novell.com>
14808         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
14809           from Jonathan Gilbert; should fix bug #73606
14810         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
14811           in Screen coordinates. Thanks, Jordi.
14812         * Form.cs: Added missing attribute
14814 2005-03-11  Peter Bartok  <pbartok@novell.com>
14816         * Form.cs:
14817           - Rudimentary Mdi support
14818           - Removed outdated FormParent code
14819           - Implemented lots of missing properties and methods, still missing
14820             transparency support
14821           - Added missing attributes
14822           - Implemented support for MaximumBounds
14823           - Added firing of various events
14824         * XplatUI.cs: Added SetIcon() method
14825         * XplatUIDriver.cs: Added SetIcon() abstract
14826         * XplatUIOSX.cs: Stubbed out SetIcon() method
14827         * XplatUIX11.cs:
14828           - Implemented SetIcon() support
14829           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
14830           - Switched to unix line endings
14831         * XplatUIWin32.cs:
14832           - Made POINT internal so for can access it as part of MINMAX
14833           - Implemented SetIcon() support
14834           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
14835             native Mdi support again, might have to go managed)
14836         * Control.cs: Now fires the StyleChanged event
14837         * MdiClient.cs: Added; still mostly empty
14839 2005-03-10  Peter Bartok  <pbartok@novell.com>
14841         * SaveFileDialog.cs: Added emtpy file
14843 2005-03-08  Peter Bartok  <pbartok@novell.com>
14845         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
14846           in turn triggers OnCreateContro) when creating a handle for the
14847           first time.
14848         * TextControl.cs: Fixed endless loop in certain cases when
14849           replacing the current selection
14851 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
14853         * ScrollBar.cs:
14854           - Honors NewValue changes in Scroll events allowing apps to change it
14855           - Adds First and Last Scroll events
14856           - Fixes Thumb events
14858 2005-03-07  Peter Bartok  <pbartok@novell.com>
14860         * Hwnd.cs: Added DefaultClientRectangle property
14861         * XplatUI.cs: Now using the X11 driver Where() method, which provides
14862           more detailed debug information
14863         * XplatUIX11.cs:
14864           - Fixed size-change feedback loop, where we would pull an old size
14865             off the queue and mistakenly change our window's size to an
14866             earlier value
14867           - Now compressing ConfigureNotify events, to reduce looping and
14868             redraw issues
14869         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
14870           is called
14872 2005-03-07  Jackson Harper  <jackson@ximian.com>
14874         * Binding.cs: Push data pushes from data -> property. Check if the
14875         property is readonly when attempting to set it.
14877 2005-03-07  Jackson Harper  <jackson@ximian.com>
14879         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
14880         instead of IsSubclassOf. Pulling data now sets the value on the
14881         control.
14882         * PropertyManager.cs:
14883         * CurrencyManager.cs: Just need to pull data when updating now,
14884         because PullData will set the value on the control.
14886 2005-03-04  Jackson Harper  <jackson@ximian.com>
14888         * Binding.cs: Implement data type parsing and converting on pulled
14889         data. TODO: Are there more ways the data can be converted?
14891 2005-03-04  Jackson Harper  <jackson@ximian.com>
14893         * Binding.cs: Support <Property>IsNull checks. Also bind to the
14894         controls Validating method so we can repull the data when the
14895         control loses focus.
14897 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
14899         * ColumnHeader.cs:
14900           - Fixes null string format
14901           
14902         * ListView.cs:
14903           - Adds enum type checks
14904           - Fixes redrawing and recalc need after changing some properties
14905           - Fixes on focus_item set after the event
14906           - Fixes adding columns after the control has been created
14907           
14908         * ThemeWin32Classic.cs:
14909           - Fixes CheckBox focus rectangle
14910           - Fixes ColumnHeader drawing
14913 2005-03-03  Jackson Harper  <jackson@ximian.com>
14915         * Binding.cs: Bind to <Property>Changed events so we can detect
14916         when properties are changed and update the data.
14918 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
14920         * ImageList.cs:
14921           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
14922           - Fixes ImageList constructor with ImageList container
14923           - Fixes image scaling (wrong parameters at DrawImage)
14925 2005-02-02  Jackson Harper  <jackson@ximian.com>
14927         * Binding.cs: Make property searches case-insensitive. Eliminate
14928         some duplicated code.
14930 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
14932         * ComboBox.cs:
14933                 - Handle focus event
14934                 - Fix scrollbar events
14935                 - Discard highlighted item if remove it
14936                 - Fixes SelectedItem with strings
14938 2005-03-01  Peter Bartok  <pbartok@novell.com>
14940         * Control.cs:
14941           - Fixed Visible property, now follows (once again) parent chain
14942             to return false if any control in the chain is visible=false
14943           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
14944           - Fixed several places where is_visible instead of Visible was used
14945           - Implemented FIXME related to focus selection when setting focused
14946             control to be invisible
14948         * XplatUIWin32.cs: Now using proper method to find out if window is
14949           visible. Thanks to Jordi for pointing it out
14951 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
14953         * ComboBox.cs: show/hide scrollbar instead of creating it
14955 2005-02-27  Jackson Harper  <jackson@ximian.com>
14957         * CurrencyManager.cs: Add PositionChanged stuff.
14959 2005-02-27  Peter Bartok  <pbartok@novell.com>
14961         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
14962         * XplatUIOSX.cs: Added GetMenuOrigin() stub
14963         * XplatUIWin32.cs: Implemented GetMenuOrigin()
14964         * XplatUIX11.cs:
14965           - Implemented GetMenuDC()
14966           - Implemented GetMenuOrigin()
14967           - Implemented ReleaseMenuDC()
14968           - Implemented generation of WM_NCPAINT message
14969           - Implemented generation and handling of WM_NCCALCSIZE message
14970         * Form.cs: Added debug helper message for Jordi's menu work
14971         * Hwnd.cs:
14972           - Modified ClientRect property; added setter, fixed getter to handle
14973             setting of ClientRect
14974           - Added MenuOrigin property
14976 2005-02-26  Peter Bartok  <pbartok@novell.com>
14978         * XplatUIX11.cs:
14979           - Destroys the caret if a window that's being destroyed contains it
14980           - Ignores expose events coming from the X11 queue for windows that
14981             already are destroyed
14982           - Now uses the proper variable for handling DestroyNotify, before we
14983             marked the wrong window as destroyed
14984           - Improved/added some debug output
14986 2005-02-26  Peter Bartok  <pbartok@novell.com>
14988         * X11Keyboard.cs: Fixes to work on 64bit systems
14990 2005-02-26  Peter Bartok  <pbartok@novell.com>
14992         * Control.cs:
14993           - Now calling OnHandleDestroyed from DestroyHandle()
14994             instead of Dispose()
14995           - Removed bogus call to controls.Remove() from DestroyHandle()
14997 2005-02-26  Peter Bartok  <pbartok@novell.com>
14999         * Control.cs: Properly destroy child windows when our handle is
15000           destroyed
15002 2005-02-25  Peter Bartok  <pbartok@novell.com>
15004         * XplatUI.cs:
15005           - Added 'DriverDebug' define to allow tracing XplatUI API calls
15006           - Alphabetized Static Methods and Subclasses
15008         * XplatUIX11.cs:
15009           - Added XException class to allow custom handling of X11 exceptions
15010           - Created custom X11 error handler, tied into XException class
15011           - Added support for MONO_XEXCEPTIONS env var to allow the user
15012             to either throw an exception on X errors or continue running
15013             after displaying the error
15014           - Added handling of DestroyNotify message
15015           - Added handler for CreateNotify message (still disabled)
15016           - Improved (tried to at least) Where method to provide file and lineno
15017         * X11Structs.cs:
15018           - Added XErrorHandler delegate
15019           - Added XRequest enumeration (to suppor translation of errors)
15021 2005-02-25  Jackson Harper  <jackson@ximian.com>
15023         * PropertyManager.cs: Implement editing features
15024         * CurrencyManager.cs:
15025         * Binding.cs: First attempt at UpdateIsBinding
15026         * BindingManagerBase.cs: Call UpdateIsBinding before
15027         pushing/pulling data.
15029 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
15031         * MenuAPI.cs: Respect disabled items
15032         * ThemeWin32Classic.cs
15033                 - Caches ImageAttributes creation for DrawImageDisabled
15034                 - Fixes vertical menu line drawing
15035                 - Draws disabled arrows in disable menu items
15037 2005-02-24  Peter Bartok  <pbartok@novell.com>
15039         * Hwnd.cs:
15040           - Added UserData property to allow associating arbitrary objects
15041             with the handle
15042           - Fixed leak; now removing Hwnd references from static windows array
15043         * XplatUIWin32.cs:
15044           - Fixed Graphics leak in PaintEventEnd
15045           - Removed usage of HandleData, switched over to Hwnd class
15046         * HandleData.cs: Removed, obsoleted by Hwnd.cs
15048 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
15050         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
15051         * ScrollBar.cs: Fixes bug
15052         * TrackBar.cs: removes death code, clipping, mimize refreshes,
15053          keyboard navigation enhancements
15055 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
15057         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
15058         * GroupBox.cs: Add control styles
15059         * Label.cs: Add control styles
15060         * UpDownBase.cs: Add control styles
15061         * ListBox.cs: Add control styles
15062         * XplatUIWin32.cs: Fixes wrong parameter order
15065 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
15067         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
15069 2005-02-23  Jackson Harper  <jackson@ximian.com>
15071         * PropertyManager.cs: Implement property binding. This doesn't
15072         seem to work yet though as (I think) there are some bugs in
15073         System.ComponentModel.PropertyDescriptor.
15074         * BindingContext.cs: Use new PropertyManager constructor.
15076 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
15078         * ProgressBar.cs: use clip region in ProgressBar
15079         * ThemeWin32Classic.cs: use clip region in ProgressBar
15081 2004-02-22  Jackson Harper  <jackson@ximian.com>
15083         * BindingsCollection.cs: Remove some debug code.
15085 2005-02-22  Jackson Harper  <jackson@ximian.com>
15087         * BindingContext.cs:
15088         * ControlBindingsCollection.cs:
15089         * CurrencyManager.cs:
15090         * Binding.cs:
15091         * BindingManagerBase.cs: Initial implementation
15092         * BindingsCollection.cs: Add an internal contains method that the
15093         BindingManagerBase uses to ensure bindings aren't added twice to
15094         the collection.
15095         * PropertyManager.cs: Stubbed out.
15096         * Control.cs:
15097         * ContainerControl.cs: Hook up databinding
15098         
15099 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
15101         * XplatUIOSX.cs:
15102           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
15103           Fixed Invalidate/Update chain.
15104           Fixed tons of other minor bugs (this is almost a complete rewrite).
15106 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
15108         * ComboBox.cs: do subcontrol creation when the control is created
15110 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15112         * Label.cs: fixes image drawing (image and imagelist)
15113         * ThemeWin32Classic.cs: cache brushes
15114         
15115 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15117         * Form.cs: Move menu drawing code to Theme class
15118         * ComboBox.cs: Move ComboBox drawing code to Theme class
15119         * MenuItem.cs: Move menu drawing code to Theme class
15120         * MenuAPI.cs: Move menu drawing code to Theme class
15121         * ThemeWin32Classic.cs: New methods
15122         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
15123         * ListBox.cs: Move Listbox drawing code to Theme class
15124         * Theme.cs: New methods
15126 2005-02-20  Peter Bartok  <pbartok@novell.com>
15128         * Control.cs:
15129           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
15130             only process mnemonics on those)
15131           - Fixed event sequence for key handling; first calling
15132             ProcessKeyEventArgs now
15133         * TextBoxBase.cs:
15134           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
15135             for processing non-character keys
15136           - Fixed WM_CHAR to generate proper event sequence before processing
15137         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
15138           generation
15140 2005-02-19  Peter Bartok  <pbartok@novell.com>
15142         * UserControl.cs: Added TextChanged event; added attributes
15143         * SizeGrip.cs: Implemented resizing and optional display of grip
15144         * Form.cs: Fixed attribute
15145         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
15146           Changed meaning of ScrollWindow bool argument; instead of the
15147           clear attribute (which will be true usually anyway), it gives the
15148           option of moving child controls as well.
15149         * XplatUIX11.cs:
15150           - Changed to match new ScrollWindow argument
15151           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
15152             now handles the implicit parent window a WM puts around us
15153         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
15154           to work)
15155         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
15156         * TreeView.cs: Adjusted to new ScrollWindow arguments
15158 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
15160         * Form.cs: Menu integration with non-client area
15161         * MenuItem.cs: Menu integration with non-client area
15162         * MenuAPI.cs: Menu integration with non-client area
15164 2005-02-18  Peter Bartok  <pbartok@novell.com>
15166         * MethodInvoker.cs: Added
15167         * MdiLayout.cs: Added
15168         * SendKeys.cs: Started implementation
15169         * ErrorIconAlignment.cs: Added
15171 2005-02-18  Peter Bartok  <pbartok@novell.com>
15173         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
15174         * Form.cs: Added handling for Menu-related Non-client messages
15176 2005-02-17  Peter Bartok  <pbartok@novell.com>
15178         * UpDownBase.cs: Fixed typo, compilation errors
15179         * DomainUpDown.cs: Fixed attribute value
15181 2005-02-16  Miguel de Icaza  <miguel@novell.com>
15183         * UpDownBase.cs: Attach entry events.
15184         Propagate events.
15185         Add ForeColor property, Focused, InterceptArrowKeys (interception
15186         does not work yet).
15188 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
15190         * Form.cs:
15191                 - Redraw non client are on Setmenu
15192                 - Calc proper menu starting point
15194 2005-02-17  Peter Bartok  <pbartok@novell.com>
15196         * Application.cs: Fixed message_filter check
15198 2005-02-17  Peter Bartok  <pbartok@novell.com>
15200         * Application.cs: Now calls registered message filters
15201         * DockStyle.cs: Fixed attribute
15202         * Form.cs: Fixed attribute
15203         * Menu.cs: Fixed attribute
15204         * ToolTip.cs: Fixed attribute
15205         * TreeNode.cs: Added missing attributes and arranged in regions
15206         * PropertyGrid.cs: Fixed signatures
15207         * TreeNodeCollection.cs: Added attributes
15208         * Splitter.cs: Added missing attributes; arranged into regions
15209         * TabPage.cs: Added missing attributes; arranged into regions
15210         * TextBoxBase.cs: Added missing attributes
15211         * TextBox.cs: Added missing attributes
15212         * ArrangeDirection.cs: Added missing attributes
15213         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
15214         * ToolBarButton.cs: Fixed attributes
15215         * AnchorStyles.cs: Fixed attribute
15216         * TrackBar.cs: Fixed attributes
15217         * TabControl.cs: Added missing attributes and arranged into regions
15218         * ToolBar.cs: Fixed attribute
15219         * StatusBar.cs: Fixed signature, organized into regions and added
15220           attributes
15221         * StatusBarPanel.cs: Fixed attributes
15222         * ContentsResizedEventArgs.cs: Implemented
15223         * ContentsResizedEventHandler.cs: Implemented
15224         * DateBoldEventArgs.cs: Implemented
15225         * DateBoldEventHandler.cs: Implemented
15226         * UpDownEventArgs.cs: Implemented
15227         * UpDownEventHandler.cs: Implemented
15228         
15229 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
15231         * Form.cs: first Menu NC refactoring
15232         * MenuAPI.cs: first Menu NC refactoring
15233         
15234 2005-02-16  Peter Bartok  <pbartok@novell.com>
15236         * ImeMode.cs: Added missing attributes
15237         * Menu.cs: Fixed attribute
15238         * GroupBox.cs: Fixed attribute
15239         * Label.cs: Fixed attribute
15240         * ColorDialog.cs (RunDialog): Removed TODO attribute
15241         * ComboBox.cs: Fixed attributes
15242         * ListControl.cs: Added missing attributes
15243         * PropertyGrid.cs: Fixed attributes
15244         * Control.cs: Fixed attributes
15245         * ListViewItem.cs: Added TypeConverter attribute
15246         * NotifyIcon.cs: Fixed attributes
15247         * ListView.cs: Fixed attributes
15248         * ButtonBase.cs: Fixed attribute
15249         * ImageList.cs: Added missing attributes
15250         * ContainerControl.cs: Fixed signature
15251         * CheckedListBox.cs: Fixed attribute; added missing attributes
15252         * Panel.cs: Fixed attributes
15253         * PropertyTabChangedEventArgs.cs: Added missing attribute
15254         * PropertyValueChangedEventArgs.cs: Added missing attribute
15255         * Binding.cs: Fixed attribute
15256         * ListViewItemConverter: Implemented ListViewSubItemConverter class
15257         * ListBox.cs: Fixed attribute; added missing attributes;
15258         * ScrollableControl.cs: Added missing attributes
15259         * PictureBox.cs: Added missing attributes; implemented missing property
15260         * DateTimePicker.cs: Added missing attributes
15261         * Theme.cs (ToolWindowCaptionHeight): Fixed type
15262         * MonthCalendar.cs: Fixed attributes
15263         * StatusBarPanel.cs: Added missing attributes
15264         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
15266 2005-02-16  Peter Bartok  <pbartok@novell.com>
15268         * TextBoxBase.cs: The previous method to enforce height yet remember
15269           the requested high was less than ideal, this is an attempt to do
15270           it better.
15271         * Control.cs: Added comment about possible problem
15272         * Copyright: Updated format
15273         * GridItemType.cs: Fixed swapped values
15275 2005-02-15  Jackson Harper  <jackson@ximian.com>
15277         * BaseCollection.cs: Use property so we never access an
15278         uninitialized list. Also initialize the list in the property.
15280 2005-02-15  Peter Bartok  <pbartok@novell.com>
15282         * GroupBox.cs (ProcessMnemonic): Implemented
15283         * Label.cs (ProcessMnemonic): Implemented
15284         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
15285           hotkeys
15287 2005-02-15  Peter Bartok  <pbartok@novell.com>
15289         * RadioButton.cs (ProcessMnemonic): Implemented
15290         * CheckBox.cs (ProcessMnemonic): Implemented
15291         * Control.cs:
15292           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
15293             handling
15294           - Added internal method to allow calling ProcessMnemonic from other
15295             controls
15296         * ContainerControl.cs:
15297           - Started support for handling validation chain handling
15298           - Implemented ProcessMnemonic support
15299           - Added Select() call to Active, to make sure the active control
15300             receives focus
15301         * Form.cs: Setting toplevel flag for Forms (this was lost in the
15302           FormParent rewrite)
15303         * ThemeWin32Classic.cs:
15304           - DrawCheckBox(): Fixed stringformat to show hotkeys
15305           - DrawRadioButton(): Fixed stringformat to show hotkeys
15306         * CommonDialog.cs: Removed WndProc override, not needed
15308 2005-02-14  Peter Bartok  <pbartok@novell.com>
15310         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
15311           missed those in the rewrite
15313 2005-02-14  Miguel de Icaza  <miguel@novell.com>
15315         * NumericUpDown.cs (Increment, ToString): Add.
15316         (DecimalPlaces): implement.
15317         
15318         Add attributes.
15319         
15320         * UpDownBase.cs: Add the designer attributes.
15322 2005-02-13  Peter Bartok  <pbartok@novell.com>
15324         * Panel.cs: Removed border_style, now in Control
15325         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
15326           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
15328 2005-02-13  Peter Bartok  <pbartok@novell.com>
15330         * MouseButtons.cs: Added missing attributes
15331         * XplatUIStructs.cs: Added enumeration for title styles
15332         * LeftRightAlignment.cs: Added missing attributes
15333         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
15334           it compatible with Graphics.FromHwnd()
15335         * SelectedGridItemChangedEventArgs.cs: Fixed property type
15336         * Keys.cs: Added missing attributes
15337         * SelectionRange.cs: Added missing attributes
15338         * SelectionRangeConverter.cs: Added
15339         * XplatUI.cs:
15340           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
15341             ReleaseMenuDC methods
15342           - Renamed ReleaseWindow to UngrabWindow
15343           - Added proper startup notice to allow version identification
15344         * Form.cs:
15345           - Added missing attributes
15346           - Removed FormParent concept
15347         * Label.cs: Removed border_style field, now in Control
15348         * RadioButton.cs: Now properly selects RadioButton when focus is
15349           received
15350         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
15351         * Control.cs:
15352           - Added missing attributes
15353           - Added borderstyle handling
15354           - Removed FormParent concept support
15355           - Fixed calls to XplatUI to match changed APIs
15356           - Fixed bug that would case us to use disposed Graphics objects
15357           - Removed unneeded internal methods
15358           - PerformLayout(): Fixed to handle DockStyle.Fill properly
15359           - SelectNextControl(): Fixed to properly check common parents
15360         * TextBoxBase.cs: Removed border_style field (now in Control)
15361         * MessageBox.cs:
15362           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
15363             fixed calculations for form size
15364           - Added support for localized strings and icons
15365           - Improved form size calculations, added border
15366         * ListView.cs: Removed border_style field (now in Control)
15367         * X11Structs.cs: Moved several structs from X11 driver here
15368         * X11Keyboard.cs: Changed debug message
15369         * Application.cs: Removed FormParent concept support
15370         * CommonDialog.cs:
15371           - Resetting end_modal flag
15372           - Removed FormParent concept support
15373         * NativeWindow.cs: Removed FormParent concept support
15374         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
15375           Client area and Non-Client whole window to allow support for WM_NC
15376           messages
15377         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
15378           prevent using it until it supports Hwnd as per Geoff Norton's request
15379         * ToolBar.cs: Fixed drawing, was not doing proper drawing
15380         * PictureBox.cs: Removed border_style field, now in Control
15381         * XplatUIWin32.cs: Added new driver methods
15383 2005-02-12  Peter Bartok  <pbartok@novell.com>
15385         * OpacityConverter.cs: Implemented
15386         * Hwnd.cs: Internal class to support drivers that need to emulate
15387           client area/non-client area window behaviour
15389 2005-02-11  Peter Bartok  <pbartok@novell.com>
15391         * KeysConverter.cs: Implemented
15393 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
15395         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
15396         * LinkLabel: Added missing attributes
15397         * MainMenu.cs: fixes ToString
15398         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
15399         * ListBox.cs: fixes event position
15400         * TrackBar.cs: adds missing attributes and events
15401         
15402 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
15404         * MenuItem.cs: Use SystemInformation and bug fixes
15405         * MenuAPI.cs: Use SystemInformation and bug fixes
15407 2005-02-09  Jackson Harper  <jackson@ximian.com>
15409         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
15410         their keystate otherwise things like VK_MENU get stuck "on".
15412 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
15414         * ListBox.cs: Fixes AddRange bug
15415         
15416 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
15418         * ProgressBar.cs
15419                 - Add missing attributes
15420                 - Add missing method
15421                 
15422         * CheckedListBox.cs: Added missing attributes
15423                 - Add missing attributes
15424                 - Remove extra method
15425         
15426         * ComboBox.cs: Added missing attributes
15427         * VScrollBar.cs: Added missing attributes
15428         * ScrollBar.cs:  Added missing attributes
15429         * ListBox.cs: Fixes signature, add missing consts
15430         * LinkArea.cs:   Added missing attributes
15431         
15433 2005-02-08  Peter Bartok  <pbartok@novell.com>
15435         * Menu.cs: Added missing attributes
15436         * MainMenu.cs: Added missing attributes
15437         * GroupBox.cs: Added missing attributes
15438         * Label.cs: Added missing attributes
15439         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
15440         * ColorDialog.cs:
15441           - Added Instance and Options properties
15442           - Added missing attributes
15443         * Cursor.cs: Made Serializable
15444         * NotifyIcon: Added missing attributes
15445         * MenuItem.cs: Added missing attributes
15446         * TextBoxBase.cs: Implemented AppendText() and Select() methods
15447         * Panel.cs: Added Missing attributes
15448         * MonthCalendar.cs: Fixed CreateParams
15450 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15451         
15452         * LinkLabel.cs:
15453                 - Fixes signature
15454                 - Fixes issues with links
15455                 - Adds the class attributes
15457 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15458         
15459         * ComboBox.cs:
15460                 - Fixes button when no items available in dropdown
15461                 - Fixes repainting problems
15462                 - Adds the class attributes
15463                 
15464 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15466         * XplatUIOSX.cs: Detect the menu bar and title bar height from
15467         the current theme.  Cache these on startup.
15469 2005-02-07  Jackson Harper  <jackson@ximian.com>
15471         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
15472         the scrollbar buttons when they are depressed.
15474 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15476         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
15477         Get the display size from the main displayid.  We currently dont
15478         support multiple display configurations.
15480 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15482         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
15484 2005-02-07  Miguel de Icaza  <miguel@novell.com>
15486         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
15488 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
15490         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
15492 2005-02-04  Jackson Harper  <jackson@ximian.com>
15494         * ThemeWin32Classic.cs: Respect the clipping rect when
15495         drawing. Only fill the intersection of clips and rects so there
15496         isn't a lot of large fills.
15497         * ScrollBar.cs: Pass the correct clipping rect to the theme
15498         engine. Remove some debug code.
15500 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
15501         
15502         * DateTimePicker.cs:
15503                 - Fixed crash on DateTime.Parse, use Constructor instead
15505 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15506         
15507         * MenuItem.cs:
15508         * MenuAPI.cs:
15509                 - Owner draw support (MeasureItem and DrawItem)
15511 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15512         
15513         *  Menu.cs:
15514                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
15515                 - Fixes MenuItems.Add range
15516         * MenuItem.cs:
15517                 - MergeMenu and Clone and CloneMenu functions
15519 2005-02-03  Jackson Harper  <jackson@ximian.com>
15521         * ScrollBar.cs: Make abstract
15522         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
15523         is abstract.
15525 2005-02-03  Jackson Harper  <jackson@ximian.com>
15527         * ScrollBar.cs: First part of my scrollbar fixups. This removes
15528         all the unneeded refreshes and uses invalidates with properly
15529         computed rects.
15531 2005-02-03  Peter Bartok  <pbartok@novell.com>
15533         * ComponentModel.cs: Added
15534         * IDataGridEditingService.cs: Added
15535         * Timer.cs: Added missing attributes
15536         * ToolTip.cs: Added missing attributes
15538 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15540         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
15542 2005-02-03  Peter Bartok  <pbartok@novell.com>
15544         * ListBox.cs: Added missing attributes
15546 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
15547         
15548         * ListBox.cs:
15549                 - Fixes font height after font change
15550                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
15551                 
15552 2005-02-02  Peter Bartok  <pbartok@novell.com>
15554         * HandleData.cs: Introduced static methods to allow class
15555           to be more self-contained and track it's own HandleData objects
15556         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
15557           HandleData to use new static methods
15559 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
15561         * Combobox.cs:
15562                 - Fixes default size and PreferredHeight
15563                 - Missing events
15564                 - ObjectCollection.Insert implementation
15565                 
15566         * ListControl.cs
15567                 - Fixes signature
15568         * ListBox.cs:
15569                 - Several fixes
15570                 - ObjectCollection.Insert implementation
15571                 - No selection after clean
15572                 - Small fixes
15574 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15576         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
15578 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
15580         * Combobox.cs:
15581                 - Caches ItemHeight calculation for OwnerDrawVariable
15582                 - Handles dropdown properly
15583                 - Fixes several minor bugs
15585 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15587         * ListBox.cs:
15588                 - Fixes 71946 and 71950
15589                 - Fixes changing Multicolumn on the fly
15590                 - Fixes keyboard navigation on Multicolumn listboxes
15592 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15593         
15594         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
15595         crash reporter log.
15597 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15599         * XplatUIOSX.cs: Allow applications to actually exit.
15601 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15603         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
15604         their parent at creation time rather than lazily later.  Fixes a major
15605         regression we were experiencing.
15607 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15609         * ThemeWin32Classic.cs: more date time picker painting fixes
15610         * DateTimePicker.cs: more monthcalendar drop down fixes
15611         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
15613 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15615         * ScrollBar.cs:
15616                 - When moving the thumb going outside the control should stop the moving
15617                 - Adds the firing of missing events
15618                 - Fixes no button show if Size is not specified
15619                 - End / Home keys for keyboard navigation
15621 2005-01-30  Peter Bartok  <pbartok@novell.com>
15623         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
15624           sanity check to prevent theoretical loop
15625         * XplatUIWin32.cs (SetVisible): Removed debug output
15626         * XplatUIX11.cs (SystrayChange): Added sanity check
15627         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
15628         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
15629           behaviour, valid until the X11 client window rewrite is done
15630         * TextBox.cs (ctor): Setting proper default foreground and background
15631           colors
15633 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
15635         * Theme: Added DrawDateTimePicker to interface
15636         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
15637         * DateTimePicker.cs: Created (still needs keys and painting code)
15638         * DateTimePickerFormat.cs: added
15639         * MonthCalendar.cs: fixed CreateParams for popup window mode
15640           
15641 2005-01-29  Peter Bartok  <pbartok@novell.com>
15643         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
15644           this should also the calculations for ligher/darker
15645         * Theme.cs: Fixed defaults for ScrollBar widths/heights
15647 2005-01-29  Peter Bartok  <pbartok@novell.com>
15649         * ArrangeDirection.cs: Added
15650         * ArrangeStartingPositon.cs: Added
15651         * SystemInformation.cs: Implemented
15652         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15653           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
15654           used by SystemInformation class
15655         * X11Strucs.cs: Added XSizeHints structure
15656         * MenuAPI.cs:
15657           - Fixed CreateParams to make sure the menu window is always visible
15658           - TrackPopupMenu: Added check to make sure we don't draw the
15659             menu offscreen
15661 2005-01-29  Peter Bartok  <pbartok@novell.com>
15663         * HandleData.cs: Added method for altering invalid area
15664         * TextBoxBase.cs: Implemented TextLength
15666 2005-01-28  Peter Bartok  <pbartok@novell.com>
15668         * XplatUIX11.cs: Improvement over last patch, not sending
15669           the WM_PAINT directly anymore, instead we scroll any pending
15670           exposed areas and let the system pick out the WM_PAINT later
15672 2005-01-28  Peter Bartok  <pbartok@novell.com>
15674         * SWF.csproj: Deleted, no longer used. Instead,
15675           Managed.Windows.Forms/SWF.csproj should be used
15676         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
15677           directly, to avoid a potential race condition with the next
15678           scroll
15680 2005-01-28  Peter Bartok  <pbartok@novell.com>
15682         * XplatUI.cs: Made class internal
15684 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
15686         * CheckedListBox.cs:
15687                 - Draw focus
15688                 - Fixed Drawing
15689                 - Missing methods and events
15691 2005-01-27  Peter Bartok  <pbartok@novell.com>
15693         * Application.cs (Run): Don't use form if we don't have one
15695 2005-01-27  Peter Bartok  <pbartok@novell.com>
15697         * TextBoxBase.cs (get_Lines): Fixed index off by one error
15699 2005-01-27  Peter Bartok  <pbartok@novell.com>
15701         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
15702         * GridItem.cs: Added; Patch by Jonathan S. Chambers
15703         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
15704         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
15705         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
15706         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
15707         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15708         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15709         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15710         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15711         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15712         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15714 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15716         * Combobox.cs:
15717                 - Draw focus on Simple Combobox
15718                 - Fixes drawing issues
15719                 - fixes 71834
15721 2005-01-27  Peter Bartok  <pbartok@novell.com>
15723         * Form.cs:
15724           - Place window in default location, instead of hardcoded 0/0
15725           - Send initial LocationChanged event
15726         * Control.cs:
15727           - UpdateBounds after creation to find out where the WM placed us
15728           - Make sure that if the ParentForm changes location the Form
15729             is notified
15730         * XplatUIX11.cs: XGetGeometry will not return the coords relative
15731             to the root, but to whatever the WM placed around us.
15732             Translate to root coordinates before returning toplevel
15733             coordinates
15734         * XplatUIWin32.cs: Removed debug output
15735         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
15736           flag to GetWindowPos, to allow translation of coordinates on X11
15738 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15740         * ListBox.cs: connect LostFocus Event
15742 2005-01-27  Peter Bartok  <pbartok@novell.com>
15744         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15745           XplatUIX11.cs: Extended the Systray API
15746         * Form.cs: Removed debug output
15747         * Application.cs: Fixed focus assignment, always need to call
15748           XplatUI.Activate() since Form.Activate() has rules that may
15749           prevent activation
15750         * NotifyIcon.cs: Should be complete now
15751         * ToolTip.cs: Worked around possible timer bug
15753 2005-01-27  Jackson Harper  <jackson@ximian.com>
15755         * TabControl.cs:
15756         - Only invalidate the effected tabs when the
15757         selected index changes. This reduces drawing and gets rid of some
15758         flicker.
15759         - Only refresh if the tabs need to be shifted, otherwise only
15760         invalidate the slider button.
15761         - On windows the tabs are not filled to right if the slider is
15762         visible.
15763         
15764 2005-01-27  Jackson Harper  <jackson@ximian.com>
15766         * TabControl.cs: Only refresh on mouseup if we are showing the
15767         slider. Also only invalidate the button whose state has changed.
15769 2005-01-26  Peter Bartok  <pbartok@novell.com>
15771         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
15772         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
15773           and SystrayRemove() methods
15774         * XplatUIOSX.cs: Stubbed Systray methods
15775         * XplatUIX11.cs:
15776           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
15777             methods
15778           - Fixed broken XChangeProperty calls (marshalling messed up things)
15779         * X11Structs.cs: Added enums and structs required for Size hinting
15780         * NotifyIcon.cs: Added & implemented
15782 2005-01-26  Jackson Harper  <jackson@ximian.com>
15784         * TabControl.cs: Space vertically layed out tabs properly.
15786 2005-01-26  Peter Bartok  <pbartok@novell.com>
15788         * Form.cs (CreateClientParams): Always set the location to 0,0
15789           since we're a child window.
15791         * Control.cs (SetVisibleCore): Always explicitly setting the location
15792           of a toplevel window, apparently X11 doesn't like to move windows
15793           while they're not mapped.
15795 2005-01-26  Jackson Harper  <jackson@ximian.com>
15797         * TabControl.cs: Implement FillToRight size mode with vertically
15798         rendered tabs.
15800 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15802         * ControlPaint.cs, ThemeWin32Classic.cs
15803                 - Fixes DrawFocusRectangle
15805 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15807         * MenuAPI.cs:
15808                 - MenuBar tracking only starts when item is first clicked
15809                 - Fixes menu hidding for multiple subitems
15810                 - Unselect item in MenuBar when item Executed
15811                 - Fixes bug 71495
15813 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
15815         * ListControl.cs:
15816                 - IsInputKey for ListBox
15817         * ListBox.cs:
15818                 - Focus item
15819                 - Shift and Control item selection
15820                 - Implement SelectionMode.MultiExtended
15821                 - Fixes RightToLeft
15822         * ComboBox.cs:
15823                 - IsInputKey implemented
15824                 - Do not generate OnTextChangedEdit on internal txt changes
15825                 
15826 2005-01-23  Peter Bartok  <pbartok@novell.com>
15828         * AccessibleObject.cs: Partially implemented Select()
15829         * MonthCalendar.cs: Added missing attributes and events
15830         * Form.cs: Fixed CreateParams behaviour, now controls derived from
15831           form can properly override CreateParams.
15832         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15833           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
15834           Control performs Invalidate & Update
15835         * NativeWindow (CreateHandle): Added special handling for Form
15836           and Form.FormParent classes to allow overriding of From.CreateParams
15837         * Control.cs:
15838           - ControlNativeWindow: Renamed 'control' variable to more intuitive
15839             name 'owner'
15840           - ControlNativeWindow: Added Owner property
15841           - Removed usage of Refresh() on property changes, changed into
15842             Invalidate(), we need to wait until the queue is processed for
15843             updates, direct calls might cause problems if not all vars for
15844             Paint are initialized
15845           - Added call to UpdateStyles() when creating the window, to set any
15846             styles that CreateWindow might have ignored.
15847           - Added support for Form CreateParent overrides to UpdateStyles()
15848         * MessageBox.cs: Removed no longer needed FormParent override stuff,
15849           CreateParams are now properly overridable
15850         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
15851           CreateParams are now properly overridable
15853 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
15855         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
15856         OnTextBoxChanged.
15858         Capture LostFocus and OnTextBoxChanged.  The later introduces a
15859         recursive invocation that I have not figured out yet.
15861         Reset the timer when not using (it was accumulating).
15864         (OnTextBoxChanged): Set UserEdit to true here to track whether the
15865         user has made changes that require validation.
15867         Reset changing to avoid loops.
15869 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
15871         * NumericUpDown.cs: Display value at startup.
15873         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
15874         ValidateEditText.
15876         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
15877         filled in.  Added some basic parsing of text.
15879         Still missing the OnXXX method overrides, and figuring out the
15880         events that must be emitted.
15882         * UpDownBase.cs: Handle UserEdit on the Text property.
15883         
15884 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
15886         * ComboBox.cs:
15887           - Fixes IntegralHeight
15888           - ToString method
15890 2005-01-21  Jackson Harper  <jackson@ximian.com>
15892         * TabControl.cs: Set the SelectedIndex property when SelectedTab
15893         is set so that the page visibility is updated and the tabs are
15894         sized correctly.
15896 2005-01-21  Jackson Harper  <jackson@ximian.com>
15898         * TabControl.cs: Use cliping rectangle for blitting. Give the
15899         theme the clipping rect so we can do clipping while
15900         drawing. Remove some debug code.
15902 2005-01-21  Jackson Harper  <jackson@ximian.com>
15904         * TabPage.cs: Add a new method so tab pages can force the tab
15905         control to recalculate the tab page sizes.
15906         * TabControl.cs: UpdateOwner needs to make the tab control recalc
15907         sizes.
15909 2005-01-20  Jackson Harper  <jackson@ximian.com>
15911         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
15913 2005-01-20  Jackson Harper  <jackson@ximian.com>
15915         * TreeView.cs: Set the bounds for nodes properly. They were
15916         getting screwed up when checkboxes were not enabled, but images
15917         were.
15919 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
15921         * ListBox.cs:
15922                 - Owner draw support
15923                 - Fixes
15924                 
15925 2005-01-20  Jackson Harper  <jackson@ximian.com>
15927         * XplatUIStructs.cs: More misc keys
15928         * X11Keyboard.cs: Ignore some control keys.
15930 2005-01-20  Jackson Harper  <jackson@ximian.com>
15932         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
15933         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
15935 2005-01-19  Peter Bartok  <pbartok@novell.com>
15937         * Control.cs: Un-selecting the control when it is loosing focus
15939 2005-01-19  Jackson Harper  <jackson@ximian.com>
15941         * TreeView.cs: Hook up to the text controls leave event so we can
15942         end editing when the users clicks outside the text box.
15943         
15944 2005-01-19  Jackson Harper  <jackson@ximian.com>
15946         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
15947         get set in the conversion array.
15949 2005-01-19  Peter Bartok  <pbartok@novell.com>
15951         * Application.cs (ModalRun): Added a call to CreateControl to ensure
15952           focus is properly set
15953         * Button.cs:
15954           - Added missing attributes
15955           - removed styles, those are already set in the base class
15956         * ButtonBase.cs:
15957           - Added missing attributes
15958           - Added clip window styles
15959         * CheckBox.cs: Added missing attributes
15960         * CommonDialog.cs:
15961           - FormParentWindow.CreateParams: Added required clip styles
15962         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
15963           also filters modifier keys
15964         * MessageBox.cs:
15965           - Added assignment of Accept and Cancel button to enable Enter
15966             and Esc keys in MessageBox dialogs
15967           - FormParentWindow.CreateParams: Added required clip styles
15968         * RadioButton.cs: Added missing attributes
15969         * TextControl.cs: No longer draws selection if control does not
15970           have focus
15971         * TextBoxBase.cs:
15972           - Now draws simple rectangle around test area to make it obvious
15973             there's a control. This is a hack until we properly support borders
15974           - A few simple fixes to support selections better, now erases selected
15975             text when typing, and resets selection when using movement keys
15977 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
15979         * UpDownBase.cs: Added some new properties.
15981         * DomainUpDown.cs: Implement a lot to get my test working.
15983 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15985         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
15987 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15989         * OSXStructs (WindowAttributes): Fixed csc complaints
15991 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15993         * XplayUIOSX.cs:
15994           OSXStructs.cs: Initial refactor to move enums and consts into
15995           OSXStructs and use them in the driver for greater readability.
15997 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15999         * XplatUIOSX.cs: Initial support for Standard Cursors.
16000         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
16002 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
16004         * ComboBox.cs: ability to change style when the ctrl is already
16005         created, missing methods and events, bug fixes, signature fixes
16007 2005-01-19  Peter Bartok  <pbartok@novell.com>
16009         * Cursors.cs (ctor): Added ctor to fix signature
16011 2005-01-18  Peter Bartok  <pbartok@novell.com>
16013         * Button.cs: Implemented DoubleClick event
16014         * ButtonBase.cs:
16015           - Fixed keyboard handling to behave like MS, where the press of
16016             Spacebar is equivalent to a mousedown, and the key release is
16017             equivalent to mouseup. Now a spacebar push will give the same
16018             visual feedback like a mouse click.
16019           - Added missing attributes
16020           - Added ImeModeChanged event
16021           - Added support for generating DoubleClick event for derived classes
16022         * CheckBox.cs:
16023           - Implemented DoubleClick event
16024           - Added missing attributes
16025         * CommonDialog.cs: Added missing attribute
16026         * ContextMenu.cs: Added missing attributes
16027         * RadioButton.cs:
16028           - AutoChecked buttons do not allow to be unselected when clicked
16029             (otherwise we might end up with no selected buttons in a group)
16030           - Added missing attributes
16031           - Implemented DoubleClickEvent
16032         * ThreadExceptionDialog.cs: Enabled TextBox code
16034 2005-01-18  Peter Bartok  <pbartok@novell.com>
16036         * Form.cs: Removed debug output
16037         * Button.cs: Added support for DoubleClick method
16039 2005-01-18  Peter Bartok  <pbartok@novell.com>
16041         * Form.cs:
16042           - Added method to parent window that allows triggering size
16043             calculations when a menu is added/removed
16044           - set_Menu: Cleaned up mess from early days of Form and Control,
16045             now properly triggers a recalc when a menu is added/removed
16046           - Added case to select form itself as focused form if no child
16047             controls exist
16048           - Added PerformLayout call when showing dialog, to ensure properly
16049             placed controls
16050         * Control.cs:
16051           - Select(): Made internal so Form can access it
16052           - Focus(): Only call Xplat layer if required (avoids loop), and sets
16053             status
16054         * Application.cs (Run): Removed hack and calls PerformLayout instead
16055           to trigger calculation when Form becomes visible
16057 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
16059         * ComboBox.cs: fixes for ownerdraw
16061 2005-01-18  Peter Bartok  <pbartok@novell.com>
16063         * TextControl.cs:
16064           - Sentinel is no longer static, each Document gets it's own, this
16065             avoids locking or alternatively overwrite problems when more
16066             than one text control is used simultaneously.
16067           - Switched to use Hilight and HilightText brushes for text selection
16069         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
16071 2005-01-18  Peter Bartok  <pbartok@novell.com>
16073         * Control.cs:
16074           - Hooked up the following events:
16075                 o ControlAdded
16076                 o ControlRemoved
16077                 o HandleDestroyed
16078                 o ImeModeChanged
16079                 o ParentChanged
16080                 o TabStopChanged
16081                 o Invalidated
16082                 o SystemColorsChanged
16083                 o ParentFontChanged
16084                 o Move
16085           - Removed debug output
16086           - Added a call to the current theme's ResetDefaults when a color change
16087             is detected
16088         * Form.cs: Now setting the proper ImeMode
16089         * Theme.cs: Defined a method to force recreation of cached resources
16090           and rereading of system defaults (ResetDefaults())
16091         * ThemeWin32Classic.cs: Added ResetDefaults() stub
16093 2005-01-17  Peter Bartok  <pbartok@novell.com>
16095         * Control.cs: Added missing attributes
16097 2005-01-17  Jackson Harper  <jackson@ximian.com>
16099         * TreeNode.cs: Implement editing. Add missing properties selected
16100         and visible.
16101         * TreeView.cs: Implement node editing. Also some fixes to use
16102         Invalidate (invalid area) instead of Refresh when selecting.
16104 2005-01-17  Peter Bartok  <pbartok@novell.com>
16106         * Control.cs:
16107           - Implemented InvokeGotFocus() method
16108           - Implemented InvokeLostFocus() method
16109           - Implemented InvokePaint() method
16110           - Implemented InvokePaintBackground() method
16111           - Implemented InvokeClick() method
16112           - Implemented FindForm() method
16113           - Implemented RectangleToClient() method
16114           - Implemented ClientToRectangle() method
16115           - Implemented ResetBackColor() method
16116           - Implemented ResetCursor() method
16117           - Implemented ResetFont() method
16118           - Implemented ResteForeColor() method
16119           - Implemented ResetImeMode() method
16120           - Implemented ResetLeftToRight() method
16121           - Implemented ResetText() method
16122           - Implemented Scale() methods
16123           - Implemented ScaleCore() method
16124           - Implemented Update() method
16125           - Removed unused variables
16126           - Stubbed AccessibilityNotifyClients and
16127             ControlAccessibleObject.NotifyClients() methods (dunno what to do
16128             with those yet)
16129           - Now setting proper default for RightToLeft property
16130           - Fixed bug in SetClientSizeCore that would cause windows to get
16131             really big
16132           - Now sending Click/DoubleClick events
16133           - Now selecting controls when left mouse button is clicked on
16134             selectable control
16135         * AccessibleEvents.cs: Added
16136         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
16137         * XplatUIOSX.cs: Stubbed UpdateWindow() method
16138         * XplatUIWin32.cs: Implemented UpdateWindow() method
16139         * XplatUIX11.cs: Implemented UpdateWindow() method
16140         * Form.cs: Removed stray semicolon causing CS0162 warning
16141         * ThemeWin32Classic.cs: Fixed unused variable warnings
16142         * ScrollableControl.cs: Now calls base method for ScaleCore
16143         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
16144           style to avoid interference with internal click handler (which is
16145           different than standard Control click handling)
16146         * RadioButton.cs:
16147           - Now unchecks all sibling radio buttons when control is
16148             selected (Fixes #68756)
16149           - Removed internal tabstop variable, using the one inherited from
16150             Control
16152 2005-01-17  Jackson Harper  <jackson@ximian.com>
16154         * NavigateEventArgs.cs: Fix base type.
16155         * LinkLabel.cs: Sig fix
16156         
16157 2005-01-17  Jackson Harper  <jackson@ximian.com>
16159         * TreeView.cs: Only invalidate the effected nodes bounds when
16160         selecting nodes.
16162 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16164         * XplatUIWin32.cs: fixes Win32 marshaling
16165         * XplatUIX11.cs: fixes method signature
16167 2005-01-17  Peter Bartok  <pbartok@novell.com>
16169         * XplatUIX11.cs: Clean up resources when we no longer need them
16171 2005-01-17  Peter Bartok  <pbartok@novell.com>
16173         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
16174           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
16175           and DestroyCursor() methods.
16176         * Cursor.cs: Partially implemented, now supports standard cursors;
16177           still contains some debug code
16178         * Cursors.cs: Implemented class
16179         * Control.cs:
16180           - WndProc(): Added handling of WM_SETCURSOR message, setting the
16181             appropriate cursor
16182           - Implemented Cursor property
16183           - Replaced break; with return; more straightforwar and possibly
16184             faster
16185           - Now properly setting the result for WM_HELP
16186         * X11Structs.cs: Added CursorFontShape enum
16187         * XplatUIStructs.cs:
16188           - Added StdCursor enum (to support DefineStdCursor() method)
16189           - Added HitTest enum (to support sending WM_SETCURSOR message)
16190         * XplatUIX11.cs:
16191           - Now sends the WM_SETCURSOR message
16192           - Implemented new cursor methods
16193         * XplatUIOSX.cs: Stubbed new cursor methods
16194         * XplatUIWin32.cs:
16195           - Implemented new cursor methods
16196           - Added GetSystemMetrics function and associated enumeration
16198 2005-01-15  Peter Bartok  <pbartok@novell.com>
16200         * Control.cs:
16201           - WndProc(): Now handles EnableNotifyMessage
16202           - SelectNextControl(): Fixed bug where if no child or sibling
16203             controls exist we looped endlessly
16205 2005-01-14  Jackson Harper  <jackson@ximian.com>
16207         * TreeView.cs: Recalculate the tab pages when a new one is added
16208         so that the proper bounding rects are created.
16210 2005-01-14  Jackson Harper  <jackson@ximian.com>
16212         * TreeView.cs: Draw a gray box instead of a grip in the lower
16213         right hand corner when there are both horizontal and vertical
16214         scroll bars.
16216 2005-01-14  Jackson Harper  <jackson@ximian.com>
16218         * Control.cs: When erasing backgrounds use FromHwnd instead of
16219         FromHdc when there is a NULL wparam. This occurs on the X driver.
16220         * XplatUIX11.cs: Set the wparam to NULL.
16222 2005-01-13  Jackson Harper  <jackson@ximian.com>
16224         * PictureBox.cs: Implement missing methods (except ToString, need
16225         to test that on windows) and events. When visibility is changed we
16226         need to redraw the image because the buffers are killed. When size
16227         is changed refresh if the sizemode needs it.
16229 2005-01-13  Peter Bartok  <pbartok@novell.com>
16231         * Control.cs (SelectNextControl): Was using wrong method to select
16232           a control
16234 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16236         * ComboBox.cs: fixes dropstyle
16238 2005-01-13  Peter Bartok  <pbartok@novell.com>
16240         * Form.cs:
16241           - Implemented Select() override
16242           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
16243           - Now sets keyboard focus on startup
16244         * Control.cs (SelectNextControl): Now properly handles directed=true
16245         * TextBoxBase.cs:
16246           - WndProc: Now passes tab key on to base if AcceptTabChar=false
16247           - Added (really bad) focus rectangle (mostly for testing)
16248         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
16249           to enforce redraw on focus changes
16250         * ContainerControl.cs:
16251           - Fixed detection of Shift-Tab key presses
16252           - Fixed traversal with arrow keys
16253         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
16254           gonna keep this or if it's complete yet
16255         
16256 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
16258         * ComboBox.cs: missing properties, fixes
16260 2005-01-13  Peter Bartok  <pbartok@novell.com>
16262         * Panel.cs (ctor): Setting Selectable window style to off
16263         * Splitter.cs (ctor): Setting Selectable window style to off
16264         * GroupBox.cs (ctor): Setting Selectable window style to off
16265         * Label.cs (ctor): Setting Selectable window style to off
16267 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
16269         * UpDownBase.cs (InitTimer): If the timer has been already
16270         created, enable it.
16272         Use a TextBox instead of a Label.
16274 2005-01-12  Jackson Harper  <jackson@ximian.com>
16276         * TreeView.cs: Refresh the tree after sorting the nodes. Always
16277         draw the connecting node lines (when ShowLines is true).
16278         * TreeNode.cs: The nodes index can now be updated. This is used
16279         when a node collection is sorted.
16280         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
16281         insert or an existing unsorted node collection can be sorted.
16282         
16283 2005-01-12  Peter Bartok  <pbartok@novell.com>
16285         * ContainerControl.cs: Implemented ProcessDialogKeys()
16287 2005-01-12  Peter Bartok  <pbartok@novell.com>
16289         * Control.cs:
16290           - Implemented SelectNextControl() method
16291           - Several focus related bug fixes
16292           - Fixed Docking calculations to match MS documentation and
16293             behaviour
16295 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
16297         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
16298         bug fixes
16300 2005-01-12  Peter Bartok  <pbartok@novell.com>
16302         * Control.cs:
16303           - Fixed broken Contains() method
16304           - Implemented GetNextControl() method. Finally. This is the pre-
16305             requisite for focus handling.
16307 2005-01-12  Peter Bartok  <pbartok@novell.com>
16309         * OSXStrucs.cs: Added
16311 2005-01-12  Peter Bartok  <pbartok@novell.com>
16313         * XplatUIWin32.cs:
16314           - Removed PeekMessageFlags
16315           - Implemented SetWindowStyle() method
16316         * XplatUIStructs.cs: Added PeekMessageFlags
16317         * X11Structs: Added missing border_width field to XWindowChanges struct
16318         * XplatUIX11.cs:
16319           - PeekMessage: Now throws exception if flags which are not yet
16320             supported are passed
16321           - Implemented SetWindowStyle() method
16322           - Fixed SetZOrder to handle AfterHwnd properly
16323         * XplatUI.cs: Added SetWindowStyle() method
16324         * XplatUIDriver.cs: Added SetWindowStyle() abstract
16325         * Control.cs:
16326           - Implemented UpdateStyles() method
16327           - Implemented UpdateZOrder() method
16328         * XplatUIOSX.cs: Added SetWindowStyle() stub
16330 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
16332         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
16333         button mouse).
16336 2005-01-11  Jackson Harper  <jackson@ximian.com>
16338         * TreeView.cs: Still need to draw lines to siblings even if out of
16339         the current node is out of the clip.
16341 2005-01-11  Jackson Harper  <jackson@ximian.com>
16343         * TreeView.cs: When setting the hbar/vbar/grip position use
16344         SetBounds so that perform layout is only called once. Also suspend
16345         and resume layout so layout is only done once for all controls.
16346         - Removed some debug fluff
16347         * SizeGrip.cs: Call base implmentation in overriding methods.
16348         - When visibility is changed the drawing buffers are killed so we
16349         need to redraw.
16351 2005-01-11  Jackson Harper  <jackson@ximian.com>
16353         * TreeView.cs: Calculate the open node count while drawing. This
16354         saves us an entire tree traversal for every paint operation. Use
16355         a member var for the open node count so less vars are passed around.
16357 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
16359         * MonthCalendar.cs:
16360         - fixed selection to use mousemove, not mouse polling on timer
16361         * ThemeWin32Classic.cs
16362         - removed redundant unused variable "no_more_content"
16363         
16364 2005-01-11  Peter Bartok  <pbartok@novell.com>
16366         * XplatUIX11.cs (DoEvents): Needs to return when no more events
16367           are pending, so it now calls PeekMessage instead of GetMessage;
16368           implemented a incomplete version of PeekMessage
16369         
16370 2005-01-11  Peter Bartok  <pbartok@novell.com>
16372         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
16373           I18n issues
16374         * TextBoxBase.cs: Added sending of TextChanged event
16376 2005-01-10  Jackson Harper  <jackson@ximian.com>
16378         * TreeView.cs: Try not to draw outside the clipping rectangle on
16379         each node element.
16381 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
16383         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
16385 2005-01-10  Jackson Harper  <jackson@ximian.com>
16387         * TreeView.cs:
16388         - Implement fast scrolling. Now only the newly
16389         exposed nodes are drawn and the old image is moved using the
16390         XplatUI::ScrollWindow method.
16391         - Factor in height of nodes when calculating whether or not the
16392         node is in the clipping rect.
16394 2005-01-10  Jackson Harper  <jackson@ximian.com>
16396         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
16398 2005-01-10  Peter Bartok  <pbartok@novell.com>
16400         * Application.cs: Added temporary hack to resolve all our resize
16401           required issues on startup. This will get fixed properly at
16402           some point in the future
16404 2005-01-10  Jackson Harper  <jackson@ximian.com>
16406         * SizeGrip.cs: New internal class that is used as a sizing
16407         grip control...hence the name.
16409 2005-01-10  Peter Bartok  <pbartok@novell.com>
16411         * Control.cs: Implemented proper TabIndex handling, now assigning
16412           a tabindex when a control is added to a container
16413         * GroupBox.cs (ctor): Now sets the Container style bit, required
16414           for Control.GetNextControl()
16416 2005-01-09  Jackson Harper  <jackson@ximian.com>
16418         * TextBoxBase.cs: Clear window when scrolling (fixes build).
16420 2005-01-09  Peter Bartok <pbartok@novell.com>
16422         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16423           XplatUIX11.cs: Added ability to control ScrollWindow expose and
16424           an overload for ScrollWindow to allow only scrolling a rectangle
16426 2005-01-09  Peter Bartok <pbartok@novell.com>
16428         * Form.cs:
16429           - Implemented SetDesktopBounds method
16430           - Implemented SetDesktopLocation method
16432 2005-01-08  Jackson Harper  <jackson@ximian.com>
16434         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
16435         the node count has changed, this removes to VScroll::Refresh calls
16436         when drawing.
16438 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
16440         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
16442 2005-01-07  Jackson Harper  <jackson@ximian.com>
16444         * TreeNode.cs: Just update the single node when it is
16445         checked. Don't refresh after toggling, the Expand/Collapse already
16446         handles this.
16447         * TreeView.cs: Respect clipping a little more when drawing. Try
16448         not to redraw things that don't need to be redrawn. Just hide the
16449         scrollbars when they are no longer needed instead of removing
16450         them, so they don't have to be created again and again.
16451         
16452 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
16454         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
16455         coordinates to window space to place the caret properly, FIXED.
16456         Implement GetWindowState & SetWindowState
16458 2005-01-06  Peter Bartok <pbartok@novell.com>
16460         * Form.cs:
16461           - Implemented ClientSize property
16462           - Implemented DesktopBounds property
16463           - Implemented DesktopLocation property
16464           - Implemented IsRestrictedWindow property
16465           - Implemented Size property
16466           - Implemented TopLevel property
16467           - Implemented FormWindowState property
16468         * Control.cs:
16469           - Implemented GetTopLevel() method
16470           - Implemented SetTopLevel() method
16471         * X11Structs.cs (Atom):
16472           - Added AnyPropertyType definition
16473           - Added MapState definiton and updated XWindowAttribute struct
16474         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
16475         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
16476         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
16477         * XplatUIWin32.cs:
16478           - Implemented GetWindowState() and SetWindowState() methods
16479           - Fixed Win32GetWindowLong return type
16480         * XplatUIX11.cs:
16481           - Introduced central function for sending NET_WM messages
16482           - Implemented GetWindowState() and SetWindowState() methods
16483         * TextBoxBase.cs (set_Lines):
16484           - Now uses Foreground color for text added via Text property (Duh!)
16485           - Added code to remember programmatically requested size (fixes
16486             behaviour when Multiline is set after Size)
16487           - Added AutoSize logic
16489 2005-01-06  Jackson Harper  <jackson@ximian.com>
16491         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
16493 2005-01-06  Jackson Harper  <jackson@ximian.com>
16495         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
16496         set to less then 0.
16498 2005-01-06  Jackson Harper  <jackson@ximian.com>
16500         * ScrollableControl.cs: Lazy init the scrollbars.
16501         
16502 2005-01-06  Jackson Harper  <jackson@ximian.com>
16504         * Theme.cs: Speed up getting pens and solid brushes, by using
16505         their ARGB as a hash instead of tostring and not calling Contains.
16507 2005-01-06  Peter Bartok <pbartok@novell.com>
16509         * Form.cs:
16510           - Implemented OnActivated and OnDeactivate event trigger
16511           - Implemented Activate() method
16512           - Fixed ShowDialog() to activate the form that was active before
16513             the dialog was shown
16514         * XplatUIX11.cs:
16515           - Added global active_window var that tracks the currently active
16516             X11 window
16517           - Now always grabs Property changes from the root window to always
16518             catch changes on the active window property
16519           - Added code to PropertyNotify handler to send Active/Inactive
16520             messages when state changes. This puts X11 and Win32 en par on
16521             WM_ACTIVATE notifications (except for double notifications when
16522             the user clicks away from our modal window to another one of our
16523             windows)
16525 2005-01-05  Jackson Harper  <jackson@ximian.com>
16527         * ImageList.cs: Implment ctor
16529 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16531         * XplatUIOSX.cs: Implement Activate/SetTopmost
16533 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16535         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
16537 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16539         * XplatUIOSX.cs: Implement GetActive/SetFocus.
16541 2005-01-05  Peter Bartok <pbartok@novell.com>
16543         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
16544           XplatUIOSX.cs: Added GetActive method to return the currently
16545           active window for the application (or null, if none is active)
16546         * Form.cs:
16547           - Implemented ActiveForm
16548           - Commented out owner assignment for modal dialogs (causes problems
16549             on Win32, since the owner will be disabled)
16550           - Reworked some Active/Focus handling (still incomplete)
16551         * CommonDialog.cs: Commented out owner assignment for modal dialogs
16552           (causes problems on Win32, since the owner will be disabled)
16553         * IWin32Window: Added ComVisible attribute
16555 2005-01-05  Peter Bartok <pbartok@novell.com>
16557         * ToolTip.cs (WndProc): Enable setting focus now that we have the
16558           required XplatUI functions.
16560 2005-01-05  Peter Bartok <pbartok@novell.com>
16562         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
16563           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
16564           to implement focus and activation handling; still incomplete and
16565           with debug output
16567 2005-01-04  Peter Bartok <pbartok@novell.com>
16569         * TextBoxBase.cs: Changed access level for Document property to
16570           match switch to internal for TextControl
16572 2005-01-04  Peter Bartok <pbartok@novell.com>
16574         * AccessibleObject: Added ComVisible attribute
16576 2005-01-04  Jackson Harper  <jackson@ximian.com>
16578         * X11Keyboard.cs: Remove unneeded var.
16580 2005-01-04  Jackson Harper  <jackson@ximian.com>
16582         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
16583         but PAINT.
16584         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
16585         ClientMessage. This makes apps exit cleanly (more often).
16586         
16587 2005-01-04  Jackson Harper  <jackson@ximian.com>
16589         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
16590         handling focus, return correct colors and fonts,
16591         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
16592         handle selection, horizontal scrolling, and mouse interaction.
16594 2005-01-04  Peter Bartok <pbartok@novell.com>
16596         * ICommandExecutor.cs: Added
16597         * IDataGridColumnStyleEditingNotificationService.cs: Added
16598         * IFeatureSupport.cs: Added
16599         * IFileReaderService.cs: Added
16600         * IDataObject.cs: Added ComVisible attribute
16601         * AmbientProperties.cs: Added
16602         * BaseCollection.cs: Added missing attributes
16603         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
16604         * BaseCollection.cs: Added missing attributes
16605         * Binding.cs: Added TypeConverter attribute
16606         * BindingContext.cs: Added DefaultEvent attribute
16607         * BindingsCollection.cs: Added DefaultEvent attribute
16608         * Button.cs: Added DefaultValue attribute
16609         * DragEventArgs.cs: Added ComVisible attribute
16610         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
16611         * KeyEventArgs.cs: Added ComVisible attribute
16612         * KeyPressEventArgs.cs: Added ComVisible attribute
16613         * MouseEventArgs.cs: Added ComVisible attribute
16614         * NavigateEventArgs.cs: Added
16615         * NavigateEventHandler.cs: Added
16616         * FeatureSupport.cs: Added
16617         * OSFeature.cs: Added
16618         * Theme.cs: Added abstract Version property to support OSFeature
16619         * ThemeWin32Classic.cs: Added Version property to
16620           support OSFeature.Themes
16621         * ProgressBar.cs: Removed OnPaintBackground override, not required since
16622           the proper styles to avoid background drawing are set, also doesn't
16623           match MS signature
16624         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
16625         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
16626         * ScrollEventArgs.cs: Added ComVisible attribute
16627         * SplitterEventArgs.cs: Added ComVisible attribute
16628         * AccessibleSelection.cs: Added Flags attribute
16629         * Appearance.cs: Added ComVisible attribute
16630         * Border3DSide.cs: Added ComVisible attribute
16631         * Border3DStyle.cs: Added ComVisible attribute
16632         * BorderStyle.cs: Added ComVisible attribute
16633         * DragAction.cs: Added ComVisible attribute
16634         * ErrorBlinkStyle.cs: Added
16635         * ScrollEventType.cs: Added ComVisible attribute
16636         * AnchorStyles.cs: Added Editor attribute
16637         * DockStyle.cs: Added Editor attribute
16638         * HorizontalAlignment.cs: Added ComVisible attribute
16639         * HelpEventArgs.cs: Added ComVisible attribute
16640         * PaintEventArgs.cs: Added IDisposable
16642 2005-01-04  Peter Bartok <pbartok@novell.com>
16644         * TextControl.cs: Switched Line, LineTag and Document classes to
16645           internal
16647 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16649         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
16650         Simple mode, fixes, IntegralHeight, etc.
16652 2005-01-04  Peter Bartok <pbartok@novell.com>
16654         * TextBoxBase.cs: Using proper font variable now
16656 2005-01-04  Peter Bartok <pbartok@novell.com>
16658         * Form.cs (ShowDialog): Set parent to owner, if provided
16659         * GroupBox.cs: Removed unused vars
16660         * TextControl.cs:
16661           - Added GetHashCode() for Document and LineTag classes
16662           - Removed unused variables
16663           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
16664             to allow translation between continuous char position and line/pos
16665         * CheckBox.cs: Removed vars that are provided by base class
16666         * RadioButton.cs: Removed vars that are provided by base class, added
16667           new keyword where required
16668         * LinkLabel.cs: Added new keyword where required
16669         * Control.cs (WndProc): Removed unused variable
16670         * TextBoxBase.cs:
16671           - Finished SelectionLength property
16672           - Implemented SelectionStart property
16673           - Implemented Text property
16674           - Removed unused vars
16675         * MessageBox.cs: Added new keyword where required
16676         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
16677           WndProc signature
16678         * MenuAPI.cs: Added new keyword where required
16679         * ButtonBase.cs: Removed vars that are provided by base class, added
16680           new keyword where required
16681         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
16682           argument to double, to allow compiling with csc 2.0 (Atsushi ran
16683           into this)
16684         * Application.cs (Run): Now triggers the ThreadExit event
16685         * CommonDialog.cs: Added new keyword where required; now properly sets
16686           parent (owner) for dialog
16687         * XplatUIX11.cs: Commented out unused vars
16688         * StatusBar.cs: Fixed signature for Text property
16689         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
16691 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16693         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
16694         TrackBar.cs, MonthCalendar.cs: remove unused vars
16696 2005-01-03  Jackson Harper  <jackson@ximian.com>
16698         * ThemeWin32Classic.cs:
16699         * X11Keyboard.cs: Remove unused vars.
16701 2005-01-03  Peter Bartok  <pbartok@novell.com>
16703         * TextBox.cs:
16704           - set_Text: Tied into TextControl
16705           - set_TextAlignment: Tied into TextControl
16706         * TextControl.cs:
16707           - Added alignment properties and implemented alignment handling
16708             and drawing (still has a bug, not generating proper expose events)
16709           - Added new Line() constructor to allow passing the line alignment
16710           - Fixed selection setting, properly handling end<start now
16711           - Added aligment considerations to RecalculateDocument()
16712         * TextBoxBase.cs:
16713           - Now properly enforces control height for single line controls
16714           - Added support for CharacterCasing
16715           - Added IsInputKey override
16716           - Fixed Keys.Enter logic
16717           - Added SetBoundsCore override
16718           - Fixed mouse selection handling
16720 2005-01-03  Jackson Harper  <jackson@ximian.com>
16722         * TreeView.cs:
16723           - Collapse and uncheck all nodes when CheckBoxes is disabled.
16724           - Checkboxes are always aligned to the bottom of the node,
16725           regardless of item height.
16726           - Use the node bounds to draw the text so we can center it when
16727           the item height is greater then the font height.
16728           - Node::Bounds are only the text part of the node.
16729         * TreeNode.cs: New method to combine collapsing and unchecking all
16730           nodes recursively.
16732 2005-01-02  Jackson Harper  <jackson@ximian.com>
16734         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
16735         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
16736         tree when a check is changed. TODO: Only refresh the checked node.
16738 2004-12-30  Jackson Harper  <jackson@ximian.com>
16740         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
16741         * TreeNode.cs: When collapsing make sure to never collapse the
16742         root node.
16744 2004-12-29  Jackson Harper  <jackson@ximian.com>
16746         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
16747         
16748 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
16750         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
16752 2004-12-28  Peter Bartok  <pbartok@novell.com>
16754         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
16755           not yet assigned
16757 2004-12-28  Peter Bartok  <pbartok@novell.com>
16759         * Control.cs (WndProc): Added WM_HELP handler, now generates
16760           HelpRequested event
16761         * Form.cs: Added HelpButton property and required support code
16762         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
16764 2004-12-28  Peter Bartok  <pbartok@novell.com>
16766         * CommonDialog.cs:
16767           - Made DialogForm.owner variable internal
16768           - Added check to ensure owner form is set before setting
16769             owner properties in CreateParams
16771 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
16773         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
16774           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
16775           GetCursorPos.  Fix major visibility issues.  Rework the windowing
16776           system to support borderless/titleless windows (implements menus).
16777           Fix GetWindowPos.  Implement initial background color support for
16778           views.
16780 2004-12-28  Peter Bartok  <pbartok@novell.com>
16782         * Form.cs (get_CreateParams): Make sure we have an owner before using
16783           the owner variable. Implement proper default if no owner exists
16785 2004-12-28  Peter Bartok  <pbartok@novell.com>
16787         * In preparation for making Managed.Windows.Forms the default build target
16788           for System.Windows.Forms, the following stubbed files were added.
16789           Dialogs are currently being implemented by contributors and are only
16790           short-term place holders.
16791         * ColorDialog.cs: Initial check-in (minmal stub)
16792         * DataGrid.cs: Initial check-in (minimal stub)
16793         * DataGridLineStyle.cs: Initial check-in (minimal stub)
16794         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
16795         * DataGridTableStyle.cs: Initial check-in (minimal stub)
16796         * FontDialog.cs: Initial check-in (minimal stub)
16797         * FileDialog.cs: Initial check-in (minimal stub)
16798         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
16799         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
16800         * OpenFileDialog: Initial check-in (minimal stub)
16801         * IComponentEditorPageSite.cs: Initial check-in
16802         * Splitter.cs: Initial check-in (for Jackson)
16803         * SplitterEventArgs.cs: Initial check-in (for Jackson)
16804         * SplitterEventHandler.cs: Initial check-in (for Jackson)
16805         * TextBox.cs: Initial check-in; still needs some wiring to
16806           TextControl backend
16807         * Form.cs: Implemented ControlBox property
16808         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
16809         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
16810         * TextControl.cs: Added selection functionality; added todo header
16811         * TextBoxBase.cs:
16812           - Implemented Lines property
16813           - Implemented TextHeight property
16814           - Implemented SelectedText property
16815           - Implemented SelectionLength property
16816           - Implemented SelectAll method
16817           - Implemented ToString method
16818           - Removed and cleaned up some debug code
16819           - Implemented (still buggy) mouse text selection
16821 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
16823         * ComboBox.cs: Complete DropDownList implementation, fixes.
16825 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
16827         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
16828         * ComboBoxStyle.cs: ComboBoxStyle enum
16829         * ComboBox.cs: Initial work on ComboBox control
16831 2004-12-21  Peter Bartok  <pbartok@novell.com>
16833         * Control.cs (ctor, CreateParams): Moved setting of is_visible
16834           forward so that anything that creates a window gets the default,
16835           also no longer uses Visible property in CreateParams to avoid
16836           walking up the parent chain and possibly get the wrong visible
16837           status. Fixed IsVisible to no longer walk up to the parent.
16839 2004-12-21  Peter Bartok  <pbartok@novell.com>
16841         * Form.cs (ShowDialog): Unset modality for the proper window
16843 2004-12-20  Peter Bartok  <pbartok@novell.com>
16845         * CommonDialog.cs: Initial check-in
16847 2004-12-20  Peter Bartok  <pbartok@novell.com>
16849         * Control.cs (Visible): Now uses the parent window instead of the
16850           client area window for the property
16852         * Form.cs
16853           - ShowDialog(): Now uses the proper window for modality
16854           - The default visibility state for the form parent is now false. This
16855             will prevent the user from seeing all the changes to the form and
16856             its controls before the application hits Application.Run()
16857           - Removed some stale commented out code
16859         * NativeWindow.cs:
16860           - Added FindWindow() method to have a method to check for existence
16861             of a window handle
16862           - Added ability to override default exception handling (for example
16863             when debugging with VS.Net; to do this the ExternalExceptionHandler
16864             define must be set
16865           - Removed some useless debug output
16867         * XplatUIX11.cs:
16868           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
16869             not working as expected
16870           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
16871             property to allow switching back to the modal window if focus is
16872             given to another one of our windows (Application Modal)
16873           - Now only sets override_redirect if we create a window
16874             without WS_CAPTION
16875           - Moved EventMask selection before mapping of newly created window
16876             so we can catch the map event as well
16877           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
16878           - Added various Atom related DllImports
16879           - Implemented Exit() method
16880           - .ctor() : No longer shows window if WS_VISIBLE is not defined
16881             in the CreateParams
16883         * MessageBox.cs: Now properly deals with the FormParent window by
16884           providing an override the FormParent CreateParams property to
16885           set as POPUP instead of OVERLAPPED window.
16887 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16889         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
16890         Minor code cleanup.
16892 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16893         
16894         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
16896 2004-12-18  Peter Bartok  <pbartok@novell.com>
16898         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
16899           implementing SetModal() method
16901 2004-12-18  Peter Bartok  <pbartok@novell.com>
16903         * X11Structs.cs (XGCValues): Fixed type of function element
16904         * XplatUI.cs: Added ScrollWindow() method
16905         * XplatUIDriver.cs: Added ScrollWindow() abstract
16906         * XplatUIWin32.cs: Implemented ScrollWindow() method
16907         * XplatUIX11.cs: Implemented ScrollWindow() method
16908         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
16910 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16912         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
16913         Some more keyboard support (INCOMPLETE)
16915 2004-12-17  Peter Bartok  <pbartok@novell.com>
16917         * TextControl.cs:
16918         - Added color attribute to line tags.
16919         - Added color argument to all functions dealing with tags
16920         - Added color argument support to various functions
16921         - Fixed miss-calculation of baseline/shift in certain circumstances
16923         * TextBoxBase.cs: Added new color option to test code
16925 2004-12-17  Jackson Harper  <jackson@ximian.com>
16927         * TreeNode.cs:
16928         * MonthCalendar.cs: Signature fixes
16930 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16932         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
16933         keyboard event moved it.  Create a new graphics context for each paint resolves this
16935 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16937         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
16938         Make caret exist and go blink blink.  Initial keyboard support.
16939         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
16940         works.
16942 2004-12-17  Jackson Harper  <jackson@ximian.com>
16944         * XplatUIStructs.cs: Updated set of virtual keycodes.
16945         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
16947 2004-12-17  Jackson Harper  <jackson@ximian.com>
16949         * XplatUIX11.cs: Prune old keyboard code.
16951 2004-12-17  Jackson Harper  <jackson@ximian.com>
16953         * XplatUIX11.cs: When generating mouse wparams get the modifier
16954         keys from the ModifierKeys property.
16956 2004-12-17  Jackson Harper  <jackson@ximian.com>
16958         * X11Keyboard.cs: Send up/down input when generating
16959         messages. Remove some unused vars.
16961 2004-12-17  Jackson Harper  <jackson@ximian.com>
16963         * TabControl.cs:
16964         * TreeView.cs: get rid of warnings.
16966 2004-12-17  Jackson Harper  <jackson@ximian.com>
16968         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
16970 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
16972         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
16973           CheckedListBox.cs: Implementation
16975 2004-12-17  Peter Bartok  <pbartok@novell.com>
16977         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
16979 2004-12-16  Peter Bartok  <pbartok@novell.com>
16981         * TextControl.cs:
16982           - InsertCharAtCaret(): Fixed start pos fixup
16983           - CaretLine_get: No longer derives the line from the tag, the tag
16984             could be stale if lines in the document have been added or deleted
16985           - RebalanceAfterDelete(): Fixed bug in balancing code
16986           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
16987           - Line.Streamline(): Now can also elminate leading empty tags
16988           - DumpTree(): Added a few more tests and prevented exception on
16989             uninitialized data
16990           - Added Debug section for Combining lines
16991           - Delete(): Now copies all remaining properties of a line
16992           
16993         * TextBoxBase.cs:
16994           - Left mousebutton now sets the caret (and middle button still acts
16995             as formatting tester, which must go away soon)
16996           - Added Debug section for Deleting/Combining lines
16997           - Fixed calculations for UpdateView after Combining lines
16999 2004-12-16  Peter Bartok  <pbartok@novell.com>
17001         * TextControl.cs: Now properly aligns text on a baseline, using the
17002           new XplatUI.GetFontMetrics() method. Simplified several calculations
17003         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
17004           defined
17006 2004-12-16  Peter Bartok  <pbartok@novell.com>
17008         * XplatUI.cs: Added GetFontMetrics() method
17009         * XplatUIDriver.cs: Added GetFontMetrics() abstract
17010         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
17011           into libgdiplus, our private GetFontMetrics function
17012         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
17013         * XplatUIWin32.cs: Implemented GetFontMetrics() method
17015 2004-12-16  Jackson Harper  <jackson@ximain.com>
17017         * XplatUIStruct.cs: Add enum for dead keys
17018         * X11Keyboard.cs: Map and unmap dead keys.
17020 2004-12-16  Jackson Harper  <jackson@ximian.com>
17022         * X11Keyboard.cs: Detect and use the num lock mask.
17024 2004-12-16  Peter Bartok  <pbartok@novell.com>
17026         * Control.cs (CreateGraphics): Added check to make sure the
17027           handle of the window exists before calling Graphics.FromHwnd()
17029 2004-12-16  Peter Bartok  <pbartok@novell.com>
17031         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
17032           contains a lot of code that's not supposed to be there for the
17033           real thing, but required for developing/testing the textbox
17034           backend.
17036 2004-12-16  Peter Bartok  <pbartok@novell.com>
17038         * TextControl.cs:
17039         - Fixed Streamline method
17040         - Added FindTag method to Line
17041         - Added DumpTree method for debugging
17042         - Added DecrementLines() method for deleting lines
17043         - Fixed UpdateView to update the cursor to end-of-line on single-line
17044           updates
17045         - Added PositionCaret() method
17046         - Fixed MoveCaret(LineDown) to move into the last line, too
17047         - Added InsertChar overload
17048         - Fixed InsertChar tag offset calculations
17049         - Added DeleteChar() method
17050         - Added Combine() method for folding lines
17051         - Fixed Delete() method, no longer allocates wasted Line object and
17052           now copies all properties when swapping nodes
17053         - Delete() method now updates document line counter
17055 2004-12-15  Jackson Harper  <jackson@ximian.com>
17057         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
17058         * X11Keyboard.cs: Expose the currently selected modifier keys
17059         through a property.
17061 2004-12-15  Peter Bartok  <pbartok@novell.com>
17063         * TextControl.cs: Initial check-in. Still incomplete
17065 2004-12-15  Jackson Harper  <jackson@ximian.com>
17067         * TreeNode.cs:
17068         * TreeView.cs: Fix build on csc (second time today ;-))
17070 2004-12-15  Jackson Harper  <jackson@ximian.com>
17072         * TreeView.cs: Store the treenodes plus/minus box bounds when it
17073         is calculated and use this for click testing.
17074         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
17076 2004-12-15  Jackson Harper  <jackson@ximian.com>
17078         * TreeView.cs: Pass the nodes image index to the image list when
17079         drawing that image.
17081 2004-12-15  Jackson Harper  <jackson@ximian.com>
17083         * X11Keyboard.cs: Set messages hwnd.
17084         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
17085         post_message calls.
17087 2004-12-15  Jackson Harper  <jackson@ximian.com>
17089         * X11Keyboard.cs: Fix to compile with csc.
17090         
17091 2004-12-15  Jackson Harper  <jackson@ximian.com>
17093         * X11Structs.cs: Add key mask values
17094         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
17095         * X11Keyboard.cs: New file - Extrapolates and interpolates key
17096         down/up foo into WM_CHAR foo
17097         * KeyboardLayouts.cs: Common keyboard layouts
17098         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
17099         post messages into the main queue.
17101 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
17103         * Button.cs: implement ProcessMnemonic
17104         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
17105           brushes everytime
17106         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
17107         * ButtonBase.cs: Show HotkeyPrefix (not the &)
17109 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
17110         
17111         * MonthCalendar.cs: Implemented click-hold for next/previous month
17112           and date selection
17113           
17114 2004-12-11  Peter Bartok  <pbartok@novell.com>
17116         * X11Structs.cs:
17117           - Added XKeyboardState (moved from XplatUIX11.cs)
17118           - Added XCreateGC related enums and structures
17119           - Added GXFunction for XSetFunction
17121         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
17123         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
17124           CaretVisible() calls
17126         * ToolTip.cs: Added code to prevent stealing focus from app windows
17128         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
17129           DestroyCaret, SetCaretPos and CaretVisible)
17131         * XplatUIX11.cs:
17132           - Added implementation for caret functions
17133           - Moved hover variables into a struct, to make it a bit easier
17134             on the eyes and to debug
17135           - Removed XKeyboardState (moved to XplatUIX11.cs)
17136           - Moved Keyboard properties into the properties region
17138         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
17139           call to get a graphics context for our control
17141         * XplatUIOSX.cs: Added empty overrides for the new caret functions
17143         * TreeView.cs: Fixed bug. No matter what color was set it would always
17144           return SystemColors.Window
17146         * XplatUIWin32.cs: Implemented caret overrides
17148 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
17150         * ListBox.cs: fire events, implement missing methods and properties,
17151         sorting.
17153 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
17155         * MonthCalendar.cs: invalidation bug fixing
17156         * ThemeWin32Classic.cs: paint fixing
17158 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
17160         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
17161         prepare the CGContextRef there now.
17163 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
17165         * MonthCalendar.cs:
17166           - optimisationL only invalidate areas that have changed
17167         * ThemeWin32Classic.cs:
17168           - only paint parts that intersect with clip_area
17170 2004-12-09  Peter Bartok  <pbartok@novell.com>
17172         * Application.cs: Undid changes from r37004 which cause problems
17173         on X11
17175 2004-12-09  Ravindra  <rkumar@novell.com>
17177         * ToolBar.cs: Added support for displaying ContextMenu
17178         attached to a button on ToolBar.
17179         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
17180         property.
17182 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
17184         * Label.cs: autosize works in text change and removes unnecessary
17185         invalidate
17187 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
17189         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
17190         remove warnings
17192 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
17194         * XplatUIOSX.cs: Added mouse move/click/grab support
17195         Remove some debugging WriteLines not needed anymore.
17196         Add window resizing/positioning.
17197         Fix visibility on reparenting.
17199 2004-12-08  Peter Bartok  <pbartok@novell.com>
17201         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
17203 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
17205         * XplatUIOSX.cs: Initial checkin
17206         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
17208 2004-12-03  Ravindra <rkumar@novell.com>
17210         * ListView.cs: Added some keybindings and fixed scrolling.
17211         ScrollBars listen to ValueChanged event instead of Scroll
17212         Event. This would let us take care of all changes being
17213         done in the scrollbars' values programmatically or manually.
17214         * ListView.cs (CanMultiselect): Added a check for shift key.
17215         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
17216         * ListViewItem.cs (Clone): Fixed. We need to make a copy
17217         of ListViewSubItemCollection as well.
17219 2004-12-06  Peter Bartok <pbartok@novell.com>
17221         * Control.cs (Parent): Added check and exception to prevent
17222         circular parenting
17224 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
17226         * ListBox.cs: implemented clipping, selection single and multiple,
17227         bug fixing
17229 2004-12-03  Ravindra <rkumar@novell.com>
17231         * ListView.cs (ListView_KeyDown):
17232         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
17233         when CTRL key is pressed.
17234         * ListViewItem.cs (Selected): Fixed setting the property.
17236 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
17238         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
17240         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
17241         MinimizeBox, ShowInTaskbar, TopMost properties.
17243         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
17244         will be implemented).
17246 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
17248         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
17250         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
17251         tests.
17252         
17253         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
17254         
17255         * TreeView.cs: BackColor is Colors.Window.
17257 2004-12-01  Jackson Harper  <jackson@ximian.com>
17259         * TreeView.cs: When resizing the tree if the user is making it
17260         smaller we don't get expose events, so we need to handle adding
17261         the horizontal scrollbar in the size changed handler as well as
17262         the expose handler.
17264 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
17266         * DrawItemState.cs: fixes wrong enum values
17268 2004-12-01  Jackson Harper  <jackson@ximian.com>
17270         * TreeView.cs: Resize the hbar as well as the vbar on resize.
17272 2004-12-01  Jackson Harper  <jackson@ximian.com>
17274         * NodeLabelEditEventArgs.cs:
17275         * NodeLabelEditEventHandler.cs:
17276         * OpenTreeNodeEnumerator.cs:
17277         * TreeNode.cs:
17278         * TreeNodeCollection.cs:
17279         * TreeView.cs:
17280         * TreeViewAction.cs:
17281         * TreeViewCancelEventArgs.cs:
17282         * TreeViewCancelEventHandler.cs:
17283         * TreeViewEventArgs.cs:
17284         * TreeViewEventHandler.cs: Initial implementation.
17286 2004-12-01  Ravindra <rkumar@novell.com>
17288         * ListView.cs (CalculateListView): Fixed scrolling related
17289         calculations. Also, removed some debug statements from other
17290         places.
17291         * ListViewItem.cs: Changed access to 'selected' instance variable
17292         from private to internal.
17293         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
17295 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
17297         * ThemeWin32Classic.cs: remove cache of brush and pens for
17298         specific controls and use the global system, fixes scrollbutton
17299         bugs (for small sizes, disabled, etc)
17300         
17301         * ScrollBar.cs: does not show the thumb for very small controls
17302         (as MS) and allow smaller buttons that the regular size
17304 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
17306         * UpDownBase.cs: Add abstract methods for the interface.
17307         Add new virtual methods (need to be hooked up to TextEntry when it
17308         exists).
17309         Add override methods for most features.
17310         Computes the size, forces the height of the text entry.
17312         * NumericUpDown.cs: Put here the current testing code.
17314         * Set eol-style property on all files that do not have mixed line
17315         endings, to minimize the future problems.  There are still a few
17316         files with mixed endings, and someone should choose whether they
17317         want to move it or not.
17319 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
17321         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
17322         System.Colors
17323         
17324 2004-11-30  Ravindra <rkumar@novell.com>
17326         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
17327         drawing and replaced use of SystemColors by theme colors.
17328         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
17329         * ListView.cs (ListViewItemCollection.Add): Throw exception when
17330         same ListViewItem is being added more than once.
17332 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
17334         * MonthCalendar.cs:
17335           - ControlStyles love to make the control not flicker
17336           
17337 2004-11-30  Peter Bartok  <pbartok@novell.com>
17339         * CharacterCasing.cs: Added
17341 2004-11-29  Peter Bartok  <pbartok@novell.com>
17343         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17344           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
17345           I am removing these files as they conflict with already completed
17346           work. While it is fantastic to get contributions to MWF, I
17347           respectfully ask that everyone please coordinate their contributions
17348           through mono-winforms-list or #mono-winforms at this time. We're
17349           explicitly avoiding stubbing and don't want controls that don't have
17350           their basic functionality implemented in svn. Please also see
17351           http://www.mono-project.com/contributing/winforms.html
17354 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
17356         * Application.cs (ModalRun): Don't hang after exit.
17358         * Theme.cs: New TreeViewDefaultSize property.
17360         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
17361         with less hardcoded SystemColors constant.
17362         Implemented TreeViewDefaultSize.
17364         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17365         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
17368 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
17370         * MonthCalendar.cs:
17371           - Fix NextMonthDate and PrevMonthDate click moving calendar
17373 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17375         * MonthCalendar.cs:
17376           - Fix usage of ScrollChange Property when scrolling months
17378 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
17380         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
17381          - Fixes menu destroying
17382          - Support adding and removing items on already created menus
17384 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17386         * MonthCalendar.cs:
17387           - Re-worked all bolded dates handling to match win32
17388         * ThemeWin32Classic.cs:
17389           - Fixed rendering with bolded dates
17391 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
17393         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
17394         - Horizontal scroolbar
17395         - Multicolumn
17396         - Fixes
17399 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
17401         * MonthCalendar.cs:
17402           - Fix Usage of MaxSelectionCount from SelectionRange
17403           - Fixed Shift + Cursor Selection
17404           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
17405           - Fixed normal cursor selection to be compat with win32
17406           - Fixed Shift + Mouse Click selection
17408 2004-11-24  Peter Bartok <pbartok@novell.com>
17410         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
17411         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
17412         * XplatUIX11.cs:
17413           - CreatedKeyBoardMsg now updates keystate with Alt key
17414           - Added workaround for timer crash to CheckTimers, Jackson will
17415             develop a proper fix and check in later
17416           - Implemented DispatchMessage
17417           - Removed calling the native window proc from GetMessage (call
17418             now moved to DispatchMessage)
17420         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
17421           the keydata (Fixes bug #69831)
17423         * XplatUIWin32.cs:
17424           - (DispatchMessage): Switched to return IntPtr
17425           - Added DllImport for SetFocus
17427 2004-11-24  Ravindra <rkumar@novell.com>
17429         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
17430         background drawing.
17431         * ListViewItem.cs: Fixed various properties, calculations
17432         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
17433         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
17434         and some internal properties. Fixed MouseDown handler and Paint
17435         method.
17437 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17439         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
17441 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17443         * ContainerControl.cs: correct accidental check in of local changes
17445 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17447         * ThemeWin32Classic.cs:
17448                 - Fixed Drawing Last month in grid (sometimes not showing)
17449         * MonthCalendar.cs:
17450                 - Fixed title width calculation bug (makeing title small)
17452 2004-11-23  Peter Bartok <pbartok@novell.com>
17454         * XplatUIX11.cs:
17455           - Added generation of WM_MOUSEHOVER event
17456           - Added missing assignment of async_method atom
17457           - Fixed WM_ERASEBKGND; now only redraws the exposed area
17459 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17461         * ThemeWin32Classic.cs:
17462                 - Fixed Drawing of today circle when showtodaycircle not set
17463                 - fixed drawing of first and last month in the grid (gay dates)
17464         * MonthCalendar.cs:
17465                 - Fixed Drawing of today circle
17466                 - Fixed drawing of grady dates
17467                 - Fixed HitTest for today link when ShowToday set to false
17468                 - Fixed DefaultSize to obey ShowToday
17470 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17472         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
17473         * System.Windows.Forms/Theme.cs
17474         * MonthCalendar.cs: added for MonthCalendar
17475         * SelectionRange.cs: added for MonthCalendar
17476         * Day.cs: added for MonthCalendar: added for MonthCalendar
17477         * DateRangeEventArgs.cs: added for MonthCalendar
17478         * DateRangeEventHandler.cs: added for MonthCalendar
17480 2004-11-22  Ravindra <rkumar@novell.com>
17482         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
17483         property.
17485 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
17487         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
17488         event handler.
17489         
17490         * NumericUpDown.cs: Added new implementation.
17491         * UpDownBase.cs: Added new implementation.
17493         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
17494         implementations.
17495         
17496         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
17497         implementations.
17499         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
17500         methods.
17502 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
17504         * Timer.cs  (Dispose): Should call the base dispose when
17505         overriding.
17507 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17509         * ScrollBar.cs: updates thumb position when max, min or increment
17510         is changed
17512 2004-11-21  Ravindra <rkumar@novell.com>
17514         * ListView.cs: Implemented item selection, activation and
17515         column header style. Fixed properties to do a redraw, if
17516         required. Added support for MouseHover, DoubleClick, KeyDown
17517         and KeyUp event handling and some minor fixes.
17518         * ListViewItem.cs: Fixed constructor.
17519         * ThemeWin32Classic.cs: Improved drawing for ListView.
17521 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17523         * ThemeWin32Classic.cs: initial listbox drawing code
17524         * DrawMode.cs: new enumerator
17525         * ListControl.cs: stubbed class
17526         * ListBox.cs: initial implementation
17527         * Theme.cs: new methods definitions
17528         * SelectionMode.cs: new enumerator
17530 2004-11-17  Peter Bartok  <pbartok@novell.com>
17532         * XplatUIWin32.cs: Added double-click events to the class style
17533         * Control.cs (WndProc):
17534           - Added handling of click-count to MouseDown/ MouseUp events.
17535           - Added handling of middle and right mouse buttons
17536           - Removed old debug code
17538 2004-11-17  Jackson Harper  <jackson@ximian.com>
17540         * XplatUIX11.cs: Use the new Mono.Unix namespace.
17542 2004-11-17  Ravindra <rkumar@novell.com>
17544         * ListView.cs: Added event handling for MouseMove/Up/Down.
17545         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
17546         * ThemeWin32Classic.cs: We need to clear the graphics context and
17547         draw column header in a proper state.
17550 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
17552         *  Menu.cs: fixes signature
17554 2004-11-16  Peter Bartok  <pbartok@novell.com>
17556         * XplatUIX11.cs (GetMessage): Implemented generation of
17557           double click mouse messages
17559 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
17561         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
17562         not by menu
17564 2004-11-11  Peter Bartok  <pbartok@novell.com>
17566         * HandleData.cs: Added Visible property
17567         * XplatUIX11.cs (IsVisible): Now uses Visible property from
17568           HandleData
17569         * XplatUIX11.cs: Removed old debug leftovers
17570         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
17571         * Control.cs (WndProc): Removed old debug leftovers,
17572           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
17573           needed WM_SIZE handling
17575 2004-11-11  Jackson Harper  <jackson@ximian.com>
17577         * OwnerDrawPropertyBag.cs:
17578         * TreeViewImageIndexConverter.cs: Initial implementation
17580 2004-11-10  Jackson Harper  <jackson@ximian.com>
17582         * ThemeWin32Classic.cs:
17583         * TabControl.cs: instead of moving tabs by the slider pos just
17584         start drawing at the tab that is offset by the slider. This way
17585         scrolling always moves by exactly one tab.
17587 2004-11-10  Jackson Harper  <jackson@ximian.com>
17589         * TabControl.cs: You can only scroll left when the slider has
17590         already ben moved right.
17591         
17592 2004-11-10  Jackson Harper  <jackson@ximian.com>
17594         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
17595         the clip area.
17596         
17597 2004-11-10  Jackson Harper  <jackson@ximian.com>
17599         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
17600         clip area.
17601         
17602 2004-11-09  Jackson Harper  <jackson@ximian.com>
17604         * TabControl.cs (CalcXPos): New helper method so we can determine
17605         the proper place to start drawing vertical tabs.
17606         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
17607         
17608 2004-11-09  Jackson Harper  <jackson@ximian.com>
17610         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
17611         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
17612         and Bottom, left and right are illegal values for this and
17613         multiline is enabled when the alignment is set to left or right.
17614         (DrawTab): Each alignment block should draw the text itself now
17615         because Left requires special love. Also add rendering for Left
17616         aligned tabs.
17617         
17618 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
17620         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
17621         does not destroy the windows, removes debugging messages
17623 2004-11-09  jba  <jba-mono@optusnet.com.au>
17625         * ThemeWin32Classic.cs
17626         (DrawButtonBase): Fix verticle text rect clipping in windows
17627         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17628         rendering and incorrect text rect clipping
17629         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17630         rendering and incorrect text rect clipping
17631         
17632 2004-11-08  Jackson Harper  <jackson@ximian.com>
17634         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
17635         bottom when they are bottom aligned so the bottoms of the tabs get
17636         displayed.
17637         * TabControl.cs (DropRow): Move rows up instead of down when the
17638         tab control is bottom aligned.
17640 2004-11-08 13:59  pbartok
17642         * XplatUIX11.cs:
17643           - Added handling for various window styles
17644           - Added handling for popup windows
17645           - Added SetTopmost handling
17647 2004-11-08 13:55  pbartok
17649         * XplatUIWin32.cs:
17650           - Added argument to SetTopmost method
17651           - Fixed broken ClientToScreen function
17653 2004-11-08 13:53  pbartok
17655         * XplatUIStructs.cs:
17656           - Added missing WS_EX styles
17658 2004-11-08 13:53  pbartok
17660         * XplatUI.cs, XplatUIDriver.cs:
17661           - Added argument to SetTopmost
17663 2004-11-08 13:52  pbartok
17665         * X11Structs.cs:
17666           - Added XSetWindowAttributes structure
17667           - Improved XWindowAttributes structure
17668           - Added SetWindowValuemask enum
17669           - Added window creation arguments enum
17670           - Added gravity enum
17671           - Added Motif hints structure
17672           - Added various Motif flags and enums
17673           - Added PropertyMode enum for property functions
17675 2004-11-08 13:50  pbartok
17677         * Form.cs:
17678           - Fixed arguments for updated SetTopmost method
17680 2004-11-08 13:49  pbartok
17682         * ToolTip.cs:
17683           - Fixed arguments for updated SetTopmost function
17684           - Fixed usage of PointToClient
17686 2004-11-08 13:44  pbartok
17688         * MenuAPI.cs:
17689           - Added Clipping of children and siblings
17691 2004-11-08 13:41  pbartok
17693         * MainMenu.cs:
17694           - Removed SetMenuBarWindow call. We do this in Form.cs
17696 2004-11-08 13:40  jackson
17698         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
17699           scrolling jimmi in the correct location with bottom aligned tabs
17701 2004-11-08 13:36  pbartok
17703         * ContainerControl.cs:
17704           - Implemented BindingContext
17705           - Implemented ParentForm
17707 2004-11-08 12:46  jackson
17709         * TabControl.cs: Put bottom rendered tabs in the right location
17711 2004-11-08 07:15  jordi
17713         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
17714           removes dead code
17716 2004-11-05 17:30  jackson
17718         * TabControl.cs: When selected tabs are expanded make sure they
17719           don't go beyond the edges of the tab control
17721 2004-11-05 14:57  jackson
17723         * TabControl.cs: Reset show_slider so if the control is resized to
17724           a size where it is no longer needed it's not displayed anymore
17726 2004-11-05 13:16  jackson
17728         * TabControl.cs: Make tab pages non visible when added to the
17729           control
17731 2004-11-05 12:42  jackson
17733         * TabControl.cs: Implement SizeMode.FillToRight
17735 2004-11-05 12:16  jackson
17737         * Control.cs: Do not call CreateHandle if the handle is already
17738           created
17740 2004-11-05 11:46  jackson
17742         * TabControl.cs: Remove superflous call to CalcTabRows
17744 2004-11-05 09:07  jackson
17746         * XplatUIX11.cs: Update for Mono.Posix changes
17748 2004-11-05 07:00  ravindra
17750         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
17751           scrolling.
17753 2004-11-04 22:47  jba
17755         * ThemeWin32Classic.cs:
17756           - Fix Button rendering for FlatStyle = Flat or Popup
17757           - Fix RadioButton and CheckBox rendering when Appearance = Button
17758             (normal and flatstyle).
17759           - Correct outer rectangle color when drawing focus rectangle
17760           - Adjust button bounds to be 1 px smaller when focused
17761           - Make button not draw sunken 3d border when pushed (windows compat)
17762           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
17763           - Offset the text in RadioButton and Checkbox when being rendered as
17764           a button.
17765           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
17766           radiobuttons
17767           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
17768           - Fixed disabled text rendering for normally rendered radiobuttons
17770 2004-11-04 10:26  jackson
17772         * TabControl.cs: Recalculate tab rows when resizing
17774 2004-11-04 07:47  jordi
17776         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
17777           collection completion, drawing issues, missing features
17779 2004-11-04 05:03  ravindra
17781         * ScrollBar.cs:
17782                 - We need to recalculate the Thumb area when
17783                 LargeChange/maximum/minimum values are changed.
17784           - We set the 'pos' in UpdatePos() method to minimum, if it's less
17785                 than minimum. This is required to handle the case if large_change is
17786                 more than max, and use LargeChange property instead of large_change
17787                 variable.
17788           - We return max+1 when large_change is more than max, like MS does.
17790 2004-11-04 04:29  ravindra
17792         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
17793                 - Changed default value signatures (prefixed all with ListView).
17794                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
17795                 ListView.
17796           - Fixed calculations for ListViewItem and implemented Clone()
17797           method.
17799 2004-11-04 04:26  ravindra
17801         * Theme.cs, ThemeWin32Classic.cs:
17802                 - Changed default ListView values signatures (prefixed all with
17803                 ListView).
17804           - Fixed default size values for VScrollBar and HScrollBar.
17805                 - Fixed DrawListViewItem method.
17807 2004-11-04 04:05  ravindra
17809         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
17811 2004-11-04 04:04  ravindra
17813         * ImageList.cs: Implemented the missing overload for Draw method.
17815 2004-11-03 19:29  jackson
17817         * TabControl.cs: Handle dropping rows on selection properly
17819 2004-11-03 11:59  jackson
17821         * TabControl.cs: remove debug code
17823 2004-11-03 11:52  jackson
17825         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
17826           the scrolly widgerywoo
17828 2004-11-02 13:52  jackson
17830         * TabControl.cs: Resize the tab pages and tabs when the tab control
17831           is resized
17833 2004-11-02 13:40  jackson
17835         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
17836           selected tab to the bottom
17838 2004-11-02 13:39  jackson
17840         * TabPage.cs: Store the tab pages row
17842 2004-11-02 12:33  jordi
17844         * MenuItem.cs: fixes handle creation
17846 2004-11-02 11:42  jackson
17848         * TabControl.cs: signature fix
17850 2004-11-02 08:56  jackson
17852         * TabControl.cs: Calculate whether the tab is on an edge properly.
17853           Remove top secret debugging code
17855 2004-11-01 19:57  jackson
17857         * TabControl.cs: Add click handling, and proper sizing
17859 2004-11-01 19:47  jackson
17861         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
17862           tab controls
17864 2004-11-01 19:39  jackson
17866         * TabPage.cs: add internal property to store the bounds of a tab
17867           page
17869 2004-10-30 04:23  ravindra
17871         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
17872           values.
17874 2004-10-30 04:21  ravindra
17876         * ListView.cs, ListViewItem.cs: Added support for scrolling and
17877           fixed calculations.
17879 2004-10-30 03:06  pbartok
17881         * XplatUIX11.cs:
17882           - Removed extension of DllImported libs
17884 2004-10-29 09:55  jordi
17886         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
17887           navigation, itemcollection completion, menu fixes
17889 2004-10-27 22:58  pbartok
17891         * XplatUIX11.cs:
17892           - Now throws a nice error message when no X display could be opened
17894 2004-10-26 13:51  jordi
17896         * ListView.cs: removes warning
17898 2004-10-26 03:55  ravindra
17900         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
17901           ThemeWin32Classic.cs: Some formatting for my last checkins.
17903 2004-10-26 03:36  ravindra
17905         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
17906           control and default values.
17908 2004-10-26 03:35  ravindra
17910         * Theme.cs: Added some default values for ListView control.
17912 2004-10-26 03:33  ravindra
17914         * ToolBar.cs: ToolBar should use the user specified button size, if
17915           there is any. Added a size_specified flag for the same.
17917 2004-10-26 03:33  ravindra
17919         * ColumnHeader.cs: Added some internal members and calculations for
17920           ColumnHeader.
17922 2004-10-26 03:32  ravindra
17924         * ListViewItem.cs: Calculations for ListViewItem.
17926 2004-10-26 03:31  ravindra
17928         * ListView.cs: Added some internal members and calculations for
17929           ListView.
17931 2004-10-22 13:31  jordi
17933         * MenuAPI.cs: speedup menus drawing
17935 2004-10-22 13:16  jackson
17937         * XplatUIX11.cs: Make sure to update exposed regions when adding an
17938           expose event
17940 2004-10-22 11:49  jackson
17942         * Control.cs: oops
17944 2004-10-22 11:41  jackson
17946         * Control.cs: Check to see if the window should have its background
17947           repainted by X when drawing.
17949 2004-10-22 11:31  jackson
17951         * XplatUIX11.cs: When invalidating areas only use XClearArea if
17952           clear is true, this way we do not get flicker from X repainting the
17953           background
17955 2004-10-22 11:28  jackson
17957         * XEventQueue.cs: Queue properly
17959 2004-10-21 09:38  jackson
17961         * XEventQueue.cs: Fix access modifier
17963 2004-10-21 09:36  jackson
17965         * XEventQueue.cs: Don't loose messages
17967 2004-10-21 09:22  jackson
17969         * XEventQueue.cs: Don't loose messages
17971 2004-10-20 04:15  jordi
17973         * BootMode.cs: enum need it by SystemInfo
17975 2004-10-19 21:58  pbartok
17977         * XplatUIWin32.cs:
17978           - Small sanity check
17980 2004-10-19 21:56  pbartok
17982         * Form.cs:
17983           - Added private FormParentWindow class which acts as the container
17984             for our form and as the non-client area where menus are drawn
17985           - Added/Moved required tie-ins to Jordi's menus
17986           - Fixed/Implemented the FormStartPosition functionality
17988 2004-10-19 21:52  pbartok
17990         * Control.cs:
17991           - Removed unneeded locals
17992           - Added code to all size and location properties to understand and
17993             deal with the parent container of Form
17995 2004-10-19 21:33  pbartok
17997         * Application.cs:
17998           - Fixed to deal with new Form subclasses for menus
18000 2004-10-19 17:48  jackson
18002         * XEventQueue.cs: commit correct version of file
18004 2004-10-19 16:50  jackson
18006         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
18008 2004-10-19 16:15  jordi
18010         * MenuAPI.cs: MenuBarCalcSize returns the height
18012 2004-10-19 08:31  pbartok
18014         * Control.cs:
18015           - Added missing call to PreProcessMessage before calling OnXXXKey
18016           methods
18018 2004-10-19 00:04  ravindra
18020         * ToolTip.cs: Fixed constructor.
18022 2004-10-18 09:31  jordi
18024         * MenuAPI.cs: menuitems in menubars do not have shortcuts
18026 2004-10-18 09:26  jordi
18028         * MenuItem.cs: fixes MenuItem class signature
18030 2004-10-18 08:56  jordi
18032         * MenuAPI.cs: prevents windows from showing in the taskbar
18034 2004-10-18 00:28  ravindra
18036         * ToolTip.cs: Suppressed a warning message.
18038 2004-10-18 00:27  ravindra
18040         * Control.cs: Default value of visible property must be true.
18042 2004-10-17 23:19  pbartok
18044         * ToolTip.cs:
18045           - Complete implementation
18047 2004-10-17 23:19  pbartok
18049         * XplatUIX11.cs:
18050           - Added EnableWindow method
18051           - Added SetModal stub
18052           - Added generation of WM_ACTIVATE message (still needs testing)
18053           - Added SetTopMost stub
18054           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
18056 2004-10-17 23:17  pbartok
18058         * XplatUIWin32.cs:
18059           - Removed VirtualKeys to XplatUIStructs
18060           - Implemented SetTopMost method
18061           - Implemented EnableWindow method
18062           - Bugfix in ScreenToClient()
18063           - Bugfixes in ClientToScreen()
18065 2004-10-17 22:51  pbartok
18067         * XplatUIStructs.cs:
18068           - Added WS_EX styles to WindowStyles enumeration
18070 2004-10-17 22:50  pbartok
18072         * XplatUI.cs, XplatUIDriver.cs:
18073           - Added method for enabling/disabling windows
18074           - Added method for setting window modality
18075           - Added method for setting topmost window
18077 2004-10-17 22:49  pbartok
18079         * ThemeWin32Classic.cs:
18080           - Added ToolTip drawing code
18082 2004-10-17 22:49  pbartok
18084         * Theme.cs:
18085           - Added ToolTip abstracts
18087 2004-10-17 22:47  pbartok
18089         * Form.cs:
18090           - Fixed Form.ControlCollection to handle owner relations
18091           - Added Owner/OwnedForms handling
18092           - Implemented Z-Ordering for owned forms
18093           - Removed unneeded private overload of ShowDialog
18094           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
18095             so I hope)
18096           - Fixed Close(), had wrong default
18097           - Added firing of OnLoad event
18098           - Added some commented out debug code for Ownership handling
18100 2004-10-17 22:16  pbartok
18102         * Control.cs:
18103           - Fixed/implemented flat list of controls
18105 2004-10-17 22:14  pbartok
18107         * Application.cs:
18108           - Added code to simulate modal dialogs on Win32
18110 2004-10-17 16:11  jordi
18112         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
18113           mouse event
18115 2004-10-17 13:39  jordi
18117         * MenuAPI.cs: menu drawing fixes
18119 2004-10-15 09:10  ravindra
18121         * StructFormat.cs: General Enum.
18123 2004-10-15 09:09  ravindra
18125         * SizeGripStyle.cs: Enum for Form.
18127 2004-10-15 09:08  ravindra
18129         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
18130           in Theme for ListView.
18132 2004-10-15 09:06  ravindra
18134         * ColumnHeader.cs: Flushing some formatting changes.
18136 2004-10-15 09:05  ravindra
18138         * ListViewItem.cs: Implemented GetBounds method and fixed coding
18139           style.
18141 2004-10-15 09:03  ravindra
18143         * ListView.cs: Implemented Paint method and fixed coding style.
18145 2004-10-15 07:34  jordi
18147         * MenuAPI.cs: fix for X11
18149 2004-10-15 07:32  ravindra
18151         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
18152                 - Renamed Paint() method to Draw() for clarity. Also, moved
18153                 DrawImage() to OnPaint().
18155 2004-10-15 07:25  ravindra
18157         * CheckBox.cs, RadioButton.cs:
18158                 - Removed Redraw (), we get it from ButtonBase.
18159                 - Implemented Paint (), to do class specific painting.
18161 2004-10-15 07:16  ravindra
18163         * ButtonBase.cs:
18164                 - Redraw () is not virtual now.
18165                 - Added an internal virtual method Paint (), so that
18166                 derived classes can do their painting on their own.
18167                 - Modified OnPaint () to call Paint ().
18169 2004-10-15 06:43  jordi
18171         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
18172           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
18174 2004-10-15 00:30  ravindra
18176         * MessageBox.cs:
18177                 - MessageBox on windows does not have min/max buttons.
18178                 This change in CreateParams fixes this on Windows. We
18179                 still need to implement this windowstyle behavior in
18180                 our X11 driver.
18182 2004-10-14 05:14  ravindra
18184         * ToolBar.cs:
18185                 - Changed Redraw () to do a Refresh () always.
18186                 - Fixed the MouseMove event handling when mouse is pressed,
18187                 ie drag event handling.
18188                 - Replaced the usage of ToolBarButton.Pressed property to
18189                 ToolBarButton.pressed internal variable.
18191 2004-10-14 05:10  ravindra
18193         * ToolBarButton.cs:
18194                 - Added an internal member 'inside' to handle mouse move
18195                 with mouse pressed ie mouse drag event.
18196                 - Changed 'Pressed' property to return true only when
18197                 'inside' and 'pressed' are both true.
18198                 - Some coding style love.
18200 2004-10-14 00:17  ravindra
18202         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
18203           public method.
18205 2004-10-14 00:15  ravindra
18207         * ButtonBase.cs: Redraw () related improvements.
18209 2004-10-14 00:14  ravindra
18211         * MessageBox.cs: Moved InitFormSize () out of Paint method and
18212           removed unnecessary calls to Button.Show () method.
18214 2004-10-13 17:50  pbartok
18216         * XplatUIX11.cs:
18217           - Formatting fix
18218           - Removed destroying of window until we solve the problem of X
18219             destroying the window before us on shutdown
18221 2004-10-13 16:32  pbartok
18223         * ButtonBase.cs:
18224           - Now Redraws on MouseUp for FlatStyle Flat and Popup
18226 2004-10-13 14:18  pbartok
18228         * XplatUIX11.cs:
18229           - Added code to destroy the X window
18231 2004-10-13 14:18  pbartok
18233         * XplatUIWin32.cs:
18234           - Added code to destroy a window
18236 2004-10-13 14:12  pbartok
18238         * ButtonBase.cs:
18239           - Added the Redraw on Resize that got dropped in the last rev
18241 2004-10-13 09:06  pbartok
18243         * ThemeWin32Classic.cs:
18244           - Path from John BouAntoun:
18245             * Fix check rendering (centre correctly for normal style, offset
18246               correctly for FlatStyle).
18247             * Fix border color usage (use backcolor) for FlatStyle.Popup
18248             * Use checkbox.Capture instead of checkbox.is_pressed when
18249               rendering flatstyle states.
18251 2004-10-12 21:48  pbartok
18253         * ThemeWin32Classic.cs:
18254           - Removed all occurences of SystemColors and replaced them with the
18255             matching theme color
18257 2004-10-12 21:41  pbartok
18259         * ThemeWin32Classic.cs:
18260           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
18261             him using the function for flatstyle drawing
18262           - Changed functions to use the new version of CPDrawBorder3D
18264 2004-10-12 21:15  pbartok
18266         * ControlPaint.cs:
18267           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
18268             match MS documentation. They need to return defined colors if the
18269             passed color matches the configured control color. Thanks to John
18270             BouAntoun for pointing this out.
18272 2004-10-12 20:57  pbartok
18274         * Control.cs:
18275           - Fix from John BouAntoun: Raise ForeColorChanged event when text
18276             color is changed
18278 2004-10-12 20:46  pbartok
18280         * CheckBox.cs:
18281           - Fix from John BouAntoun: Now properly sets the Appearance property
18283 2004-10-12 20:45  pbartok
18285         * ThemeWin32Classic.cs:
18286           - Fixes from John BouAntoun: now handles forecolors and backcolors
18287             for flatstyle rendered controls much better; It also fixes normal
18288             checkbox rendering when pushed or disabled.
18290 2004-10-08 02:50  jordi
18292         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
18293           work
18295 2004-10-07 08:56  jordi
18297         * ThemeWin32Classic.cs: Removes deletion of cached brushes
18299 2004-10-06 03:59  jordi
18301         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
18302           XplatUIWin32.cs: removes warnings from compilation
18304 2004-10-05 12:23  jackson
18306         * RadioButton.cs: Fix ctor
18308 2004-10-05 11:10  pbartok
18310         * MessageBox.cs:
18311           - Partial implementation by Benjamin Dasnois
18313 2004-10-05 10:15  jackson
18315         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
18316           by John BouAntoun
18318 2004-10-05 03:07  ravindra
18320         * ToolBar.cs:
18321                 - Removed a private method, Draw ().
18322                 - Fixed the ButtonDropDown event handling.
18323                 - Fixed MouseMove event handling.
18325 2004-10-05 03:04  ravindra
18327         * ThemeWin32Classic.cs:
18328                 - Added DrawListView method and ListViewDefaultSize property.
18329                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
18330                 - Changed DOS style CRLF to Unix format (dos2unix).
18332 2004-10-05 03:03  ravindra
18334         * Theme.cs:
18335                 - Added DrawListView method and ListViewDefaultSize property.
18337 2004-10-05 02:42  ravindra
18339         * ToolBarButton.cs: Added an internal member dd_pressed to handle
18340           clicks on DropDown arrow.
18342 2004-10-04 22:56  jackson
18344         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
18345           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
18346           Control handle the buffers, derived classes should not have to
18347           CreateBuffers themselves.
18349 2004-10-04 21:20  jackson
18351         * StatusBar.cs: The control handles resizing the buffers now.
18353 2004-10-04 21:18  jackson
18355         * Control.cs: When resizing the buffers should be invalidated. This
18356           should be handled in Control not in derived classes.
18358 2004-10-04 14:45  jackson
18360         * TabPage.cs: oops
18362 2004-10-04 02:14  pbartok
18364         * LeftRightAlignment.cs:
18365           - Initial check-in
18367 2004-10-04 01:09  jordi
18369         * ThemeWin32Classic.cs: fixes right button position causing right
18370           button not showing on horizontal scrollbars
18372 2004-10-02 13:12  pbartok
18374         * XplatUIX11.cs:
18375           - Simplified the Invalidate method by using an X call instead of
18376             generating the expose ourselves
18377           - Added an expose when the window background is changed
18378           - Implemented ClientToScreen method
18380 2004-10-02 13:08  pbartok
18382         * XplatUIWin32.cs:
18383           - Added Win32EnableWindow method (test for implementing modal
18384           dialogs)
18385           - Added ClientToScreen method and imports
18387 2004-10-02 13:07  pbartok
18389         * XplatUI.cs, XplatUIDriver.cs:
18390           - Added ClientToScreen coordinate translation method
18392 2004-10-02 13:06  pbartok
18394         * KeyPressEventArgs.cs:
18395           - Fixed access level for constructor
18397 2004-10-02 13:06  pbartok
18399         * NativeWindow.cs:
18400           - Changed access level for the window_collection hash table
18402 2004-10-02 13:05  pbartok
18404         * Form.cs:
18405           - Added KeyPreview property
18406           - Added Menu property (still incomplete, pending Jordi's menu work)
18407           - Implemented ProcessCmdKey
18408           - Implemented ProcessDialogKey
18409           - Implemented ProcessKeyPreview
18411 2004-10-02 13:02  pbartok
18413         * Control.cs:
18414           - Added private method to get the Control object from the window
18415           handle
18416           - Implemented ContextMenu property
18417           - Implemented PointToScreen
18418           - Implemented PreProcessMessage
18419           - Implemented IsInputChar
18420           - Implemented IsInputKey
18421           - Implemented ProcessCmdKey
18422           - Completed ProcessKeyEventArgs
18423           - Fixed message loop to call the proper chain of functions on key
18424           events
18425           - Implemented ProcessDialogChar
18426           - Implemented ProcessDialogKey
18427           - Implemented ProcessKeyMessage
18428           - Implemented ProcessKeyPreview
18429           - Added RaiseDragEvent stub (MS internal method)
18430           - Added RaiseKeyEvent stub (MS internal method)
18431           - Added RaiseMouseEvent stub (MS Internal method)
18432           - Added RaisePaintEvent stub (MS Internal method)
18433           - Added ResetMouseEventArgs stub (MS Internal method)
18434           - Implemented RtlTranslateAlignment
18435           - Implemented RtlTranslateContent
18436           - Implemented RtlTranslateHorizontal
18437           - Implemented RtlTranslateLeftRight
18438           - Added generation of KeyPress event
18440 2004-10-02 05:57  ravindra
18442         * ListViewItem.cs: Added attributes.
18444 2004-10-02 05:32  ravindra
18446         * ListView.cs: Added attributes.
18448 2004-10-01 11:53  jackson
18450         * Form.cs: Implement the Close method so work on MessageBox can
18451           continue.
18453 2004-09-30 14:06  pbartok
18455         * XplatUIX11.cs:
18456           - Bug fixes
18458 2004-09-30 11:34  jackson
18460         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
18462 2004-09-30 07:26  ravindra
18464         * ListViewItemConverter.cs: Converter for ListViewItem.
18466 2004-09-30 07:26  ravindra
18468         * SortOrder.cs: Enum for ListView control.
18470 2004-09-30 07:25  ravindra
18472         * ColumnHeader.cs: Supporting class for ListView control.
18474 2004-09-30 07:24  ravindra
18476         * ListView.cs, ListViewItem.cs: Initial implementation.
18478 2004-09-30 07:20  ravindra
18480         * ItemActivation.cs: Enum for ListView Control.
18482 2004-09-29 20:29  pbartok
18484         * XplatUIX11.cs:
18485           - Added lookup of pixel value for background color; tries to get a
18486             color 'close' to the requested color, it avoids having to create a
18487             colormap.  Depending on the display this could mean the used color
18488             is slightly off the desired color. Might have to change it to a more
18489             resource intensive colormap approach, but it will work as a
18490           workaround to avoid red screens.
18492 2004-09-29 14:27  jackson
18494         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
18496 2004-09-28 12:44  pbartok
18498         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
18499           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
18500           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
18501           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
18502           TrackBar.cs, VScrollBar.cs:
18503           - Streamlined Theme interfaces:
18504             * Each DrawXXX method for a control now is passed the object for
18505               the control to be drawn in order to allow accessing any state the
18506               theme might require
18508             * ControlPaint methods for the theme now have a CP prefix to avoid
18509               name clashes with the Draw methods for controls
18511             * Every control now retrieves it's DefaultSize from the current
18512             theme
18514 2004-09-28 12:17  jackson
18516         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
18517           drawing
18519 2004-09-24 14:57  jackson
18521         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
18522           Gives us a nice little performance boost.
18524 2004-09-24 12:02  jackson
18526         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
18527           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
18528           Control and supporting classes. Initial checkin
18530 2004-09-23 13:08  jackson
18532         * Form.cs: Temp build fixage
18534 2004-09-23 01:39  ravindra
18536         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
18537           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
18538           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
18539           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
18540           EventHandlers needed by ListView Control.
18542 2004-09-22 14:12  pbartok
18544         * ScrollableControl.cs:
18545           - Implemented DockPadding property
18546           - Implemented AutoScroll property
18547           - Implemented AutoScrollMargin property
18548           - Implemented AutoScrollMinSize property
18549           - Implemented AutoScrollPosition property
18550           - Implemented DisplayRectangle property (still incomplete)
18551           - Implemented CreateParams property
18552           - Implemented HScroll property
18553           - Implemented VScroll property
18554           - Implemented OnVisibleChanged property
18556 2004-09-22 14:09  pbartok
18558         * Form.cs:
18559           - Added Form.ControllCollection class
18560           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
18561             RemoveOwnedForm (still incomplete, missing on-top and common
18562             minimize/maximize behaviour)
18563           - Added StartPosition property (still incomplete, does not use when
18564             creating the form)
18565           - Added ShowDialog() methods (still incomplete, missing forcing the
18566             dialog modal)
18568 2004-09-22 14:05  pbartok
18570         * Application.cs:
18571           - Added message loop for modal dialogs
18573 2004-09-22 14:02  pbartok
18575         * GroupBox.cs:
18576           - Fixed wrong types for events
18578 2004-09-22 14:00  pbartok
18580         * Shortcut.cs, FormWindowState.cs:
18581           - Fixed wrong values
18583 2004-09-22 12:01  jackson
18585         * Control.cs: Text is never null
18587 2004-09-20 22:14  pbartok
18589         * XplatUIWin32.cs:
18590           - Fixed accessibility level for Idle handler
18592 2004-09-20 18:54  jackson
18594         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18595           XplatUIX11.cs: New message loop that uses poll so we don't get a
18596           busy loop
18598 2004-09-17 10:43  pbartok
18600         * ScrollBar.cs:
18601           - Fixed behaviour of arrow buttons. Now properly behaves like
18602             Buttons (and like Microsoft's scrollbar arrow buttons)
18604 2004-09-17 10:14  pbartok
18606         * ScrollBar.cs:
18607           - Added missing release of keyboard/mouse capture
18609 2004-09-17 06:18  jordi
18611         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
18612           Theme.cs: Very early menu support
18614 2004-09-16 17:45  pbartok
18616         * XplatUIWin32.cs:
18617           - Fixed sending a window to the front
18618           - Added overload for SetWindowPos to avoid casting
18620 2004-09-16 17:44  pbartok
18622         * Control.cs:
18623           - Added SendToBack and BringToFront methods
18625 2004-09-16 07:00  ravindra
18627         * Copyright: Added Novell URL.
18629 2004-09-16 07:00  ravindra
18631         * ToolBar.cs: Invalidate should be done before redrawing.
18633 2004-09-15 21:19  ravindra
18635         * ColumnHeaderStyle.cs: Enum for ListView Control.
18637 2004-09-15 21:18  ravindra
18639         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
18640           ListView Control.
18642 2004-09-13 18:26  jackson
18644         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
18645           properly
18647 2004-09-13 18:13  jackson
18649         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
18650           a second thread and post messages into the main threads message
18651           queue. This makes timing much more consistent. Both win2K and XP
18652           have a minimum timer value of 15 milliseconds, so we now do this
18653           too.
18655 2004-09-13 15:18  pbartok
18657         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18658           XplatUIX11.cs:
18659           - Added Z-Ordering methods
18661 2004-09-13 10:56  pbartok
18663         * Form.cs:
18664           - Fixed #region names
18665           - Moved properties and methods into their proper #regions
18667 2004-09-13 10:51  pbartok
18669         * Form.cs:
18670           - Added Accept and CancelButton properties
18671           - Added ProcessDialogKey() method
18673 2004-09-13 08:18  pbartok
18675         * IWindowTarget.cs:
18676           - Initial check-in
18678 2004-09-10 21:50  pbartok
18680         * Control.cs:
18681           - Added DoDragDrop() [incomplete]
18682           - Properly implemented 'Visible' handling
18683           - Added SetVisibleCore()
18684           - Implemented FindChildAtPoint()
18685           - Implemented GetContainerControl()
18686           - Implemented Hide()
18688 2004-09-10 19:28  pbartok
18690         * Control.cs:
18691           - Moved methods into their appropriate #regions
18692           - Reordered methods within regions alphabetically
18694 2004-09-10 18:57  pbartok
18696         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18697           - Added method to retrieve text from window
18699 2004-09-10 18:56  pbartok
18701         * Control.cs:
18702           - Moved some internal functions into the internal region
18703           - Implemented FontHeight
18704           - Implemented RenderRightToLeft
18705           - Implemented ResizeRedraw
18706           - Implemented ShowFocusCues
18707           - Implemented ShowKeyboardCues
18708           - Implemented FromChildHandle
18709           - Implemented FromHandle
18710           - Implemented IsMnemonic
18711           - Implemented ReflectMessage
18712           - All public and protected Static Methods are now complete
18714 2004-09-10 16:54  pbartok
18716         * Control.cs:
18717           - Implemented remaining missing public instance properties
18718           - Alphabetized some out of order properties
18720 2004-09-10 05:51  ravindra
18722         * PictureBox.cs: Added a check for null image.
18724 2004-09-10 00:59  jordi
18726         * GroupBox.cs: remove cvs tag
18728 2004-09-09 05:25  ravindra
18730         * ToolBar.cs: Make redraw accessible from ToolBarButton.
18732 2004-09-09 05:23  ravindra
18734         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
18735           parent redraw.
18737 2004-09-09 02:28  pbartok
18739         * ThemeWin32Classic.cs:
18740           - Improve disabled string look
18742 2004-09-09 01:15  jordi
18744         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
18745           args and handler
18747 2004-09-08 23:56  ravindra
18749         * ItemBoundsPortion.cs: It's enum, not a class!
18751 2004-09-08 23:47  ravindra
18753         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
18754           Enums for Form.
18756 2004-09-08 21:13  ravindra
18758         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
18759           ListView control.
18761 2004-09-08 21:03  ravindra
18763         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
18764           avoid crash.
18766 2004-09-08 21:01  ravindra
18768         * ScrollableControl.cs: Removed unreachable code.
18770 2004-09-08 06:45  jordi
18772         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
18774 2004-09-08 01:00  jackson
18776         * XplatUIX11.cs: Only run the timers when updating the message
18777           queue. This effectively gives X messages a higher priority then
18778           timer messages. Timers still need love though
18780 2004-09-07 14:01  jackson
18782         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
18783           this for us and the handle is no longer valid.
18785 2004-09-07 13:59  jackson
18787         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
18788           loop that manages to not crash. TODO: Add poll and cleanup timers
18790 2004-09-07 11:12  jordi
18792         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
18794 2004-09-07 03:40  jordi
18796         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
18797           fixes, methods, multiple links
18799 2004-09-06 06:55  jordi
18801         * Control.cs: Caches ClientRectangle rectangle value
18803 2004-09-05 02:03  jordi
18805         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
18806           certain situations
18808 2004-09-04 11:10  jordi
18810         * Label.cs: Refresh when font changed
18812 2004-09-02 16:24  pbartok
18814         * Control.cs:
18815           - Added sanity check to creation of double buffer bitmap
18817 2004-09-02 16:24  pbartok
18819         * ButtonBase.cs:
18820           - Fixed selection of text color
18821           - Fixed handling of resize event; now properly recreates double
18822             buffering bitmap
18823           - Added missing assignment of TextAlignment
18824           - Added proper default for TextAlignment
18826 2004-09-02 14:26  pbartok
18828         * RadioButton.cs:
18829           - Added missing RadioButton.RadioButtonAccessibleObject class
18831 2004-09-02 14:26  pbartok
18833         * Control.cs:
18834           - Added missing Control.ControlAccessibleObject class
18835           - Started to implement Select()ion mechanisms, still very incomplete
18837 2004-09-02 14:25  pbartok
18839         * AccessibleObject.cs:
18840           - Added missing methods
18842 2004-09-02 14:23  pbartok
18844         * AccessibleNavigation.cs, AccessibleSelection.cs:
18845           - Initial check-in
18847 2004-09-02 10:32  jordi
18849         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
18850           pool for pens, brushes, and hatchbruses
18852 2004-09-01 15:30  jackson
18854         * StatusBar.cs: Fix typo
18856 2004-09-01 14:44  pbartok
18858         * RadioButton.cs:
18859           - Fixed state
18861 2004-09-01 14:39  pbartok
18863         * Button.cs, RadioButton.cs:
18864           - Functional initial check-in
18866 2004-09-01 14:01  pbartok
18868         * CheckBox.cs:
18869           - Added missing default
18870           - Added missing region mark
18872 2004-09-01 09:10  jordi
18874         * Label.cs: fixes method signatures, new methods, events, fixes
18875           autosize
18877 2004-09-01 07:19  jordi
18879         * Control.cs: Init string variables with an empty object
18881 2004-09-01 04:20  jordi
18883         * Control.cs: fires OnFontChanged event
18885 2004-08-31 20:07  pbartok
18887         * ButtonBase.cs:
18888           - Enabled display of strings
18890 2004-08-31 20:05  pbartok
18892         * Form.cs:
18893           - Added (partial) implementation of DialogResult; rest needs to be
18894             implemented when the modal loop code is done
18896 2004-08-31 19:55  pbartok
18898         * CheckBox.cs:
18899           - Fixed to match the removal of the needs_redraw concept
18901 2004-08-31 19:55  pbartok
18903         * ButtonBase.cs:
18904           - Removed the rather odd split between 'needs redraw' and redrawing
18905           - Now handles the events that require regeneration (ambient
18906             properties and size)
18908 2004-08-31 19:41  pbartok
18910         * Control.cs:
18911           - Added firing of BackColorChanged event
18912           - Added TopLevelControl property
18913           - Fixed handling of WM_ERASEBKGRND message
18915 2004-08-31 12:49  pbartok
18917         * ButtonBase.cs:
18918           - Removed debug
18919           - Minor fixes
18921 2004-08-31 12:48  pbartok
18923         * CheckBox.cs:
18924           - Finished (famous last words)
18926 2004-08-31 04:35  jordi
18928         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
18929           scrolling bugs, adds new methods
18931 2004-08-30 14:42  pbartok
18933         * CheckBox.cs:
18934           - Implemented CheckBox drawing code
18936 2004-08-30 14:42  pbartok
18938         * ButtonBase.cs:
18939           - Made Redraw() and CheckRedraw() virtual
18940           - Improved mouse up/down/move logic to properly track buttons
18942 2004-08-30 09:44  pbartok
18944         * CheckBox.cs:
18945           - Updated to fix broken build. Not complete yet.
18947 2004-08-30 09:28  pbartok
18949         * CheckState.cs:
18950           - Initial checkin
18952 2004-08-30 09:17  pbartok
18954         * Appearance.cs:
18955           - Initial check-in
18957 2004-08-27 16:12  ravindra
18959         * ToolBarButton.cs: Added TypeConverter attribute.
18961 2004-08-27 16:07  ravindra
18963         * ImageIndexConverter.cs: Implemented.
18965 2004-08-27 14:17  pbartok
18967         * Control.cs:
18968           - Removed unneeded stack vars
18969           - First attempt to fix sizing issues when layout is suspended
18971 2004-08-25 15:35  jordi
18973         * ScrollBar.cs: more fixes to scrollbar
18975 2004-08-25 14:04  ravindra
18977         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
18978           Added the missing divider code and grip for ToolBar Control.
18980 2004-08-25 13:20  pbartok
18982         * Control.cs:
18983           - Control now properly passes the ambient background color to child
18984             controls
18986 2004-08-25 13:20  jordi
18988         * ScrollBar.cs: small bug fix regarding bar position
18990 2004-08-25 12:33  pbartok
18992         * Timer.cs:
18993           - Now only calls SetTimer or KillTimer if the enabled state has
18994           changed
18996 2004-08-25 12:33  pbartok
18998         * XplatUIWin32.cs:
18999           - Fixed timer handling, now seems to work
19000           - Improved error message for window creation
19002 2004-08-25 12:32  pbartok
19004         * Control.cs:
19005           - Fixed generation of MouseUp message
19007 2004-08-25 12:29  jordi
19009         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
19010           and fixes for progressbar
19012 2004-08-24 18:43  ravindra
19014         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
19015           in ToolBar control.
19017 2004-08-24 17:15  pbartok
19019         * Panel.cs:
19020           - Added #region
19021           - Added missing events
19022           - Alphabetized
19024 2004-08-24 17:14  pbartok
19026         * StatusBar.cs, PictureBox.cs:
19027           - Now uses Control's CreateParams
19029 2004-08-24 16:36  pbartok
19031         * XplatUIX11.cs:
19032           - Fixed background color handling
19033           - Fixed sending of enter/leave events on a grab
19035 2004-08-24 16:35  pbartok
19037         * X11Structs.cs:
19038           - Refined definitions for CrossingEvent
19040 2004-08-24 12:37  jordi
19042         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
19043           formmating, methods signature, and adds missing events
19045 2004-08-24 12:24  jordi
19047         * Control.cs: fire OnEnabledChanged event
19049 2004-08-24 11:17  pbartok
19051         * XplatUIWin32.cs:
19052           - Implemented SetTimer() and KillTimer()
19054 2004-08-24 11:16  pbartok
19056         * XplatUIX11.cs:
19057           - Now uses Remove instead of Add to kill the timer
19059 2004-08-24 10:16  jackson
19061         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
19062           picture boxes in the theme now. Draw picture box borders and obey
19063           sizing modes
19065 2004-08-24 05:49  jackson
19067         * Timer.cs: Remove top secret debugging code
19069 2004-08-24 05:34  jackson
19071         * PictureBox.cs: Temp hack to make picture boxes draw their full
19072           image
19074 2004-08-24 05:29  jackson
19076         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19077           XplatUIX11.cs: Move timers to the driver level. On X they are
19078           queued by the driver and checked on idle.
19080 2004-08-24 01:07  jackson
19082         * XplatUIX11.cs: Use a queue for async messages instead of passing
19083           them as ClientMessages since that was totally broken. Also simply
19084           check for events and return an idle message if none are found. This
19085           gives us an idle handler, and prevents deadlocking when no messages
19086           are in the queue.
19088 2004-08-23 18:19  ravindra
19090         * XplatUIWin32.cs: Removed the unwanted destructor.
19092 2004-08-23 17:27  pbartok
19094         * ButtonBase.cs:
19095           - Finishing touches. Works now, just needs some optimizations.
19097 2004-08-23 16:53  jordi
19099         * ScrollBar.cs: small fix
19101 2004-08-23 16:45  pbartok
19103         * Application.cs:
19104           - Removed debug output
19105           - Simplifications
19107 2004-08-23 16:43  jordi
19109         * ScrollBar.cs: [no log message]
19111 2004-08-23 16:10  pbartok
19113         * Form.cs:
19114           - Fixed handling of WM_CLOSE message
19115           - Removed debug output
19117 2004-08-23 16:09  pbartok
19119         * Application.cs:
19120           - Added handling of Idle event
19121           - Added handling of form closing
19122           - Fixed reporting of MessageLoop property
19123           - Removed some unneeded code, should provide a bit of a speedup
19125 2004-08-23 15:22  pbartok
19127         * Control.cs:
19128           - Added InitLayout() method
19129           - Added code to properly perform layout when Anchor or Dock property
19130             is changed
19131           - Changed 'interpretation' of ResumeLayout. MS seems to have a
19132             LAMESPEC, tried to do it in a way that makes sense
19134 2004-08-23 14:10  jordi
19136         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
19137           properties and methods
19139 2004-08-23 13:55  pbartok
19141         * Control.cs:
19142           - Properly fixed Jordi's last fix
19143           - Now uses Cursor's Position property instead of calling XplatUI
19144           directly
19146 2004-08-23 13:44  jordi
19148         * PaintEventHandler.cs: Adding missing attribute
19150 2004-08-23 13:39  pbartok
19152         * Cursor.cs:
19153           - Implemented Position property
19155 2004-08-23 13:39  pbartok
19157         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19158           - Added method to move mouse cursor
19160 2004-08-23 13:39  pbartok
19162         * XplatUIX11.cs:
19163           - Fixed setting of background color
19164           - Added method to move mouse cursor
19166 2004-08-23 13:16  jordi
19168         * Control.cs: avoids null exception
19170 2004-08-22 17:46  jackson
19172         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
19173           PictureBox
19175 2004-08-22 17:40  jackson
19177         * XplatUIX11.cs: Add some missing locks
19179 2004-08-22 15:10  pbartok
19181         * Control.cs, Form.cs:
19182           - Removed OverlappedWindow style from Control, instead it's default
19183             now is child
19184           - Made form windows OverlappedWindow by default
19186 2004-08-22 13:34  jackson
19188         * ScrollBar.cs: Update the position through the Value property so
19189           the OnValueChanged event is raised.
19191 2004-08-22 12:04  pbartok
19193         * SWF.csproj:
19194           - Added Cursor.cs and UserControl.cs
19196 2004-08-22 12:03  pbartok
19198         * Cursor.cs:
19199           - Started implementation, not usable yet
19201 2004-08-22 12:00  pbartok
19203         * UserControl.cs:
19204           - Implemented UserControl (complete)
19206 2004-08-21 19:20  ravindra
19208         * ToolBar.cs: Correcting the formatting mess of VS.NET.
19210 2004-08-21 18:49  ravindra
19212         * ToolBar.cs: Probably this completes the missing attributes in
19213           toolbar control.
19215 2004-08-21 18:03  ravindra
19217         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
19218           Fixed toolbar control signatures.
19220 2004-08-21 16:32  pbartok
19222         * LinkLabel.cs:
19223           - Signature Fixes
19225 2004-08-21 16:30  pbartok
19227         * Label.cs:
19228           - Signature fixes
19230 2004-08-21 16:19  pbartok
19232         * Control.cs, Label.cs:
19233           - Signature fixes
19235 2004-08-21 15:57  pbartok
19237         * ButtonBase.cs:
19238           - Added loads of debug output for development
19239           - Fixed typo in method name
19241 2004-08-21 15:52  pbartok
19243         * ToolBarButtonClickEventArgs.cs:
19244           - Added missing base class
19246 2004-08-21 14:53  pbartok
19248         * Control.cs:
19249           - Updated to match new GrabWindow signature
19251 2004-08-21 14:51  pbartok
19253         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19254           - Added method to get default display size
19256 2004-08-21 14:23  pbartok
19258         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19259           - Added method to query current grab state
19260           - Added argument to allow confining a grab to a window
19262 2004-08-21 14:22  pbartok
19264         * Keys.cs:
19265           - Added [Flags] attribute so that modifiers can be used in bitwise
19266           ops
19268 2004-08-21 14:21  pbartok
19270         * TrackBar.cs, ScrollBar.cs:
19271           - Replaced direct XplatUI calls with their Control counterpart
19273 2004-08-21 13:32  pbartok
19275         * Control.cs:
19276           - Implemented Created property
19278 2004-08-21 13:28  pbartok
19280         * Control.cs:
19281           - Implemented ContainsFocus
19283 2004-08-21 13:26  pbartok
19285         * Control.cs:
19286           - Implemented CausesValidation
19288 2004-08-21 13:21  pbartok
19290         * Control.cs:
19291           - Implemented CanFocus
19292           - Implemented CanSelect
19293           - Implemented Capture
19295 2004-08-21 12:35  pbartok
19297         * XplatUIWin32.cs:
19298           - Fixed bug with Async message handling
19299           - Implemented getting the ModifierKeys
19301 2004-08-21 12:32  jackson
19303         * AsyncMethodResult.cs: Make sure we have the mutex before we
19304           release it. Fixes BeginInvoke on windows
19306 2004-08-21 11:31  pbartok
19308         * XplatUIWin32.cs, XplatUIX11.cs:
19309           - Drivers now return proper mouse state
19311 2004-08-21 10:54  jackson
19313         * Control.cs: Implement EndInvoke
19315 2004-08-21 10:48  jackson
19317         * Timer.cs: Remove unneeded finalizer
19319 2004-08-20 19:52  ravindra
19321         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
19322           in mouse event handling in the ToolBar control.
19324 2004-08-20 19:50  ravindra
19326         * ImageList.cs: Changed draw method to use the arguments passed in
19327           to draw the image.
19329 2004-08-20 18:58  pbartok
19331         * XplatUIStructs.cs:
19332           - Added private message for async communication
19334 2004-08-20 17:38  ravindra
19336         * Control.cs: Made RightToLeft property virtual and removed a
19337           Console.WriteLine.
19339 2004-08-20 14:39  jordi
19341         * ThemeGtk.cs: use style_attach
19343 2004-08-20 14:39  pbartok
19345         * XplatUIWin32.cs:
19346           - Added jackson's Async code from X11 to Win32
19348 2004-08-20 14:09  pbartok
19350         * SWF.csproj:
19351           - Added all new files
19353 2004-08-20 14:09  pbartok
19355         * Control.cs:
19356           - Added call to set window background color
19358 2004-08-20 14:03  pbartok
19360         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19361           - Added method for setting the window background
19363 2004-08-20 14:02  pbartok
19365         * XplatUIWin32.cs:
19366           - Added method for setting the background color
19367           - Added handling for erasing the window background
19369 2004-08-20 13:45  jordi
19371         * TrackBar.cs: fixes timer, new properties and methods
19373 2004-08-20 13:34  jackson
19375         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
19376           correct thread
19378 2004-08-20 13:22  jackson
19380         * Timer.cs: Timer Tick events are now handed through Controls Async
19381           mechanism so the callbacks are executed in the same thread as X
19383 2004-08-20 13:19  jackson
19385         * XplatUIDriver.cs: Expose functionality to send async messages
19386           through the driver
19388 2004-08-20 13:18  jackson
19390         * Control.cs: Implement Begininvoke
19392 2004-08-20 13:14  jackson
19394         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
19395           messages through the driver
19397 2004-08-20 13:12  jackson
19399         * XplatUIX11.cs: Lock before all X operations. Also added Async
19400           method functionality through XSendEvent
19402 2004-08-20 13:11  jackson
19404         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
19405           This will screw up on 64 bit systems)
19407 2004-08-20 13:10  jackson
19409         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
19410           Async messages through X/Win32
19412 2004-08-19 19:39  pbartok
19414         * XplatUIX11.cs:
19415           - Updated code to match new HandleData.DeviceContext type
19417 2004-08-19 19:38  pbartok
19419         * HandleData.cs:
19420           - Made DeviceContext a generic object to allow usage from various
19421           drivers
19422           - Added support for queueing Windows messages
19424 2004-08-19 19:37  pbartok
19426         * XplatUIWin32.cs:
19427           - Added generation of MouseEnter, MouseLeave and MouseHover events
19428           - Added cleanup on EndPaint
19430 2004-08-19 19:17  pbartok
19432         * Control.cs:
19433           - Added handling of WM_MOUSEHOVER
19434           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
19435           code
19437 2004-08-19 18:55  jordi
19439         * ThemeGtk.cs: fixes button order
19441 2004-08-19 18:12  jordi
19443         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
19445 2004-08-19 17:09  pbartok
19447         * Control.cs:
19448           - Added Right property
19449           - Added RightToLeft property
19451 2004-08-19 16:27  jordi
19453         * ThemeGtk.cs: experimental GTK theme support
19455 2004-08-19 16:26  jordi
19457         * ITheme.cs, Theme.cs: move themes from an interface to a class
19459 2004-08-19 16:25  jordi
19461         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
19462           theme enhancaments
19464 2004-08-19 16:04  pbartok
19466         * XplatUIX11.cs:
19467           - Added colormap basics
19468           - Added a way to re-initialize with a different display handle
19469           - Fixed setting of the window background color
19470           - Added various X11 imports related to colors and colormaps
19472 2004-08-19 15:51  pbartok
19474         * X11Structs.cs:
19475           - Removed packing hints (Paolo suggested this a while back)
19476           - fixed colormap type
19477           - Added default Atom types
19478           - Added Screen and color structs and enums
19480 2004-08-19 15:39  pbartok
19482         * ImageList.cs:
19483           - Added missing Draw() method
19484           - Added missing RecreateHandle event
19486 2004-08-19 15:30  pbartok
19488         * Form.cs:
19489           - Added handling of WM_CLOSE
19491 2004-08-18 13:16  jordi
19493         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
19494           a table
19496 2004-08-18 09:56  jordi
19498         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
19500 2004-08-17 15:31  ravindra
19502         * SWF.csproj: Updated project.
19504 2004-08-17 15:25  pbartok
19506         * Control.cs:
19507           - Drawing improvement; don't call UpdateBounds if we are not visible
19508             (or have been minimized)
19510 2004-08-17 15:24  pbartok
19512         * XplatUIWin32.cs:
19513           - Finished IsVisible
19514           - Added Win32GetWindowPlacement
19516 2004-08-17 15:08  jackson
19518         * Panel.cs: Initial checkin of the Panel
19520 2004-08-17 14:25  pbartok
19522         * Control.cs:
19523           - Fixed broken handling of default window sizes
19525 2004-08-17 13:29  jackson
19527         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
19528           has a large startup time.
19530 2004-08-17 10:25  jackson
19532         * HandleData.cs: union areas properly
19534 2004-08-17 10:12  jackson
19536         * HandleData.cs: union areas properly
19538 2004-08-16 20:00  ravindra
19540         * ToolBar.cs, ToolBarButton.cs: Added attributes.
19542 2004-08-16 18:48  ravindra
19544         * ToolBar.cs: Added attributes.
19546 2004-08-16 17:17  ravindra
19548         * SWF.csproj: Updated project.
19550 2004-08-16 17:16  jackson
19552         * XplatUIX11.cs: Check for more expose events before sending a
19553           WM_PAINT so they can all be grouped together. This makes dragging a
19554           window across another window redraw in a sane way.
19556 2004-08-16 15:47  pbartok
19558         * Control.cs:
19559           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
19560             support OnMouseEnter/Leave()
19561           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
19562             exposure handling
19564 2004-08-16 15:46  pbartok
19566         * XplatUIStructs.cs, XplatUIX11.cs:
19567           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
19568           OnMouseEnter/Leave()
19570 2004-08-16 15:34  jackson
19572         * XplatUIX11.cs: Group multiple expose events in HandleData, make
19573           sure messages get the message field set to WM_NULL if they are not
19574           handled.
19576 2004-08-16 15:24  jackson
19578         * HandleData.cs: HandleData is used for storing message information
19579           for window handles
19581 2004-08-15 17:23  ravindra
19583         * ColorDepth.cs: Added attribute.
19585 2004-08-15 17:23  ravindra
19587         * SWF.csproj: Updated project for ToolBar Control.
19589 2004-08-15 17:20  ravindra
19591         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
19592           control and also dos2unix format.
19594 2004-08-15 17:13  ravindra
19596         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
19597           ToolBarButtonClickEventArgs.cs,
19598           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
19599           ToolBarTextAlign.cs: First Implementation of ToolBar control.
19601 2004-08-15 15:31  pbartok
19603         * ButtonBase.cs:
19604           - First (mostly) working version
19606 2004-08-13 16:15  pbartok
19608         * Control.cs:
19609           - Fixed Anchor default
19611 2004-08-13 15:43  pbartok
19613         * Control.cs:
19614           - Changed GetCursorPos signature
19616 2004-08-13 15:42  pbartok
19618         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19619           - Changed signature for GetCursorPos
19621 2004-08-13 15:25  pbartok
19623         * XplatUIX11.cs:
19624           - Cleanup
19625           - Fixed resizing/exposure handling
19627 2004-08-13 15:22  jordi
19629         * ThemeWin32Classic.cs: removes redundant code and fixes issues
19630           with tickposition
19632 2004-08-13 14:55  jordi
19634         * TrackBar.cs: change from wndproc to events
19636 2004-08-13 13:00  jordi
19638         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19639           XplatUIX11.cs: implements PointToClient (ScreenToClient)
19641 2004-08-13 12:53  pbartok
19643         * XplatUIWin32.cs:
19644           - Changed GetWindowPos to also provide client area size
19645           - Fixed broken prototypes for several win32 functions
19647 2004-08-13 12:53  pbartok
19649         * XplatUI.cs, XplatUIDriver.cs:
19650           - Changed GetWindowPos to also provide client area size
19652 2004-08-13 12:52  pbartok
19654         * XplatUIX11.cs:
19655           - Added generation of WM_POSCHANGED
19656           - Changed GetWindowPos to also provide client area size
19658 2004-08-13 12:52  pbartok
19660         * Control.cs:
19661           - Added Dispose() and destructor
19662           - Fixed resizing and bounds calculation
19663           - Fixed Layout
19664           - Added memory savings for invisible windows
19666 2004-08-13 12:46  jordi
19668         * TrackBar.cs: adds timer and grap window
19670 2004-08-13 10:25  jackson
19672         * Timer.cs: SWF Timer
19674 2004-08-12 16:59  pbartok
19676         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19677           - Implemented method to get current mouse position
19679 2004-08-12 14:29  jordi
19681         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
19682           enhancement, fix mouse problems, highli thumb, etc
19684 2004-08-12 13:31  pbartok
19686         * Control.cs:
19687           - Fixed Anchoring bugs
19689 2004-08-12 13:01  jackson
19691         * StatusBar.cs: Don't forget things
19693 2004-08-12 12:54  jackson
19695         * ThemeWin32Classic.cs: Handle owner draw status bars
19697 2004-08-12 12:54  jackson
19699         * StatusBar.cs: Implement missing properties, events, and methods.
19700           Handle mouse clicking
19702 2004-08-12 10:19  jackson
19704         * StatusBarPanelClickEventArgs.cs,
19705           StatusBarPanelClickEventHandler.cs: Classes for handling status
19706           bar panel click events
19708 2004-08-12 10:10  jackson
19710         * Control.cs: Add missing properties
19712 2004-08-12 09:46  pbartok
19714         * BindingsManagerBase.cs:
19715           - Name changed to BindingManagerBase.cs
19717 2004-08-12 09:25  jordi
19719         * ScrollableControl.cs: calls ctrlbase instead of exeception
19721 2004-08-11 16:28  pbartok
19723         * InputLanguageChangingEventArgs.cs:
19724           - Never check in before compiling. Fixes the last check-in
19726 2004-08-11 16:26  pbartok
19728         * InputLanguageChangingEventArgs.cs:
19729           - More signature fixes
19731 2004-08-11 16:20  pbartok
19733         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
19734           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
19735           ImageListStreamer.cs, InputLanguage.cs,
19736           InputLanguageChangedEventArgs.cs,
19737           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
19738           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
19739           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
19740           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19741           - Signature fixes
19743 2004-08-11 16:16  pbartok
19745         * Application.cs:
19746           - Fixed Signature
19747           - Added .Net 1.1 method
19749 2004-08-11 15:25  pbartok
19751         * SWF.csproj:
19752           - Fixed BindingManagerBase.cs filename
19754 2004-08-11 15:22  pbartok
19756         * BindingManagerBase.cs:
19757           - Was checked in with wrong filename
19759 2004-08-11 14:50  pbartok
19761         * SWF.csproj:
19762           - Updated
19764 2004-08-11 13:41  jordi
19766         * XplatUIWin32.cs: Fixes ClientRect
19768 2004-08-11 13:19  pbartok
19770         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19771           XplatUIX11.cs:
19772           - We had SetWindowPos and MoveWindow to set window positions and
19773             size, removed MoveWindow. We have GetWindowPos, so it made sense to
19774             keep SetWindowPos as matching counterpart
19775           - Added some X11 sanity checking
19777 2004-08-11 12:59  pbartok
19779         * Control.cs:
19780           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
19781             (It seems that SetBounds is just a front for SetBoundsCore and
19782              SetBoundsCore updates the underlying window system and
19783              UpdateBounds is responsible for updating the variables associated
19784              with the Control and sending the events)
19785           - Major cleanup of Size handling; we now have two sizes, client_size
19786             and bounds. Bounds defines the window with decorations, client_size
19787             without them.
19789 2004-08-11 12:55  pbartok
19791         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19792           - Added method to calculate difference between decorated window and
19793             raw client area
19795 2004-08-11 12:54  pbartok
19797         * Label.cs:
19798           - Forcing redraw on resize
19800 2004-08-11 11:43  pbartok
19802         * ImageList.cs:
19803           - Removed disposing of the actual images when the list is disposed
19805 2004-08-11 09:13  pbartok
19807         * Control.cs:
19808           - Now properly reparents windows
19810 2004-08-11 08:37  pbartok
19812         * Control.cs:
19813           - Duh!
19815 2004-08-11 07:47  pbartok
19817         * Control.cs:
19818           - Rewrote the collection stuff. Might not be as fast now, not
19819             keeping the number of children around and accessible directly, but
19820             it's more straightforward
19822 2004-08-11 07:44  pbartok
19824         * AccessibleObject.cs:
19825           - Fixed to match ControlCollection rewrite
19827 2004-08-11 07:43  pbartok
19829         * ImageList.cs:
19830           - Added missing creation of the collection list
19832 2004-08-10 20:08  jackson
19834         * StatusBar.cs: Get the paint message from WndProc
19836 2004-08-10 19:31  jackson
19838         * ThemeWin32Classic.cs: Create Brushes as little as possible
19840 2004-08-10 19:20  jackson
19842         * UICues.cs: Add Flags attribute
19844 2004-08-10 19:19  jackson
19846         * StatusBarPanel.cs: Signature cleanup
19848 2004-08-10 19:10  jackson
19850         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
19851           Initial implementation of status bar item drawing
19853 2004-08-10 17:27  jordi
19855         * TrackBar.cs: add missing methods, properties, and restructure to
19856           hide extra ones
19858 2004-08-10 16:24  jackson
19860         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
19861           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
19862           attribute
19864 2004-08-10 13:21  jordi
19866         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
19867           enhancements and standarize on win colors defaults
19869 2004-08-10 12:52  jackson
19871         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
19872           ThemeWin32Classic.cs: Implement DrawItem functionality
19874 2004-08-10 12:47  jordi
19876         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
19878 2004-08-10 12:32  jordi
19880         * Control.cs: throw ontextchange event
19882 2004-08-10 11:43  pbartok
19884         * Control.cs:
19885           - Added more to the still unfinished Dock/Anchor layout code
19887 2004-08-10 11:39  pbartok
19889         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19890           - Added GetWindowPos method
19892 2004-08-10 11:36  pbartok
19894         * XplatUIWin32.cs:
19895           - Implemented several methods
19897 2004-08-10 09:47  jackson
19899         * TrackBar.cs: Allow control to handle buffering
19901 2004-08-10 09:41  jackson
19903         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
19905 2004-08-10 09:24  jackson
19907         * Label.cs, LinkLabel.cs: Let Control handle buffering.
19909 2004-08-10 09:09  jackson
19911         * StatusBar.cs: Let Control handle all the buffering.
19913 2004-08-10 09:08  jackson
19915         * Control.cs: Control will now handle the buffering code, so each
19916           control does not have to implement this.
19918 2004-08-10 08:34  jackson
19920         * XplatUIDriver.cs: Use default colors from the theme
19922 2004-08-09 17:12  pbartok
19924         * ImageList.cs:
19925           - Fixed several bugs Ravindra pointed out
19927 2004-08-09 16:11  pbartok
19929         * Control.cs:
19930           - Added incomplete dock layout code
19931           - Added support for mouse wheel
19933 2004-08-09 16:09  pbartok
19935         * XplatUIX11.cs:
19936           - Added handling for middle and right mousebutton
19937           - Added handling for mouse wheel
19938           - Added handling for key state and mouse state and position
19939           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
19940           messages
19942 2004-08-09 15:40  jackson
19944         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
19945           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
19946           checkin
19948 2004-08-09 15:37  jackson
19950         * StatusBar.cs: Initial implementation of StatusBar
19952 2004-08-09 15:36  jackson
19954         * ITheme.cs: Add support for drawing status bar and getting status
19955           bar item sizes
19957 2004-08-09 15:35  pbartok
19959         * MouseButtons.cs:
19960           - Fixed values
19962 2004-08-09 15:34  jackson
19964         * ThemeWin32Classic.cs: Add support for drawing status bar and get
19965           status bar item sizes
19967 2004-08-09 15:21  jackson
19969         * ThemeWin32Classic.cs: Use known colors for default control
19970           colours
19972 2004-08-09 15:12  jackson
19974         * ThemeWin32Classic.cs: Make the default font static, it is static
19975           in control so this doesn't change functionality and creating fonts
19976           is sloooooow.
19978 2004-08-09 14:56  pbartok
19980         * X11Structs.cs:
19981           - Added GrabMode enum
19983 2004-08-09 14:55  pbartok
19985         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19986           - Removed Run method, was only required for initial development
19988 2004-08-09 14:51  pbartok
19990         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19991           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
19992           capture
19994 2004-08-09 13:48  pbartok
19996         * XplatUIX11.cs:
19997           - Fixed default sizing for child windows
19999 2004-08-09 12:56  pbartok
20001         * XplatUIX11.cs:
20002           - Added generation of WM_DESTROY message
20003           - Added handling of window manager induced shutdown
20005 2004-08-09 11:31  jackson
20007         * ThemeWin32Classic.cs: New names for control properties
20009 2004-08-09 11:25  jackson
20011         * Control.cs: Use new color names
20013 2004-08-09 11:02  jackson
20015         * XplatUI.cs: Get default window properties from the theme
20017 2004-08-09 11:01  jackson
20019         * ITheme.cs: The theme engine now controls default window
20020           properties
20022 2004-08-09 11:00  jackson
20024         * ThemeWin32Classic.cs: Add default window color properties
20026 2004-08-09 10:17  jackson
20028         * ThemeWin32Classic.cs: Use correct default back color
20030 2004-08-09 10:05  jackson
20032         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
20033           the theme now.
20035 2004-08-09 09:56  jackson
20037         * XplatUI.cs: Remove defaults, these are handled by the theme now.
20039 2004-08-09 09:54  jackson
20041         * Control.cs: Get default properties from the theme.
20043 2004-08-09 09:53  jackson
20045         * ITheme.cs: Themes now handle default control properties
20047 2004-08-09 09:53  jackson
20049         * ThemeWin32Classic.cs: Themes now handle default control
20050           properties so coloring will be consistent
20052 2004-08-08 16:54  jordi
20054         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
20056 2004-08-08 15:08  jordi
20058         * XplatUIX11.cs: fixes keyboard crash
20060 2004-08-08 13:47  jordi
20062         * Label.cs: add cvs header info
20064 2004-08-08 12:09  jackson
20066         * ThemeWin32Classic.cs: Add pen_buttonface
20068 2004-08-08 11:52  jordi
20070         * Label.cs, LinkLabel.cs: [no log message]
20072 2004-08-08 11:34  jordi
20074         * ThemeWin32Classic.cs: Use Windows Standard Colours
20076 2004-08-07 17:32  jordi
20078         * TrackBar.cs: throw exceptions of invalid enums values
20080 2004-08-07 17:31  jordi
20082         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
20083           draw method name
20085 2004-08-07 16:56  jackson
20087         * HorizontalAlignment.cs: Initial checkin
20089 2004-08-07 13:16  jordi
20091         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
20092           methods
20094 2004-08-07 13:05  jordi
20096         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
20097           GetSysColor defines
20099 2004-08-06 18:01  pbartok
20101         * ThemeWin32Classic.cs:
20102           - Fixed some rounding issues with float/int
20104 2004-08-06 18:00  jackson
20106         * DockStyle.cs, AnchorStyles.cs:
20108                   Add flags and serializable attributes.
20110 2004-08-06 17:46  pbartok
20112         * XplatUIX11.cs:
20113           - Implemented GetParent
20115 2004-08-06 17:18  pbartok
20117         * TrackBar.cs:
20118           - Fixed some rounding issues with float/int
20120 2004-08-06 17:17  pbartok
20122         * X11Structs.cs, XplatUIX11.cs:
20123           - Fixed Refresh and Invalidate
20125 2004-08-06 15:30  pbartok
20127         * Control.cs, X11Structs.cs, XplatUIX11.cs:
20128           - Fixed recursive loop when resizing
20129           - Improved/fixed redrawing on expose messages
20131 2004-08-06 09:53  jordi
20133         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
20134           keyboard navigation
20136 2004-08-06 08:02  pbartok
20138         * X11Structs.cs, XplatUIX11.cs:
20139           - Fixed reparenting
20140           - Fixed window border creation
20142 2004-08-05 15:38  pbartok
20144         * XplatUIX11.cs:
20145           - Attempted fix for reparenting problems
20147 2004-08-04 15:14  pbartok
20149         * Control.cs:
20150           - Fixed Invalidation bug (calculated wrong client area)
20151           - Added ClientSize setter
20153 2004-08-04 15:13  pbartok
20155         * Form.cs:
20156           - Added AutoScale properties
20158 2004-08-04 15:13  pbartok
20160         * SWF.csproj:
20161           - Added latest files
20163 2004-08-04 14:11  pbartok
20165         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20166           XplatUIX11.cs:
20167           - Added Invalidate handling
20169 2004-08-03 17:09  jordi
20171         * XplatUIDriver.cs: fixes spelling mistake
20173 2004-07-27 09:53  jordi
20175         * TrackBar.cs: fixes trackbar events, def classname, methods
20176           signature
20178 2004-07-27 09:29  jordi
20180         * ScrollBar.cs: fixes scrollbar events
20182 2004-07-27 04:38  jordi
20184         * Control.cs: changes to be able to run winforms samples
20186 2004-07-26 11:42  jordi
20188         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
20189           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
20191 2004-07-26 05:41  jordi
20193         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
20194           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
20195           implementation
20197 2004-07-22 09:22  jordi
20199         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
20200           check link overlapping, implement events, and fixes
20202 2004-07-21 10:28  jordi
20204         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
20206 2004-07-21 10:19  jordi
20208         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
20209           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
20210           LinkLabelLinkClickedEventArgs.cs,
20211           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
20212           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
20213           implementation
20215 2004-07-19 13:09  jordi
20217         * Control.cs, Label.cs: label control re-written: added missing
20218           functionlity, events, and properties
20220 2004-07-19 10:49  jordi
20222         * Control.cs: fixes SetBounds logic
20224 2004-07-19 01:29  jordi
20226         * Control.cs: Call RefreshWindow only if the window has created
20228 2004-07-15 14:05  pbartok
20230         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
20231           - Implemented ImageList and ImageList.ImageCollection classes
20232           - Added ColorDepth enumeration
20233           - Updated SWF VS.Net project
20235 2004-07-15 11:06  jordi
20237         * XplatUIStructs.cs: added MsgButons enum
20239 2004-07-15 11:03  jordi
20241         * Control.cs: added basic mouse handeling events
20243 2004-07-15 03:38  jordi
20245         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
20246           Vertical TrackBar control implementation
20248 2004-07-13 09:33  jordi
20250         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
20252 2004-07-13 09:31  jordi
20254         * Control.cs, Form.cs: commit: new properties and fixes form size
20255           problems
20257 2004-07-09 14:13  miguel
20259         * ProgressBar.cs: Spelling
20261 2004-07-09 11:25  pbartok
20263         * ProgressBar.cs:
20264           - Removed usage of Rectangle for drawing. Miguel pointed out it's
20265           faster
20267 2004-07-09 11:17  miguel
20269         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
20271                 * ProgressBar.cs: Fixed spelling for `block'
20273                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
20274                 style guidelines.
20276                 Avoid using the += on rect.X, that exposed a bug in the compiler.
20278 2004-07-08 23:21  pbartok
20280         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
20281           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
20282           BaseCollection.cs, Binding.cs, BindingContext.cs,
20283           BindingMemberInfo.cs, BindingsCollection.cs,
20284           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
20285           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
20286           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
20287           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
20288           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
20289           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
20290           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
20291           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
20292           FrameStyle.cs, GiveFeedbackEventArgs.cs,
20293           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
20294           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
20295           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
20296           InputLanguageChangedEventArgs.cs,
20297           InputLanguageChangedEventHandler.cs,
20298           InputLanguageChangingEventArgs.cs,
20299           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
20300           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
20301           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
20302           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
20303           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
20304           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
20305           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
20306           QueryAccessibilityHelpEventArgs.cs,
20307           QueryAccessibilityHelpEventHandler.cs,
20308           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
20309           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
20310           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
20311           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
20312           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
20313           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
20314           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
20315           XplatUIX11.cs, lang.cs:
20316           - Initial check-in