2006-12-04 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-12-04  Chris Toshok  <toshok@ximian.com>
2
3         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
4         to reassign the propertydescriptor.
5
6 2006-12-04  Jackson Harper  <jackson@ximian.com>
7
8         * TextBoxBase.cs: Default selection length is -1, need to do some
9         more testing on windows to see when this is used for the property.
10         - Redid the Lines [] property to that we properly remove soft line
11         breaks
12         - added support for preserving carriage returns
13         -  CanUndo is not a variable like 'is undo enabled' it just returns
14         true if there is undo operations available.
15         - AppendText doesn't need to grab the last tag itself anymore,
16         this happens automatically when we move the cursor.
17         * TextControl.cs: Add CompoundActions to the undo class. This
18         allows combining the other operations into one big option.  ie a
19         paste will combine { delete old, insert new, move cursor }
20         - Add InsertString undo operation
21         - New method for deleting multiline text
22         - Add carriage returns to lines. So we can preserve carriage
23         returns when text is 'roundtripped'
24
25 2006-12-04  Chris Toshok  <toshok@ximian.com>
26
27         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
28         minimum 0.  Fixes the scrollbar exception in bug #80136.
29
30 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
31
32         * MdiClient.cs: 
33         * MdiWindowManager: Removed unused fields and methods.
34         
35 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
36         
37         * StatusBar.cs: Update all panels when a AutoSize=Contents
38         panel needs updating.
39         
40         * StatusBarPanel.cs: Remove twidth and only use initialize.
41         Fixes #80031.
42                 
43 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
44
45         * Form.cs: When a form's MdiParent is set add it directly
46         on top of the z-order in stead of relying on MdiClient's
47         ActivateChild to do it. Fixes #80135.
48         
49         * MdiClient.cs: 
50         - Remove original_order, mdi_child_list is already doing
51         the same thing.
52         - Create mdi_child_list on construction in
53         stead of first use (avoids a few null checks).
54
55         * MenuItem.cs: Use an already existing list of mdi children
56         to get the correct order of children and remove the other
57         redundant list.
58
59 2006-12-04  Chris Toshok  <toshok@ximian.com>
60
61         * PropertyGridView.cs: cached_splitter_location is only used in
62         !DOUBLEBUFFER code.
63
64         * PropertyGrid.cs: implement the ComComponentNameChanged event
65         using Events, hoping that would fix the warning.  Looks like a
66         compiler bug instead (#80144).
67
68         * PropertyManager.cs: remove unused method.
69
70 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
71
72         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
73         include parentesis to fix expression evaluation. Fixes #79634.
74
75 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
76         
77         * MenuAPI.cs:
78         - Changes to fix behavior in Menu control, some reported in #80097
79         and other detected during behavior refactory like a select event
80         problems.
81         - Remove unneded "if's" conditions.
82         - Created an internal to flag when popup is active in control, we need 
83         it because in .NET you can have menu active but without popup active
84         when you active menu using popup without visible items.
85         - Mimic win32 behavior for Select and Popup events.  
86         - Dont open popup menu when you dont have visible subitems.
87         - Do nothing when click on disabled menu item.
88         - Some small changes to follow the coding style guidelines.
89         - Unselect menu only when another control gives focus. Fixes #80097.
90         - Remove unused code.
91         
92         * MenuItem.cs: internal VisibleItems method to check if menu
93         theres visible subitems, it will be usefull to fix some 
94         behavior in Menu control.
95         
96 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
97         
98         * Timer.cs: Tag property for 2.0 profile.
99         
100 2006-12-01  Chris Toshok  <toshok@ximian.com>
101
102         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
103         
104         * Win32DnD.cs: comment out some unused fields.
105
106         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
107         some unused properties/methods.
108
109         * XplatUIX11.cs: fix MousePosition so we override the base class's
110         property instead of conflicting with it.
111
112         * PictureBox.cs: comment out some unused fields
113
114         * OSXStructs.cs: make some struct fields public.
115
116         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
117         MousePosition so we override the base class's property instead of
118         conflicting with it.
119
120         * X11Dnd.cs: comment out some unused fields
121
122         * X11DesktopColors.cs: fix some struct field visibility to quiet
123         the compiler.
124
125         * X11Dnd.cs: remove some debug code.
126
127         * ThemeClearlooks.cs: comment out unused field.
128
129         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
130
131         * ThemeGtk.cs: comment out some unused pinvokes.
132
133         * Timer.cs: remove some unused fields.
134
135         * ThemeClearlooks.cs: comment out unused field.
136
137         * UpDownBase.cs: comment out unused field.
138
139         * DataObject.cs: comment out unused field.
140
141         * DataGridBoolColumn.cs: reomve unused field.
142
143         * DataGrid.cs: remove unused field.
144
145         * Cursor.cs: remove old ToBitmap code.
146
147         * ControlPaint.cs: remove unused method.
148
149         * ScrollBar.cs: remove unused fields.
150
151         * ComboBox.cs: remove unused field, and chain up to
152         AccessibleObject ctor.
153
154         * ListBox.cs: remove unused field.
155
156         * ButtonBase.cs: wrap a couple fields in NET_2_0.
157
158         * GridEntry.cs: remove unused fields.
159
160         * Binding.cs: remove unused fields.
161
162         * AxHost.cs: remove unused method.
163
164         * ContainerControl.cs: remove unused field.
165
166         * ScrollableControl.cs: remove unused fields.
167
168 2006-12-01  Chris Toshok  <toshok@ximian.com>
169
170         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
171         the Where/WhereString stuff.  it's easy enough to CWL
172         Environment.StackTrace.
173
174         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
175         unused private fields.
176
177 2006-12-01  Jackson Harper  <jackson@ximian.com>
178
179         * TextControl.cs: Do not update the view while inserting multiline
180         text. If we update the view we might wrap lines, before entering
181         the new lines, which causes the new line insertion calculations to
182         be totally fubared.
183         - Remove an old TODO
184         - Make debug output a little nicer
185         
186 2006-12-01  Chris Toshok  <toshok@ximian.com>
187
188         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
189
190 2006-12-01  Chris Toshok  <toshok@ximian.com>
191
192         [ fix the majority of the CS0108 warnings we've been suppressing ]
193         
194         * TreeView.cs: mark BackgroundImageChanged as 'new'.
195
196         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
197         to "LayoutToolBar" to quiet mcs.
198         
199         * TabControl.cs: mark our ControlCollection class as 'new'.
200
201         * TextBoxBase.cs: mark some events as 'new'.
202
203         * Splitter.cs: TabStop is 'new'.
204
205         * ControlBindingsCollection.cs: mark a few methods as new since
206         they change the visibility from protected to public.
207
208         * RadioButton.cs: DoubleClick -> base class, and remove unused
209         HaveDoubleClick.
210
211         * MonthCalendar.cs: ImeMode property -> base class, and mark many
212         events as new.
213
214         * NumericUpDown.cs: TextChanged -> base class.
215
216         * CheckedListBox.cs: mark our ObjectCollection class as new to
217         quiet mcs.
218
219         * FolderBrowserDialog.cs: make HelpRequest event new and have it
220         muck with the base class.
221
222         * StatusBar.cs: fix some mcs warnings about Update being the same
223         name as a base class method.
224
225         * RichTextBox.cs: mark some events as new, and make them do things
226         to the base class impl.
227
228         * UserControl.cs: mark TextChanged as new, and have it manipulate
229         base.TextChanged.
230
231         * UpDownBase.cs: mark some things new.
232
233         * CheckBox.cs: mark DoubleClick "new", and add some text about
234         what we need to look at.
235
236         * Panel.cs: make the events "new", and manipulate the base
237         version.  these are just here for attributes.
238
239         * AccessibleObject.cs: make owner private.
240
241         * Control.cs: deal with AccessibleObject.owner being private.
242         cache our own copy if we need it.
243
244         * Button.cs: add "new" to the DoubleClickEvent.
245
246         * ListBox.cs: no need to track our own has_focus here.  let
247         Control.has_focus do it for us.  Also some other work to clear up
248         warnings about not overriding base class methods of the same name.
249         
250         * ComboBox.cs: clear up some warnings about not override base
251         class methods of the same name.
252
253 2006-12-01  Chris Toshok  <toshok@ximian.com>
254
255         * Form.cs: flag a few things as "new" to quiet some of the mcs
256         warnings.
257
258         * AxHost.cs: same.
259
260         * PrintPreviewDialog.cs: same.
261
262         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
263         now DGV isn't so horrible on the class status page.  also, move
264         all events to using System.ComponentModel.EventHandlerList.  my
265         wrists hurt.
266
267 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
268
269         * MdiWindowManager.cs:
270         - Set form to active mdi child if shown,
271         and update the active mdi child to the next 
272         remaining child in the z-order if the form is hidden.
273
274         * Form.cs: 
275         - Track if the form has been visible and if its 
276         visibility is beeing changed, so that the MdiClient
277         can properly decide the ActiveMdiChild. The MdiClient 
278         cannot track this since the form can change visibility 
279         before MdiClient is created.
280
281         * MdiClient.cs:
282         - Don't activate anything of the parent form is changing
283         its visibility.
284         - Rework ActiveMdiChild to only return visible mdi 
285         children and take into account several other corner 
286         cases.
287
288 2006-12-01  Chris Toshok  <toshok@ximian.com>
289
290         * IBindableComponent.cs: new 2.0 interface.
291
292 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
293
294         * DataGrid.cs: Font for caption area is bold by default.
295
296 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
297
298         * Menu.cs: Tag property for 2.0.
299         
300 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
301
302         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
303         
304 2006-12-01  Chris Toshok  <toshok@ximian.com>
305
306         * TreeView.cs: doh, the Begin* events should be
307         TreeViewCancelEventHandler.
308
309 2006-12-01  Chris Toshok  <toshok@ximian.com>
310
311         * Form.cs: Form.ControlCollection already stores off the
312         form_owner field.  don't access the base class's internal "owner"
313         field.
314
315         * Control.cs: make all the fields in Control.ControlCollection
316         private.  there's no need for any internal fields here.
317
318 2006-12-01  Chris Toshok  <toshok@ximian.com>
319
320         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
321         OnHandleCreated.  Fixes bug #80109.
322
323 2006-12-01  Chris Toshok  <toshok@ximian.com>
324
325         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
326         SplitContainer.cs, Control.cs, StatusStrip.cs,
327         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
328         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
329         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
330         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
331         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
332         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
333         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
334         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
335         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
336         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
337
338         do most of the work to convert our code over to use
339         System.ComponentModel.Component.Events for
340         adding/removing/dispatching events.
341
342
343 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
344
345         * DataGridView.cs: Fix an ArgumentNullException reported 
346         twice today in IRC.
347
348 2006-11-30  Mike Kestner  <mkestner@novell.com>
349
350         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
351         grabbed listbox.  Fixes #80036 and #80101.
352
353 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
354
355         * Message.cs: Changed ToString() to match MS.
356         
357 2006-11-30  Jackson Harper  <jackson@ximian.com>
358
359         * TextBoxBase.cs: You can still change the selected text on a read
360         only textbox.
361         * TextControl.cs: Lower magic number for wrap calculations. This
362         lets text get closer to the right (far) edge.
363
364 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
365
366         * Control.cs: Tweak 2.0 layout properties.
367         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
368         * TextRenderer.cs: Add a new overload.
369         * ToolStrip*: Huge amount of changes and new features.
370
371 2006-11-30  Mike Kestner  <mkestner@novell.com>
372
373         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
374         scroll range correct.  Fixes #79994.
375
376 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
377
378         * MdiWindowManager.cs: Update main form's text when
379         a form is closed. (fixes #80038)
380         
381 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
382
383         * ToolBar.cs:
384         - Fix an regression in ButtonSize.
385         - Get ImeMode default value change to "Disable".
386         - Get ShowTooltips default value change to true, default value is 
387         "false" but after make a test in .NET we get "true" result as default.
388         
389 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
390
391         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
392
393 2006-11-29  Chris Toshok  <toshok@ximian.com>
394
395         * XplatUIWin32.cs (GetWindowTransparency): check return value of
396         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
397         SetWindowTransparency hasn't been called.
398
399 2006-11-29  Chris Toshok  <toshok@ximian.com>
400
401         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
402         if it's supported.
403         (set_AllowTransparency): reorder things a little so that the
404         WS_EX_LAYERED style is removed properly.
405
406 2006-11-29  Chris Toshok  <toshok@ximian.com>
407
408         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
409         
410         * Form.cs: only call the XplatUI transparency method (get/set) if
411         SupportsTransparency says it's supported. Otherwise fallback to
412         doing nothing (in the set case) or returning the instance field we
413         cache (in the get case).
414
415         * XplatUIStructs.cs: add TransparencySupport flag enum.
416         
417         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
418         change to SupportsTransparency.
419
420         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
421         TransparencySupport.None from SupportsTransparency.
422
423         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
424         TransparencySupport.Set from SupportsTransparency.
425
426         * XplatUIWin32.cs: implement GetWindowTransparency calling
427         GetLayeredWindowAttributes, and implement SupportsTransparency by
428         checking whether or not both
429         GetWindowTransparency/SetWindowTransparency are available
430         entrypoints.  We need to do this since SetWindowTransparency is
431         available as of win2k, but GetWindowTransparency requires winxp.
432         yay win32 api.
433
434         * XplatUI.cs: Add GetWindowTransparency, and change
435         SupportsTransparency to allow for either/both Get/Set.
436
437 2006-11-29  Chris Toshok  <toshok@ximian.com>
438
439         * DataGrid.cs: keep from going into an infinite loop redrawing a
440         datagrid that has no datasource.  Fixes bug #80033.
441
442 2006-11-29  Chris Toshok  <toshok@ximian.com>
443
444         * MenuItem.cs: fix the NRE when we assign text (and therefore call
445         Invalidate) before the mainmenu has been assigned to a control.
446
447 2006-11-29  Chris Toshok  <toshok@ximian.com>
448
449         * DataGrid.cs: detect when we should be double the double click
450         row/column autosize stuff, although that codepath has yet to be
451         written.  part of the work for bug #79891.
452
453 2006-11-29  Chris Toshok  <toshok@ximian.com>
454
455         * Binding.cs (SetControl): fix unit test.
456
457 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
458
459         * PageSetupDialog.cs: Validate the margins and set them in
460         PageSettings. 
461         * NumericTextBox.cs: New class to mimic the behavior of the
462         textboxes used in the printing dialogs.
463
464 2006-11-29  Andreia Gaita  <avidigal@novell.com>
465         
466         * Form.cs: Revert previous change (remove call UpdateBounds
467         from form constructor), because it messes with the handle creation
468         order, and that one needs lots and lots of love.
469         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
470         for valid printer and throw InvalidPrinterException if document
471         is set but printer not valid), adding a MonoTODO. Once 
472         handle creation is done properly, we can put this back in.
473
474 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
475
476         * MenuItem.cs: Create a invalidate method for menu item, to be
477         calling from set text, it make text changes to imadiate update
478         on screen. Fixes #80013. 
479         
480 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
481
482         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
483         fixes bug #80070 and some other problem on toolbar buttons
484         layout.
485
486 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
487
488         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
489         with dotted brush.      Fixes #79564
490         
491 2006-11-28  Andreia Gaita  <avidigal@novell.com>
492
493         * Form.cs: Removed call to UpdateBounds on Form
494         constructor, it was causing a call to CreateHandle
495         before it was supposed to.
496         * PrintControllerWithStatusDialog: Applied patch
497         by Chris Toshok to hide controller when there are
498         no printers available.
499         PrintDialog.cs: initialize printer settings to 
500         null - correct DefaultValues test #5
501         * PrintPreviewControl.cs: Move PrintController
502         initialization to GeneratePreview
503         * PrintPreviewDialog.cs: 
504         - Remove Preview generation     from Document_set(). It is 
505         called on OnPaint
506         - Throw InvalidPrinterException on CreateHandle if
507         a Document is set but there are no printers or 
508         printer is not valid.
509         * ThemeWin32Classic: don't paint PrintPreviewControl
510         if there is nothing to paint    
511
512 2006-11-28  Miguel de Icaza  <miguel@novell.com>
513
514         * Form.cs: Add another popular method.
515
516         * TabPage.cs: ditto.
517
518 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
519
520         * MenuItem.cs: Fixed a warning.
521         * InternalWindowManager: Fixed a warning.
522
523 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
524
525         * MenuItem.cs:
526         - When cloning a menu also clone MdiList and clone the 
527           window menu items properly (as the forms and menuitems
528           are kept in an internal hashtable, these need updating 
529           as well)
530         - Rewrote the window menu code, menu items are added in the
531           order the forms were added to their parent, and they are
532           updated every time the window menu is shown (before the
533           list was only generated once, in the current order of the
534           forms, and would never be updated). A checkmark is shown
535           next to the item corresponding to the active mdi child.
536
537 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
538
539         * XplatUIStructs.cs: 
540         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
541         
542         * XplatUIWin32.cs: 
543         - Added TME_NONCLIENT to TMEFlags.
544         - Handles WM_NCMOUSEMOVE in GetMessage to 
545           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
546
547         * MdiWindowManager:
548         - Now merges mdi child menu to parent menu when maximized.
549         - Recalculate NC areas of both mdi child and mdi parent. 
550           Fixes #79757 (4).
551           on window state and size changes.Fixes #79844 (3).
552         - Handle WM_NCCALCSIZE to properly calculate borders.
553
554         * Form.cs:
555         - Add/remove to the mdi containers list of mdi children 
556           in the order they are added.
557         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
558           to the maximized mdi child.
559         
560         * InternalWindowManager.cs:
561         - Only execute a click on the control buttons on the mouse up,
562           not on the mouse down. Show the state of the button 
563           (was only showing Normal state, never Pressed state). The
564           pressed button now follows the mouse (if you click the Close 
565           button and move the mouse over the Maximize button, the 
566           Maximize button will be shown as pressed). Since Win32 does
567           not generate WM_NCLBUTTONUP if you release the button outside
568           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
569           it as a mouse up.
570         
571         * ThemeWin32Classic.cs:
572         - Draw a missing border around mdi child forms. Fixes #79844 (2).
573
574         * MdiClient.cs:
575         - Added a list of forms which contains the order the forms are
576           added to the mdi parent.
577         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
578         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
579         - If the active form changes set the scrollbars to the top
580           of the Z order, otherwise the form could hide them.
581         - Scrollbars are now sized according to ClientSize, not 
582           to Size, and they take into account the other scrollbar
583           to determine maximum.
584         
585 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
586         
587         * XplatUI.cs:
588         * XplatUIDriver.cs:
589         * XplatUIX11.cs:
590         * XplatUIWin32.cs:
591         * XplatUIOSX.cs:
592         - Added RequestAdditionalWM_NCMessages for windows to 
593           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
594           Currently only implemented in XplatUIWin32.
595
596 2006-11-27  Chris Toshok  <toshok@ximian.com>
597
598         * Hwnd.cs: only add the hwnd to the windows hash in
599         set_WholeWindow and set_ClientWindow if whole_window/client_window
600         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
601
602 2006-11-27  Mike Kestner  <mkestner@novell.com>
603
604         * ComboBox.cs: remove redundant OnDropDown call.  It is called
605         from the ComboListBox.ShowWindow code. Fixes #79969.
606
607 2006-11-27  Chris Toshok  <toshok@ximian.com>
608
609         * Hwnd.cs: remove the setters for ExposePending and
610         NCExposePending - noone uses them.
611
612 2006-11-27  Jackson Harper  <jackson@ximian.com>
613
614         * TextControl.cs: new param for ReplaceSelection which determines
615         whether we select the new selection, or set the cursor to the end
616         of the new selection.
617         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
618         pasting, select the new text.
619         * RichTextBox.cs: Use new param for ReplaceSelection.
620
621 2006-11-27  Jackson Harper  <jackson@ximian.com>
622
623         * TextBoxBase.cs: Set the selection to the caret after the caret
624         is moved, otherwise they get out of sync.
625
626 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
627
628         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
629         it fixes #80015
630
631 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
632
633         * ThemeWin32Classic.cs: 
634         - Fix toolbar drop down arrow position.
635         - Fix drop down appearance when ToolBar.Appearance is normal,
636         it fixes #80018.
637         
638 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
639
640         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
641         * Control.cs: Same.
642         * UpDownBase.cs: Same.
643         * ButtonBase.cs: Same.
644         * ScrollBar.cs: Same.
645         * TrackBar.cs: Same.
646         * PictureBox.cs: Same.
647         * UserControl.cs: Same.
648         * Label.cs: Same.
649         * ListControl.cs: Same.
650         * TextBoxBase.cs: Same.
651         * ListView.cs: Same.
652         * RichTextBox.cs: Same.
653         * TreeView.cs: Same.
654
655 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
656
657         * PrintDialog.cs:
658         - Text label for where 
659         - Text label comment was not shown
660
661 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
662
663         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
664
665 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
666
667         * InternalWindowManager.cs: 
668         - Handle WM_PARENTNOTIFY to activate the form
669         if any child control is clicked.
670         - The form is only sizable if not minimized.
671
672         * MdiWindowManager.cs:
673         - Save the IconicBounds if the form is moved.
674         - Rework SetWindowState, now the window bounds 
675         are stored only if the old window state is Normal.
676         
677         * MdiClient.cs:
678         - In SetWindowStates store the old window state if 
679         the window is maximized and restore window state if
680         the window looses focus.
681         - Don't handle any scrollbar value changes if 
682         initializing the scroll bars. Fixes #79771.
683         - Reworked ArrangeIconicWindows. Current algorithm
684         tests bounds agains all other minimized windows, if
685         any intersections create new bounds (going left to 
686         right, bottom to top) and then test again. When 
687         successful the bounds are saved and never computed
688         again. Fixes #79774.
689
690 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
691
692         * InternalWindowManager.cs: Added HandleTitleBarUp.
693
694 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
695
696         * NumericUpDown.cs: In .NET 1.1, user entered text is still
697         hexadecimal in ParseUserEdit.
698
699         
700 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
701
702         * MdiWindowManager.cs: 
703         - Handle a click on the form's icon to show the 
704         system menu (when maximized). Fixes #79775.
705         - Change the existing click handler for the form's
706         icon when not maximized to show on MouseUp.
707         Fixes #79776.
708
709         * Form.cs: In OnResize only layout the mdi child's
710         parent if it actually has a parent. Might not if
711         the window is closing.
712
713
714 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
715
716         * MdiClient.cs: Ignore active MDI client for text of parent, if
717         child has no text set.
718
719 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
720
721         * ToolBar.cs: Fixed ToString to match MS.
722
723 2006-11-22  Andreia Gaita  <avidigal@novell.com>
724
725         * NumericUpDown: 
726         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
727         update inner values on set. Fixes #79966.
728         - Override OnLostFocus to update value on NET 2. Fixes #79950.
729         - Fix hexadecimal parsing.
730         
731         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
732         parent. Fixes #79957
733
734 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
735
736         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
737         the actual size has to be queried, since if height /
738         width is negative Win32 changes it to 0. 
739         Fixes #79999 on Windows.
740         
741         * XplatUIX11.cs: Set height / width to 0 if negative
742         in SetWindowPos. Fixes #79999 on Linux.
743         
744 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
745
746         * ThemeWin32Classic.cs: Fix text redenring when button is
747         pressed.
748
749 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
750
751         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
752         and later navigate by mouse. Fixes #79528.
753
754 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
755
756         * ToolBar.cs: Set default value for TabStop to false in
757         constructor, it fixes remaining behavior of bug #79863.
758
759 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
760
761         * MdiWindowManager.cs:
762         * InternalWindowManager.cs:
763         - Moved a few methods specific to Mdi from 
764         InternalWindowManager to MdiWindowManager.
765         Fixes #79996.
766         
767 2006-11-21  Chris Toshok  <toshok@ximian.com>
768
769         * XplatUIOSX.cs: stub out InvalidateNC.
770
771         * XplatUIWin32.cs: implement InvalidateNC using the call I found
772         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
773
774         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
775
776         * XplatUIDriver.cs: add InvalidateNC abstract method.
777
778         * XplatUI.cs: add InvalidateNC.
779
780 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
781
782         * ToolBar.cs: Invalidate complete button area when pressed status 
783         was changed.
784         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
785         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
786         by 1 when button is pressed.
787
788 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
789
790         * ToolButton.cs: Invalidate middle of DropDown button when
791         ToolBar theres DropDownArrows.
792         * ThemeWin32Classic.cs: Change position of DropDown arrow and
793         fix DropDown drawing operations.
794
795 2006-11-20  Chris Toshok  <toshok@ximian.com>
796
797         * NativeWindow.cs: fix the formatting of functions ('{' on the
798         following line), and enable the thread exception dialog.
799
800         * Application.cs: remove the duplicate exception catching from
801         here.
802
803 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
804
805         * Toolbar.cs: Triggers button click event when click on icon
806         of dropdown ToolBarButton. Fixes #79912.
807         
808 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
809
810         * Theme.cs:
811         * ThemeWin32Classic.cs:
812         - Added a property WindowBorderFont to enable themeing
813           of mdi child windows' Text.
814           
815 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
816
817         * InternalWindowManager.cs:
818         * Form.cs:
819         * MdiClient.cs:
820         * MdiWindowManager.cs: 
821         - If mdi child is maximized, set mdi parent's
822           text to "Parent - [Child]". Fixes #79770.
823         - If there is any maximized mdi child windows, only the active 
824           window (and any new windows) is maximized, the rest are normal.
825         - On a WindowState change only save mdi child's window bounds 
826           if the old window state was normal. Fixes #79774.
827         - The scroll bars are now calculated on hopefully all
828           necessary events. Fixed #79771 / #79844->6 / #79906.
829         - MdiClient.SizeScrollBars() now takes into account docked 
830           controls in the parent when calculating available space.
831         - InternalWindowManager now always repaints the entire title
832           area. Fixes #79844->1/4/5.
833         - Added RequestNCRecalc on mdi child windowstate changes.
834           Fixes #79772.
835
836 2006-11-20  Mike Kestner  <mkestner@novell.com>
837
838         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
839         in the MouseUp handler of the listbox and move the return handling
840         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
841
842 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
843
844         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
845
846 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
847
848         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
849           working in 1.2.x anymore. So, updated.
850
851 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
852
853         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
854         NumberGroupSeparator of current culture instead of assuming en-US.
855         Fixed bug #79967.
856
857 2006-11-17  Mike Kestner  <mkestner@novell.com>
858
859         * Control.cs: Add the concept of implicit bounds setting so that
860         dock/undock round trips preserve explicitly set size/locations.
861         Fixes #79313.
862
863 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
864
865         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
866           can't handle those filters. (Fixes bug #79961)
867
868 2006-11-17  Chris Toshok  <toshok@ximian.com>
869
870         [ fixes the exit/crashes associated with #79835.  it's clearly
871         suboptimal though, we need to figure out a better way to solve
872         this. ]
873         
874         * PrintPreviewControl.cs: deal with the new invalid printer
875         exceptions.
876
877         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
878         and return false (so CommonDialog.ShowDialog doesn't actually show
879         the form.)
880
881         * PrintDialog.cs: enable/disable the Ok button depending on
882         whether or not the printer is valid.
883
884         * CommonDialog.cs (ShowDialog): only actually show the form if
885         RunDialog returns true.
886
887 2006-11-17  Jackson Harper  <jackson@ximian.com>
888
889         * TextControl.cs: When soft splitting a line, mark it as a soft
890         split line. Also carry over the current line break to the next
891         line.
892
893 2006-11-17  Chris Toshok  <toshok@ximian.com>
894
895         * XplatUIX11.cs: when scrolling a window with an invalid area, we
896         only want to shift the part of the invalid area that overlaps the
897         area we're scrolling.  we also don't want to clear the invalid
898         area unless the invalid area was entirely contained within the
899         scrolling area.
900
901 2006-11-16  Chris Toshok  <toshok@ximian.com>
902
903         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
904         also make sure to free the memory returned by XGetWindowProperty
905         in GetText().
906
907         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
908
909 2006-11-16  Chris Toshok  <toshok@ximian.com>
910
911         * XplatUI.cs: add a new super secret way to get at the totally
912         unsupported X11 backend.
913
914 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
915
916         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
917
918 2006-11-16  Jackson Harper  <jackson@ximian.com>
919
920         * TreeView.cs: Allow more explicit setting of top node position
921         for scrollbars. Slower algo, but more accurate.
922         - CollapseAll should maintain the current top node.
923         * TextBoxBase.cs: When positioning the caret, use the line, pos
924         method, since the x, y method does not grab the correct tag, and
925         the caret height never gets set correctly. (Maybe I should just do
926         away with the caret having its own height, and always use the
927         carets current tag for height).
928
929 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
930
931         [Fixes 79778, 79923]
932
933         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
934         Parent to the FosterParent instead.
935
936 2006-11-16  Jackson Harper  <jackson@ximian.com>
937
938         * TreeView.cs: Need to recalc the topnode when we expand or
939         collapse. The scrolling methods can't handle this on their own,
940         since they use differences between the last scroll position, and
941         those difference get completely messed up since we are expanding
942         nodes.  This problem should probably be fixed in the scrolling
943         methods, so they can figure out exactly where they are, but this
944         will slow things down a little.
945         * ThemeWin32Classic.cs: Special case for groupboxes with empty
946         strings, makes nunit-gui look a lot nicer.
947
948 2006-11-16  Chris Toshok  <toshok@ximian.com>
949
950         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
951         the broken multithreaded event handling we have in here.  File
952         this entry under "Why we should move to the new X11 backend".
953
954         Any thread can make it into UpdateMessageQueue, which gets events
955         from the X socket - some of which could belong to hwnds being
956         managed by a different thread.  We can also have multiple threads
957         in UpdateMessageQueue at the same time, with each one reading from
958         the X socket.  This leads to many problems, with the following
959         solutions:
960
961         We can't use hwnd.Queue.Enqueue anywhere in here and must use
962         EnqueueLocked.
963
964         The MotionNotify compression we do can't work across threads
965         (without locking the entire queue, perhaps) since we call
966         hwnd.Queue.Peek, so we just punt and don't compress motion events
967         unless the owning thread is the one which got the X event.
968
969         ConfigureNotify is another fun one, since it modifies the hwnd's
970         bounds and then enqueues the event.  We add a lock to Hwnd which
971         is held when setting configure_pending to true (and enqueuing the
972         event).
973
974         There is a race wrt the wake socket.  we need to make sure that
975         only 1 thread is waiting on that socket, or else a thread could
976         sleep waiting for data that never comes.  It's difficult (but not
977         impossible) to make happen, because it seems to require something
978         like the following:
979
980             1. Thread 1 polls on wake_receive
981         
982             2. poll returns saying there's data to be read on
983                wake_receive.
984         
985             3. Thread 2 polls on wake_receive and immediately returns
986                saying there's data to be read.
987
988             4. Thread 2 reads the wakeup byte from wake_receive
989
990             5. Thread 1 attempts to read the wakeup byte from
991                wake_receive.
992
993             6. Thread 2 exits (due to a form closing, perhaps).
994
995             7. Thread 1 blocks forever.
996         
997         Fun, eh?
998
999         Fixing the Expose handling isn't done yet, and the races inherent
1000         in that piece of code are responsible for the drawing mistakes you
1001         see when generating expose events in a MT app (like NPlot).  This
1002         one is the likely to be the hardest to bandaid, and it doesn't
1003         appear to cause anything but drawing problems.  The other issues
1004         caused apps to exit or hang.
1005
1006         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
1007         called from a different thread than the one that should be calling
1008         these functions.
1009
1010         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
1011
1012 2006-11-15  Chris Toshok  <toshok@ximian.com>
1013
1014         * Application.cs: null out the context's MainForm when we exit
1015         RunLoop.  Fixes a newly checked in unit test as well as the last
1016         ODE from bug #79933.
1017
1018 2006-11-15  Chris Toshok  <toshok@ximian.com>
1019
1020         * Form.cs (set_Owner): allow a null value so we can clear the
1021         form's owner.
1022         (Dispose): set all our owned_form's Owner properties to null, and
1023         clear the owned_forms collection.
1024         (WM_CLOSE): clean up this a little bit.. still not right though.
1025
1026         * ApplicationContext.cs: OnMainFormClosed should only call
1027         ExitThreadCore if the main form isn't recreating.  Fixes unit
1028         test.
1029
1030 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1031
1032         [Fixes 78346]
1033
1034         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
1035
1036 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1037
1038         [Fixes 79433]
1039
1040         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
1041         keep popup window types from stealing focus from the main form
1042         on Windows.
1043
1044         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
1045
1046         * MenuAPI.cs: Set above flag to true.
1047
1048 2006-11-15  Chris Toshok  <toshok@ximian.com>
1049
1050         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
1051         the button being released is not in wParam.
1052
1053 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
1054
1055         * Form.cs: Add the released button to MouseEventArgs.Button
1056         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
1057         on Win32.
1058
1059 2006-11-15  Chris Toshok  <toshok@ximian.com>
1060
1061         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
1062         GetText().  untested because it's unused in our implementation.
1063         Control.Text always caches the text, even if
1064         ControlStyles.CacheText is not set.
1065
1066         fixes bug #79939.
1067
1068 2006-11-15  Chris Toshok  <toshok@ximian.com>
1069
1070         [ fixes #79933 ]
1071         
1072         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
1073         message.  no hiding, no disposing.
1074
1075         in the WM_CLOSE handler, hide the form if it's modal.
1076
1077 2006-11-15  Chris Toshok  <toshok@ximian.com>
1078
1079         * XplatUIX11.cs: use AddExpose instead of sending a message.
1080         fixes textbox border drawing.
1081
1082 2006-11-15  Chris Toshok  <toshok@ximian.com>
1083
1084         * PropertyGridView.cs: keep from crashing on mouse move/down when
1085         the property grid is empty.
1086
1087 2006-11-14  Jackson Harper  <jackson@ximian.com>
1088
1089         * TextControl.cs: Make PageUp and PageDown more like the MS
1090         versions.
1091         * TextBoxBase.cs: When we set the text property position the
1092         cursor at the beginning of the document.
1093
1094 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1095
1096         * Form.cs: if a mdi child's WindowState has changed
1097         before it's creation, it would display wrong control
1098         buttons.
1099         
1100 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
1101
1102         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
1103           (Fixes bug #79927)
1104
1105 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1106
1107         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
1108         the window gets to paint its borders even if the window is
1109         getting smaller.
1110         
1111         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
1112         otherwise the old control buttons would still be painted 
1113         if the window gets bigger.
1114         
1115         * PaintEventArgs.cs: add an internal method so that the clip 
1116         rectangle can be changed.
1117         
1118 2006-11-13  Chris Toshok  <toshok@ximian.com>
1119
1120         [ fixes bug #79745 ]
1121         
1122         * NotifyIcon.cs: lots of cleanup.
1123
1124         * X11Structs.cs: add an enum for XEMBED messages.
1125
1126         * XplatUIX11.cs: reindent one of the giant switch statements, it
1127         was taking up an additional tab stop, and this file is already way
1128         too wide for my laptop's screen.
1129
1130         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
1131         we get it, resize the hwnd to the WMNormalHints max_width/height.
1132
1133 2006-11-13  Jackson Harper  <jackson@ximian.com>
1134
1135         * TextBoxBase.cs: Compute the value changes for the mouse wheel
1136         teh simple way.
1137
1138 2006-11-13  Chris Toshok  <toshok@ximian.com>
1139
1140         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
1141         #79898.  force a reference to the Region to stick around so the
1142         unmanaged object isn't collected (rendering our handle in the MSG
1143         stale).
1144
1145 2006-11-13  Chris Toshok  <toshok@ximian.com>
1146
1147         * XplatUIX11.cs: fix #79917 for window managers which support
1148
1149         using XStoreName on the raw utf8, and we need to convert to
1150         COMPOUND_TEXT if it's non-latin1.
1151
1152 2006-11-13  Chris Toshok  <toshok@ximian.com>
1153
1154         * Form.cs (set_DialogResult): we need to set closing to false if
1155         we're setting our result to None.  fixes bug #79908.
1156
1157 2006-11-13  Jackson Harper  <jackson@ximian.com>
1158
1159         * TextControl.cs: When formatting text, compute the adjusted tag
1160         lengths correctly, using FindTag for the end tag instead of trying
1161         to figure it out outselves.
1162         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
1163         the item, ItemHeight doesn't work, because trees with large
1164         imagelists use those for their height
1165         * TreeView.cs: ActualItemHeight factors in the image height
1166         - compute left edge of checkboxes correctly
1167         - when expanding/collapsing move the bottom down one pixel, so we
1168         aren't moving part of the node
1169
1170 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1171
1172         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
1173         stack in PaintEventStart so that it won't get disposed by the gc
1174         before reaching PaintEventEnd.
1175
1176 2006-11-13  Jackson Harper  <jackson@ximian.com>
1177
1178         * TextBoxBase.cs: Don't select the word if we are on a line with
1179         no text.
1180         - We don't need to position the caret on mouse up, since the mouse
1181         move handler should be doing this
1182         - When double clicking a blank line, the caret is advanced to the
1183         next line.
1184
1185 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
1186
1187         * TreeNodeCollection.cs: Avoid duplicating indexer code.
1188
1189 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
1190
1191         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
1192         Fixes part of bug #79910.
1193
1194 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
1195
1196         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
1197           (bug #79903). Some minor string updates to match ms.
1198
1199 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1200
1201         * FileDialog.cs: Don't add an extension if the filename
1202           already ends with that extension.
1203
1204 2006-11-10  Jackson Harper  <jackson@ximian.com>
1205
1206         * TreeView.cs: Use the currently highlighted node for the
1207         BeforeSelect event.
1208         * TextBoxBase.cs: There is no need to expand selection on
1209         MouseMove.
1210         - CanUndo means 'is there any undo operations', not 'is undo
1211         allowed on this textcontrol. Fixed ClearUndo unit test.
1212
1213 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
1214
1215         * Button.cs: only perform click when button is Selectable (so as 
1216         not to activate default buttons when they're disabled)
1217         
1218         * Control.cs: Rewrite of the SelectNextControl and related 
1219         methods. HandleClick now selects next control if the current one
1220         is being disabled.
1221         
1222         * Form.cs: OnActivated selects next active control only if Load 
1223         has already occurred. If Load hasn't run, there's no point in 
1224         selecting here, Load might change the state of controls.
1225         
1226         * FocusTest.cs: Tests marked as working again for these fixes
1227
1228 2006-11-10  Chris Toshok  <toshok@ximian.com>
1229
1230         * XplatUIX11.cs: a couple of fixes.
1231
1232         - use XInternAtoms with almost all the atoms we need to register,
1233         instead of many, many calls to XInternAtom.  should help a bit on
1234         startup time, at the expense of making the code look a little
1235         worse.
1236
1237         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
1238         isn't reparented (which seems to be a clue that we're running fon
1239         compiz) and they have an Owner form.  This fixes the tool windows
1240         in paint.net when running under compiz.
1241
1242         - when setting the opacity of a window, support both the case
1243         where the window has been reparented and also when it hasn't been.
1244         Since compiz/beryl doesn't seem to reparent windows, and these are
1245         the only window managers which support translucency, I'm not sure
1246         why we need the hwnd.reparented case at all.. but leave it in.
1247         now we get translucent windows in paint.net under compiz/beryl.
1248
1249 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1250
1251         * FileDialog.cs: Always return the value for FilterIndex that
1252           was set. Internally convert it to values that make sense.
1253
1254 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1255         
1256         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
1257
1258 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
1259
1260         * Toolbar.cs: Change default value of DropDownArrows to true, the 
1261         signature still using false to make it compatible with MS but the 
1262         initial value is true. Fixes #79855.
1263
1264 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
1265
1266         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
1267           only available on Linux.
1268
1269 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
1270
1271         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
1272         reduce number of calls to redraw method during toolbar creation.
1273
1274 2006-11-09  Mike Kestner  <mkestner@novell.com>
1275
1276         * ListView.cs : raise SelectedIndexChanged when an item is selected
1277         programmatically via the Item.Selected property.  Gert's nice 
1278         ListViewSelectedIndexChanged test fixture now runs clean.
1279
1280 2006-11-09  Mike Kestner  <mkestner@novell.com>
1281
1282         * ListView.cs : raise SelectedIndexChanged when a selected item is
1283         removed from the item collection using Remove or RemoveAt.
1284
1285 2006-11-09  Mike Kestner  <mkestner@novell.com>
1286
1287         * ListView.cs : raise SelectedIndexChanged once per selected item
1288         for compat with MS.  Fixes #79849+.
1289
1290 2006-11-09  Chris Toshok  <toshok@ximian.com>
1291
1292         * TabControl.cs: initialize row_count to 0, and set it to 1 when
1293         we need to (if we have any tab pages).  Fixes unit test.
1294
1295 2006-11-09  Chris Toshok  <toshok@ximian.com>
1296
1297         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
1298         width is 0, not 3.  Fixes a unit test.
1299
1300 2006-11-09  Mike Kestner  <mkestner@novell.com>
1301
1302         * ListView.cs : use Implicit scrollbars so that focus isn't 
1303         stolen from the listview when they are clicked. Fixes #79850.
1304
1305 2006-11-09  Chris Toshok  <toshok@ximian.com>
1306
1307         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
1308         have a root item.  Fixes #79879.
1309
1310 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
1311
1312         * FileDialog.cs:
1313           - Fix ToString ()
1314           - An ArgumentException is now thrown if a wrong filter
1315             is applied (matches ms). The previous filter doesn't change
1316             anymore if an exception is thrown.
1317           - Changing the FileName property also affects FileNames
1318         * ColorDialog.cs: The length of the CustomColors array is always
1319           16. It doesn't matter if we use a smaller array or null to update
1320           or change the custom colors property.
1321         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
1322           for RootFolder if we get a undefined value.
1323
1324 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1325
1326         * StatusBarPanel.cs: 
1327         - Width is set to MinWidth if Width is smaller than
1328         MinWidth. Fixes #79842.
1329         - MinWidth now always overrides Width (MSDN says MinWidth
1330         is set to Width when AutoSize = None, but they do not 
1331         behave like that).
1332         - Style has now the the correct default value.
1333         
1334 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1335  
1336         * TrackBar.cs: 
1337         - The control is completely invalidated on 
1338         Got/LostFocus to draw the focus rectangle correctly.
1339         - When AutoSize then height is always 45 (width for 
1340         vertical controls).
1341         
1342         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
1343         on the mouse when moved and it doesn't move when grabbed
1344         until the mouse moves as well. Also fixed some wrong 
1345         calculations when clicking on the thumb (control thought
1346         click was outside of thumb and didn't grab it).
1347         Fixes some of the issues in #79718.
1348
1349 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
1350
1351         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
1352
1353 2006-11-08  Chris Toshok  <toshok@ximian.com>
1354
1355         * PropertyGridView.cs: only call ToggleValue if the item is not
1356         readonly.
1357
1358 2006-11-08  Jackson Harper  <jackson@ximian.com>
1359
1360         * TextBoxBase.cs: The RichTextBox and textbox have very different
1361         word selection methods.  Implement the textbox's simple word
1362         selection here, and let the RichTextBox override and provide it's
1363         own.
1364         - Don't do extra selection on mouseup
1365         * RichTextBox.cs: Use the documents word selection algorithm, I
1366         think ideally, this function will be pulled into the
1367         RichTextBox.cs code someday.
1368
1369 2006-11-08  Chris Toshok  <toshok@ximian.com>
1370
1371         * RootGridEntry.cs: new class to represent GridItemType.Root.
1372
1373         * CategoryGridEntry.cs: reformat, and add boilerplate.
1374         
1375         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
1376         returns the UI parent anyway, and we need special handling to
1377         implement the GetTarget method in the face of it.  Also, implement
1378         Select().
1379
1380         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
1381         a root grid item, and use that instead of PropertyGrid.grid_items.
1382         Also, make use of TypeConverters (and add limitted support for
1383         ICustomTypeDescriptors) when initially populating the grid.
1384         Arrays now show up more or less properly.
1385
1386 2006-11-08  Chris Toshok  <toshok@ximian.com>
1387
1388         * Application.cs: set the modal dialog to non modal after we close
1389         it.  Fixes bug #79866.
1390
1391 2006-11-08  Jackson Harper  <jackson@ximian.com>
1392
1393         * TextControl.cs: When combining lines carry over the line end
1394         style from the end line.
1395         - Invalidate the selected area when setting it, if it is visible.
1396         * TextBoxBase.cs: Only rich text box can do full line selects.
1397         - Make sure to set the cursor position when there is a click,
1398         otherwise two clicks in separate areas could cause a large chunk
1399         to be selected.
1400
1401 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1402
1403         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
1404         Fixes #79863.
1405
1406 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1407
1408         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
1409         time. Remove tooltips when ToolButton click events.  Fixes #79856.
1410
1411 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1412
1413         * MenuAPI.cs: Ignore right click for menu actions and fixes
1414         menu border when clicked.  Fixes #79846.
1415
1416 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1417
1418         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
1419         MouseState after create wParam for message, this fixes mouse button 
1420         equal none in mouse up events.
1421         
1422 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
1423
1424         * Control.cs : Focus() now calls Select to set the Container's
1425         Active Control and to give it focus. To avoid infinite recursion
1426         (because ActiveControl also calls Focus at one point), a check 
1427         is made in Focus with the help of a new internal variable
1428         is_focusing.
1429
1430 2006-11-07  Mike Kestner  <mkestner@novell.com>
1431
1432         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
1433         if there's a selection.  Fixes #79849.
1434
1435 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
1436
1437         * PropertyGrid.cs: Avoid fixed height of help description label.
1438         Fixes part of bug #79829.
1439
1440 2006-11-07  Chris Toshok  <toshok@ximian.com>
1441
1442         * XplatUIX11.cs: fix #79790 again, by using the
1443         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
1444
1445 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1446
1447         * ToolBar.cs: Fix left click checking.
1448
1449 2006-11-07  Chris Toshok  <toshok@ximian.com>
1450
1451         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
1452
1453 2006-11-07  Chris Toshok  <toshok@ximian.com>
1454
1455         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
1456         PropertyManager unit tests.
1457
1458         * PropertyManager.cs: make property_name internal.
1459
1460 2006-11-07  Chris Toshok  <toshok@ximian.com>
1461
1462         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
1463         pass a unit test.  Also, don't set image_index to anything in
1464         response to setting the ImageList property.
1465
1466 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1467
1468         * ToolBar.cs: Ignore click events when mouse button is not a
1469         left button, only accepts other button for dropdown menus.  
1470         Fixes #79854.
1471
1472 2006-11-07  Chris Toshok  <toshok@ximian.com>
1473
1474         * DataGrid.cs: make the back and parent row buttons a little less
1475         ugly.
1476
1477 2006-11-07  Jackson Harper  <jackson@ximian.com>
1478
1479         * TextBoxBase.cs: When converting to Text don't put line breaks in
1480         for soft line breaks.
1481         * TextControl.cs: There is an initial "fake" line in the document,
1482         this is now a soft break line, so that an extra line feed doesn't
1483         get added to the end of documents.
1484
1485 2006-11-07  Chris Toshok  <toshok@ximian.com>
1486
1487         [ fix bug #79778 ]
1488         
1489         * CurrencyManager.cs: if the list is readonly, don't bother
1490         checking if IBindingList.AllowNew is true.
1491
1492         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
1493         for non-DataRowView datasources..  or rather, make it not crash.
1494         (DataGridPaintRelationRow): make sure we limit the row painting to
1495         the area not covered by the row header, and make our cell width at
1496         least large enough to cover the relation area.  This allows grids
1497         that have relations but no rows to render correctly.
1498         (DataGridPaintRowContents): same type of changes here.
1499         (SetDataSource): move back to always calling
1500         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
1501         navigating back through relations.
1502         (HitTest): handle the case where we have no cells but have
1503         relations.  Right now we generate a hit in cell 0 of whatever the
1504         row is, not sure if this is strictly correct, but it works for our
1505         purposes.
1506         
1507         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
1508         bother doing anything.
1509
1510 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
1511
1512         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
1513         early version of StatusStrip.  Not responsible for eaten
1514         application or firstborn children.
1515
1516 2006-11-06  Chris Toshok  <toshok@ximian.com>
1517
1518         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
1519         call GetTabRect with a -1 index.  Fixes #79847.
1520
1521 2006-11-06  Jackson Harper  <jackson@ximian.com>
1522
1523         * TreeNodeCollection.cs: Update scrollbars after clearing.
1524
1525 2006-11-06  Chris Toshok  <toshok@ximian.com>
1526
1527         * NumericUpDown.cs: fix the ToString method for some unit test
1528         love.
1529
1530 2006-11-06  Chris Toshok  <toshok@ximian.com>
1531
1532         * PropertyGrid.cs:
1533         - set the initial SelectedGridItem if we can.
1534
1535         - Exclude non-mergable properties only if we're merging > 1
1536         object.  Merging 1 object isn't really merging, obviously.
1537
1538         - Handle PropertySort.NoSort just like Alphabetical, which is
1539         wrong of course, but at least gets things on the screen.
1540         
1541         * PropertyGridView.cs:
1542         - Add method "FindFirstItem" which finds the first property grid
1543         item, so we can select it by default.
1544
1545         - make use of GridEntry.CanResetValue.
1546
1547         - Don't call RedrawBelowItemOnExpansion here anymore, the
1548         individual GridEntry's will do that.
1549
1550         - Remove the ITypeDescriptorContextImpl internal class.
1551         
1552         * GridEntry.cs:
1553         - this class needs to implement ITypeDescriptorContext, as it's
1554         what MS's PropertyDescriptorGridEntry does, which means we can
1555         remove the ITypeDescriptorContextImpl internal class from
1556         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
1557
1558         - keep a reference to our PropertyGridView, and move the call to
1559         RedrawBelowItemOnExpansion here from PGV.  This means
1560         programmaticly setting Expanded actually does something visible.
1561
1562         - add a CanResetValue() function which takes into account our
1563         possibly multiple "selected_objects" in the merged case.  Shifting
1564         PropertyGridView to use this method fixes another unreported
1565         crasher found running the test for #79829.
1566
1567         - when Top or Bounds is updated, make sure the PropertyGridTextBox
1568         is updated to reflect this.
1569
1570         * CategoryGridEntry.cs: the ctor takes the PGV now.
1571         
1572 2006-11-06  Jackson Harper  <jackson@ximian.com>
1573
1574         * TextControl.cs: These are 1 based.
1575         * TextBoxBase.cs: When setting the selected text, don't change the
1576         selected text tags, this is done by ReplaceText, just position the
1577         cursor at the end of the new text.
1578
1579 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1580
1581         * ListView.cs: Allow label edit only when, when LabelEdit is
1582           set to true.
1583
1584 2006-11-06  Jackson Harper  <jackson@ximian.com>
1585
1586         * TextControl.cs: If a suitable wrapping position isn't found,
1587         just wrap right in the middle of a word.
1588
1589 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1590
1591         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
1592           bug #79820.
1593
1594 2006-11-06  Jackson Harper  <jackson@ximian.com>
1595
1596         * TreeView.cs: Can't use the VisibleCount property when setting
1597         scrollbar heights, because this doesn't take into account whether
1598         or not the horz scrollbar just came visible.
1599
1600 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
1601
1602         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
1603         activated.  Fixes #79369, #79832.
1604
1605 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
1606
1607         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
1608           had to remove support for links that point to a directory. FileInfo
1609           returns no usefull information (means, the directory they point to)
1610           for such links. Replaced some empty string ("") with String.Empty.
1611
1612 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1613
1614         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
1615         NullReferenceException when attempting to remove node that is not in
1616         collection. Throw NullReferenceException when null is passed to 
1617         Remove. Allow first element of the collection to be removed. Fixes
1618         bug #79831.  In GetEnumerator ().Current return null if positioned 
1619         before the first element of the collection. In GetEnumerator ().Reset,
1620         position before first element of the collection.
1621
1622 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1623
1624         * PropertyGrid.cs: To match MS, remove default title and description
1625         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
1626         buttons.
1627
1628 2006-11-04  Chris Toshok  <toshok@ximian.com>
1629
1630         * Theme.cs: add a Clamp method, just for kicks.
1631
1632         * ThemeWin32Classic.cs: clamp all color components to [0..255].
1633
1634 2006-11-04  Chris Toshok  <toshok@ximian.com>
1635
1636         * Form.cs: if the form isn't visible, Close() does nothing.
1637
1638 2006-11-03  Chris Toshok  <toshok@ximian.com>
1639
1640         * Form.cs (Close): if the form is modal, don't Dispose of it, only
1641         Hide it.
1642         (WndProc): don't Dispose after handling the WM_CLOSE message.
1643
1644         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
1645         them as such, instead of using casts from Control to Form.  Also,
1646         don't Dispose of the modal dialog when we fall out of the loop -
1647         Close() it instead.
1648
1649         fixes bug #79813.
1650
1651 2006-11-03  Chris Toshok  <toshok@ximian.com>
1652
1653         * Control.cs (Dispose): only go through the dispose thing if we're
1654         @disposing, and we haven't already been disposed.  Fixes bug
1655         #79814.
1656
1657         * Form.cs: no reason to call "base.Dispose()" here instead of
1658         "Dispose()".
1659
1660 2006-11-03  Mike Kestner  <mkestner@novell.com>
1661
1662         * ComboBox.cs : use ToString instead of casts in AddItem for
1663         sorting functionality.  Fixes #79812.
1664
1665 2006-11-03  Chris Toshok  <toshok@ximian.com>
1666
1667         * Application.cs: pave the way for actually using the thread
1668         exception dialog.  it's ifdefed out at the moment.
1669
1670 2006-11-03  Chris Toshok  <toshok@ximian.com>
1671
1672         * ThreadExceptionDialog.cs: until we get a better layout, actually
1673         hide the details textbox and label when we shouldn't see them.
1674
1675 2006-11-03  Jackson Harper  <jackson@ximian.com>
1676
1677         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
1678         multiline textboxes anymore.  This method also determines the
1679         width/height of a textboxes canvas area.
1680         - Sorta a revert of the last patch.  For multiline just position
1681         the controls, then bail.  This way the scrollbar width won't be
1682         altered.
1683
1684 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
1685
1686         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
1687         it dont need.  Fixes #79537.
1688
1689 2006-11-02  Jackson Harper  <jackson@ximian.com>
1690
1691         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
1692         send the status after firing the DndOver event.
1693
1694 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1695
1696         * TrackBar.cs: Now orientation only switches height / width if
1697         the control's handle is created (Win32 does it like this). Also 
1698         fixed a typo in ToString() for a test to pass, changed the 
1699         exception thrown in set_LargeChange and set_SmallChange to 
1700         match Win32 behaviour, and added TrackBar tests to the unit 
1701         tests.
1702
1703 2006-11-02  Chris Toshok  <toshok@ximian.com>
1704
1705         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
1706         not _NET_WM_STATE_NO_TASKBAR.
1707
1708 2006-11-02  Jackson Harper  <jackson@ximian.com>
1709
1710         * TextControl.cs: Increment count by one, since in the update view
1711         count - 1 is used.
1712
1713 2006-11-02  Jackson Harper  <jackson@ximian.com>
1714
1715         * TextBoxBase.cs: Use client rectangle not bounds for checking if
1716         the mouse is in the client rectangle (duh).
1717
1718 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1719         
1720         * TrackBar.cs: Fixed trackbar jumping around when clicking
1721         on it - the trackbar was not detecting correctly at which
1722         side of the thumb the click was done. (fixes #79718)
1723
1724 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
1725
1726         * ListBox.cs: scroll visible area when change SelectedIndex to
1727         a non visible area.  Fixes #79481.
1728
1729 2006-11-01  Jackson Harper  <jackson@ximian.com>
1730
1731         * TextControl.cs: When replacing the selection move the selection
1732         start/end/anchor to the end of the new text.
1733
1734 2006-11-01  Jackson Harper  <jackson@ximian.com>
1735
1736         * XplatUIWin32.cs: When setting the parent change the controls
1737         visibility to it's visibility flag, not to it's old parents
1738         visibility (.Visible walks the parent chain).
1739
1740 2006-11-01  Chris Toshok  <toshok@ximian.com>
1741
1742         * XplatUIX11.cs: revert the #79790 fix, as the simple.
1743         XSetTransientForHint fix breaks paint .net's tool windows.  more
1744         work needed for that one.
1745
1746 2006-11-01  Chris Toshok  <toshok@ximian.com>
1747
1748         * ScrollBar.cs: throw ArgumentException instead of Exception in
1749         LargeChange/SmallChange setters.  fixes unit tests.
1750
1751 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
1752
1753         * ContainerControl.cs: reverted rev.67183 (which was itself
1754         a reversion of rev.66853... eh).
1755         
1756         * Control.cs: Fixes Reflector hang by changing Focus() call
1757         to what it was before rev.66643 (calling Select() here sets 
1758         ActiveControl, which in some situations calls back Focus and 
1759         eventually does a stack overflow). Temp fix.    
1760         Changes to GetNextControl() to not look for children to select when
1761         parent cannot be selectable (so it looks for siblings instead)  
1762         
1763 2006-10-31  Mike Kestner  <mkestner@novell.com>
1764
1765         * CheckedListBox.cs : off by one error in returned index from
1766         ObjectCollection.Add.  Fixes #79758.
1767
1768 2006-10-31  Chris Toshok  <toshok@ximian.com>
1769
1770         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
1771         calls for the textbox/spinner, to keep from recursing to the point
1772         where we crash.  Fixes #79760.
1773
1774 2006-10-31  Chris Toshok  <toshok@ximian.com>
1775
1776         * ListControl.cs (set_SelectedValue): don't throw exceptions on
1777         null/"" value, just return.  matches ms's behavior and fixes some
1778         failing tests.
1779
1780 2006-10-31  Chris Toshok  <toshok@ximian.com>
1781
1782         * Control.cs (set_Capture): make a logic a little easier to
1783         follow.
1784
1785         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
1786         if it's being destroyed.  A necessary fix surely, but a bandaid
1787         also, to fix the stuck capture problem in bug #78413.
1788
1789 2006-10-31  Chris Toshok  <toshok@ximian.com>
1790
1791         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
1792         convention of clearing hwnd.ClientRect when we set the
1793         width/height (so it'll be recalculated by Hwnd).
1794
1795 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
1796
1797         * ContainerControl.cs: reversed Contains check from
1798         ActiveControl due to hanging problems. This fix
1799         partly regresses #79667 (button does not have
1800         initial focus), so this might be a symptom for 
1801         a larger parenting problem (set_ActiveControl
1802         is being called but the child control does
1803         not have the parent set yet?)   
1804         
1805 2006-10-31  Mike Kestner  <mkestner@novell.com>
1806
1807         * MenuAPI.cs : fix keynav when menu is click activated.
1808
1809 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
1810
1811         * ToolStrip*: Version 0.2.
1812
1813         * MenuStrip.cs: Version 0.1.
1814
1815         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
1816
1817 2006-10-30  Chris Toshok  <toshok@ximian.com>
1818
1819         [ fixes the oversized notify icon issue in bug #79745 ]
1820         
1821         * NotifyIcon.cs: scale the icon down to the size we're given by
1822         the XplatUI layer (this would be faster if we did it once instead
1823         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
1824         since it's never invoked.
1825
1826         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
1827         pixels high by default, so let's hardcode our systray icon to that
1828         size.  The SYSTEM_TRAY protocol should really have a way for
1829         client apps to query for the correct icon size.. but oh well.  A
1830         couple of patches to deal with the screwy client_window ==
1831         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
1832         instance, and also make sure we don't XSelectInput twice).
1833
1834 2006-10-30  Chris Toshok  <toshok@ximian.com>
1835
1836         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
1837         recreating forms.  Control recreation is the bane of my existence.
1838         Fix it in a way that keeps everyone happy.
1839
1840 2006-10-30  Chris Toshok  <toshok@ximian.com>
1841
1842         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
1843         just non-CHILD ones.  otherwise sometimes scrollbars end up with
1844         client_windows not being resized to the proper size (ReportBuilder
1845         shows this extremely well).
1846
1847 2006-10-30  Chris Toshok  <toshok@ximian.com>
1848
1849         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
1850         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
1851         showing up in the gnome taskbar.  Fixes bug #79790.
1852
1853 2006-10-30  Chris Toshok  <toshok@ximian.com>
1854
1855         * ApplicationContext.cs: guard against a NRE.
1856
1857         * Application.cs: null out the old MainForm for the context, so we
1858         don't try to use it again once it's disposed.  Fixes bug #79783.
1859
1860 2006-10-30  Chris Toshok  <toshok@ximian.com>
1861
1862         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
1863         BindingContext, set the data source directly, otherwise do the
1864         lazy approach - the actual ListManager will be created when we get
1865         a BindingContext. Fixes bug #79700.
1866
1867 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
1868
1869         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
1870           XplatUIX11.cs: Remove old 2 parameter SetVisible.
1871
1872         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
1873
1874 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
1875
1876         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
1877         of SetVisible that allows a window to be shown, but not activated.
1878         This is needed on Windows for MenuStrip, and can probably be used
1879         with MainMenu and ComboBox to fix the focus stealing issues on
1880         Windows.
1881
1882         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
1883
1884 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
1885
1886         * PictureBox.cs: Fix the output of the ToString method.
1887
1888 2006-10-29  Chris Toshok  <toshok@ximian.com>
1889
1890         * Control.cs (get_TopLevelControl): fix bug #79781.
1891
1892 2006-10-29  Chris Toshok  <toshok@ximian.com>
1893
1894         * ListControl.cs (set_DataSource): throw Exception here, not
1895         ArgumentException, to match MS behavior.
1896
1897 2006-10-29  Chris Toshok  <toshok@ximian.com>
1898
1899         * Form.cs: remove the try-catch's around calls to GetWindowState.
1900         We can just check the return value.
1901
1902         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
1903         Instead return -1.
1904
1905         * XplatUI.cs: Add note about additional return value for
1906         GetWindowState.
1907
1908 2006-10-29  Chris Toshok  <toshok@ximian.com>
1909
1910         * Control.cs (CreateHandle): when we create our handle, we also
1911         create the handles of our child controls.  Fixes one of the
1912         Control unit tests (CH11).
1913
1914 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
1915
1916         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
1917
1918 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
1919
1920         * ThemeClearlooks.cs: A little speedup.
1921
1922 2006-10-27  Chris Toshok  <toshok@ximian.com>
1923
1924         * Control.cs: implement Control.FromChildHandle in a way that
1925         matches the docs (and fixes the failed test.)
1926
1927 2006-10-27  Chris Toshok  <toshok@ximian.com>
1928
1929         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
1930         comments).
1931
1932         * DataGrid.cs: implement ResetForeColor such that the tests
1933         succeed.
1934         
1935 2006-10-27  Chris Toshok  <toshok@ximian.com>
1936
1937         * ToolBarButton.cs: setting text/tooltiptext to null results in it
1938         being set to "".  Fixes bug #79759.
1939
1940 2006-10-27  Jackson Harper  <jackson@ximian.com>
1941
1942         * TextControl.cs: We need to clear the entire selection area when
1943         setting the start, otherwise multiline selections are still
1944         visible.
1945
1946 2006-10-26  Chris Toshok  <toshok@ximian.com>
1947
1948         * PropertyGridView.cs: 
1949
1950         - ifdef all the code specific to the double
1951         buffer case, and provide some alternatives in the non-doublebuffer
1952         code, which makes heavy use of XplatUI.ScrollWindow to move things
1953         around without having to invalidate (and cause flicker).  There
1954         are still some drawing problems in the non-doublebuffered case, so
1955         DOUBLEBUFFER is defined by default.
1956
1957         - Fix the way dropdowns are handled.  now we explicitly watch for
1958         the events which might cause the dropdown to close, and break out
1959         of the nested event loop there.  This gets rid of all Capture
1960         code, at the expense of the Msg special casing.  Seems to work,
1961         though, and fixes bug #79743.
1962
1963 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
1964         * Control.cs: SetIsRecreating now recreates implicitly added
1965         child controls as well. Finally fixes #79629. The flag passed to 
1966         SetIsRecreating has also been removed since it wasn't used.
1967         
1968 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1969
1970         * PageSetupDialog.cs: Clean some code, fix some bits, 
1971         add some checks, and add a printer sub-dialog.
1972
1973 2006-10-26  Chris Toshok  <toshok@ximian.com>
1974
1975         * PropertyGrid.cs: make set_SelectedObject call
1976         set_SelectedObjects, and move the duplicate logic to the
1977         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
1978
1979         * PropertyGridView.cs: hide the textbox when we get a
1980         SelectedObjectsChanged event.
1981
1982         Fixes bug #79748.
1983
1984 2006-10-26  Chris Toshok  <toshok@ximian.com>
1985
1986         * PropertyGridView.cs: deal with the type converter not supporting
1987         GetStandardValues() or GetStandardValues() returning null, which
1988         is does in the default case.  Fixes #79742.
1989
1990 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
1991
1992         * CheckedListBox.cs: nunit no longer crashes when selecting 
1993         Project/Edit menu option
1994         
1995 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
1996
1997         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
1998         is no menu selected. fixes #79739
1999
2000 2006-10-25  Chris Toshok  <toshok@ximian.com>
2001
2002         * PropertyGridView.cs: factor out the splitter invalidation code
2003         into the SplitterPercent setter, and for kicks implement the
2004         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
2005         amount in either direction.
2006
2007 2006-10-25  Chris Toshok  <toshok@ximian.com>
2008
2009         * PropertyGridView.cs: do some cleanup of the brush used to draw
2010         text - read only fields should be grayed out.  not sure how to do
2011         this with the textbox, though.  but the textbox's should also be
2012         readonly now at least.  Also, hide/show the textbox when resizing
2013         the control.
2014         
2015         * CursorConverter.cs: use System.Reflection when getting the
2016         properties of Cursors, as TypeDescriptor.GetProperties isn't
2017         returning static properties.
2018
2019 2006-10-25  Chris Toshok  <toshok@ximian.com>
2020
2021         * PropertyGridView.cs: factor out the up/down handling, and reuse
2022         it for page up/down.  also add End/Home support.
2023
2024 2006-10-25  Chris Toshok  <toshok@ximian.com>
2025
2026         * PropertyGridView.cs:
2027
2028         - ensure the selected grid item is visible in the scrolled area,
2029         fixes bug #79572.
2030
2031         - fix Keys.Down handling when you're on the last item in the
2032         propertygrid.
2033
2034 2006-10-25  Mike Kestner  <mkestner@novell.com>
2035
2036         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
2037         clicks too.  Fixes #79725.
2038
2039 2006-10-24  Chris Toshok  <toshok@ximian.com>
2040
2041         * PropertyGrid.cs: use property.Converter instead of
2042         TypeDescriptor.GetConverter(property.PropertyType), so we catch
2043         TypeConverters declared on the property as well as on the
2044         PropertyType.  Fixes bug #79678.
2045
2046 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
2047
2048         * MimeIcon.cs, Mime.cs:
2049           Fallback to the default platform handler if no shared mime info
2050           stuff exists (fixes #79693).
2051
2052 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2053         * ContainerControl.cs: Incorrect contains check in ActiveControl 
2054         from previous fix (duh).
2055
2056 2006-10-20  Chris Toshok  <toshok@ximian.com>
2057
2058         * PropertyGridView.cs: the dropdown should be MIN(number of items
2059         in list, 15).  Fixes #79551.
2060
2061 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
2062         Fixes #79384, #79394, #79652, #79667
2063         * Application.cs: 
2064         
2065         - Modal windows are now destroyed in the proper order for windows
2066         
2067         * ContainerControl.cs:
2068         
2069         - ActiveControl setter has more conditions on when to return:
2070                 - if we're reselecting the active control, but it actually
2071                 didn't have focus (window hidden or some such), it runs
2072                 - if the active control being selected doesn't actually 
2073                 exist in the container, it returns
2074         
2075         * Form.cs
2076         
2077         - The ShowDialog now gets the current form as the owner when
2078         invoking without parameters, and correctly activates the owner 
2079         when returning
2080         
2081         * MessageBox.cs
2082         
2083         - MessageBox now catches the Escape key to exit
2084
2085 2006-10-20  Chris Toshok  <toshok@ximian.com>
2086
2087         * PropertyGridView.cs: fix a number of issues (bug #78565, and
2088         most of bug #79676):
2089
2090         - you can navigate around the property grid with the arrow keys.
2091
2092         - the dropdown is sized properly when the pg has a vertical
2093         scrollbar.
2094
2095         - fix the indentation for subentries, and properly select the
2096         entire label rect.
2097
2098         - fix the gray bar's drawing (only draw it to the last element,
2099         not for the height of the control.  Also make sure we draw that
2100         last horizontal grid line.
2101
2102         - use the same mechanism the datagrid uses wrt the editing textbox
2103         when scrolling/resizing/etc.  Namely, we hide it first, do the
2104         operation, then show it again (if it's still visible).
2105         
2106         - aggressively remove a lot of unnecessary refreshes (and also
2107         calls to Invalidate(). call more limited variants, and only redraw
2108         what we need.)
2109         
2110         * PropertyGrid.cs:
2111
2112         - when we're populating the merged collection, fill in the UI
2113         parent with either the passed in item, or the category item we
2114         create.
2115
2116         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
2117
2118         * GridItem.cs: drop some fully qualified names.
2119         
2120         * GridEntry.cs: add a "UIParent", which is basically the parent
2121         treenode.
2122
2123         * GridItemCollection.cs: add an IndexOf method.
2124
2125 2006-10-20  Mike Kestner  <mkestner@novell.com>
2126
2127         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
2128         a working win32 NC invalidation mechanism, we can't invalidate
2129         menus.  [Fixes #79705]
2130
2131 2006-10-20  Mike Kestner  <mkestner@novell.com>
2132
2133         * ListBox.cs : don't update the VScrollbar if the list is empty,
2134         just hide it.  [Fixes #79692]
2135
2136 2006-10-20  Jackson Harper  <jackson@ximian.com>
2137
2138         * RichTextBox.cs: Handle some special chars better, and don't skip
2139         the entire group when we encounter a special char that we don't
2140         handle correctly.
2141
2142 2006-10-18  Chris Toshok  <toshok@ximian.com>
2143
2144         * PropertyGridView.cs: address a number of issues from bug #79676,
2145         mostly of the cosmetic variety.
2146
2147         - The highlight rectangle for indented items not extends all the
2148         way to the left.
2149
2150         - Indented items aren't indented so much.
2151
2152         - the dropdown is properly sized width-wise if the pg has a
2153         vertical scrollbar.
2154
2155 2006-10-18  Chris Toshok  <toshok@ximian.com>
2156
2157         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
2158         systray stuff is rather convoluted to begin with.
2159
2160         systray icons are a single window for some reason (that I haven't
2161         figured out yet), and for them, client_window == whole_window.
2162         Given the way the tests are structured elsewhere to determine
2163         which paints are pending (client vs. nc), that situation will
2164         always yield PAINT, not NCPAINT.  So, if we have a pending
2165         nc_expose and no pending expose, remove the hwnd from the paint
2166         queue, and also set nc_expose_pending to false, to keep us from
2167         blocking further expose's adding the hwnd to the paint queue.
2168
2169         phew.  like i said, a rather convoluted change.  Fixes the
2170         notifyicon repaint issues in bug #79645.
2171
2172 2006-10-18  Chris Toshok  <toshok@ximian.com>
2173
2174         * Form.cs: when getting the backcolor of the form, don't get
2175         base.BackColor, as this allows parents to influence the background
2176         color.  This breaks mdi forms.  Instead, if the background_color
2177         is empty, return the default.
2178
2179 2006-10-18  Chris Toshok  <toshok@ximian.com>
2180
2181         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
2182         to being private instead of internal static.
2183
2184         * Control.cs: remove all the stupid ParentWaitingOnRecreation
2185         crap, it wasn't working for more deeply nested controls anyway,
2186         and we already have the is_recreating flag - use that instead.
2187         Before calling DestroyHandle in RecreateHandle, recurse through
2188         the control tree setting it to true.  this returns the recreate
2189         code to much of its original simplicity, while now guaranteeing we
2190         actually recreate everything we're supposed to.  This change gets
2191         fyireporting actually showing mdi children.
2192
2193 2006-10-17  Chris Toshok  <toshok@ximian.com>
2194
2195         * Form.cs: remove some debug spew, and collapse some duplicate
2196         code at the end of SetClientSizeCore.
2197
2198         * XplatUIX11.cs: 
2199         - add some more debug spew here too wrt Destroy handling.
2200         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
2201         in Control's handling of WM_DESTROY.
2202         - Remove the handling of zombie window DestroyNotifies from the
2203         event loop - we don't need it.  Now the only DestroyNotifies we
2204         actually handle are ones generated by X.
2205         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
2206         match gtk's (functioning) handling of this. This keep metacity
2207         from leaving droppings in the form of wm borders with no window
2208         contents all over the place.
2209
2210         * Control.cs:
2211         - add a bunch of debug spew wrt control recreation.
2212         - fix a bug where we weren't tracking Visible properly on
2213         recreated hwnds.
2214         - fixed the WM_PAINT double buffer handling to support re-entrant
2215         calls (yes, i know it's gross, but it's happening to us).
2216
2217 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2218         * ThemeWin32Classic.cs: changed drawing of selected days
2219         to make them look better.
2220
2221 2006-10-16  Chris Toshok  <toshok@ximian.com>
2222
2223         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
2224         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
2225
2226         * XplatUIX11.cs: move away from using hwnd.client_dc and
2227         hwnd.non_client_dc and on to a stack of dc's (and in window's
2228         case, PAINTSTRUCT's), so we can deal with nested Paint calls
2229         without puking or not disposing of Graphics objects.
2230
2231         * XplatUIOSX.cs: same.
2232
2233         * XplatUIWin32.cs: same.
2234
2235 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
2236
2237         * FileDialog.cs: Don't call on_directory_changed inside
2238           OnSelectedIndexChanged (it changes the SelectedIndex too).
2239           Instead move it to OnSelectionChangeCommitted.
2240
2241 2006-10-13  Chris Toshok  <toshok@ximian.com>
2242
2243         * XplatUIX11.cs: more Destroy work.  the current code does the
2244         following things, in order:
2245
2246         1. Enumerates all handles of all controls at or below the one
2247         being destroyed, in pre-order.  As it is doing this, it marks the
2248         handles as zombie and clears all references to them.
2249         
2250         2. calls XDestroyWindow on the window passed in.
2251
2252         3. SendMessage's WM_DESTROY to all he handles in the accumulated
2253         list.
2254
2255 2006-10-13  Chris Toshok  <toshok@ximian.com>
2256
2257         * XplatUIX11.cs: set hwnd.zombie to true before calling
2258         SendMessage (WM_DESTROY).  this keeps us from marking the new
2259         window a zombie, and also keeps us from calling sendmessage at
2260         all.
2261
2262 2006-10-13  Jackson Harper  <jackson@ximian.com>
2263
2264         * TextControl.cs: Do not show the caret and selection at the same
2265         time.  Reduces ugliness by 35%.
2266
2267 2006-10-13  Chris Toshok  <toshok@ximian.com>
2268
2269         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
2270         zombie after we do the recursive call, so we actually do call
2271         SendMessage on the children controls.
2272         (GetMessage): if we find a pending paint event for a zombie hwnd,
2273         remove the hwnd from the paint queue, or else it will always be
2274         there (and we'll effectively loop infinitely)
2275
2276 2006-10-13  Mike Kestner  <mkestner@novell.com>
2277
2278         * MenuItem.cs : add Selected format under keynav too.
2279         Fixes #79528.
2280
2281 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
2282
2283         * PropertyGrid.cs: Fixed some NRE's and small difference between our
2284         implementation and that of MS.
2285
2286 2006-10-13  Chris Toshok  <toshok@ximian.com>
2287
2288         * Control.cs (OnInvalidated) only futz with the invalid_region if
2289         the control is double buffered.  this fixes the apparent hang in
2290         the ListView unit tests.  Someone needs to make the
2291         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
2292
2293 2006-10-13  Chris Toshok  <toshok@ximian.com>
2294
2295         * PropertyGridView.cs:
2296
2297         - do a little refactoring so that only one place calls
2298         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
2299         else call that.  Also make it Refresh, since there are redraw bugs
2300         otherwise (we should take a look at that...)
2301
2302         - do a little more refactoring work to share the body of code
2303         involved with the drop down.  it was duplicated in the code
2304         dealing with the listbox handling and in the code dealing with the
2305         UITypeEditors.
2306
2307         - add a Capture to the dropdown form's control once it's
2308         displayed, and add a MouseDown handler that checks to make sure
2309         the position is inside the control.  If it's not, close the
2310         dropdown.  This fixes #78190.
2311
2312         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
2313         if the value is different than the initial value.
2314         
2315 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
2316
2317         * Control.cs: see #78650
2318         - Fixed GetNextControl for several cases:
2319                 - Changed FindFlatForward to return 
2320                 correct sibling control when more than one
2321                 control has same TabIndex as the currently 
2322                 focused one.
2323                 - Changed FindFlatBackward to loop children
2324                 from last to first and apply same logic as in
2325                 FindFlatForward
2326                 - Changed FindControlForward to search for
2327                 children when control is not a container
2328                 but has children, or search for siblings if
2329                 control is a container...
2330                 - Changed FindControlBackward   to continue
2331                 searching for child controls when hitting 
2332                 Panel-like parents
2333                 
2334         - Fixed Focus method to update ActiveControl
2335         (FocusTest.FocusSetsActive failure)
2336         
2337         * TabControl.cs:
2338         - Focus rectangle now refreshes when gaining
2339         or losing focus
2340         - Removed grab for Tab key on IsInputKey that 
2341         was keeping tab navigation from working (#78650)
2342
2343 2006-10-13  Chris Toshok  <toshok@ximian.com>
2344
2345         * PropertyGridView.cs:
2346         - Rewrite SetPropertyValue to loop over SelectedGridItem's
2347         SelectedObjects.
2348
2349         - Deal with GridItem.Value == null a few places.
2350
2351         * PropertyGrid.cs: 
2352         - replace the PopulateGridItemCollection with a pair of methods
2353         which compute the intersection of all the properties in the
2354         SelectedObjects array.  Fixes #79615.
2355
2356         - Throw ArgumentException from set_SelectedObjects if there's a
2357         null in the array.
2358
2359         - Add GetTarget method which can be used to traverse up the
2360         GridItem.Parent chain.  It depends on the assumption that
2361         selected_objects for different GridEntries are always in the same
2362         order (a safe assumption).  Use this method and loop over all the
2363         selected objects in the entry when calling RemoveValueChanged and
2364         AddValueChanged.
2365         
2366         * GridEntry.cs: Make this handle multiple selected objects.
2367         .Value returns null if not all the selected objects share the same
2368         value.
2369
2370 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
2371         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
2372           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
2373           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
2374           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
2375           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
2376         add additional functionality.
2377
2378 2006-10-12  Mike Kestner  <mkestner@novell.com>
2379
2380         * ErrorProvider.cs : new ToolTipWindow ctor sig.
2381         * HelpProvider.cs : new ToolTipWindow ctor sig.
2382         * ToolTip.cs : remove ToolTip param from Window sig since it is
2383         not used.
2384         * ToolBar.cs : add tooltip support.  Fixes #79565.
2385
2386 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2387
2388         * ComboBox.cs: move the events in set_SelectedIndex to 
2389         after the call to HighlightIndex in order to avoid 
2390         possible recursion and subsequent problems with the call
2391         to HighlightIndex and include a range check in 
2392         set_HighlightIndex. Fixes #79588
2393         
2394 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2395
2396         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
2397         to ui thread's settings instead of sunday. 
2398         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
2399
2400 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2401
2402         * DateTimePicker.cs
2403         * MonthCalendar.cs
2404         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
2405         and implement missing functionality (selecting different parts 
2406         of the date and edit them individually with the keyboard).
2407         
2408 2006-10-11  Chris Toshok  <toshok@ximian.com>
2409
2410         * Control.cs (OnInvalidated): fix NRE relating to last change.
2411
2412 2006-10-11  Chris Toshok  <toshok@ximian.com>
2413
2414         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
2415         atoms in _NET_WM_STATE here if the window is maximized.  We need
2416         to do this because we're *replacing* the existing _NET_WM_STATE
2417         property, so those atoms will be lost otherwise, and any further
2418         call to GetWindowState will return Normal for a window which is
2419         actually maximized.  Fixes #79338.
2420
2421 2006-10-11  Jackson Harper  <jackson@ximian.com>
2422
2423         * TextControl.cs: Special case for setting selection end to
2424         selection start, we basically kill the anchor.
2425         - some todo comments.
2426
2427 2006-10-11  Chris Toshok  <toshok@ximian.com>
2428
2429         * Control.cs: switch to using an "invalid_region" to track which
2430         parts of the image buffer need updating.  This is more code than
2431         the simple fix from r66532.  That version just attempted to always
2432         fill the entire buffer on redraw, which turns out to be
2433         inefficient when invalidating small rectangles.  This version
2434         simply adds the invalid rectangle to the invalid region.  When we
2435         get any WM_PAINT message we see if it can be filled using the
2436         image buffer, and if it can't (if the paint event's clip rectangle
2437         is visible in the invalid region) we first fill the image buffer.
2438         So, the image buffer is still a cache, we just fill it lazily.
2439
2440         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
2441         need it any longer.
2442
2443 2006-10-11  Chris Toshok  <toshok@ximian.com>
2444
2445         * XplatUIX11.cs (SetWindowPos): we need to update both position as
2446         well as size after calling XMoveResizeWindow.  This keeps us from
2447         ignoring future SetWindowPos calls.  Fixes the disappearing
2448         DateTimePicker in the ToolBarDockExample from bug #72499.
2449
2450 2006-10-11  Chris Toshok  <toshok@ximian.com>
2451
2452         * TextBoxBase.cs: reorder things a bit when it comes to
2453         resizing-causing-recalculation.  we were recalculating the
2454         document when our position was changed, which shouldn't happen.
2455         We only care about size changes.  Clear up some more redundant
2456         recalculation calls while I'm at it.  This makes the toolbar dock
2457         example snappy when you're just dragging toolbars around (since it
2458         causes a relayout whenever you move one.)
2459
2460 2006-10-11  Chris Toshok  <toshok@ximian.com>
2461
2462         * ToolBarButton.cs (get_Rectangle): this only returns
2463         Rectangle.Empty if Visible == false, or Parent == null.
2464         Parent.Visible doesn't matter.
2465
2466 2006-10-10  Chris Toshok  <toshok@ximian.com>
2467
2468         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
2469         by .net 1.1, so switch to an internal method instead.
2470
2471 2006-10-10  Chris Toshok  <toshok@ximian.com>
2472
2473         * Control.cs (WM_PAINT): when a control is double buffered we draw
2474         initially to the ImageBuffer and then copy from there.  But when a
2475         parent control which has child controls is double buffered, the
2476         initial drawing doesn't encompass the entire ClientRectangle of
2477         the parent control, so we end up with uninitialized bits (this is
2478         easily seen by dragging the top toolbar in
2479         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
2480         manually set the ClipRectangle of the paint_event (only the one we
2481         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
2482         of the nastiness in bug #72499.
2483
2484         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
2485         which we use in Control.cs's WM_PAINT handling.
2486
2487 2006-10-10  Jackson Harper  <jackson@ximian.com>
2488
2489         * TextBoxBase.cs: Finish off the autoscrolling stuff.
2490
2491 2006-10-10  Chris Toshok  <toshok@ximian.com>
2492
2493         * Cursor.cs: Apply a slightly different patch to the one suggested
2494         in #79609.
2495
2496 2006-10-10  Jackson Harper  <jackson@ximian.com>
2497
2498         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
2499         not the parent form.
2500         * TextControl.cs: use difference in old line count vs new count to
2501         calculate how many lines were added, this takes into account soft
2502         line breaks properly.
2503
2504 2006-10-10  Chris Toshok  <toshok@ximian.com>
2505
2506         * LinkLabel.cs: don't call MeasureCharacterRanges against a
2507         rectangle located at 0,0 and the size of the text.  Use
2508         ClientRectangle instead.  This fixes rendering of non-left aligned
2509         link labels.
2510
2511 2006-10-10  Jackson Harper  <jackson@ximian.com>
2512
2513         * TextBoxBase.cs: When we set the selection start position the
2514         caret.
2515         * TextControl.cs: Need to update the caret when we decrement it to
2516         zero.
2517         - Make sure that the selection_visible flag gets reset to false if
2518         the selection isn't visible.  Before this you could get it set to
2519         visible by changing the selection start, then changing the end to
2520         equal the start.
2521
2522 2006-10-09  Jackson Harper  <jackson@ximian.com>
2523
2524         * TreeView.cs: Don't update scrollbars when we aren't visible.
2525         * TreeNodeCollection.cs: Only need to update scrollbars if being
2526         added to an expanded visible node or the root node.
2527
2528 2006-10-09  Chris Toshok  <toshok@ximian.com>
2529
2530         * XplatUIX11.cs (SendMessage): fix NRE.
2531
2532 2006-10-09  Jackson Harper  <jackson@ximian.com>
2533
2534         * TextBoxBase.cs: Implement horizontal autoscrolling.
2535         * TextControl.cs: Add a movement types that allows moving forward
2536         and backwards without wrapping.
2537
2538 2006-10-09  Mike Kestner  <mkestner@novell.com>
2539
2540         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
2541         with focus "expansion" of labels.  Fixes #79532 and then some.
2542         * ThemeWin32Classic.cs : add LineLimit to ListView label format
2543         when wrapping.
2544
2545 2006-10-09  Jackson Harper  <jackson@ximian.com>
2546
2547         * TextBoxBase.cs: Set the default max values to MaxValue since
2548         we use the scrollbar for autoscrolling and the default value is
2549         100.  If we don't do this the caret won't keep up with typing
2550         after about 18 characters.
2551         * TextControl.cs: Make sure the selection is offset by the
2552         viewport x.  This fixes selection when using auto scrolling.
2553
2554 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
2555         
2556         * Form.cs: The active control should be selected after the 
2557         OnLoad so that any child control initialization that affects
2558         the selection is done. Fixes #79406
2559
2560 2006-10-06  Chris Toshok  <toshok@ximian.com>
2561
2562         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
2563         to have no evil effects.
2564
2565         - Stop selecting StructureNotifyMask on non-toplevel windows.
2566
2567           The only way children should be resized is by using the SWF api,
2568           and we already send WM_WINDOWPOSCHANGED messages in those cases.
2569           Toplevel windows can be interacted with via the window manager,
2570           and so we keep the input mask there.
2571
2572           The other event StructureNotifyMask gives us (that we care
2573           about) is DestroyNotify.  The code is already structured such
2574           that it assumes we won't be getting a DestroyNotify event for
2575           the window we pass to XDestroyWindow (which is what
2576           StructureNotifyMask is supposed to guarantee.)  So, that code
2577           shouldn't be affected by this either.
2578
2579         - Stop selecting VisibilityChangeMask altogether.
2580
2581           We weren't doing anything with the resulting events anyway.
2582         
2583         This vastly reduces the number of X requests and events we see
2584         when resizing/laying out a large ui.
2585
2586 2006-10-06  Chris Toshok  <toshok@ximian.com>
2587
2588         * ScrollableControl.cs (DisplayRectangle): we need to take into
2589         account the DockPadding regardless of whether or not auto_scroll
2590         == true.  rework this slightly to this effect, and fix bug #79606,
2591         and part of #72499 (you can now see the drag handles and drag
2592         toolbars around).
2593
2594 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
2595
2596         * ListViewItem.cs: Collections of selected and checked items are now
2597         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
2598         we mark the collection "dirty".
2599         * ListView.cs: Marked collections readonly. Modified UpdateSelection
2600         to only clear SelectedItems when a new item is selected and MultiSelect
2601         is enabled. CheckedItems and SelectedItems now subscribe to Changed
2602         event of ListViewItemCollection, and mark its list dirty whenever
2603         that event is fire. This allows us to return selected/checked items 
2604         in the same order as they are in the Items collection. This matches
2605         the MS behavior.
2606
2607 2006-10-06  Chris Toshok  <toshok@ximian.com>
2608
2609         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
2610         right mouse clicks.  Fixes bug #79593.
2611
2612 2006-10-06  Chris Toshok  <toshok@ximian.com>
2613
2614         * Splitter.cs: doh, fix splitters that don't want to cancel the
2615         movement when you drag them.  Also, impose the limits on the
2616         values we send to the SplitterMovingEvent.  Fixes #79598.
2617
2618 2006-10-06  Jackson Harper  <jackson@ximian.com>
2619
2620         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
2621         since we use this for auto scrolling also.
2622
2623 2006-10-05  Chris Toshok  <toshok@ximian.com>
2624
2625         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
2626         beginning to think that most datagrid column types don't need this
2627         method.  Fixes bug #79392.
2628
2629 2006-10-05  Chris Toshok  <toshok@ximian.com>
2630
2631         * DataGrid.cs: move back to a more lazy scheme for creating the
2632         CurrencyManager, so we aren't updating it every time you set
2633         either DataSource or DataMember.  Also, don't call
2634         RecreateDataGridRows if the currency manager hasn't changed.
2635
2636 2006-10-05  Chris Toshok  <toshok@ximian.com>
2637
2638         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
2639         emitted, SelectedIndex should already be updated.  Fixes bug
2640         #78929.
2641
2642 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
2645           ToolStripTextBox.cs: Initial commit.
2646         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
2647
2648 2006-10-05  Jackson Harper  <jackson@ximian.com>
2649
2650         * TabControl.cs: We need to invalidate the tab control area when
2651         new ones are added (duh).
2652
2653 2006-10-03  Chris Toshok  <toshok@ximian.com>
2654
2655         * Form.cs (ProcessDialogKey): if the focused control is in this
2656         form and is a button, call its PerformClick method here.  Fixes
2657         #79534.
2658
2659 2006-10-04  Jackson Harper  <jackson@ximian.com>
2660
2661         * TabPage.cs: Ignore setting of Visible, and add an internal
2662         method for setting the controls visibility.  TabPage's Visible
2663         property is a little strange on MS, this seems to make us
2664         compatible, and fixes cases where people set all the tab pages to
2665         visible.
2666         * TabControl.cs: Use the new internal setting on tab pages
2667         visibility.
2668
2669 2006-10-03  Mike Kestner  <mkestner@novell.com>
2670
2671         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
2672
2673 2006-10-03  Mike Kestner  <mkestner@novell.com>
2674
2675         * ListView.cs : use is_visible instead of Visible to check if 
2676         scrollbars should be placed/sized.  Also some max_wrap_width
2677         love for LargeIcon view.  [Fixes #79533]
2678
2679 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
2680
2681         * TextControl.cs :
2682           Make set_TextAlign() do actually update the align. Fixed #78403.
2683
2684 2006-10-03  Chris Toshok  <toshok@ximian.com>
2685
2686         * DataGrid.cs: fix a crash when switching datasources if the
2687         vertical scrollbar is at someplace other than Value = 0.  Also,
2688         reduce the number of recalculation passes we do in SetDataSource
2689         from 2 to 1.
2690
2691 2006-10-03  Jackson Harper  <jackson@ximian.com>
2692
2693         * TextBoxBase.cs: Move the if value the same bail check up, we
2694         don't want to empty the document if it is already empty, this
2695         seems to severly mess up the caret.  TODO: I should probably fix
2696         the empty statement to update teh caret somehow.
2697
2698 2006-10-03  Chris Toshok  <toshok@ximian.com>
2699
2700         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
2701         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
2702         reflection, an internal row type, properties on said type, etc.)
2703         will work with our datagrid.  Fixes #79531.
2704
2705 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
2706
2707         * FileDialog.cs: Don't crash if a path is not accessible
2708           (System.UnauthorizedAccessException). Fixes #79569.
2709         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
2710           a ':' too. Return unknown icon for those paths/files.
2711
2712 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
2713
2714         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
2715         GetContainerControl returns null.
2716
2717 2006-10-02  Chris Toshok  <toshok@ximian.com>
2718
2719         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
2720         call to XGetWindowAttributes instead of "handle".  fixes an X
2721         error using notifyicon after the NotifyIconWindow to Form base
2722         class switch.
2723
2724 2006-10-02  Chris Toshok  <toshok@ximian.com>
2725
2726         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
2727         server grab and looping we need to do to get down to the most
2728         deeply nested child window.
2729         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
2730         QueryPointer again after the WarpPointer so we can generate a
2731         proper (fake) MotionNotify event to be enqueued in the destination
2732         window's queue.
2733         (GetCursorPos): call QueryPointer.
2734
2735         Fixes #79556.
2736
2737 2006-10-02  Jackson Harper  <jackson@ximian.com>
2738
2739         * NotifyIcon.cs: Derive the notify icon from a form, so things
2740         like FindForm work on it.
2741         - Swallow the WM_CONTEXTMENU message, since that is generated on
2742         mouse down, and context menu is a mouse up kinda guy.  I believe
2743         the correct fix here is probably to make the notify icon entirely
2744         NC area, but this seems to work fine for anyone not manipulating
2745         WndProc.
2746
2747 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
2748
2749         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
2750           ToolStripItemCollection.cs, ToolStripLabel.cs,
2751           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
2752           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
2753           Initial implementation.
2754         * TextRenderer.cs: Provide padding to MeasureText.
2755
2756 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
2757
2758         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
2759         of ButtonBaseAccessibleObject. Fix bug #79552.
2760
2761 2006-10-02  Jackson Harper  <jackson@ximian.com>
2762
2763         * MdiWindowManager.cs: When maximizing use the containers client
2764         rect, not it's bounds, so nc area is accounted correctly.
2765         - Use the parent form's size for the menu position, since the
2766         client isn't always the full form size.
2767
2768 2006-10-01  Chris Toshok  <toshok@ximian.com>
2769
2770         * ScrollableControl.cs: make sure neither right_edge or
2771         bottom_edge are < 0, since they're used as LargeChange for the
2772         horiz/vert scrollbars respectively.  Fixes #79539.
2773
2774 2006-10-01  Chris Toshok  <toshok@ximian.com>
2775
2776         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
2777         the xplatuix11 code can cause us to destroy/recreate our handle.
2778
2779         * XplatUIX11.cs
2780         (SystrayAdd):
2781         - this code can be invoked many times for the same Hwnd.  Make
2782           sure we only destroy the client window once (the first time this
2783           method is called).  This fixes bug #79544.
2784         - Remove the call to the improperly bound XSync.  why we had two
2785           bindings to this, I will never know, but this call resulted in
2786           events being discarded from the queue(!).
2787         - correct a misunderstanding of _XEMBED_INFO - the second atom is
2788           not our current state but the state we wish to be in.  So, 0 if
2789           we don't want to be mapped.  Change it to 1.
2790         (SystrayRemove): The XEMBED spec makes mention of the fact that
2791         gtk doesn't support the reparent of client windows away from the
2792         embedder.  Looking at gtksocket-x11.c seems to agree with this.
2793         The only avenue we have for removing systray icons is to destroy
2794         them.  We don't want the handle to go away for good, though, so
2795         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
2796         #79545.
2797         
2798 2006-10-01  Chris Toshok  <toshok@ximian.com>
2799
2800         * Form.cs (WndProc): inline the native_enabled variable usage into
2801         the cases in which it's used.  Fixes #79536.
2802
2803 2006-09-29  Mike Kestner  <mkestner@novell.com>
2804
2805         * ListView.cs : toggle the selection state for ctrl clicks in 
2806         multiselect mode. [Fixes #79417]
2807
2808 2006-09-29  Mike Kestner  <mkestner@novell.com>
2809
2810         * ListView.cs : kill CanMultiSelect and refactor the selection
2811         code to support multiselection in the absence of mod keys. Steal
2812         arrow/home/end keys by overriding InternalPreProcessMessage to
2813         restore regressed keynav behavior.
2814         [Fixes #79416]
2815
2816 2006-09-29  Jackson Harper  <jackson@ximian.com>
2817
2818         * MdiClient.cs: Repaint the titlebars when the active window is
2819         changed.
2820
2821 2006-09-29  Chris Toshok  <toshok@ximian.com>
2822
2823         * Application.cs: when entering a runloop with a modal, make sure
2824         the hwnd is enabled.  Fixes #79480.
2825
2826 2006-09-29  Chris Toshok  <toshok@ximian.com>
2827
2828         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
2829         when ListManager.CanAddRows == false, bump us back one.
2830
2831         * DataGridColumnStyle.cs (ParentReadOnly): remove the
2832         listmanager.CanAddRows check.  This makes ArrayLists uneditable
2833         using a datagrid, which is not right.
2834         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
2835         is an IEditable, but call property_descriptor.SetValue regardless.
2836         fixes #79435.
2837
2838 2006-09-29  Chris Toshok  <toshok@ximian.com>
2839
2840         * DataGridBoolColumn.cs: we need to test equality in the face of
2841         possible null values (as is the case with the default NullValue).
2842         This patch keeps us from crashing in that case.
2843
2844 2006-09-29  Jackson Harper  <jackson@ximian.com>
2845
2846         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
2847         here, since it will get called for every node collection in the
2848         tree. This is now done in the treeview once the sorting is
2849         finished.
2850         * TreeView.cs: Recalculate the visible order, and update the
2851         scrollbars after sorting, set the top nope to the root so that the
2852         recalc actually works.
2853
2854 2006-09-29  Chris Toshok  <toshok@ximian.com>
2855
2856         * LinkLabel.cs: more handling of the default link collection in
2857         the face of LinkArea manipulation.  The default link collection
2858         contains 1 element (start=0,length=-1).  If the user sets LinkArea
2859         to anything and the links collection is the default, clear it.
2860         Then only add the link if its nonempty.  Fixes #79518.
2861
2862 2006-09-29  Chris Toshok  <toshok@ximian.com>
2863
2864         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
2865         piece correctly when we hit a '\n'.  Fixes #79517.
2866
2867 2006-09-29  Chris Toshok  <toshok@ximian.com>
2868
2869         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
2870         change the binding of gdk_init_check to take two IntPtr's, and
2871         pass IntPtr.Zero for both of them.  Fixes #79520.
2872
2873 2006-09-29  Mike Kestner  <mkestner@novell.com>
2874
2875         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
2876         [Fixes #78779]
2877
2878 2006-09-28  Jackson Harper  <jackson@ximian.com>
2879
2880         * XplatUIX11.cs: When translating NC messages make sure we go from
2881         whole window to screen, not client window to screen.
2882         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
2883         method doesn't exist
2884         - Skip over controls that aren't forms when arranging.
2885
2886 2006-09-28  Jackson Harper  <jackson@ximian.com>
2887
2888         * XplatUIWin32.cs: Clip the rect to the parent window.
2889         * XplatUIStructs.cs: Add clipping modes struct.
2890         * InternalWindowManager.cs: New private method that factors title
2891         bar heights in when calculating the pos of an NC mouse message.
2892         - Use SendMessage to force a paint when the form's size is changed
2893         instead of painting the decorations immediately.
2894         - Don't let the NC button click messages get to DefWndProc,
2895         because they will attempt to handle windowing themself, and this
2896         messes up z-order (it will put them in front of the scrollbars).
2897         * XplatUIX11.cs: Make sure that we don't reset window managers if
2898         we already have one (ie the window is an MDI window).
2899
2900 2006-09-28  Chris Toshok  <toshok@ximian.com>
2901
2902         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
2903         menu code really needs going over.
2904
2905 2006-09-27  Chris Toshok  <toshok@ximian.com>
2906
2907         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
2908         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
2909         window is maximizable.  So, we need to make sure that even if we
2910         clear the border/wm frame of those functions, they're still
2911         available (basically, we remove the decoration without removing
2912         the function).  Half the fix for #79338.
2913
2914 2006-09-27  Chris Toshok  <toshok@ximian.com>
2915
2916         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
2917         Fixes bug #79515.
2918
2919 2006-09-27  Chris Toshok  <toshok@ximian.com>
2920
2921         * Splitter.cs: reorder things a bit so that we don't actually
2922         draw/move the splitter until after calling OnSplitterMoving.  This
2923         lets users cancel/disallow the movement by explicitly setting
2924         event.SplitX/SplitY.  Fixes #79372.
2925
2926 2006-09-27  Jackson Harper  <jackson@ximian.com>
2927
2928         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
2929         because it is most likely on a window being destroyed, and that
2930         will give us an X11 error.
2931
2932 2006-09-27  Chris Toshok  <toshok@ximian.com>
2933
2934         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
2935         the dropdown button now toggles between showing and hiding the
2936         dropdown.  Also, get rid of dropdown_form_showing and just use
2937         dropdown_form.Visible.  We still don't do a grab, but I'll leave
2938         that part to someone who has handled Capture-fu before.
2939
2940 2006-09-27  Chris Toshok  <toshok@ximian.com>
2941
2942         * DataGrid.cs: return false if alt isn't pressed when '0' is
2943         pressed.  this keeps the '0' key from being swallowed, and fixes
2944         bug #79350.
2945
2946 2006-09-27  Chris Toshok  <toshok@ximian.com>
2947
2948         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
2949         Calling Refresh (in response to a scrollbar event) screws up the
2950         scrollbar painting.  Fixes bug #78923.
2951
2952 2006-09-27  Chris Toshok  <toshok@ximian.com>
2953
2954         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
2955         then insert into hashtable" blocks threadsafe.
2956
2957 2006-09-27  Chris Toshok  <toshok@ximian.com>
2958
2959         * MessageBox.cs (CreateParams): the styles should be |'ed with our
2960         baseclass's, since otherwise the
2961         ControlBox/MinimizeBox/MaximizeBox assignments above have no
2962         effect.  This gets the close button back in messageboxes.
2963
2964 2006-09-27  Chris Toshok  <toshok@ximian.com>
2965
2966         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
2967         flag, not just != 0.  this makes flags that are actually multiple
2968         bits (like WS_CAPTION) work.  fixes bug #79508.
2969
2970 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
2971
2972         * PageSetupDialog.cs: add support for getting and settings the 
2973         paper size, source and orientation.
2974
2975 2006-09-26  Chris Toshok  <toshok@ximian.com>
2976
2977         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
2978         and caption == "", we need to remove the resize handles as well as
2979         the title bar.
2980
2981         * Control.cs (set_Text): turns out that setting Text on a form
2982         should change the WM styles on the window, since if ControlBox ==
2983         false, the only way to get a window border is to have a non-""
2984         Text property.  check winforms/forms/text.cs for an example.  so,
2985         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
2986         update both window styles and title.  This fixes a lot of dialogs
2987         (including the preferences dialog in MonoCalendar.)
2988
2989 2006-09-26  Chris Toshok  <toshok@ximian.com>
2990
2991         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
2992         control isn't a Form), call Win32ShowWindow to hide the window,
2993         but don't update the control Visible property.  When we reparent
2994         back to a parent control, call SetVisible in order for the
2995         window's visibility to be reinstated.
2996
2997         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
2998         the FosterParent.
2999
3000         * Control.cs (ControlCollection.Remove): remove that value.Hide()
3001         call for good, since it breaks MonoCalendar (and other things I'm
3002         sure.) Also, set all_controls to null *after* the owner calls,
3003         which end up regenerating it.
3004         (ChangeParent): allow new_parent to be == null, passing
3005         IntPtr.Zero down to XplatUI.
3006
3007         this fixes #79294 the right way.
3008
3009 2006-09-26  Mike Kestner  <mkestner@novell.com>
3010
3011         * GridEntry.cs : internal SetParent method.
3012         * PropertyGrid.cs : attach to property changed on the proper
3013         target if we have a hierarchical grid with subobjects. Setup
3014         GridItem.Parent for hierarchical items.
3015         * PropertyGridView.cs : Set value on the correct target for
3016         hierarchical grids. [Fixes #78903]
3017
3018 2006-09-26  Chris Toshok  <toshok@ximian.com>
3019
3020         * Control.cs (ChildNeedsRecreating): this should return true if
3021         either we're being recreated and the child is in our list, or our
3022         parent is waiting for our recreation.
3023
3024 2006-09-26  Chris Toshok  <toshok@ximian.com>
3025
3026         * Control.cs (ControlCollection.Remove): reinstate the
3027         value.Hide() call as suggested in bug #79294.
3028
3029 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
3030
3031         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
3032         coordinates (versus a relative move).
3033
3034 2006-09-26  Chris Toshok  <toshok@ximian.com>
3035
3036         * Control.cs: rework child recreation a little bit.  It turns out
3037         that we race between the DestroyNotify the WM_DESTROY message.  If
3038         the parent gets its DestroyNotify before the child gets the
3039         WM_DESTROY message, the child ends up not recreating (since the
3040         parent finishes its recreation on DestroyNotify, and the child
3041         checks ParentIsRecreating.)
3042
3043         So, instead we store off a list of all the child controls which
3044         need to be recreated when the parent control starts to recreate
3045         itself.  Then, when child controls get their WM_DESTROY message we
3046         check to see if they're in the parent's pending recreation list,
3047         and if so, we recreate.  This removes all dependency on ordering
3048         from the code and fixes the initial MonoCalendar upgrade dialog.
3049         
3050 2006-09-26  Jackson Harper  <jackson@ximian.com>
3051
3052         * TextControl.cs: Use the Line to get the length of the line,
3053         since soft line breaks can change the end line.
3054
3055 2006-09-26  Chris Toshok  <toshok@ximian.com>
3056
3057         * Control.cs (ControlCollection.AddImplicit): don't add the
3058         control again if it's already in one of our lists.  This keeps us
3059         from adding controls over and over again for comboboxes when their
3060         handle gets recreated (as the combobox adds implicit controls in
3061         OnHandleCreated).  Fixes the X11 errors in bug #79480.
3062
3063 2006-09-26  Jackson Harper  <jackson@ximian.com>
3064
3065         * TextControl.cs: When deleting characters make sure that any
3066         orphaned zero lengthed tags get deleted.
3067         - Fix ToString for zero lengthed tags.
3068
3069 2006-09-25  Jackson Harper  <jackson@ximian.com>
3070
3071         * TextControl.cs: When getting a tag at the location there can be
3072         multiple tags at the same spot, these are 0-lengthed tags that
3073         appear when extra formatting has been stuck in a location.  We
3074         need to pull out the last of these 0 lengthed tags.
3075
3076 2006-09-25  Jackson Harper  <jackson@ximian.com>
3077
3078         * TextControl.cs: Fix print out in debug method.
3079         * TextBoxBase.cs: When text is set bail if we are setting to the
3080         previous value.
3081         
3082 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
3083
3084         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
3085           It is now possible to change the selected index in a FontXXXListBox
3086           with the up and down arrow keys from the FontXXXTextBoxes.
3087           Also, send the FontXXXTextBox mouse wheel event to the corresponding
3088           FontXXXListBoxes to match ms.
3089
3090 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
3091
3092         * SystemInformation.cs: Return a clone of the theme's MenuFont because
3093         anyone can dispose it, anytime. All other properties returns enums, 
3094         structs or basic types so they don't need such tricks.
3095
3096 2006-09-22  Jackson Harper  <jackson@ximian.com>
3097
3098         * XplatUI.cs:
3099         * XplatUIWin32.cs:
3100         * Clipboard.cs:
3101         * DataFormats.cs:
3102         * XplatUIOSX.cs:
3103         * XplatUIDriver.cs: Update interface to add a primary selection
3104         flag, so the driver can use the primary selection buffer if
3105         needed.
3106         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
3107
3108         * RichTextBox.cs: We need to supply the data object to paste now
3109         (so we can choose to supply CLIPBOARD or PRIMARY).
3110         * TextBoxBase.cs: Supply data object to paste (see above).
3111         - Middle click uses the primary selection data object.
3112         
3113 2006-09-21  Chris Toshok  <toshok@ximian.com>
3114
3115         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
3116         of SetWMStyles.  It's still a rat's nest and is largely
3117         order-dependent which I dislike immensely.  This also fixes the X
3118         button disappearing from toplevel forms.
3119
3120 2006-09-21  Mike Kestner <mkestner@novell.com>
3121
3122         * ListBox.cs: move Jordi's click/dblclick raising code to the
3123         mouse up handler.
3124
3125 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3126
3127         * ListBox.cs: Fixes 79450
3128
3129 2006-09-21  Mike Kestner <mkestner@novell.com>
3130
3131         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
3132         to deal with people updating the TreeNodeCollection after the tree
3133         is disposed.  "Fixes" 79330.
3134
3135 2006-09-20  Jackson Harper <jackson@ximian.com>
3136
3137         * TextControl.cs: Push the cursor record onto the undo stack
3138         before the delete action. This fixes 78651.
3139
3140 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
3141
3142         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
3143         CreateParams. Fixes 79329.
3144
3145 2006-09-19  Chris Toshok  <toshok@ximian.com>
3146
3147         * XplatUIX11.cs: a couple of blanket code massage passes to clean
3148         things up a bit.  First, get rid of the NetAtoms array (and the NA
3149         enum), and just embed the atoms as static fields.  Also, add a
3150         couple of functions (StyleSet and ExStyleSet) to clean up all the
3151         bitmask testing of styles.
3152
3153         * X11Structs.cs: remove the NA enum, not needed anymore.
3154         
3155 2006-09-19  Chris Toshok  <toshok@ximian.com>
3156
3157         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
3158         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
3159         added cleanup to get MessageBox titles appearing again, which were
3160         broken by my earlier fix for caption-less/ControlBox-less windows.
3161
3162 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
3163
3164         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
3165           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
3166           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
3167           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
3168           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
3169           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
3170           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
3171           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
3172           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
3173           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
3174           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
3175             Inital import.
3176         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
3177           ToolStripButton.cs: Stubs needed for above.
3178         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
3179
3180 2006-09-15  Chris Toshok  <toshok@ximian.com>
3181
3182         * XplatUIX11.cs:
3183         - make the MessageQueues hashtable Synchronized.
3184         
3185         - SendMessage: if the Hwnd is owned by a different thread, use the
3186         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
3187         thread.  Fixes bug #79201.
3188
3189 2006-09-15  Chris Toshok  <toshok@ximian.com>
3190
3191         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
3192         ControlBox == false, we disallow maximize/minimize/close.  If the
3193         form Caption is "" we also disallow move (and get rid of the Title
3194         decoration).  Unfortunately, regardless of how things are set,
3195         we're stuck with the Title and WM menu.
3196
3197 2006-09-15  Chris Toshok  <toshok@ximian.com>
3198
3199         * Application.cs: add locking around the static message_filters
3200         ArrayList, part of #79196.
3201
3202 2006-09-15  Chris Toshok  <toshok@ximian.com>
3203
3204         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
3205         Form.ControlBox == false, the window has no titlebar nor resize
3206         handles.  fixes bug #79368.
3207
3208 2006-09-15  Chris Toshok  <toshok@ximian.com>
3209
3210         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
3211         >= 0.  Fixes bug #79370.
3212
3213 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
3214         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
3215         * Control.cs:
3216             Add properties: LayoutEngine, Margin, DefaultMargin.
3217             Add method: GetPreferredSize.
3218             Move layout logic from PerformLayout to layout engines. 
3219
3220 2006-09-13  Chris Toshok  <toshok@ximian.com>
3221
3222         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
3223         fix for #79326 broke #78718, so this change addresses that.
3224
3225         - in SendWMDestroyMessages remove the call to
3226         CleanupCachedWindows, since we might be recreating the control and
3227         need to maintain the references to right Hwnd handles.  Also, set
3228         the zombie flag to true for each of the children in the hierarchy
3229         instead of calling hwnd.Dispose.  This will cause GetMessage to
3230         ignore all events for the window except for DestroyNotify.
3231
3232         - In GetMessage, ignore messages except for DestroyNotify for
3233         zombie hwnds.
3234         
3235         * Control.cs: revert the is_recreating fix from the last
3236         ChangeLog.  It's definitely "right", but it breaks switching from
3237         an MDI form to a non-MDI form.  Will need to revisit that.
3238
3239         * Hwnd.cs: add a zombie flag, which means "the
3240         client_window/whole_window handles are invalid, but we're waiting
3241         for the DestroyNotify event to come in for them".  Set the flag to
3242         false explicitly if setting WholeWindow/ClientWindow, and also
3243         when Disposing.
3244         
3245 2006-09-13  Chris Toshok  <toshok@ximian.com>
3246
3247         * XplatUIX11.cs: rework window destruction slightly.
3248
3249         - when destroying the windows associated with a control, we don't
3250         need 2 separate XDestroyWindow calls.  Just the one for the
3251         whole_window (or for client_window if whole_window is somehow
3252         IntPtr.Zero -- can this happen?) is enough.
3253
3254         - reworked SendWMDestroyMessages slightly, so we always dispose
3255         the child control hwnd's after sending the messages.
3256         
3257         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
3258         the two places it was used (one was even using hwnd.Handle and the
3259         other hwnd.client_window.  ugh), adding another call in
3260         SendWMDestroyMessages.  We need this new call because now the
3261         DestroyNotify events in the queue will be ignored for the child
3262         controls (as their hwnd's were disposed, and the window id's
3263         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
3264
3265         - this fixes bug #79326.
3266
3267 2006-09-13  Chris Toshok  <toshok@ximian.com>
3268
3269         * Control.cs: don't always set is_recreating to false at the end
3270         of RecreateHandle, since sometimes we're not done (and won't be
3271         until WndProc handles the WM_DESTROY message).  Also, set
3272         is_recreating to false in the WM_DESTROY handling code.  Part of
3273         the fix for bug #79326.
3274
3275 2006-09-13  Miguel de Icaza  <miguel@novell.com>
3276
3277         * X11DesktopColors.cs: Start the droppage of debugging messages.
3278
3279         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
3280
3281 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
3282
3283         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
3284
3285 2006-09-12  Chris Toshok  <toshok@ximian.com>
3286
3287         * DataGrid.cs (get_ListManager): if the list_manager is null, try
3288         to create it using SetDataSource.  Fixes bug #79151.
3289
3290 2006-09-11  Chris Toshok  <toshok@ximian.com>
3291
3292         * XEventQueue.cs: add a DispatchIdle property.
3293
3294         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
3295         either the queue is null, or the queue has DispatchIdle set to
3296         true.
3297         (DoEvents): set queue.DispatchIdle to false around the
3298         peek/translate/dispatch message loop in this method.  This keeps
3299         Application.Doevents from emitting idle events.  Part of the fix
3300         for #78823.
3301
3302 2006-09-11  Chris Toshok  <toshok@ximian.com>
3303
3304         * DataGrid.cs (set_DataSource): make this work for both the
3305         winforms/datagrid test and ReportBuilder.  It seems as though when
3306         we've created a ListManager (or maybe it's if we have a
3307         BindingContext?), when we set the DataSource it clears the
3308         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
3309         #79333.
3310
3311 2006-09-11  Chris Toshok  <toshok@ximian.com>
3312
3313         * XplatUIX11.cs: deal with queue being null, which happens in all
3314         the Clipboard functions.  Fixes one of the two problems mentioned
3315         in #78612.
3316
3317 2006-09-11  Chris Toshok  <toshok@ximian.com>
3318
3319         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
3320         button on various spots (including outside the menu) works closer
3321         to MS, and doesn't crash.  Fixes #79343.
3322
3323 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
3324
3325         * ListView.cs: Do not initialize item_sorter in init. To match MS,
3326         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
3327         and the internal comparer is set. When a new ListViewItemSorter is set,
3328         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
3329         was specified. No further processing is necessary if SortOrder is set
3330         to it's current value. If Sorting is modified to None, and View is
3331         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
3332         (either custom or our internal ItemComparer) to null, on 1.0 profile
3333         only set item_sorter to null if its our internal IComparer. If Sorting
3334         is modified to Ascending or Descending, then use our internal IComparer
3335         if none is set, and if the current IComparer is our internal one then:
3336         on 2.0 profile always replace it with one for new Sorting, and on 1.0
3337         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
3338         Enum.IsDefined to verify whether a valid View value is specified in
3339         its setter. Automatically sort listview items when listview is
3340         created. In Sort, do nothing if ListView is not yet created, or if
3341         no item_sorter is set (no Sorting was set, Sorting was explicitly set
3342         to None or ListViewItemSorter was set to null). Added Sort overload
3343         taking a bool to indicate whether the ListView should be redrawn when
3344         items are sorted (we use this in ListViewItemCollection to avoid double
3345         redraws). Modified our internal IComparer to take the sort order into
3346         account. In Add and AddRange methods of ListViewItemCollection, also
3347         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
3348         view), but use overload with noredraw option to avoid double redraw.
3349         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
3350         true when View is Tile, and do the same when attempting to set View to
3351         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
3352         for selected/checked indices, as it involves overhead when sorting is
3353         done while these collections are not used all that often. Instead
3354         we'll build the indices on demand. Modified IList implementation of
3355         CheckedIndexCollection to use public methods if object is int.
3356         Modified CheckedListViewItemCollection to hide checked items if
3357         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
3358         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
3359         IList implementation in SelectedIndexCollection to use public methods
3360         if object is int. Modified SelectedListViewItemCollection to hide
3361         selected items if listview is not yet created.
3362         * ListViewItem.cs: CheckedIndices list no longer needs to be
3363         maintained separately (see ListView changes). Also clone font, fixes
3364         test failure.
3365
3366 2006-09-11  Mike Kestner  <mkestner@novell.com>
3367
3368         * ComboBox.cs: if we are updating the contents of the currently
3369         selected index, refresh the control or the textbox selection.
3370         [Fixes #79066]
3371
3372 2006-09-11  Mike Kestner  <mkestner@novell.com>
3373
3374         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
3375         the 'specified' logic has been moved there.  This seems like a bug 
3376         in Control.cs, since our current SetBoundsCore completely ignores 
3377         the specified parameter.  Peter's commit seems to indicate that is 
3378         the way the MS control implementation works.  [Fixes #79325]
3379
3380 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
3381
3382         * XplatUI.cs: Set default_class_name to be composed
3383         of current domain id. This allows MWF to be loaded in multiple
3384         domains on Win32.
3385
3386 2006-09-09  Miguel de Icaza  <miguel@novell.com>
3387
3388         * X11Keyboard.cs: If we are unable to obtain the input method, do
3389         not call CreateXic to create the input context.   Should fix
3390         #78944/79276.
3391
3392 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
3393
3394         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
3395           Simplified gnome support by adding more pinvokes to get the
3396           icon for a file or mime type.
3397
3398 2006-09-08  Jackson Harper  <jackson@ximian.com>
3399
3400         * MenuAPI.cs: Deslect popup context menu items before closing the
3401         window, so that you don't see the previously selected item
3402         selected when you reopen the menu.
3403         * TextControl.cs: Update the cursor position even if we don't have
3404         focus.  This fixes typing in things like the ComboBox.  I'm not
3405         totally sure we should always set the visibility if we don't have
3406         focus, but couldn't find any corner cases where the cursor showed
3407         up when it shouldn't.
3408
3409 2006-09-08  Chris Toshok  <toshok@ximian.com>
3410
3411         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
3412         our arrays are length 256.  & 0xff before indexing.  Fixes the
3413         crash in bug #78077.
3414         
3415 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3416
3417         * ThemeWin32Classic.cs: 
3418         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
3419         is true. Handle that check box too.
3420
3421 2006-09-07  Chris Toshok  <toshok@ximian.com>
3422
3423         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
3424         79244.
3425
3426 2006-09-07  Chris Toshok  <toshok@ximian.com>
3427
3428         * Control.cs: in set_BackColor only do the work if
3429         background_color != value.
3430
3431         * XplatUIX11.cs: move the clearing of invalid areas (both client
3432         and nc) to the same block of code where we set (nc_)expose_pending
3433         to false.  That is, move it from PaintEventEnd to PaintEventStart,
3434         so things that cause invalidates from within OnPaint will trigger
3435         another call to OnPaint.  Fixes bug #79262.
3436
3437 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
3438
3439         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
3440         * FileDialog.cs: Fix typo
3441
3442 2006-09-07  Jackson Harper  <jackson@ximian.com>
3443
3444         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
3445         for tab pages if they have any.
3446
3447 2006-09-06  Mike Kestner  <mkestner@novell.com>
3448
3449         * Splitter.cs: use the "current" rect when finishing drag handle
3450         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
3451
3452 2006-09-06  Mike Kestner  <mkestner@novell.com>
3453
3454         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
3455         support offset splitters. [Fixes #79298]
3456
3457 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
3458
3459         * Mime.cs: Fixed a bug that could override the global mime type
3460           result.
3461
3462 2006-09-05  Jackson Harper  <jackson@ximian.com>
3463
3464         * TabControl.cs: Better calculation method for setting the slider
3465         pos. Prevents crashes on really wide tabs.
3466         - Draw Image on tab pages if an image list is used.
3467
3468 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3469
3470         * MonthCalendar.cs: When Font changes, the Size should be
3471         updated to fit the new font's space requirements.
3472
3473 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
3474
3475         * ListBox.cs: If the items are cleared with Items.Clear set
3476           top_index to 0.
3477
3478 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3479
3480         * MonthCalendar.cs: Handle arrow keys as input keys. Also
3481         fire DateChanged event instead of DateSelected event when
3482         the date was changed by keyboard interaction.
3483
3484 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3485
3486         * DateTimePicker.cs: Handle DateChanged for the associated
3487         month_calendar control, and set month_calendar.Font from 
3488         OnFontChanged method, as well as resize the height of the
3489         control when needed. Make PreferredHeight proportional.
3490
3491 2006-09-01  Chris Toshok  <toshok@ximian.com>
3492
3493         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
3494         properties.
3495
3496         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
3497
3498 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
3499
3500         * FileDialog.cs: Set ClientSize instead of window size, to allow space
3501           for decorations (Fixes #79219)
3502
3503 2006-09-01  Mike Kestner  <mkestner@novell.com>
3504
3505         * ComboBox.cs: first stab at sorting plus some selection handling
3506         fixes to bring us more in line with MS behavior.  Also switches back
3507         to index based selection.  Alternative patches for index-based 
3508         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
3509         and latency@gmx.de on bug 78848.  I assume they were similar to this
3510         code I've had simmering in my tree forever.
3511         [Fixes #78848]
3512
3513 2006-09-01  Chris Toshok  <toshok@ximian.com>
3514
3515         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
3516         when setting list position guard against ending up with a -1 index
3517         (the other part of the fix for #78812).  Should probably make sure
3518         we don't need the analogous fix in the ItemDeleted case.
3519
3520         * DataGrid.cs:
3521         - in SetDataSource, work around the fact that the way
3522         OnBindingContextChanged is invoked will cause us to re-enter this
3523         method.  I'll remove the hack once I investigate
3524         OnBindingContextChanged.
3525
3526         - fix the logic in set_DataSource and set_DataMember (basically
3527         what to do if the other of the two is null.)
3528         
3529         - in OnListManagerItemChanged, we need to take into account the
3530         edit row when deciding whether or not to call RecreateDataGridRows
3531         (part of the fix for #78812).
3532
3533 2006-09-01  Jackson Harper  <jackson@ximian.com>
3534
3535         * Splitter.cs: Don't do anything if there is no control to affect
3536         (prevents us from crashing in weird tet cases).
3537         * TreeView.cs: Bounding box for the mouse movement reverting
3538         focus/selection back to previously selected node.  This matches
3539         MS, and makes the tree a lot more useable.
3540         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
3541         use clipping so they are not drawn.  This fixes when the control
3542         is set to have a transparent background, or if it was over an
3543         image.
3544
3545 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
3546
3547         * MimeIcon.cs: Improved handling for reading default icons when
3548           using gnome (2.16 made it necessary). Check and read svg icons
3549           first, then 48x48 and then 32x32 icons.
3550
3551 2006-08-31  Chris Toshok  <toshok@ximian.com>
3552
3553         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
3554         visible.
3555
3556         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
3557         ProcessKeyPreview.  Fixes part of #77806.
3558
3559         * DataGrid.cs: big patch.
3560
3561         - revert the queueing up of DataSource/DataMember if inside
3562         BeginInit/EndInit calls.  That's not the way the datagrid achieves
3563         its delayed databinding.  Instead, call SetDataSource in
3564         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
3565         #78811.
3566
3567         - Also, it wasn't mentioned in #78811, but the test case exhibits
3568         behavior that was lacking in our datagrid implementation - Columns
3569         that have mapping names that don't exist in the datasource's
3570         properties aren't shown.  Yuck.  To fix this I added the bound
3571         field to the column style, and basically any calculation to figure
3572         out anything about columns uses a loop to find the bound columns.
3573         still need to investigate if I can cache an array of the bound
3574         columns or if the indices must be the same.
3575
3576         - When setting CurrentCell, we no longer abort if the cell being
3577         edited was in the add row.  This fixes the other part of #77806.
3578
3579         - The new code also fixes #78807.
3580         
3581         * ThemeWin32Classic.cs: perpetrate the same disgusting
3582         column.bound field hack, and only render bound fields.
3583
3584 2006-08-31  Chris Toshok  <toshok@ximian.com>
3585
3586         * DataGridColumnStyle.cs: add bound field.  this field is true if
3587         the datasource has a property corresponding to the mapping name.
3588
3589         * DataGridTableStyle.cs: set the bound field on the column styles
3590         depending on whether or not we have a column for that property.
3591
3592 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
3593
3594         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
3595           splitter control (fixes #79228)
3596
3597 2006-08-31  Chris Toshok  <toshok@ximian.com>
3598
3599         * DataGridColumnStyle.cs: we need to delay the assignment of
3600         property descriptor until the last possible moment due to the lazy
3601         databinding stuff in the datagrid.  Also, fix the exceptions
3602         thrown by CheckValidDataSource to match MS.
3603
3604 2006-08-31  Jackson Harper  <jackson@ximian.com>
3605
3606         * Form.cs: When activated select the active control, if there is
3607         no active control, we select the first control.
3608         * XplatUIX11.cs: If there is no focus control when we get a
3609         FocusIn event, find the toplevel form and activate it.  This
3610         occurs when you popup a window, it becomes the focus window, then
3611         you close that window, giving focus back to the main window.
3612
3613 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3614
3615         * MonthCalendar.cs: 
3616         * ThemeWin32Classic.cs: Cache Font in bold style, as well
3617         as StringFormat with Center alignments in MonthCalendar,
3618         instead of creating new ones when drawing the control. 
3619         Also, draw the month name in bold style.
3620
3621 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
3622
3623         * Control.cs:
3624           - PerformLayout(): It would seem MS performs the fill even if the 
3625             control is not visible (part of #79218 fix)
3626           - ResetBackColor(): Use the setter to reset the color, to allow
3627             overriders to catch the change.
3628         * Form.cs:
3629           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
3630           - CreateHandle(): dito (part of $79218 fix)
3631           - Don't set an icon if we have a dialog
3632         * ScrollableControl.cs:
3633           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
3634           - ScrollIntoView(): No need to scroll if control is already visible
3635             (resolves fixme and fixes #79218)
3636
3637 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3638
3639         * MonthCalendar.cs: Change proportions in SingleMonthSize
3640         to match the aspect of the original control.
3641
3642 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
3643
3644         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
3645           get updated when they get maximized.
3646
3647 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
3648
3649         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
3650
3651 2006-08-29  Chris Toshok  <toshok@ximian.com>
3652
3653         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
3654
3655 2006-08-29  Jackson Harper  <jackson@ximian.com>
3656
3657         * TreeView.cs: Need to track selected node and highlighted node,
3658         they aren't always the same thing, when the mouse is down on a
3659         node it is hilighted, but not selected yet.
3660         - Do the HideSelection stuff right
3661         - Need to focus on rbutton mouse down. And redraw selection when
3662         right click is mouse upped.
3663
3664 2006-08-29  Mike Kestner  <mkestner@novell.com>
3665
3666         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
3667         when SubItems.Count < Columns.Count.  [Fixes #79167]
3668
3669 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
3670
3671         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
3672
3673 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
3674
3675         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
3676           from X. Only send based on ConfigureNotify if we don't have the
3677           correct location in hwnd (if the window manager moved us)
3678
3679 2006-08-28  Mike Kestner  <mkestner@novell.com>
3680
3681         * ListView.cs: remove a TODO. 
3682         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
3683         [Fixes ListView part of #79166]
3684
3685 2006-08-28  Mike Kestner  <mkestner@novell.com>
3686
3687         * ListView.cs: move wheel handler to parent since it is focused
3688         instead of the item_control now.  [Fixes #79177]
3689
3690 2006-08-28  Mike Kestner  <mkestner@novell.com>
3691
3692         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
3693         when the control is focused. [Fixes #79171]
3694
3695 2006-08-28  Mike Kestner  <mkestner@novell.com>
3696
3697         * ListView.cs: size the item and header controls for empty and
3698         unscrollable views.
3699         * ThemeWin32Classic.cs: draw disabled backgrounds.
3700         [Fixes #79187]
3701
3702 2006-08-28  Chris Toshok  <toshok@ximian.com>
3703
3704         * Form.cs: remove unused "active_form" static field.
3705
3706         * Hwnd.cs: lock around accesses to static windows collection.
3707
3708         * Application.cs: lock threads in Exit ().
3709
3710 2006-08-28  Chris Toshok  <toshok@ximian.com>
3711
3712         * NativeWindow.cs: lock around accesses to window_collection.
3713         
3714 2006-08-28  Chris Toshok  <toshok@ximian.com>
3715
3716         * Control.cs: err, fix this the right way, by locking on controls
3717         when using it.  not by making it synchronized.
3718
3719 2006-08-28  Chris Toshok  <toshok@ximian.com>
3720
3721         * Control.cs: make the static "controls" field synchronized, as it
3722         gets updated from multiple threads.
3723
3724 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
3725
3726         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
3727           Prevent other threads from exiting when calling thread sets quit state.
3728         * XEventQueue.cs: Added PostQuitState property
3729
3730 2006-08-27  Chris Toshok  <toshok@ximian.com>
3731
3732         * AsyncMethodData.cs: add a slot for the window handle.
3733
3734         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
3735         window (the destination control's window, not the foster window).
3736
3737         * Control.cs (BeginInvokeInternal): store the window's handle in
3738         the AsyncMethodData.
3739         
3740
3741 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
3742
3743         * XplatUIX11.cs:
3744           - PostQuitMessage: Removed resetting S.D display handle, we might have
3745             another loop started after calling PostQuitMessage (Fixes #79119)
3746           - Created destructor to reset S.D handle
3747
3748 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
3749
3750         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
3751
3752 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3753
3754         * TextControl.cs (Insert): Update the caret position even if we don't
3755           have a handle yet, just don't call the driver in that case.
3756         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
3757           to the end of the new selection text (Fixes #79184)
3758
3759 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3760
3761         * Form.cs (Activate): Only activate if the handle is created)
3762         * Control.c:
3763           - Mark window as invisible when it's disposed
3764           - Check if window handle is created when setting window visible, 
3765             instead of relying just on the is_created variable
3766           - Check if object is disposed when creating the control (Fixes #79155)
3767
3768 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3769
3770         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
3771           when allowing layout again. Otherwise we re-generate the anchoring 
3772           distance to the border again and actually alter what the user wanted
3773           This is ugly, it'd be better if we used DisplayRectangle instead of
3774           ClientRectangle for Control.UpdateDistances, but that causes us to
3775           have other problems (initial anchoring positons would be wrong)
3776           (Fixes #78835)
3777
3778 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3779
3780         * Control.cs:
3781           - The size and location setters shouldn't go directly to 
3782             SetBoundsCore, but to SetBounds, which triggers layout on the
3783             parent, then calls SetBoundsCore. (Related to fix for #78835)
3784           - SetBounds: Moved actual location update code into this function
3785             from SetBoundsCore, to match MS. Added call to PerformLayout if
3786             we have a parent (to trigger resizing of anchored parents if the 
3787             child size has changed (see testcase for #78835) 
3788         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
3789           new control code
3790         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
3791
3792 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3793
3794         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
3795           System.Drawing when a toplevel window gets closed; there might
3796           be other toplevel windows belonging to the same app (Fixes #78052)
3797
3798 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
3799
3800         * FileDialog.cs: After reading FileDialog settings from mwf_config
3801           use Desktop prefix only if a real folder doesn't exist anymore.
3802         * FontDialog.cs: Added char sets.
3803           It is now possible to select the font, size or style with the
3804           textboxes.
3805
3806 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
3807
3808         * PrintPreviewDialog.cs: Use assembly name constants.
3809
3810 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3811
3812         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
3813           scrollbar from whacking it's buttons)
3814
3815 2006-08-24  Chris Toshok  <toshok@ximian.com>
3816
3817         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
3818         in this patch (aggregating setting Left/Top/Width/Height to
3819         setting Bounds on the scrollbars), but the crux of the fix is in
3820         Recalculate, where we scroll by the remaining scroll_position if
3821         we're hiding a scrollbar.  The 2*$5 reward in the comment is
3822         serious.
3823
3824 2006-08-24  Jackson Harper  <jackson@ximian.com>
3825
3826         * MdiClient.cs:
3827         * MdiWindowManager.cs: If the form is made a non-mdi window we
3828         need to remove the form closed event so that closing forms works
3829         correctly.
3830
3831 2006-08-24  Jackson Harper  <jackson@ximian.com>
3832
3833         * Control.cs: Make IsRecreating internal so that the driver can
3834         check it
3835         - Temporarily remove the Hide when controls are removed, its
3836         making a whole bunch of things not work because visibility isn't
3837         getting reset elsewhere correctly
3838         * Form.cs: Need to do a full handle recreation when the mdi parent
3839         is set.
3840         * XplatUIX11.cs: If we are recreating handles don't dispose the
3841         HWNDs.  What was happening is the handles were being recreated in
3842         SendWMDestroyMessages, but then flow continued on in that method
3843         and destroyed the new handles.
3844
3845 2006-08-23  Jackson Harper  <jackson@ximian.com>
3846
3847         * Form.cs: MdiClient is always at the back of the bus
3848         * Control.cs: When the order of items in the collection is changed
3849         we need to reset the all_controls array
3850         - do the same sorta setup thats done when adding a control when a
3851         control is set on the collection.
3852
3853 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3854
3855         * TextBoxBase.cs (get_Text): Return an empty array if our document
3856           is empty (fixes #79052)
3857
3858 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3859
3860         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
3861           on WM_SYSCHAR messages (fixes #79053)
3862
3863 2006-08-23  Chris Toshok  <toshok@ximian.com>
3864
3865         * DataGrid.cs: fix flickering when scrolling vertically.
3866
3867 2006-08-23  Chris Toshok  <toshok@ximian.com>
3868
3869         * DataGrid.cs (EndEdit): only invalidate the row header when we
3870         need to.
3871
3872 2006-08-23  Chris Toshok  <toshok@ximian.com>
3873
3874         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
3875         methods.  fixes the flicker when scrolling around.
3876
3877 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3878
3879         * FileDialog.cs: Making sure the control is created before we get a 
3880           chance to use it with BeginInvoke (Fixes #79096)
3881
3882 2006-08-23  Chris Toshok  <toshok@ximian.com>
3883
3884         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
3885         width to use when painting the rows.
3886
3887 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3888
3889         * TextBoxBase.cs:
3890           - Throw ArgumentException if a negative value is passed to SelectionLength
3891           - Update the selection end if start is moved. end needs to be always
3892             after start. (Fixes #79095)
3893           - Track selection length; MS keeps the selection length even if start
3894             is changed; reset on all other operations affection selection
3895
3896 2006-08-22  Jackson Harper  <jackson@ximian.com>
3897
3898         * TreeView.cs: Make sure both scrollbars get displayed and sized
3899         correctly when the other bar is visible.
3900         - Use the original clip rectangle for checking if the area between
3901         the two scrollbars is visible, not the viewport adjusted clipping
3902         rectangle.
3903
3904 2006-08-22  Jackson Harper  <jackson@ximian.com>
3905
3906         * Binding.cs: We don't use IsBinding because it requires the
3907         control to be created, which really shouldn't be necessary just to
3908         set a property on the control.
3909
3910 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3911
3912         * ComboBox.cs: Some CB.ObjectCollection methods must throw
3913         ArgumentNullReferenceException when the argument is null.
3914
3915 2006-08-21  Jackson Harper  <jackson@ximian.com>
3916
3917         * Timer.cs: Track the thread that the timer is started in (NOT
3918         CREATED), this way messages for it will only be triggered on its
3919         queue.
3920         * XEventQueue.cs: Track the timers here, this makes timers per
3921         thread, like MS.
3922         * XplatUIX11.cs: The timers are moved to the XEventQueue.
3923
3924 2006-08-19  Chris Toshok  <toshok@ximian.com>
3925
3926         * XplatUIX11.cs: after further communication with pdb, we get the
3927         best of both worlds.  SetZOrder working for un-Mapped windows, and
3928         no X errors for un-mapped windows.
3929
3930 2006-08-19  Chris Toshok  <toshok@ximian.com>
3931
3932         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
3933         as it was causing pdn toolbars to not have the correct stacking.
3934
3935 2006-08-18  Mike Kestner  <mkestner@novell.com> 
3936
3937         * ListView.cs : guard against negative ClientArea.Width in scrollbar
3938         calculation.  Not sure why control should ever be setting a negative
3939         width though.  Fixes #78931.
3940
3941 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3942
3943         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
3944         null items in ObjectCollection class.
3945         * ListBox.cs.: Likewise.
3946
3947 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
3948
3949         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
3950           as the base method in ThemeWin32Classic should work fine.
3951           Fixed bug #78607.
3952
3953 2006-08-18  Jackson Harper  <jackson@ximian.com>
3954
3955         * Binding.cs: When validating if the value entered doesn't convert
3956         properly reset to the old value.
3957         * RadioButton.cs: Don't fire click when we get focus.
3958
3959 2006-08-18  Jackson Harper  <jackson@ximian.com>
3960
3961         * FileDialog.cs: Paint the selection on the directory combobox the
3962         same way as on MS. 
3963
3964 2006-08-17  Jackson Harper  <jackson@ximian.com>
3965
3966         * ErrorProvider.cs: Don't allow the error control to be selected.
3967         * Control.cs: Don't send the SetFocus messages, the control
3968         activation will do this, and if we do it blindly here validation
3969         does not work.
3970
3971 2006-08-17  Jackson Harper  <jackson@ximian.com>
3972
3973         * Control.cs:
3974         * ContainerControl.cs: Make validation events fire in the correct
3975         order.  TODO: For some reason the first validation event is not
3976         getting fired.
3977
3978 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3979
3980         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
3981
3982 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3983
3984         * ComboBox.cs : implement scroll wheel support for popped-down
3985         state. Fixes #78945. 
3986
3987 2006-08-17  Jackson Harper  <jackson@ximian.com>
3988
3989         * TreeView.cs: Specify treeview actions (old patch that didn't get
3990         committed for some reason).
3991         - Don't let the mouse wheel scroll us too far.  Just want to make
3992         the bottom node visible, not scroll it all the ways to the top.
3993
3994 2006-08-17  Jackson Harper  <jackson@ximian.com>
3995
3996         * XplatUIX11.cs: Mouse wheel events go to the focused window.
3997
3998 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3999
4000         * ComboBox.cs : don't do mouseover selection in simple mode.
4001
4002 2006-08-16  Jackson Harper  <jackson@ximian.com>
4003
4004         * Form.cs: Fire the closing events for all the mdi child windows
4005         when a window is closed.  If the cancel args are set to true, the
4006         main window still gets the event fired, but it doesn't not close.
4007         * MdiWindowManager.cs: Do this closing cleanup in a Closed
4008         handler, instead of when the button is clicked, so cancelling the
4009         close works correctly.
4010         * ComboBox.cs: Send the mouse down to the scrollbar.
4011
4012 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4013
4014         * ListBox.cs: When passing 'null' to SelectedItem,
4015         set SelectedIndex to -1, to unselect items. This is the
4016         observed behaviour in .Net.
4017
4018 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
4019
4020         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
4021           MS flags saying there won't be any. (fixes #78800)
4022         * Control.cs (HandleClick): Made virtual
4023
4024 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
4025
4026         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
4027           cultures. Fixed bug #78399.
4028
4029 2006-08-16  Jackson Harper  <jackson@ximian.com>
4030
4031         * Form.cs: Use the MdiClients MdiChildren property to access
4032         MdiChildren instead of creating the array from the child controls.
4033         * MdiClient.cs: Maintain a separate array of the mdi children, so
4034         that insertion order is maintained when the Z-order is changed.
4035
4036 2006-08-16  Mike Kestner  <mkestner@novell.com> 
4037
4038         * ListView.cs : add an ItemComparer and default to it for sorting.
4039         Fixes #79076, but sorting needs a complete overhaul to be compat with
4040         MS.
4041
4042 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4043
4044         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
4045
4046 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4047
4048         * Hwnd.cs (Mapped): Properly traverse the tree
4049
4050 2006-08-15  Chris Toshok  <toshok@ximian.com>
4051
4052         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
4053         pass manager.Current.GetType() to ParseData.  It has to be the
4054         property type.  So, hold off doing the ParseData until we're in
4055         SetPropertyValue where we know the type.  This fixes the crash in
4056         #78821 but the textbox is still empty.
4057
4058 2006-08-15  Chris Toshok  <toshok@ximian.com>
4059
4060         * DataGrid.cs:
4061         - when we're scrolling, only call Edit() again if the
4062         current cell is still unobscured. Fixes bug #78927.
4063         - when handling mousedown on a cell, ensure the cell is visible
4064         before calling Edit.
4065         - remove the properties from DataGridRow, and remove the
4066         DataGridParentRow class altogether.
4067         
4068
4069 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4070
4071         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
4072           fire OnTextChanged by ourselves. There's no point calling base,
4073           we don't set the base value anywhere else. Fixes #78773.
4074
4075 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4076
4077         * ListBox.cs: Call CollectionChanged when modifying
4078         an item from Items indexer, to update the actual items
4079         in the list box.
4080
4081 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4082
4083         * PrintDialog.cs: Small fixes for focus and a pair of checks,
4084         to match .Net behaviour.
4085
4086 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4087
4088         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
4089
4090 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
4091
4092         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
4093
4094 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
4095
4096         * MessageBox.cs: Prevent potential NRE exception.
4097         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
4098
4099 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4100
4101         * MessageBox.cs: Calculate the owner of a messagebox, also make
4102           it topmost. Fixes #78753
4103
4104 2006-08-14  Chris Toshok  <toshok@ximian.com>
4105
4106         * XplatUIX11.cs: A couple of fixes so that metacity will let us
4107         programmatically move windows.  first, set the PPosition hint as
4108         well as the USPosition hint.  Second include some code from pdb
4109         that sets the window type to NORMAL when we set the transient for
4110         hint.  This is because, in the absence of a window type, metacity
4111         thinks any window with TransientFor set is a dialog, and refuses
4112         to let us move it programmatically.  fascists.
4113
4114 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
4115
4116         * XplatUIX11.cs: When setting normal hints, take into consideration
4117           an different hints previously set so we don't delete them (fixes #78866)
4118
4119 2006-08-12  Chris Toshok  <toshok@ximian.com>
4120
4121         * ToolBarButton.cs: make Layout return a boolean, if something to
4122         do with the button's layout changed.
4123
4124         * ToolBar.cs:
4125         - add another parameter to Redraw, @force, which all existing
4126           calls set to true.
4127         - make the Layout function return a boolean which is true if the
4128           layout has actually changed.  Redraw now uses this (and @force)
4129           to determine when to invalidate.  At present the only place
4130           where @force can be false is the call from OnResize, when
4131           background_image == null.  So, resizing a toolbar when the
4132           layout doesn't change results in no drawing.
4133
4134 2006-08-12  Chris Toshok  <toshok@ximian.com>
4135
4136         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
4137         the VScrollBar and HScrollbar reversed.  oops.
4138
4139         * DataGrid.cs: fix the logic that assigns sizes to the implicit
4140         scrollbars.  we were assigning them twice (once in
4141         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
4142         therefore causing two scrollbar resizes (and redraws?) to happen
4143         per grid resize.
4144
4145 2006-08-12  Chris Toshok  <toshok@ximian.com>
4146
4147         * ToolBarButton.cs: redraw the entire button if the theme tells us
4148         to.
4149
4150         * Theme.cs: add ToolBarInvalidateEntireButton.
4151
4152         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
4153         buttons, just the border.
4154
4155         * ThemeNice.cs: redraw the entire toolbar button since we need to
4156         draw the highlight image.
4157
4158         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
4159         we need to redraw the entire button (not just the border).
4160
4161 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4162
4163         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
4164           for vertical bars. Fixes the mismatches shown by #78513
4165
4166 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
4167
4168         * FileDialog.cs: If a saved/remembered path doesn't exist
4169           anymore, fall back to "Desktop".
4170
4171 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
4172
4173         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
4174           parent. It's apparently legal to not have one
4175         * XplatUIX11.cs:
4176           - SetZOrder: Don't try to set Z-Order on an unmapped window
4177           - CreateWindow: 0,0 are legal coordinates for a window. don't move
4178             it unless the coordinates are negative
4179
4180 2006-08-10  Mike Kestner  <mkestner@novell.com>
4181
4182         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
4183         when setting to null per msdn docs.  Fixes #78854.
4184
4185 2006-08-10  Chris Toshok  <toshok@ximian.com>
4186
4187         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
4188         flickering by setting a clip rectangle on the Graphics when we
4189         need to redraw just a particular menuitem.  Also, rename "OnClick"
4190         to "OnMouseDown" to reflect what it actually is.
4191         
4192         * Form.cs: track the OnMouseDown change.
4193
4194 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
4195
4196         * CommonDialog.cs: Properly inherit the CreateParams from the form
4197           and only change what we need. Fixes #78865
4198
4199 2006-08-10  Chris Toshok  <toshok@ximian.com>
4200
4201         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
4202         flickering in flat mode (and most of the flickering in general) by
4203         only invalidating the button border (and not the entire rectangle)
4204         when the state changes.  A couple of cases still flicker:
4205         ToggleButtons, and the dropdown arrow case when the user mouse
4206         ups.
4207
4208 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
4209
4210         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
4211           for german keyboards. Numlock state shouldn't affect the behaviour
4212           of the Del key. Fixes bug #78291.
4213
4214 2006-08-10  Chris Toshok  <toshok@ximian.com>
4215
4216         * ListControl.cs: remove the items.Clear line from BindDataItems,
4217         as this is the first thing done by both subclasses in their
4218         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
4219         passed -1, refresh the list.  This gets databinding working when
4220         the datasource is set on the list before the datasource is
4221         populated (as in wf-apps/ReportBuilder.)
4222
4223         * ComboBox.cs: remove the argument to BindDataItems.  This call
4224         should really go away, and be initiated by the ListControl code.
4225
4226         * ListBox.cs: same.
4227
4228 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4229
4230         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
4231           if no data is in the document when the control is displayed
4232
4233 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
4234
4235         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
4236           yes (fixes #78806)
4237         * TextControl.cs: 
4238           - PositionCaret: Allow positioning of caret but don't call methods 
4239             requiring a handle if the window isn't created yet
4240           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
4241           - owner_HandleCreated: Don't position the caret, just update it's 
4242             location. User might have already set a different position
4243
4244 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
4245
4246         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
4247           windows. Screws up the returned coordinates for child windows. 
4248           Fixes #78825. I'm hoping this doesn't break something, since the
4249           code was explicitly put in 8 months ago, but no bug was attached.
4250           Menus still seem to work properly.
4251
4252 2006-08-08  Chris Toshok  <toshok@ximian.com>
4253
4254         * DataGrid.cs: make BeginInit/EndInit actually do what they're
4255         supposed to do - delay data binding until the EndInit call.  Also,
4256         make the table style collection's CollectionChangeAction.Refresh
4257         work properly.
4258
4259         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
4260         (with action = Refresh) when a consituent table's MappingName is
4261         changed.
4262
4263 2006-08-08  Chris Toshok  <toshok@ximian.com>
4264
4265         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
4266         Invalidate, since changing the text can change the size of the all
4267         toolbar buttons.
4268
4269 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4270
4271         * Form.cs (AddOwnedForm): Still need to add the form to our listif
4272           we don't have it yet
4273
4274 2006-08-08  Chris Toshok  <toshok@ximian.com>
4275
4276         * PrintControllerWithStatusDialog.cs: don't .Close() the status
4277         dialog, as this causes X errors later on, since we actually
4278         destroy the window.  Instead, .Hide() it.
4279
4280 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
4281
4282         * ComboBox.cs: Added focus reflection for popup window
4283         * XplatUIX11.cs: 
4284           - Removed transient setting for non-app windows for now, not sure it
4285             was needed
4286           - Fixed logic checking if we have captions when deciding 
4287             override_redirect, WS_CAPTION is two bits and a 0 check was not
4288             sufficient
4289           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
4290             complicated
4291         * Form.cs: 
4292           - AddOwnedForm: Don't just add the form to the list, call the property
4293             to ensure the driver is informed about the ownership as well
4294           - CreateHandle: Set the TopMost status in the driver if we have an owner
4295         * XplatUI.cs: Fixed debug statement
4296
4297 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
4298         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4299           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
4300           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
4301           TrackBarRenderer.cs: Make constructor private.
4302         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
4303         * ProfessionalColorTable.cs: Make properties virtual.
4304
4305 2006-08-06  Duncan Mak  <duncan@novell.com>
4306
4307         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
4308         is not changing.
4309
4310 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4311         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4312           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
4313           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
4314           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
4315           Initial import of new 2.0 classes.
4316
4317 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4318         * Application.cs: Add 2.0 VisualStyles properties.
4319
4320 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4321         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4322           XplatUIX11.cs: Create property to allow access to existing private
4323           variable "themes_enabled"
4324
4325 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4326
4327         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
4328         file size, as otherwise our class libraries fail using windows. Fixes
4329         bug #78759.
4330
4331 2006-08-04  Jackson Harper  <jackson@ximian.com>
4332
4333         * Form.cs:
4334         * XplatUIX11.cs: Move the toolwindow window manager creation into
4335         the X11 driver, this way on win32 we can let windows create/handle
4336         the toolwindows.
4337
4338 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4339
4340         * PrintDialog.cs: Remove some redundant checks, add some others,
4341         clean some code, and move the focus to the text boxes when the
4342         values are incorrect.
4343
4344 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
4345
4346         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
4347
4348 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4349
4350         * NumericUpDown.cs: Setting the Minimum and Maximum is now
4351           handled correctly. Fixes bug #79001.
4352
4353 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4354
4355         * PrintDialog.cs: The "Copies" numeric up down must have
4356         set the Minimum property to 1; only if the value is bigger
4357         than 1, activate "Collate" check box. This is the behaviour of .Net.
4358         Also modify the Document elements only if it is not null.
4359
4360 2006-08-03  Jackson Harper  <jackson@ximian.com>
4361
4362         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
4363         length. (We have a larger array then actual node count).
4364                 
4365 2006-08-03  Jackson Harper  <jackson@ximian.com>
4366
4367         * ComboBox.cs: Don't show selection by default.
4368         - The SelectAll isn't needed here, since the focus code should do
4369         that
4370         - DDL style lists to manual selection drawing, so when they
4371         get/lose focus they have to invalidate.
4372
4373 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
4374
4375         * TextBoxBase.cs: Don't always show all selections by default.
4376
4377 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
4378         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
4379           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
4380           Fixed various typos.
4381
4382 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4383
4384         * Control.cs: Removing the controls in a ControlCollection with
4385           Clear now hides the controls as expected. Fixes bug #78804. 
4386
4387 2006-08-03  Jackson Harper  <jackson@ximian.com>
4388
4389         * Control.cs: Revert previous focus patch, it breaks reflector.
4390
4391 2006-08-03  Jackson Harper  <jackson@ximian.com>
4392
4393         * ComboBox.cs: Cleanup selection and focus with the combobox.
4394         This also eliminates some duplicated keyboard code, since now
4395         everything is handled by the main class.
4396         - Make list selection work on mouse up instead of down, to match
4397         MS.
4398
4399 2006-08-02  Jackson Harper  <jackson@ximian.com>
4400
4401         * Control.cs: Setting focus needs to go through the whole
4402         selection mechanism.
4403
4404 2006-08-02  Chris Toshok  <toshok@ximian.com>
4405
4406         * PrintPreviewDialog.cs: change MinimumSize to use
4407         base.MinimumSize so it works.
4408
4409 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
4410
4411         * TextControl.cs:
4412           - UpdateCaret: Added sanity check in case caret isn't defined yet
4413           - Line.Delete: Now updating selection and caret markers if we're
4414             transfering a node (Properly fixes #78323)
4415           - SetSelectionEnd: Added sanity check
4416         * TextBoxBase.cs: Removed broken attempt to fix #78323
4417
4418 2006-08-01  Chris Toshok  <toshok@ximian.com>
4419
4420         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
4421         Close() call is handled in Form, not here.
4422
4423 2006-08-01  Chris Toshok  <toshok@ximian.com>
4424
4425         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
4426         layout/rendering.
4427
4428         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
4429         for sizes < 100% zoom.  The code now aggressively attempts to keep
4430         from calling document.Print (), and tries not to use the scaling
4431         g.DrawImage whenever possible (it still does if you scale to >
4432         100%, since usually that involves huge images).
4433
4434         * PrintPreviewControl.cs: hook up the close button.
4435
4436 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
4437         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
4438           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
4439           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
4440           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
4441           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
4442           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
4443           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
4444           Removed [Serializable] for 2.0 Event Handlers.
4445
4446 2006-07-31  Jackson Harper  <jackson@ximian.com>
4447
4448         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
4449         * TextControl.cs: Uncomment out the body of this method.
4450
4451 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
4452
4453         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
4454           standard cursors.
4455
4456 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4457
4458         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
4459           that embed TextBox and need selections visible even if textbox is not
4460           focused to enforce that behaviour.
4461         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
4462           selection drawing
4463
4464 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4465
4466         * TextControl.cs:
4467           - Added new SetSelectionStart/SetSelectionEnd overloads
4468           - Fixed viewport width assignment to be accurate
4469           - Adjusted alignment line shift calculations to allow cursor on right
4470             aligned lines to be always visible at the right border (like MS)
4471         * TextBoxBase.cs:
4472           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
4473           - TextBoxBase_SizeChanged: recalculating canvas on size changes
4474           - CalculateScrollBars: Use ViewPort size instead of window size, to
4475             properly consider space occupied by the border and scrollbars 
4476             (Fixes #78661)
4477           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
4478             calculations; no longer leaves artifacts
4479           - CaretMoved: Adjusted window scrolling to match MS and fixed several
4480             calculation bugs (Still missing right/center align calculations)
4481
4482 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
4483
4484         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
4485           use of both scroll rect and clip rect, as they do the same.
4486
4487 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4488
4489         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
4490           in the event handler (fixes #78912)
4491
4492 2006-07-31  Chris Toshok  <toshok@ximian.com>
4493
4494         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
4495         grid.ListManager.Count, since grid.ListManager might be null.
4496         This of course begs the question "why are we drawing rows for a
4497         grid with no list manager (and therefor no rows)?"  Fixes the
4498         crash in bug #78929.
4499
4500 2006-07-31  Chris Toshok  <toshok@ximian.com>
4501
4502         * RelatedPropertyManager.cs: Don't always chain up to the parent
4503         ctor.  instead, call SetDataSource if the parent's position is !=
4504         -1.  Fixes the crash in #78822.
4505
4506 2006-07-31  Chris Toshok  <toshok@ximian.com>
4507
4508         * DataGrid.cs (get_ListManager): use field instead of property
4509         accessors for datasource and datamember.
4510         (RowsCount): make internal again.
4511         (OnMouseDown): end edits before resizing columns/rows.
4512         (OnMouseUp): restart edits after resizing columns/rows.
4513
4514 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
4515
4516         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
4517           This fixes the situation where the last set cursor is displayed
4518           whenever the mouse is over scrollbars.
4519
4520 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4521
4522         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
4523         Document properties, as well as initial values.
4524
4525 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
4526
4527         * XplatUIWin32.cs (SetBorderStyle): Setting both border
4528           and ClientEdge results in a 3-pixel border, which is
4529           wrong.
4530
4531 2006-07-28  Jackson Harper  <jackson@ximian.com>
4532
4533         * TreeNodeCollection.cs: Fix the clear method.
4534         - Fix the Shrink also
4535
4536 2006-07-27  Jackson Harper  <jackson@ximian.com>
4537
4538         * TreeView.cs: Make sure the visible order is computed when we
4539         attempt to size the scrollbars (for trees that mess with the
4540         scrolling when they shouldn't.
4541         - Make sure to give the scrollbars valid values.
4542
4543 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4544
4545         * XplatUIX11.cs: Move motion compression code to where it
4546           has less performance impact
4547
4548 2006-07-26  Jackson Harper  <jackson@ximian.com>
4549
4550         * UpDownBase.cs: When the control is selected make the child
4551         controls non selectable, so that a click on them won't do a
4552         focus/unfocus cycle.
4553         - Don't give focus to the text box when the spinner is selected.
4554         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
4555
4556 2006-07-26  Chris Toshok  <toshok@ximian.com>
4557
4558         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
4559         satisfied with this solution.  If the bitmaps are small, we should
4560         just cache them in the PrintPreviewDialog and draw them here.
4561         Also, the layout is broken for the 2-up and 3-up cases.
4562
4563         * Theme.cs: add PrintPReviewControlPaint.
4564
4565         * PrintPreviewDialog.cs: first pass implementation.
4566
4567         * PrintPreviewControl.cs: first pass implementation.  No
4568         scrollbars yet.
4569
4570         * PrintDialog.cs: only validate fields if that particular portion
4571         of the UI is enabled.  Also, set the document's controller to a
4572         PrintControllerWithStatusDialog wrapping the document's print
4573         controller.
4574
4575         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
4576         bring up a SaveFileDialog (i hope we don't want to match the
4577         behavior of the crappy windows file entry) and set the
4578         PrinterSettings.PrintFileName accordingly.
4579
4580 2006-07-26  Jackson Harper  <jackson@ximian.com>
4581
4582         * ContainerControl.cs: Add a field that disables auto selecting
4583         the next control in a container when the container is activated.
4584         * UpDownBase.cs: Don't select the text box when the up down is
4585         selected.
4586
4587 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4588
4589         * XEventQueue.cs: Added methods for peeking (used for compression
4590           of successive events)
4591         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
4592           mouse move events (fixes #78732)
4593
4594 2006-07-25  Jackson Harper  <jackson@ximian.com>
4595
4596         * UpDownBase.cs: Use an internal class for the textbox so that we
4597         can control focus.  the updown control should always have focus,
4598         if either the text area or the buttons are clicked.
4599         - Send the key messages to the textbox, since it never actually
4600         has focus
4601         - Activate and decativate the textbox caret.
4602
4603 2006-07-24  Jackson Harper  <jackson@ximian.com>
4604
4605         * Control.cs: Use the directed select when selecting a control,
4606         this way the container controls override will get called and the
4607         whole ActiveControl chain will get triggered.  TODO: probably need
4608         to make sure this gets done everywhere instead of the old
4609         Select(Control).
4610         * ContainerControl.cs: Implement the directed Select method to
4611         find and activate the correct child control.    
4612         
4613 2006-07-22  Mike Kestner  <mkestner@novell.com>
4614
4615         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
4616         menu handling code so that clicks without a grab work too.
4617         [Fixes #78914]
4618
4619 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
4620
4621         * FileDialog.cs: Enable the BackButton when dirstack has one element.
4622           Added some small optimizations.
4623
4624 2006-07-21  Matt Hargett  <matt@use.net>
4625
4626         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
4627
4628 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
4629
4630         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
4631           tests pass and match MS in some strange border cases.
4632
4633 2006-07-21  Chris Toshok  <toshok@ximian.com>
4634
4635         * ThemeWin32Classic.cs: handle drawing of the relation links and
4636         parent row buttons.
4637
4638         * Theme.cs: change args to DataGridPaintParentRow.
4639
4640         * DataGrid.cs: Don't use controls for the relation links and
4641         parent buttons, so we have to handle all their interactions in
4642         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
4643         when we're navigating through child tables, so we can reinstate
4644         selection, expanded state, current cell, etc.
4645
4646 2006-07-20  Chris Toshok  <toshok@ximian.com>
4647
4648         * ToolBar.cs: When we redraw a button, for whatever reason,
4649         there's no reason to redraw the entire toolbar.  Also, don't call
4650         Control.Refresh from within Redraw, as it's much heavier than
4651         Invalidate (which is really what we want).
4652
4653 2006-07-20  Chris Toshok  <toshok@ximian.com>
4654
4655         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
4656         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
4657         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
4658         traces from within a debug IBindingList datasource
4659         (in mono/winforms/datagrid) for *days*, I've finally gotten things
4660         to work in a similar fashion.
4661
4662 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4663
4664         * ListBox.cs: Don't call Sort () when setting 
4665         the Sorted property to false (avoid an unnecessary sort).
4666
4667 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4668
4669         * ListControl.cs: DataSource should throw an ArgumentException
4670         instead of a normal exception when the argument is not of the 
4671         correct type.
4672
4673 2006-07-20  Mike Kestner  <mkestner@novell.com>
4674
4675         * Control.cs: add InternalPreProcessMessage to allow us to steal
4676         key events before MWF gets its paws on them.  Adapted from a
4677         suggestion by eno.
4678         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
4679         up/down/left/right navigation. Override the new internal control
4680         method to steal the events since they never make it to WndProc.
4681         * ToolBarButton.cs: don't worry about pushed when setting hilight
4682         since the drawing code prefers pushed to hilight. Invalidate on 
4683         Hilight changes. Fixes #78547 and #78525.
4684
4685 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
4686
4687         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
4688           the canvas size. Fixes #78868
4689
4690 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
4691
4692         * Splitter.cs: Track requested split position until first layout
4693           is performed. Fixes #78871
4694
4695 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
4696
4697         * Application.cs: Removed code that forces 1.x for the version
4698           number if the version started with 0. Not sure why that code was
4699           there and I couldn't find any bugs that indicated we needed it.
4700           Fixes #78869
4701
4702 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
4703
4704         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
4705           ResetDefaults(), just write some output to the console until it's
4706           implemented. Fixes bug #78907 for now. Eliminated two warnings.
4707
4708 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
4709
4710         * PropertyGridView.cs: set StartPosition of drop down forms
4711         so they appear in correct initial spot.  Fixes #78190.
4712
4713 2006-07-19  Mike Kestner  <mkestner@novell.com>
4714
4715         * ThemeWin32Classic.cs: use parent background color when drawing
4716         flat toolbars.  Restructure the conditionals to make sure non-flat
4717         non-Divider toolbars are filled too.  Fixes #78837.
4718
4719 2006-07-19  Mike Kestner  <mkestner@novell.com>
4720
4721         * ListBox.cs: Sort on collection changes even if the handle
4722         isn't created yet.  Fixes #78813.
4723
4724 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4725
4726         * ListControl.cs: DisplayMember should never be null,
4727         and now we assign String.Empty when null is passed to it (this
4728         is the .Net way).
4729
4730 2006-07-17  Mike Kestner  <mkestner@novell.com>
4731
4732         * ListViewItem.cs: restructure Font and subitem Font handling 
4733         to hold a specific font and refer back to owner on null.
4734         Fixes #78761.
4735
4736 2006-07-17  Mike Kestner  <mkestner@novell.com>
4737
4738         * ToolBar.cs: bandaid for side-effect of previous patch which was
4739         discarding explicit heights for non-AutoSize toolbars.  Need to
4740         extend my format tester to deal with AutoSize=false. Fixes #78864.
4741
4742 2006-07-15  Jackson Harper  <jackson@ximian.com>
4743
4744         * LabelEditTextBox.cs:
4745         * TreeView.cs: Use a new LabelEdit class for node editing, this
4746         class automatically 'closes' itself when it gets the enter key or
4747         loses focus.
4748         - Use the client rectangle when setting the trees scrollbars, so
4749         border style is taken into account.
4750         
4751 2006-07-14  Jackson Harper  <jackson@ximian.com>
4752
4753         * TreeNode.cs:
4754         * TreeView.cs: Make the editing work similar to MSs, firing the
4755         events correctly and ending edits correctly.
4756
4757 2006-07-14  Mike Kestner  <mkestner@novell.com>
4758
4759         * ToolBarButton.cs:
4760         * ToolBar.cs: layout restructuring and redraw enhancements to support
4761         formatting changes gracefully, like setting TextAlign, ImageList, 
4762         ButtonSize, and Appearance.  Handles explicit button sizing quirks
4763         of the MS controls.  Things like flat toolbars ignoring button size
4764         but becoming constant sized at the largest button's size.  Normal
4765         toolbars with an image set cannot be shrunk smaller than the image,
4766         but text can be clipped/ignored.
4767         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
4768         is zero.  Seems like DrawString should be smart enough to not put
4769         anything on screen though. Also trim labels and ellipsize at the char
4770         boundary, not word.
4771         Fixes #78711 and #78483.
4772
4773 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4774
4775         * FolderBrowserDialog.cs: Disable "New Folder" button and
4776           "New Folder" contextmenu menuitem if a folder like "My Computer"
4777           is selected.
4778
4779 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4780
4781         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
4782         * FolderBrowserDialog.cs:
4783           - Use MWFConfig to store and read size and position settings
4784           - Added code to create a new folder (button or context menu).
4785             Use TreeView labeledit to change the name of the new folder.
4786
4787 2006-07-14  Jackson Harper  <jackson@ximian.com>
4788
4789         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
4790         when the tree is scrolled we end editing.
4791
4792 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4793
4794         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
4795           Down arrows
4796
4797 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
4798
4799         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
4800         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
4801         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
4802         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
4803         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
4804         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
4805         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
4806         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
4807         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
4808         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
4809         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
4810         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
4811         ListViewItemSelectionChangedEventHandler.cs,
4812         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
4813         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
4814         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
4815         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
4816         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
4817         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
4818         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
4819         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
4820         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
4821         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
4822         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
4823         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
4824         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
4825         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
4826         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
4827         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
4828         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
4829         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
4830         WebBrowserNavigatingEventHandler.cs, 
4831         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
4832
4833 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
4834
4835         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
4836         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
4837         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
4838         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
4839         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
4840         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
4841         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
4842         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
4843         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
4844         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
4845         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
4846         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
4847         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
4848         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
4849         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
4850         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
4851         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
4852         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
4853         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
4854         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
4855         ListViewItemStates.cs, MaskFormat.cs: Added
4856
4857 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
4858
4859         * PropertyGridView.cs: Fix keyboard navigation of drop down.
4860         Patch from eno for bug 78558.
4861         
4862 2006-07-13  Jackson Harper  <jackson@ximian.com>
4863
4864         * TreeView.cs: When an edit is finished make sure that the
4865         selected node is visible.
4866         - When setting the top/bottom use the scrollbars is_visible, so
4867         everything will be set correctly even if the tree isn't visible
4868         yet.
4869
4870 2006-07-13  Jackson Harper  <jackson@ximian.com>
4871
4872         * ComboBox.cs: Revert the item->index part of my previous patch.
4873         * TreeView.cs: Use LostFocus instead of Leave for detecting when
4874         the edit box has lost focus (duh).
4875         - Just make the edit box not visible when we get return, that will
4876         take the focus, which will call EndEdit
4877         * TreeNode.cs When we start editing, notify the treeview.
4878
4879 2006-07-12  Jackson Harper  <jackson@ximian.com>
4880
4881         * ComboBox.cs: Clear out old items before setting the item list.
4882         This prevents databound controls from having their items added
4883         twice.
4884         - Switch the combobox to use indices whereever possible instead of
4885         using Item's.  This allows usto navigate through lists that have
4886         more then one item with the same string value (ie a, b, b, a).
4887         - Scroll the listboxes scrollbar when a non visible item is
4888         highlighted
4889         - Allow keypress to cycle through all the possible values. For
4890         example if you have b1, b2, b3 and hold down the B key all the
4891         values will be cycled through.
4892         
4893 2006-07-12  Jackson Harper  <jackson@ximian.com>
4894
4895         * TextBoxBase.cs:
4896         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
4897         this using the internal methods.
4898         * Control.cs: Add OnGotFocusInternal.  A new method that allows
4899         controls to "override" OnGotFocus and change focus behavior if
4900         needed.
4901         - Same thing for LostFocus
4902         * ComboBox.cs: Pass off focus to the text control properly.
4903
4904 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
4905
4906         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
4907         * FolderBrowserDialog.cs: Almost a complete rewrite.
4908           - Better support for Environment.Specialfolders
4909           - Added support for MWFVFS
4910           - Made setting SelectedPath work
4911
4912 2006-07-12  Jackson Harper  <jackson@ximian.com>
4913
4914         * Control.cs: Optimze getting all the controls.
4915
4916 2006-07-11  Jackson Harper  <jackson@ximian.com>
4917
4918         * ContainerControl.cs: Override SETFOCUS in the container control,
4919         so that it is not selected on mouse click.
4920
4921 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
4922
4923         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
4924           Hopefully we will have a better way once all of focus is complete.
4925
4926 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
4927
4928         * ThemeWin32Classic.cs: Commented out some debug code and fixed
4929           a compile error with csc.
4930
4931 2006-07-11  Jackson Harper  <jackson@ximian.com>
4932
4933         * Control.cs: When hiding a control only select the next control
4934         if the current control was focused.
4935         - Don't handle enter/leave when setting/killing focus, this is
4936         done by the container control.
4937         - Remove is_selected, it's not needed anymore.
4938         - Add utility methods for selecting a child control, and for
4939         firing the Enter/Leave events.
4940         * ContainerControl.cs: When a control is activated fire the
4941         enter/leave events.
4942         - Don't wrap when processing the tab key, so that focus can be
4943         moved outside of the container.
4944         - Use the correct active control
4945
4946 2006-07-11  Jackson Harper  <jackson@ximian.com>
4947
4948         * ComboBox.cs: Remove some debug code that was blinding me.
4949         * UpDownBase.cs: These controls actually aren't implicit, they are
4950         visible to the user.
4951
4952 2006-07-10  Chris Toshok  <toshok@ximian.com>
4953
4954         * DataGrid.cs: move back to the is_adding boolean field.  god i
4955         hate this is_editing/is_adding/is_changing stuff.
4956
4957 2006-07-10  Chris Toshok  <toshok@ximian.com>
4958
4959         * DataGridTableStyle.cs: just check if the property type is bool.
4960         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
4961         Don't use CanRenderType.
4962
4963         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
4964         if our text == NullText.  Remove CanRenderType.
4965
4966         * DataGridBoolColumn.cs: nuke CanRenderType.
4967
4968         * DataGrid.cs: reenable some code to end the current edit inside
4969         of set_CurrentCell.  This fixes the other 1.1.16 regression.
4970         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
4971         Also, remove the visible_row_count arg from CalcRowHeaders, since
4972         we don't need to worry about the actual height of the area.
4973
4974 2006-07-10  Chris Toshok  <toshok@ximian.com>
4975
4976         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
4977         mode, just return.
4978
4979         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
4980         the real sense of the IsInEditOrNavigateMode property (true =
4981         navigate, false = edit).  Also, update OnKeyPress to reflect this.
4982
4983         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
4984         column style exists, we still need to set its property descriptor
4985         to match up with our list manager.
4986
4987 2006-07-10  Chris Toshok  <toshok@ximian.com>
4988
4989         * ThemeWin32Classic.cs: implement the new row/header painting
4990         approach.  The parent row painting will likely go away and
4991         replaced with label controls, but the rest seems to work ok (and
4992         efficiently).
4993
4994         * Theme.cs: change the way we draw datagrid rows.  we don't draw
4995         the row headers as a block now.  Instead we draw them in the
4996         normal draw-row loop.  Add some calls for drawing parent rows and
4997         relation rows.
4998
4999         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
5000         a default table style.  Set the defaults from ThemeEngine.Current,
5001         not SystemColors.  Fix lots of misc issues with property setters.
5002
5003         * DataGrid.cs: move loads of style information out of this class
5004         as it's being duplicated with DataGridTableStyle.  keep track of a
5005         special DataGridTableStyle for the properties we used to mirror
5006         here.  Switch all the style properties to access this table style
5007         instead of instance fields of this class.  Also add a internal
5008         class to represent parent rows (more needs to be stored here, like
5009         the selection state from the parent table, as well as the
5010         expansion state.)  Also, for datasources with relations, do the
5011         right thing for collapse/expand, and add support for the
5012         navigation/parent row buttons.
5013
5014         Lastly, fix the crash in the 1.1.16 build.
5015
5016         * GridTableStylesCollection.cs: make the explicit interface
5017         implementations call the class's methods as opposed to duplicating
5018         them.
5019
5020         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
5021         0 so the text doesn't jump around when we move the cursor.
5022
5023 2006-07-10  Jackson Harper  <jackson@ximian.com>
5024
5025         * TextBoxBase.cs:
5026         * ListBox.cs: Match MS's ToString (this makes debugging focus
5027         stuff infinitely easier).
5028
5029 2006-07-10  Jackson Harper  <jackson@ximian.com>
5030
5031         * Control.cs (SelectNextControl): When checking the control's
5032         parent use this instead of ctrl.parent so that null can be passed
5033         to SelectNextControl. (I have unit tests for this).
5034         - Remove unused var.
5035
5036 2006-07-10  Chris Toshok  <toshok@ximian.com>
5037
5038         * CurrencyManager.cs: correct one regression, the removal of the
5039         finalType field.  Also, add a MonoTODO on CanAddRows, implement
5040         Refresh() correctly, and fix some event emission in
5041         ListChangedHandler.
5042
5043 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5044
5045         * FileDialog.cs: Don't use brackets for new folders if they exist
5046           under *nix. Instead use -(number of existing folders +1).
5047
5048 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
5049
5050         * FileDialog.cs:
5051           - Fixed really nasty bug #78771
5052           - Don't block the whole GUI when reading directories with a lot of
5053             entries. Use an other thread instead and call BeginInvoke to
5054             update the ListView in MWFFileView
5055
5056 2006-07-07  Chris Toshok  <toshok@ximian.com>
5057
5058         * Control.cs (Dispose): release any Capture when disposing.
5059
5060 2006-07-07  Chris Toshok  <toshok@ximian.com>
5061
5062         * LinkLabel.cs (Select): if we chain up to the parent, set
5063         focused_index to -1 so we'll search for the first available link
5064         the next time the user tabs into us.  Also, if the direction is
5065         backward and focused_index == -1, start the search from the last
5066         element.
5067
5068 2006-07-07  Chris Toshok  <toshok@ximian.com>
5069
5070         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
5071         is beyond the end of the text, don't do anything.
5072         (CreateLinkPieces): set our ControlStyles.Selectable based on
5073         whether or not we have any links.
5074         (Link.Invalidate): use a loop instead of foreach.
5075         (Link.set_Start): null out owner.sorted_links so it'll be
5076         recreated by CreateLinkPieces.
5077
5078 2006-07-06  Chris Toshok  <toshok@ximian.com>
5079
5080         * LinkLabel.cs: revert the SetStyle change.
5081
5082 2006-07-06  Chris Toshok  <toshok@ximian.com>
5083
5084         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
5085         (OnEnableChanged): s/Refresh/Invalidate
5086         (OnGotFocus): if we have a focused index already, refocus it (so
5087         if we mouse out/in to the window it'll focus the right link).
5088         (OnKeyDown): move the tab handling out of here.
5089         (OnLostFocus): don't set focused_index to -1, so we can refocus it
5090         when we lose focus.
5091         (OnMouseDown): don't Capture here - Control handles it.  Also,
5092         focus the active link.
5093         (OnMouseUp): don't deal with Capture.
5094         (OnPaintBackgroundInternal): remove.
5095         (OnTextAlignChanged): CreateLinkPieces before calling the
5096         superclass's method.
5097         (OnTextChanged): call CreateLinkPieces before calling superclass's
5098         method.
5099         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
5100         move around.
5101         (Select): implement this, moving the selection between different
5102         links, and call parent.SelectNextControl if we don't have another
5103         link to focus in the given direction.
5104         (CreateLinkPieces): call Invalidate instead of Refresh.
5105         
5106 2006-07-06  Chris Toshok  <toshok@ximian.com>
5107
5108         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
5109         new LinkLabel internals.
5110
5111         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
5112         over pieces looking for active/focused/etc links.  also, deal with
5113         runs of text (and links) with embedded \n's in them, and use
5114         MeasureCharacterRanges instead of MeasureString to figure out the
5115         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
5116         two-step.
5117
5118 2006-07-04  Jackson Harper  <jackson@ximian.com>
5119
5120         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
5121         XKB or key auto repeat, do it manually.  Without key auto repeat,
5122         when a key is held down we get key press, key release, key press,
5123         key release, ... with auto repeat we get key press, key press, key
5124         press ..., and then a release when the key is actually released.
5125
5126 2006-07-03  Jackson Harper  <jackson@ximian.com>
5127
5128         * TabControl.cs:
5129         * ThemeWin32Classic.cs: Tabs do not obey normal background color
5130         rules, they are always control color regardless of the background
5131         color.
5132
5133 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
5134
5135         * FileDialog.cs: Added internal class MWFConfig.
5136           Removed Registry support and replaced it with support for the new
5137           MWFConfig class. See MWFConfig comments for more information.
5138
5139 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
5140
5141         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
5142           rectangle. Added some patches from eno from bug #78490 and fixed
5143           the arrow position for small up and down CPDrawScrollButtons.
5144
5145 2006-06-30  Jackson Harper  <jackson@ximian.com>
5146
5147         * InternalWindowManager.cs: Remove some debug code.
5148         * Form.cs: When an MdiParent is set to null, the window is
5149         "detatched" and becomes a normal window.
5150         * MdiClient.cs: Don't bring the new child form to the front until
5151         it is activated (setting it as active does this), this makes the
5152         previously active forms titlebar get redrawn as inactive.
5153
5154 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
5155
5156         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
5157           with later controls
5158
5159 2006-06-29  Mike Kestner  <mkestner@novell.com>
5160
5161         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
5162         arrow in keynav state.  Fixes #78682.
5163
5164 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5165
5166         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
5167           order (fixes #78393)
5168
5169 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
5170
5171         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
5172           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
5173           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
5174           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
5175           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
5176           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
5177           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
5178           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
5179           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
5180           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
5181           enumerations (FlagsAttribute, SerializableAttribute, added/removed
5182           values)
5183
5184 2006-06-28  Mike Kestner  <mkestner@novell.com>
5185
5186         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
5187
5188 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
5189
5190         * PropertyGrid.cs,
5191           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
5192           item lines from other area (It also makes BackColor consistent and
5193           compatible with .NET). Fixed bug #78564.
5194
5195 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
5196
5197         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
5198         Patch from Eno for #78555.
5199
5200 2006-06-27  Chris Toshok  <toshok@ximian.com>
5201
5202         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
5203
5204         * DataGridColumnStyle.cs: same.
5205
5206         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
5207         
5208         * DataGridDrawingLogic.cs: nuke.
5209
5210 2006-06-27  Chris Toshok  <toshok@ximian.com>
5211
5212         * DataGridTableStyle.cs: clean up the constructors, and build the
5213         list of child relations for this table.  I have no idea if this is
5214         where we should be doing it (it probably isn't), but since we're
5215         already iterating over the properties..
5216
5217         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
5218         struct and array for keeping track of row information, similar to
5219         what's shown in a hack on
5220         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
5221
5222         * Theme.cs: be consistent about the naming of DataGrid methods,
5223         prefering ColumnWidths and RowHeights over columnsWidths and
5224         RowsHeights.
5225
5226         * ThemeWin32Classic.cs: same, and also add support for variable
5227         sized rows (and the +/- expansion icons for related rows).
5228
5229 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5230
5231         * TextBoxBase.cs: Applied Eno's patch from #78660
5232
5233 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5234
5235         * Form.cs (ScaleCore): We don't want to scale our form if it's
5236           state is minimized or maximized, but we still need to scale our
5237           child windows. Also, added try/finally block to ensure layout
5238           gets reset (Fixes #78697)
5239
5240 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
5241
5242         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
5243
5244 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
5245
5246         * Form.cs: Fixed c+p error and added check to resize form if minimum
5247           size is bigger than current size (Fixes #78709)
5248
5249 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
5250
5251         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
5252
5253 2006-06-26  Mike Kestner  <mkestner@novell.com>
5254
5255         * ComboBox.cs: only do Keypress handling in the combo when there  
5256         are items in the collection. Fixes #78710.
5257
5258 2006-06-26  Chris Toshok  <toshok@ximian.com>
5259
5260         * Binding.cs: make this work bi-directionally.  also, clear up
5261         other mixups between Push/Pull Data (e.g. we're supposed to pull
5262         data when validating).
5263
5264         * BindingManagerBase.cs: trim some fully qualified collection
5265         types.
5266
5267         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
5268
5269 2006-06-23  Chris Toshok  <toshok@ximian.com>
5270
5271         * PropertyManager.cs: It appears (according to the unit tests)
5272         that PropertyManager doesn't use
5273         PropertyDescriptor.AddValueChanged to track propery value changes
5274         in its datasource, but uses the same scheme as Binding, where it
5275         looks for a <Property>Changed event and binds to it.
5276
5277         Also, according to the docs, IsSuspended always returns false for
5278         a property manager with a non-null datasource.
5279
5280 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
5281
5282         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
5283           need to update the actual DialogResult. (Fixes #78613)
5284
5285 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
5286
5287         * Form.cs (ShowDialog): Release any captures before running the
5288           new message pump (fixes #78680)
5289
5290 2006-06-22  Mike Kestner  <mkestner@novell.com>
5291
5292         * ListView.cs: Layout column widths properly in details mode even 
5293         if HeaderStyle.None is set.  Fixes #78691.
5294
5295 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
5296
5297         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
5298
5299 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
5300
5301         * Control.cs (ContainsFocus): Using new driver method to get focused
5302           window, instead of trying to use internal tracking var, which can
5303           recursion issues (Fixes #78685)
5304         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
5305           XplatUIWin32.cs: Added GetFocus method to return focused window
5306
5307 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5308
5309         * ColorDialog.cs: when the mouse button is pressed inside the color
5310         matrix, don't let the cursor move out of it until the button is
5311         released, which is the behavior on windows. Changed 'colours' by
5312         'colors' to use the same word consistently.
5313
5314 2006-06-21  Chris Toshok  <toshok@ximian.com>
5315
5316         * DataGrid.cs: add in some basic navigation stuff (navigating to a
5317         child relation and back, using a stack).  Also, remove
5318         GetDataSource and the code that calls it - it's not needed.  Also,
5319         track CurrencyManager.ListName's removal.
5320
5321 2006-06-21  Chris Toshok  <toshok@ximian.com>
5322
5323         * CurrencyManager.cs: push some of the original type checking from
5324         BindingContext.CreateBindingManager to here, and remove some of
5325         the finalType stuff.  Need more tests to make sure I've got the
5326         ListName part right, and we might need more in SetDataSource.
5327
5328         * PropertyManager.cs: add a ctor that takes just the datasource,
5329         and no property name.  Make SetDataSource work with a null
5330         property_name, and make Current return the data_source if the
5331         property descriptor is null.  this makes 'string foo = "hi";
5332         BindingContext[foo].Current' return "hi" as it should.
5333
5334         * RelatedCurrencyManager.cs: make this code more generic - there's
5335         no reason the parent manager has to be CurrencyManager, and
5336         there's no reason to pass the DataRelation.  It suffices to use a
5337         BindingManagerBase and PropetyDescriptor.
5338
5339         * RelatedPropertyManager.cs: make a similar change here.
5340         
5341         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
5342         flower I knew it could be.
5343
5344 2006-06-20  Chris Toshok  <toshok@ximian.com>
5345
5346         * PropertyManager.cs: the PropertyChangedHandler is invoked when
5347         data in the source has changed and we need to update the control,
5348         so s/PullData/PushData.
5349
5350         * CurrencyManager.cs: Refresh is meant to update the control from
5351         data in the datasource.  So, s/PullData/PushData.
5352
5353         * BindingContext.cs: add more ugliness (we weren't handling the
5354         case where data_source = DataTable and data_member = column_name).
5355
5356         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
5357         from the perspective of the datasource.  PullData pulls from the
5358         control, PushData pushes to the control.
5359
5360 2006-06-20  Chris Toshok  <toshok@ximian.com>
5361
5362         * BindingContext.cs: rewrite the CreateBindingManager code to
5363         handle navigation paths more or less properly.  This could
5364         definitely stand some more work, in particular to push the
5365         recursion up to the toplevel.  But that relies on fixes in other
5366         places (System.Data comes to mind).
5367
5368         Also, move to a flat hashtable (and encode the twolevel nature of
5369         the dictionary into the hash key).  This lets us implement the
5370         IEnumerable.GetEnumerator method.
5371
5372         * RelatedCurrencyManager.cs: new class.  Update our view based on
5373         our relation and our parent CurrencyManager's position.
5374
5375         * CurrencyManager.cs: split out some logic from the ctor into
5376         SetView, so it can be called from the new RelatedCurrencyManager
5377         subclass.
5378
5379         * RelatedPropertyManager.cs: new class.  Update our datasource
5380         based on the position of our parent CurrencyManager.
5381
5382         * PropertyManager.cs: split out some logic from the ctor into
5383         SetDataSource, so it can be called from the new RelatedDataSource
5384         subclass.  Also, make the Current getter return the value
5385         of the PropertyDescriptor, not the data_source.
5386
5387         * Binding.cs: no need to duplicate the string splitting code here.
5388
5389 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5390
5391         * Control.cs:
5392           - set_Enabled: OnEnabledChanged is not called if the inherited state 
5393             of the control is not altered, even though  we might be changing the
5394             internal state of the control (#78458)
5395           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
5396             OnEnabledChanged, to allow easy altering of any child window state
5397           - OnEnabledChanged: Added code to enable/disable driver window state
5398           - OnParentEnabledChanged: Instead of firing the event, call 
5399             OnEnabledChanged, which will fire the event and also a) set driver
5400             window state and pass the enabled state to any grandchildren (#78458)
5401
5402 2006-06-19  Jackson Harper  <jackson@ximian.com>
5403
5404         * InternalWindowManager.cs: We don't set the cursor explicitly
5405         thats done via the response to NCHITTESTs.
5406         - Don't need to adjust for titlebar heights anymore, the
5407         coordinates are coming in the correct coordinates now (see peters
5408         last patch).
5409
5410
5411 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5412
5413         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
5414           being translated relative to whole window, instead of client window.
5415           That caused broken offsets on mouseclick (and caused gas for our
5416           InternalWindowManager)
5417
5418 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5419
5420         * TextControl.cs:
5421           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
5422           - Undo(): Added replay of cursor move on DeleteChars action; added
5423             calling Undo() again if a recorded cursor move is invalid (to
5424             ensure that some action is performed on Undo)
5425         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
5426
5427 2006-06-16  Jackson Harper  <jackson@ximian.com>
5428
5429         * MdiClient.cs: Instead of just sizing maximized windows when
5430         there is a resize we also have to adjust the Y of minimized
5431         windows, so they stay pinned to the bottom of the mdi container.
5432         - Eliminate separate tracking of the active control, we can just
5433         get this from the controls collection.
5434         - Paint the decorations for the newly activated titlebar so we get
5435         a pretty blue bar.
5436         * InternalWindowManager.cs:
5437         * ThemeWin32Classic.cs: Minimized windows get all three buttons
5438         even if they are a tool window.
5439         
5440 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5441
5442         * TextControl.cs (Undo): Handle non-existent cursor locations in the
5443           undo buffer, these can happen when text was deleted and the cursor
5444           was recorded first. Since we will also have a recorded cursor
5445           after the delete this is not an issue. (Fixes #78651)
5446
5447 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
5448
5449         * AccessibleObject.cs: Remove dependence on Control.is_selected;
5450           instead properly track control states internally (allows us to
5451           remove is_selected from Control)
5452
5453 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5454
5455         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
5456         whose width is not a multiple of 8.
5457
5458 2006-06-13  Jackson Harper  <jackson@ximian.com>
5459
5460         * MdiClient.cs:  Only maximize the next child if the current one
5461         is maximized.
5462
5463 2006-06-13  Chris Toshok  <toshok@ximian.com>
5464
5465         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
5466         modified.  Also, guard against grid or grid_drawing being null in
5467         Invalidate.
5468
5469         * DataGrid.cs: Reformat tons of getters/setters.  In the
5470         DataMember setter, just call SetNewDataSource instead of
5471         duplicating some of its functionality.  In SetNewDataSource, don't
5472         check ListManager for null, since the property getter creates the
5473         object if needed.
5474
5475         * DataGridTableStyle.cs: don't set TableStyle or call
5476         SetDataGridInternal on the column here, it's done in
5477         GridColumnStylesCollection.Add.
5478
5479         * GridColumnStylesCollection.cs: fix all the explicit interface
5480         implementations to just call our methods.  Nuke AddInternal() and
5481         move the body of it to Add().  Also, add a call to
5482         column.SetDataGridInternal to Add().
5483
5484         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
5485         base()+duplicate code.  Also, use the Format property instead of
5486         format to generate an Invalidate ala MS.  Lastly, create the
5487         textbox here, unconditionally.
5488         (set_Format): call Invalidate.
5489         (get_TextBox): no need to call EnsureTextBox.
5490         (Commit): remove the message box.
5491         (Edit) remove the call to EnsureTextBox.
5492         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
5493         (EnterNullValue): no need to check textbox for null.
5494         (HideEditBox): no need to check textbox for null.
5495         (SetDataGridInColumn): add the textbox to the grid's controls.
5496         (EnsureTextBox): nuke.
5497         
5498 2006-06-13  Jackson Harper  <jackson@ximian.com>
5499
5500         * MdiWindowManager.cs: Hook up to the maximized menus paint event
5501         and redraw the buttons when needed. Unhook when the window is
5502         unmaximized.
5503         * MainMenu.cs: Add an internal Paint event, the mdi window manager
5504         needs this so that it can redraw its buttons when the menu is
5505         repainted.
5506         * InternalWindowManager.cs:
5507         * Form.cs: The method order has changed for DrawMaximizedButtons,
5508         so that it can be a PaintEventHandler.
5509         
5510 2006-06-13  Jackson Harper  <jackson@ximian.com>
5511
5512         * MdiClient.cs: When we close a maximized mdi window, the next mdi
5513         window is activated and maximized, even if it wasn't before.
5514         - When  a new window is activated repaint the decorations of the
5515         old one, so that it no longer has the Active "look" (the blue
5516         titlebar).
5517         * InternalWindowManager.cs: Open up CreateButtons to base classes
5518         so they can recreate the buttons on state changes.
5519         - If a window is maximized give it all three buttons
5520         * MdiWindowManager.cs: Create the titlebar buttons when the state
5521         is changed, this is needed because a toolwindow will not have all
5522         three buttons until it is maximized.
5523
5524 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
5525
5526         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
5527           Fixed bug #78609.
5528
5529 2006-06-12  Jackson Harper  <jackson@ximian.com>
5530
5531         * KeysConverter.cs: Make sure we handle the Ctrl special case
5532         if its the only key.
5533         
5534 2006-06-12  Jackson Harper  <jackson@ximian.com>
5535
5536         * Theme.cs: Add a method to get the size of a managed window
5537         toolbar button.
5538         * InternalWindowManager.cs: Remove the ButtonSize property, this
5539         should be retrieved from the theme.
5540         * MdiWindowManager.cs: Get the button size from the theme
5541         * ThemeWin32Classic.cs: Make the method to get the managed window
5542         titlebar button size public.
5543         - Handle the different button sizes of maximized toolwindows
5544         (should match any maximized window).
5545         - Get the titlebar height from the theme, not the WM (which gets
5546         it from the theme).
5547
5548 2006-06-12  Jackson Harper  <jackson@ximian.com>
5549
5550         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
5551         event down to the mdi window manager.
5552         - Expose some extra stuff to base classes
5553         - Make sure to end the Capture on an NC Mouse up, so that we can
5554         get double clicks properly, and the sizing doens't stick.
5555         - When doing PointToClient contain it in the workable desktop
5556         area, this prevents windows from changing size when the cursor is
5557         pulled outside of the working area while sizing.
5558         * MdiWindowManager.cs: When we get a double click maximize the
5559         window.
5560         - Reset the cursor after handling mode changes.
5561
5562 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
5563
5564         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
5565           current desktop, instead of just assuming a 0, 0 origin. This
5566           is needed for our internal window manager, to know the top
5567           margin of the desktop
5568
5569 2006-06-12  Chris Toshok  <toshok@ximian.com>
5570
5571         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
5572         we need this to get rid of the selected background in the bool
5573         column.
5574         (CancelEditing): move the ConcedeFocus call to above the Abort
5575         call.  Also, set is_changing to false and invalidate the row
5576         header if we were changing before.
5577         (ProcessKeyPreviewInternal): remove, since noone outside this
5578         class calls it anymore.  Roll the code into ProcessKeyPreview.
5579         (EndEdit): remove the internal version.
5580         (InvalidateCurrentRowHeader): make private.
5581
5582         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
5583         Keys.Escape handling (and with it the last call to
5584         DataGrid.EndEdit from outside the class.)
5585
5586
5587 2006-06-12  Chris Toshok  <toshok@ximian.com>
5588
5589         * DataGridTextBox.cs (.ctor): isedit defaults to false.
5590         (OnKeyPress): set isedit to true.
5591         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
5592         already handled by the grid.
5593
5594         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
5595         right.  ugh.
5596         (set_DataSource): SetDataSource always returns true, so stop
5597         putting it in an if statement.
5598         (EndEdit): get rid of some {}'s
5599         (ProcessGridKey): return true in case Keys.Escape.
5600         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
5601         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
5602         PositionChanged, stopped connecting to CurrentChanged.
5603         (GetDataSource): simplify this a bunch.
5604         (SetDataSource): change return type from bool to void.
5605         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
5606         to this, and make sure we don't set ListManager.Position inside
5607         set_CurrentCell.
5608         (OnListManagerItemChanged): if we're passed an actual index,
5609         redraw that row.
5610
5611         * CurrencyManager.cs (set_Position): don't call PullData here.
5612
5613 2006-06-09  Jackson Harper  <jackson@ximian.com>
5614
5615         * TreeNode.cs:  Recalculate the visible order before doing the
5616         Expand/Collapse Below calls, because those calls generate an
5617         expose.
5618         - Reduce calls to the TreeView property, which is mildly expensive
5619         by using a local var.
5620         * Form.cs: Layout the MDI child windows when creating the parent
5621         form.
5622         - Don't use the internal constructor anymore
5623         * MdiClient.cs: use the parent form width/height (if available)
5624         when laying out the child windows, we do this because the
5625         mdiclient isn't docked yet when the initial layout is done.
5626         - Don't need an internal constructor anymore.
5627
5628 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5629
5630         * FileDialog.cs: handle access errors when trying to create a folder
5631         or changing to a directory. No need to initialize out parameters.
5632
5633 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5634
5635         * FileDialog.cs: Append a number when creating a new folder if the
5636           folder already exists (use parenthesis instead of square brackets)
5637
5638 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5639
5640         * FileDialog.cs:
5641           - Disabled registry support for windows and added better registry
5642             error checking for other systems (need to investigate why it
5643             works perfectly on my system)
5644           - If a folder already exist show an error MessageBox instead of
5645             trying to create an indexed name.
5646           - Fixed a non intentional typo.
5647
5648 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5649
5650         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
5651
5652 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5653
5654         * FileDialog.cs: When creating a new folder don't crash if the
5655           folder already exists.
5656
5657 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5658
5659         * FileDialog.cs: Allmost a complete rewrite.
5660           - added a "virtual" file system that handles the differences
5661             between unix and windows file systems (especially the directory
5662             structure). Moved most of the directory and file handling code
5663             into the vfs.
5664             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
5665             UnixFileSystem and FSEntry.
5666           - Recently used folder/directory, size, location and used file names
5667             (file name ComboBox) are now stored in the registry and get read
5668             before the dialog shows up (fixes part 6 of bug #78446).
5669           - Creation of new folders/directories is now possible (context menu
5670             or ToolBar). Added TextEntryDialog for this that fills in the gap
5671             until ListView.LabelEdit works.
5672           - Fixed cursor handling (bug #78527) and focus handling for
5673             PopupButtonPanel
5674           - Various "Search in" ComboBox enhancements. The content of the
5675             dropdown listbox now almost matches ms.
5676           - Changed the behaviour when the user switches to SpecialFolder
5677             Recent to show the ListView in View.Details.
5678           - Beside using the ToolBar to change the View property of the
5679             file ListView it is now possible to use the context menu too.
5680
5681 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5682
5683         * ComboBox.cs: Don't create a new ObjectCollection when an item
5684           gets inserted. Just insert the item in the existing object_items
5685           ArrayList.
5686
5687 2006-06-08  Jackson Harper  <jackson@ximian.com>
5688
5689         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
5690         that the treeview and root node checks are done also, this fixes a
5691         regression i caused in the unit tests.
5692
5693 2006-06-07  Wade Berrier <wberrier@novell.com> 
5694
5695         * RichTextBox.cs: More ISO8859-1 -> unicode
5696
5697 2006-06-07  Mike Kestner  <mkestner@novell.com>
5698
5699         * ComboBox.cs : use items to hold highlight/selection so that
5700         collection insertions don't require synchronization.
5701
5702 2006-06-07  Jackson Harper  <jackson@ximian.com>
5703
5704         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
5705         routine.  We now always keep the sized edge at the cursor instead
5706         of computing movement and adjusting rects.  There is one buglet
5707         with this method though when the cursor is moved over area that
5708         the window can not expand too (such as the toolbars on the desktop).
5709
5710 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5711
5712         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
5713         here. Fixes crash on startup in AlbumSurfer.
5714
5715 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
5716
5717         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
5718           values
5719
5720 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5721
5722         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
5723         statement to avoid calling XNextEvent which will block if another thread
5724         took the event that we were expecting. Fixes bug #78605.
5725
5726 2006-06-07  Mike Kestner  <mkestner@novell.com>
5727
5728         * ListView.cs : isolated checkbox clicking from the selection logic.
5729         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
5730
5731 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5732
5733         * Form.cs: Check that the value passed to Form.DialogResult
5734         is a valid enum value.
5735
5736 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5737
5738         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
5739         Computer'. Clicking it in the network view goes to 'My Computer'.
5740         Added CIFS filesystem type. Display the mount point of filesystems.
5741         Avoid duplicate mount points (happens for me with CIFS);
5742
5743 2006-06-06  Jackson Harper  <jackson@ximian.com>
5744
5745         * InternalWindowManager.cs: Draw the maximized windows buttons
5746         when resizing.
5747
5748 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5749
5750         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
5751         all other dialogs. Fixes bug #78585.
5752
5753 2006-06-06  Mike Kestner  <mkestner@novell.com>
5754
5755         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
5756         Only invalidate checkbox on checkstate changes to avoid flicker.
5757         * ListBox.cs : avoid unselect/select when clicking selected item.
5758         avoid reselection flicker for already multiselected items.
5759         Fixes #78382.
5760
5761 2006-06-06  Jackson Harper  <jackson@ximian.com>
5762
5763         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
5764         the parent form so that the menu is removed if needed.
5765
5766 2006-06-06  Mike Kestner  <mkestner@novell.com>
5767
5768         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
5769         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
5770
5771 2006-06-06  Mike Kestner  <mkestner@novell.com>
5772
5773         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
5774
5775
5776 2006-06-06  Jackson Harper  <jackson@ximian.com>
5777
5778         * Control.cs: Use the property (instead of the field) to get the
5779         default cursor so it is instantiated correctly.
5780         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
5781         resizes so we need to manually repaint the window decorations here.
5782         - Set the titlebar button locations as soon as they are created,
5783         otherwise they are not set correctly on win32.
5784         
5785 2006-06-06  Chris Toshok  <toshok@ximian.com>
5786
5787         * CurrencyManager.cs (set_Position): call PullData before
5788         OnCurrentChanged.
5789         (AddNew): after calling IBindingList.AddNew, update our
5790         listposition, and call OnCurrentChanged/OnPositionChanged (without
5791         calling PullData).
5792         (OnCurrentChanged): remove the call to PullData from here.
5793         (OnItemChanged): remove the call to PushData from here.
5794         (OnPositionChanged): change the test from == null to != null to
5795         match the other methods.
5796         (ListChangedHandler): the grossest part of the patch.  Implement
5797         this such that it passes the unit tests in CurrencyManagerTest and
5798         the output more or less matches that of MS's implementation.
5799  
5800 2006-06-06  Mike Kestner  <mkestner@novell.com>
5801
5802         * ListView.cs : only update check state on single click.
5803         * ThemeWin32Classic.cs : fix focus drawing for details view without
5804         fullrowselect.  Fixes #78454.
5805         * XplatUIX11.cs : fix for double click emission.
5806
5807 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
5808
5809         * PropertyGridView.cs : Applied Atsushi's patch to fix
5810         font dialog bug  (#78197).
5811
5812 2006-06-05  Jackson Harper  <jackson@ximian.com>
5813
5814         * TreeNode.cs: Compute the next node for expanding/collapsing
5815         correctly. We now factor in nodes without a NextNode
5816         correctly. (Fixes somes cases in nunit-gui).
5817         * InternalWindowManager.cs: Set the bounds when updating the
5818         virtual position of a tool window.
5819         
5820 2006-06-05  Chris Toshok  <toshok@ximian.com>
5821
5822         * DataGrid.cs: rename cached_currencymgr to list_manager.
5823         (set_CurrentCell): move SetCurrentCell code here, and clean it up
5824         some.
5825         (CurrentRow, CurrentColumn): single accessors so we can make the
5826         cursor movement code a lot easier to understand.
5827         (CurrentRowIndex): implement this in terms of CurrentRow.
5828         (BeginEdit): clean this up a bit.
5829         (CancelEditing): sort out the is_editing/is_changing/is_adding
5830         stuff a little.
5831         (EndEdit): minor changes.
5832         (OnKeyDown): add a comment about a (most likely) unnecessary
5833         check.
5834         (OnMouseDown): cancel editing when we click on a row header.  And
5835         use the CurrentRow setter, not CurrentCell.
5836         (ProcessDialogKey): directly call ProcessGridKey.
5837         (UpdateSelectionAfterCursorMove): factor out this common block of
5838         code (it's used everywhere that we move the cursor by updating row
5839         or column).
5840         (ProcessGridKey): pretty substantial overhaul.  Use the
5841         CurrentRow/CurrentColumn properties to make the code a lot more
5842         readable.  Only use the CurrentCell property when we have to
5843         modify both row and column at once.  Tab behavior is still broken,
5844         and Delete is untested.
5845         (Select): if we have no selected rows, set selection_start to
5846         @row.
5847         (EditCurrentCell): rename EditCell this.  It was only ever invoked
5848         with CurrentCell as the arg, so drop the arg and rename it.
5849
5850         * DataGridColumnStyle.cs: clean up the constructors a little, and
5851         drop CommonConstructor().
5852
5853         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
5854         actually get notified when the user hits it.
5855         (ProcessKeyMessage): *substantially* simplify this method.
5856         There's no reason (that I can see) for the textbox to be making
5857         calls into the datagrid at all.  Remove all of them but the ones
5858         for Enter handling.  those will take some more work.
5859
5860         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
5861         calling HideEditBox.
5862         (HideEditBox): if we have an active textbox, render it invisible
5863         without causing a re-layout of the datagrid.
5864
5865 2006-06-05  Mike Kestner  <mkestner@novell.com>
5866
5867         * ListView.cs : fix NRE crasher when focuseditem is cleared by
5868         collection changes by resetting it to Items[0].  Fixes #78587.
5869
5870 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5871
5872         * MessageBox.cs: if the height of the text is larger than the icon_size,
5873         use that. Fixes bug #78575.
5874
5875 2006-06-05  Jackson Harper  <jackson@ximian.com>
5876
5877         * TreeView.cs: Fix line drawing when scrolling.  To do this each
5878         node is basically responsible for drawing its entire horizontal
5879         area.  When drawing a node it draws its parent node lines if
5880         needed.
5881         - Adjust the clip area to the viewport rectangle
5882         - Fix Left/Right key handling to match MS. (It expand/collapses
5883         and moves to parents/first child but does not move selection to
5884         sibling nodes).
5885         - Fix SetTop to work with new bound calculation code
5886         - When scrollbars are no longer needed we need to reset scrolling
5887         vars and recalculate the visible order so the redraw is correct
5888         * TreeNode.cs: We can't expand/collapse nodes with no children.
5889
5890 2006-06-03  John Luke  <john.luke@gmail.com> 
5891
5892         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
5893         so the colors work without dev packages
5894         
5895 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
5896
5897         * Control.cs 
5898           - Select: Implemented to just use activate. Seems to match MS 
5899             behaviour closest. Documented to only do actual control walking 
5900             based on it's parameters if in a container control so I moved 
5901             the code there.
5902           - Removed selection check logic from our internal Select() method
5903         * ContainerControl.cs:
5904           - Select: Moved selection logic from Control here, since MS documents
5905             that containers obey the bool arguments. No longer calling base
5906
5907 2006-06-02  Jackson Harper  <jackson@ximian.com>
5908
5909         * TreeView.cs: If the selected node isn't changed when we get
5910         focus update the previously selected node so that we see the
5911         selection box.
5912
5913 2006-06-02  Mike Kestner  <mkestner@novell.com>
5914
5915         * ComboBox.cs: restructure grab and general mouse event handling.
5916         Make the composite control raise mouse events like it was a single
5917         control for leaves/enters/motion/up/down events.  fix dropdown list
5918         coordinate mangling and refactor it into the scrollbar subclass to
5919         reduce code duplication.  Fixes #78282 #78361 and #78457.
5920
5921 2006-06-02  Mike Kestner  <mkestner@novell.com>
5922
5923         * ScrollBar.cs: remove Capture setting/clearing, as it happens
5924         automatically in the Control.WndProc.
5925
5926 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5927
5928         * FileDialog.cs: fix crash when running SharpChess, which sets the
5929         FilterIndex to 2 with only one Filter.
5930
5931 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5932
5933         * ToolBar.cs: add SizeSpecified property.
5934         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
5935         try to figure out our real size, otherwise fallback to what the
5936         container says.
5937
5938 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
5939
5940         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
5941         * Control.cs (WndProc): MS always calls the DefWndProc to pass
5942           up the event
5943
5944 2006-06-01  Mike Kestner  <mkestner@novell.com>
5945
5946         * ListView.cs: revamp the focus management in ListView.  It still
5947         causes churn of LostFocus/GotFocus emissions on clicks, but it's
5948         better than not handling focus at all.  Will revisit when pdb feels
5949         the general focus handling is solid.  Fixes #78526.
5950
5951 2006-06-01  Jackson Harper  <jackson@ximian.com>
5952
5953         * TreeView.cs: Set the default border style in the constructor.
5954         - Move painting to use OnPaintInternal instead of capturing
5955         WM_PAINT, this is the correct way of doing things
5956         - UpdateBelow shouldn't invalidate the scrollbar area
5957         - Cap the top on update below in case the node was above the top
5958         of the viewport rectangle.
5959         - ExpandBelow and Collapse below need to obey Begin/End Update.
5960         * TreeNode.cs: Make is_expanded internal so the treenode
5961         collection can change it without firing the whole event chain.
5962         * TreeNodeCollection.cs: When clearing all the child nodes make
5963         sure to recalc the visible order.
5964         - Improve algo for remove the top node
5965
5966 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
5967
5968         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
5969           SendMessage directly calling window procedures, which in turn might
5970           call SetFocus()
5971
5972 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
5973
5974         * Control.cs: Don't handle WM_SETFOCUS if the same window already
5975           has focus (works around X11 sending a FocusIn after our SetFocus)
5976         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
5977
5978 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
5979
5980         * Mime.cs: Fix for the NET_2_0 build.
5981           NameValueCollection needs StringComparer now.
5982
5983 2006-05-31  Chris Toshok  <toshok@ximian.com>
5984
5985         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
5986         return (via an out parameter) the starting X of the column.
5987         (UpdateVisibleColumn): track change to FromPixelToColumn.
5988         (HitTest): add a ColumnResize case here.
5989         (DrawResizeLine): new function, probably poorly named.
5990
5991         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
5992         only need to keep one reference.
5993         (set_ListManager): same.
5994         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
5995         Also, add support for HitTestType.ColumnResize.
5996         (OnMouseMove): add column resize behavior here, and change the
5997         cursor to the correct one as we move around the datagrid.
5998         (OnMouseUp): terminate the column resize if we're resizing.
5999         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
6000         for the current cell.
6001         (ConnectListManagerEvents): use cached_currencymgr.
6002         (DisconnectListManagerEvents): fill this in, using
6003         cached_currencymgr.
6004         (SetCurrentCell): remove cached_currencymgr_events handling.
6005         (SetDataMember): only call DisconnectListManagerEvents if
6006         cached_currencymgr is != null.
6007         (SetDataSource): same.
6008         (OnListManagerCurrentChanged): cached_currencymgr_events ->
6009         cached_currencymgr.
6010
6011 2006-05-31  Jackson Harper  <jackson@ximian.com>
6012
6013         * BindingManagerBase.cs: Remove somedebug code that creeped into
6014         SVN.
6015         * TreeNode.cs: We get the indent level dynamically right now, so
6016         don't track it as a member.
6017         * TreeNodeCollection.cs: Make sure all nodes added to the list
6018         have parents, treeviews/topnodes setup properly.
6019         - Don't attempt to track indent level.
6020
6021 2006-05-30  Jackson Harper  <jackson@ximian.com>
6022
6023         * BindingContext.cs: Create the currency manager tables here.
6024         This allows us to more easily create null tables (when bad data
6025         members are used), and more easily create related currency
6026         managers.
6027         * CurrencyManager.cs: All the table creation stuff is done by the
6028         binding context now.
6029         - Current should throw an exception if listposition is -1.
6030         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
6031         been bound yet.
6032
6033 2006-05-30  Mike Kestner  <mkestner@novell.com>
6034
6035         * ListView.cs: allow reexpansion of zero-width column headers.
6036         Fixes #78528.
6037
6038 2006-05-28  Chris Toshok  <toshok@ximian.com>
6039
6040         * CurrencyManager.cs (get_Current): after the late binding
6041         listposition = -1 fix, we need to guard against it here and return
6042         null, otherwise we raise an exception (which is swallowed
6043         elsewhere, and breaks datagrid databinding.)
6044
6045 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6046
6047         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
6048           than WM_SYSKEY, don't throw if get something unexpected (#78507)
6049
6050 2006-05-26  Jackson Harper  <jackson@ximian.com>
6051
6052         * ControlPaint.cs:
6053         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
6054         values, it's faster and it's all we care about (we don't care if
6055         the names aren't equal).
6056         * KeyboardLayouts.cs: Eliminate some dead code.
6057         - Lazy init things
6058         * X11Keyboard.cs: Lazy init keyboard detection.
6059         - Cleanup access modifiers a little.
6060
6061 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
6062
6063         * XplatUIX11.cs: Once again, attempting to get layout just right.
6064
6065 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
6066
6067         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
6068           the sizes of each link section, that will result in sizes that
6069           match DrawString's layout (Fixes #78391)
6070
6071 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
6072
6073         * FileDialog.cs: If AddExtension property is true autocomplete the
6074           extensions in SaveFileDialog correctly. Fixes bug #78453.
6075           Set MyNetwork and MyComputer to "C:\" for windows. This should
6076           fix part 8 of bug #78446 for now.
6077
6078 2006-05-26  Chris Toshok  <toshok@ximian.com>
6079
6080         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
6081         invalidate the current row header if we need to, but presumably
6082         we'll invalidate the row corrsponding to the bounds or
6083         editingControl.
6084         (GridHScrolled): switch back to this method, as it's part of the
6085         public api.  *sigh*.
6086         (GridVScrolled): same.
6087         (OnMouseWheel): hack up something that more or less works.  Call
6088         GridHScrolled/GridVScrolled directly, instead of duplicating much
6089         of their code here.
6090         (EnsureCellVisibility): reinstate a bunch of this code, since we
6091         can't just set the scrollbar Value and expect to do all the work
6092         in the ValueChanged handler.  Also, Call Update() after scrolling
6093         in one direction so the other XplatX11.ScrollWindow call has the
6094         proper stuff in the proper places.
6095         (EditCell): set is_editing to true before calling .Edit.
6096
6097         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
6098         don't bother comparing first.
6099         (OnKeyPress): call grid.ColumnStartedEditing before calling
6100         base.OnKeyPress.  this will set is_changing and invalidate the row
6101         header if necessary.
6102         (ProcessKeyMessage): for WM_CHAR messages, call
6103         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
6104         and WM_KEYDOWN.
6105         
6106         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
6107         it's done in the DataGrid.
6108         (NextState): call grid.ColumnStartedEditing, which takes care of
6109         invalidating the row header (and setting is_changing).
6110
6111         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
6112         here.  it's done in the DataGrid.
6113
6114 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6115
6116         * Control.cs: allow changing the cursor when the mouse position is
6117         out of bounds but Capture is set.
6118         * LinkLabel.cs: handle the case when the mouse button is pressed on the
6119         linklabel but released somewhere else.
6120
6121 2006-05-25  Jackson Harper  <jackson@ximian.com>
6122
6123         * TreeView.cs: When we get focus if there is no selected node make
6124         it the top node
6125         - Remove some uneeded setup code from Draw.
6126         * TreeNodeCollection.cs: If the tree doesn't have a top node when
6127         a new node is inserted make the new node the top.
6128         * XplatUIX11.cs:
6129         * Timer.cs: Use Utc time so that no local time zone stuff needs to
6130         be used (should be faster).
6131         
6132 2006-05-25  Chris Toshok  <toshok@ximian.com>
6133
6134         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
6135         problem with the last commit.
6136
6137 2006-05-25  Chris Toshok  <toshok@ximian.com>
6138
6139         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
6140         need the invalidate call here, while scrolling right-to-left via
6141         the left arrow key (i.e. moving the editing cell while scrolling).
6142
6143         * DataGrid.cs (.ctor): remove the initialization of
6144         ctrl_pressed/shift_pressed.  We no longer track them using key
6145         up/down handlers, but by using Control.ModifierKeys.  Also, switch
6146         to using ValueChanged handlers on the scrollbars instead of
6147         Scrolled event handlers.  This simplifies a bunch of the scrolling
6148         code.
6149         (GridHValueChanged): rename from GridHScrolled, and change it to
6150         work with the new event args.
6151         (GridVValueChanged): same.
6152         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
6153         (OnMouseWheel): actually scroll the datagrid.  Don't change the
6154         selected cell.
6155         (ProcessGridKey): correct all the keyboard navigation stuff I
6156         could find.  Ctrl up/down/left/right/home/end work now.
6157         (EnsureCellVisibility): correct method name spelling.  Also,
6158         simplify this a touch by not explicitly calling the
6159         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
6160         scrollbar value.
6161         (OnKeyUpDG): no need for this method now.
6162         
6163 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6164
6165         * LinkLabel.cs: display the OverrideCursor when hovering the label.
6166         Fixes bug #78392.
6167
6168 2006-05-25  Chris Toshok  <toshok@ximian.com>
6169
6170         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
6171         r61019.
6172
6173 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6174
6175         * Application.cs: Moved setting of is_modal and closing to before
6176           we create the control, to allow the event handlers called as a
6177           result of creation affect closing. Also removed Gonzalo's previous
6178           change to setting DialogResult, the behaviour has been moved to 
6179           Form.ShowDialog()
6180         * Form.cs: 
6181           - ShowDialog(): Removed explicit creation of the form, let RunLoop
6182             handle it instead
6183           - ShowDialog(): If no dialog result is set, we need to return Cancel
6184           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
6185             the close is cancelled
6186
6187 2006-05-25  Jackson Harper  <jackson@ximian.com>
6188
6189         * StatusBar.cs: We only need to update the sizes of the other
6190         panels when we have auto size contents.  Also we are only updating
6191         the contents of the panel, not the borders, so compensate for the
6192         border width (TODO: get this width from the theme somehow).
6193         * TreeView.cs: Scrollable is true by default
6194         - Use invalidate instead of refresh where needed
6195         - Factor the scrollable value into scrollbar updating
6196         - Update the scrollbars if the Scrollable property is altered
6197         - Update the selected node if its ImageIndex is changed
6198         - Handle null nodes in UpdateNode (mainly so we don't have to
6199         check if selected is null when updating it
6200         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
6201         are factored into the visible count
6202         - Use VisibleCount for clarity in the code
6203         - When the font is changed we need to recurse through all the
6204         nodes and invalidate their sizes
6205         
6206 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6207
6208         * Application.cs: set the DialogResult to fixed when the main form is
6209         hidden or destroyed while being modal.
6210
6211 2006-05-25  Miguel de Icaza  <miguel@novell.com>
6212
6213         * Theme.cs: Use Tangoified messagebox icons. 
6214
6215         (GetSizedResourceImage): Also cope with width = 0 and do not
6216         trigger a warning in that case (0 means "give me your icon from
6217         the resouce, no special size needed).
6218
6219 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
6220
6221         * Application.cs: Leave runloop if the the main modal form is 
6222           hidden (fixes #78484)
6223
6224 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
6225
6226         * BindingContext.cs : reject null datasource in Contains() and
6227           Item[].
6228         * CurrencyManager.cs : check data_member validity when data_source
6229           is dataset. When it is late binding, the initial position is -1.
6230
6231 2006-05-24  Jackson Harper  <jackson@ximian.com>
6232
6233         * TreeNodeCollection.cs: Dont't recalculate the visible order on
6234         inserted nodes that aren't visible.  This changes the
6235         max_visible_order which confuses scrollbar settings.
6236         - Use the enumerator to get the prev node instead of duplicating
6237         code.
6238         * TreeView.cs: Use new method for setting scrollbar values
6239         - Don't set the bounds every time the scrollbar is updated
6240         - When updating below the root node use an invalidate instead of a
6241         refresh to prevent the child controls (scrollbars) from being
6242         refreshed. (UpdateBelow still needs to be reworked anyways).
6243         - Reenable SetBottom now that visible orders are set correctly,
6244         added some debug code incase we ever get bad values there again.
6245         - Set the scrollbar max to 2 less then the max value, this
6246         compensates for the max value being one above the node count, and
6247         for scrollbars adding one extra "notch".
6248         - When drawing image nodes if there is an imagelist we draw the
6249         first image in the list if the supplied image index is out of the
6250         image list's bounds.
6251         
6252 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6253
6254         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
6255           we receive a size change from the WM (Fixes #78503)
6256
6257 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
6258
6259         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
6260           rectangle (Fixes #78501)
6261
6262 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
6263
6264         * ButtonBase.cs: 
6265           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
6266             as a bitfield.
6267           - Fixed MouseMove to no longer switch pressed state unless the left
6268             mouse button is pressed. Atsushi provided the original patch (#78485)
6269           
6270 2006-05-24  Jackson Harper  <jackson@ximian.com>
6271
6272         * ScrollBar.cs: New internal methods that allow us to change a
6273         couple values on the scrollbar (the most common case is maximum
6274         and large change) without getting multiple invalidates.
6275
6276 2006-05-24  Chris Toshok  <toshok@ximian.com>
6277
6278         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
6279         (Edit): save off the original state in oldState, and set
6280         grid.is_editing to true.
6281         (OnKeyDown): abort editing if escape is pressed.  also, call
6282         NextState if space is pressed.
6283         (OnMouseDown): call NextState.
6284         (NextState): factor out shared code from OnKeyDown and OnMouseDown
6285         here.  Also, only invalidate the row header once (on the initial
6286         is_changing switch) to save on redraws.
6287
6288 2006-05-24  Chris Toshok  <toshok@ximian.com>
6289
6290         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
6291         if the value in the cell is different than it was before.  This
6292         keeps us from triggering a layout when we move around a datarid
6293         with a highlighted cell.
6294         (Edit): suspend layout when creating/positining the text box, and
6295         resume passing false so we don't ever actually re-layout.
6296         (ReleaseHostedControl): same.
6297         (EnsureTextBox): reformat slightly, and set WordWrap to false.
6298
6299         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
6300         control-key sequences should go to the datagrid - remove that
6301         lock.  Also, modify the conditions under which we move between
6302         cells when moving the cursor within a cell, and remove the "this"
6303         and "base" from field accesses.  We weren't even consistent, given
6304         they all were in the base class.
6305
6306 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
6307
6308         * Binding.cs : (.ctor)
6309           An obvious NRE fix for BindingTest.CtorNullTest().
6310
6311 2006-05-23  Chris Toshok  <toshok@ximian.com>
6312
6313         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
6314         them between lines.  This fixes some quirks editing cells in the
6315         datagrid.
6316
6317 2006-05-23  Jackson Harper  <jackson@ximian.com>
6318
6319         * TreeView.cs: Use begin/end update when doing expand/collapse all
6320         so that we don't get flicker on the scrollbar.
6321
6322 2006-05-23  Jackson Harper  <jackson@ximian.com>
6323
6324         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
6325         treenode calculations to be independant of the painting code. To
6326         do this nodes track a visible order which is calculated by the
6327         treeview.
6328         - Call new methods for expanding/collapsing nodes.  These methods
6329         use scrollwindow so we don't have to update everything below the
6330         node.
6331         * TreeView.cs: Refactored drawing and scrolling code.  We don't
6332         need to update nodes when drawing anymore or calculate scrollbar
6333         stuff.
6334         - Added new methods for expanding/collapsing nodes. These methods
6335         use ScrollWindow so as to not have to redraw all the nodes below.
6336         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
6337         we add/remove nodes or sort.
6338         - Handle removing the selected and the top node properly.
6339
6340 2006-05-23  Chris Toshok  <toshok@ximian.com>
6341
6342         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
6343         maybe this should actually happen in the datagrid code?
6344         (EndEdit): no need to invalidate anything, given that
6345         ReleaseHostedControl causes the datagrid to relayout, which
6346         invalidates everything anyway.
6347
6348         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
6349         in SetCurrentCell).
6350         (set_SelectionBackColor): call InvalidateSelection instead of
6351         Refresh.
6352         (set_SelectionForeColor): same.
6353         (BeginEdit): Flesh this out a bit.
6354         (CancelEditing): only do any of this if we're editing/adding.
6355         (EndEdit): same.
6356         (OnMouseDown): there's no need to cancel editing here, it's done
6357         in SetCurrentCell.
6358         (SetCurrentCell): only invalidate the current row header if it's a
6359         different row than the new one.
6360         (ShiftSelection): fix this to work like MS does.
6361         (ResetSelection): factor out the invalidation of selected_rows to
6362         InvalidateSelection.
6363         (SetDataSource): cancel any editing that's going on.
6364
6365         * DataGridColumnStyle.cs
6366         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
6367         call the non-interface version.
6368
6369         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
6370         header rectangle with the clip rectangle so we don't redraw the
6371         entire header for just a small area.  Gets rid of the last flicker
6372         when horizontally scrolling.
6373         (DataGridPaintRow): same.
6374
6375 2006-05-23  Mike Kestner  <mkestner@novell.com>
6376
6377         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
6378         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
6379         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
6380         Critical bug report.
6381
6382 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6383
6384         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
6385           and this fixes #78493
6386
6387 2006-05-23  Miguel de Icaza  <miguel@novell.com>
6388
6389         * Theme.cs (GetSizedResourceImage): Scale images if the proper
6390         size is not found.  
6391         
6392         * FileDialog.cs: Do not change the background for the side bar as
6393         it wont work nicely with the theme, and also reduces the artifacts
6394         in rendering the icons (which I want to fix too).
6395
6396         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
6397         resources, not resgen resources. 
6398
6399         (PlatformDefaultHandler): Pull images using the new API.
6400
6401 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6402
6403         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
6404           a reference to the hwnd and will not remove it unless there are
6405           no pending exposures (fixes #78341)
6406         * XplatUI.cs: Improved debug
6407
6408 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
6409
6410         * MenuAPI.cs : don't handle OnClick event when it was not the left
6411           button. Fixed bug #78487.
6412
6413 2006-05-23  Mike Kestner  <mkestner@novell.com>
6414
6415         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
6416         prefer submenus to the top menu for item lookup, to avoid popping down
6417         top-row items.
6418
6419 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
6420
6421         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
6422           Graphics.FillRectangle as the visual results are really bad (even
6423           on win). We now draw perfect arrows (and perfect shadows when the
6424           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
6425           Pen.DashPattern to draw the dots of each line.
6426
6427 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
6428
6429         * FileDialog.cs: Update the filename combobox when navigating through
6430           the ListView with the cursor keys. Fixes part 7 of bug #78446.
6431
6432 2006-05-22  Mike Kestner  <mkestner@novell.com>
6433
6434         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
6435         Fixes #78463.
6436
6437 2006-05-22  Mike Kestner  <mkestner@novell.com>
6438
6439         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
6440         requests. Fix a misspelled parameter and a copy paste exception error
6441         in Select.
6442
6443 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
6444
6445         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
6446           to get the same width/height (5/13) on X11 as the default font has on
6447           win32. This means that our DefaultFont emSize is smaller than the 
6448           the MS SWF equivalent (even thought the width/height stays the same)
6449
6450 2006-05-20  Jackson Harper  <jackson@ximian.com>
6451
6452         * MdiClient.cs:
6453         * MdiWindowManager.cs:
6454         * InternalWindowManager.cs: Make sure to use the border width from
6455         the theme.
6456
6457 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
6458
6459         * PrintDialog.cs: Implements printer details
6460
6461 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
6462
6463         * FileDialog.cs: Added focus handling for PopupButtonPanel.
6464           Fixes part 1 and 2 of bug #78446
6465
6466 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
6467
6468         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
6469           instead of sticking to the first ever calculated value
6470
6471 2006-05-19  Mike Kestner  <mkestner@novell.com>
6472
6473         * ComboBox.cs: fix mouse motion selection to use MousePosition and
6474         PointToClient, since Capture is set. Fixes #78344.
6475
6476 2006-05-19  Mike Kestner  <mkestner@novell.com>
6477
6478         * ListView.cs: match MS behavior in Details view where items are not
6479         drawn if Columns.Count == 0. 
6480         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
6481         Use a separate pen to draw the check, since changing the width affects
6482         the box as well.  Fixes #78454.
6483
6484 2006-05-18  Miguel de Icaza  <miguel@novell.com>
6485
6486         * ListView.cs: ArgumentOutOfRangeException, single versions of the
6487         exception should throw the name of the invalid argument.
6488
6489         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
6490         there are no files listed. 
6491
6492 2006-05-18  Jackson Harper  <jackson@ximian.com>
6493
6494         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
6495         up.
6496
6497 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6498
6499         * Control.cs: Brought back our old UpdateZOrder method as a private
6500           function and switched our calls from UpdateZOrder to the new one.
6501           This fixes the Paint.Net canvas disappearing bug.
6502
6503 2006-05-18  Jackson Harper  <jackson@ximian.com>
6504
6505         * Theme.cs:
6506         * ThemeWin32Classic.cs:
6507         * InternalWindowManager.cs: Move the drawing into the theme,
6508         expose everything the theme should need from the window manager.
6509
6510 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6511
6512         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
6513           from the call to NativeWindow to avoid walking up the parent chain
6514           further than needed (speeds up setting cursors and avoids setting
6515           the wrong cursor if a parent has another cursor defined)
6516         * Cursor.cs: When loading an icon as cursor, MS uses the center of
6517           the icon as hotspot, not what's contained as hotspot in the icon
6518           file. This fixes the perceived drawing offset seen with Paint.Net
6519         
6520 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6521
6522         * XplatUIX11.cs: 
6523           - Store the calculated rectangle in Hwnd object and use it when 
6524             setting the client size
6525           - Force Toolwindows to always be type Dock, to ensure they're on top
6526
6527 2006-05-18  Mike Kestner  <mkestner@novell.com>
6528
6529         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
6530         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
6531         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
6532         Substantial refactoring to remove confusing nested classes. Coding
6533         standard and Get+Set->property refactorings.  Shift to index based
6534         highlighting in ComboListBox instead of constantly using IndexOf and
6535         Items[]. Add invalidations on resize for DropDownList to fix ugliness
6536         in FileDialog growth.  Draw borders manually since Simple mode needs
6537         to look like two independent controls.  Make listbox border
6538         conditional to DropDownStyle.  Improved OwnerDraw support.
6539
6540 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
6541
6542         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
6543         Don't set the disposed graphics to null, so we can throw the "right"
6544         exception if the graphics is reused later (added a flag to avoid 
6545         double disposing). Some behaviours are different under 2.0 and are
6546         filled under bug #78448.
6547
6548 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6549
6550         * Control.cs: When double-buffering is enabled, we need to reset
6551           our graphics context between paint calls. Otherwise, any 
6552           transformations and other alterations on the context will 
6553           become cumulative (#77734)
6554
6555 2006-05-18  Mike Kestner  <mkestner@novell.com>
6556
6557         * ListView.cs: do focused item selection like MS on clicks. 
6558         Rework focus handling for ItemControl so LostFocus invalidates as
6559         well.
6560         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
6561         the ListView ItemControl has focus.
6562
6563 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
6564
6565         * XplatUIX11.cs: If client_window ends up being width or height zero
6566           due to border settings, move it off window inside whole_window (#78433)
6567
6568 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6569
6570         * Mime.cs: Shrink the mime file cache correctly.
6571
6572 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6573
6574         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
6575
6576 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6577
6578         * XplatUIX11.cs (AddExpose): More sanity checks
6579
6580 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6581
6582         * XplatUIX11.cs:
6583           - AddExpose: Don't add expose ranges outside the size of our
6584             window
6585           - Cast opacity values to Int32 to avoid crashes with certain
6586             values
6587           - Added disabled code paths that protect against illegal cross-
6588             thread painting (Developers.exe)
6589
6590 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6591
6592         * ProgressBar.cs: Invalidate the control when it's resized
6593           since block size is based on control size. (#78388)
6594
6595 2006-05-16  Miguel de Icaza  <miguel@novell.com>
6596
6597         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
6598         of setting the incoming argument to the "reset" value, we set the
6599         this.datamember to string.empty (before we were invalidating the
6600         incoming data).   
6601
6602         Fixes 78420
6603
6604 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6605
6606         * Form.cs: Only apply transparency settings after the form
6607           is created. (Fixes #77800)
6608
6609 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6610
6611         * ApplicationContext.cs: Grab the HandleDestroyed event so
6612           we know when to fire OnMainFormClosed 
6613
6614 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6615
6616         * Application.cs: Introduced sub-class to allow tracking of
6617           threads and centralized triggering of the event mess for
6618           ThreadExit, AppExit, etc..  (#76156)
6619
6620 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
6621
6622         * MimeIcon.cs:
6623           - Do not return a null icon index value for a mime subclass.
6624             Instead try the main mime type class too.
6625           - Seems that some newer distributions don't have a link to some
6626             gnome default icons anymore. So check the default gnome dir too.
6627           
6628
6629 2006-05-16  Jackson Harper  <jackson@ximian.com>
6630
6631         * MdiClient.cs: Don't paint the parent background image if we have
6632         our own background image.
6633
6634 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6635
6636         * Control.cs:
6637           - PerformLayout: Do not shrink space filled by DockStyle.Fill
6638             controls, all filled controls are supposed to overlap (#78080)
6639           - UpdateZOrder is supposed to update the control's z-order in the
6640             parent's z-order chain. Fixed to behave like that
6641           - BringToFront: Removed obsolete code
6642           - SendToBack: Simplyfied
6643           - SetChildIndex: Trigger layout calculations when Z-order changes
6644             since layout is done by z-order
6645
6646 2006-05-16  Chris Toshok  <toshok@ximian.com>
6647
6648         [ fixes bug #78410 ]
6649         * DataGrid.cs (set_AlternatingBackColor): use
6650         grid_drawing.InvalidateCells instead of Refresh().
6651         (set_BackColor): call grid_drawing.InvalidateCells.
6652         (set_BackgroundColor): use Invalidate instead of Refresh.
6653
6654         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
6655         invalidate the cell area.
6656
6657 2006-05-15  Chris Toshok  <toshok@ximian.com>
6658
6659         [ fixes bug #78011 ]
6660         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
6661         on to DataGridPaintRow.
6662         (DataGridPaintRow): take a clip argument, and only draw the cells
6663         which intersect it.  same with the not_usedarea.
6664
6665         * Theme.cs (DataGridPaintRow) add @clip parameter.
6666
6667         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
6668         XplatUI.ScrollWindow.
6669         (ScrollToRow): same.
6670
6671         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
6672         with last column which was causing a gray swath to appear with the
6673         XplatUI.ScrollWindow code.
6674
6675 2006-05-15  Chris Toshok  <toshok@ximian.com>
6676
6677         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
6678         use XplatUI.ScrollWindow.
6679         (VerticalScrollEvent): use XplatUI.ScrollWindow.
6680
6681 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
6682
6683         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
6684
6685 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
6686
6687         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
6688           file since there are no equivalent X11 cursors
6689
6690 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
6691
6692         * MonthCalendar.cs : DateTimePicker should reflect selected date
6693           on mouse*up*, not mouse*down*. Fixed originally reported part of
6694           bug #76474.
6695
6696 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
6697
6698         * TabControl.cs : When argument index is equal or more than tab
6699           count, just ignore. Fixed bug #78395.
6700
6701 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
6702
6703         * Control.cs: Dispose all child controls when control is diposed (#78394)
6704
6705 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6706
6707         * ColorDialog.cs: Finally it is possible to select the color with
6708           the text boxes
6709
6710 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6711
6712         * PrintDialog.cs: Fix typo
6713
6714 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6715
6716         * PrintDialog.cs: PrintDialog is not resizable
6717         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
6718           color. Made some ToolBar drawing methods protected virtual.
6719
6720 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
6721
6722         * PrintDialog.cs: Implementation of the PrintDialog
6723
6724 2006-05-12  Chris Toshok  <toshok@ximian.com>
6725
6726         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
6727         thumb, instead use MoveThumb.  This has the side effect of making
6728         most of the other thumb moving machinery use MoveThumb as well.
6729         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
6730         need to actually invalidate the rectangle where the new thumb will
6731         go.
6732         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
6733         We force an Update() after, so it's not as fast as it could be,
6734         but at least there's zero flicker and no droppings.
6735         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
6736         (UpdateThumbPos): add another argument (dirty), which says whether
6737         or not to calculate/add dirty regions which we later invalidate.
6738         For cases where we know we're going to use MoveThumb, we pass
6739         false for this.  Otherwise, pass true.
6740
6741 2006-05-12  Jackson Harper  <jackson@ximian.com>
6742
6743         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
6744         the status bar.
6745         
6746 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
6747
6748         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
6749           and GetClipRegion methods and UserClipWontExposeParent property.
6750         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
6751           overriding UserClipWontExposeParent property, setting to false, since
6752           Win32 handles the required expose messages to draw our clipped parent
6753           areas internally
6754         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
6755           PaintEventStart to set the user clip region if set.
6756         * Control.cs: 
6757           - Now internally tracking the Region for the control since we need to
6758             store it if the handle is not yet created and only set it when it
6759             becomes created. Before setting the region forced handle creation
6760           - Added code to draw the parents underneath a user-clipped region
6761         * Hwnd.cs: Added UserClip property
6762
6763 2006-05-12  Chris Toshok  <toshok@ximian.com>
6764
6765         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
6766         (set_Maximum): same.
6767         (set_Minimum): same.
6768         (set_SmallChange): same.
6769         (OnMouseUpSB): remove the call to refresh when releasing the
6770         thumb.  We shouldn't need it.
6771         
6772 2006-05-12  Miguel de Icaza  <miguel@novell.com>
6773
6774         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
6775         AutoSize set to None, we do not need to relayout everything, we
6776         just need to invalidate the current region.
6777
6778         (Draw): Do not draw the entire ClientArea, just redraw the
6779         clip area being passed.
6780
6781         * MdiClient.cs: Make MdiClient constructor with the Form argument
6782         internal. 
6783
6784 2006-05-12  Jackson Harper  <jackson@ximian.com>
6785
6786         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
6787         parents background image,  but strangely not their own.
6788         - (DrawStatusBarPanel): Take into account horizontal alignment
6789         when drawing the strings and icons.
6790
6791 2006-05-12  Mike Kestner  <mkestner@novell.com>
6792
6793         * ListBox.cs: avoid invalidations for focus when the collection is
6794         empty. 
6795
6796 2006-05-12  Chris Toshok  <toshok@ximian.com>
6797
6798         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
6799         invalidate the entire thumb area.  Call InvalidateDirty which
6800         limits the redraw to the thumb itself and surrounding pixels.
6801
6802         * XplatUIX11.cs (ScrollWindow): optimize copying.
6803         
6804 2006-05-12  Chris Toshok  <toshok@ximian.com>
6805
6806         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
6807         Figure out the positioning/layout in a single pass instead of
6808         multiple recursive invocations.  Speeds up the initial display of
6809         the data grid.  Also, make many things private that were
6810         originally public but unused outside this class.
6811
6812 2006-05-11  Jackson Harper  <jackson@ximian.com>
6813
6814         * MdiClient.cs: Improved layout code.
6815
6816 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
6817
6818         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
6819           not SelectedObject.
6820
6821 2006-05-11  Chris Toshok  <toshok@ximian.com>
6822
6823         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
6824         union of that will always be {0,0,width,height}.
6825
6826 2006-05-11  Jackson Harper  <jackson@ximian.com>
6827
6828         * Form.cs: Match MS's DefaultSize for forms (they must have
6829         changed the size in sp2).
6830
6831 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
6832
6833         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
6834
6835 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
6836
6837         * TextControl.cs : Fixed bug #78109. This incorrect position
6838           comparison caused crash on automatic line split.
6839         * TextBoxBase.cs : reduce duplicate code.
6840
6841 2006-05-10  Jackson Harper  <jackson@ximian.com>
6842
6843         * MdiClient.cs: Active form is only sent to the back when using
6844         the Next form functionality, when a form is clicked the current
6845         active shouldn't be sent to the back.
6846         - Layout the mdi windows when the container is first made visible.
6847         * Form.cs: Give the MdiClient a ref to the containing form when we
6848         create it.
6849         
6850 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
6851
6852         * LinkLabel.cs : link_font could be uninitialized, so populate one
6853           before actual use. Fixed bug #78340.
6854
6855 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
6856
6857         * XplatUIX11.cs : clipboard format native value is IntPtr.
6858           Fixed bug #78283.
6859
6860 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6861
6862         * Control.cs: 
6863           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
6864             which is passed up the parent chain by DefWndProc
6865           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
6866             to DefWndProc (#77956)
6867         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
6868
6869 2006-05-10  Jackson Harper  <jackson@ximian.com>
6870
6871         * MdiClient.cs: We need to remove the controls from the mdi
6872         collection, when we close the window.
6873         * MdiWindowManager.cs: Special handling of closing mdi windows.
6874         * InternalWindowManager.cs: Make the close method virtual so the
6875         mdi window manager can handle it specially.
6876
6877 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
6878
6879         * DataGrid.cs:
6880           - Recalculate grid when the data source has changed
6881           - Matches styles provided by user from all data sources types
6882         * DataGridTableStyle.cs: For columns that provided by the user set the
6883         with the preferred value is there was unassigned.
6884         * CurrencyManager.cs: throw OnItemChanged event
6885
6886 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
6887
6888         * PictureBox.cs: Don't animate until handle is created. Start animation
6889           when handle is created.
6890
6891 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6892
6893         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
6894           current codebase.
6895         * XEventQueue.cs: We don't need to provide the extra info
6896
6897 2006-05-10  Jackson Harper  <jackson@ximian.com>
6898
6899         * MdiClient.cs: If the mdi clients parent form has a background
6900         image set, we draw that background image for the mdi area's
6901         background.
6902
6903 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6904
6905         * TextBoxBase.cs: Set IBeam cursor (#78347)
6906
6907 2006-05-10  Mike Kestner  <mkestner@novell.com>
6908
6909         * ToolBar.cs: fix some text padding issues with ButtonSize
6910         calculation. Update the default size to match MS documentation.
6911         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
6912         button size. Fixes #78296.
6913
6914 2006-05-10  Mike Kestner  <mkestner@novell.com>
6915
6916         * ListBox.cs: use is_visible for scrollbar positioning in case the
6917         control isn't on screen yet.  Fix off by one with Right vs Width
6918         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
6919         
6920 2006-05-10  Jackson Harper  <jackson@ximian.com>
6921
6922         * X11Dnd.cs: Drop to a control with another control on top of it.
6923         * ToolBar.cs: Work on a copy of the buttons list, so that it can
6924         be modified in click handlers. TODO: Look for similar problems in
6925         other controls.
6926
6927 2006-05-09  Jackson Harper  <jackson@ximian.com>
6928
6929         * Form.cs: Window managers need the old window state when setting
6930         window state now.
6931         * InternalWindowManager.cs: Allow the base mdi window manager to
6932         handle more of the MDI only stuff (like maximize buttons).
6933         * MdiWindowManager.cs: Fix some snafus in changing the window
6934         state.  Add all the menu functionality, for both popup and
6935         maximized menus.
6936         * MdiClient.cs: When a new form is selected the currently
6937         activated form is sent to the back, this matches MS.
6938         - Implement a new method to activate the next mdi child window.
6939
6940 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
6941
6942         * Control.cs: 
6943           - Added new InternalCapture method to allow controls to prevent
6944             the capture behaviour on the click handlers
6945           - Switched to use InternalCapture
6946         * ComboBox.cs:
6947           - Using InternalCapture to prevent mouse captures from being released
6948             on mouse button release (Fixes #78100)
6949         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
6950           returns Form borders if a caption is present. (Fixes #78310)
6951
6952 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
6953
6954         * TreeNode.cs: Changed serialization .ctor to not require every field
6955           to be present. (#78265)
6956         * OwnerDrawPropertyBag.cs: Added serialization .ctor
6957
6958 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
6959
6960         * MimeIcon.cs: for is faster than foreach for strings.
6961
6962 2006-05-05  Mike Kestner  <mkestner@novell.com>
6963
6964         * CheckedListBox.cs: update check handling code to not use selected.
6965         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
6966         behavior for visual feedback, motion response, shift/ctrl handling,
6967         and properly deal with all 4 selection modes. Updates to bounds
6968         handling logic.  Add scroll wheel support. [Fixes #77842]
6969
6970 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
6971
6972         * ListView.cs:
6973           - Moved adding of Implicit controls into .ctor. That way, subsequent
6974             creation of the controls will not cause them to think they are 
6975             toplevel windows (fixes #78200 header problem)
6976           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
6977           - Switched visibility setting of header control to use internal field
6978             to avoid triggering handle creation
6979           - Now checking if handle is created before causing a refresh when items
6980             are added (This makes us now match handle creation time with MS)
6981         * Splitter.cs: Removed loading of private splitter cursor, switched to
6982           Cursors version now that that is loading the right ones
6983         * Cursors.cs: Load proper splitter cursors from resources
6984         * Cursor.cs: Added second method of loading resource cursors for the 
6985           VS.Net users amongst us
6986
6987 2006-05-05  Mike Kestner  <mkestner@novell.com>
6988
6989         * ListView.cs: give header_control a minimum size based on the
6990         ListView size.
6991
6992 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
6993
6994         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
6995           window seems to do that with metacity, so set that type. (#78120)
6996
6997 2006-05-05  Mike Kestner  <mkestner@novell.com>
6998
6999         * ListViewItem.cs: fix Details mode checkbox layout bug.
7000         * ThemeWin32Classic.cs: draw a ListView column header for unused space
7001         at the end of the header, if it exists. [Fixes for #78200]
7002
7003 2006-05-04  Jackson Harper  <jackson@ximian.com>
7004
7005         * MdiClient.cs: Add a helper property to get the container form.
7006         * MdiWindowManager.cs: We have to make sure to use the menu origin
7007         when drawing the icons and buttons, this fixes maximized window
7008         icons/buttons on win32.
7009         * InternalWindowManager.cs: Reset the restore captions when a
7010         window goes from Maximized to Minimized and vice versa. Move the
7011         DrawMaximizedButtons into the MdiWindowManager source, tool
7012         windows can't be maximized. NOTE: This could use a little
7013         refactoring if time ever permits.
7014         
7015 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7016
7017         * TextBox.cs: Add MWFCategoryAttributes
7018         * TextBoxBase.cs: Add MWFCategoryAttributes
7019         * Form.cs: Add MWFCategoryAttributes
7020
7021 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7022
7023         * Control.cs: Add MWFCategoryAttributes
7024         * ScrollableControl.cs: Add MWFCategoryAttributes
7025
7026 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
7027
7028         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
7029           Divider is true. Fix a little glitch in PropertyToolBar
7030           drawing code
7031
7032 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
7033
7034         * Control.cs:
7035           - Dispose: Call base.Dispose, this causes the disposed event
7036             to be fired (and probably other, more important stuff)
7037           - SetVisibleCore: Set is_visible to true after creating the
7038             window so that the window still gets created invisible (if
7039             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
7040             to generate a WM_ACTIVE message
7041         * Form.cs: Call Dispose when we want to destroy the window, instead of
7042           just destroying the handle (Dispose will do that for us)
7043         * XplatUIX11.cs:
7044           - RootWindow also needs a queue, so we can properly process the
7045             property change events from RootWindow (like Activate)
7046           - Generatic synthetic WM_ACTIVE message when the active window is
7047             being destroyed
7048
7049 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7050
7051         * LinkLabel.cs: Trigger a recalc of our label dimensions when
7052           bounds are changed
7053
7054 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
7055
7056         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
7057           for determining width and height (image might not be assigned if
7058           we're drawing an imagelist)
7059
7060 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
7061
7062         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
7063         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
7064           height from system
7065         * Theme.cs: No longer returns hardcoded menu height, instead calls
7066           new driver method
7067         * Form.cs (OnLoad): Scaling happens before triggering Load events 
7068           on MS (# 78257)
7069
7070 2006-05-01  Mike Kestner  <mkestner@novell.com>
7071
7072         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
7073
7074 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
7075
7076         * TextBoxBase.cs: Removed Fixme
7077         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
7078
7079 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
7080
7081         * XplatUIX11.cs:
7082           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
7083             the rectangle relative to the parent, considering borders. We
7084             don't really want that.
7085           - ScrollWindow: Fixed warning to be more understandable
7086         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
7087           scrollbars and scroll only the visible area
7088         * RichTextBox.cs: Removed debug output
7089
7090 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7091
7092         * NumericUpDown.cs (Text): Just use base
7093         * UpDownBase.cs: Ensure txtView is created before using it
7094
7095 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7096
7097         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
7098           casting to IntPtr to avoid 64bit overflow errors
7099
7100 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7101
7102         * Control.cs:
7103           - AllowDrop: Don't force handle creation.
7104           - CreateHandle: Added call to tell driver if we're allowed to drop
7105
7106 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7107
7108         * FileDialog.cs: Remember the last directory not only for the
7109           current instance but also for new FileDialog instances.
7110
7111 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
7112         
7113         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
7114           broke sending async messages
7115
7116 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
7117
7118         * XplatUIX11.cs:
7119           - ScrollWindow: Fixed method. We finally generate expose events again
7120             for scrolled areas. This was causing 'garbage' when scrolling
7121             textbox and other controls that used ScrollWindow
7122           - Switched from using the regular queue for paint events to the MS 
7123             model of 'generating' paint events when the queue is empty.
7124             We use the new XQueueEvent.Paint subclass to store which windows
7125             need painting.
7126           - AddExpose now takes the x/y/width/height of the exposed area
7127             and inserts the window into the paint queue if not already there
7128           - InvalidateWholeWindow: Switched to use new AddExpose method
7129           - UpdateMessageQueue: Added which queue to monitor for paint events
7130           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
7131             the unlikely case nothing above handles it. We reset the expose
7132             pending states to get them off the queue.
7133           - GetMessage: Now pulls a paint event if no other events are in the
7134             queue
7135           - Invalidate: Switched to new AddExpose method
7136           - PeekMessage: Updated to understand pending paint events
7137           - UpdateWindow: Fixed logic bug. We were only updating if the window
7138             didn't need updating. Also switched to sending WM_PAINT directly,
7139             like MS does.
7140         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
7141           and random access Remove(). The random access is needed to handle
7142           UpdateWindow() where a WM_PAINT is sent directly without accessing
7143           the queue.
7144         * ScrollBar.cs: Added Update() calls to cause immediate updates to
7145           allow for better feedback when scrolling. Scrollbars are small and
7146           the immediate update should make it 'feel' more responsive without
7147           slowing things down. ScrollBar still needs it's invaliate logic
7148           updated to not always invalidate the whole bar on certain changes.
7149
7150 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7151
7152         * Control.cs:
7153         (BackColor): if the control does not support a transparent background,
7154         return the default backcolor when the parent backcolor is transparent.
7155
7156 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
7157
7158         * Application.cs: Updated to new StartLoop/GetMessage API
7159         * RichTextBox.cs: Provide some output on RTF parsing errors
7160         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
7161           new queue_id argument to GetMessage and PeekMessage to allow faster
7162           handling of per-thread queues in drivers.
7163         * Hwnd.cs: Added Queue tracking and property
7164         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
7165         * XEventQueue.cs: Added thread trackingA
7166         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
7167         * XplatUIX11.cs:
7168           - Implemented new per-thread queue
7169           - GetMessage: Fixed return/break behaviour on several cases. We were
7170             returning stale messages in some cases, instead of just processing
7171             the next message
7172
7173 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7174
7175         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
7176
7177 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
7178
7179         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
7180           fixed off-by-one comparisons between Width/Height and Right/Bottom.
7181
7182 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
7183
7184         * PropertyGridView.cs: Fix drop down width.
7185
7186 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7187
7188         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
7189           a mess in DrawToolBar, so I removed one of them.
7190
7191 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
7192
7193         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
7194           needed (clip). Otherwise we get artifacts.
7195
7196 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7197
7198         * FixedSizeTextBox.cs: Added constructor to allow specifying which
7199           dimension is fixed
7200         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
7201           and switched FixedSizeTextBox to only be fixed vertical (#78116)
7202         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
7203           if it matches the scale base font (avoids unneeded scaling)
7204
7205 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7206
7207         * X11DesktopColors.cs: One gtk_init_check should be enough
7208
7209 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
7210
7211         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
7212           match MS behaviour
7213
7214 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
7215
7216         * TextBoxBase.cs: 
7217           - Generate OnTextChanged for Backspace even if we're only deleting
7218             the current selection
7219           - When setting the Text property, only select all text if the
7220             control does not have focus when it is being set. Otherwise
7221             just place the cursor at the beginning of the control
7222
7223 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
7224
7225         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
7226           Added a little helper to draw PropertyGrid ToolBar with a different
7227           border and a different BackColor.
7228         * PropertyGrid.cs: Some background parts didn't get painted with the
7229           correct background color. Added a class that helps us to draw the
7230           correct border for PropertyGridView and a class that helps us to
7231           draw ToolBars with a different backcolor
7232         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
7233
7234 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
7235
7236         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
7237         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
7238
7239 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7240
7241         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
7242           into the palette entries. Also, since we're working on a copy
7243           we needed to copy the palette back onto the bitmap.
7244         * Cursor.cs: Same fix as XplatUIWin32.cs.
7245
7246 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
7247
7248         * ImageListStreamer.cs: Need to read the var (or we're off)
7249
7250 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
7251
7252         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
7253           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
7254           TextBoxBase.cs: Unused var fixes
7255         * AxHost.cs: Small 2.0 fix
7256         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
7257           as it seems that is what at least Metacity expects. This will make
7258           icons show up on 64bit platforms. We still have some 64bit size
7259           issues, though, since the startup app window size still won't match.
7260
7261 2006-04-25  Mike Kestner  <mkestner@novell.com>
7262
7263         * *.cs: cleanup newly reported exception var unused warnings.
7264
7265 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7266
7267         * ThemeWin32Classic.cs: Button image alignment now matches exactly
7268           ms
7269
7270 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7271
7272         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
7273           image. The image position is always the same, no matter if the
7274           button is pressed or not.
7275
7276 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
7277
7278         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
7279           selection and set the correct filename for SaveFileDialog.
7280           Patch by Emery Conrad.
7281
7282 2006-04-24  Mike Kestner  <mkestner@novell.com>
7283
7284         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
7285         check for item.X outside the ClientRect instead of item.Y. Fixes
7286         #78151.
7287
7288 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7289
7290         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
7291         trust that value blindly and do some sanity check. Fixes bug #77814.
7292
7293 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7294
7295         * ImageListStreamer.cs: save the mask as a 1bpp image.
7296
7297 2006-04-21  Mike Kestner  <mkestner@novell.com>
7298
7299         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
7300         pass Checked and Indeterminate to the Theme Engine. Improve
7301         encapsulation with ListBox.
7302         * ListBox.cs: Keep a StringFormat instead of calculating it every item
7303         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
7304         nested types.  Move all CheckState functionality to CheckedListBox.
7305         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
7306         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
7307         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
7308         single base list. Fix scrollbar sizing and placement to mirror MS.
7309         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
7310         used.
7311         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
7312         for CheckedListBox by using new DrawItemState info.  Center the
7313         checkboxes on the items. Use new StringFormat property.
7314
7315 2006-04-18  Jackson Harper  <jackson@ximian.com>
7316
7317         * Form.cs: MdiChildren don't do default locations the same way as
7318         regular forms.  This prevents a crash when trying to position the
7319         mdi windows.
7320
7321 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
7322
7323         * PropertyGridTextBox.cs: Formatting, copyright
7324         * PropertiesTab.cs: Formatting
7325         * PropertyGrid.cs: Formatting
7326         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
7327           click toggling of values
7328           
7329 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
7330
7331         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
7332         * Control.cs (.ctor): verify_thread_handle is static, don't reset
7333           every time a control is created
7334         * Application.cs: Removed obsolete EnableRTLMirroring method
7335
7336 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
7337
7338         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
7339         SelectedIndex to -1. Fixes bug #78121.
7340
7341 2006-04-17  Jackson Harper  <jackson@ximian.com>
7342
7343         * Binding.cs: Handle null values for Current and BindingContext.
7344         This occurs when binding is a little delayed.
7345         * CurrencyManager.cs: return null for Current when there are no
7346         items in the list.
7347         - Hookup to the listchanged event on the DataView and update
7348         bindings when the list is changed.  This fixes late binding of
7349         controls.
7350
7351 2006-04-17  Jackson Harper  <jackson@ximian.com>
7352
7353         * X11Dnd.cs:
7354         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
7355         Ringenbach.
7356
7357 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
7358
7359         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
7360           place
7361         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
7362           with the correct ButtonState
7363
7364 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
7365
7366         * XplatUIX11.cs: Improved distinguishing between window types to
7367           tell the WM a type closer to what the app wants (Fixes #78107)
7368
7369 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7370
7371         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
7372           GrabHandle
7373
7374 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7375
7376         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
7377           drawing code to reflect the size grip changes
7378
7379 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7380
7381         * ImageListStreamer.cs: fix handling of the mask that follows the main
7382         bitmap when deserializing and serialize it properly. The generated mask
7383         should better be a 1bpp image, but I'll do that later.
7384
7385 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7386
7387         * FileDialog.cs: Show something in the DirComboBox on *nix if the
7388           path doesn't fit into some of our Current.Places
7389
7390 2006-04-13  Jackson Harper  <jackson@ximian.com>
7391
7392         * ComboBox.cs: Use borders instead of drawing our own decorations,
7393         try to obey correct rules for heights.
7394         * Theme.cs:
7395         * ThemeNice.cs:
7396         * ThemeClearLooks.cs:
7397         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
7398         this is now handled by borders.
7399         - Remove unused DrawListBoxDecorationSize method.
7400         
7401 2006-04-13  Mike Kestner  <mkestner@novell.com>
7402
7403         * MenuAPI.cs: null guarding for the disbled click check fixes crash
7404         reported by Alex.
7405
7406 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7407
7408         * ThemeWin32Classic.cs: 
7409           - Fixed CPDrawStringDisabled
7410           - Corrected drawing of disabled menu items
7411           - Fixed drawing of disabled radio buttons (bug #78095)
7412           - Draw check in a disabled CheckBox with color ControlDark 
7413
7414 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7415
7416         * Form.cs: Use the provided width when calculating the menu size;
7417           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
7418           and ClientSize.Width won't be updated yet
7419         * Application.cs: Use Visible instead of Show() to make form visible,
7420           this way we create the handle later and menusize is considered
7421
7422 2006-04-12  Mike Kestner  <mkestner@novell.com>
7423
7424         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
7425         reporting.
7426
7427 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7428
7429         * TextBox.cs: Implemented context menu
7430
7431 2006-04-12  Mike Kestner  <mkestner@novell.com>
7432
7433         * ListView.cs: implement box selection. fixes #77838.
7434         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
7435
7436 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7437
7438         * XplatUIX11.cs: Added setting of window type when transient window
7439           is created (metacity would move it otherwise)
7440         * X11Structs.cs: Added WINDOW_TYPE atoms
7441         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
7442           background (the control is Opaque but still wants transparent
7443           backgrounds)
7444
7445 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7446
7447         * Control.cs: Added OnPaintBackgroundInternal to allow controls
7448           that set Opaque but don't mean it (like all ButtonBase-derived
7449           controls) to still draw their background
7450         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
7451           the background
7452
7453 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7454
7455         * Control.cs (PaintControlBackground): Set the graphics object
7456           on our PaintEvent to null to prevent it from being disposed
7457           when the PaintEvent gets disposed
7458
7459 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
7460
7461         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
7462         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
7463
7464 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7465
7466         * Control.cs: 
7467           - Added transparency check to BackColor property. Transparent
7468             backgrounds are only allowed if the control styles permit it
7469           - Added recursive painting of parent control background and
7470             foreground if a control with a transparent backcolor is drawn
7471             (Thanks to Tim Ringenback for providing his 'hack' as a base
7472              for this patch) Fixes #77985 and #78026.
7473           - Added Opaque style check before calling OnPaintBackground, no
7474             need to draw the background if the control is opaque
7475           - Removed ControlAccessibleObject owner variable (inherited from
7476             base, no need to define again)
7477           - Added some documentation links explaining the drawing events
7478             and styles
7479
7480 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7481
7482         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
7483           that the affected control is the located at the left border of our
7484           parent (Fixes #77936)
7485
7486 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7487
7488         * TextBoxBase.cs: When rendering disabled or readonly controls,
7489           draw the background with 'Control' instead of 'Window' color as
7490           long as the user hasn't specifically set a color
7491
7492 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7493
7494         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
7495           since that won't be updated if the user types text (only if it's
7496           programatically set)
7497
7498 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7499
7500         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
7501           layout changes do to app-triggered resizes will have the proper
7502           display rectangle for layout
7503
7504 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
7505
7506         * ThemeWin32Classic.cs:
7507           - Make use of the SystemBrushes and SystemPens wherever possible
7508           - Corrected some highlight colors
7509           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
7510             drawing
7511         * Theme.cs: Added Empty field to CPColor struct
7512
7513 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7514
7515         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
7516           is displayed when calculating the display rectangle. Thanks to Mike
7517           for teaching me the err of my ways.
7518
7519 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
7520
7521         * ScrollableControl.cs:
7522           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
7523             (instead of 0,0) and we now return the real width/height instead of
7524             just the clientrectangle, adjusted for padding. The rectangle is
7525             now cached and created by the new CalculateDisplayRectangle method.
7526           - Created new CalculateDisplayRectange method, which basically does
7527             what get_DisplayRectangle() did originally, but now using the 
7528             right edge instead of DisplayRectangle to determine the size of
7529             our scrollbars
7530           - get_Canvas(): Fixed it to properly calculate canvas for 
7531             right/bottom controls which seem to be placed to the right/bottom
7532             of any controls that have a fixed location
7533           - Removed TODO that's taken care of
7534           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
7535             and SetDisplayRectLocation according to new MSDN2 docs
7536           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
7537             event when that is called, this is added for compatibility
7538           - ScrollControlIntoView(): Implemented.
7539           - Switched scrollbars to be implicit, they shouldn't be selectable
7540         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
7541           call it when the active control is set/changed
7542         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
7543         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
7544           implicit_control variable (used for native Win32 message generation)
7545         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
7546           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
7547         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
7548         * XplatUIStructs.cs: Added ScrollBarCommands enum
7549
7550 2006-04-10  Jackson Harper  <jackson@ximian.com>
7551
7552         * ButtonBase.cs:
7553         * CheckedListBox.cs:
7554         * ComboBox.cs:
7555         * DataGrid.cs:
7556         * DataGridView.cs:
7557         * Form.cs:
7558         * GroupBox.cs:
7559         * ListBox.cs:
7560         * PrintPreviewControl.cs:
7561         * ProgressBar.cs:
7562         * PropertyGrid.cs:
7563         * Splitter.cs:
7564         * StatusBar.cs:
7565         * TrackBar.cs:
7566         * UpDownBase.cs: Fixup base event overrides.
7567         
7568 2006-04-06  Mike Kestner  <mkestner@novell.com>
7569
7570         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
7571         all user-initiated value changes to min <= value <= max-thumbsz+1.
7572         (set_Value): check for vert/horiz when calculating new thumb position.
7573         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
7574         like MS does.
7575         (OnMouseMoveSB): refactor the thumb dragging code and refine
7576         invalidation logic to reduce flicker.
7577         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
7578         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
7579         (UpdateThumbPosition): small code readability cleanup
7580
7581 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
7582
7583         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
7584           different
7585
7586 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7587
7588         * ThemeNice.cs: Use a better graphics effect when a button is pressed
7589
7590 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7591
7592         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
7593         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
7594           This dramatically reduces the number of Pen.Dispose calls. 
7595           Where possible call ResPool methods only once instead of calling it
7596           over and over again (for example for the same color).
7597
7598 2006-04-06  Mike Kestner  <mkestner@novell.com>
7599
7600         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
7601         Also remove an unused private field on the collection. Fixes #77972.
7602
7603 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7604
7605         * ThemeNice.cs: Added ToolBar drawing code
7606
7607 2006-04-06  Mike Kestner  <mkestner@novell.com>
7608
7609         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
7610         I'm assuming that means we need to look up the toplevel for the
7611         provided control. Fixes the crash trace in #77911 but exposes another
7612         crash in some strange reflection usage in NDocGui.
7613
7614 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7615
7616         * ThemeNice.cs: Gave it a little silver touch and added Images
7617           method
7618         * FontDialog.cs: FontDialog is not resizable
7619         * FileDialg.cs: Added SizeGripStyle.Show
7620
7621 2006-04-05  Jackson Harper  <jackson@ximian.com>
7622
7623         * KeyboardLayouts.cs: Remove warning.
7624
7625 2006-04-05  Jackson Harper  <jackson@ximian.com>
7626
7627         * Control.cs: Enable OnPaintInternal so we can use it for drawing
7628         all of our controls instead of Paint +=.
7629         * ListBox.cs:
7630         * ListView.cs:
7631         * MenuAPI.cs:
7632         * MessageBox.cs:
7633         * NotifyIcon.cs:
7634         * ProgressBar.cs:
7635         * ScrollBar.cs:
7636         * Splitter.cs:
7637         * StatusBar.cs:
7638         * TabControl.cs:
7639         * TextBoxBase.cs:
7640         * ToolBar.cs:
7641         * TrackBar.cs:
7642         * UpDownBase.cs:
7643         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
7644         use OnPaintInternal. Remove Width/Height and Visible checks in
7645         paint handler, this is done at a higher level now.
7646         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
7647         * PaintEventArgs.cs: Add a handled flag so controls that don't
7648         want anymore painting after OnPaintInternal can make sure OnPaint
7649         isn't called.
7650
7651 2006-04-05  Mike Kestner  <mkestner@novell.com>
7652
7653         * Form.cs: fix the menu WndProc hacks to respect the native enabled
7654         state of the form, so that we don't process events when Modal dialogs
7655         are up. Fixes #77922.
7656
7657 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
7658
7659         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
7660           checking is done.
7661
7662 2006-04-05  Mike Kestner  <mkestner@novell.com>
7663
7664         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
7665
7666 2006-04-05  Mike Kestner  <mkestner@novell.com>
7667
7668         * ListView.cs (HeaderMouseMove): null guarding for the over column
7669         when setting up the drag_to_index.  Fixes #78015.
7670
7671 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
7672
7673         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
7674           in the taskbar. Transient windows seem to accomplish that.
7675
7676 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
7677
7678         * Form.cs:
7679           - Re-enabled CreateParams.X/Y code for FormStartPosition
7680           - Added code for manual placement when creating the Control
7681           - Incomplete patch to treat MDI forms differently when
7682             setting the ClientSizeCore. (Still need to figure out handling
7683             x/y coords there)
7684         * XplatUIX11.cs:
7685           - When we're explicitly setting the X/Y position of a non-Child
7686             window, let the WM know. Metacity really wants this.
7687
7688 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7689
7690         * ThemeNice.cs: Added CPDrawButton
7691
7692 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7693
7694         * ThemeNice.cs: Changed the color for focused buttons and activated
7695           the arrows for small scroll buttons.
7696
7697 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7698
7699         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
7700           anymore. Changed some method modifiers to protected (virtual)
7701         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
7702           changes
7703         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
7704           Updated drawing of menus, buttons and progressbars; added
7705           CPDrawBorder3D 
7706
7707 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7708
7709         * ImageListStreamer.cs: implemented serialization/deserialization
7710         of the images.
7711
7712 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
7713
7714         * ThemeWin32Classic.cs:
7715           - Removed all the DrawFrameControl stuff; CPDrawButton,
7716             CPDrawCheckBox and CPDrawRadioButton are now handled directly
7717             inside the methods
7718           - Updated and corrected the drawing code of CPDrawButton,
7719             CPDrawCheckBox and CPDrawRadioButton to better match ms
7720           - Updated theme checkbox and radiobutton code to use the CP*
7721             methods
7722
7723 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
7724
7725         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
7726           bug is fixed
7727
7728 2006-03-31  Jackson Harper  <jackson@ximian.com>
7729
7730         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
7731         sometimes.
7732         * UpDownBase.cs: Don't CreateGraphics manually, use a
7733         Refresh. Ideally we would invalidate the correct areas here.
7734
7735 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
7736
7737         * XplatUIX11.cs: 
7738           - We now track the mapping state of windows. If a window (or 
7739             one of it's parents) is not mapped we no longer permit
7740             WM_PAINT messages to be generated since we'd otherwise get 
7741             lots of BadMatch X errors. Jackson did all the work figuring
7742             out the problem.
7743           - Destroying the caret if the window it's contained in is 
7744             destroyed. Can't use regular DestroyCaret method since it
7745             might fall into a drawing function (trying to remove the
7746             caret) and with that generate new BadMatch errors. Again,
7747             Jackson tracked this down.
7748           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
7749             make sure we send the messages to all windows. (The old code
7750             would send the WM_DESTROY to the window, and then all child
7751             windows would be 'gone' because the WM_DESTROY handle lookup
7752             would no longer find the destroyed window)
7753         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
7754         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
7755
7756 2006-03-31  Jackson Harper  <jackson@ximian.com>
7757
7758         * ScrollableControl.cs: Dont recalc if we are not visible.
7759
7760 2006-03-31  Mike Kestner  <mkestner@novell.com>
7761
7762         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
7763         the visibility branch.
7764
7765 2006-03-31  Jackson Harper  <jackson@ximian.com>
7766
7767         * ScrollBar.cs: Cap values when incrementing/decrementing.
7768
7769 2006-03-31  Mike Kestner  <mkestner@novell.com>
7770
7771         * MenuAPI.cs: setup menu.tracker for popup/context menus.
7772         * ToolTip.cs: guard against timer expirations with no active control.
7773         Not sure why it happened.
7774
7775 2006-03-31  Mike Kestner  <mkestner@novell.com>
7776
7777         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
7778         text.
7779         * ToolTip.cs: Position the tooltip based on where the cursor is at
7780         popup time, not at MouseEnter time.  Add a Down state so that we don't
7781         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
7782         positioning offset. Lookup DisplaySize at positioning time, since it
7783         can theoretically change during invocation.
7784         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
7785         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
7786
7787 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7788
7789         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
7790           Fixes behaviour when the Text property of the box is String.Empty
7791
7792 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
7793
7794         * XplatUIX11.cs: Only send mouseleave for our client windows, not
7795           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
7796           a window)
7797
7798 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7799
7800         * FileDialog.cs: Visual enhancement for the popup buttons in 
7801           PopupButtonPanel
7802
7803 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7804
7805         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
7806           code
7807
7808 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
7809
7810         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
7811           highlighted menu items to match ms
7812
7813 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
7814
7815         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
7816
7817 2006-03-30  Mike Kestner  <mkestner@novell.com>
7818
7819         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
7820         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
7821         go active to account for HotLight to Selected transition.
7822         * MenuItem.cs: add internal Selected prop. Fill out the Status
7823         property by calculating it from item info. Add HotLight,
7824         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
7825
7826 2006-03-30  Mike Kestner  <mkestner@novell.com>
7827
7828         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
7829
7830 2006-03-29  Jackson Harper  <jackson@ximian.com>
7831
7832         * Form.cs: Implement TODO.
7833
7834 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
7835
7836         * PrintPreviewDialog.cs: Implemented missing methods and events; still
7837           missing proper dialog setup in the constructor
7838
7839 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
7840
7841         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
7842         * Control.cs:
7843           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
7844           - Fixed ResetBindings and removed TODO
7845           - Added check for cross-thread calls to get_Handle()
7846           - Added Marshaller attribute for set_Font to satisfy class status
7847         * FontDialog.cs: Removed TODOs that seemed implemented
7848         * UpDownBase.cs: Removed unneeded TODO and Fixme
7849         * MessageBox.cs: Implemented support for Default button and removed TODO
7850         * FileDialog.cs: Removed obsolete TODO
7851         * DomainUpDown.cs: Removed obsolete TODO
7852         * ButtonBase.cs: Removed obsolete TODO
7853         * XplatUIWin32.cs: Removed obsolete TODO
7854         * Form.cs:
7855           - Removed obsolete TODO
7856           - Calling CheckAcceptButton when the acceptbutton is changed to allow
7857             internal status updates
7858           - Making sure the active control is selected when the control is created
7859         * CurrencyManager.cs: Removed obsolete TODO
7860
7861 2006-03-29  Mike Kestner  <mkestner@novell.com>
7862
7863         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
7864         of PrintPreviewDialog and RichTextBox.
7865
7866 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
7867
7868         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
7869           DarkDark, Light and LightLight colors for a specific color
7870         * ThemeWin32Classic.cs:
7871           - Use Button drawing code to draw RadioButtons and CheckBoxes with
7872             Appearance = Button 
7873           - Make use of the new ResPool helper CPColor
7874           - Draw ProgressBar and StatusBar with correct 3D borders
7875
7876 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
7877
7878         * ColorDialog.cs: Return selected color. Fixes bug #77940.
7879
7880 2006-03-28  Mike Kestner  <mkestner@novell.com>
7881
7882         * ListView.cs: fix Icon layout to plan for scrollbar widths when
7883         calculating col/row counts.
7884
7885 2006-03-28  Mike Kestner  <mkestner@novell.com>
7886
7887         * ColumnHeader.cs:
7888         * ListView.cs:
7889         * ListViewItem.cs:
7890         * Menu.cs: 
7891         switch to explicit interface method implementation for some methods
7892         corcompare identifies as inconsistent with MS.
7893
7894 2006-03-28  Mike Kestner  <mkestner@novell.com>
7895
7896         * MainMenu.cs: 
7897         * Menu.cs:
7898         add a few missing methods from the class status output.
7899
7900 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
7901
7902         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
7903           correct.
7904
7905 2006-03-28  Mike Kestner  <mkestner@novell.com>
7906
7907         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
7908
7909 2006-03-27  Mike Kestner  <mkestner@novell.com>
7910
7911         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
7912         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
7913
7914 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
7915
7916         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
7917
7918 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7919
7920         * ThemeWin32Classic.cs:
7921           - GroupBox: Inserted a little gap between the text and the lines
7922             on the right side
7923           - Made the code in CPDrawBorder3D more readable
7924           - Corrected the drawing location of the up and down arrows in 
7925             CPDrawScrollButton
7926
7927 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7928
7929         * ControlPaint.cs: Corrected line widths in DrawBorder for
7930           ButtonBorderStyle Inset and Outset
7931
7932 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7933
7934         * ThemeWin32Classic.cs:
7935           - Rewrote the totally broken CPDrawBorder3D method. That was
7936             one of the main problems for the terrific ThemeWin32Classic
7937             look
7938           - Updated and corrected Button drawing
7939           - Correct the dimensions of the SizeGrip to match ms ones
7940           - Removed a small drawing glitch in DrawComboBoxEditDecorations
7941         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
7942           Border3DStyle.Sunken to match ms.
7943
7944 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7945
7946         * ThemeWin32Classic.cs: First small part of the "de-uglify
7947           ThemeWin32Classic" effort, SizeGrip
7948
7949 2006-03-24  Jackson Harper  <jackson@ximian.com>
7950
7951         * XplatUIX11.cs: Give a max idle time of one second, this matches
7952         MS and forces an Idle event every second when there are no other
7953         events in the queue.
7954
7955 2006-03-24  Mike Kestner  <mkestner@novell.com>
7956
7957         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
7958         * ListView.Item.cs: fix layout issues with null image lists and images
7959         smaller than checkbox size.
7960         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
7961         mode like MS does.  It's weird, but consistent.  ;-)
7962         Fixes #77890.
7963
7964 2006-03-24  Mike Kestner  <mkestner@novell.com>
7965
7966         * ListView.cs: Scroll wheel support for the item control.  Fixes
7967         #77839.
7968
7969 2006-03-23  Jackson Harper  <jackson@ximian.com>
7970
7971         * ScrollableControl.cs: Special case negative sized areas, not
7972         zero.
7973         * MonthCalendar.cs: Save the rect of the clicked date so we can
7974         use it for invalidation.
7975         - Try to cut down on the number of invalidates
7976         - Invalidate the rect the mouse is over and was over when moving
7977         the mouse, so we get the focus box following the cursor.
7978
7979 2006-03-23  Mike Kestner  <mkestner@novell.com>
7980
7981         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
7982         focus rectangle drawing. Fixes #77835.
7983
7984 2006-03-23  Mike Kestner  <mkestner@novell.com>
7985
7986         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
7987         the if and else if and reverting back to the original == check on the
7988         None conditional.
7989
7990 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
7991
7992         * FontDialog.cs: Update the example panel if the selected index of
7993           the fontListBox changes.
7994
7995 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
7996
7997         * FileDialog.cs: Make FileDialog remember which directory it was in
7998           last in the same execution.
7999
8000 2006-03-22  Mike Kestner  <mkestner@novell.com>
8001
8002         * FileDialog.cs: make the DropDownMenu on the toolbar display
8003         RadioChecks since they are mutually exclusive and that's what MS does.
8004
8005 2006-03-22  Mike Kestner  <mkestner@novell.com>
8006
8007         * Theme.cs: add Color param to CPDrawMenuGlyph.
8008         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
8009         checks and radio marks and arrows are visible on highlighted items.
8010         * ControlPaint.cs: update to use new Theme signature.
8011
8012 2006-03-22  Mike Kestner  <mkestner@novell.com>
8013
8014         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
8015         is active. Fixes #77870.
8016
8017 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8018
8019         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
8020           to be focused/selected after startup
8021
8022 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
8023
8024         * ColorDialog.cs: 
8025           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
8026             CustomColors and ShowHelp properties
8027           - Some internal rewrites to get better results when using the
8028             ColorMatrix
8029
8030 2006-03-22  Mike Kestner  <mkestner@novell.com>
8031
8032         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
8033         HoverSelection.  Fixes #77836.
8034
8035 2006-03-22  Mike Kestner  <mkestner@novell.com>
8036
8037         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
8038         ToggleButtons.  (De)Sensitize the Back button around a stack count of
8039         1, not 0.  Update ButtonSize based on a pixel count of the win32
8040         control.  Adjust the toolbar size/location for new button size.
8041
8042 2006-03-22  Jackson Harper  <jackson@ximian.com>
8043
8044         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
8045         true.
8046         * ScrollBar.cs: When doing increments and decrements we need to
8047         set the Value property so that ValueChanged gets raised. A
8048         possible optimization here would be to make an internal SetValue
8049         that doesn't invalidate immediately.
8050         * ToolTip.cs: Tooltips get added to their container (when
8051         supplied) so they get disposed when the container is disposed.
8052         - Don't create tooltips for String.Empty. This prevents all these
8053         little 2-3 pixel windows from showing up when running nunit-gui
8054         and driving me mad.
8055         * Form.cs: Don't set topmost when setting the owner if the handles
8056         haven't been created yet.  The topmost set will happen when the
8057         handles are created.
8058
8059 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
8060
8061         * XplatUIX11.cs:
8062           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
8063           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
8064             visible (to allow them to recalculate their sizes)
8065
8066 2006-03-21  Mike Kestner  <mkestner@novell.com>
8067
8068         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
8069         methods. Removed a ton of redundant code.  Still not really happy with
8070         the border rendering, but I think that's mainly because of the
8071         ControlDarkDark being black instead of a dark grey. Depending on how 
8072         close we want to be, we might want to revisit those color choices.
8073         Among the new features added during the refactor were DropDownArrow
8074         pressed rendering, Disabled image rendering.  Proper flat appearance
8075         boundary rendering.  Removed the Divider and Wrapping dividers since I
8076         can't figure out any combination of themes and conditions to make the
8077         MS control draw a horizontal line on a toolbar despite what the
8078         Divider property docs indicate.
8079         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
8080         conditions and incorrect layout.  Updated to coding standard.
8081         * ToolBarButton.cs: refactored layout and positioning code from
8082         ToolBar to here.  Invalidate wherever possible instead of forcing
8083         redraws of the whole toolbar. 
8084         (Known remaining issues: explicit ButtonSize smaller than provided
8085         images.)
8086
8087 2006-03-21  Mike Kestner  <mkestner@novell.com>
8088
8089         * ContextMenu.cs (Show): use the position parameter instead of just
8090         showing at the MousePosition.
8091
8092 2006-03-21  Jackson Harper  <jackson@ximian.com>
8093
8094         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
8095         control handle this.
8096         * TreeNodeCollection.cs: If we are clearing the root node we need
8097         to reset top_node so calcs can still happen.
8098         * ThemeWin32Classic.cs: This is a Flags so we need to check
8099         properly.
8100         
8101 2006-03-21  Jackson Harper  <jackson@ximian.com>
8102
8103         * DataGrid.cs: Create columns when the binding context has been
8104         changed.
8105         * X11Structs.cs: Keysyms are uints.
8106         - Add size to fix build.
8107
8108 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
8109
8110         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8111           XplatUIOSX.cs: 
8112           - Added ResetMouseHover method to allow controls to retrigger
8113             hovering if they need it more than once
8114           - Implemented MouseHoverTime and MouseHoverSize properties
8115         * Timer.cs: Start() must reset the interval
8116         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
8117           properties
8118
8119 2006-03-21  Jackson Harper  <jackson@ximian.com>
8120
8121         * X11Keyboard.cs: improved layout detection. Move the nonchar
8122         tables into this file.
8123         * KeyboardLayouts.cs: Move the tables into resource files.
8124
8125 2006-03-21  Mike Kestner  <mkestner@novell.com>
8126
8127         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
8128
8129 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
8130
8131         * Mime.cs: Various speed optimizations. Looking up mime types
8132           is now 2 times faster than before
8133
8134 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
8135
8136         * CreateParams.cs: Added internal menu field
8137         * Control.cs: 
8138           - Switched call order for UpdateBounds; now we always call
8139             the one that also takes ClientSize, and we're calculating the 
8140             client size via driver method in the others. The previous
8141             method of tracking client size by difference wasn't working
8142             for forms where even the starting client size wouldn't match
8143             the overall form size (due to borders) (Part of fix for #77729)
8144           - CreateParams(): Do not use parent.Handle unless the handle is
8145             already created. Causes havoc with Nexxia and throws off our
8146             creation of controls
8147         * XplatUIX11.cs:
8148           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
8149           - Switched handling of ConfigureNotify over to new PerformNCCalc 
8150             method (consolidates code)
8151           - Changed RequestNCRecalc to use new PerformNCCalc method
8152           - Added calls to RequestNCRecalc when menus and borders are changed
8153             to allow app to set NC size. (Part of fix for #77729) This matches
8154             when MS send a WM_NCRECALC on Win32 windows.
8155           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
8156             (Part of fix for #77729). This matches what MS does, they also
8157             send that message when the form is made visible.
8158           - XException.GetMessage: Improved usability of X errors by including
8159             a translation of the window into Hwnd and Control class
8160           - Improved debug info for window creation, reparenting and destruction
8161           - Created helper method WindowIsMapped() [Currently not used]
8162         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
8163         * Form.cs:
8164           - CreateParams: Now setting our menu on the new internal menu field
8165           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
8166             avoid calculating the same property twice
8167         * Hwnd.cs:
8168           - Improved usability of ToString() for debugging purposes
8169           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
8170             determine the height of the menu, instead of just the font. This
8171             required to also create a graphics context and to keep a bmp 
8172             around (for performance reasons)
8173
8174 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
8175
8176         * MenuAPI.cs: Added OnMouseUp method
8177         * Form.cs:
8178           - Now remembering the requested client size, avoids size errors
8179           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
8180             instead of base if the menu is active. This is required due to
8181             control now capturing and releasing on down/up and it would
8182             prematurely release our menu capture
8183
8184 2006-03-17  Jackson Harper  <jackson@ximian.com>
8185
8186         * KeyboardLayouts.cs: Add the czech layouts.
8187
8188 2006-03-16  Jackson Harper  <jackson@ximian.com>
8189
8190         * Control.cs: Use the viewport space when sizing not the controls
8191         client size, so things like ScrollableControl that effect the
8192         viewport size (when scrollbars are added) are computed correctly.
8193         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
8194         of ManagerEntrys.
8195         - Handle creating BindingManagers for null data sources.
8196         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
8197         source, otherwise when rows are added they are added to the 'fake'
8198         datasource and we will crash when trying to set the position in
8199         those rows.
8200         - Use Implicit scrollbars on the datagrid so they arent
8201         selectable.
8202         
8203 2006-03-16  Jackson Harper  <jackson@ximian.com>
8204
8205         * Binding.cs:
8206         * InternalWindowManager.cs:
8207         * MdiWindowManager.cs:
8208         * X11Keyboard.cs: I really want Mike to love me again (fix
8209         compiler warnings).
8210
8211 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
8212
8213         * DataGrid.cs:
8214           - OnMouseDown: Switch to editing mode when clicking on the cell
8215                          even if we're clicking on the cell that's currently 
8216                          selected
8217           - ProcessGridKey: Left/Right now wrap like MS.Net does
8218           - ProcessGridKey: Tab now knows to add a new row when tab is
8219                             pressed in the cell of the last column of the 
8220                             last row
8221           - ProcessGridKey: Enter now adds another row  if pressed in the last
8222                             row and selectes the new row, same column cell
8223           - ProcessGridKey: Home/End navigate columns, not rows, like 
8224                             originally implemented
8225           - Broke ProcessKeyPreview code out into an extra Internal method
8226             so it can be called from the edit code
8227         * DataGridTextBox.cs (ProcessKeyMessage):
8228           - Switched to accept Tab keypresses
8229           - Added F2 handling to allow jumping to the end of the edited cell
8230           - Added logic to allow moving caret left/right inside edited cell
8231             and making the edited cell jump when the caret hits cell borders
8232           - Tab and Enter are now passed to the datagrid after being handled
8233         * TextBoxBase.cs:
8234           - Removed capture code now that Control handles it
8235           - set_SelectionStart now ensures caret is visible
8236
8237 2006-03-16  Jackson Harper  <jackson@ximian.com>
8238
8239         * TrackBar.cs: Debackwards the increment/decrement for handling
8240         mouse clicks on the bar with vertical trackbars.
8241         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
8242         bottom to match MS.
8243
8244 2006-03-16  Mike Kestner  <mkestner@novell.com>
8245
8246         * ListView.cs: make shift/ctrl keyboard and mouse selection 
8247         consistent with the MS control. Fix a bug in
8248         SelectedListViewItemCollection.Clear that was pissing me off for the
8249         better part of a day because the collection was being altered
8250         underneath us as we walked the list.
8251
8252 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
8253
8254         * Control.cs: Not sure how we could miss this so long, but it seems
8255           that MS.Net has Capture set all the way from before calling 
8256           OnMouseDown through sending the mouse events until after
8257           OnMouseUp. This will fix DataGrid's selection being set to end
8258           at the location of the MouseUp.
8259
8260 2006-03-15  Jackson Harper  <jackson@ximian.com>
8261
8262         * BindingContext.cs: Check the binding after its added so that it
8263           can initialize the binding managers and hookup to events.
8264         * Binding.cs: Data members seem to sometimes include rows/cols in
8265           the format Row.Column we now take this into account.
8266           - Hookup to the position changed event so we can update the
8267           control when the position has changed in the data set.
8268         * CurrencyManager.cs: Take into account the row/col naming
8269           convention when creating dataset tables.
8270         * BindingContext.cs: Using a newer better way of storing
8271           datasource/datamember pairs.  Hopefully this better matches MS for
8272           looking up binding managers.
8273
8274
8275 2006-03-15  Jackson Harper  <jackson@ximian.com>
8276
8277         * BindingContext.cs: The currency manager needs the data member
8278         name, if the member is a data set we use the name to find the
8279         correct table.
8280         * CurrencyManager.cs: When creating the list prefer an IList over
8281         an IListSource.
8282         - Attempt to create a DataTable from a DataSet (TODO: might need
8283         some better error checking here, although MS doesn't seem to have much)
8284         - If we have a DataTable create a view and use it as our list.
8285
8286 2006-03-15  Mike Kestner  <mkestner@novell.com>
8287
8288         * ListView.cs: keep a matrix of the icon mode layout to facilitate
8289         keyboard navigation. Support Up/Down/Left/Right selection correctly
8290         for all 4 View modes.
8291         * ListViewItem.cs: add internal row/col fields for icon layouts.
8292
8293 2006-03-15  Jackson Harper  <jackson@ximian.com>
8294
8295         * TabControl.cs: Redraw the tabs when we resize so their newly
8296         calculated sizes are drawn on screen.
8297         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
8298         composite characters.
8299         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
8300         - filter events so that composite characters can be created
8301         patches by peter
8302         * X11Structs.cs: Add XIMProperties enum.
8303
8304 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8305
8306         * Control.cs (BringToFront, SendToBack): Don't use window or handle
8307           unless it's created
8308
8309 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8310
8311         * Control.cs (PerformLayout): We don't need to consider visiblity
8312           for anchoring, only for docking. This fixes 'whacky' alignment
8313           in listbox and other controls that use implicit scrollbars after
8314           the previous PerformLayout patch
8315         * ListBox.cs: Switched to use implicit scrollbars
8316           
8317 2006-03-14  Mike Kestner  <mkestner@novell.com>
8318
8319         * ToolBar.cs: 
8320         * VScrollBar.cs:
8321         - chain up the "new event" overrides to base and use
8322         OnEvent to raise them.  Part of fix for bug #76509.
8323
8324 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
8325
8326         * FileDialog.cs: Do not select an item in the parent directory
8327           on backspace
8328
8329 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8330
8331         * Control.cs (PerformLayout): It would seem that we considered
8332           invisible windows for our layout. Not quite the right thing
8333           to do. Now we don't any longer, thereby fixing bug #76889.
8334
8335 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8336
8337         * Control.cs (CanFocus): I goofed. A control can have focus 
8338           even though it's not selectable. Made it match MS docs.
8339
8340 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8341
8342         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
8343           center by default (fixes #76895)
8344         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
8345           all uses of Border3DSides.All with the explicit ORd together
8346           Left|Right|Top|Bottom because I assume that nobody was aware 
8347           that All also implies a center fill. Most places I checked had
8348           a fill right above.
8349         * ProgressBarStyle.cs: Added
8350
8351 2006-03-13  Mike Kestner  <mkestner@novell.com>
8352
8353         * ListView.cs: fix breakage in drag shadow header positioning 
8354         from Peter's csc compilation fix.
8355
8356 2006-03-13  Mike Kestner  <mkestner@novell.com>
8357
8358         * ListView.cs: fix NRE produced by backspacing twice in a focused
8359         FileDialog.
8360
8361 2006-03-13  Mike Kestner  <mkestner@novell.com>
8362
8363         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
8364
8365 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8366
8367         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
8368           be changed
8369         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
8370           the allowed size before making programmatic size changes
8371
8372 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
8373
8374         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
8375           set, metacity is broken and will still use the emty sizes in 
8376           the struct. (Fix for #77089)
8377
8378 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8379
8380         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
8381           WindowExStyles and marked both enums as Flags
8382         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
8383           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
8384           to match WindowStyles split
8385         * XplatUIX11.cs:
8386           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
8387           - Updated to match WindowStyles split
8388         * XplatUIWin32.cs:
8389           - Fixed FosterParent creation, was using ExStyle on the Style field
8390             (This should help with Popup focus issues)
8391           - Updated to match WindowStyles split
8392
8393 2006-03-13  Jackson Harper  <jackson@ximian.com>
8394
8395         * MdiWindowManager.cs: Use the system menu height. Fixes some
8396         strange sizing issues.
8397
8398 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8399
8400         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
8401         * TextBoxBase.cs:
8402           - Scroll to caret after inserting text (#77672)
8403           - Make scroll range one pixel higher, fixes off-by-one error (and
8404             makes underlines visible on the last line)
8405
8406 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
8407
8408         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
8409           the keyboard state from being stuck with keys in 'pressed' state when
8410           focus is switched away via keyboard
8411         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
8412           reset the keyboard if no X11 KeyUp events are expected to come
8413         * X11Structs.cs: Switched type of Visible to bool to match driver
8414
8415 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8416
8417         * TextControl.cs:
8418           - Switched caret to be just 1 pixel wide, matches MS and looks less
8419             clunky
8420           - Moved caret display 1 pixel down from the top of the control
8421             to improve view
8422           - InsertCharAtCharet: Update the selection start if moving the caret
8423             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
8424           - No longer always creating the caret when the caret methods are
8425             called. Only the actual ShowCaret/HideCaret will do that now
8426           - Only setting caret visible if the owner control has focus
8427           - UpdateView: Added invalidation-shortcut logic for center and right 
8428             aligned text. Previously we'd update all according to the left
8429             logic which caused drawing errors. Also fixed height of invalidated
8430             areas, now properly invalidating the whole area (was off-by-one)
8431           - owner_HandleCreated: Always generate the document when the
8432             handle is created; this ensures that 
8433         * TextBoxBase.cs:
8434           - Fixed situation where caret would disappear under the right
8435             window border, also improved scrolling behaviour on left-
8436             aligned textboxes
8437           - Fixed right-aligned textboxes to have a border to the
8438             right instead of the caret being under the right border
8439         * XplatUIX11.cs:
8440           - Switched from 'nested' to simple visible/not visible tracking 
8441             for caret (part of fix for #77671)
8442           - No longer passing through translated FocusIn/FocusOut messages
8443             since we were notifying too often and the wrong windows. Instead
8444             we just notify our focussed window of receiving or loosing focus
8445         * XplatUIWin32.cs: Switched from 'nested' show/hide 
8446           counting for caret to simple visible yes/no behaviour (part of 
8447           fix for #77671)
8448
8449 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8450
8451         * Mime.cs: Remove debug code...
8452
8453 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8454
8455         * MimeGenerated.cs: Removed
8456         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
8457           and subclasses) from /usr/(local/)share/mime and
8458           $HOME/.local/share/mime.
8459
8460 2006-03-10  Jackson Harper  <jackson@ximian.com>
8461
8462         * MdiWindowManager.cs: Recalc the NC area when a window is
8463         maximized/restored so that the menu area is drawn on forms that
8464         don't have a menu.
8465
8466 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8467
8468         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8469           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
8470           us to force a WM_NCCALCRESIZE message being sent. This is needed
8471           for MDI maximizing.
8472
8473 2006-03-10  Jackson Harper  <jackson@ximian.com>
8474
8475         * Form.cs: We need to use the ActiveMenu when calculating menu
8476         height.
8477         - Fix nullref when the window manager hasn't been created yet.
8478         * Control.cs: Fix nullref when we try to bring a control to the
8479         front that has no parent.
8480         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
8481         height.
8482         - Add a dummy item to the maximized menu so it always has the
8483         correct height. Otherwise when there are no menus we don't get our
8484         icon and buttons.
8485         
8486
8487 2006-03-10  Jackson Harper  <jackson@ximian.com>
8488
8489         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
8490         stuff.
8491         * Form.cs: Make the window_state internal so the window managers
8492         can track it.
8493         - When an MDI child is maximized let its window manager create the
8494         main menu (so it can add its icon).
8495         - Notify the window managers of state changes
8496         - Let the window manager paint its buttons and handle button
8497         clicks on the menu when it is maximized.
8498         * InternalWindowManager.cs: Move the prev_bounds into the mdi
8499         window manager, since tool windows don't use it, only mdi windows.
8500         - Tell the main form that we don't want it to handle NCPAINT
8501         itself to avoid extra painting.
8502         - Handle clicks on a maximized windows menu.
8503         - Handle window state changes
8504         - Handle minimize/maximize clicks correctly by setting the window state.
8505         * MdiWindowManager.cs: Add an icon menu that (the menu you get
8506         when clicking on the forms icon).
8507         - New method to create a forms maximized menu. This is its normal
8508         menu + an icon.
8509         - Handle window state changes.
8510         - Handle sizing of maximized windows.  Maximized windows are just
8511         drawn bigger then the parent visible area. All controls are still
8512         there, they are just outside the visible area (this matches windows).
8513         * MdiClient.cs: No scrollbars when a child window is maximized.
8514         - Let the children windows figure out how big they should be when
8515         sizing maximized windows.
8516         - Implement a version of ArrangeIconicWindows somewhat similar to
8517         Windows version.  There are some little differences, but I don't
8518         think any app will rely on the layout of minimized mdi windows.
8519
8520 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8521
8522         * Padding.cs: Several fixes to allow compiling with csc 2.0
8523
8524 2006-03-09  Jackson Harper  <jackson@ximian.com>
8525
8526         * Menu.cs:
8527         * MenuItem.cs: Cheap hack so we can add items to the list without
8528         the events being raised.  This allows adding mdi items during
8529         drawing. TODO: Should probably find a better time to add the items.
8530
8531 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8532
8533         * ThemeWin32Classic.cs:
8534           - CheckBox_DrawText: Added logic to not wrap if not enough space
8535             is available (Fix for bug #77727)
8536           - RadioButton_DrawText: Added logic not to wrap if not enough
8537             space is available (Fix for bug #77727). Also removed some
8538             duplicate code, DrawString always drawing the regular text
8539             before hitting the if statement.
8540
8541 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
8542
8543         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
8544
8545 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8546
8547         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
8548         * ContainerControl.cs: Partial implementation of some 2.0 scaling
8549           methods. Moved the new 2.0 properties into alphabetical order with
8550           other properties and added MonoTODO tags
8551
8552 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8553
8554         * AutoScaleMode.cs: Added. Fix build.
8555
8556 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8557
8558         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8559           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
8560           and was requiring premature handle creation for calls from above
8561         * Form.cs, Control.cs: Removed handle arguments from calls to
8562           CalculateClientRect()
8563
8564 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8565
8566         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
8567           drag_column.column_rect is MarshalByRef and can't be used that way
8568
8569 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8570
8571         * AxHost.cs: Added deserialization constructor for 
8572           AxHost+State (fixes 77743)
8573
8574 2006-03-09  Mike Kestner  <mkestner@novell.com>
8575
8576         * ListView.cs: 
8577         - Added column drag reordering for details view.
8578         - fixed behavior when mouse is dragged off column and
8579         AllowColumnReorder is false.
8580         * ColumnHeader.cs: clone the format too in Clone.
8581         * Theme.cs: add DrawListViewHeaderDragDetails method.
8582         * ThemeWin32Classic.cs:
8583         - impl new method for drawing drag column shadows and targets.
8584         - support column offset for details mode in DrawListViewItem.
8585
8586 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8587
8588         * TextControl.cs: Reset the char_count when the document is cleared
8589           (Fixes bug reported on mono-winforms mailing list)
8590
8591 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8592
8593         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
8594           of calling base we simply process the key ourselves, since both
8595           DefWindowProc and the handled method would set m.Result. 
8596           (Fixes #77732)
8597
8598 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8599
8600         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
8601           method also moves the window; instead implemented a copy of
8602           Control.ScaleCore (Part of fix for #77456)
8603         * TextBoxBase.cs: 
8604           - Created new CreateGraphicsInternal method to allow providing
8605             a graphics context when no handle is created without triggering
8606             handle creation. (Part of fix for #77456)
8607           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8608         * TextControl.cs: 
8609           - Switched Constructor to require TextBoxBase instead of Control (to
8610             allow uncast access to CreateGraphicsInternal)
8611           - Safeguarded use of owner.Handle property. No longer accessing it
8612             unless the handle is already created.
8613           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8614           - Now triggering a recalc when owning control becomes visible
8615         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
8616           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
8617           premature handle creation (Part of fix for #77456)
8618         * Control.cs:
8619           - We now only destroy our double-buffering buffers when the
8620             control is resized or disposed, but not when visibility
8621             changes. (The code even re-created them twice every time)
8622           - Now requiring a redraw of the buffer on visibility changes
8623             (fixes bug 77654 part 2)
8624           - Not passing OnParentVisibleChanged up unless the control
8625             is visible
8626           - CanFocus: Fixed to match MS documentation
8627           - Focus: Fixed to return actual focus state and to check if
8628             setting focus is legal before setting it
8629
8630 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
8631
8632         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
8633           when to draw focus rectangle by looking at parent focus and
8634           selected state instead. This fixes TabPages on Linux sometimes
8635           having none or multiple focus rectangles.
8636         * XplatUIX11.cs (SetFocus): 
8637           - Don't set the focus if the same window already has focus
8638           - Use SendMessage instead of PostMessage (like it's Win32
8639             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
8640             to match MS behaviour
8641         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
8642           are not selectable.
8643
8644 2006-03-07  Jackson Harper  <jackson@ximian.com>
8645
8646         * PictureBox.cs: Revert line I accidently committed last week.
8647
8648 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
8649
8650         * Control.cs: 
8651           - Added new IsRecreating and ParentIsRecreating properties to
8652             allow testing if RecreateHandle has been called on ourselves
8653             or one of our parents
8654           - WndProc(WM_DESTROY): If our control handle is being recreated
8655             we immediately need to create the handle when receiving the
8656             destroy, that way our child windows find a valid parent handle
8657             when they themselves are being recreated upon WM_DESTROY receipt
8658             (fix for bug #77654 part 1)
8659         * XplatUIX11.cs:
8660           - DestroyWindow: WM_DESTROY must be sent to our own window before
8661             notifying any child windows. MS documents that child windows
8662             are still valid when WM_DESTROY is received. (Control now relies on
8663             this behaviour)
8664           - Added some fine-grain debug options
8665
8666 2006-03-06  Jackson Harper  <jackson@ximian.com>
8667
8668         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
8669         box and base calculations off this.
8670         * MdiChildContext.cs:
8671         * MdiWindowManager.cs: Don't need to ensure scrollbars here
8672         anymore.
8673         
8674 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
8675
8676         * Splitter.cs: In situations where the affected control is added
8677           to the parent's control list after the splitter, we would not
8678           populate affected. Now we try populating it on mousedown, if
8679           it's not already set, and force it to be re-set whenever our
8680           parent changes.
8681
8682 2006-03-03  Matt Hargett  <matt@use.net>
8683
8684         * Control.cs: implement Control.Padding
8685         * Padding.cs: -Padding.All returns -1 when constructing with the
8686         implicit default ctor
8687         -Padding.ToString() matches MS.NET
8688         * ContainerControl.cs: implement
8689         ContainerControl.AutoScaleDimensions
8690         * ListControl.cs: implement ListControl.FormattingEnabled
8691         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
8692         * ButtonBase.cs:
8693         * TabPage.cs: Implement UseVisualStyleBackColor.
8694         * PictureBox.cs: Implement PictureBox.InitialImage.
8695
8696 2006-03-03  Mike Kestner  <mkestner@novell.com>
8697
8698         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
8699         event declarations to proxy to base event.
8700         * ListViewItem.cs: update to use ItemControl.
8701         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
8702         * ThemeWin32Classic.cs: update to new ListView theme API and fix
8703         column header label rendering for 0 width columns.
8704
8705 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
8706
8707         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
8708           that causes the control to be created. Fixes #77476.
8709
8710 2006-03-02  Jackson Harper  <jackson@ximian.com>
8711
8712         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
8713         expose_pending.
8714
8715 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
8716
8717         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
8718           passed in for the EventArgs (fixes #77690)
8719
8720 2006-03-01  Jackson Harper  <jackson@ximian.com>
8721
8722         * ScrollBar.cs: Refresh afterbeing resized.
8723
8724 2006-02-28  Mike Kestner  <mkestner@novell.com>
8725
8726         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
8727         Clean up a tracker compile warning.
8728         * MenuItem.cs: add internal PerformPopup method.
8729         [Fixes #77457]
8730
8731 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
8732
8733         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
8734           implicit expose) when the text is set to null
8735
8736 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
8737
8738         * RichTextBox.cs (FlushText): When newline is true, we always
8739           need to split the line, even if no text is on it and we may
8740           never eat newlines. (Fixes #77669)
8741
8742 2006-02-28  Mike Kestner  <mkestner@novell.com>
8743
8744         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
8745         and set Selected instead.
8746         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
8747         collections.
8748
8749 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
8750
8751         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
8752
8753 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
8754
8755         * FontDialog.cs:
8756           - Got rid of the panel. All controls are now directly added to
8757             the dialog form
8758           - It is now possible to set a font with the Font property
8759           - MinSize and MaxSize property do now what they should
8760           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
8761           - Searching and selecting a font with the font textbox works now,
8762             the same applies to the style and size textbox
8763           - Draw the correct 3D border in the example panel
8764           - Fixed a little mem leak (unused fonts didn't get disposed)
8765           - Many other internal updates/rewrites...
8766           - Fix typo
8767
8768 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
8769
8770         * TextControl.cs: 
8771           - InsertRTFFromStream: Added 'number of characters inserted' argument
8772           - set_SelectedRTF: Now using the number of characters to calculate
8773             the new location for the selection and cursor (x/y cannot be used
8774             due to potentially already wrapped text)
8775
8776 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
8777
8778         * TextControl.cs: Added property and implemented means to allow 
8779           disabling recalculation of a document (can be used to speed up
8780           multiple inserts and is needed to make RTF inserts predictable, see
8781           bug #77659)
8782         * RichTextBox.cs: Using the new NoRecalc property of Document to
8783           keep x/y insert locations predictable. Also makes it faster inserting
8784           large chunks of RTF
8785
8786 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
8787
8788         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
8789           it's easier for a child control to handle the other messages without
8790           having to duplicate the special functionality
8791         * TextBoxBase.cs
8792           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
8793             code to handle processing the key ourselves, in order to get 
8794             access to the result of KeyEventArgs.Handled. We now only call 
8795             ProcessKey if they key hasn't been handled already. Fixes #77526.
8796           - set_Text: If null or empty string is given, just clear the 
8797             document. Fixes part of #77526
8798
8799 2006-02-27  Jackson Harper  <jackson@ximian.com>
8800
8801         * SizeGrip.cs: Paint the background color before painting the grip
8802         so things look right.
8803         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
8804
8805 2006-02-27  Mike Kestner  <mkestner@novell.com>
8806
8807         * ListView.cs:
8808           - Restructure layout and invalidation model to remove a ton of
8809           flicker from the control and speed up performance in general.
8810           - Add manual column resize, flickers like crazy, but I already have
8811           some ideas on how I'll fix that. (#76822)
8812           - Merge the three Icon-based views into a single layout method.
8813           - Move item selection interaction logic from the item since 
8814           interaction with the collections is more appropriate to the view.
8815           - Deselection on non-item clicks.
8816         * ListViewItem.cs:
8817           - Encapsulate most of the layout. Add some internal props to trigger
8818           layout.  Move to a model where Items invalidate themselves instead
8819           of just invalidating the whole control every time something changes.
8820           - Invalidate on Text/Caption changes.
8821           - switch to an offset based layout model to avoid having to absolute
8822           position every element on item moves.
8823           - correct checkbox layout to conform to MS layout.
8824         * ThemeWin32Classic.cs:
8825           - refactor some column header drawing code.
8826           - fix string justification for column headers (#76821)
8827           - make SmallIcon labels top justified for compat with MS impl.
8828         * ThemeClearlooks.cs:
8829           - adjust to new ListViewItem internal checkbox bounds api.
8830
8831 2006-02-27  Jackson Harper  <jackson@ximian.com>
8832
8833         * Control.cs:  Change where implicit controls fall in the zorder.
8834         They are now on top of all children.
8835         - Synced AddImplicit code with Add
8836         - Removed unused enumerator.
8837         * SizeGrip.cs: Remove the TODO as its been TODONE.
8838
8839 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
8840
8841         * TextControl.cs(Insert): Combine the last lines unless the insertion
8842           string ends with \n\n, otherwise we leave one line too many (Fixes
8843           something I noticed with the testapp for #77526; the bug itself was
8844           already fixed in the previous checkin)
8845
8846 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
8847
8848         * RichTextBox.cs:
8849           - SelectionColor and SelectionFont methods no longer set absolute
8850             styles. Instead, the keep font or color respectively (This 
8851             resolves a long-standing FIXME in the code)
8852           - When flushing RTF text, the insert code now considers text trailing
8853             behind the insertion point (Fixes the bug where when replacing
8854             the selected text via SelectedRTF the remainder of the line behind 
8855             the selection would stay on the first insertion line)
8856         * TextBoxBase.cs:
8857           - AppendText now updates the selection points after inserting text
8858           - AppendText now ensures that the last tag (sometimes 0-length) of
8859             the document is used for the style information (Fixes part of 
8860             bug #77220)
8861         * TextControl.cs:
8862           - Created new FontDefiniton class to allow describing partial style
8863             changes
8864           - StreamLine() now takes a lines argument, to allow it to decide
8865             whether an encountered zero-length tag is the last in the document
8866             (which must be kept to not loose the font/color contained in it,
8867             for later appends)
8868           - Created Combine() and Split() methods for Marker structs, to 
8869             support marker updates due to reformatted documents (soft line
8870             wraps)
8871           - Implemented Document.CaretTag setter
8872           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
8873             of the last line (Not the cause, but also exposed by bug #77220)
8874           - Added LineTag argument to InsertString method, to allow callers
8875             to force a certain tag to be used (required to force use of the
8876             trailing zero-length tag of a document)
8877           - Now updating markers in Combine(), to avoid stale tag markers
8878           - Added some method descriptions to aid maintenance
8879           - Implemented new FormatText concept, allowing additive/subtractive
8880             formatting by only specifying the components that are to be 
8881             changed. This was needed for resolving the RTB.SelectedColor/
8882             RTB.SelectedFont fixmes
8883           - Added Break() support method to allow breaking up linetags (used
8884             for partial formatting)
8885           - Added GenerateTextFormat() method. It is used for partial 
8886             formatting and allows to generate a full font/color from given
8887             attributes and an existing tag.
8888
8889 2006-02-26  Jackson Harper  <jackson@ximian.com>
8890
8891         * XplatUIX11.cs:  Use the correct caption height.
8892         - Translate hittest coordinates to screen coords to match MS.
8893         * XplatUIWin32.cs: When we create MDI windows we need to reset
8894         some of the style flags, so we get a nice blank window, and can
8895         draw all the decorations ourselves.
8896         - Set a clipping rectangle on the non client paint event, the
8897         window manager drawing code needs one.
8898         * Form.cs: The window manager needs to know when the window state
8899         has been updated.
8900         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
8901         don't need to factor in border and title sizes in these
8902         methods. TODO: Remove the args and fix the call points.
8903         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
8904         properly.
8905         - Let the driver set the cursors.
8906         - Improve active window handling
8907         - Correct sizes for title bars and buttons.
8908         - Match MS drawing better
8909         * MdiWindowManager.cs: We don't need to handle border style
8910         updates specially anymore.
8911         - Check for scrollbars when windows are done moving
8912         - Handle Active properly.
8913         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
8914         correctly. I am spewing the exception though, so we don't hide the
8915         bugs.
8916         
8917 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
8918
8919         * DataGridViewRowPostPaintEventArgs.cs,
8920           DataGridViewCellPaintingEventArgs.cs,
8921           DataGridViewRowCollection.cs,
8922           DataGridViewRowPrePaintEventArgs.cs,
8923           DataGridViewCell.cs: Clear a few warnings and implement a few
8924           exceptions that should be thrown.
8925
8926 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
8927
8928         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
8929           'inheriting' our parent's (non-default) cursor. (Part of
8930            the fix for #77479)
8931
8932 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
8933
8934         * XplatUIX11.cs: Fixed cast to make csc happy
8935
8936 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
8937
8938         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
8939           it's for the client area (part of fix for #77479 and needed
8940           for MDI window cursor handling)
8941         * XplatUIX11.cs
8942           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
8943             the appropriate default cursors and also passing the message
8944             up the parent chain 
8945           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
8946             for non-client areas
8947
8948 2006-02-15  Jackson Harper  <jackson@ximian.com>
8949
8950         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
8951         is a real MDI window
8952
8953 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
8954
8955         * X11DesktopColors.cs: Instead of checking the desktop session
8956           string for "KDE" check if it starts with "KDE"
8957
8958 2006-02-10  Jackson Harper  <jackson@ximian.com>
8959
8960         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
8961         systems).
8962
8963 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
8964
8965         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
8966           errors
8967         * ColorDialog.cs:
8968           - Got rid of the panel. All controls are now directly added to
8969             the dialog form
8970           - Changed to mono coding style
8971
8972 2006-02-10  Jackson Harper  <jackson@ximian.com>
8973
8974         * InternalWindowManager.cs: We don't need the set visibility to
8975         false hack anymore now that peter has written beautiful shutdown
8976         code.
8977
8978 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
8979
8980         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
8981           where already explicitly destroyed
8982
8983 2006-02-10  Jackson Harper  <jackson@ximian.com>
8984
8985         * MdiClient.cs: Handle the case where windows are too high or to
8986         the left and we need scrollbars.
8987
8988 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
8989
8990         * MimeIcon.cs: Added some icons
8991         * FileDialog.cs:
8992           - Fixed bug #77477
8993           - Got rid of the panel. All controls are now directly added to
8994             the dialog form
8995           - Changed to mono coding style
8996           - On Linux "My Computer" and "My Network" will now show some
8997             more usefull information. A new class, MasterMount, gathers
8998             this information from /proc/mount. Updated MWFFileView to make
8999             use of this information
9000           - Fixed a bug that caused FileDialog to crash when
9001             ".recently_used" file had a zero size
9002           - FilterIndex does now what it should
9003           - Some Refactoring
9004         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
9005             FileDialog changes
9006
9007 2006-02-09  Jackson Harper  <jackson@ximian.com>
9008
9009         * ComboBox.cs: Don't touch if null.
9010
9011 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
9012
9013         * Cursor.cs: 64bit safeness fix
9014         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
9015
9016 2006-02-09  Jackson Harper  <jackson@ximian.com>
9017
9018         * Form.cs: If a form is made into an MDI form update the styles so
9019         all the props can get set correctly.
9020         - Kill the mdi_container when we dont need it anymore.
9021         * InternalWindowManager.cs: Add missing NOT
9022
9023 2006-02-08  Jackson Harper  <jackson@ximian.com>
9024
9025         * InternalWindowManager.cs: Respek clipping when drawing MDi
9026         decorations.
9027
9028 2006-02-08  Jackson Harper  <jackson@ximian.com>
9029
9030         * Hwnd.cs: Add bits to track non client expose events.
9031         * XplatUIX11.cs: Track non client expose events on the hwnd. This
9032         gives us a proper invalid rect and will allow for some nice
9033         optimizations with NC client drawing
9034         - MDI windows are children windows, so move their style handling
9035         into the child window block.
9036         * InternalWindowManager.cs: Remove a state reset that was
9037         getting invoked at the wrong time. Fixes managed windows getting
9038         into a 'stuck' captured state.
9039
9040 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9041
9042         * TextControl.cs (Document.ctor): Now initializing 
9043           selection_anchor. Fixes #77493
9044
9045 2006-02-07  Jackson Harper  <jackson@ximian.com>
9046
9047         * TrackBar.cs: The increment/decrements were backwards.
9048
9049 2006-02-07  Mike Kestner  <mkestner@novell.com>
9050
9051         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
9052         to the instance itself.
9053
9054 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
9055
9056         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
9057           on ulongs and pointers, the size differs between 32bit and 64bit
9058           systems. 
9059
9060 2006-02-07  Mike Kestner  <mkestner@novell.com>
9061
9062         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
9063         for 64 bit platforms to work around a metacity bug. 
9064
9065 2006-02-07  Jackson Harper  <jackson@ximian.com>
9066
9067         * TrackBar.cs: Process the input keys we need, and hookup to
9068         KeyDown instead of using WndProc, so we get key messages.
9069
9070 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
9071
9072         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
9073           machine we're on. 
9074         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
9075           we need to translate the XdndVersion atoms array before sending it
9076
9077 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
9078
9079         * XplatUIX11.cs: 
9080           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
9081             number of bits for the property, not the number of bytes. The
9082             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
9083             but would not crash since it specified 8 bits instead of 4 bits)
9084           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
9085             defined as XID -> long in the C headers)
9086           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
9087             references since those are now IntPtr to begin with
9088           - Switched all Atom.XXX 'int' casts to IntPtr casts
9089           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
9090           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
9091           - Added XChangeActivePointerGrab DllImport (for X11DnD)
9092         * X11Structs.cs:
9093           - Changed 'int' type for Atoms in XEvent structures to IntPtr
9094           - Changed atom in HoverStruct to be IntPtr
9095         * X11DnD.cs:
9096           - Removed local DllImports, switched code to use those from XplatUIX11
9097           - Removed/fixed casts related to the switch of Atom to be a IntPtr
9098
9099 2006-02-06  Mike Kestner  <mkestner@novell.com>
9100
9101         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
9102         method signatures in the import region.  There may still be some
9103         lingering struct marshaling issues, as I didn't drill down into those.
9104         Yet.
9105
9106 2006-02-06  Jackson Harper  <jackson@ximian.com>
9107
9108         * ComboBox.cs: Dont manually set the top_item, this is computed
9109         when the scrollbar position is set.
9110
9111 2006-02-06  Mike Kestner  <mkestner@novell.com>
9112
9113         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
9114         startup crashes on amd64.  There's other fixes needed.  All pinvoke
9115         usage of Atom needs to be mapped to IntPtr for example.  And there are
9116         likely other int/long issues to be addressed.
9117
9118 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
9119
9120         * FileDialog.cs: One more...
9121
9122 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9123
9124         * FileDialog.cs: Next try
9125
9126 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9127
9128         * FileDialog.cs: First part of fix for #77464
9129
9130 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
9131
9132         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
9133           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
9134           AcceptButton border drawing.
9135
9136 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
9137
9138         * Form.cs: Moved positioning of form after auto scaling is applied,
9139           otherwise it would possibly use wrong form size.
9140
9141 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
9142
9143         * Control.cs (RecreateHandle): No need to re-create any child
9144           controls, the child windows will get destroyed automatically by
9145           the windowing system or driver, and re-created when the handle
9146           is being accessed the first time. Fixes #77456
9147         * Form.cs: No longer setting the form to closing if the handle is 
9148           being recreated. This seems like the right thing to do, don't
9149           have a bug or testcase for this, though.
9150
9151 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9152
9153         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
9154           controls to avoid unwanted side effects
9155
9156 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
9157
9158         * Control.cs: 
9159           - ScaleCore needs to scale the bounds, not the ClientSize of the 
9160             control. Fixes #77416.
9161           - DefaultSize is 0,0 for control
9162         * TextBoxBase.cs: 
9163           - DefaultSize is 100, 20
9164           - SetBoundsCore: Now enforcing the height, no matter if the provided
9165             height is more or less than the preferred one, as long as AutoSize
9166             is on
9167         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
9168
9169 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
9170
9171         * Control.cs:
9172           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
9173             call unless both performLayout is true *and* we have a pending
9174             layout change
9175           - ResumeLayout: MS does not completely nest Suspend and Resume,
9176             they bottom out at 0, fixed our code to match that.
9177           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
9178             SetBoundsCore, we were updating even when we shouldn't. This fixes
9179             swf-anchors mis-anchoring when resizing the app fast and lots.
9180           - UpdateDistances: Now only setting the left and top distance if 
9181             we have a parent and are not suspended, this is based on
9182             a suggestion by Don Edvaldson in bug #77355.
9183           - OnVisibleChanged: Fixed logic when to create the control. We may
9184             not create the control if we have no parent or if it's not visible;
9185             switched to using Visible property instead of is_visible field 
9186             since the property also considers parent states. This fixes a bug
9187             when starting Paint.Net
9188
9189 2006-02-02  Jackson Harper  <jackson@ximian.com>
9190
9191         * Form.cs: If the forms handle hasn't been created yet don't call
9192         into xplatui to make it top most, just set the topmost flag on the
9193         form in CreateParams
9194         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
9195
9196 2006-02-01  Jackson Harper  <jackson@ximian.com>
9197
9198         * ScrollableControl.cs: Refactored the Recalculate method a
9199         little, this wasn't handling all the variants of bottom and right
9200         bars needed to be added and added/removed based on their
9201         counterparts being added/removed (which changes the drawable
9202         size). Also we special case client widths and heights of 0 and
9203         don't add the scrollbar for those.
9204
9205 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
9206
9207         * XplatUIX11.cs: 
9208           - Added method to get AbsoluteGeometry(); currently unused, but might
9209             be used in the future, if we try again to figure out toplevel
9210             coordinates with some more crappy window managers
9211           - Added FrameExtents() method to retrieve the WM set decoration size
9212           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
9213             to deal with at least KDE, FVWM and metacity (Fixes #77092)
9214         * Hwnd.cs: 
9215           - Added whacky_wm tracking var for metacity
9216           - Added logic to have default menu height if the actual menu height
9217             has not yet been calculated (part of fix for #77426)
9218         * Form.cs: Keep track whether client size has been set and re-set 
9219           it if a menu is added/removed afterwards (Fixes #77426)
9220
9221 2006-01-31  Jackson Harper  <jackson@ximian.com>
9222
9223         * Control.cs: When a new Site is set on the component attempt to
9224         pull the AmbientProperties from it.
9225
9226 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
9227
9228         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
9229           in the background of the owning form. Fixes #77332
9230
9231 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9232
9233         * MimeIcon.cs: Fix for #77409
9234
9235 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
9236
9237         * XplatUIX11GTK.cs: Initial import
9238
9239 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
9240
9241         * FixedSizeTextBox: fixes class signature
9242
9243 2006-01-30  Jackson Harper  <jackson@ximian.com>
9244
9245         * FixedSizeTextBox.cs: New internal class that represents a
9246         textBox that will not be scaled.
9247         * TreeView.cs:
9248         * ComboBox.cs:
9249         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
9250         standard TextBox.
9251                 
9252 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
9253
9254         * XplatUIX11.cs: Retrieve default screen number instead of
9255           assuming 0. Attempted fix for #77318
9256
9257 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
9258
9259         * XplatUIWin32.cs: 
9260           - GetWindowPos: When a window is parented by FosterParent, use 
9261             the desktop instead of FosterParent as the base to get coordinates
9262           - CreateWindow: Don't make FosterParent the parent window for Popups
9263             if we don't want a taskbar entry, Popups automatically don't get one
9264         * Hwnd.cs: Need to call remove to actually remove the key from the
9265           hash table
9266
9267 2006-01-30  Mike Kestner  <mkestner@novell.com>
9268
9269         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
9270
9271 2006-01-30  Jackson Harper  <jackson@ximian.com>
9272
9273         * TreeView.cs:
9274         * TreeNode.cs: Raise events no matter how the treenode is
9275         checked. Patch by Don Edvalson.
9276
9277 2006-01-30  Jackson Harper  <jackson@ximian.com>
9278
9279         * TreeNode.cs: Signature fix.
9280
9281 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
9282
9283         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
9284
9285 2006-01-20  Mike Kestner  <mkestner@novell.com>
9286
9287         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
9288         event forwarding when menus are active.
9289         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
9290         Most of the patch is pdb's with a little rework.
9291
9292 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9293
9294         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
9295           Removed GetMenuDC and ReleaseMenuDC methods; replaced
9296           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
9297         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
9298         * InternalWindowManager.cs: Added use of PaintEventStart/End to
9299           handling of WM_NCPAINT message, now passing the PaintEventArgs to
9300           the PaintWindowDecorations method
9301         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
9302         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
9303         * MenuAPI.cs: Made tracker window invisible
9304         * XplatUIWin32.cs:
9305           - Removed GetMenuDC and ReleaseMenuDC methods
9306           - Implemented the client=false path for PaintEventStart and
9307             PaintEventEnd
9308
9309 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9310
9311         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
9312         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
9313           styles
9314         * Form.cs: 
9315           - MaximizeBox, MinimizeBox: Recreate the handle when setting
9316             the style
9317           - CreateParams: Reworked the styles to match MS look'n'feel,
9318             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
9319             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
9320
9321 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9322
9323         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
9324           window is not mapped, since otherwise every form that's being 
9325           created is considered minimized, which is wrong.
9326         * Form.cs: Catching the exception and returning our internal value
9327           instead
9328
9329 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9330
9331         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
9332           SetWindowMinMax() to have means to tell the driver about the minimum,
9333           maximum and maximized state window sizes. (Part of the fix for #76485)
9334         * Form.cs:
9335           - Implemented tracking of minimum and maximum window size, now calling
9336             new SetWindowMinMax() driver method to tell the driver (Part of the
9337             fix for #76485)
9338           - Finished handling of WM_GETMINMAXINFO method, now setting all values
9339             (Completes fix for #76485)
9340           - Calling new SetWindowMinMax driver method when the handle for a 
9341             form is created, to make sure the driver knows about it even if
9342             the values have been set before the window was created
9343           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
9344             to avoid messing up our anchoring calculations (partial fix
9345             for #77355)
9346         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
9347         * XplatUIX11.cs:
9348           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
9349           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
9350             (and presumably other freedesktop.org compliant WMs). Left the
9351             assumption unmapped=minimized, needed for SetVisible to work.
9352           - Now setting the window state when creating windows
9353           - Fixed SetVisible to consider/set the window state when mapping
9354             a Form. We cannot set the state before it's mapped, and we cannot
9355             use Form.WindowState once it's mapped (since it would ask the
9356             driver and get 'normal'. Therefore, we grab the state before
9357             mapping, map, and then set state.
9358           - Implmemented SetWindowMinMax method; Metacity does not seem to
9359             honor the ZoomHints, though.
9360         * XplatUIWin32.cs:
9361           - Removed MINMAXINFO (moved to XplatUIStructs)
9362           - Added SetWindowMinMax stub (on Win32 the only way to set that
9363             information is in response to the WM_GETMINMAXINFO message, which
9364             is handled in Form.cs)
9365           - Added logic to SetVisible to set the proper window state when a 
9366             form is made visible (fixes #75720)
9367
9368 2006-01-26  Jackson Harper  <jackson@ximian.com>
9369
9370         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
9371         same way we handle them with Invoke.
9372
9373 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
9374
9375         * Form.cs:
9376           - Added tracking of window state so CreateParams can return
9377             the appropriate style
9378           - Moved setting of WS_CAPTION style in CreateParams to allow
9379             styles without caption
9380         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
9381           control if the TextBox property is accessed. Fixes #77345
9382         * Control.cs:
9383           - get_Created: now uses is_disposed and is_created to determine
9384             return value (suggested by Jackson)
9385           - CreateHandle: No longer exits if the handle is being recreated
9386           - RecreateHandle: If the handle is not yet created call the 
9387             appropriate method to create either control or handle. If the
9388             control is already created CreateHandle will simply exit instead
9389             of just creating the handle
9390         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
9391           now SendMessage WM_DESTROY directly to the control when DestroyWindow
9392           is called.
9393         * XplatUIX11.cs: 
9394           - When DestroyWindow is called, instead of waiting for the 
9395             DestroyNotification from X11, we directly post it to the WndProc
9396             and immediately dispose the hwnd object.
9397             Same applies to DestroyChildWindows, and this obsoletes the
9398             expose_pending tracking. Contrary to Win32 behaviour we destroy our
9399             child windows before our own, to avoid X11 errors.
9400           - Removed the direct sending of WM_PAINT on UpdateWindow
9401         * XplatUIWin32.cs:
9402           - Reworked DoEvents and GetMessage to allow access to internal queue
9403             even when trying non-blocking access to the queue.  Fixes #77335. 
9404             Based on a patch suggestion by Don Edvalson. The new private
9405             GetMessage can now also be used as a backend for a PeekMessage
9406             frontend version.
9407         * XplatUI.cs: Improved debug output for CreateWindow
9408
9409 2006-01-25  Jackson Harper  <jackson@ximian.com>
9410
9411         * Help.cs: Allow param to be null. Patch by Don Edvalson.
9412
9413 2006-01-24  Jackson Harper  <jackson@ximian.com>
9414
9415         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
9416         when we have a MaxDropItems lower then the selected index.
9417
9418 2006-01-24  Jackson Harper  <jackson@ximian.com>
9419
9420         * Control.cs: Don't allow selection of non visible controls, allow
9421         selection of controls without parents.
9422
9423 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9424
9425         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
9426         * DataGridDrawingLogic.cs: Add editing row only when is necessary
9427
9428 2006-01-23  Jackson Harper  <jackson@ximian.com>
9429
9430         * UpDownBase.cs: Make the textbox handle all the selection and
9431         tabbing. This fixes tabing to updown controls.
9432
9433 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9434
9435         * TextBoxBase.cs: fixes exception thown the object was null
9436
9437 2006-01-23  Jackson Harper  <jackson@ximian.com>
9438
9439         * ButtonBase.cs: Just use the base CreateParams. They set
9440         visibility and enabled correctly.
9441         * ComboBox.cs:
9442         * TrackBar.cs:
9443         * MonthCalendar.cs: Lets let the base set as much of the
9444         createparams as possible so we don't have duplicate code all over
9445         the place.
9446
9447 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
9448
9449         * ThemeGtk.cs: Added TrackBar and some experimental code to
9450           get double buffering back
9451
9452 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
9453
9454         * DataGrid.cs: Allows row number set internally higher than the last
9455         when creating a new row. Restores the editing functionality.
9456
9457 2006-01-20  Mike Kestner  <mkestner@novell.com>
9458
9459         * MimeIcon.cs: delay Image creation until the icons are accessed
9460         instead of creating 190 scaled images on GnomeHandler startup.
9461
9462 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
9463
9464         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
9465           first call base before processing the event. Fixes #77279
9466
9467 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
9468
9469         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
9470           that the stride for the GDI bitmap would match the stride of
9471           a DIB or a Cursor.
9472
9473 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
9474
9475         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
9476
9477 2006-01-19  Jackson Harper  <jackson@ximian.com>
9478
9479         * ComboBox.cs: Hookup the text controls keydown event so we get
9480         those when the text control has the focus.
9481
9482 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9483
9484         * Label.cs: Now using the base events instead of defining new ones;
9485           this allows us to just call the base properties without having to
9486           duplicate all base property logic 
9487
9488 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9489
9490         * Label.cs: A label by default is not a tabstop (Fixes one of our
9491           failing nunit tests)
9492
9493 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9494
9495         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
9496         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
9497
9498 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9499
9500         * Cursor.cs: Reimplemented creating cursor bitmaps without using
9501           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
9502           This fixes #77218
9503         * XplatUIWin32.cs: 
9504           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
9505             constructor creates images that can't be saved. Part of the fix
9506             for #76103
9507           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
9508           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
9509             bug fix for handling window state in forms properly)
9510
9511 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9512
9513         * ThemeGtk.cs: Simplify ScrollBar drawing
9514
9515 2006-01-18  Jackson Harper  <jackson@ximian.com>
9516
9517         * Splitter.cs: Set the default dock style for the splitter control
9518         in the constructor.
9519
9520 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9521
9522         * ThemeGtk.cs: Corrected StateType and ShadowType for
9523           gtk_paint_box
9524
9525 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9526
9527         * Control.cs: Make use of Theme.DoubleBufferingSupported
9528         * ThemeGtk.cs:
9529           - Added drawing for flat style buttons
9530           - Added ScrollBar drawing
9531
9532 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9533
9534         * ThemeClearlooks.cs: Removed some unneeded code.
9535         * ThemeGtk.cs: First part of ThemeGtk enhancements.
9536
9537 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9538
9539         * LinkLabel.cs: We need to update the hover drawing when
9540           leaving the control as well.
9541
9542 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
9543
9544         * DataGrid.cs: Clicking on non empty areas in the columns
9545            area was giving an exception
9546
9547 2006-01-17  Jackson Harper  <jackson@ximian.com>
9548
9549         * ThemeWin32Classic.cs:
9550         * ListView.cs: Do not draw/clip the headers when the header style
9551         is None.
9552
9553 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9554
9555         * DataGrid.cs: Fixes 77260
9556         
9557 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9558
9559         * DataGrid.cs: Clicking on a column on a empty grid was giving
9560           an exception
9561
9562 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9563
9564         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
9565           or any keypress will crash the grid.
9566
9567 2006-01-17  Mike Kestner  <mkestner@novell.com>
9568
9569         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
9570         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
9571         invisible/previously-visible items.
9572         [Fixes #76909]
9573
9574 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
9575
9576         * ThemeClearlooks.cs:
9577         - Added CL_Draw_Button method; now other theme controls that are 
9578           not derived from button or do not have a button can draw buttons
9579           too
9580         - Updated ComboBox drawing
9581         - Beautified RadioButton drawing
9582         - Corrected drawing of bottom and left tabs
9583         - Beautified DateTimePicker and MonthCalendar
9584         - Added CPDrawButton and CPDrawRadioButton
9585
9586 2006-01-16  Jackson Harper  <jackson@ximian.com>
9587
9588         * ComboBox.cs: Set the initial value of the scrollbar to the
9589         current index. Reduce the numbers of refreshs and IndexOfs called.
9590
9591 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
9592
9593         * FileDialog.cs: When the file listview is focused hitting the
9594           backspace key moves the fileview to the parent directory
9595
9596 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9597
9598         * Form.cs: 
9599           - Added RecreateHandle call when changing taskbar visibility to 
9600             trigger reparenting in Win32 driver (Fixes #75719)
9601           - If a window has minimize or maximize buttons, it cannot have
9602             a help button
9603         * XplatUIWin32.cs:
9604           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
9605             the toplevel form with FosterParent (A toolwindow not on the
9606             taskbar) (Fixes #75719)
9607           - Made FosterParent a toolwindow
9608
9609 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9610
9611         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
9612
9613 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9614
9615         * ToolTip.cs: If SetToolTip is called from a control and the mouse
9616           is currently over that control, make sure that tooltip_window.Text
9617           gets updated
9618
9619 2006-01-13  Mike Kestner  <mkestner@novell.com>
9620
9621         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
9622
9623 2006-01-13  Jackson Harper  <jackson@ximian.com>
9624
9625         * TreeView.cs: On MS GetNodeAt never actually factors in the X
9626         value passed.  Also redraw the selected node when we recieve
9627         focus, so tabbing between trees works correctly.
9628
9629 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9630
9631         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
9632           ~/.gconf/%gconf-tree.xml, so use
9633           .gconf/desktop/gnome/interface/%gconf.xml
9634
9635 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9636
9637         * TextControl.cs: Draw text in gray if control is disabled
9638
9639 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9640
9641         * TreeView.cs: Draw the focus rectangle outside the highlight, to
9642           make sure it's always visible. Fixes #76680.
9643
9644 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9645
9646         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
9647
9648 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
9649
9650         * PageSetupDialog.cs: Added.
9651         * PrintDialog.cs: Attributes.
9652         * PrintPreviewControl.cs: Updates.
9653         * PrintPreviewDialog.cs: Updates.
9654         
9655 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9656
9657         * Control.cs: Undid my selection check fix, since it's not needed
9658         * TextBoxBase.cs:
9659           - Now considering the presence of hscroll/vscroll when sizing
9660             vscroll/hscroll respectively. Fixed bug #77077
9661           - Added Left/Up/Down/Right to IsInputKey list to prevent
9662             ContainerControl from stealing them. This fixes what I broke
9663             with my last checkin.
9664
9665 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
9666
9667         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
9668           I finally understand how the property can be set without a setter :-)
9669
9670 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9671
9672         * Application.cs:
9673           - Switched RunLoop to use static Message.Create to create a 
9674             Message object
9675           - Added PreProcessMessage call in runloop for keyboard events; this
9676             is part of the fix for #77219, I overlooked this originally in the
9677             MSDN doc for PreProcessMessage
9678         * Control.cs:
9679           - Removed call to PreProcessMessage from handling of keyboard 
9680             messages; it's supposed to be done in the message pump
9681           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
9682             per MSDN documentation.
9683           - IsInputChar: All chars are input chars by default; removed the 
9684             parent calling chain, MS does not document that
9685           - PreProcessMessage: If IsInputChar is true, we want to return false
9686             to allow dispatching of the message
9687           - When selecting the next control, now also check that we're not
9688             selecting ourselves again and therefore return a false positive.
9689         * TextBoxBase.cs:
9690           - Tried to match return values for IsInputKey and ProcessDialogKey
9691             to what MS returns; moved processing of our special keys outside
9692             ProcessDialogKey since MS does not seem to return true on those.
9693           - Moved code that previously was in ProcessDialogKey into new private
9694             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
9695           - Reworked handling of WM_CHAR to not have to duplicate code from
9696             Control.cs anymore, instead we simply call down to base.
9697            
9698 2006-01-12  Jackson Harper  <jackson@ximian.com>
9699
9700         * ComboBox.cs: We always need to refresh the text area when
9701         EndUpdate is called. Fixes the combobox in the file dialog.
9702         * Control.cs: Don't create the creator_thread until the controls
9703         handle is created.  Also in InvokeRequired we check if the
9704         creator_thread is null. This gives the effect of InvokeRequired
9705         returning true if the controls handle is not created yet, and
9706         matches MS.
9707
9708 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9709
9710         * XplatUI.cs:
9711           - Added StartLoop() driver method. This is used to allow drivers to
9712             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
9713             loop for a particular thread
9714           - Added EndLoop() driver method. This is called once the message
9715             pump for the thread is shut down
9716           - Added SupportsTransparency method to allow the driver to indicate
9717             opacity support for windows
9718         * Form.cs:
9719           - Removed TODO attribute, completed AllowTransparency property
9720           - Added documented logic to Opacity
9721         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
9722           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
9723           versions of CompatibleTextRendering
9724         * X11Structs.cs: Added opacity atom to our atom enumeration
9725         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
9726           of a form might be set before it's reparented by the WM, and we need
9727           the opacity value without calling up to Form)
9728         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
9729           SupportsTransparency() driver methods
9730         * Application.cs: Now calling StartLoop and EndLoop driver methods
9731         * XplatUIX11.cs:
9732           - Added opacity atom registration
9733           - Added StartLoop()/EndLoop() methods. They're empty right now but
9734             will need to get implemented when we switch to a per-thread queue
9735           - Implemented SupportsTransparency() method
9736           - Implemented SetWindowTransparency() method
9737           - Added support for setting the opacity value when a window is
9738             reparented (since the opacity needs to be set on the WM frame)
9739         * XplatUIOSX.cs, XplatUIWin32.cs:
9740           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
9741
9742 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
9743
9744         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
9745
9746 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
9747
9748         * FileDialog.cs: Added ToolTip for MWFFileView
9749         * MimeIcon.cs: Rewrote GnomeHandler.
9750           - Get currently used gnome icon theme from
9751             ($HOME)/.gconf/%gconf-tree.xml
9752           - Make use of inherited icon themes
9753           - Support SVG icon themes like Tango via librsvg
9754
9755 2006-01-12  Miguel de Icaza  <miguel@novell.com>
9756
9757         Revert's Jackson's revert which broke 2.0 builds.   Fix both
9758         builds. 
9759         
9760         * Application.cs: Move the use_compatible_text_rendering outside
9761         the NET_2_0 define.  If we ever need to use the
9762         use_compatible_text_rendering on the individual controls they will
9763         access the variable from the common shared code paths.
9764
9765 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9766
9767         * XplatUI.cs:
9768           - Added more granular debug options
9769           - Added method to print both window text and id
9770           - Switched debug output to use new Window() debug method
9771           - Added IsEnabled() driver method
9772           - Added EnableWindow() driver method
9773         * Form.cs:
9774           - Removed end_modal; no longer needed, new loop handles termination
9775             via 'closing' variable
9776           - If form is modal, setting DialogResult will now initiate loop
9777             termination via 'closing' variable
9778           - Added support for is_enabled/WS_DISABLED to CreateParams
9779           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
9780             does all the work
9781           - Removed code that's now in RunLoop from ShowDialog()
9782           - Added various documented sanity checks to ShowDialog()
9783           - Added handling of WM_DESTROY message; we set 'closing' on getting
9784             the message to indicate the message pump to terminate
9785           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
9786             send by the Application.ExitThread method. (We send the message
9787             to destroy the window after all other events have been
9788             processed through the queue, instead of destroying the handle 
9789             directly)
9790           - Moved code from Close() method to WM_CLOSE handler; added logic
9791             to only send close-related events if the form is not displayed
9792             modal
9793         * Splitter.cs (..ctor): Fixed typo in resource name
9794         * Control.cs:
9795           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
9796             brush now
9797           - set_Cursor: Now only setting calling into XplatUI if the handle for
9798             the control is already created; this avoids implict handle creation
9799             or crashes if it's not created
9800           - set_Enabled: Now setting the enabled state via the new driver method
9801             instead of just tracking it
9802           - CreateParams: Added logic to set WS_DISABLED based on enabled state
9803           - CreateControl: Reordered event firing and method calls to more
9804             closely fire events in the order MS does. Now setting the
9805             enabled state in the driver when creating the control.
9806           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
9807             match MS order
9808         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
9809           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
9810         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
9811         * Hwnd.cs:
9812           - Added tracking of window enabled state (get_Enabled/set_Enabled)
9813           - Added EnabledHwnd property to easily allow a driver to find the
9814             handle of the first enabled window in the parent chain (this is
9815             used by drivers to pass up input events of disabled windows)
9816         * XplatUIDriver.cs: Added IsEnabled() method
9817         * Application.cs:
9818           - Removed crude and obsolete exiting tracking variable
9819           - Removed internal ModalRun(); replaced by RunLoop()
9820           - Implemented private CloseForms() method to allow closing all 
9821             windows owned by a particular (or all) threads
9822           - Exit() now properly closes all windows without forcing the message
9823             pump to quit
9824           - Removed obsolete InternalExit() method
9825           - Changed Run() methods to use new RunLoop() message pump
9826           - Implemented new RunLoop() method for both modal and non-modal forms
9827         * CommonDialog.cs:
9828           - get_CreateParams: Added setting of WS_DISABLED
9829           - Simplified ShowDialog(); now all the work is done in RunLoop(),
9830             invoked via Form.ShowDialog()
9831         * NativeWindow.cs: We don't remove the window from the collection when
9832           the handle is destroyed; there might still be messages for it in the
9833           queue (mainly the resulting WM_DESTROY); instead it will be removed
9834           when Control calls InvalidateHandle in the WM_DESTROY handler
9835         * XplatUIX11.cs:
9836           - CreateWindow: Added logic to handle the WS_DISABLED window style
9837           - EnableWindow: Implemented based on Hwnd.Enabled
9838           - GetMessage: Reset PostQuitState so the method can be called again
9839           - Implemented support for disabled windows (passing messages to the
9840             first enabled parent) in handling all input messages
9841           - Added optimizations for handling Expose events
9842           - Implemeted new driver method IsEnabled()
9843           - Now always resetting paint pending tracking vars when we start paint
9844           - Re-implemented UpdateWindow via just sending a WM_PAINT message
9845         * XplatUIOSX.cs: Added IsEnabled method stub
9846         * XplatUIWin32.cs: Implemented new IsEnabled() method
9847
9848 2006-01-11  Jackson Harper  <jackson@ximian.com>
9849
9850         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
9851         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
9852         variables a little.
9853         * ColorDialog.cs: Clear out the old form before adding the new
9854         panel.  
9855
9856 2006-01-11  Jackson Harper  <jackson@ximian.com>
9857
9858         * X11Dnd.cs: Make sure to add all the text formats when adding
9859         strings to the data object.
9860         * TreeNodeCollection.cs: When adding to a sorted tree we need to
9861         do some redrawing too.  Also change the UpdateNode to an
9862         UpdateBelow so the newly added node gets painted.
9863         
9864 2006-01-11  Miguel de Icaza  <miguel@novell.com>
9865
9866         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
9867         LinkLabel.cs, PropertyGrid.cs: Implement the
9868         UseCompatibleTextRendering property for 2.x
9869
9870         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
9871
9872 2006-01-11  Jackson Harper  <jackson@ximian.com>
9873
9874         * TreeView.cs: Use the property for setting the selected node so
9875         the correct events get raised.
9876         * TreeNode.cs: Update the tree when the fore/back colours of a
9877         node are set.
9878
9879 2006-01-10  Jackson Harper  <jackson@ximian.com>
9880
9881         * TreeView.cs: Allow setting SelectedNode to null.
9882
9883 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9884
9885         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
9886
9887 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9888
9889         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
9890
9891 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9892
9893         * PrintDialog.cs: Added attributes and set default property values.
9894
9895 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9896
9897         * PrintControllerWithStatusDialog.cs: 
9898         Added PrintControllerWithStatusDialog.
9899
9900 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9901
9902         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
9903         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
9904
9905 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9906
9907         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
9908
9909 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9910
9911         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
9912         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
9913
9914 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
9915
9916         * MimeIcon.cs: Added internal class SVGUtil.
9917
9918 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
9919
9920         * FileDialog.cs: Don't crash if there are two files with the
9921           same name but different locations.
9922
9923 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
9924
9925         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
9926         dates across multiple month grids. Used to not highlight entire 
9927         month, but does now.
9928         
9929 2006-01-06  Jackson Harper  <jackson@ximian.com>
9930
9931         * MonthCalendar.cs: Removed DoEvents call to prevent a running
9932         message loop. Change timer intervals to numbers that seem more
9933         natural.
9934
9935 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
9936
9937         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
9938           object for location info since screen object is now implemented.
9939
9940 2006-01-05  Jackson Harper  <jackson@ximian.com>
9941
9942         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
9943         * AsyncMethodResult.cs: We no longer use a WeakReference for the
9944         AsyncMethodResult, this is because we ALWAYS want the
9945         ManualResetEvent to get set.
9946         * Control.cs: When disposing use an async invoke to call shutdown
9947         code, so that thigns don't block on the finalizer thread.  Also
9948         check if we even have a message loop before trying to send
9949         messages, if we don't then don't bother sending messages.
9950         - No more weak references for async methods
9951         * XplatUIDriver.cs: No more weak references for async methods.
9952
9953 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9954
9955         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
9956           returns two FontFamily with the same name
9957
9958 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
9959
9960         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
9961           drawing disabled text. Instead using the ColorGrayText color
9962
9963 2006-01-04  Jackson Harper  <jackson@ximian.com>
9964
9965         * TreeNode.cs: redraw the node when its image index is changed.
9966
9967 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
9968
9969         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
9970           time I checked there are no others like it.
9971
9972 2006-01-04  Jackson Harper  <jackson@ximian.com>
9973
9974         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
9975         this gives the behavoir I was looking for.
9976         * Control.cs: Special case Invoking EventHandlers, this matches MS
9977         and fixes part of bug #76326.
9978
9979 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9980
9981         * ThemeClearlooks.cs, FileDialog.cs:
9982           - Reflect the latest Theme class changes
9983           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
9984             with DateTime
9985             
9986 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9987
9988         * Theme.cs: Cache UI resource images and resize them if needed
9989
9990 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
9991
9992         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
9993           is called. This fixes the crash in Nexxia when setting the font
9994           attributes in the chat. [However, RTF needs a look-over to make sure
9995           that all SelectionXXX methods handle the special case that selection
9996           is empty and therefore the change must be applied to all text starting
9997           at the cursor/selection start]
9998
9999 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
10000
10001         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10002           XplatUIOSX.cs: Added SendMessage and PostMessage methods
10003         * X11Keyboard.cs: Switched to new way of calling PostMessage
10004
10005 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
10006
10007         * Theme.cs: Added theme interface for images to allow the theme to
10008           control what images are used for things like FileDialog, MessageBox
10009           icons, etc.
10010         * MessageBox.cs: Now uses the new Theme icon/image interfaces
10011
10012 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
10013
10014         * FileDialog.cs:
10015           - Removed some dead code
10016           - Opening a recently used file does work now
10017           - Small UI enhancements
10018           - Refactoring
10019
10020 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10021
10022         * FileDialog.cs: Forgot too add __MonoCS__
10023
10024 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
10025
10026         * FileDialog.cs: We are able to read recently used files now let's
10027           go on and write them.
10028
10029 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
10030
10031         * FileDialog.cs: Breathe some life into "last open"/"recently used"
10032           button
10033         * MimeIcon.cs: Do a check for the top level media type also
10034
10035 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10036
10037         * ThemeClearlooks.cs:
10038           - Added CPDrawStringDisabled
10039           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
10040             some chars if the text doesn't fit into text_rect
10041           - DrawListViewItem: If View = View.LargeIcon center the image;
10042             rewrote the drawing of ListViewItem.Text if View = 
10043             View.LargeIcon
10044
10045 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
10046
10047         * MimeIcon.cs: Use default KDE icon theme if there is no
10048           "48x48" directory for the current icon theme, fixes #77114
10049         * Mime.cs: Disable not working and actually not used code. 
10050         * ThemeWin32Classic.cs:
10051           - Replace "new SolidBrush" in GetControlBackBrush and
10052             GetControlForeBrush with ResPool.GetSolidBrush
10053           - Changed DrawListViewItem from private to protected virtual
10054         * FileDialog.cs:
10055           - Added form.MaximizeBox = true
10056           - Don't throw an exception if there is a broken symbolic link
10057
10058 2005-12-23  Jackson Harper  <jackson@ximian.com>
10059
10060         * TabControl.cs: Give the panels focus, keyboard navigation is
10061         fixed so this works correctly now.
10062         - We need these key events also.
10063         * ToolBar.cs: Remove some of the poor mans double buffering.
10064         
10065 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
10066
10067         * ComboBox.cs: The internal TextBox now returns the focus.
10068
10069 2005-12-23  Jackson Harper  <jackson@ximian.com>
10070
10071         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
10072
10073 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10074
10075         * Control.cs: Removed debug code
10076         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
10077           implicit children
10078
10079 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
10080
10081         * Control.cs: When creating the control, update the Z-order after
10082           all it's children are created, too. (Fixes nexxia not showing
10083           picturebox bug)
10084
10085 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
10086
10087         * Control.cs: Do not update the anchoring distances if layout is
10088           suspended, instead do it once layout is resumed
10089
10090 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
10091
10092         * Control.cs: 
10093           - After many hours of debugging, for both Jackson and
10094             myself, it turns out that it helps to set the parent of a control
10095             if you want to actually see it onscreen. In the spirit of that
10096             discovery, we're now setting the parent of the control and
10097             it's children when the control's handle is created. This fix
10098             will make Lutz Roeder's Reflector run happily. 
10099           - now just creating the handle instead of the whole control when
10100             getting a graphics context for the control.
10101
10102 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10103
10104         * ScrollableControl.cs: When calculating the canvas, don't consider
10105           the scrollbar widths. Instead, predict if horizontal scrollbar
10106           will affect canvas when deciding on vertical display and vice versa.
10107
10108 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
10109
10110         * RichTextBox.cs: Set default RTF font for documents that don't
10111           have a font table (Fixes #77076)
10112
10113 2005-12-22  Jackson Harper  <jackson@ximian.com>
10114
10115         * TextBoxBase.cs: It's difficult to do, but you can have an empty
10116         clipboard. This prevents a NullRef in that case.
10117         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
10118         clipboard. PRIMARY is for the currently selected text only. (We
10119         should implement PRIMARY at some point.
10120
10121 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10122
10123         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
10124           a Unicode function with a structure that was defined in Ansi way.
10125           This fixes #76942.
10126
10127 2005-12-21  Jackson Harper  <jackson@ximian.com>
10128
10129         * StatusBar.cs: Statusbar handles its fore/back colours on it's
10130         on. Because thats how it rolls. (and this avoids it using ambient
10131         colours).
10132         * ThemeWin32Classic.cs: Use the proper back color for filling.
10133         * Menu.cs: Use the system menu bar color for drawing menu
10134         bars. Using the window back color will bring ambient colours into
10135         the picture.
10136
10137 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
10138
10139         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
10140           Bitmaps were created and not disposed.
10141
10142 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10143
10144         * Control.cs (CreateControl): Don't do anything if the control is
10145           already created, otherwise we'd fire the OnCreated event more than
10146           once
10147
10148 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10149
10150         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
10151           will always match. Instead return -1. Fixes #76464.
10152
10153 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
10154
10155         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
10156           neither the beginning nor the end of the line (Fixes bug #76479)
10157
10158 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
10159
10160         * Control.cs:
10161           - ControlNativeWindow.ControlFromHandle(): Now handling situation
10162             where handle is invalid
10163           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
10164             instead of slower linear search
10165         * NativeWindow.cs: Don't remove the window from the hashtable until
10166           after the driver has destroyed it (since the driver might use
10167           Control.FromHandle to lookup the control object
10168         * Hwnd.cs: Added DestroyPending property to track if a window is 
10169           already destroyed as far as the driver is concerned and only hasn't
10170           yet notified the control
10171         * XplatUIX11.cs:
10172           - Activate(): Check if the window is still valid before using the 
10173             handle
10174           - Implemented DestroyChildWindow() method to mark child windows as
10175             destroyed when a window is destroyed. This prevents situations 
10176             where we might call an X method based on queued events for a
10177             window that already has been destroyed but we haven't yet pulled
10178             the destroy method from the queue.
10179           - Added a call to the new DestroyChildWindow() method to the drivers
10180             DestroyWindow code. Also now marking the destroyed window itself
10181             as pending
10182
10183 2005-12-20  Jackson Harper  <jackson@ximian.com>
10184
10185         * StatusBar.cs:
10186         * StatusBarPanel.cs: Don't calculate panel sizes on draw
10187         anymore. Just do them when needed, also track the rects of panels
10188         so that we can optimize refreshing more in the future.
10189
10190 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
10191
10192         * ColorDialog.cs: Fixed focus drawing in small color controls
10193
10194 2005-12-19  Jackson Harper  <jackson@ximian.com>
10195
10196         * InternalWindowManager.cs:
10197         * MdiWindowManager.cs: Cleanup some coordinate system changes so
10198         moving windows works properly.
10199
10200 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
10201
10202         * Control.cs: 
10203           - Removed call to InitLayout() from SetBoundsCore(); doc says
10204             it's only called when a control is added to a container
10205           - Split InitLayout logic, moved to separate UpdateDistances() method
10206             since we need to perform those calculations more often than just
10207             when adding the control to a container. (Needed to fix #77022)
10208           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
10209           - Reduced the OnBindingContextChanged events count, don't send them
10210             unless the control is created, we still aren't totally matching
10211             MS, but I can't quite figure out some of their rules
10212
10213 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10214
10215         * ThemeClearlooks.cs: Corrected distance between ProgressBar
10216           stripes
10217
10218 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10219
10220         * ThemeClearlooks.cs:
10221           - Updated ProgressBar drawing
10222           - Corrected drawing of ScrollBars and scroll buttons
10223           - Some temporary fixes for minor pixel artefacts
10224
10225 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
10226
10227         * Control.cs:
10228           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
10229             cause events to be sent in the same order as MS does.
10230           - Added ChangeParent() method to trigger various OnXXXChanged events
10231             that need to be fired when a parent changes (This is a reworking
10232             of the patch from r54254, with the X11 errors fixed)
10233           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
10234             since on MS we get OnLayoutChanged events when calling Clear()
10235           - Changed Enabled property to consider parent state as well, if a
10236             parent is not enabled, the control will not be either
10237           - Changed Parent property to simply call Controls.Add() since that
10238             now does all the work required, this way we avoid code duplication
10239           - Threw in a few OnBindingsContextChanged calls to try and match
10240             when MS sends them. We seem to send a few too many, though.
10241           - Added call to CreateControl when adding the control to a parent.
10242             We were never calling CreateControl. Still needs some work, in
10243             some places we treat HandleCreated and ControlCreated as equal, 
10244             which is wrong
10245           - Removed obsolete commented out code from UpdateZOrder()
10246
10247 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
10248
10249         * ThemeClearlooks.cs: Updated TrackBar drawing.
10250
10251 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10252
10253         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
10254
10255 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
10256
10257         * FileDialog.cs: Add the Help button and the open readonly
10258           checkbox only if needed
10259
10260 2005-12-16  Jackson Harper  <jackson@ximian.com>
10261
10262         * Control.cs: Make sure we have an active menu before trying to
10263         process commands on it. Prevents menu-less forms from crashing
10264         when Alt is pressed.
10265         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
10266         Dieter Bremes.
10267         * RichTextBox.cs: Expand statement to help out gmcs and fix the
10268         2.0 build.
10269
10270 2005-12-16  Jackson Harper  <jackson@ximian.com>
10271
10272         * InternalWindowManager.cs: Don't translate tool windows screen
10273         coordinates. This fixes windows 'bouncing' around when being moved.
10274
10275 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10276
10277         * TextBoxBase.cs:
10278           - MaxLength now treats 2^31-1 equal to unlimited length (this is
10279             not quite MS compatible, MS uses that number only for single line
10280             and 2^32-1 for multi-line, but I figure it won't hurt keeping
10281             the limit at 2GB)
10282           - Now enforcing the MaxLength limit when entering characters
10283           - Added argument to internal Paste() method to track if it's called
10284             from programatically or via keyboard, since keyboard driven pastes
10285             need to enforce max-length
10286           - Added logic to Paste to only paste as many chars as MaxLength 
10287             allows
10288         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
10289         * TextControl.cs:
10290           - Added Length property to return number of characters in document
10291           - Added private CharCount property which only tracks actual chars
10292             in the document (no linefeeds) and fires event when CharCount
10293             changes
10294           - Added tracking of character count to all methods that alter it
10295           - Added LengthChanged event to allow applications to subscribe
10296             to any changes to the document
10297
10298 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
10299
10300         * TextBox.cs: 
10301           - Removed local password_char field (moved to TextBoxBase)
10302           - Now setting the document's password var when password is
10303             set
10304         * TextBoxBase.cs:
10305           - Added password_char field (needed here so MultiLine can
10306             access it)
10307           - Added logic to MultiLine property setter to set the document's
10308             variable when password display is allowed
10309           - Removed debug code and made some debug code conditional
10310         * TextControl.cs:
10311           - Added RecalculatePasswordLine() method to handle special password
10312             char only lines
10313           - Added PasswordChar property, also added related tracking vars
10314           - Draw() method now uses local text var for grabbing text to draw,
10315             this var is set to line.text unless we're doing password display,
10316             then it is set to the pre-generated all-password-chars line
10317           - Added calling RecalculatePasswordLine() method for password lines
10318
10319 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10320
10321         * Hwnd.cs: 
10322           - Added Reparented property to allow tracking of Window Manager
10323             reparenting actions (which affect X/Y calculations of toplevel 
10324             windows)
10325           - Made ToString() print window handles in hex
10326         * XplatUIX11.cs:
10327           - AddConfigureNotify(): Now uses reparented state off Hwnd to
10328             determine if X/Y needs offsetting
10329           - AddConfigureNotify(): Fixed offset calculations
10330           - Now adds ReparentNotify messages into the queue
10331           - Now processes ReparentNotify messages and causes a 
10332             WM_WINDOWPOSCHANGED message to be sent upstream if a window
10333             is reparented (as most likely it's X/Y coordinates are changed
10334             due to that)
10335
10336 2005-12-14  Jackson Harper  <jackson@ximian.com>
10337
10338         * XplatUIX11.cs: Tool windows still need to respek focus.
10339
10340 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10341
10342         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
10343           have a working release
10344
10345 2005-12-13  Jackson Harper  <jackson@ximian.com>
10346
10347         * Form.cs: Update styles after setting the border style regardless
10348         of whether or not the window is using a window manager.
10349
10350 2005-12-13  Jackson Harper  <jackson@ximian.com>
10351
10352         * Form.cs: We now hook into an internal window manager instead of just an
10353         MDI subsystem, this is so we can have properly behaving tool windows.
10354         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
10355         * InternalWindowManager.cs: New internal class that acts as a
10356         window manager for tool windows and as a base for mdi windows.
10357         * MdiWindowManager.cs: New class that acts as a window manager for
10358         mdi windows.
10359
10360 2005-12-12  Jackson Harper  <jackson@ximian.com>
10361
10362         * Control.cs: Updates so we match behavoir for for implicit
10363         controls. Fixes explosions in MDI.
10364
10365 2005-12-12  Jackson Harper  <jackson@ximian.com>
10366
10367         * Control.cs: Implement Invalidate (Region).
10368
10369 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
10370
10371         * Control.cs: 
10372           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
10373             the same events as MS does. MS fires events for each property 
10374             except, for unknown reasons, Cursor, when the control is reparented. 
10375             I can't seem to totally match add/remove since MS also fires some 
10376             VisibleChanged events, which makes no sense. Consolidated the
10377             parenting code into a separate method so it can be called from
10378             both Add and Remove. set_Parent no longer needs any special logic
10379             as it calls the parent's add method which implicitly fires
10380             all events
10381           - Removed some obsolete code and debug output
10382           - Enabled state is inherited from parents, if this is enabled
10383
10384 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
10385
10386         * Form.cs: Removed commented out code
10387
10388 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
10389
10390         * Control.cs:
10391           - Added internal version of Invoke, with additional argument 
10392             indicating if we're calling it from a Dispose() handler. That
10393             way we can avoid BeginInvoke throwing an exception if we're
10394             calling for an already destroyed window.
10395           - Added a dispose argument to BeginInvokeInternal, and made the
10396             check if a valid window handle chain exists conditional on
10397             it not being a dispose call
10398           - Removed code in DestroyHandle to destroy our children. Since we
10399             now handle the WM_DESTROY message we will catch all our children
10400             being destroyed.
10401           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
10402         * Form.cs:
10403           - Added a field to track the application context of the form.
10404           - No need to set closing variable as response to WM_CLOSE, instead
10405             we destroy the window. We also call PostQuitMessage if the form
10406             has an application context (which makes it the main app form,
10407             which, when closed terminates the app)
10408         * XplatUI.cs:
10409           - Dropped Exit() method, it's naming was confusing
10410           - Added PostQuitMessage() which causes GetMessage to return false
10411             once the message queue is empty
10412         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
10413           PostQuitMessage()
10414         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
10415           no longer a valid XplatUI method, but left it in since it's used
10416           internally. Added empty PostQuitMessage() method.
10417         * MenuAPI.cs: Replaced call to Exit() with call to
10418           PostQuitMessage, even though this is probably no longer needed.
10419         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
10420         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
10421         * Application.cs:
10422           - Replaced call to XplatUI.Exit() with PostQuitMessage()
10423           - Removed old debug code that would call XplatUI for exception
10424             display, enabled standard exception handling (Still not enabled
10425             though, until NativeWindow's ExternalExceptionHandler define
10426             is removed
10427         * NativeWindow.cs:
10428           - Added internal method to allow control to update NativeWindow
10429             after a window has been destroyed
10430           - Added handling of already destroyed windows when calling i
10431             DestroyWindow
10432           - Added removal of handle from list on ReleaseHandle
10433         * XplatUIX11.cs:
10434           - Dropped GetMessageResult var and related code
10435           - Added PostQuitState to field to track if PostQuitMessage has been
10436             called
10437           - Dropped Exit() method
10438           - Added PostQuitMessage() method
10439           - GetMessage now will return false if PostQuitState is set and no
10440             more messages are in the queue.
10441           - Expose handler will no longer generate WM_PAINT messages if we are
10442             in PostQuitState since it's very likely any windows have already
10443             been destroyed, and since Hwnd won't get updated until we have
10444             processed the DestroyNotify we'd be causing X errors.
10445         
10446 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10447
10448         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
10449           Thanks to Mike for pointing out the err of my ways.
10450
10451 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10452
10453         * Control.cs(PreProcessMessage): Moved menu handling back, but
10454           after all other key handling, to match MS (who handles Menu in
10455           DefWndProc)
10456         * Menu.cs (WndProc): Removed my brainfart
10457
10458 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10459
10460         * Control.cs(PreProcessMessage): Removed special menu handling 
10461         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
10462
10463 2005-12-07  Mike Kestner  <mkestner@novell.com>
10464
10465         * Control.cs : special case SYSKEYUP so that we can adjust keynav
10466         state according in tracker.
10467         * Menu.cs : promote tracker field to base class and provide a tracker
10468         lookup capability.  Add/Remove shortcuts dynamically if the top menu
10469         has a tracker. Unparent items that are removed from the collection.
10470         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
10471         * Theme*.cs: add always_show_hotkeys field to support configurability
10472         of mnemonic display.  win32 doesn't show mnemonics until Alt is
10473         pressed.
10474
10475 2005-12-07  Jackson Harper  <jackson@ximian.com>
10476
10477         * MdiChildContext.cs: Use Control.ResetCursor.
10478         * Control.cs: ResetCursor needs to set the property so that the
10479         correct XplatUI call gets made.
10480
10481 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10482
10483         * Control.cs: More fixes to make our key events match MS. We
10484           were not setting the modifier state on KeyData, and we were
10485           not generating any events when Alt was pressed with a key
10486           since handling of WM_SYSxxx was missing for the OnKey methods.
10487
10488 2005-12-07  Jackson Harper  <jackson@ximian.com>
10489
10490         * MdiChildContext.cs: reenable the sizing code.
10491         - When the mouse leaves a window reset its cursor.
10492
10493 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10494
10495         * ThemeClearlooks.cs: Reflect latest Hwnd changes
10496
10497 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10498
10499         * Hwnd.cs: Now using the theme 3d bordersize to calculate
10500           widths of Fixed3D borders
10501
10502 2005-12-07  Jackson Harper  <jackson@ximian.com>
10503
10504         * MdiClient.cs: Fix warnings. Earn Mike's love.
10505
10506 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10507
10508         * ThemeClearlooks.cs:
10509           - Adjusted mouse over button color
10510           - Added first parts of CheckBox drawing
10511           - Added correct color for selected text background
10512           - Fixed ComboBox drawing
10513           - Added CPDrawBorder3D and CPDrawBorder
10514
10515 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10516
10517         * XplatUIX11.cs: Added call to XBell for AudibleAlert
10518
10519 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
10520
10521         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10522           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
10523           alert users via sound. We could add an enum arg with different
10524           types of alerts in the future
10525
10526 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10527
10528         * Control.cs: Fix behaviour problems pointed out by Mike
10529
10530 2005-12-05  Mike Kestner  <mkestner@novell.com>
10531
10532         * StatusBarPanel.cs: add Invalidate method and hook it into all the
10533         prop setters.  Calls parent.Refresh for now, but could be maybe be
10534         optimized with an internal method on StatusBar at some point.
10535         [Fixes #76513]
10536
10537 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
10538
10539         * RichTextBox.cs: Implemented get_SelectionColor
10540
10541 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
10542
10543         * ThemeClearlooks.cs:
10544           - Removed dead code
10545           - Draw black button border only if button is Form.AcceptButton
10546           - Draw correct button color for pressed RadioButton if the mouse 
10547             has entered the button
10548           - Updated ProgressBar drawing!
10549           - Updated CPDrawSizeGrip drawing
10550           - Updated StatusBarPanel drawing
10551
10552 2005-12-05  Mike Kestner  <mkestner@novell.com>
10553
10554         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
10555         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
10556
10557 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
10558
10559         * ThemeClearlooks.cs: Initial check-in, activate with
10560           export MONO_THEME=clearlooks
10561         * ThemeEngine.cs: Added ThemeClearlooks
10562
10563 2005-12-03  Mike Kestner  <mkestner@novell.com>
10564
10565         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
10566         [Fixes #76897]
10567
10568 2005-12-02  Jackson Harper  <jackson@ximian.com>
10569
10570         * Form.cs: If the child form has no menu the default main menu is
10571         used as the active menu.
10572
10573 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
10574
10575         * ListBox.cs: Check if any items exist before trying to resolve 
10576           coordinates into items
10577
10578 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10579
10580         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
10581           as the second color for the background hatch
10582
10583 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10584
10585         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
10586         * RichTextBox.cs: FormatText position arguments are 1-based, now making
10587           sure that what we pass to FormatText is always 1-based. Fixes #76885
10588
10589 2005-11-29  Miguel de Icaza  <miguel@novell.com>
10590
10591         * NumericUpDown.cs (EndInit): When we are done initializing,
10592         reflect any updates on the UI.
10593
10594 2005-12-02  Jackson Harper  <jackson@ximian.com>
10595
10596         * ImplicitHScrollBar.cs:
10597         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
10598         their container controls.
10599         * TreeView.cs: Use the new implicit scrollbars.
10600
10601 2005-12-02  Jackson Harper  <jackson@ximian.com>
10602
10603         * TreeView.cs: Make top_node internal so the TreeNodeCollections
10604         can play with it.
10605         * TreeNodeCollection.cs: If we remove the topnode we need to
10606         update topnode to the next node in line.
10607         - When clearing nodes go through the same process as removing
10608         them, so they get depareneted and checked if they are top node.
10609
10610 2005-12-01  Jackson Harper  <jackson@ximian.com>
10611
10612         * TreeView.cs: When imagelists are used the image area is
10613         selectable as well as the text.
10614         - If there are no selected nodes select the first one.
10615         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
10616         so don't do it more then we need to.
10617
10618 2005-12-01  Jackson Harper  <jackson@ximian.com>
10619
10620         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
10621         that arrows can be scaled.
10622
10623 2005-12-01  Jackson Harper  <jackson@ximian.com>
10624
10625         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
10626         fail. Patch by Dieter Bremes
10627
10628 2005-11-30  Jackson Harper  <jackson@ximian.com>
10629
10630         * Form.cs: Property is 2.0 only
10631         * PrintDialog.cs: Signature fix.
10632
10633 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
10634
10635         * TextControl.cs: 
10636           - No longer artificially moves text 2 pixels down (now that we have
10637             borders this is no longer needed)
10638           - Added calcs for left, hanging and right indent
10639
10640 2005-11-23  Mike Kestner  <mkestner@novell.com>
10641
10642         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
10643
10644 2005-11-30  Jackson Harper  <jackson@ximian.com>
10645
10646         * MdiChildContext.cs: Set the cloned menus forms, as these don't
10647         get cloned as part of CloneMenu ().
10648         * Menu.cs: Make sure the parent of the items get set correctly
10649         when they are added.  And the owners are notified of the changes.
10650         * Form.cs: Create an ActiveMenu property, so that when MDI is used
10651         we can change the menu being displayed/handled by the form without
10652         changing the menu assosciated with the form.
10653         - Don't let Mdi children draw/handle menus.
10654         
10655 2005-11-30  Jackson Harper  <jackson@ximian.com>
10656
10657         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
10658         a MenuChanged event. Just to make the API a little more
10659         consistent.
10660         * MainMenu.cs:
10661         * MenuItem.cs: Use the new OnMenuChanged
10662         * MdiChildContext.cs: Handle menu merging.
10663         * Form.cs: Implement MergedMenu.
10664         
10665 2005-11-30  Jackson Harper  <jackson@ximian.com>
10666
10667         * Menu.cs: We were misusing Add. Add goes behind the specified
10668         index according to the docs, and does not replace the specified
10669         index. So I added an Insert method.
10670
10671 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
10672
10673         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
10674           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
10675           is for Jackson
10676         * RichTextBox.cs: Added calls to base for DnD events
10677
10678 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
10679
10680         * TextControl.cs:
10681           - Fixed drag-selection related crash; style fixes
10682           - Implemented undo class
10683             o Implemented method to capture document state for specified
10684               range in document tree
10685             o Implemented method to restore captured document state
10686             o Implemented cursor tracking
10687             o Implemented basic undo stack
10688           - Added undo cursor tracking to methods altering cursor location
10689           - Added undo tracking to selection deletion (still missing
10690             other text-altering hookups)
10691         * RichTextBox.cs:
10692           - Added SelectionLength property
10693           - Implemented CanPaste()
10694           - Implemented Paste()
10695           - Added missing protected methods
10696           - Fixed RTF->Document conversion; now uses font index 0 and color 
10697             index 0 as the default font for the parsed text
10698           - Fixed RTF<->Document font size translation
10699           - Fixed RTF generation, now properly handles cross-tag boundaries
10700             for single line selection
10701           - No longer always appends blank line to generated RTF
10702           - Removed TODOs
10703           - Added missing attributes
10704           - Hooked up undo-related methods
10705         * TextBoxBase.cs:
10706           - Implemented Copy()
10707           - Implemented Paste()
10708           - Implemented Cut()
10709           - Fixed caret mis-behaviour on backspace across line-boundaries
10710
10711 2005-11-29  Jackson Harper  <jackson@ximian.com>
10712
10713         * MdiClient.cs: Add a method for activating mdi children. Very
10714         basic right now. I imagine someday it might need more girth.
10715         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
10716         children windows names are added to the menu item.
10717         * ThemeWin32Classic.cs: Draw the arrow if the item is an
10718         mdilist. This happens regardless of whether or not there are any
10719         mdi windows to see in the list, and according to my tests happens
10720         before the items are even added. Also happens if there isn't even
10721         an mdi client to get windows from.
10722
10723 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
10724
10725         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
10726         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
10727
10728 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
10729
10730         * DataGridTableStyle.cs:
10731           - Create always the styles for the missing columns even if they are
10732             provided by the user (not default table style)
10733         * DataGrid.cs:
10734           - Fixes bug 76770
10735           - Fixes SetDataBinding (always re-attach source)
10736           - Fixes SetNewDataSource (only clear styles if they are not for 
10737             this source)
10738          -  Expands OnTableStylesCollectionChanged to handle style refresh 
10739             and remove properly
10740
10741 2005-11-29  Jackson Harper  <jackson@ximian.com>
10742
10743         * FileDialog.cs: Implement missing bits, remove some dead
10744         code.
10745         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
10746         creation of the panel so that the options set on the dialog are
10747         seen when the panel is created.
10748         * TreeView.cs: raise a click when items are clicked.
10749         
10750 2005-11-29  Jackson Harper  <jackson@ximian.com>
10751
10752         * MdiClient.cs: Pass some signature methods through to base.
10753
10754 2005-11-28  Jackson Harper  <jackson@ximian.com>
10755
10756         * ListView.cs: Raise the click event when items are clicked.
10757
10758 2005-11-28  Jackson Harper  <jackson@ximian.com>
10759
10760         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
10761         a nullref.
10762
10763 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
10764
10765         * ThemeNice.cs: - Removed 1 pixel bitmaps
10766           - Use SmoothingMode.AntiAlias where it makes sense
10767             (ScrollButton arrow for example)
10768           - Enhanced Button focus drawing
10769           - Fixed ComboBox drawing (no artefacts anymore, focus
10770             rectangle is back again, reduced size of ComboButton, etc.)
10771           - Fixed RadioButton focus drawing for Appearence.Button
10772           - Slight ScrollButton redesign
10773           - Some LinearGradientBrush size fixes
10774           - GroupBoxes have now rounded edges
10775           - Fixed StatusBar drawing
10776
10777 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
10778
10779         * ThemeNice.cs: - Remove dead code
10780           - use correct background colors for menus, etc.
10781           - Fake pixel drawing with 1 pixel bitmaps
10782
10783 2005-11-24  Jackson Harper  <jackson@ximian.com>
10784
10785         * MdiClient.cs: Size the scrollbars when resizing the window.
10786         - Resize the maximized windows when the client is resized
10787         * Form.cs: Make the child context available
10788         
10789 2005-11-23  Jackson Harper  <jackson@ximian.com>
10790
10791         * MdiChildContext.cs: Don't size windows if they are maximized.
10792
10793 2005-11-23  Mike Kestner  <mkestner@novell.com>
10794
10795         * ContextMenu.cs: use MenuTracker.
10796         * Control.cs: remove menu handle usage.
10797         * Form.cs: remove menu handle usage.
10798         * Hwnd.cs: remove menu handle usage.
10799         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
10800         motion and clicks to the new Tracker handlers.
10801         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
10802         and handle usage.
10803         * MenuAPI.cs: refactored to combine popup and menubar event handling.
10804         Killed the MENU and MENUITEM data types and associated collections
10805         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
10806         MenuTracker class that exposes the leftovers from the old MenuAPI
10807         static methods. Restructured Capture handling so that only one grab is
10808         done for the entire menu hierarchy instead of handing off grabs to
10809         submenus. Tracker now has an invisible control to Capture when active.
10810         * MenuItem.cs: add sizing accessors, kill Create
10811         and handle usage.
10812         * Theme.cs: remove menu handle and MENU(ITEM) usage.
10813         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
10814         MENU(ITEM). remove menu handle usage, use Menu directly.
10815         * XplatUIDriver.cs: remove menu handle usage.
10816         * XplatUIOSX.cs: remove menu handle usage.
10817         * XplatUIWin32.cs: remove menu handle usage.
10818         * XplatUIX11.cs: remove menu handle usage.
10819
10820 2005-11-22  Jackson Harper  <jackson@ximian.com>
10821
10822         * Hwnd.cs: Don't compute the menu size for
10823         DefaultClientRectangle.
10824         - Reenable menu sizes being computed for GetClienRectangle.
10825         * Form.cs: Remove comment of trechery
10826         
10827 2005-11-22  Jackson Harper  <jackson@ximian.com>
10828
10829         * Hwnd.cs: The adjustments for the menu bar are made when it is
10830         attached to the form.
10831
10832 2005-11-19  Jackson Harper  <jackson@ximian.com>
10833
10834         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
10835         (just like on windows).
10836
10837 2005-11-19  Jackson Harper  <jackson@ximian.com>
10838
10839         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
10840         use real buttons anymore because they are in non client area. The
10841         one TODO here is that I need to somehow invalidate a section of
10842         the non client area.
10843
10844 2005-11-18  Jackson Harper  <jackson@ximian.com>
10845
10846         * Control.cs: Put the enum check back in now that MDI doesnt have
10847         to use this to set border styles.
10848         * Form.cs: Only set mdi child windows borders if the handle has
10849         been created.
10850         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
10851         this directly on to the driver.
10852         - Get the move start position before adjusting for the titlebar
10853         height, this fixes the windows "skipping" when they are first
10854         moved.
10855
10856 2005-11-18  Jackson Harper  <jackson@ximian.com>
10857
10858         * XplatUIX11.cs: Just compute the mdi borders separately as they
10859         don't totally match up with normal form borders.
10860
10861 2005-11-18  Jackson Harper  <jackson@ximian.com>
10862
10863         * Control.cs: Set WS_ styles for borders, so that the driver does
10864         not have to retrieve the control instance to figure out what kind
10865         of borders it should have.
10866         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
10867         driver can know its an mdi child easily.
10868         * XplatUIX11.cs: Get the border styles and whether the window is
10869         MDI from the Styles and ExStyles params instead of having to get a
10870         control. This prevents a chicken and egg problem.       
10871
10872 2005-11-18  Jackson Harper  <jackson@ximian.com>
10873
10874         * MdiClient.cs: Fix typo so scrollbars show up correctly.
10875
10876 2005-11-18  Jackson Harper  <jackson@ximian.com>
10877
10878         * MdiClient.cs: Calculate when to add and remove scrollbars
10879         correctly.
10880         * MdiChildContext.cs: Adjust the y position to take the titlebar
10881         into account.
10882         - No height for FormBorderStyle.None
10883
10884 2005-11-18  Jackson Harper  <jackson@ximian.com>
10885
10886         * Control.cs: Allow non enum values to be used for
10887         InternalBorderStyle.  MDI does this to set a special border style.
10888         - New utility methods for converting points to/from client coords
10889         - Add the newly created control to the Controls collection before
10890         updating its style. This way UpdateStyle can walk the control
10891         heirarchy to find the control if needed.
10892         so I don't need to create a new Point object all the time.
10893         * Form.cs: Let MDI windows handle their border styles.
10894         - Set styles on MDI windows so the correct title style is derived.
10895         * MdiChildContext.cs: Move all the painting and window handling
10896         into the non client area.
10897         - Use correct sizing and put correct buttons on frames based on
10898         the FormBorderStyle.
10899         - Notify the mdi client about scrolling
10900         - Need to handle the buttons ourselves now, because they are all
10901         in non client areas and we can't add controls there.
10902         * MdiClient.cs: Halfway to scrolling, this implementation is
10903         somewhat broken though, we need to check to make sure other
10904         windows aren't causing scrolling before removing the bars. Also
10905         the bars need to be drawn on top, maybe I can switch implicit
10906         controls to be on top.
10907         * Hwnd.cs: caption_height and tool_caption_height are now
10908         properties of an hwnd, this way they can be set by the driver
10909         based on the type of window they are.  In X11 the window manager
10910         handles the decorations so caption_height is zero unless its an
10911         MDI window.
10912         - Add 3 pixel borders for MDI windows (0xFFFF).
10913         - Get rid of some code duplication, have DefaultClientRectanle
10914         just call GetClientRectangle.
10915         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
10916         Hwnd now.
10917         - Set border styles differently for mdi windows.
10918         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
10919         Hwnd now.
10920         
10921 2005-11-15  Mike Kestner  <mkestner@novell.com>
10922
10923         * Menu.cs: when adding an item to the collection, if item is already 
10924         parented, remove it from the parent.
10925
10926 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
10927
10928         * X11DesktopColors.cs: Added KDE support
10929
10930 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
10931
10932         * XplatUIWin32.cs: 
10933           - Clipboard methods now can translate Rtf format
10934           - No longer removes clipboard contents whenever a new format is added
10935             to allow placing multiple formats on the clipboard
10936         * Clipboard.cs: Clipboard now supports getting a IDataObject and
10937           will place all formats contained in it onto the clipboard. Also
10938           now cleans the clipboard before placing a new object onto it
10939         * RichTextBox.cs:
10940           - Implemented set_Rtf
10941           - Implemented set_SelectedRtf
10942           - Created InsertRTFFromStream() method to allow single code base
10943             for all properties and methods that insert RTF into document
10944           - Removed debug output
10945         * TextControl.cs:
10946           - Fixed Delete(int) to fix up line numbers
10947           - Fixed ReplaceSelection to combine start and end line
10948           - Fixed serious DeleteChars bug that would leave the document tree
10949             broken
10950           - Improved DumpTree with several logic checks to detect broken
10951             document trees
10952           - Removed debug lines
10953           - Fixed Caret.WordForward/WordBack moving code, now always also 
10954             updates caret.tag (fixes crash when word-selecting across tag
10955             boundaries via keyboard)
10956           - Added Insert() method for inserting multiline text into documents
10957           - Fixed DeleteChars() calculation errors that would cause a broken
10958             tag chain with multiple tag lines
10959           - DeleteChars() no longer crashes on multi-tag lines if not all tags
10960           - Split() no longer moves caret if split is at caret location
10961           - ReplaceSelection() now updates the cursor and re-displays it
10962           - ReplaceSelection() now uses new Insert() method to avoid code
10963             duplication
10964           - FormatText() can now handle formatting partial lines
10965         * TextBoxBase.cs:
10966           - Append now uses new TextControl.Insert() method (this avoids 
10967             duplicate code)
10968           - Implemented Ctrl-X (Cut) (
10969           - Implemented Ctrl-C (Copy)
10970           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
10971             regeneration when pasting text; roundtripping Copy&Paste within
10972             edit control still fails due to some calculation bugs in GenerateRTF)
10973           - The Delete key will now remove the current selection if it is visible
10974         * TextBox.cs: Removed debug lines
10975         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
10976           driver to be initialized and can't therefore be done via a static ctor)
10977
10978 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
10979
10980         * TextControl.cs: Added backend code for finding char arrays and strings
10981         * TextBoxBase.cs:
10982           - Added mouse wheel scroll support
10983           - Added support for VScroll and HScroll events
10984         * RichTextBox.cs:
10985           - Implemented all seven Find() variants
10986           - Implemented GetCharFromPosition()
10987           - Implemented GetCharIndexFromPosition()
10988           - Implemented GetLineFromIndex()
10989           - Implemented GetPositionFromCharIndex();
10990           - Implemented SaveFile for PlainText and UnicodeText
10991           - Fixed set_Font, now setting a new font applies that font to
10992             the whole document
10993           - Implemented generic Document to RTF converter
10994           - Implemented SaveFile for RichText format (still missing unicode
10995             conversion for non-ansi chars)
10996           - Implemented get_Rtf
10997           - Implemented get_SelectedRtf
10998
10999 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
11000
11001         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
11002           to allow any captures to be released before triggering OnClick. This
11003           way a click handler may capture the mouse without interference.
11004         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
11005           This way we send them even though X may not allow a grab (if the window
11006           isn't visible, for example)
11007
11008 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
11009
11010         * DataGridViewRowEventArgs.cs: DataGridView implementation
11011         * DataGridViewElement.cs: DataGridView implementation
11012         * DataGridViewComboBoxCell.cs: DataGridView implementation
11013         * DataGridViewDataErrorContexts.cs: DataGridView implementation
11014         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
11015         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
11016         * ImageLayout.cs: DataGridView implementation
11017         * DataGridViewComboBoxColumn.cs: DataGridView implementation
11018         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
11019         * DataGridViewSelectionMode.cs: DataGridView implementation
11020         * IDataGridViewEditingControl.cs: DataGridView implementation
11021         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
11022         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
11023         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
11024         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
11025         * DataGridViewColumnSortMode.cs: DataGridView implementation
11026         * DataGridView.cs: DataGridView implementation
11027         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
11028         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
11029         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
11030         * Padding.cs: DataGridView implementation
11031         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
11032         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
11033         * DataGridViewRowEventHandler.cs: DataGridView implementation
11034         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
11035         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
11036         * DataGridViewButtonCell.cs: DataGridView implementation
11037         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
11038         * DataGridViewEditMode.cs: DataGridView implementation
11039         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
11040         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
11041         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
11042         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
11043         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
11044         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
11045         * DataGridViewCellEventHandler.cs: DataGridView implementation
11046         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
11047         * DataGridViewCellStyleConverter.cs: DataGridView implementation
11048         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
11049         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
11050         * DataGridViewColumnEventArgs.cs: DataGridView implementation
11051         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
11052         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
11053         * QuestionEventArgs.cs: DataGridView implementation
11054         * IDataGridViewEditingCell.cs: DataGridView implementation
11055         * DataGridViewTriState.cs: DataGridView implementation
11056         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
11057         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
11058         * DataGridViewColumnCollection.cs: DataGridView implementation
11059         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
11060         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
11061         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
11062         * DataGridViewColumn.cs: DataGridView implementation
11063         * DataGridViewCellBorderStyle.cs: DataGridView implementation
11064         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
11065         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
11066         * DataGridViewRow.cs: DataGridView implementation
11067         * DataGridViewImageCellLayout.cs: DataGridView implementation
11068         * DataGridViewImageCell.cs: DataGridView implementation
11069         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
11070         * DataGridViewCheckBoxCell.cs: DataGridView implementation
11071         * DataGridViewHeaderCell.cs: DataGridView implementation
11072         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
11073         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
11074         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
11075         * DataGridViewTextBoxColumn.cs: DataGridView implementation
11076         * QuestionEventHandler.cs: DataGridView implementation
11077         * DataGridViewCellStyleScopes.cs: DataGridView implementation
11078         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
11079         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
11080         * DataGridViewCell.cs: DataGridView implementation
11081         * DataGridViewCellEventArgs.cs: DataGridView implementation
11082         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
11083         * DataGridViewCellStyle.cs: DataGridView implementation
11084         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
11085         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
11086         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
11087         * TextFormatFlags.cs: DataGridView implementation
11088         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
11089         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
11090         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
11091         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
11092         * DataGridViewButtonColumn.cs: DataGridView implementation
11093         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
11094         * HandledMouseEventArgs.cs: DataGridView implementation
11095         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
11096         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
11097         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
11098         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
11099         * DataGridViewRowCollection.cs: DataGridView implementation
11100         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
11101         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
11102         * DataGridViewHitTestType.cs: DataGridView implementation
11103         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
11104         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
11105         * DataGridViewColumnEventHandler.cs: DataGridView implementation
11106         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
11107         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
11108         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
11109         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
11110         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
11111         * DataGridViewContentAlignment.cs: DataGridView implementation
11112         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
11113         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
11114         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
11115         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
11116         * DataGridViewPaintParts.cs: DataGridView implementation
11117         * DataGridViewCellCollection.cs: DataGridView implementation
11118         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
11119         * DataGridViewImageColumn.cs: DataGridView implementation
11120         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
11121         * DataGridViewElementStates.cs: DataGridView implementation
11122         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
11123         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
11124         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
11125         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
11126         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
11127         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
11128         * DataGridViewRowHeaderCell.cs: DataGridView implementation
11129         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
11130         * DataGridViewTextBoxCell.cs: DataGridView implementation
11131         * DataGridViewBand.cs: DataGridView implementation
11132         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
11133         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
11134         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
11135         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
11136         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
11137         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
11138         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
11139         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
11140         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
11141         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
11142         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
11143
11144 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
11145
11146         * ThemeWin32Classic.cs: 
11147           - Draw the outside focus rectangle around buttons
11148           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
11149             doesn't use end caps for every dash of a line anymore. This
11150             workaround ignores the forecolor.
11151
11152 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
11153
11154         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
11155           endian safe.
11156
11157 2005-11-07  Jackson Harper  <jackson@ximian.com>
11158
11159         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
11160
11161 2005-11-07  Jackson Harper  <jackson@ximian.com>
11162
11163         * ScrollableControl.cs: Calculate the maximum and change vars
11164         (more) correctly so that scrollbars appear as a sensible size.
11165
11166 2005-11-04  Jackson Harper  <jackson@ximian.com>
11167
11168         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
11169         collection.
11170         * TreeView.cs: When the tree is sorted null out the top_node so
11171         that it is recalculated.
11172         - Use dotted lines instead of dashed lines to match MS better.
11173
11174 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
11175
11176         * ListView.cs: 
11177           - Implements key search for items. Useful when browsing files with FileDialog
11178           - When changing view mode or when clear the items reset scrollbar positions
11179
11180 2005-11-04  Jackson Harper  <jackson@ximian.com>
11181
11182         * CurrencyManager.cs: Implement the MetaDataChanged event, the
11183         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
11184         as to what the method may do as there is no real way of creating a
11185         derived CurrencyManager and calling the method. 
11186
11187 2005-11-03  Jackson Harper  <jackson@ximian.com>
11188
11189         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
11190         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
11191         method which seems to just be used internally to refresh the tabs.
11192
11193 2005-11-03  Jackson Harper  <jackson@ximian.com>
11194
11195         * TabControl.cs: Implement the remove method. Fix some broken
11196         comments.
11197
11198 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11199
11200         * DateTimePicker.cs:
11201           - Added missing DateTimePickerAccessibleObject class
11202           - Added missing events
11203           - Added OnFontChanged method
11204         * Form.cs: Added missing attributes
11205         * TreeView.cs: Added missing attributes
11206
11207 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
11208
11209         * GridItemCollection.cs: Fix signatures
11210
11211 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11212
11213         * XplatUI.cs: Updated build rev/date
11214         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
11215           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
11216         * Application.cs: Trigger context-specific ExitThread events
11217
11218 2005-11-03  Jackson Harper  <jackson@ximian.com>
11219
11220         * Menu.cs:
11221         * MainMenu.cs:
11222         * GridTableStylesCollection.cs:
11223         * Timer.cs:
11224         * TabPage.cs:
11225         * HelpProvider.cs:
11226         * StatusBar.cs:
11227         * MonthCalendar.cs: Signature fixes
11228
11229 2005-11-03  Jackson Harper  <jackson@ximian.com>
11230
11231         * TreeNodeCollection.cs: Remove should not be virtual.
11232         * TreeView.cs: Implement the last of the missing methods.
11233
11234 2005-11-03  Jackson Harper  <jackson@ximian.com>
11235
11236         * TreeNodeConverter.cs: Implement to get off my class-status back.
11237
11238 2005-11-03  Jackson Harper  <jackson@ximian.com>
11239
11240         * TreeView.cs: Hookup the bits for drag and drop.
11241         * TreeNode.cs: Don't cache the tree_view or index anymore, now
11242         that nodes can be moved from tree to tree easily this just causes
11243         all sorts of problems.
11244         * TreeNodeCollection: Don't need to give treenodes an index and
11245         treeview anymore when they are added, these are computed on the
11246         fly. Also make sure to remove a node before its added.
11247
11248 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
11249
11250         * TextControl.cs:
11251           - Added CaretSelection enum
11252           - Added comparison methods to Marker struct, makes selection code
11253             more readable
11254           - Added SelectionStart and SelectionEnd as 'moveable' location for
11255             the CaretDirection enum and handler
11256           - Added selection_prev variable to track optimized invalidation for
11257             word and line selection
11258           - Added SelectionVisible property (returns true if there is a valid 
11259             selection)
11260           - Switched CaretHasFocus to only display the caret if there is no
11261             visible selection
11262           - Avoiding StringBuilder.ToString to retrieve a single char, instead
11263             using the direct character index; should be much faster
11264           - Added various conditional debug statements
11265           - Fixed invalidation calculation for selection ranges
11266           - Added ExpandSelection() method to support word and line selection
11267           - Switched SetSelectionToCaret to use new Marker compare overloads
11268           - Added central IsWordSeparator() method to determine word 
11269             separators/whitespace and FindWordSeparator() to streamline common
11270             usage of IsWordSeparator()
11271         * TextBoxBase.cs:
11272           - Removed unneeded grabbed variable, it was just mirroring
11273             Control.Capture
11274           - No longer firing OnTextChanged event when Text setter is called,
11275             since the base will fire the event for us
11276           - Added handling of Ctrl-Up/Down selection
11277           - Added handling of Shift-Cursorkey selection
11278           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
11279             words
11280           - Added handling of Shift and Ctrl-Shift-Home/End selection
11281           - Removed some debug output
11282           - Added handling for single/double/tripple-click to place caret/
11283             select word/select line respectively (Fixes bug #76031)
11284           - Added support for drag expansion of word/line selection
11285         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
11286           current selection
11287
11288 2005-11-02  Jackson Harper  <jackson@ximian.com>
11289
11290         * X11Dnd.cs: If the drag is going to and from a MWF window just
11291         copy the data instead of sending it out through the X Selection
11292         mechanism.
11293
11294 2005-11-02  Jackson Harper  <jackson@ximian.com>
11295
11296         * X11Dnd.cs:
11297         * XplatUIX11.cs: When in a drag we don't want motion notify
11298         messages to get passed on to the other controls. This prevents
11299         mouse move messages from showing up in the drag source.
11300
11301 2005-11-02  Jackson Harper  <jackson@ximian.com>
11302
11303         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
11304         the correct button is release to end a drag.
11305         * XplatUIX11.cs: Make the button state internal so the drag system
11306         can access it.  Dragging needs to know about all button releases,
11307         not just left button.
11308
11309 2005-11-02  Miguel de Icaza  <miguel@novell.com>
11310
11311         * Form.cs (Icon): If the icon is null, reset the icon to the
11312         default value. 
11313
11314         * Cursor.cs: When writing the AND-mask bitmap do not include the
11315         number of colors, but hardcode those to two (black and white),
11316         fixes the loading of color cursors (Paint Dot Net).
11317
11318         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
11319         turn off autoscaling.
11320
11321         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
11322
11323 2005-11-02  Jackson Harper  <jackson@ximian.com>
11324
11325         * X11Dnd.cs: Make sure to send a status message if the pointer
11326         enters a control that can not accept a drop, otherwise the cursor
11327         isn't updated correctly. Also tried to compress the lines of code
11328         a bit.
11329
11330 2005-11-02  Jackson Harper  <jackson@ximian.com>
11331
11332         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
11333         set actions correctly.  This isn't perfect as XDND and win32 have
11334         some differences on how you allow actions. I'll clear this up by
11335         adding a path for drag from MWF to MWF windows.
11336         * XplatUIX11.cs: Hook into the dnd system.
11337
11338 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
11339
11340         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
11341         previously shown but they are no longer need it. Very obvious when 
11342         browsing files with FileDialog.
11343
11344 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
11345
11346         * Control.cs: We always need to call OnPaintBackground. We pretty much
11347           ignore AllPaintingInWmPaint and always do the painting there, whether 
11348           it's set or not, since we always ignore the WM_ERASEBKGND message 
11349           (which we don't generate on X11). This fixes #76616.
11350         * Panel.cs: Removed unneeded background painting. This happens properly
11351           in Control.cs already
11352
11353 2005-10-31  Mike Kestner  <mkestner@novell.com>
11354
11355         * Menu.cs: Add items to collection before setting their index.
11356         * MenuItem.cs : add range checking with ArgumentException like MS.
11357         [Fixes #76510]
11358
11359 2005-10-31  Jackson Harper  <jackson@ximian.com>
11360
11361         * ListBox.cs: Invalidate if the area is visible at all not just
11362         contained in the visible rect. Fixes unselection of semi visible
11363         items.
11364
11365 2005-10-31  Jackson Harper  <jackson@ximian.com>
11366
11367         * Control.cs: Consistently name the dnd methods. Make them
11368         internal so we can override them to match some MS behavoir
11369         internally.
11370         * Win32DnD.cs: Use the new consistent names.
11371
11372 2005-10-31  Jackson Harper  <jackson@ximian.com>
11373
11374         * TreeView.cs: Don't draw the selected node when we lose focus.
11375
11376 2005-10-31  Jackson Harper  <jackson@ximian.com>
11377
11378         * X11Dnd.cs: We still need to reset the state even though a full
11379         reset isn't being done, otherwise status's still get sent all over
11380         the place.
11381
11382 2005-10-31  Jackson Harper  <jackson@ximian.com>
11383
11384         * Control.cs: Make the dnd_aware flag internal so the dnd
11385         subsystem can check it. Catch exceptions thrown in dnd handlers to
11386         match MS behavoir.
11387         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
11388         * X11Dnd.cs: Handle null data in the converters. Set the XDND
11389         version when sending a XdndEnter. Use the control/hwnd dnd_aware
11390         flags to reduce the number of dnd enters/status's sent.
11391
11392 2005-10-31  Jackson Harper  <jackson@ximian.com>
11393
11394         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
11395
11396 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
11397
11398         * PictureBox.cs: Fixes 76512
11399
11400 2005-10-28  Jackson Harper  <jackson@ximian.com>
11401
11402         * X11Dnd.cs: Early implementation to support winforms being a drag
11403         source for data on X11. Also restructured the converters so they
11404         can go both ways now.
11405         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
11406         
11407 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
11408
11409         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
11410           clipboard requests
11411
11412 2005-10-27  Jackson Harper  <jackson@ximian.com>
11413
11414         * TreeNode.cs: Implement serialization so my DnD examples will work.
11415
11416 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
11417
11418         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
11419           TreeView.cs: Don't dispose objects that are not owned.
11420           
11421 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
11422
11423         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
11424           should retrieve the current cursor and report that, but XplatUI
11425           doesn't (yet) have an interface for that (and I'm not sure I even
11426           can, on X11)
11427         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
11428           until any message loop processing is done (and the WM_SETCURSOR
11429           replaces the cursor to the proper one)
11430         * XplatUIX11.cs: 
11431           - Fixed override behaviour, we can't set the cursor globally on X11, 
11432             just for our windows.
11433           - Invalidating the System.Drawing X11 display handle when we are
11434             shutting down
11435         * Control.cs: Fix to make csc happy
11436
11437 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
11438
11439         * TextBoxBase.cs: 
11440           - get_Text: Add last line (without trailing newline) to returned
11441             value (Fixes 76212)
11442           - get_TextLength: Count last line in returned length
11443           - ToString: Call Text property instead of duplicating code
11444
11445 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
11446
11447         * ImageList.cs: Dispose ImageAttributes objects.
11448
11449 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11450
11451         * ImageList.cs: Use attribute constructors with less arguments where
11452           possible.
11453
11454 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11455
11456         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
11457           Use typeof instead of strings when assembly is referenced. Added
11458           some more comments.
11459
11460 2005-10-21  Jackson Harper  <jackson@ximian.com>
11461
11462         * ListView.cs: Raise a double click event. Also tried to somewhat
11463         fix when the selectedindexchanged event is raised. Its still
11464         broken though.
11465
11466 2005-10-21  Jackson Harper  <jackson@ximian.com>
11467
11468         * TreeView.cs: New method to invalidate the plus minus area of a
11469         node without invalidating the whole node (maybe this can be used
11470         in some more places).
11471         * TreeNodeCollection.cs: When adding to an empty node we need to
11472         invalidate its plus minus area so the little block shows up.
11473         
11474 2005-10-21  Jackson Harper  <jackson@ximian.com>
11475
11476         * TreeView.cs: Make sure that when we invalidate a node the bounds
11477         are big enough to cover the selected box and the focus
11478         rectangle. Use a different colour for the lines connecting nodes
11479         so they show up with all themes.
11480
11481 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11482
11483         * NativeWindow.cs: Don't call anything that could call into the driver,
11484           we might be on a different thread.
11485
11486 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
11487
11488         * Control.cs(Dispose): Since Dispose might run on a different thread,
11489           make sure that we call methods that could call into the driver via
11490           invoke, to avoid thread issues
11491
11492 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11493
11494         * XplatUI.cs: Removed finalizer
11495         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
11496           not allowing to be called on the finalizer thread.
11497
11498 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
11499
11500         * ImageList.cs:
11501           - Reverted r51889 and r51891.
11502           - Added ImageListItem class that stores unmodified image items and image
11503             properties required to create list images until handle is created.
11504           - Added AddItem and moved image creation logic to AddItemInternal.
11505           - Added CreateHandle method that creates images based on unmodified items.
11506           - Added DestroyHandle that changes state to store unmodified items.
11507           - Add and AddStrip methods no more create handle.
11508           - ReduceColorDepth has no return value.
11509           - Dispose destroys handle.
11510           - Modified other methods to reflect the above changes.
11511           - Implemented key support.
11512           - Added profile 2.0 members and attributes.
11513           - Added private Reset and ShouldSerialize methods that provide the same
11514             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
11515             them as they are private.
11516           - Added some more comments about implementation details.
11517
11518 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11519
11520         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
11521
11522 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11523
11524         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
11525
11526 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11527
11528         * DataGridDrawingLogic.cs: Fixes column hit calcultation
11529         * DataGridColumnStyle.cs: Remove debug message
11530
11531 2005-10-20  Jackson Harper  <jackson@ximian.com>
11532
11533         * TreeView.cs: We can always get input keys regardless of whether
11534         or not editing is enabled. They are used for navigation.
11535
11536 2005-10-20  Jackson Harper  <jackson@ximian.com>
11537
11538         * TreeNode.cs: Use the viewport rect for determining if a node
11539         needs to be moved for visibility. Don't use Begin/End edit. This
11540         calls a full refresh when its done.
11541         * TreeView.cs: New SetBottom works correctly.  Make the viewport
11542         rect property internal so the treenodes can see it. When clicking
11543         on a node we need to ensure that its visible because it might just
11544         be partly visible when clicked.
11545
11546 2005-10-20  Jackson Harper  <jackson@ximian.com>
11547
11548         * TreeNodeCollection.cs: Remove debug code.
11549
11550 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11551
11552         * Datagrid.cs: Implements column sorting in Datagrid
11553         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
11554
11555 2005-10-20  Jackson Harper  <jackson@ximian.com>
11556
11557         * TreeNodeCollection.cs: Remove items properly. Update the correct
11558         area after removing them.
11559
11560 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11561
11562         * Datagrid.cs: Should not call base.OnPaintBackground
11563
11564 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11565
11566         * XplatUIX11.cs (GetMessage):
11567           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
11568             window instead of client window
11569           - Now properly calculates NC_xBUTTONUP message coordinates
11570           - ScreenToMenu now properly calculates it's coordinates of whole 
11571             window, since menus are in the whole window, not in the client
11572             window
11573           - Added WholeToScreen coordinate translation method
11574
11575 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
11576
11577         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
11578           want to return a message, loop back to the beginning of the function
11579           and grab the next real message to process instead.
11580
11581 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11582
11583         * Splitter.cs: Properly set limits if no filler control is used
11584
11585 2005-10-19  Jackson Harper  <jackson@ximian.com>
11586
11587         * ColorDialog.cs: Don't show the help button if it is not enabled
11588         instead of disabling it (this is what MS does). Don't create the
11589         panel until the dialog is run, otherwise the vars (such as
11590         ShowHelp) are not set yet.
11591
11592 2005-10-19  Jackson Harper  <jackson@ximian.com>
11593
11594         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
11595         are reduced when adding nodes.
11596         * TreeNode.cs:
11597         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
11598         tree.
11599         
11600 2005-10-19  Jackson Harper  <jackson@ximian.com>
11601
11602         * FolderBrowserDialog.cs: End editing our treeview so the window
11603         actually gets refreshed.
11604
11605 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11606
11607         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
11608           Obsoleted handling of WM_ERASEBKGND, now always draws our background
11609           inside of WM_PAINT
11610
11611 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11612
11613         * MenuAPI.cs: Returns after Hidding window
11614         * XplatUIX11.cs: Added TODO found while debugging menu issues
11615
11616 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11617
11618         * XplatUIX11.cs: Do not re-map the whole window when it's size
11619           becomes non-zero unless it's supposed to be actually visible
11620
11621 2005-10-18  Jackson Harper  <jackson@ximian.com>
11622
11623         * TreeView.cs: We don't need to keep a count anymore.
11624         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
11625         use the Grow method.
11626
11627 2005-10-18  Jackson Harper  <jackson@ximian.com>
11628
11629         * TreeNodeCollection.cs: Insert is not supported on arrays, so
11630         implement it manually here.
11631
11632 2005-10-18  Jackson Harper  <jackson@ximian.com>
11633
11634         * ImageList.cs: Dont kill the list when the colour depth is
11635         changed, just change the colour depth of all the images.
11636         - Same goes for setting the image size. Just resize them all
11637         instead of killing the list softly.
11638
11639 2005-10-18  Jackson Harper  <jackson@ximian.com>
11640
11641         * Control.cs: Don't invalidate empty rectangles.
11642
11643 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11644
11645         * ListViewItem.cs:
11646           - Adds checked item to the Checked/Item lists (where empty before)
11647           - Do not add items to the Selected lists if they are already present
11648         * ListView.cs:
11649           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
11650           - When deleting items make sure that we delete them for the Selected
11651           and Checked list also.
11652
11653 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11654
11655         * Label.cs: Dispose objects no longer used
11656         * ThemeWin32Classic.cs: Dispose objects no longer used
11657
11658 2005-10-18  Jackson Harper  <jackson@ximian.com>
11659
11660         * TabControl.cs: Don't refresh the whole control when the tabs are
11661         scrolled, we just need to refresh the tab area.
11662
11663 2005-10-17  Jackson Harper  <jackson@ximian.com>
11664
11665         * XplatUIX11.cs: Compress code a little bit. Only calculate the
11666         after handle when we need it.
11667
11668 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
11669
11670         * Control.cs: When the parent size changes, recalculate anchor 
11671           positions. Partial fix for #76462
11672
11673 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
11674
11675         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
11676           drawn. Fixes #76462
11677
11678 2005-10-17  Jackson Harper  <jackson@ximian.com>
11679
11680         * MonthCalendar.cs: Don't create the numeric up down until our
11681         handle is created. Otherwise our handle is created in the
11682         constructor and we don't know if we are a WS_CHILD or WS_POPUP
11683         yet.
11684
11685 2005-10-17  Jackson Harper  <jackson@ximian.com>
11686
11687         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
11688         correctly.
11689
11690 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11691         * TreeNode.cs : small logical fix (was using local var instead of field)
11692         
11693 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
11694
11695         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
11696
11697 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
11698
11699         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
11700
11701 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
11702
11703         * Control.cs: 
11704           - Re-implemented anchoring code. My first version was really broken.
11705             This fixes bug #76033. Unlike the previous implementation we will
11706             no longer have round errors since all numbers are calculated from
11707             scratch every time. Removed various anchor-related obsolete vars.
11708           - InitLayout no longer causes layout event firing and layout to be 
11709             performed
11710
11711 2005-10-16  Jackson Harper  <jackson@ximian.com>
11712
11713         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
11714         which was broken).
11715
11716 2005-10-16  Jackson Harper  <jackson@ximian.com>
11717
11718         * TabControl.cs: Remove debug code.
11719
11720 2005-10-16  Jackson Harper  <jackson@ximian.com>
11721
11722         * XEventQueue.cs: Increase the default queue size (very simple
11723         apps needed to grow the queue).
11724         * Hwnd.cs: No finalizer so we don't need to suppress
11725         finalization. Compute the invalid area manually so a new rectangle
11726         does not newto be created.
11727         * ScrollableControl.cs: Don't set any params (otherwise visibility
11728         isn't set correctly).
11729         * MdiChildContext.cs: New constructor takes the mdi parent so it
11730         doesn't have to be computed and avoids a crash on windows. Draw
11731         the window icon properly, and allow the text to be seen.
11732         * Form.cs: Use new MdiChildContext constructor. Make sure the
11733         child context isn't null in wndproc.
11734         * TabControl.cs: Don't set focus, this is muddling keyboard
11735         behavoir. Expand the tab rows when a window size increase will
11736         allow extra tabs to be seen. Don't allow tabs smaller than the
11737         width of a window to be scrolled out of view.
11738         * TreeNode.cs:
11739         * TreeView.cs: Use measure string to calculate a nodes width, the
11740         width is cached and only updated when the text or the font is
11741         changed. Don't check for expand/collapse clicks on the first level
11742         nodes if root lines are disabled.
11743         
11744 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
11745
11746         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
11747
11748 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
11749
11750         * DataGridBoolColumn.cs: fixes warning
11751
11752 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
11753
11754         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
11755         to match more to match more precisely the MS Net behavior
11756
11757 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
11758
11759         * Hwnd.cs: Added field to track if window is mapped
11760         * XplatUIX11.cs: 
11761           - Unmap windows if they become 0-size, re-map when 
11762             they are >0 again; fixes #76035
11763           - Re-set our error handler after initializing X11Desktop
11764             to override any error handlers Gtk or whatever was called
11765             may have set.
11766
11767 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
11768
11769         * CheckedListBox.cs: Removed unused vars
11770         * ListView.cs: Fixed signatures
11771         * RichTextBox.cs: Removed unused vars
11772         * TextBoxBase.cs: Removed unused vars
11773         * XplatUIWin32.cs: Removed unused vars
11774         * XplatUIX11.cs: Removed unused vars
11775         * XplatUI.cs: Updated version and date to latest published
11776
11777 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
11778
11779         * Cursor.cs: Added private .ctor to work around a bug in
11780           resourceset (Thanks to Geoff Norton for the help on this)
11781         * SplitterEventArgs.cs: Made fields accessible so we don't
11782           waste boatloads of objects and can reuse the same one
11783           in Splitter
11784         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
11785           any captions and borders when generating screen coordinates
11786         * Splitter.cs: Reimplemented control, now fully complete, uses
11787           rubberband drawing, supports and obeys all properties, has
11788           proper cursors
11789
11790 2005-10-13  Miguel de Icaza  <miguel@novell.com>
11791
11792         * Form.cs (Form): Setup default values for autoscale and
11793         autoscale_base_size;  Make these instance variables, not static
11794         variables. 
11795
11796         (OnLoad): on the first load, adjust the size of the form.
11797
11798 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
11799
11800         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
11801           width argument to DrawReversibleRectangle()
11802         * XplatUIWin32.cs, XplatUIX11.cs: 
11803           - Implemented width for DrawReversibleRectangle()
11804           - Added logic to DrawReversibleRectangle that recognizes a zero
11805             width or height and only draws a line in that situation
11806         
11807 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
11808
11809         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
11810         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
11811         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
11812           method (it uses our FosterParent window to get a graphics context)
11813
11814 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
11815
11816         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
11817           and SetWindowBackground methods
11818         * Control.cs:
11819           - Setting proper ControlStyles
11820           - We no longer call XplatUI.SetWindowBackground and XplatUI.
11821             EraseWindowBackground, instead we draw the window background
11822             ourselves in PaintControlBackground. This behaviour is
11823             required to match MS, where, when OnPaintBackground is not
11824             called, the background is not drawn.
11825           - Removed unneeded Refresh() in set_Text
11826         * Hwnd.cs: Dropped the ErasePending support. No longer needed
11827         * XplatUIX11.cs:
11828           - Created DeriveStyles method to translate from CreateParams to
11829             FormBorderStyle and TitleStyle, also handles BorderStyle (which
11830             matches FormBorderStyle enum values)
11831           - Consolidated SetHwndStyles and CalculateWindowRect border/title
11832             style calculations into single DeriveStyles method
11833           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
11834             from redrawing the whole window on any resize or expose.
11835           - Fixed CreateWindow usage of SetWindowValuemask. Before not
11836             all styles were applied to our whole/client window appropriately
11837           - Removed EraseWindowBackground() and SetWindowBackground() methods
11838           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
11839             no longer clear/redraw the background through X
11840           - Removed handling of erase_pending bit, we have no use for it (or
11841             so it seems)
11842         * XplatUIOSX.cs:
11843           - Removed generation and handling of WM_ERASEBKGND message
11844           - Removed EraseWindowBackground() and SetWindowBackground() methods
11845           - Removed handling of hwnd.ErasePending flag
11846         * XplatUIWin32.cs:
11847           - Removed EraseWindowBackground() and SetWindowBackground() methods
11848           - We no longer call EraseWindowBackground on PaintEventStart, we 
11849             ignore the fErase flag, erasing is handled in Control in the
11850             background handler
11851         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
11852           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
11853           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
11854           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
11855           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
11856           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
11857           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
11858
11859 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
11860
11861         * PropertyGrids.cs: Get sub properties
11862         * PropertyGridView.cs: Fix drawing code
11863
11864 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11865
11866         * ListBox.cs: Fixes 76383
11867
11868 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11869
11870         * DataGridTextBoxColumn.cs: Sets location and size before attachment
11871         * ThemeWin32Classic.cs: Fixes border drawing and calculations
11872         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
11873
11874
11875 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11876
11877         * ComboBox.cs: Fixes border drawing
11878
11879 2005-10-10  Miguel de Icaza  <miguel@novell.com>
11880
11881         * MimeIcon.cs: Ignore errors if the file can not be read.
11882
11883 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11884
11885         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
11886          - Fixed border calculations
11887          - Fixed horizontal scrolling in single column listboxes
11888          - Fixed drawing issues
11889
11890 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
11891
11892         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
11893           FormBorderStyle enum
11894         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
11895           code to determine FormBorderStyles from CreateParams
11896         * Form.cs:
11897           - Fixed bug where we'd set the wrong window styles if we were
11898             not creating an MDI window
11899           - Added call to XplatUI.SetBorderStyle when form borders are set
11900         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
11901         * Hwnd.cs:
11902           - Removed obsolete edge style
11903           - Switched from BorderStyle to FormBorderStyle
11904         
11905 2005-10-10  Jackson Harper  <jackson@ximian.com>
11906
11907         * Form.cs: Use the property to get the window handle instead of
11908         accessing it directly. Prevents a null reference exception.
11909
11910 2005-10-10  Jackson Harper  <jackson@ximian.com>
11911
11912         * TreeView.cs: Don't adjust the rect given to DrawString now that
11913         our libgdiplus draws correctly.
11914
11915 2005-10-08  Jackson Harper  <jackson@ximian.com>
11916
11917         * TreeView.cs: Don't try to find the clicked on node if there are
11918         no nodes in the tree.
11919
11920 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
11921
11922         * RichTextBox.cs:
11923
11924           restore
11925
11926 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
11927
11928         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
11929           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
11930           ErrorProvider.cs:
11931           Use ResPool for brushes and dispose System.Drawing objects that
11932           are not used anymore.
11933
11934 2005-10-07  Jackson Harper  <jackson@ximian.com>
11935
11936         * MdiChildContext.cs: Use the new borders instead of drawing them
11937         ourselves.
11938
11939 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
11940
11941         * Calling UpdateBounds after changing the window's BorderStyle 
11942         since the style can change the ClientSize
11943
11944 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11945
11946         * Control.cs: Made PaintControlBackground virtual
11947         * Panel.cs: Overriding PaintControlBackground instead of using paint
11948           event; paint event method was interfering with 'real' users of the
11949           event.
11950
11951 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
11952
11953         * ThemeWin32Classic.cs: remove border drawing since it is handled
11954         by the base control class now and was causing double border drawing.
11955
11956 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11957
11958         * Panel.cs: Redraw our background on paint. Not a pretty solution,
11959           but it does seem to match MS behaviour. This fixes bug #75324
11960
11961 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11962
11963         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
11964           somewhat hackish looking
11965
11966 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
11967
11968         * TextBoxBase.cs:
11969           - We now accept Enter even if AcceptEnter is false, if the containing
11970             form does not have an AcceptButton configured (fixes bug #76355)
11971           - Calculations are now fixed to no longer use Width/Height, but
11972             ClientSize.Width/Height, since we now support borders (this was
11973             a result of fixing borders and therefore bug #76166)
11974           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
11975             true (fixes bug #76354)
11976         
11977 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11978
11979         * Control.cs: 
11980           - Defaulting BorderStyle and setting it in XplatUI when our window 
11981             is created
11982           - Added enum check to InternalBorderStyle setter
11983         * XplatUIX11.cs: 
11984           - Added drawing of window borders
11985           - Now properly calculates WM decorations offset for toplevel 
11986             windows (fixes bug #74763)
11987         * XplatUIWin32.cs: 
11988           - Implemented BorderStyles for windows (we're letting win32 draw 
11989             the border for us)
11990           - Fixed the signature for SetWindowLong
11991         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
11992           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
11993           setting borders
11994         * UpDownBase.cs: Remove drawing of borders, this is handled by
11995           the driver, outside the client area
11996         * ListView.cs: Removed bogus border calculations. The control should
11997           be oblivious to borders, since those are not part of the client
11998           area. 
11999         * X11DesktopColors.cs: Commented out (currently) unneeded variables
12000         * ThemeWin32Classic.cs: Removed border calculations from ListView 
12001           drawing code
12002
12003 2005-10-06  Jackson Harper  <jackson@ximian.com>
12004
12005         * MdiChildContext.cs: Clear out the old virtual position remove
12006         all the unneeded calls to CreateGraphics.
12007
12008 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12009
12010         * TextControl.cs: Use proper color for highlighted text; fixes #76350
12011
12012 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
12013
12014         * Form.cs: 
12015           - Added loading and setting of our new default icon
12016           - Only set icon if window is already created
12017
12018 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
12019
12020         * Label.cs:
12021           - Do not explicitly set the foreground and background colors, to
12022             allow inheriting from parents (fixes #76302)
12023           - Use Control's InternalBorderStyle property to deal with borders
12024
12025 2005-10-06  Jackson Harper  <jackson@ximian.com>
12026
12027         * MdiChildContext.cs: Use the new xplatui function to draw a
12028         reversible rect.
12029
12030 2005-10-06  Jackson Harper  <jackson@ximian.com>
12031
12032         * Form.cs: Add the parent before creating the child context cause
12033         we need the parent when setting up the child.
12034
12035 2005-10-06  Jackson Harper  <jackson@ximian.com>
12036
12037         * FolderBrowserDialog.cs: redo the tree population code so a
12038         second thread isn't used. Should be a lot faster and more stable
12039         now.
12040
12041 2005-10-05  Jackson Harper  <jackson@ximian.com>
12042
12043         * TreeView.cs: There are no expand/collapse boxes if the node has
12044         no children.
12045
12046 2005-10-05  Jackson Harper  <jackson@ximian.com>
12047
12048         * X11DesktopColors.cs: Get menu colours for the gtk theme.
12049
12050 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
12051
12052         * FileDialog.cs: Fix InitialDirectory
12053
12054 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12055
12056         * ComboBox.cs:
12057                 - Fixes changing between styles
12058                 - Fixes simple mode
12059                 - Fixes last item crashing when navigating with keyboard
12060
12061 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
12062
12063         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
12064
12065 2005-10-05  Jackson Harper  <jackson@ximian.com>
12066
12067         * TreeView.cs: If updating the root node do a full refresh.
12068         * TreeNode.cs: The root node should be expanded by default. Also
12069         added a utility prop to tell if we are the root node.
12070         * TreeNodeCollection.cs: Only refresh if the node we are being
12071         added to is expanded. Also added a comment on a potential
12072         optimization.
12073         
12074 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
12075
12076         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
12077           in dispose method. Fixes #76330
12078
12079 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
12080
12081         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
12082
12083                 - Implements vertical and horizontal scrolling using XplatUI
12084                 - Fixes keyboard navagation
12085                 - Fixes EnsureVisible
12086                 - Drawing fixes
12087                 - Handles and draws focus properly
12088
12089
12090 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
12091
12092         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
12093           Create handle. NET_2_0: Destroy handle when value is null.
12094
12095 2005-10-03  Jackson Harper  <jackson@ximian.com>
12096
12097         * ScrollBar.cs: My last scrollbar patch was broken. This is a
12098         revert and a new patch to prevent the thumb from refreshing so
12099         much.
12100
12101 2005-10-02  Jackson Harper  <jackson@ximian.com>
12102
12103         * ScrollBar.cs: Don't update position if it hasn't actually
12104         changed. This occurs when you hold down the increment/decrement
12105         buttons and the thumb gets to the max/min.
12106
12107 2005-10-01  Jackson Harper  <jackson@ximian.com>
12108
12109         * Form.cs:
12110         * MdiChildContext.cs:
12111         * MdiClient.cs: Implement ActiveMdiChild in Form.
12112
12113 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
12114
12115         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
12116
12117 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
12118
12119         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
12120           be found
12121
12122 2005-09-30  Jackson Harper  <jackson@ximian.com>
12123
12124         * ListBox.cs: Don't do a full refresh unless some data has
12125         actually changed.
12126
12127 2005-09-30  Jackson Harper  <jackson@ximian.com>
12128
12129         * TreeView.cs: Make sure that the checkboxes size is factored in
12130         even when not visible.
12131
12132 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12133
12134         * FileDialog.cs: Fix Jordi's build break
12135
12136 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12137
12138         * FileDialog.cs: 
12139                 - Use standard the Windows colours for the combobox as espected
12140                 - Dispose objects that use resouces when no longer need them
12141
12142 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
12143
12144         * X11DesktopColors.cs: Initial incomplete implementation
12145         * XplatUIX11.cs: Added call to initialize X11DesktopColors
12146
12147 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
12148
12149         * Theme.cs: 
12150           - Switched Theme color names to match the names defined in 
12151             System.Drawing.KnownColors. Life's hard enough, no need to make 
12152             it harder.
12153           - Added setters to all theme color properties so themes can set
12154             their color schemes. The setters also propagate the color changes
12155             to System.Drawing.KnownColors via reflection
12156         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
12157           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
12158           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
12159           use the new, more logical theme color names
12160         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
12161           post-NT colors
12162         * ThemeWin32Classic.cs:
12163           - Removed code to set the old classic Windows colors. Instead it
12164             now relies on the colors returned by System.Drawing.KnownColors
12165             which will be either modern static colors (Unix) or colors
12166             read from the user's configuration (Win32)
12167           - Updated to use the new, more logical theme color names
12168           - Switched DataGrid drawing code to use only Theme colors instead of
12169             a mix of System.Drawing.KnownColors and Theme colors
12170           - DrawFrameControl(): Removed code that fills the button area, the
12171             fill would overwrite any previous fill done by a control. This
12172             fixes bug #75338 
12173           - Added DrawReversibleRectangle() stub
12174         * ScrollableControl.cs: Set visible state to false when scrollbars
12175           are removed (pdn fix)
12176         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
12177           DrawReversibleRectangle() method to allow drawing primitive 
12178           'rubber bands'
12179         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
12180
12181 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12182
12183         * ImageList.cs: Add(Icon): Create handle.
12184
12185 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
12186
12187         * ListView.cs:
12188         * ThemeWin32Classic.cs:
12189                 - Fixes detail mode
12190                 - Sets clippings
12191                 - Issues with drawing
12192
12193 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12194
12195         * ImageList.cs: Moved RecreateHandle back to ImageList as event
12196           source has to be the ImageList.
12197
12198 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12199
12200         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
12201
12202 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12203
12204         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
12205
12206 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12207
12208         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
12209
12210 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
12211         * GridItem.cs: Fixed TODOs
12212         * GridItemCollection.cs: Added ICollection interface
12213
12214 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
12215
12216         * ImageList.cs: Resize icons when needed.
12217
12218 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
12219
12220         * ListViewItem.cs
12221                 - Fixes GetBounds and returns on screen rects
12222         * ListView.cs:
12223                 - Fixes vertical and horzintal scrolling of items
12224         * ThemeWin32Classic.cs:
12225                 - Fixes drawing
12226                 
12227 2005-09-29  Raja R Harinath  <harinath@gmail.com>
12228
12229         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
12230
12231 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
12232
12233         * ImageList.cs: Added comments about handle creation. Moved Handle,
12234           HandleCreated and OnRecreateHandle implementations to ImageCollection.
12235           Handle is created in Add methods.
12236
12237 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12238          
12239         * DataGridDrawingLogic.cs: 
12240                 - Takes rows into account on Colum calculations
12241                 - Returns the column when clickig
12242         * DataGrid.cs:
12243                 - Fixes default HitTestInfo values
12244                 - Fixes HitTestInfo.ToString
12245                 - Fixes ResetBackColor          
12246         
12247 2005-09-28  Jackson Harper  <jackson@ximian.com>
12248
12249         * MdiChildContext.cs: Obey rules for fixed sized windows (no
12250         sizing or cursor changes). Also added some temp code to draw the
12251         titlebars text (Makes dev a little easier).
12252
12253 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12254
12255         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
12256
12257 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
12258          
12259         * ListBox.cs: Fixes bug 76253
12260
12261 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
12262
12263         * ImageList.cs: Added comments about the current implementation. Added
12264           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
12265           Format32bppArgb to preserve transparency and can use Graphics.FromImage
12266           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
12267           with Bitmap.LockBits for better performance. Revised the whole file to
12268           match MS.NET behaviour and provide better performance. Non-public
12269           interface members are calling public members even when they throw
12270           NotSupportedException for better maintainability. Moved ColorDepth,
12271           ImageSize, ImageStream and TransparentColor implementations to
12272           ImageCollection for better performance as these properties are not used
12273           by ImageList.
12274         * ImageListStreamer.cs: Added a new internal constructor that takes an
12275           ImageList.ImageCollection and serializes Images based on
12276           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
12277           match ImageList property name.
12278
12279 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
12280
12281         * ListBox.cs: Fixes IndexFromPoint for last item
12282
12283 2005-09-27  Jackson Harper  <jackson@ximian.com>
12284
12285         * Form.cs: Set the position of new mdi children correctly.
12286
12287 2005-09-27  Jackson Harper  <jackson@ximian.com>
12288
12289         * MdiClient.cs: New mdi children need to be added to the back of
12290         the controls collection so the zorder is set correctly. Also add a
12291         count of all the child windows that have been created.
12292
12293 2005-09-27  Jackson Harper  <jackson@ximian.com>
12294
12295         * Form.cs (CreateParams): Setup MDI forms correctly.
12296
12297 2005-09-27  Jackson Harper  <jackson@ximian.com>
12298
12299         * MdiChildContext.cs:
12300         * MonthCalendar.cs:
12301         * UpDownBase.cs:
12302         * ListBox.cs:
12303         * ListView.cs:
12304         * TextBoxBase.cs:
12305         * TreeView.cs:
12306         * ScrollableControl.cs:
12307         * ComboBox.cs: Add implicit controls using the new implict control
12308         functionality in ControlCollection. Also try to block multiple
12309         control add in a suspend/resume layout to save some cycles.
12310         
12311 2005-09-27  Jackson Harper  <jackson@ximian.com>
12312
12313         * Control.cs: Add functionality to the controls collection to add
12314         'implicit controls' these are controls that are created by the
12315         containing control but should not be exposed to the user. Such as
12316         scrollbars in the treeview.
12317         * Form.cs: The list var of the ControlsCollection is no longer
12318         available because of the potential of implicit controls getting
12319         ignored by someone accessing the list directly.
12320
12321 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
12322
12323         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
12324           loose it's parent. (Fixed bug introduced in r49103 when we added
12325           setting the child parent to null on Remove)
12326
12327 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
12328
12329         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
12330         * Splitter.cs: Added missing attributes for BorderStyle property.
12331         * TextBoxBase.cs: Marked Calculate* methods internal.
12332         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
12333         MS.NET.
12334
12335 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
12336          
12337         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
12338
12339 2005-09-25  Jackson Harper  <jackson@ximian.com>
12340
12341         * TreeView.cs: Update the node bounds correctly regardless of
12342         whether the node is visible.
12343
12344 2005-09-25  Jackson Harper  <jackson@ximian.com>
12345
12346         * ImageList.cs: Don't dispose the image after it is added to the
12347         image list. Only reformat images that need to be resized.
12348
12349 2005-09-25  Jackson Harper  <jackson@ximian.com>
12350
12351         * ImageList.cs: Don't set the format when changing the image.
12352
12353 2005-09-25  Jackson Harper  <jackson@ximian.com>
12354
12355         * TreeView.cs: We can't just assume the node has a font. Use the
12356         treeviews font if no node font is available.
12357
12358 2005-09-25  Jackson Harper  <jackson@ximian.com>
12359
12360         * TreeView.cs: Allow the scrollbars to be reset with negative
12361         values.
12362         - Don't add scrollbars to negative sized windows.
12363
12364 2005-09-23  Jackson Harper  <jackson@ximian.com>
12365
12366         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
12367         old Mono.Posix. Also remove some stray code that shouldn't have
12368         been committed.
12369
12370 2005-09-23  Jackson Harper  <jackson@ximian.com>
12371
12372         * TreeView.cs: Attempt at proper sizing of the horizontal
12373         scrollbar. Also don't resize the scrollbars unless they are
12374         visible.
12375
12376 2005-09-23  Jackson Harper  <jackson@ximian.com>
12377
12378         * TreeView.cs: We don't need to expand the invalid area when the
12379         selection changes, as this is all drawn in the node's bounding
12380         box. The area needs to be expanded (previous typo was contracting
12381         it) when the focus rect moves.
12382
12383 2005-09-23  Jackson Harper  <jackson@ximian.com>
12384
12385         * TreeView.cs: Display the selection box under the correct
12386         circumstances. We were rendering white text with no selection box
12387         before.
12388
12389 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
12390
12391         * TextControl.cs(Split): Now updates selection start/end if it points 
12392           into a line that's being split. Fixes a FIXME and bug #75258
12393
12394 2005-09-23  Jackson Harper  <jackson@ximian.com>
12395
12396         * Binding.cs:
12397         * ListControl.cs: Don't use the path when retrieving binding
12398         managers from the binding context. My bat sense tells me that the
12399         path is only used on insertion.
12400
12401 2005-09-22  Jackson Harper  <jackson@ximian.com>
12402
12403         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
12404
12405 2005-09-22  Jackson Harper  <jackson@ximian.com>
12406
12407         * Splitter.cs: There are special cursors used for splitting.
12408         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
12409
12410 2005-09-22  Jackson Harper  <jackson@ximian.com>
12411
12412         * Splitter.cs: Change the cursor appropriately when the splitter
12413         is moused over, so the user actually knows there is a splitter
12414         there.
12415
12416 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12417
12418        * Label.cs : Fix ToString method to give same output as MS.NET
12419
12420 2005-09-22  Jackson Harper  <jackson@ximian.com>
12421
12422         * TreeView.cs: Create the scrollbars when the handle is created
12423         and add them right away, just make them invisble. Also account for
12424         the window being shrunk vertically to the point that the vert
12425         scrollbar needs to be added.
12426         - Remove some 0.5 adjustments to get around anti aliasing issues.
12427         
12428 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
12429          
12430         * MainMenu.cs: Fixes default value
12431         * MenuItem.cs: Fixes default value
12432
12433 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
12434
12435         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
12436
12437 2005-09-21  Jackson Harper  <jackson@ximian.com>
12438
12439         * Control.cs: Don't try to set the border style on the window if
12440         it hasn't been created. When the window is created the border
12441         style will be used.
12442
12443 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12444
12445         * Control.cs (Update): Don't call XplatUI if we don't have a
12446           window handle yet
12447
12448 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12449
12450         * ContainerControl.cs: Instead of throwing an exception, print
12451           a one-time warning about Validate not being implemented
12452         * XplatUIWin32.cs: Removed debug output
12453
12454 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12455
12456         * Control.cs: Only set XplatUI background if we expect the windowing
12457           system to handle the background. This stops controls that draw their
12458           own background from flickering
12459
12460         * XplatUIX11.cs: Support custom visuals and colormaps for window 
12461           creation. This allows, amongst other things, using MWF X11 windows 
12462           with OpenGL.
12463
12464 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12465
12466         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
12467           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
12468           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
12469           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
12470           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
12471           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
12472           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
12473           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
12474           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
12475           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
12476           GridColumnStylesCollection.cs, 
12477           IDataGridColumnStyleEditingNotificationService.cs,
12478           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
12479           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
12480           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
12481           TreeNodeCollection.cs, AmbientProperties.cs, 
12482           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12483           DataObject.cs, ErrorProvider.cs, Splitter.cs,
12484           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
12485           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
12486           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
12487           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
12488           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
12489           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
12490           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
12491           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
12492           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
12493           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
12494           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
12495           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
12496           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
12497           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
12498           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
12499           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
12500           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
12501           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
12502           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
12503           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
12504           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
12505           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
12506           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
12507           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
12508           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
12509           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
12510           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
12511           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
12512           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
12513           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
12514           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
12515           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
12516           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
12517           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
12518           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
12519
12520 2005-09-21  Jackson Harper  <jackson@ximian.com>
12521
12522         * TreeNode.cs: Call Before/After Expand not Collapse when
12523         expanding.
12524
12525 2005-09-20  Jackson Harper  <jackson@ximian.com>
12526         
12527         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
12528
12529 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12530          
12531         * ListViewItem.cs:
12532                 - Fixes bug 76120
12533                 - Fixes proper storing of subitems
12534                 - Fixes not updated items
12535
12536 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
12537
12538         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
12539           things if our window handle isn't created yet. Also disabled 
12540           debug for TextBoxBase
12541
12542 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
12543
12544         * MenuAPI.cs: Remove filtering of events to allow menu usage
12545
12546 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12547
12548         * Cursor.cs: Allow null to be passed to Cursor.Current.
12549
12550 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
12551
12552         * ThemeWin32Classic.cs:
12553           - Change some private methods/fields to protected virtual so that 
12554             they can be accessed and overriden in derived classes
12555           - First refactoring of some methods. Derived themes now don't 
12556             need to duplicate the complete code from ThemeWin32Classic
12557         * ThemeNice.cs:
12558           - Added nice StatusBar
12559           - Derive from ThemeWin32Classic and not Theme
12560           - Removed duplicate ThemeWin32Classic code
12561
12562 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12563
12564         * Control.cs (ControlCollection.Add): If the value null is passed
12565         the control is ignored. 
12566
12567         Optimize this loop.
12568
12569 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
12570
12571         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
12572           PostQuitMessage state.
12573         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
12574
12575 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
12576
12577         * Application.cs: Our constructor will never get called, move 
12578           initialization to fields; fixes bug #75933
12579
12580 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12581
12582         * FileDialog.cs :
12583                 - Allow files to be selected properly using file name
12584                 combo box.
12585                 - Add ability to change diretory (absolute / relative)
12586                 using file name combo box.
12587
12588 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12589          
12590         * ListBox.cs: 
12591                 - Fixes Multicolumn listboxes item wrong calculations
12592                 - Allows to click when only one item is in the listbox
12593                 - Fixes crash when no items using keyboard navigation
12594
12595 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
12596
12597         * ComboBox.cs: Reverted almost everything from the latest patch which
12598           broke ComboBox
12599
12600 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
12601         
12602         * ToolTip.cs:
12603                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
12604         * ComboBox.cs:
12605                 - When DropDownStyle is Simple, it does not show scrollbar 
12606                 to the last item of the list.
12607                 - When DropDownStyle is Simple, it crashed when the list was 
12608                 scrolled down with the down cursor key.
12609                 - Fixed a bug that when DropDownStyle is DropDownList, the 
12610                 selected item was not shown.
12611                 - The position of the selected item was not preserved when 
12612                 the next dropdown happened.
12613         * ThemeWin32Classic.cs:
12614                 - Items were wrapped at the right end.
12615         * CheckedListBox.cs:
12616                 - Fixed Add method
12617         * ListBox.cs:
12618                 - Items should be fully shown.
12619                 - When resizing and vertical scrollbar disappeared, the item 
12620                 of index 0 should be on the top of the list.
12621                 - GetItemRectangle should consider the size of ver. scrollbar
12622         * StatusBar.cs:
12623                 - SizingGrip area should not be allocated when it is not 
12624                 displayed.
12625                 - Now it reflects MinWidth of the containing panel and 
12626                 fixed a crash that happens when its width becomes so small.
12627
12628 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12629
12630         * CheckedListBox.cs: Fixes bug 76028
12631         * ListBox.cs: Fixes bug 76028
12632
12633 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12634
12635         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
12636         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
12637
12638 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
12639
12640         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
12641
12642 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12643
12644         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
12645
12646 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12647
12648         * IRootGridEntry.cs: Added
12649         * PropertyGridCommands.cs: Added
12650         * PropertiesTab.cs: Added missing methods and property
12651         * PropertyGridView.cs: Made class internal
12652         * PropertyGridTextBox.cs: Made class internal
12653
12654 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12655
12656         * MimeIcon.cs: Try to check some other environment variables
12657           if "DESKTOP_SESSION" returns "default"
12658
12659 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12660
12661         * ThemeNice.cs: Corrected background colors (e.g. menus)
12662         * ColorDialog.cs: Use correct background colors for controls
12663
12664 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12665
12666         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
12667
12668 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
12669
12670         * RichTextBox.cs: Added initial implementation
12671         * lang.cs: Removed. Was accidentally checked in long time ago
12672         * TODO: Removed. Contents were obsolete
12673
12674 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
12675                                                                                 
12676         * PropertiesTab.cs : Added
12677
12678 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
12679                                                                                 
12680         * PropertyGrid.cs : Update
12681         * PropertyGridView.cs : Update
12682         * System.Windows.Forms.resx : Added images and strings
12683
12684 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
12685
12686         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
12687  
12688 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
12689
12690         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
12691           a busy loop right after the Ungrab the X11 display is otherwise 
12692           blocked
12693
12694 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
12695
12696         * ThemeWin32Classic.cs: Optimise the use of clipping
12697
12698 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
12699
12700         * DataGrid.cs: fixes recursion bug
12701
12702 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
12703
12704         * ThemeNice.cs: 
12705           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
12706           - Cleanup
12707
12708 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
12709
12710         * ThemeNice.cs: Draw nice ProgressBars
12711
12712 2005-09-01  Miguel de Icaza  <miguel@novell.com>
12713
12714         * VScrollBar.cs: Another buglet found by Aaron's tool. 
12715
12716         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
12717         bug finder.
12718
12719 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
12720
12721         * ThemeNice.cs:
12722           - Added nicer menu drawing
12723           - Updated DrawTab
12724           - some refactoring
12725
12726 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
12727
12728         * CreateParams.cs (ToString): Made output match MS
12729         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
12730             handle is already created (to avoid forcing window creation)
12731         * XplatUIX11.cs: Set window text to caption after creating window,
12732           in case Text was set before window was created
12733         * Form.cs: Use this.Text instead of a static string as caption
12734
12735 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
12736
12737         * NotifyIcon.cs: Don't set the window to visible; this screws
12738           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
12739           OnPaint without a bitmap)
12740         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
12741           happen very often anyway; we could add the check to the WM_PAINT 
12742           event generation code
12743
12744 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
12745
12746         * NotifyIcon.cs: Fill the icon area with a background color, to 
12747           avoid 'residue' when transparent icons are drawn
12748         * XplatUIX11.cs:
12749           - Handle whole_window == client_window when destroying windows
12750           - SystrayAdd(): Set client_window to whole_window value to
12751             get mouse and other events passed to NotifyIcon
12752
12753 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
12754
12755         * Form.cs: Set proper default for Opacity property
12756         * NotifyIcon.cs:
12757           - ShowSystray(): Don't bother creating telling the OS
12758             about the systray item if no icon is provided
12759           - Now handles WM_NCPAINT message to deal with whole/client window
12760             split
12761           - Create window as visible to not get caught by Expose optimization
12762         * Hwnd.cs: Removed debug message
12763         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
12764           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
12765             PaintEventStart/End to use new client argument
12766         * TextBoxBase.cs:
12767           - Commented out debug messages
12768           - Switched PaintEventStart/End to use new client argument
12769         * XplatUI.cs: Added client window bool to PaintEventStart()/
12770           PaintEventEnd() calls, to support drawing in non-client areas
12771         * XplatUIDriver.cs: 
12772           - Added client window bool to PaintEventStart()/PaintEventEnd() 
12773             calls, to support drawing in non-client areas
12774           - Added conditional compile to allow using MWF BeginInvoke 
12775             on MS runtime
12776         * XplatUIX11.cs:
12777           - Added some conditional debug output
12778           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
12779             whole/client window split
12780           - Implemented handling of client argument to PaintEventStart()/End()
12781         * Control.cs:
12782           - Throw exception if BeginInvoke() is called and the window handle
12783             or one of the window's parent handles is not created
12784           - Added conditional compile to allow using MWF BeginInvoke on
12785             MS runtime
12786           - get_Parent(): Only sets parent if handle is created. This avoids
12787             forcing window handle creation when parent is set.
12788           - Now fires Layout and Parent changed events in proper order
12789           - Switched to use Handle instead of window.Handle for Z-Order setting,
12790             the get_Parent() patch above causes us to possibly get null for 'window'
12791           - Implemented handling of client argument to PaintEventStart()/End()
12792           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
12793             default handling)
12794           - Now sends a Refresh() to all child windows when Refresh() is called
12795
12796 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
12797
12798         * Form.cs: Added (non-functional) Opacity property
12799         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
12800
12801 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
12802         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
12803           use export MONO_THEME=nice to activate it.
12804           Currently supported controls:
12805           - Button
12806           - ComboBox
12807           - ScrollBar
12808           - TabControl (TabAlignment.Top only, other will follow)
12809         * ThemeEngine.cs: Add theme nice
12810         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
12811           if enabled
12812
12813 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
12814
12815         * Splitter.cs: Resize docked control and its neighbor.
12816
12817 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12818         -- Making Windows with Menus layout correctly --
12819         * Form.cs : The first leg of the fix
12820                 Menu setter - adjust Client Size as needed to make space for the menu
12821                 SetClientSizeCore - doesn't call base version to be able to pass the 
12822                         menu handle to XplatUI.CalculateWindowRect
12823         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
12824         * XplatUIX11.cs: The critical second leg of the fix
12825                 GetWindowPos needs to use a recalculated client_rect
12826                 so that resizing the window doesn't break layout of child controls. 
12827                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
12828                 Lots of \t\n killed
12829
12830 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12831
12832         * Label.cs: Now properly recalculates width and height on Font and Text
12833           changes if AutoSize is set
12834
12835 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12836         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
12837
12838 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
12839
12840         * ImageList.cs: Makes ToString method compatible with MS
12841
12842 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
12843
12844         * MenuAPI.cs: fixes bug 75716
12845
12846 2005-08-11 Umadevi S <sumadevi@novell.com>
12847         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
12848
12849 2005-08-11 Umadevi S <sumadevi@novell.com>
12850         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
12851
12852 2005-08-10  Umadevi S <sumadevi@novell.com>
12853         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
12854
12855 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
12856
12857         * Menu.cs: fixes bug 75700
12858         * MenuAPI.cs: fixes navigation issues
12859
12860 2005-08-09  Umadevi S <sumadevi@novell.com>
12861         * CheckedListBox.cs - simple fix for GetItemChecked.
12862
12863 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
12864
12865         * ComboBox.cs: Serveral fixes
12866         * ListBox.cs: Serveral fixes
12867
12868 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
12869
12870         * ComboBox.cs: Fixes FindString methods and GetItemHeight
12871         * ListBox.cs: Fixes FindString methods
12872
12873 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
12874
12875         * DataGrid.cs: fixes bugs exposed by new tests
12876
12877 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
12878
12879         * Mime.cs: Compile Mono assembly references only if compiling
12880           with Mono (Allows to build with VS.Net again)
12881
12882 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
12883
12884         * Control.cs (PaintControlBackground): Draw background image
12885         corrrectly.
12886         (CheckForIllegalCrossThreadCalls): Stubbed.
12887         
12888         * Form.cs (OnCreateControl): Center when should be centered.
12889         
12890         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
12891
12892 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
12893
12894         * Binding.cs: Binding to properties should be case unsensitive
12895
12896 2005-07-18 vlindos@nucleusys.com
12897
12898         * DataGrid.cs: fixes setmember order
12899
12900 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
12901
12902         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
12903         * FileDialog.cs: FileDialog is now resizable and uses the new
12904           MimeIconEngine
12905
12906 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
12907
12908         * DataGridTextBoxColumn.cs: default value
12909         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
12910         * GridTableStylesCollection.cs: fixes checking MappingName
12911         * DataGridDrawingLogic.cs: fixes drawing logic issues
12912         * DataSourceHelper.cs: rewritten to make compatible with more data sources
12913         * DataGrid.cs: fixes    
12914
12915 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
12916
12917         * MimeGenerated.cs: Use case sensitive comparer for
12918           NameValueCollections
12919
12920 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
12921
12922         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
12923         * ThemeWin32Classic.cs: bug fixes, code refactoring
12924         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
12925         * DataGrid.cs: bug fixes, code refactoring
12926         * DataGridTextBox.cs: bug fixes, code refactoring
12927         * DataGridColumnStyle.cs:  bug fixes, code refactoring
12928         * Theme.cs:  bug fixes, code refactoring
12929
12930 2005-07-01  Peter Bartok  <pbartok@novell.com> 
12931
12932         * TextControl.cs: Quick fix for the reported crash on ColorDialog
12933           and other text box usage
12934
12935 2005-07-01  Jackson Harper  <jackson@ximian.com>
12936
12937         * TabControl.cs: Make sure the bottom of the tab covers the pages
12938         border.
12939
12940 2005-06-30  Peter Bartok  <pbartok@novell.com> 
12941
12942         * Form.cs (ShowDialog): Assign owner of the dialog
12943         * TextBoxBase.cs: Always refresh caret size when deleting, caret
12944           might have been moved to a tag with different height
12945
12946 2005-06-30  Jackson Harper  <jackson@ximian.com>
12947
12948         * Form.cs: Don't create an infinite loop when setting focus
12949         * MenuItem.cs: Don't dirty the parents if we don't have any
12950
12951 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
12952
12953         * LibSupport.cs: Rename
12954
12955 2005-06-29  Peter Bartok  <pbartok@novell.com>
12956
12957         * TextBoxBase.cs: Re-align caret after deleting a character
12958         * TextControl.cs:
12959           - DeleteChars(): Ensure that tag covers the provided position
12960           - StreamLine(): Drop reference for dropped tag
12961
12962 2005-06-29  Peter Bartok  <pbartok@novell.com> 
12963
12964         * TextControl.cs: 
12965           - Selections now work properly, anchoring at the initial location
12966             and properly extending in either direction (SetSelectionToCaret(),
12967             SetSelectionStart() and SetSelectionEnd())
12968           - No longer redraws the whole control on selection change, now
12969             calculates delta between previous and new selection and only
12970             invalidates/redraws that area
12971           - Fixed FindPos() math off-by-one errors
12972           - Changed DeleteChars() to verify the provided tag covers the
12973             provided position, selections may have a tag that doesn't cover
12974             the position if the selection is at a tag border
12975           - Fixed off-by-one errors in DeleteChars()
12976           - Added missing streamlining check in DeleteChars() to remove
12977             zero-length tags
12978           - Implemented Invalidate() method, now properly calculates exposures
12979             between two given lines/positions
12980           - Implemented SetSelection()
12981           - Obsoleted and removed FixupSelection()
12982           - Improved RecalculateDocument() logic, removing code duplication
12983
12984 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12985
12986         * LibSupport.cs: changes to match different input/output arguments.
12987
12988 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12989
12990         * LibSupport.cs: added libsupport.so init routine.
12991
12992 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
12993         
12994         * ControlBindingsCollection.cs
12995                 - Throws an exception on null datasource when adding
12996                 - Checks for duplicated bindings when adding
12997
12998 2005-06-28  Jackson Harper  <jackson@ximian.com>
12999
13000         * TreeView.cs (OnKeyDown): Support left and right properly
13001         (navigates as well as expanding and collapsing.
13002         - Add support for Multiply, this expands all the selected nodes
13003         children.
13004         - Fix some tabbing.
13005
13006 2005-06-28  Jackson Harper  <jackson@ximian.com>
13007
13008         * TreeView.cs: Implement keyboard navigation, currently supports,
13009         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
13010         support for toggling checkboxes with the space bar.
13011
13012 2005-06-28  Jackson Harper  <jackson@ximian.com>
13013
13014         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
13015         tree.
13016
13017 2005-06-28  Jackson Harper  <jackson@ximian.com>
13018
13019         * TreeView.cs: Add missing event.
13020
13021 2005-06-27  Peter Bartok  <pbartok@novell.com> 
13022
13023         * TextControl.cs:
13024           - Made line ending size configurable (now allows for counting 
13025             lineendings as \n or \r\n)
13026           - Added margin to viewport to keep caret visible on right side
13027           - Fixed translation routines for line/pos to documentpos to consider
13028             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
13029           - Fixed some line-endings to be unix style
13030           - Fixed Document.FormatText to perform it's calculations 1-based
13031           - Added descriptions for a few methods that might otherwise get 
13032             used wrong
13033           - Added NOTE section with some basic conventions to remember at 
13034             the top of the file
13035           - Major fixup for RichTextBox selection drawing:
13036             * Fixed crashes when multiple tags on a single line were selected
13037             * fixed selection box drawing not overlaying text
13038             * fixed bogus offset calculation for tags not starting at index 1
13039             * Switched behaviour from using multiple Substrings of a 
13040               StringBuilder.ToString() to using multiple 
13041               StringBuilder.ToString(start, length) statements, hoping this is
13042               faster (kept original version commented out in the code, in case
13043               original version was faster)
13044         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
13045           alignment != Left
13046         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
13047           call it as well
13048
13049 2005-06-27  Jackson Harper  <jackson@ximian.com>
13050
13051         * TabControl.cs: Move to the left and right with the arrow
13052         keys. These keys don't cycle beyond first and last like
13053         tab. Refresh all the tabs when scrolling them to the left or
13054         right.
13055
13056 2005-06-27  Jackson Harper  <jackson@ximian.com>
13057
13058         * TabControl.cs:
13059           - ToString: Added method
13060           - CreateParams: Remove TODO and comment
13061           - OnKeyDown: Cycle through bounds properly.
13062           - SelectedIndex: Scroll to the right or left if we need to
13063           display the newly selected tab.
13064
13065 2005-06-23  Jackson Harper  <jackson@ximian.com>
13066
13067         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
13068         set.
13069
13070 2005-06-23  Jackson Harper  <jackson@ximian.com>
13071
13072         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
13073         CTRL-SHIFT-TAB, and HOME, END are there any others?
13074
13075 2005-06-23  Jackson Harper  <jackson@ximian.com>
13076
13077         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
13078
13079 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13080         
13081         * DataGridTextBoxColumn.cs: fixes and enhancements
13082         * ThemeWin32Classic.cs: fixes and enhancements
13083         * DataGridBoolColumn.cs:  fixes and enhancements
13084         * DataGridDrawingLogic.cs:  fixes and enhancements
13085         * CurrencyManager.cs: fixes and enhancements
13086         * DataGrid.cs: fixes and enhancements
13087         * DataGridColumnStyle.cs:  fixes and enhancements
13088
13089 2005-06-22  Jackson Harper  <jackson@ximian.com>
13090
13091         * TabControl.cs: Add some missing methods that just call into the
13092         base. Make the TabPageCollection's IList interface behave in the
13093         same manner as the MS implementation.
13094
13095 2005-06-22  Peter Bartok  <pbartok@novell.com> 
13096
13097         * TextControl.cs: Added sanity check
13098         * TextBoxBase.cs: 
13099           - Fixed wrapping behaviour, don't set wrap on single line controls
13100             (this fixes the breakage of colordialog introduced in an earlier
13101              checkin)
13102           - Added rudimentary support for autoscrolling right-aligned controls
13103             (still needs fixing, also, center alignment scroll is missing)
13104
13105 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
13106         
13107         * ScrollBar.cs: Fixes thumbpos on Maximum values
13108
13109 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
13110         
13111         * PropertyGridView.cs: Pass context information to UITypeEditors 
13112
13113 2005-06-21  Peter Bartok  <pbartok@novell.com> 
13114
13115         * TextBoxBase.cs:
13116           - Now calling PositionCaret with absolute space coordinates
13117           - Enabled vertical scrolling
13118           - Better tracking of scrollbar changes, tied into WidthChange
13119             event
13120           - Improved cursor tracking
13121           - Removed debug output
13122         * TextControl.cs:
13123           - PositionCaret coordinates are now works in absolute space, not 
13124             the canvas
13125           - Improved tracking of document size
13126           - Added events for width and height changes
13127
13128 2005-06-21  Peter Bartok  <pbartok@novell.com>
13129
13130         * Form.cs: Set focus to active control when form is activated
13131         * TextControl.cs: 
13132           - Added word-wrap functionality to RecalculateLine() 
13133           - Added some short function descriptions for VS.Net to aid in
13134             writing dependent controls
13135           - Added Caret property, returning the current coords of the caret
13136           - Added ViewPortWidth and ViewPortHeight properties
13137           - Added Wrap property
13138           - Added CaretMoved event
13139           - Removed some old debug code
13140           - Split() can now create soft splits
13141           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
13142           - Added method to format existing text
13143           - Fixed size/alignment calculations to use viewport
13144           - RecalculateDocument now can handle changing line-numbers while
13145             calculating lines
13146
13147         * TextBox.cs:
13148           - Added some wrap logic, we don't wrap if alignment is not left
13149           - Added casts for scrollbar var, base class switched types to
13150             also support RichTextBoxA
13151           - Implemented handling of scrollbar visibility flags
13152
13153         * TextBoxBase.cs:
13154           - Switched scrollbars type to RichTextBoxScrollBars to support
13155             RichTextBox
13156           - Added tracking of canvas width/height
13157           - Switched scrollbars to be not selectable (to keep focus on text)
13158           - Added central CalculateDocument() method to handle all redraw
13159             requirements
13160           - Added ReadOnly support
13161           - Added WordWrap support
13162           - Fixed handling of Enter key (we now treat it as a DialogKey)
13163           - Fixed caret positioning when h or v scroll is not zero
13164           - Fixed placing/generation of vertical scrollbar
13165           - Added CalculateScrollBars() method to allow updating scrollbar
13166             limits and visibility
13167           - Fixed handling of horizontal scroll
13168           - Added handling of vertical scroll
13169           - Implemented auto-'jump' when caret moves to close to a left or
13170             right border and there is text to be scrolled into view (currently
13171             there's the potential for a stack overflow, until a bug in
13172             scrollbar is fixed)
13173
13174 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
13175         
13176         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
13177
13178 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
13179
13180         * Mime.cs:
13181         - added inodes.
13182         - return application/x-zerosize for files with size zero
13183           (if no extension pattern matches).
13184         - check matches collection for strings too.
13185         - return only the first mime type if the name value
13186           collection has more than one mime type.
13187
13188 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
13189         
13190         * PropertyGrid.cs: Cleaned up some TODOs
13191         * PropertyGridView.cs: Added support for UITypeEditors
13192
13193 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13194         
13195         * DataGrid.cs: clears cached value
13196
13197 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
13198
13199         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
13200         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
13201         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
13202         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
13203         
13204 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
13205
13206         * ThemeWin32Classic.cs: fixes colour
13207
13208 2005-06-15  Peter Bartok  <pbartok@novell.com>
13209
13210         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
13211         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
13212         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
13213         * Control.cs: Added some MWFCategory and MWFDescription attributes
13214         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
13215
13216 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
13217
13218         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
13219         usage
13220
13221 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
13222
13223         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
13224         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
13225         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
13226         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
13227         * DataGrid.cs: default datagrid settings for Default Styles, fixes
13228         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
13229
13230 2005-06-13  Jackson Harper  <jackson@ximian.com>
13231
13232         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
13233         isn't printed when the user enables dropping. (X11 does accept
13234         drops).
13235         
13236 2005-06-13  Jackson Harper  <jackson@ximian.com>
13237
13238         * TreeView.cs: Remove some TODOS.
13239
13240 2005-06-13  Jackson Harper  <jackson@ximian.com>
13241
13242         * Form.cs: Hook into the mdi framework.
13243         * MdiClient.cs: Use the base control collections add method so
13244         parents get setup correctly. Set the default back colour and dock
13245         style.
13246         * MdiChildContext.cs: New class, this bad actor handles an
13247         instance of an MDI window. Right now there is only basic
13248         support. You can drag, close, and resize windows. Minimize and
13249         Maximize are partially implemented.
13250
13251 2005-06-13  Jackson Harper  <jackson@ximian.com>
13252
13253         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
13254         freaky when both vals are negative. NOTE: There are probably other
13255         places in XplatUIX11 that this needs to be done.
13256
13257 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
13258
13259         * DataGrid.cs: implement missing methods, move KeyboardNavigation
13260         * DataGridColumnStyle.cs: fixes signature
13261
13262 2005-06-12  Jackson Harper  <jackson@ximian.com>
13263
13264         * XplatUIX11.cs: Use sizing cursors similar to the ones on
13265         windows.
13266
13267 2005-06-11  Jackson Harper  <jackson@ximian.com>
13268
13269         * StatusBarPanel.cs: Signature cleanups. Implement
13270         BeginInit/EndInit.
13271
13272 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
13273
13274         * DataGridTextBoxColumn.cs: Honors aligment
13275         * GridColumnStylesCollection.cs: Contains is case unsensitive
13276         * GridTableStylesCollection.cs: several fixes
13277         * DataGridTableStyle.cs: default column creation
13278         * DataGridDrawingLogic.cs: fixes
13279         * CurrencyManager.cs: ListName property
13280         * DataGrid.cs: multiple styles support
13281         * DataGridColumnStyle.cs: fixes
13282         
13283
13284 2005-06-10  Peter Bartok  <pbartok@novell.com>
13285
13286         * Control.cs(Select): Moved SetFocus call to avoid potential
13287           loops if controls change the active control when getting focus
13288         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
13289           the up/down buttons
13290
13291 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
13292
13293         * ImageListConverter.cs: Implemented
13294
13295 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13296
13297         * MonthCalendar.cs: Wired in NumericUpDown control for year
13298
13299 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
13300
13301         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
13302           DoubleClick events, since they are not meant to be fired.
13303
13304 2005-06-09  Peter Bartok  <pbartok@novell.com>
13305
13306         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
13307           Jonathan's standalone controls into MWF, implemented missing
13308           events, attributes and methods; added xxxAccessible classes
13309         * AccessibleObject.cs: Made fields internal so other classes
13310           can change them if needed
13311
13312 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
13313
13314         * UpDownBase.cs: Complete implementation
13315         * NumericUpDown.cs: Complete implementation
13316         * DomainUpDown.cs: Complete implementation
13317
13318 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
13319
13320         * DataGridTextBoxColumn.cs: drawing fixes
13321         * DataGridCell.cs: fixes ToString method to match MSNet
13322         * DataGridTableStyle.cs: fixes
13323         * DataGridBoolColumn.cs: fixes, drawing
13324         * DataGridDrawingLogic.cs: fixes, new methods
13325         * DataGridTextBox.cs: Keyboard and fixes
13326         * DataGrid.cs:
13327                 - Keyboard navigation
13328                 - Scrolling fixes
13329                 - Row selection (single, multiple, deletion, etc)
13330                 - Lots of fixes
13331         
13332 2005-06-07  Jackson Harper  <jackson@ximian.com>
13333
13334         * ThemeWin32Classic.cs: Clear the background area when drawing
13335         buttons.
13336
13337 2005-06-06  Peter Bartok  <pbartok@novell.com>
13338
13339         * ImageListStreamer.cs: Fixed signature for GetData
13340         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
13341         * ComboBox.cs:
13342           - Added missing ChildAccessibleObject class
13343           - Added missing OnXXXFocus overrides, switched to using those
13344             instead of the event handler
13345         * Control.cs:
13346           - Added Parent property for ControlAccessibleObject
13347           - Fixed signatures
13348           - Fixed attributes
13349           - Added ResetBindings()
13350         * ListBindingConverter.cs: Implemented some methods
13351         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
13352         * ImageList.cs: Implemented basic handle scheme, removed TODOs
13353         * ContainerControl.cs: Fixed signature, now subscribing to the
13354           ControlRemoved event instead of overriding the handler, LAMESPEC
13355         * CurrencyManager.cs: Added missing attribute
13356         * MonthCalendar.cs: Added missing properties
13357
13358 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13359
13360         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
13361         
13362 2005-06-06  Gaurav Vaish and Ankit Jain
13363
13364         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
13365         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
13366         
13367 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13368
13369         * Control.cs: fixes CreateParams Width / Height.
13370
13371 2005-06-05  Peter Bartok  <pbartok@novell.com>
13372
13373         * Win32DnD.cs: Removed compilation warnings
13374
13375 2005-06-05  Peter Bartok  <pbartok@novell.com>
13376
13377         * Control.cs (CreateParams): Since we don't know if one of the
13378           properties we use is overridden, lets make sure if we fail accessing
13379           we continue with a backup plan
13380
13381 2005-06-05  Peter Bartok  <pbartok@novell.com>
13382
13383         * Win32DnD.cs:
13384           - Removed debug output
13385           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
13386             struct
13387           - Plugged resource leak
13388         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
13389           MS size
13390
13391 2005-06-05  Peter Bartok  <pbartok@novell.com>
13392
13393         * XplatUIWin32.cs: Removed DnD code
13394         * Win32DnD.cs: Implemented drop source and drop target functionality
13395
13396 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13397
13398         * UpDownBase.cs: remove duplicate addition of event, enable some code
13399         that was commented out.
13400         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
13401         Validate input when a key is pressed. It works fine now for every
13402         combination of Hexadecimal. Only missing some drawing love when sharing
13403         space with other controls.
13404
13405 2005-06-04  Peter Bartok  <pbartok@novell.com>
13406
13407         * Control.cs:
13408           - We need to pass a window for DragDrop, so enable callback events
13409           - Added DnD callback events when being a DragSource
13410         * XplatUI.cs (StartDrag): Added window handle argument
13411         * XplatUIDriver.cs (StartDrag): Added window handle argument
13412         * QueryContinueDragEventArgs: Made fields internally accessible so
13413           drivers can set them
13414         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
13415           can set them
13416
13417 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
13418
13419         * DataGridTextBoxColumn.cs: column text editing
13420         * DataGridTableStyle.cs: Respect columns styles created by the user
13421         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
13422         * DataGridBoolColumn.cs: bool column editing
13423         * DataGrid.cs: fixes to scrolling, properties, etc
13424         * DataGridTextBox.cs: handle keyboard
13425         * DataGridColumnStyle.cs: fixes
13426
13427 2005-06-02  Jackson Harper  <jackson@ximian.com>
13428
13429         * ImageListStreamer.cs: Somewhat broken implementation of
13430         GetObjectData. The RLE needs some work to match MS properly.
13431
13432 2005-06-02  Jackson Harper  <jackson@ximian.com>
13433
13434         * X11Dnd.cs: Attempting to keep at least one file in MWF
13435         monostyled.
13436
13437 2005-06-02  Peter Bartok  <pbartok@novell.com>
13438
13439         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
13440           that way
13441
13442 2005-06-02  Peter Bartok  <pbartok@novell.com>
13443
13444         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
13445         * XplatUI.cs: Added DoDragDrop() method
13446         * XplatUIDriver.cs: Added DoDragDrop() method
13447
13448 2005-06-02  Jackson Harper  <jackson@ximian.com>
13449
13450         * Splitter.cs: Implement BorderStyle.
13451
13452 2005-06-02  Jackson Harper  <jackson@ximian.com>
13453
13454         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
13455         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
13456         X11 using XDND.
13457
13458 2005-06-02  Peter Bartok  <pbartok@novell.com>
13459
13460         * DataObject.cs:
13461           - Added Data setter
13462           - Fixed broken insertion code for SetData, now also
13463             overwrites any existing entry of the same format name
13464         * Hwnd.cs: Added list of pointers that automatically gets
13465           freed when the window is disposed
13466         * XplatUI.cs: Call driver initialization method when loading
13467           a driver
13468         * Control.cs:
13469           - OnDragLeave takes EventArgs, not DragEventArgs
13470           - Added setting of WS_EX_ACCEPTFILES style when dropping is
13471             supported
13472           - Forces style update when drop state changes
13473         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
13474           not perfect since we cannot (yet) call the IDataObject.GetData()
13475           method, we keep getting 0x80004005 error, dunno why)
13476
13477 2005-06-02  Peter Bartok  <pbartok@novell.com>
13478
13479         * DragEventArgs.cs: Make fields internal so we can cache the
13480           object and re-set the fields from XplatUI
13481
13482 2005-06-02  Jackson Harper  <jackson@ximian.com>
13483
13484         * Control.cs: Add some internal methods so the DnD subsystem can
13485         raise DnD events. Also call into the driver when AllowDrop is set.
13486         * XplatUI.cs:
13487         * XplatUIDriver.cs: New method for setting whether or not a window
13488         is allowed to accept drag and drop messages.
13489                 
13490 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
13491         
13492         * ScrollBar.cs: Make sure that values sent in Scroll events
13493         are always between Maximum and Minimum.
13494
13495 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
13496
13497         * Menu.cs: Call MenuChanged when menuitem visibility has been
13498         changed.
13499         * MenuItem.cs: Rebuild menu when item is (not) visible.
13500         * MainMenu.cs: MainMenu has special MenuChanged.
13501         * Theme.cs: Caption and FrameBorderSize are not fixed.
13502         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
13503         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
13504         * XplatUIX11.cs,
13505         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
13506         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
13507
13508 2005-05-30  Jackson Harper  <jackson@ximian.com>
13509
13510         * DataFormat.cs: We can't statically initialize this stuff because
13511         it calls into the xplatui and could create a loop. So we lazy init
13512         it.
13513
13514 2005-05-28  Jackson Harper  <jackson@ximian.com>
13515
13516         * Control.cs: Proper implementation of Product(Name/Version).
13517
13518 2005-05-27  Jackson Harper  <jackson@ximian.com>
13519
13520         * DataObject.cs: Dont crash if no data is found.
13521
13522 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
13523         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
13524                 as per status page, guessing it should be set to true
13525
13526 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
13527
13528         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
13529         * DataGridTableStyle.cs: set proper formatting text, def header text
13530         * ThemeWin32Classic.cs: new themable paramaters
13531         * DataGridBoolColumn.cs: paint check box, get data, fixes
13532         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
13533         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
13534         * DataGridColumnStyle.cs: fixes
13535         * Theme.cs: new themable paramaters
13536                 
13537 2005-05-26  Peter Bartok  <pbartok@novell.com>
13538
13539         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
13540
13541 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13542         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
13543
13544 2005-05-24  Peter Bartok  <pbartok@novell.com>
13545
13546         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
13547           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
13548           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
13549           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
13550           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
13551           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
13552           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
13553           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
13554           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
13555           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
13556           missing attributes, etc
13557         * DataGridPreferredColumnWidthTypeConverter.cs: Added
13558
13559 2005-05-24  Peter Bartok  <pbartok@novell.com>
13560
13561         * Help.cs: Added, implemented trivial functions, throws up MessageBox
13562           when user tries to get help
13563         * DataObject.cs, DataFormats.cs, LinkArea.cs,
13564           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
13565           to suppress warnings
13566         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
13567           avoid unreachable code warning
13568
13569 2005-05-20  Peter Bartok  <pbartok@novell.com>
13570
13571         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
13572
13573 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13574
13575         * DataGridTextBoxColumn.cs: Basic painting methods
13576         * DataGridTableStyle.cs: Set table style in the column
13577         * ThemeWin32Classic.cs: Use Theme for colors
13578         * DataGridDrawingLogic.cs: Implement more drawing
13579         * DataGrid.cs: drawing, theming, enhacements, fixes
13580         * DataGridColumnStyle.cs: fixes, drawing
13581         * Theme.cs: theming for Datagrid
13582
13583 2005-05-20  Peter Bartok  <pbartok@novell.com>
13584
13585         * Cursor.cs: Implemented GetObjectData() method
13586
13587 2005-05-20  Peter Bartok  <pbartok@novell.com>
13588
13589         * Cursors.cs: Added setting of cursor name
13590         * Cursor.cs:
13591           - Implemented constructors
13592           - Implemented Draw and DrawStretched
13593           - Implemented Current property
13594           - Implemented == and != operators
13595           - Implemented Dispose()
13596           - Implemented ToString
13597           - Added missing attributes
13598         * XplatUIX11.cs:
13599           - Added missing reset for OverrideCursor when DoEvents is called
13600           - Fixed creation of cursor, logic was wrong
13601         * XplatUIWin32.cs:
13602           - Added missing reset for OverrideCursor when DoEvents is called
13603           - Fixed creation of cursor, bit arrays were swapped
13604         * Clipboard.cs: Removed obsolete MonoTODO attribute
13605
13606 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13607
13608         * ComboBox.cs: fixes OnSelectedItemChanged
13609         * ControlBindingsCollection.cs: fixes item range check
13610
13611 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13612
13613         * UpDownBase.cs:
13614                 - Calc preferred height properly
13615                 - Implement missing properties
13616                 
13617         * NumericUpDown.cs: Implement missing events
13618
13619 2005-05-19  Jackson Harper  <jackson@ximian.com>
13620
13621         * TabControl.cs: New method that resizes the tab pages before
13622         redrawing them. This as needed as the control is double buffered
13623         and sizing will not be recalculated unless ResizeTabPages is
13624         called.
13625         * TabPage.cs: Set base.Text instead of Text in the constructor so
13626         that UpdateOwner does not get called. Use the new Redraw method of
13627         TabControl instead of Refresh so the sizing is recalculated.
13628         * ThemeWin32Classic.cs: Draw the text for button tabs.
13629
13630 2005-05-19  Jackson Harper  <jackson@ximian.com>
13631
13632         * Control.cs: Paint control background images. Fix typo where
13633         PaintControlBackground was not getting called correctly.
13634
13635 2005-05-19  Peter Bartok  <pbartok@novell.com>
13636
13637         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
13638           I can investigate, apparently I broke FileDialog
13639
13640 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
13641
13642         * AxHost.cs: Some simple properties.
13643         * Control.cs: window must be accessible after ctor.
13644         * Form.cs: Added TransparencyKey property.
13645         * TextBoxBase.cs: Implemented Clear. Text property can be null.
13646         * XplatUIWin32.cs: SetBorderStyle implemented.
13647
13648 2005-05-18  Peter Bartok  <pbartok@novell.com>
13649
13650         * DataObject.cs: Entries are not global but particular to the
13651           DataObject, now it behaves that way
13652         * XplatUIWin32.cs: Implemented Clipboard methods
13653         * Clipboard.cs: Implemented
13654         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
13655         * XplatUIOSX.cs: Updated to final clipboard prototypes
13656         * XplatUIX11.cs: Implemented Clipboard methods
13657         * XplatUIDriver.cs: Updated to final clipboard prototypes
13658         * XplatUIStructs.cs:
13659           - Added BITMAPINFOHEADER struct
13660           - Added ClipboardFormats enum
13661         * X11Structs.cs:
13662           - Added ClipboardStruct
13663           - Added Atom enum items for clipboard types
13664           - Fixed atom types for Selection event structures
13665         * DataFormats.cs:
13666           - Added internal properties and methods for drivers to enumerate
13667             all known formats
13668           - Switched initialization method to allow drivers to assign their
13669             own IDs even for the MS predefined clipboard IDs
13670         * XplatUI.cs: Updated to final clipboard interface
13671
13672 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13673         * PropertyGridView.cs: Fixed compiler warnings.
13674
13675 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13676         * PropertyGrid.cs: Added some event calls
13677         * PropertyGridView.cs: Change drawing code to use double buffering
13678         * PropertyGridTextBox.cs: Changed Text property name
13679         * GridItem.cs: Added Bounds property.
13680         * GridEntry.cs: Added Bounds property.
13681
13682 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
13683
13684         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
13685         since GetType() may not return the correct type if the object is
13686         a remoting proxy.
13687
13688 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
13689
13690         * TreeNodeCollection.cs: fixes get/set item ranges
13691         
13692 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
13693
13694         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
13695                 
13696 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
13697
13698         * ComboBox.cs: Fix item range comparation
13699         * ListView.cs: Fix item range comparation
13700
13701 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
13702
13703         * FontDialog.cs:
13704           - Clear example panel when OnPaint is called
13705           - Better solution for displaying the example panel text
13706           - Select default indexes in the ListBoxes
13707
13708 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
13709
13710         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
13711
13712 2005-05-11  Peter Bartok  <pbartok@novell.com>
13713
13714         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
13715         * SelectionRangeConverter.cs: Implemented
13716         * PropertyGrid.cs: Fixed attribute value
13717         * Control.cs:
13718           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
13719           - Added Sebastien Pouliot's CAS Stack Propagation fixes
13720         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
13721           that's common to all drivers. First methods to go there are
13722           Sebastien Pouliot's CAS Stack Propagation helper methods
13723         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
13724           Sebastien Pouliot for CAS Stack Propagation
13725
13726 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
13727
13728         * OSXStructs.cs:
13729           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
13730
13731 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
13732
13733         * DataGridTextBoxColumn.cs: fixed some members
13734         * GridColumnStylesCollection.cs: indexed column is case insensitive
13735         * DataGridTableStyle.cs: fixes
13736         * ThemeWin32Classic.cs: add new theme parameter
13737         * Theme.cs: add new theme parameter
13738         * DataGridDrawingLogic.cs: Datagrid's drawing logic
13739         * DataGrid.cs: fixes, new internal properties, etc.
13740         * DataGridColumnStyle.cs: allows to set grid value
13741         *
13742
13743 2005-05-10  Peter Bartok  <pbartok@novell.com>
13744
13745         * AccessibleObject.cs:
13746           - Removed MonoTODO attribute on help, method is correct
13747           - Fixed Bounds property
13748         * AxHost.cs: Moved MonoTODO
13749         * ButtonBase.cs: Now setting AccessibleObject properties
13750         * RadioButton.cs: Setting proper AccessibleObject role
13751         * CheckBox.cs: Setting proper AccessibleObject role
13752         * ControlBindingsCollection.cs: Added properties, methods and attributes
13753         * DataFormats.cs: Fixed awkward internal API, and changed to enable
13754           userdefined DataFormats.Format items as well
13755         * ListControl.cs: Removed data_member from the public eye
13756         * OpenFileDialog.cs:
13757           - Made class sealed
13758           - Added missing attributes
13759         * SaveFileDialog.cs: Added missing attributes
13760         * ImageListStreamer.cs: Fixed code that caused warnings
13761         * LinkLabel.cs: Removed unreachable code
13762         * TreeView.cs: Fixed code that caused warnings
13763         * PropertyGridView.cs: Fixed code that caused warnings
13764         * GridColumnStylesCollection.cs: Added missing attributes
13765         * GridTableStylesCollection: Added missing attribute
13766         * PropertyManager: Added .ctor
13767         * SecurityIDType: Added
13768         * DataObject.cs: Implemented class
13769         * LinkArea.cs: Added missing attribute
13770
13771 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
13772
13773         * RadioButton.cs: call base method to allow to fire OnClick event
13774         * UpDownBase.cs: OnMouseUp call base method
13775         * CheckedListBox.cs: call base method before returning
13776         * TrackBar.cs: call base method before returning
13777         
13778
13779 2005-05-10  Peter Bartok  <pbartok@novell.com>
13780
13781         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
13782           for messages
13783
13784 2005-05-10  Peter Bartok  <pbartok@novell.com>
13785
13786         * DataFormats.cs: Implemented
13787         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
13788           XplatUIX11.cs: Added Clipboard APIs
13789         * XplatUIWin32.cs: Implemented Clipboard APIs
13790         * FolderBrowserDialog.cs: Added missing event, attributes
13791
13792 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
13793
13794         * CheckBox.cs: call base method to allow to fire OnClick event
13795
13796 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
13797
13798         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
13799
13800 2005-05-06  Peter Bartok  <pbartok@novell.com>
13801
13802         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
13803         * Screen.cs: Implemented
13804         * HelpNavigator.cs: Added
13805         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
13806           property
13807         * HelpProvider.cs: Implemented all we can do until we have a CHM
13808           help library (which means that "What's This" does work now)
13809
13810 2005-05-06  Jackson Harper  <jackson@ximian.com>
13811
13812         * XplatUIX11.cs: Fix waking up the main loop.
13813                 
13814 2005-05-05  Peter Bartok  <pbartok@novell.com>
13815
13816         * XplatUI.cs: Updated revision
13817         * Form.cs: Removed enless loop
13818         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
13819         * Label.cs (OnPaint): Added call to base.OnPaint()
13820         * ToolTip.cs: Made ToolTipWindow reusable for other controls
13821         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
13822         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
13823         * AxHost.cs: Added
13824         * ButtonBase.cs: Moved base.OnPaint() call to end of method
13825         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
13826           to ToolTip.ToolTipWindow for drawing and size methods; this allows
13827           reuse of ToolTipWindow by other controls
13828         * SizeGrip.cs: Moved base.OnPaint() call to end of method
13829         * XplatUIX11.cs: Now clipping drawing area (experimental)
13830         * PictureBox.cs: Moved base.OnPaint() call to end of method
13831         * Theme.cs: Fixed ToolTip abstracts to match new format
13832         * ErrorProvider.cs: Implemented
13833
13834 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
13835
13836         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
13837         * LinkLabel.cs:
13838                 - Adds cursors
13839                 - Handles focus
13840                 - Implements LinkBehavior
13841                 - Fixes many issues
13842
13843 2005-05-03  Jackson Harper  <jackson@ximian.com>
13844
13845         * ListView.cs: Calculate the scrollbar positioning on resize and
13846         paint, so they get put in the correct place.
13847
13848 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
13849
13850         * ColorDialogs.cs: The small color panels are now handled by
13851           SmallColorControl. This fixes drawing of the focus rectangle
13852           and adds a 3D border.
13853
13854 2005-05-03  Peter Bartok  <pbartok@novell.com>
13855
13856         * Control.cs: Modified version of Jonathan Chamber's fix for
13857           double-buffering
13858
13859 2005-05-03  Jackson Harper  <jackson@ximian.com>
13860
13861         * ListView.cs: Remove redraw variable. Control now handles whether
13862         or not a redraw needs to be done, and will only raise the paint
13863         event if redrawing is needed.
13864
13865 2005-05-03  Jackson Harper  <jackson@ximian.com>
13866
13867         * Splitter.cs: No decorations for the splitter form. Cache the
13868         hatch brush.
13869
13870 2005-05-03  Jackson Harper  <jackson@ximian.com>
13871
13872         * TreeView.cs: Use dashed lines to connect nodes. Use the
13873         ControlPaint method for drawing the focus rect instead of doing
13874         that in treeview.
13875
13876 2005-05-02  Peter Bartok  <pbartok@novell.com>
13877
13878         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
13879
13880 2005-04-29  Jackson Harper  <jackson@ximian.com>
13881
13882         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
13883         entire image buffer. Just clear the clipping rectangle.
13884
13885 2005-04-29  Jackson Harper  <jackson@ximian.com>
13886
13887         * ThemeWin32Classic.cs: Don't draw list view items that are
13888         outside the clipping rectangle.
13889
13890 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
13891
13892         * ListBox.cs: added horizontal item scroll
13893
13894 2005-04-29  Jackson Harper  <jackson@ximian.com>
13895
13896         * ThemeWin32Classic.cs: Remove some old debug code that was
13897         causing flicker with the new double buffering code.
13898
13899 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
13900
13901         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
13902         behave like combobox and comboboxlist (still not sure if this is
13903         correct though).
13904
13905 2005-04-28  Jackson Harper  <jackson@ximian.com>
13906
13907         * ThemeWin32Classic.cs: Don't fill the middle of progress
13908         bars. This fills areas outside of the clip bounds that don't need
13909         to be filled.
13910
13911 2005-04-28  Jackson Harper  <jackson@ximian.com>
13912
13913         * Control.cs: Don't expose functionality to touch the image buffers.
13914         * ProgressBar.cs:
13915         * ListView.cs: We do not need to (and no longer can) manipulate
13916         the image buffers directly. All of this is handled by Control.
13917
13918 2005-04-28  Peter Bartok  <pbartok@novell.com>
13919
13920         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
13921           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
13922           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
13923
13924 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
13925
13926         * Combobox:
13927                 - Adjust control's height for non-simple comboboxes (bug fix)
13928                 - Remove dead code
13929         * MenuAPI.cs: remove unused var
13930         * ScrollBar.cs: remove unsed var
13931                  
13932         * ListBox.cs: unselect items when clearing
13933
13934 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
13935
13936         * ListControl.cs: honors OnPositionChanged and default Selected Item
13937         * ListBox.cs: unselect items when clearing
13938
13939 2005-04-27  Jackson Harper  <jackson@ximian.com>
13940
13941         * X11Keyboard.cs: Initialize a default keyboard and give a warning
13942         if a "correct" keyboard is not found. This will make us not crash,
13943         but might give some users bad keyboard layouts...seems to be the
13944         same thing rewind does.
13945
13946 2005-04-27  Jackson Harper  <jackson@ximian.com>
13947
13948         * BindingManagerBase.cs: Attach the current/position changed
13949         handlers to their respective events.
13950
13951 2005-04-27  Jackson Harper  <jackson@ximian.com>
13952
13953         * Control.cs: Make sure that the first WM_PAINT does a full draw,
13954         not just a blit.
13955         * ThemeWin32Classic.cs: Don't fill the background for picture
13956         boxes. This could overright user drawing.
13957         * ComboBox.cs: Just fill the clipping rect not the entire client
13958         rect when drawing the background. This prevents pieces of the
13959         image buffer from getting overwritten and is theoretically faster.
13960
13961 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
13962
13963         * ComboBox.cs: Databinding support fixes, fire missing events
13964         * ListControl.cs: implement missing methods and properties, fixes
13965         * ThemeWin32Classic.cs: Databiding support on Drawing
13966         * CheckedListBox.cs: Databinding support fixes, fire missing events
13967         * ListBox.cs: Databinding support fixes, fire missing events
13968         
13969 2005-04-25  Peter Bartok  <pbartok@novell.com>
13970
13971         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
13972
13973 2005-04-25  Jackson Harper  <jackson@ximian.com>
13974
13975         * TreeView.cs: Use the horizontal scrollbars height not width when
13976         determining how much of the client area is available.
13977
13978 2005-04-25  Jackson Harper  <jackson@ximian.com>
13979
13980         * Control.cs: Double buffering is handled differently now. As per
13981         the spec, the extra buffer is created in the WM_PAINT message and
13982         passed down to the control's drawing code.
13983         * GroupBox.cs:
13984         * Label.cs:
13985         * CheckBox.cs:
13986         * ProgressBar.cs:
13987         * RadioButton.cs:
13988         * ColorDialog.cs:
13989         * ComboBox.cs:
13990         * PropertyGridView.cs:
13991         * UpDownBase.cs:
13992         * MessageBox.cs:
13993         * MenuAPI.cs:
13994         * ListView.cs:
13995         * ButtonBase.cs:
13996         * SizeGrip.cs:
13997         * ScrollBar.cs:
13998         * ListBox.cs:
13999         * TrackBar.cs:
14000         * ToolBar.cs:
14001         * PictureBox.cs:
14002         * DateTimePicker.cs:
14003         * StatusBar.cs:
14004         * TreeView.cs: Update to new double buffering system.
14005         * MonthCalendar.cs: Uncomment block, as Capture is now
14006         working. Update to new double buffering
14007         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
14008         * PaintEventArgs.cs: New internal method allows us to set the
14009         graphics object. This is used for double buffering.
14010         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
14011         rectangle. The internal paint_area var has been removed from
14012         StatusBar. The clipping rect should be used instead.
14013         * Theme.cs: Give the PictureBox drawing method a clipping rect.
14014         * TabPage.cs: The RefreshTabs method was removed, so just call the
14015         tab controls Refresh method now.
14016         * TabControl.cs: Update to new double buffering. Make sure the
14017         handle is created before sizing the tab pages, otherwise we will
14018         get stuck in a loop.
14019
14020 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
14021
14022         * LinkLabel.cs: Fix typo, bug #74719; patch
14023           from Borja Sanchez Zamorano
14024
14025 2005-04-22  Jackson Harper  <jackson@ximian.com>
14026
14027         * TreeNode.cs: Implement Handle stuff.
14028         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
14029
14030 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
14031
14032         * DataGridTextBoxColumn.cs: call base constructors, fixes
14033         * GridColumnStylesCollection.cs: missing events, methods, and functionality
14034         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
14035         * DataGridTableStyle.cs: implements create default column styles
14036         * DataGridBoolColumn.cs: which types can handle
14037         * DataGrid.cs: missing methods, fixes, new functionality
14038         * DataGridColumnStyle.cs: fixes
14039
14040 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
14041         * FolderBrowserDialog.cs:
14042         - Use a thread to fill the TreeView
14043         - Adjusted some sizes
14044
14045 2005-04-19  Peter Bartok  <pbartok@novell.com>
14046
14047         * LinkLabel.cs: (Re-)create the pieces when setting the Text
14048           property. Fixes #74360.
14049
14050 2005-04-19  Jackson Harper  <jackson@ximian.com>
14051
14052         * XEventQueue.cs: Lock when getting the lockqueue size.
14053         * PictureBox.cs: Call base OnPaint
14054         
14055 2005-04-19  Peter Bartok  <pbartok@novell.com>
14056
14057         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
14058           messages were no longer being processed (this broke BeginInvoke)
14059
14060           
14061 2005-04-18  Jackson Harper  <jackson@ximian.com>
14062
14063         * TreeView.cs: buglet that caused node images to get drawn
14064         regardless of whether or not they were in the clipping rectangle.
14065
14066 2005-04-18  Jackson Harper  <jackson@ximian.com>
14067
14068         * CurrencyManager.cs: There are four rules for GetItemProperties:
14069         - If the type is an array use the element type of the array
14070         - If the type is a typed list, use the type
14071         - If the list contains an Item property that is not an object, use
14072         that property
14073         - use the first element of the list if there are any elements in
14074         the list.
14075         
14076 2005-04-17  Jackson Harper  <jackson@ximian.oom>
14077
14078         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
14079         click. This handles offsets for scrolling properly and reduces
14080         memory. Also fixed GetNode to not offset now that TopNode works
14081         properly.
14082         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
14083         
14084 2005-04-17  Jackson Harper  <jackson@ximian.com>
14085
14086         * CursorConverter.cs: Initial implementation.
14087
14088 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14089
14090         * ListControl.cs: work towards complex data binding support on ListControl
14091         * CurrencyManager.cs: work towards complex data binding support on ListControl
14092         * ListBox.cs: work towards complex data binding support on ListControl
14093
14094
14095 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
14096
14097         * GridTableStylesCollection.cs: fixes name and constructor
14098         * DataGridTableStyle.cs: fixes
14099         * DataGridBoolColumn.cs: fixes names and constructors
14100         * DataGrid.cs: define methods and properties. Some init implementations
14101         * DataGridCell.cs: define methods and properties. Some init implementations
14102         * GridTablesFactory.cs: Define methods and properties
14103
14104 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
14105
14106         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
14107         graphics port changes.  We still want the coordinates in global screen
14108         coordinates.
14109
14110 2005-04-14  Jackson Harper  <jackson@ximian.com>
14111
14112         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
14113         check plus minus or checkbox clicks unless those features are enabled.
14114
14115 2005-04-14  Jackson Harper  <jackson@ximian.com>
14116
14117         * TreeView.cs: Add methods for setting the top and bottom visible
14118         nodes. TreeNode::EnsureVisible uses these methods.
14119         * TreeNode.cs: Implement EnsureVisible
14120
14121 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
14122
14123         * Form.cs: Pospone menu assignation if the window has not been created yet
14124         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
14125         size and position
14126
14127 2005-04-12  Jackson Harper  <jackson@ximian.com>
14128
14129         * TreeView.cs: Set the TopNode properly when scrolling
14130         occurs. This has the added benifit of reducing the amount of
14131         walking that needs to be done when drawing. Also removed an old
14132         misleading TODO.
14133         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
14134         
14135 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
14136
14137         * Timer.cs: fixes interval setting when the timer is already enabled
14138         
14139 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
14140
14141         * FolderBrowserDialog.cs: First approach
14142
14143 2005-04-09  Peter Bartok  <pbartok@novell.com>
14144
14145         * FolderBrowserDialog: Added
14146
14147 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
14148
14149         * LinkLabel.cs: move drawing code into the theme
14150         * ThemeWin32Classic.cs: drawing code and painting background bugfix
14151         * Theme.cs: define DrawLinkLabel method
14152
14153 2005-04-05  Jackson Harper  <jackson@ximian.com>
14154
14155         * BindingContext.cs: Use weak references so these bad actors don't
14156         stay alive longer then they need to.
14157
14158 2005-04-05  Jackson Harper  <jackson@ximian.com>
14159
14160         * ListControl.cs: Basic implementation of complex databinding.
14161         * ComboBox.cs:
14162         * ListBox.cs: Add calls to ListControl databinding methods.
14163
14164 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
14165
14166         * FileDialog.cs:
14167           - Don't change PopupButtonState to Normal when the
14168             PopupButton gets pressed several times.
14169           - Renamed ButtonPanel to PopupButtonPanel
14170
14171 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
14172
14173         * ColorDialog.cs: Use cached objects instead of creating them
14174         * LinkLabel.cs: Use cached objects instead of creating them
14175         * Splitter.cs: Use cached objects instead of creating them
14176         * FontDialog.cs: Use cached objects instead of creating them
14177         * PropertyGridView.cs: Use cached objects instead of creating them
14178         * MessageBox.cs: Use cached objects instead of creating them
14179         * FileDialog.cs: Use cached objects instead of creating them
14180         * ThemeWin32Classic.cs: Use cached objects instead of creating them
14181         * TreeView.cs: Use cached objects instead of creating them
14182         
14183 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
14184
14185         * Control.cs: use Equals to compare the font since no == op
14186         * ScrollBar.cs: use Equals to compare the font since no == op
14187
14188 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
14189
14190         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
14191
14192 2005-04-01  Jackson Harper  <jackson@ximian.com>
14193
14194         * Binding.cs: Implement IsBinding.
14195         * BindingManagerBase.cs:
14196         * PropertyManager.cs:
14197         * CurrencyManager.cs: Add IsSuspended property.
14198
14199 2005-04-01  Jackson Harper  <jackson@ximian.com>
14200
14201         * Binding.cs: Had some IsAssignableFrom calls backwards.
14202
14203 2005-04-01  Jackson Harper  <jackson@ximian.com>
14204
14205         * Binding.cs: Handle null data members when pulling data.
14206         * PropertyManager.cs: Handle the data member being a property that
14207         does not exist.
14208
14209 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14210
14211         * DataGridTextBoxColumn.cs: fixes signature
14212         * DataGrid.cs: calls right constructor
14213
14214 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
14215
14216         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
14217         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
14218         * GridTableStylesCollection.cs: implements GridTableStylesCollection
14219         * DataGridTableStyle.cs: implements DataGridTableStyle
14220         * DataGridBoolColumn.cs: implements DataGridBoolColumn
14221         * DataGridTextBox.cs: implements DataGridTextBox
14222         * DataGridColumnStyle.cs: implements DataGridColumnStyle
14223
14224 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
14225
14226         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
14227
14228 2005-03-29  Peter Bartok  <pbartok@novell.com>
14229
14230         * Application.cs:
14231           - Properly implemented CompanyName property
14232           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
14233             returns a path that includes CompanyName, ProductName and
14234             Version (fixes bug #70330)
14235
14236 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
14237
14238         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
14239           fixes bug #72588.
14240
14241 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14242
14243         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
14244         
14245           - Added ReadOnly CheckBox
14246           - Further refactoring: moved some code from Open-/SaveFileDialog
14247             to FileDialog
14248
14249 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
14250
14251         * OpenFileDialog.cs: Fixed CheckFileExists
14252         * FileDialog.cs:
14253           Moved FileView and DirComboBox outside FileDialog class.
14254           They can now be used outside FileDialog
14255
14256 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14257
14258         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
14259         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
14260
14261 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
14262
14263         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14264           - Added missing CreatePrompt property in SaveDialog
14265           - Overall SaveDialog handling should be better now
14266           - Added non standard ShowHiddenFiles property
14267           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
14268           - Added InitialDirectory and RestoreDirectory support
14269
14270 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
14271
14272         * FileDialog.cs: Made dirComboBox usable
14273
14274 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
14275
14276         * FileDialog.cs: Added Filter support (case sensitiv)
14277
14278 2005-03-24  Jackson Harper  <jackson@ximian.com>
14279
14280         * TabControl.cs: Need a couple more pixels for the lines.
14281
14282 2005-03-23  Jackson Harper  <jackson@ximian.com>
14283
14284         * TabControl.cs: Give the tab page focus when it is selected.
14285
14286 2005-03-23  Jackson Harper  <jackson@ximian.com>
14287
14288         * TabControl.cs: Account for the drawing of tabs borders when
14289         invalidating. If the slider was clicked dont do click detection on
14290         the tabs.
14291
14292 2005-03-23  Jackson Harper  <jackson@ximian.com>
14293
14294         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
14295
14296 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
14297
14298         * CategoryGridEntry.cs: Added
14299         * GridItem.cs: Added helper properties
14300         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
14301         * GridEntry.cs: Updated code for collection
14302         * PropertyGrid.cs: Cleaned up some formatting
14303         * PropertyGridView.cs: Added drop down functionality for enums.
14304         * GridItemCollection.cs: Added enumerator logic
14305         * PropertyGridEntry.cs: Added
14306
14307 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14308
14309         * FileDialog.cs:
14310           - Removed unnecessary commented code
14311           - Fixed handling for entering the filename manually in the combobox
14312
14313 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14314
14315         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
14316
14317 2005-03-18  Peter Bartok  <pbartok@novell.com>
14318
14319         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
14320           them being touching the border
14321
14322 2005-03-18  Peter Bartok  <pbartok@novell.com>
14323
14324         * TextControl.cs: Quick hack to center text better
14325
14326 2005-03-18  Peter Bartok  <pbartok@novell.com>
14327
14328         * ControlPaint.cs:
14329           - Don't throw NotImplemented exceptions, just print a notice once
14330             instead (requested by Miguel). This makes running existing SWF
14331             apps a bit easier
14332         * Control.cs:
14333           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
14334           - Added context menu trigger on right click
14335         * Panel.cs: Trigger invalidate on resize
14336         * StatusBar.cs:
14337           - Removed old double-buffer drawing
14338           - Added ResizeRedraw style to force proper update of statusbar
14339         * ListView.cs:
14340           - Removed debug output
14341         * ThemeWin32Classic.cs:
14342           - Fixed drawing of status bar, now draws Text property if there
14343             are no defined panels
14344
14345 2005-03-18  Jackson Harper  <jackson@ximian.com>
14346
14347         * ImageList.cs: When the image stream is set pull all the images
14348         from it.
14349         * ImageListStreamer.cs: Implement reading image list streams.
14350
14351 2005-03-18  Peter Bartok  <pbartok@novell.com>
14352
14353         * ThemeWin32Classic.cs (DrawPictureBox):
14354           - Fixed calculations for centered drawing
14355           - Fixed drawing for normal mode, not scaling the image on normal
14356
14357 2005-03-18  Peter Bartok  <pbartok@novell.com>
14358
14359         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
14360           textbox
14361         * FileDialog.cs:
14362           - Made Open/Save button the accept button for FileDialog
14363           - Tied the cancel button to the IButtonControl cancel button
14364           - Save/Open now properly builds the pathname
14365           - Now handles user-entered text
14366           - Preventing crash on right-click if no item is selected
14367           - Fixed Text property, now uses contents of textbox
14368           - Fixed SelectedText property, now just returns the text part that
14369             is selected in the text box
14370
14371 2005-03-18  Jackson Harper  <jackson@ximian.com>
14372
14373         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
14374         rect, make sure to de-adjust the interior rect after drawing the
14375         tab text.
14376
14377 2005-03-18  Peter Bartok  <pbartok@novell.com>
14378
14379         * MenuAPI.cs: Remove menu *before* executing selected action to
14380           prevent the menu from 'hanging around'
14381           
14382 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
14383
14384         * XplatUIOSX.cs: Implemented WorkingArea property
14385
14386 2005-03-17  Peter Bartok  <pbartok@novell.com>
14387
14388         * XplatUIX11.cs: Fixed menu coord calculations
14389         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
14390           for calculating offsets
14391
14392 2005-03-17  Peter Bartok  <pbartok@novell.com>
14393
14394         * Hwnd.cs: Do not consider menu presence for default client
14395           rectangle location/size
14396         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14397           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
14398           translation functions
14399         * FileDialog.cs: Fixed (what I presume is a) typo
14400
14401 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
14402
14403         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
14404           X access (avoids X-Async errors)
14405
14406 2005-03-16  Jackson Harper  <jackson@ximian.com>
14407
14408         * TabControl.cs: Raise the SelectedIndexChanged event.
14409
14410 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
14411
14412         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14413           - Removed vertical ToolBar and replaced it with a custom panel
14414             (desktop and home button already work)
14415           - Added Help button (some controls get resized or relocated then)
14416           - Draw correct text depending on Open or Save.
14417           - Fixed some typos...
14418
14419 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
14420
14421         * ScrollBar.cs:
14422           - Only change Maximum and Minimum when need it (bug fix)
14423
14424 2005-03-15  Peter Bartok  <pbartok@novell.com>
14425
14426         * Form.cs: Use Handle for icon, to trigger creation if
14427           the window does not yet exist
14428         * Control.cs:
14429           - CanSelect: Slight performance improvement
14430           - Focus(): Preventing possible recursion
14431           - Invalidate(): Removed ControlStyle based clear flag setting
14432           - WM_PAINT: fixed logic for calling OnPaintBackground
14433           - WM_ERASEBKGND: Fixed logic, added call to new driver method
14434             EraseWindowBackground if the control doesn't paint background
14435         * XplatUIWin32.cs:
14436           - Moved EraseWindowBackground() method to internal methods
14437           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
14438             is sent via SendMessage on BeginPaint call on Win32
14439         * XplatUIX11.cs:
14440           - Added EraseWindowBackground() method
14441           - No longer sends WM_ERASEBKGND on .Expose, but on call to
14442             PaintEventStart, which more closely matches Win32 behaviour
14443           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
14444           - Fixed SetFocus() to properly deal with client and whole windows
14445         * Hwnd.cs: Added ErasePending property
14446         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
14447         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
14448
14449 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
14450
14451         * XplatUIOSX.cs:
14452           - Fix hard loop when timers exist.
14453           - Fix bugs with middle and right click for 3 button mice.
14454
14455 2005-03-11  Peter Bartok  <pbartok@novell.com>
14456
14457         * XplatUIX11.cs:
14458           - get_WorkingArea: Need to call X directly, GetWindowPos only
14459             returns cached data now
14460           - Added sanity check to GetWindowPos hwnd usage
14461
14462 2005-03-11  Jackson Harper  <jackson@ximian.com>
14463
14464         * BindingManagerBase.cs: This method isn't used anymore as
14465         PullData now updates the data in the control.
14466
14467 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
14468
14469         * Form.cs: fixes menu drawing on X11
14470         * MenuAPI.cs:  fixes menu drawing on X11
14471
14472 2005-03-11  Peter Bartok  <pbartok@novell.com>
14473
14474         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
14475           from Jonathan Gilbert; should fix bug #73606
14476         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
14477           in Screen coordinates. Thanks, Jordi.
14478         * Form.cs: Added missing attribute
14479
14480 2005-03-11  Peter Bartok  <pbartok@novell.com>
14481
14482         * Form.cs:
14483           - Rudimentary Mdi support
14484           - Removed outdated FormParent code
14485           - Implemented lots of missing properties and methods, still missing
14486             transparency support
14487           - Added missing attributes
14488           - Implemented support for MaximumBounds
14489           - Added firing of various events
14490         * XplatUI.cs: Added SetIcon() method
14491         * XplatUIDriver.cs: Added SetIcon() abstract
14492         * XplatUIOSX.cs: Stubbed out SetIcon() method
14493         * XplatUIX11.cs:
14494           - Implemented SetIcon() support
14495           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
14496           - Switched to unix line endings
14497         * XplatUIWin32.cs:
14498           - Made POINT internal so for can access it as part of MINMAX
14499           - Implemented SetIcon() support
14500           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
14501             native Mdi support again, might have to go managed)
14502         * Control.cs: Now fires the StyleChanged event
14503         * MdiClient.cs: Added; still mostly empty
14504
14505 2005-03-10  Peter Bartok  <pbartok@novell.com>
14506
14507         * SaveFileDialog.cs: Added emtpy file
14508
14509 2005-03-08  Peter Bartok  <pbartok@novell.com>
14510
14511         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
14512           in turn triggers OnCreateContro) when creating a handle for the
14513           first time.
14514         * TextControl.cs: Fixed endless loop in certain cases when
14515           replacing the current selection
14516
14517 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
14518
14519         * ScrollBar.cs:
14520           - Honors NewValue changes in Scroll events allowing apps to change it
14521           - Adds First and Last Scroll events
14522           - Fixes Thumb events
14523
14524 2005-03-07  Peter Bartok  <pbartok@novell.com>
14525
14526         * Hwnd.cs: Added DefaultClientRectangle property
14527         * XplatUI.cs: Now using the X11 driver Where() method, which provides
14528           more detailed debug information
14529         * XplatUIX11.cs:
14530           - Fixed size-change feedback loop, where we would pull an old size
14531             off the queue and mistakenly change our window's size to an
14532             earlier value
14533           - Now compressing ConfigureNotify events, to reduce looping and
14534             redraw issues
14535         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
14536           is called
14537
14538 2005-03-07  Jackson Harper  <jackson@ximian.com>
14539
14540         * Binding.cs: Push data pushes from data -> property. Check if the
14541         property is readonly when attempting to set it.
14542
14543 2005-03-07  Jackson Harper  <jackson@ximian.com>
14544
14545         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
14546         instead of IsSubclassOf. Pulling data now sets the value on the
14547         control.
14548         * PropertyManager.cs:
14549         * CurrencyManager.cs: Just need to pull data when updating now,
14550         because PullData will set the value on the control.
14551
14552 2005-03-04  Jackson Harper  <jackson@ximian.com>
14553
14554         * Binding.cs: Implement data type parsing and converting on pulled
14555         data. TODO: Are there more ways the data can be converted?
14556
14557 2005-03-04  Jackson Harper  <jackson@ximian.com>
14558
14559         * Binding.cs: Support <Property>IsNull checks. Also bind to the
14560         controls Validating method so we can repull the data when the
14561         control loses focus.
14562
14563 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
14564
14565         * ColumnHeader.cs:
14566           - Fixes null string format
14567           
14568         * ListView.cs:
14569           - Adds enum type checks
14570           - Fixes redrawing and recalc need after changing some properties
14571           - Fixes on focus_item set after the event
14572           - Fixes adding columns after the control has been created
14573           
14574         * ThemeWin32Classic.cs:
14575           - Fixes CheckBox focus rectangle
14576           - Fixes ColumnHeader drawing
14577
14578
14579 2005-03-03  Jackson Harper  <jackson@ximian.com>
14580
14581         * Binding.cs: Bind to <Property>Changed events so we can detect
14582         when properties are changed and update the data.
14583
14584 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
14585
14586         * ImageList.cs:
14587           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
14588           - Fixes ImageList constructor with ImageList container
14589           - Fixes image scaling (wrong parameters at DrawImage)
14590
14591 2005-02-02  Jackson Harper  <jackson@ximian.com>
14592
14593         * Binding.cs: Make property searches case-insensitive. Eliminate
14594         some duplicated code.
14595
14596 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
14597
14598         * ComboBox.cs:
14599                 - Handle focus event
14600                 - Fix scrollbar events
14601                 - Discard highlighted item if remove it
14602                 - Fixes SelectedItem with strings
14603
14604 2005-03-01  Peter Bartok  <pbartok@novell.com>
14605
14606         * Control.cs:
14607           - Fixed Visible property, now follows (once again) parent chain
14608             to return false if any control in the chain is visible=false
14609           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
14610           - Fixed several places where is_visible instead of Visible was used
14611           - Implemented FIXME related to focus selection when setting focused
14612             control to be invisible
14613
14614         * XplatUIWin32.cs: Now using proper method to find out if window is
14615           visible. Thanks to Jordi for pointing it out
14616
14617 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
14618
14619         * ComboBox.cs: show/hide scrollbar instead of creating it
14620
14621 2005-02-27  Jackson Harper  <jackson@ximian.com>
14622
14623         * CurrencyManager.cs: Add PositionChanged stuff.
14624
14625 2005-02-27  Peter Bartok  <pbartok@novell.com>
14626
14627         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
14628         * XplatUIOSX.cs: Added GetMenuOrigin() stub
14629         * XplatUIWin32.cs: Implemented GetMenuOrigin()
14630         * XplatUIX11.cs:
14631           - Implemented GetMenuDC()
14632           - Implemented GetMenuOrigin()
14633           - Implemented ReleaseMenuDC()
14634           - Implemented generation of WM_NCPAINT message
14635           - Implemented generation and handling of WM_NCCALCSIZE message
14636         * Form.cs: Added debug helper message for Jordi's menu work
14637         * Hwnd.cs:
14638           - Modified ClientRect property; added setter, fixed getter to handle
14639             setting of ClientRect
14640           - Added MenuOrigin property
14641
14642 2005-02-26  Peter Bartok  <pbartok@novell.com>
14643
14644         * XplatUIX11.cs:
14645           - Destroys the caret if a window that's being destroyed contains it
14646           - Ignores expose events coming from the X11 queue for windows that
14647             already are destroyed
14648           - Now uses the proper variable for handling DestroyNotify, before we
14649             marked the wrong window as destroyed
14650           - Improved/added some debug output
14651
14652 2005-02-26  Peter Bartok  <pbartok@novell.com>
14653
14654         * X11Keyboard.cs: Fixes to work on 64bit systems
14655
14656 2005-02-26  Peter Bartok  <pbartok@novell.com>
14657
14658         * Control.cs:
14659           - Now calling OnHandleDestroyed from DestroyHandle()
14660             instead of Dispose()
14661           - Removed bogus call to controls.Remove() from DestroyHandle()
14662
14663 2005-02-26  Peter Bartok  <pbartok@novell.com>
14664
14665         * Control.cs: Properly destroy child windows when our handle is
14666           destroyed
14667
14668 2005-02-25  Peter Bartok  <pbartok@novell.com>
14669
14670         * XplatUI.cs:
14671           - Added 'DriverDebug' define to allow tracing XplatUI API calls
14672           - Alphabetized Static Methods and Subclasses
14673
14674         * XplatUIX11.cs:
14675           - Added XException class to allow custom handling of X11 exceptions
14676           - Created custom X11 error handler, tied into XException class
14677           - Added support for MONO_XEXCEPTIONS env var to allow the user
14678             to either throw an exception on X errors or continue running
14679             after displaying the error
14680           - Added handling of DestroyNotify message
14681           - Added handler for CreateNotify message (still disabled)
14682           - Improved (tried to at least) Where method to provide file and lineno
14683         * X11Structs.cs:
14684           - Added XErrorHandler delegate
14685           - Added XRequest enumeration (to suppor translation of errors)
14686
14687 2005-02-25  Jackson Harper  <jackson@ximian.com>
14688
14689         * PropertyManager.cs: Implement editing features
14690         * CurrencyManager.cs:
14691         * Binding.cs: First attempt at UpdateIsBinding
14692         * BindingManagerBase.cs: Call UpdateIsBinding before
14693         pushing/pulling data.
14694
14695 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
14696
14697         * MenuAPI.cs: Respect disabled items
14698         * ThemeWin32Classic.cs
14699                 - Caches ImageAttributes creation for DrawImageDisabled
14700                 - Fixes vertical menu line drawing
14701                 - Draws disabled arrows in disable menu items
14702
14703 2005-02-24  Peter Bartok  <pbartok@novell.com>
14704
14705         * Hwnd.cs:
14706           - Added UserData property to allow associating arbitrary objects
14707             with the handle
14708           - Fixed leak; now removing Hwnd references from static windows array
14709         * XplatUIWin32.cs:
14710           - Fixed Graphics leak in PaintEventEnd
14711           - Removed usage of HandleData, switched over to Hwnd class
14712         * HandleData.cs: Removed, obsoleted by Hwnd.cs
14713
14714 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
14715
14716         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
14717         * ScrollBar.cs: Fixes bug
14718         * TrackBar.cs: removes death code, clipping, mimize refreshes,
14719          keyboard navigation enhancements
14720
14721 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
14722
14723         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
14724         * GroupBox.cs: Add control styles
14725         * Label.cs: Add control styles
14726         * UpDownBase.cs: Add control styles
14727         * ListBox.cs: Add control styles
14728         * XplatUIWin32.cs: Fixes wrong parameter order
14729
14730
14731 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
14732
14733         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
14734
14735 2005-02-23  Jackson Harper  <jackson@ximian.com>
14736
14737         * PropertyManager.cs: Implement property binding. This doesn't
14738         seem to work yet though as (I think) there are some bugs in
14739         System.ComponentModel.PropertyDescriptor.
14740         * BindingContext.cs: Use new PropertyManager constructor.
14741
14742 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
14743
14744         * ProgressBar.cs: use clip region in ProgressBar
14745         * ThemeWin32Classic.cs: use clip region in ProgressBar
14746
14747 2004-02-22  Jackson Harper  <jackson@ximian.com>
14748
14749         * BindingsCollection.cs: Remove some debug code.
14750
14751 2005-02-22  Jackson Harper  <jackson@ximian.com>
14752
14753         * BindingContext.cs:
14754         * ControlBindingsCollection.cs:
14755         * CurrencyManager.cs:
14756         * Binding.cs:
14757         * BindingManagerBase.cs: Initial implementation
14758         * BindingsCollection.cs: Add an internal contains method that the
14759         BindingManagerBase uses to ensure bindings aren't added twice to
14760         the collection.
14761         * PropertyManager.cs: Stubbed out.
14762         * Control.cs:
14763         * ContainerControl.cs: Hook up databinding
14764         
14765 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
14766
14767         * XplatUIOSX.cs:
14768           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
14769           Fixed Invalidate/Update chain.
14770           Fixed tons of other minor bugs (this is almost a complete rewrite).
14771
14772 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
14773
14774         * ComboBox.cs: do subcontrol creation when the control is created
14775
14776 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14777
14778         * Label.cs: fixes image drawing (image and imagelist)
14779         * ThemeWin32Classic.cs: cache brushes
14780         
14781 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14782
14783         * Form.cs: Move menu drawing code to Theme class
14784         * ComboBox.cs: Move ComboBox drawing code to Theme class
14785         * MenuItem.cs: Move menu drawing code to Theme class
14786         * MenuAPI.cs: Move menu drawing code to Theme class
14787         * ThemeWin32Classic.cs: New methods
14788         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
14789         * ListBox.cs: Move Listbox drawing code to Theme class
14790         * Theme.cs: New methods
14791
14792 2005-02-20  Peter Bartok  <pbartok@novell.com>
14793
14794         * Control.cs:
14795           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
14796             only process mnemonics on those)
14797           - Fixed event sequence for key handling; first calling
14798             ProcessKeyEventArgs now
14799         * TextBoxBase.cs:
14800           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
14801             for processing non-character keys
14802           - Fixed WM_CHAR to generate proper event sequence before processing
14803         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
14804           generation
14805
14806 2005-02-19  Peter Bartok  <pbartok@novell.com>
14807
14808         * UserControl.cs: Added TextChanged event; added attributes
14809         * SizeGrip.cs: Implemented resizing and optional display of grip
14810         * Form.cs: Fixed attribute
14811         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14812           Changed meaning of ScrollWindow bool argument; instead of the
14813           clear attribute (which will be true usually anyway), it gives the
14814           option of moving child controls as well.
14815         * XplatUIX11.cs:
14816           - Changed to match new ScrollWindow argument
14817           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
14818             now handles the implicit parent window a WM puts around us
14819         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
14820           to work)
14821         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
14822         * TreeView.cs: Adjusted to new ScrollWindow arguments
14823
14824 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14825
14826         * Form.cs: Menu integration with non-client area
14827         * MenuItem.cs: Menu integration with non-client area
14828         * MenuAPI.cs: Menu integration with non-client area
14829
14830 2005-02-18  Peter Bartok  <pbartok@novell.com>
14831
14832         * MethodInvoker.cs: Added
14833         * MdiLayout.cs: Added
14834         * SendKeys.cs: Started implementation
14835         * ErrorIconAlignment.cs: Added
14836
14837 2005-02-18  Peter Bartok  <pbartok@novell.com>
14838
14839         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
14840         * Form.cs: Added handling for Menu-related Non-client messages
14841
14842 2005-02-17  Peter Bartok  <pbartok@novell.com>
14843
14844         * UpDownBase.cs: Fixed typo, compilation errors
14845         * DomainUpDown.cs: Fixed attribute value
14846
14847 2005-02-16  Miguel de Icaza  <miguel@novell.com>
14848
14849         * UpDownBase.cs: Attach entry events.
14850         Propagate events.
14851         Add ForeColor property, Focused, InterceptArrowKeys (interception
14852         does not work yet).
14853
14854 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
14855
14856         * Form.cs:
14857                 - Redraw non client are on Setmenu
14858                 - Calc proper menu starting point
14859
14860 2005-02-17  Peter Bartok  <pbartok@novell.com>
14861
14862         * Application.cs: Fixed message_filter check
14863
14864 2005-02-17  Peter Bartok  <pbartok@novell.com>
14865
14866         * Application.cs: Now calls registered message filters
14867         * DockStyle.cs: Fixed attribute
14868         * Form.cs: Fixed attribute
14869         * Menu.cs: Fixed attribute
14870         * ToolTip.cs: Fixed attribute
14871         * TreeNode.cs: Added missing attributes and arranged in regions
14872         * PropertyGrid.cs: Fixed signatures
14873         * TreeNodeCollection.cs: Added attributes
14874         * Splitter.cs: Added missing attributes; arranged into regions
14875         * TabPage.cs: Added missing attributes; arranged into regions
14876         * TextBoxBase.cs: Added missing attributes
14877         * TextBox.cs: Added missing attributes
14878         * ArrangeDirection.cs: Added missing attributes
14879         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
14880         * ToolBarButton.cs: Fixed attributes
14881         * AnchorStyles.cs: Fixed attribute
14882         * TrackBar.cs: Fixed attributes
14883         * TabControl.cs: Added missing attributes and arranged into regions
14884         * ToolBar.cs: Fixed attribute
14885         * StatusBar.cs: Fixed signature, organized into regions and added
14886           attributes
14887         * StatusBarPanel.cs: Fixed attributes
14888         * ContentsResizedEventArgs.cs: Implemented
14889         * ContentsResizedEventHandler.cs: Implemented
14890         * DateBoldEventArgs.cs: Implemented
14891         * DateBoldEventHandler.cs: Implemented
14892         * UpDownEventArgs.cs: Implemented
14893         * UpDownEventHandler.cs: Implemented
14894         
14895 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
14896
14897         * Form.cs: first Menu NC refactoring
14898         * MenuAPI.cs: first Menu NC refactoring
14899         
14900 2005-02-16  Peter Bartok  <pbartok@novell.com>
14901
14902         * ImeMode.cs: Added missing attributes
14903         * Menu.cs: Fixed attribute
14904         * GroupBox.cs: Fixed attribute
14905         * Label.cs: Fixed attribute
14906         * ColorDialog.cs (RunDialog): Removed TODO attribute
14907         * ComboBox.cs: Fixed attributes
14908         * ListControl.cs: Added missing attributes
14909         * PropertyGrid.cs: Fixed attributes
14910         * Control.cs: Fixed attributes
14911         * ListViewItem.cs: Added TypeConverter attribute
14912         * NotifyIcon.cs: Fixed attributes
14913         * ListView.cs: Fixed attributes
14914         * ButtonBase.cs: Fixed attribute
14915         * ImageList.cs: Added missing attributes
14916         * ContainerControl.cs: Fixed signature
14917         * CheckedListBox.cs: Fixed attribute; added missing attributes
14918         * Panel.cs: Fixed attributes
14919         * PropertyTabChangedEventArgs.cs: Added missing attribute
14920         * PropertyValueChangedEventArgs.cs: Added missing attribute
14921         * Binding.cs: Fixed attribute
14922         * ListViewItemConverter: Implemented ListViewSubItemConverter class
14923         * ListBox.cs: Fixed attribute; added missing attributes;
14924         * ScrollableControl.cs: Added missing attributes
14925         * PictureBox.cs: Added missing attributes; implemented missing property
14926         * DateTimePicker.cs: Added missing attributes
14927         * Theme.cs (ToolWindowCaptionHeight): Fixed type
14928         * MonthCalendar.cs: Fixed attributes
14929         * StatusBarPanel.cs: Added missing attributes
14930         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
14931
14932 2005-02-16  Peter Bartok  <pbartok@novell.com>
14933
14934         * TextBoxBase.cs: The previous method to enforce height yet remember
14935           the requested high was less than ideal, this is an attempt to do
14936           it better.
14937         * Control.cs: Added comment about possible problem
14938         * Copyright: Updated format
14939         * GridItemType.cs: Fixed swapped values
14940
14941 2005-02-15  Jackson Harper  <jackson@ximian.com>
14942
14943         * BaseCollection.cs: Use property so we never access an
14944         uninitialized list. Also initialize the list in the property.
14945
14946 2005-02-15  Peter Bartok  <pbartok@novell.com>
14947
14948         * GroupBox.cs (ProcessMnemonic): Implemented
14949         * Label.cs (ProcessMnemonic): Implemented
14950         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
14951           hotkeys
14952
14953 2005-02-15  Peter Bartok  <pbartok@novell.com>
14954
14955         * RadioButton.cs (ProcessMnemonic): Implemented
14956         * CheckBox.cs (ProcessMnemonic): Implemented
14957         * Control.cs:
14958           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
14959             handling
14960           - Added internal method to allow calling ProcessMnemonic from other
14961             controls
14962         * ContainerControl.cs:
14963           - Started support for handling validation chain handling
14964           - Implemented ProcessMnemonic support
14965           - Added Select() call to Active, to make sure the active control
14966             receives focus
14967         * Form.cs: Setting toplevel flag for Forms (this was lost in the
14968           FormParent rewrite)
14969         * ThemeWin32Classic.cs:
14970           - DrawCheckBox(): Fixed stringformat to show hotkeys
14971           - DrawRadioButton(): Fixed stringformat to show hotkeys
14972         * CommonDialog.cs: Removed WndProc override, not needed
14973
14974 2005-02-14  Peter Bartok  <pbartok@novell.com>
14975
14976         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
14977           missed those in the rewrite
14978
14979 2005-02-14  Miguel de Icaza  <miguel@novell.com>
14980
14981         * NumericUpDown.cs (Increment, ToString): Add.
14982         (DecimalPlaces): implement.
14983         
14984         Add attributes.
14985         
14986         * UpDownBase.cs: Add the designer attributes.
14987
14988 2005-02-13  Peter Bartok  <pbartok@novell.com>
14989
14990         * Panel.cs: Removed border_style, now in Control
14991         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
14992           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
14993
14994 2005-02-13  Peter Bartok  <pbartok@novell.com>
14995
14996         * MouseButtons.cs: Added missing attributes
14997         * XplatUIStructs.cs: Added enumeration for title styles
14998         * LeftRightAlignment.cs: Added missing attributes
14999         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
15000           it compatible with Graphics.FromHwnd()
15001         * SelectedGridItemChangedEventArgs.cs: Fixed property type
15002         * Keys.cs: Added missing attributes
15003         * SelectionRange.cs: Added missing attributes
15004         * SelectionRangeConverter.cs: Added
15005         * XplatUI.cs:
15006           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
15007             ReleaseMenuDC methods
15008           - Renamed ReleaseWindow to UngrabWindow
15009           - Added proper startup notice to allow version identification
15010         * Form.cs:
15011           - Added missing attributes
15012           - Removed FormParent concept
15013         * Label.cs: Removed border_style field, now in Control
15014         * RadioButton.cs: Now properly selects RadioButton when focus is
15015           received
15016         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
15017         * Control.cs:
15018           - Added missing attributes
15019           - Added borderstyle handling
15020           - Removed FormParent concept support
15021           - Fixed calls to XplatUI to match changed APIs
15022           - Fixed bug that would case us to use disposed Graphics objects
15023           - Removed unneeded internal methods
15024           - PerformLayout(): Fixed to handle DockStyle.Fill properly
15025           - SelectNextControl(): Fixed to properly check common parents
15026         * TextBoxBase.cs: Removed border_style field (now in Control)
15027         * MessageBox.cs:
15028           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
15029             fixed calculations for form size
15030           - Added support for localized strings and icons
15031           - Improved form size calculations, added border
15032         * ListView.cs: Removed border_style field (now in Control)
15033         * X11Structs.cs: Moved several structs from X11 driver here
15034         * X11Keyboard.cs: Changed debug message
15035         * Application.cs: Removed FormParent concept support
15036         * CommonDialog.cs:
15037           - Resetting end_modal flag
15038           - Removed FormParent concept support
15039         * NativeWindow.cs: Removed FormParent concept support
15040         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
15041           Client area and Non-Client whole window to allow support for WM_NC
15042           messages
15043         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
15044           prevent using it until it supports Hwnd as per Geoff Norton's request
15045         * ToolBar.cs: Fixed drawing, was not doing proper drawing
15046         * PictureBox.cs: Removed border_style field, now in Control
15047         * XplatUIWin32.cs: Added new driver methods
15048
15049 2005-02-12  Peter Bartok  <pbartok@novell.com>
15050
15051         * OpacityConverter.cs: Implemented
15052         * Hwnd.cs: Internal class to support drivers that need to emulate
15053           client area/non-client area window behaviour
15054
15055 2005-02-11  Peter Bartok  <pbartok@novell.com>
15056
15057         * KeysConverter.cs: Implemented
15058
15059 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
15060
15061         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
15062         * LinkLabel: Added missing attributes
15063         * MainMenu.cs: fixes ToString
15064         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
15065         * ListBox.cs: fixes event position
15066         * TrackBar.cs: adds missing attributes and events
15067         
15068 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
15069
15070         * MenuItem.cs: Use SystemInformation and bug fixes
15071         * MenuAPI.cs: Use SystemInformation and bug fixes
15072
15073 2005-02-09  Jackson Harper  <jackson@ximian.com>
15074
15075         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
15076         their keystate otherwise things like VK_MENU get stuck "on".
15077
15078 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
15079
15080         * ListBox.cs: Fixes AddRange bug
15081         
15082 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
15083
15084         * ProgressBar.cs
15085                 - Add missing attributes
15086                 - Add missing method
15087                 
15088         * CheckedListBox.cs: Added missing attributes
15089                 - Add missing attributes
15090                 - Remove extra method
15091         
15092         * ComboBox.cs: Added missing attributes
15093         * VScrollBar.cs: Added missing attributes
15094         * ScrollBar.cs:  Added missing attributes
15095         * ListBox.cs: Fixes signature, add missing consts
15096         * LinkArea.cs:   Added missing attributes
15097         
15098
15099 2005-02-08  Peter Bartok  <pbartok@novell.com>
15100
15101         * Menu.cs: Added missing attributes
15102         * MainMenu.cs: Added missing attributes
15103         * GroupBox.cs: Added missing attributes
15104         * Label.cs: Added missing attributes
15105         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
15106         * ColorDialog.cs:
15107           - Added Instance and Options properties
15108           - Added missing attributes
15109         * Cursor.cs: Made Serializable
15110         * NotifyIcon: Added missing attributes
15111         * MenuItem.cs: Added missing attributes
15112         * TextBoxBase.cs: Implemented AppendText() and Select() methods
15113         * Panel.cs: Added Missing attributes
15114         * MonthCalendar.cs: Fixed CreateParams
15115
15116 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15117         
15118         * LinkLabel.cs:
15119                 - Fixes signature
15120                 - Fixes issues with links
15121                 - Adds the class attributes
15122
15123 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
15124         
15125         * ComboBox.cs:
15126                 - Fixes button when no items available in dropdown
15127                 - Fixes repainting problems
15128                 - Adds the class attributes
15129                 
15130 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15131
15132         * XplatUIOSX.cs: Detect the menu bar and title bar height from
15133         the current theme.  Cache these on startup.
15134
15135 2005-02-07  Jackson Harper  <jackson@ximian.com>
15136
15137         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
15138         the scrollbar buttons when they are depressed.
15139
15140 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15141
15142         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
15143         Get the display size from the main displayid.  We currently dont
15144         support multiple display configurations.
15145
15146 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
15147
15148         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
15149
15150 2005-02-07  Miguel de Icaza  <miguel@novell.com>
15151
15152         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
15153
15154 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
15155
15156         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
15157
15158 2005-02-04  Jackson Harper  <jackson@ximian.com>
15159
15160         * ThemeWin32Classic.cs: Respect the clipping rect when
15161         drawing. Only fill the intersection of clips and rects so there
15162         isn't a lot of large fills.
15163         * ScrollBar.cs: Pass the correct clipping rect to the theme
15164         engine. Remove some debug code.
15165
15166 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
15167         
15168         * DateTimePicker.cs:
15169                 - Fixed crash on DateTime.Parse, use Constructor instead
15170
15171 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15172         
15173         * MenuItem.cs:
15174         * MenuAPI.cs:
15175                 - Owner draw support (MeasureItem and DrawItem)
15176
15177 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
15178         
15179         *  Menu.cs:
15180                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
15181                 - Fixes MenuItems.Add range
15182         * MenuItem.cs:
15183                 - MergeMenu and Clone and CloneMenu functions
15184
15185 2005-02-03  Jackson Harper  <jackson@ximian.com>
15186
15187         * ScrollBar.cs: Make abstract
15188         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
15189         is abstract.
15190
15191 2005-02-03  Jackson Harper  <jackson@ximian.com>
15192
15193         * ScrollBar.cs: First part of my scrollbar fixups. This removes
15194         all the unneeded refreshes and uses invalidates with properly
15195         computed rects.
15196
15197 2005-02-03  Peter Bartok  <pbartok@novell.com>
15198
15199         * ComponentModel.cs: Added
15200         * IDataGridEditingService.cs: Added
15201         * Timer.cs: Added missing attributes
15202         * ToolTip.cs: Added missing attributes
15203
15204 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
15205
15206         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
15207
15208 2005-02-03  Peter Bartok  <pbartok@novell.com>
15209
15210         * ListBox.cs: Added missing attributes
15211
15212 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
15213         
15214         * ListBox.cs:
15215                 - Fixes font height after font change
15216                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
15217                 
15218 2005-02-02  Peter Bartok  <pbartok@novell.com>
15219
15220         * HandleData.cs: Introduced static methods to allow class
15221           to be more self-contained and track it's own HandleData objects
15222         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
15223           HandleData to use new static methods
15224
15225 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
15226
15227         * Combobox.cs:
15228                 - Fixes default size and PreferredHeight
15229                 - Missing events
15230                 - ObjectCollection.Insert implementation
15231                 
15232         * ListControl.cs
15233                 - Fixes signature
15234         * ListBox.cs:
15235                 - Several fixes
15236                 - ObjectCollection.Insert implementation
15237                 - No selection after clean
15238                 - Small fixes
15239
15240 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15241
15242         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
15243
15244 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
15245
15246         * Combobox.cs:
15247                 - Caches ItemHeight calculation for OwnerDrawVariable
15248                 - Handles dropdown properly
15249                 - Fixes several minor bugs
15250
15251 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15252
15253         * ListBox.cs:
15254                 - Fixes 71946 and 71950
15255                 - Fixes changing Multicolumn on the fly
15256                 - Fixes keyboard navigation on Multicolumn listboxes
15257
15258 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15259         
15260         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
15261         crash reporter log.
15262
15263 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15264
15265         * XplatUIOSX.cs: Allow applications to actually exit.
15266
15267 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
15268
15269         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
15270         their parent at creation time rather than lazily later.  Fixes a major
15271         regression we were experiencing.
15272
15273 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
15274
15275         * ThemeWin32Classic.cs: more date time picker painting fixes
15276         * DateTimePicker.cs: more monthcalendar drop down fixes
15277         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
15278
15279 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
15280
15281         * ScrollBar.cs:
15282                 - When moving the thumb going outside the control should stop the moving
15283                 - Adds the firing of missing events
15284                 - Fixes no button show if Size is not specified
15285                 - End / Home keys for keyboard navigation
15286
15287 2005-01-30  Peter Bartok  <pbartok@novell.com>
15288
15289         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
15290           sanity check to prevent theoretical loop
15291         * XplatUIWin32.cs (SetVisible): Removed debug output
15292         * XplatUIX11.cs (SystrayChange): Added sanity check
15293         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
15294         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
15295           behaviour, valid until the X11 client window rewrite is done
15296         * TextBox.cs (ctor): Setting proper default foreground and background
15297           colors
15298
15299 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
15300
15301         * Theme: Added DrawDateTimePicker to interface
15302         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
15303         * DateTimePicker.cs: Created (still needs keys and painting code)
15304         * DateTimePickerFormat.cs: added
15305         * MonthCalendar.cs: fixed CreateParams for popup window mode
15306           
15307 2005-01-29  Peter Bartok  <pbartok@novell.com>
15308
15309         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
15310           this should also the calculations for ligher/darker
15311         * Theme.cs: Fixed defaults for ScrollBar widths/heights
15312
15313 2005-01-29  Peter Bartok  <pbartok@novell.com>
15314
15315         * ArrangeDirection.cs: Added
15316         * ArrangeStartingPositon.cs: Added
15317         * SystemInformation.cs: Implemented
15318         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15319           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
15320           used by SystemInformation class
15321         * X11Strucs.cs: Added XSizeHints structure
15322         * MenuAPI.cs:
15323           - Fixed CreateParams to make sure the menu window is always visible
15324           - TrackPopupMenu: Added check to make sure we don't draw the
15325             menu offscreen
15326
15327 2005-01-29  Peter Bartok  <pbartok@novell.com>
15328
15329         * HandleData.cs: Added method for altering invalid area
15330         * TextBoxBase.cs: Implemented TextLength
15331
15332 2005-01-28  Peter Bartok  <pbartok@novell.com>
15333
15334         * XplatUIX11.cs: Improvement over last patch, not sending
15335           the WM_PAINT directly anymore, instead we scroll any pending
15336           exposed areas and let the system pick out the WM_PAINT later
15337
15338 2005-01-28  Peter Bartok  <pbartok@novell.com>
15339
15340         * SWF.csproj: Deleted, no longer used. Instead,
15341           Managed.Windows.Forms/SWF.csproj should be used
15342         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
15343           directly, to avoid a potential race condition with the next
15344           scroll
15345
15346 2005-01-28  Peter Bartok  <pbartok@novell.com>
15347
15348         * XplatUI.cs: Made class internal
15349
15350 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
15351
15352         * CheckedListBox.cs:
15353                 - Draw focus
15354                 - Fixed Drawing
15355                 - Missing methods and events
15356
15357 2005-01-27  Peter Bartok  <pbartok@novell.com>
15358
15359         * Application.cs (Run): Don't use form if we don't have one
15360
15361 2005-01-27  Peter Bartok  <pbartok@novell.com>
15362
15363         * TextBoxBase.cs (get_Lines): Fixed index off by one error
15364
15365 2005-01-27  Peter Bartok  <pbartok@novell.com>
15366
15367         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
15368         * GridItem.cs: Added; Patch by Jonathan S. Chambers
15369         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
15370         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
15371         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
15372         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
15373         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15374         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15375         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15376         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15377         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15378         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15379
15380 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15381
15382         * Combobox.cs:
15383                 - Draw focus on Simple Combobox
15384                 - Fixes drawing issues
15385                 - fixes 71834
15386
15387 2005-01-27  Peter Bartok  <pbartok@novell.com>
15388
15389         * Form.cs:
15390           - Place window in default location, instead of hardcoded 0/0
15391           - Send initial LocationChanged event
15392         * Control.cs:
15393           - UpdateBounds after creation to find out where the WM placed us
15394           - Make sure that if the ParentForm changes location the Form
15395             is notified
15396         * XplatUIX11.cs: XGetGeometry will not return the coords relative
15397             to the root, but to whatever the WM placed around us.
15398             Translate to root coordinates before returning toplevel
15399             coordinates
15400         * XplatUIWin32.cs: Removed debug output
15401         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
15402           flag to GetWindowPos, to allow translation of coordinates on X11
15403
15404 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15405
15406         * ListBox.cs: connect LostFocus Event
15407
15408 2005-01-27  Peter Bartok  <pbartok@novell.com>
15409
15410         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15411           XplatUIX11.cs: Extended the Systray API
15412         * Form.cs: Removed debug output
15413         * Application.cs: Fixed focus assignment, always need to call
15414           XplatUI.Activate() since Form.Activate() has rules that may
15415           prevent activation
15416         * NotifyIcon.cs: Should be complete now
15417         * ToolTip.cs: Worked around possible timer bug
15418
15419 2005-01-27  Jackson Harper  <jackson@ximian.com>
15420
15421         * TabControl.cs:
15422         - Only invalidate the effected tabs when the
15423         selected index changes. This reduces drawing and gets rid of some
15424         flicker.
15425         - Only refresh if the tabs need to be shifted, otherwise only
15426         invalidate the slider button.
15427         - On windows the tabs are not filled to right if the slider is
15428         visible.
15429         
15430 2005-01-27  Jackson Harper  <jackson@ximian.com>
15431
15432         * TabControl.cs: Only refresh on mouseup if we are showing the
15433         slider. Also only invalidate the button whose state has changed.
15434
15435 2005-01-26  Peter Bartok  <pbartok@novell.com>
15436
15437         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
15438         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
15439           and SystrayRemove() methods
15440         * XplatUIOSX.cs: Stubbed Systray methods
15441         * XplatUIX11.cs:
15442           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
15443             methods
15444           - Fixed broken XChangeProperty calls (marshalling messed up things)
15445         * X11Structs.cs: Added enums and structs required for Size hinting
15446         * NotifyIcon.cs: Added & implemented
15447
15448 2005-01-26  Jackson Harper  <jackson@ximian.com>
15449
15450         * TabControl.cs: Space vertically layed out tabs properly.
15451
15452 2005-01-26  Peter Bartok  <pbartok@novell.com>
15453
15454         * Form.cs (CreateClientParams): Always set the location to 0,0
15455           since we're a child window.
15456
15457         * Control.cs (SetVisibleCore): Always explicitly setting the location
15458           of a toplevel window, apparently X11 doesn't like to move windows
15459           while they're not mapped.
15460
15461 2005-01-26  Jackson Harper  <jackson@ximian.com>
15462
15463         * TabControl.cs: Implement FillToRight size mode with vertically
15464         rendered tabs.
15465
15466 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15467
15468         * ControlPaint.cs, ThemeWin32Classic.cs
15469                 - Fixes DrawFocusRectangle
15470
15471 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15472
15473         * MenuAPI.cs:
15474                 - MenuBar tracking only starts when item is first clicked
15475                 - Fixes menu hidding for multiple subitems
15476                 - Unselect item in MenuBar when item Executed
15477                 - Fixes bug 71495
15478
15479 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
15480
15481         * ListControl.cs:
15482                 - IsInputKey for ListBox
15483         * ListBox.cs:
15484                 - Focus item
15485                 - Shift and Control item selection
15486                 - Implement SelectionMode.MultiExtended
15487                 - Fixes RightToLeft
15488         * ComboBox.cs:
15489                 - IsInputKey implemented
15490                 - Do not generate OnTextChangedEdit on internal txt changes
15491                 
15492 2005-01-23  Peter Bartok  <pbartok@novell.com>
15493
15494         * AccessibleObject.cs: Partially implemented Select()
15495         * MonthCalendar.cs: Added missing attributes and events
15496         * Form.cs: Fixed CreateParams behaviour, now controls derived from
15497           form can properly override CreateParams.
15498         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15499           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
15500           Control performs Invalidate & Update
15501         * NativeWindow (CreateHandle): Added special handling for Form
15502           and Form.FormParent classes to allow overriding of From.CreateParams
15503         * Control.cs:
15504           - ControlNativeWindow: Renamed 'control' variable to more intuitive
15505             name 'owner'
15506           - ControlNativeWindow: Added Owner property
15507           - Removed usage of Refresh() on property changes, changed into
15508             Invalidate(), we need to wait until the queue is processed for
15509             updates, direct calls might cause problems if not all vars for
15510             Paint are initialized
15511           - Added call to UpdateStyles() when creating the window, to set any
15512             styles that CreateWindow might have ignored.
15513           - Added support for Form CreateParent overrides to UpdateStyles()
15514         * MessageBox.cs: Removed no longer needed FormParent override stuff,
15515           CreateParams are now properly overridable
15516         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
15517           CreateParams are now properly overridable
15518
15519 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
15520
15521         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
15522         OnTextBoxChanged.
15523
15524         Capture LostFocus and OnTextBoxChanged.  The later introduces a
15525         recursive invocation that I have not figured out yet.
15526
15527         Reset the timer when not using (it was accumulating).
15528
15529
15530         (OnTextBoxChanged): Set UserEdit to true here to track whether the
15531         user has made changes that require validation.
15532
15533         Reset changing to avoid loops.
15534
15535 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
15536
15537         * NumericUpDown.cs: Display value at startup.
15538
15539         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
15540         ValidateEditText.
15541
15542         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
15543         filled in.  Added some basic parsing of text.
15544
15545         Still missing the OnXXX method overrides, and figuring out the
15546         events that must be emitted.
15547
15548         * UpDownBase.cs: Handle UserEdit on the Text property.
15549         
15550 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
15551
15552         * ComboBox.cs:
15553           - Fixes IntegralHeight
15554           - ToString method
15555
15556 2005-01-21  Jackson Harper  <jackson@ximian.com>
15557
15558         * TabControl.cs: Set the SelectedIndex property when SelectedTab
15559         is set so that the page visibility is updated and the tabs are
15560         sized correctly.
15561
15562 2005-01-21  Jackson Harper  <jackson@ximian.com>
15563
15564         * TabControl.cs: Use cliping rectangle for blitting. Give the
15565         theme the clipping rect so we can do clipping while
15566         drawing. Remove some debug code.
15567
15568 2005-01-21  Jackson Harper  <jackson@ximian.com>
15569
15570         * TabPage.cs: Add a new method so tab pages can force the tab
15571         control to recalculate the tab page sizes.
15572         * TabControl.cs: UpdateOwner needs to make the tab control recalc
15573         sizes.
15574
15575 2005-01-20  Jackson Harper  <jackson@ximian.com>
15576
15577         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
15578
15579 2005-01-20  Jackson Harper  <jackson@ximian.com>
15580
15581         * TreeView.cs: Set the bounds for nodes properly. They were
15582         getting screwed up when checkboxes were not enabled, but images
15583         were.
15584
15585 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
15586
15587         * ListBox.cs:
15588                 - Owner draw support
15589                 - Fixes
15590                 
15591 2005-01-20  Jackson Harper  <jackson@ximian.com>
15592
15593         * XplatUIStructs.cs: More misc keys
15594         * X11Keyboard.cs: Ignore some control keys.
15595
15596 2005-01-20  Jackson Harper  <jackson@ximian.com>
15597
15598         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
15599         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
15600
15601 2005-01-19  Peter Bartok  <pbartok@novell.com>
15602
15603         * Control.cs: Un-selecting the control when it is loosing focus
15604
15605 2005-01-19  Jackson Harper  <jackson@ximian.com>
15606
15607         * TreeView.cs: Hook up to the text controls leave event so we can
15608         end editing when the users clicks outside the text box.
15609         
15610 2005-01-19  Jackson Harper  <jackson@ximian.com>
15611
15612         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
15613         get set in the conversion array.
15614
15615 2005-01-19  Peter Bartok  <pbartok@novell.com>
15616
15617         * Application.cs (ModalRun): Added a call to CreateControl to ensure
15618           focus is properly set
15619         * Button.cs:
15620           - Added missing attributes
15621           - removed styles, those are already set in the base class
15622         * ButtonBase.cs:
15623           - Added missing attributes
15624           - Added clip window styles
15625         * CheckBox.cs: Added missing attributes
15626         * CommonDialog.cs:
15627           - FormParentWindow.CreateParams: Added required clip styles
15628         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
15629           also filters modifier keys
15630         * MessageBox.cs:
15631           - Added assignment of Accept and Cancel button to enable Enter
15632             and Esc keys in MessageBox dialogs
15633           - FormParentWindow.CreateParams: Added required clip styles
15634         * RadioButton.cs: Added missing attributes
15635         * TextControl.cs: No longer draws selection if control does not
15636           have focus
15637         * TextBoxBase.cs:
15638           - Now draws simple rectangle around test area to make it obvious
15639             there's a control. This is a hack until we properly support borders
15640           - A few simple fixes to support selections better, now erases selected
15641             text when typing, and resets selection when using movement keys
15642
15643 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
15644
15645         * UpDownBase.cs: Added some new properties.
15646
15647         * DomainUpDown.cs: Implement a lot to get my test working.
15648
15649 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15650
15651         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
15652
15653 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15654
15655         * OSXStructs (WindowAttributes): Fixed csc complaints
15656
15657 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15658
15659         * XplayUIOSX.cs:
15660           OSXStructs.cs: Initial refactor to move enums and consts into
15661           OSXStructs and use them in the driver for greater readability.
15662
15663 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15664
15665         * XplatUIOSX.cs: Initial support for Standard Cursors.
15666         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
15667
15668 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
15669
15670         * ComboBox.cs: ability to change style when the ctrl is already
15671         created, missing methods and events, bug fixes, signature fixes
15672
15673 2005-01-19  Peter Bartok  <pbartok@novell.com>
15674
15675         * Cursors.cs (ctor): Added ctor to fix signature
15676
15677 2005-01-18  Peter Bartok  <pbartok@novell.com>
15678
15679         * Button.cs: Implemented DoubleClick event
15680         * ButtonBase.cs:
15681           - Fixed keyboard handling to behave like MS, where the press of
15682             Spacebar is equivalent to a mousedown, and the key release is
15683             equivalent to mouseup. Now a spacebar push will give the same
15684             visual feedback like a mouse click.
15685           - Added missing attributes
15686           - Added ImeModeChanged event
15687           - Added support for generating DoubleClick event for derived classes
15688         * CheckBox.cs:
15689           - Implemented DoubleClick event
15690           - Added missing attributes
15691         * CommonDialog.cs: Added missing attribute
15692         * ContextMenu.cs: Added missing attributes
15693         * RadioButton.cs:
15694           - AutoChecked buttons do not allow to be unselected when clicked
15695             (otherwise we might end up with no selected buttons in a group)
15696           - Added missing attributes
15697           - Implemented DoubleClickEvent
15698         * ThreadExceptionDialog.cs: Enabled TextBox code
15699
15700 2005-01-18  Peter Bartok  <pbartok@novell.com>
15701
15702         * Form.cs: Removed debug output
15703         * Button.cs: Added support for DoubleClick method
15704
15705 2005-01-18  Peter Bartok  <pbartok@novell.com>
15706
15707         * Form.cs:
15708           - Added method to parent window that allows triggering size
15709             calculations when a menu is added/removed
15710           - set_Menu: Cleaned up mess from early days of Form and Control,
15711             now properly triggers a recalc when a menu is added/removed
15712           - Added case to select form itself as focused form if no child
15713             controls exist
15714           - Added PerformLayout call when showing dialog, to ensure properly
15715             placed controls
15716         * Control.cs:
15717           - Select(): Made internal so Form can access it
15718           - Focus(): Only call Xplat layer if required (avoids loop), and sets
15719             status
15720         * Application.cs (Run): Removed hack and calls PerformLayout instead
15721           to trigger calculation when Form becomes visible
15722
15723 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
15724
15725         * ComboBox.cs: fixes for ownerdraw
15726
15727 2005-01-18  Peter Bartok  <pbartok@novell.com>
15728
15729         * TextControl.cs:
15730           - Sentinel is no longer static, each Document gets it's own, this
15731             avoids locking or alternatively overwrite problems when more
15732             than one text control is used simultaneously.
15733           - Switched to use Hilight and HilightText brushes for text selection
15734
15735         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
15736
15737 2005-01-18  Peter Bartok  <pbartok@novell.com>
15738
15739         * Control.cs:
15740           - Hooked up the following events:
15741                 o ControlAdded
15742                 o ControlRemoved
15743                 o HandleDestroyed
15744                 o ImeModeChanged
15745                 o ParentChanged
15746                 o TabStopChanged
15747                 o Invalidated
15748                 o SystemColorsChanged
15749                 o ParentFontChanged
15750                 o Move
15751           - Removed debug output
15752           - Added a call to the current theme's ResetDefaults when a color change
15753             is detected
15754         * Form.cs: Now setting the proper ImeMode
15755         * Theme.cs: Defined a method to force recreation of cached resources
15756           and rereading of system defaults (ResetDefaults())
15757         * ThemeWin32Classic.cs: Added ResetDefaults() stub
15758
15759 2005-01-17  Peter Bartok  <pbartok@novell.com>
15760
15761         * Control.cs: Added missing attributes
15762
15763 2005-01-17  Jackson Harper  <jackson@ximian.com>
15764
15765         * TreeNode.cs: Implement editing. Add missing properties selected
15766         and visible.
15767         * TreeView.cs: Implement node editing. Also some fixes to use
15768         Invalidate (invalid area) instead of Refresh when selecting.
15769
15770 2005-01-17  Peter Bartok  <pbartok@novell.com>
15771
15772         * Control.cs:
15773           - Implemented InvokeGotFocus() method
15774           - Implemented InvokeLostFocus() method
15775           - Implemented InvokePaint() method
15776           - Implemented InvokePaintBackground() method
15777           - Implemented InvokeClick() method
15778           - Implemented FindForm() method
15779           - Implemented RectangleToClient() method
15780           - Implemented ClientToRectangle() method
15781           - Implemented ResetBackColor() method
15782           - Implemented ResetCursor() method
15783           - Implemented ResetFont() method
15784           - Implemented ResteForeColor() method
15785           - Implemented ResetImeMode() method
15786           - Implemented ResetLeftToRight() method
15787           - Implemented ResetText() method
15788           - Implemented Scale() methods
15789           - Implemented ScaleCore() method
15790           - Implemented Update() method
15791           - Removed unused variables
15792           - Stubbed AccessibilityNotifyClients and
15793             ControlAccessibleObject.NotifyClients() methods (dunno what to do
15794             with those yet)
15795           - Now setting proper default for RightToLeft property
15796           - Fixed bug in SetClientSizeCore that would cause windows to get
15797             really big
15798           - Now sending Click/DoubleClick events
15799           - Now selecting controls when left mouse button is clicked on
15800             selectable control
15801         * AccessibleEvents.cs: Added
15802         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
15803         * XplatUIOSX.cs: Stubbed UpdateWindow() method
15804         * XplatUIWin32.cs: Implemented UpdateWindow() method
15805         * XplatUIX11.cs: Implemented UpdateWindow() method
15806         * Form.cs: Removed stray semicolon causing CS0162 warning
15807         * ThemeWin32Classic.cs: Fixed unused variable warnings
15808         * ScrollableControl.cs: Now calls base method for ScaleCore
15809         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
15810           style to avoid interference with internal click handler (which is
15811           different than standard Control click handling)
15812         * RadioButton.cs:
15813           - Now unchecks all sibling radio buttons when control is
15814             selected (Fixes #68756)
15815           - Removed internal tabstop variable, using the one inherited from
15816             Control
15817
15818 2005-01-17  Jackson Harper  <jackson@ximian.com>
15819
15820         * NavigateEventArgs.cs: Fix base type.
15821         * LinkLabel.cs: Sig fix
15822         
15823 2005-01-17  Jackson Harper  <jackson@ximian.com>
15824
15825         * TreeView.cs: Only invalidate the effected nodes bounds when
15826         selecting nodes.
15827
15828 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15829
15830         * XplatUIWin32.cs: fixes Win32 marshaling
15831         * XplatUIX11.cs: fixes method signature
15832
15833 2005-01-17  Peter Bartok  <pbartok@novell.com>
15834
15835         * XplatUIX11.cs: Clean up resources when we no longer need them
15836
15837 2005-01-17  Peter Bartok  <pbartok@novell.com>
15838
15839         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
15840           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
15841           and DestroyCursor() methods.
15842         * Cursor.cs: Partially implemented, now supports standard cursors;
15843           still contains some debug code
15844         * Cursors.cs: Implemented class
15845         * Control.cs:
15846           - WndProc(): Added handling of WM_SETCURSOR message, setting the
15847             appropriate cursor
15848           - Implemented Cursor property
15849           - Replaced break; with return; more straightforwar and possibly
15850             faster
15851           - Now properly setting the result for WM_HELP
15852         * X11Structs.cs: Added CursorFontShape enum
15853         * XplatUIStructs.cs:
15854           - Added StdCursor enum (to support DefineStdCursor() method)
15855           - Added HitTest enum (to support sending WM_SETCURSOR message)
15856         * XplatUIX11.cs:
15857           - Now sends the WM_SETCURSOR message
15858           - Implemented new cursor methods
15859         * XplatUIOSX.cs: Stubbed new cursor methods
15860         * XplatUIWin32.cs:
15861           - Implemented new cursor methods
15862           - Added GetSystemMetrics function and associated enumeration
15863
15864 2005-01-15  Peter Bartok  <pbartok@novell.com>
15865
15866         * Control.cs:
15867           - WndProc(): Now handles EnableNotifyMessage
15868           - SelectNextControl(): Fixed bug where if no child or sibling
15869             controls exist we looped endlessly
15870
15871 2005-01-14  Jackson Harper  <jackson@ximian.com>
15872
15873         * TreeView.cs: Recalculate the tab pages when a new one is added
15874         so that the proper bounding rects are created.
15875
15876 2005-01-14  Jackson Harper  <jackson@ximian.com>
15877
15878         * TreeView.cs: Draw a gray box instead of a grip in the lower
15879         right hand corner when there are both horizontal and vertical
15880         scroll bars.
15881
15882 2005-01-14  Jackson Harper  <jackson@ximian.com>
15883
15884         * Control.cs: When erasing backgrounds use FromHwnd instead of
15885         FromHdc when there is a NULL wparam. This occurs on the X driver.
15886         * XplatUIX11.cs: Set the wparam to NULL.
15887
15888 2005-01-13  Jackson Harper  <jackson@ximian.com>
15889
15890         * PictureBox.cs: Implement missing methods (except ToString, need
15891         to test that on windows) and events. When visibility is changed we
15892         need to redraw the image because the buffers are killed. When size
15893         is changed refresh if the sizemode needs it.
15894
15895 2005-01-13  Peter Bartok  <pbartok@novell.com>
15896
15897         * Control.cs (SelectNextControl): Was using wrong method to select
15898           a control
15899
15900 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15901
15902         * ComboBox.cs: fixes dropstyle
15903
15904 2005-01-13  Peter Bartok  <pbartok@novell.com>
15905
15906         * Form.cs:
15907           - Implemented Select() override
15908           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
15909           - Now sets keyboard focus on startup
15910         * Control.cs (SelectNextControl): Now properly handles directed=true
15911         * TextBoxBase.cs:
15912           - WndProc: Now passes tab key on to base if AcceptTabChar=false
15913           - Added (really bad) focus rectangle (mostly for testing)
15914         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
15915           to enforce redraw on focus changes
15916         * ContainerControl.cs:
15917           - Fixed detection of Shift-Tab key presses
15918           - Fixed traversal with arrow keys
15919         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
15920           gonna keep this or if it's complete yet
15921         
15922 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15923
15924         * ComboBox.cs: missing properties, fixes
15925
15926 2005-01-13  Peter Bartok  <pbartok@novell.com>
15927
15928         * Panel.cs (ctor): Setting Selectable window style to off
15929         * Splitter.cs (ctor): Setting Selectable window style to off
15930         * GroupBox.cs (ctor): Setting Selectable window style to off
15931         * Label.cs (ctor): Setting Selectable window style to off
15932
15933 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
15934
15935         * UpDownBase.cs (InitTimer): If the timer has been already
15936         created, enable it.
15937
15938         Use a TextBox instead of a Label.
15939
15940 2005-01-12  Jackson Harper  <jackson@ximian.com>
15941
15942         * TreeView.cs: Refresh the tree after sorting the nodes. Always
15943         draw the connecting node lines (when ShowLines is true).
15944         * TreeNode.cs: The nodes index can now be updated. This is used
15945         when a node collection is sorted.
15946         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
15947         insert or an existing unsorted node collection can be sorted.
15948         
15949 2005-01-12  Peter Bartok  <pbartok@novell.com>
15950
15951         * ContainerControl.cs: Implemented ProcessDialogKeys()
15952
15953 2005-01-12  Peter Bartok  <pbartok@novell.com>
15954
15955         * Control.cs:
15956           - Implemented SelectNextControl() method
15957           - Several focus related bug fixes
15958           - Fixed Docking calculations to match MS documentation and
15959             behaviour
15960
15961 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
15962
15963         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
15964         bug fixes
15965
15966 2005-01-12  Peter Bartok  <pbartok@novell.com>
15967
15968         * Control.cs:
15969           - Fixed broken Contains() method
15970           - Implemented GetNextControl() method. Finally. This is the pre-
15971             requisite for focus handling.
15972
15973 2005-01-12  Peter Bartok  <pbartok@novell.com>
15974
15975         * OSXStrucs.cs: Added
15976
15977 2005-01-12  Peter Bartok  <pbartok@novell.com>
15978
15979         * XplatUIWin32.cs:
15980           - Removed PeekMessageFlags
15981           - Implemented SetWindowStyle() method
15982         * XplatUIStructs.cs: Added PeekMessageFlags
15983         * X11Structs: Added missing border_width field to XWindowChanges struct
15984         * XplatUIX11.cs:
15985           - PeekMessage: Now throws exception if flags which are not yet
15986             supported are passed
15987           - Implemented SetWindowStyle() method
15988           - Fixed SetZOrder to handle AfterHwnd properly
15989         * XplatUI.cs: Added SetWindowStyle() method
15990         * XplatUIDriver.cs: Added SetWindowStyle() abstract
15991         * Control.cs:
15992           - Implemented UpdateStyles() method
15993           - Implemented UpdateZOrder() method
15994         * XplatUIOSX.cs: Added SetWindowStyle() stub
15995
15996 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
15997
15998         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
15999         button mouse).
16000
16001
16002 2005-01-11  Jackson Harper  <jackson@ximian.com>
16003
16004         * TreeView.cs: Still need to draw lines to siblings even if out of
16005         the current node is out of the clip.
16006
16007 2005-01-11  Jackson Harper  <jackson@ximian.com>
16008
16009         * TreeView.cs: When setting the hbar/vbar/grip position use
16010         SetBounds so that perform layout is only called once. Also suspend
16011         and resume layout so layout is only done once for all controls.
16012         - Removed some debug fluff
16013         * SizeGrip.cs: Call base implmentation in overriding methods.
16014         - When visibility is changed the drawing buffers are killed so we
16015         need to redraw.
16016
16017 2005-01-11  Jackson Harper  <jackson@ximian.com>
16018
16019         * TreeView.cs: Calculate the open node count while drawing. This
16020         saves us an entire tree traversal for every paint operation. Use
16021         a member var for the open node count so less vars are passed around.
16022
16023 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
16024
16025         * MonthCalendar.cs:
16026         - fixed selection to use mousemove, not mouse polling on timer
16027         * ThemeWin32Classic.cs
16028         - removed redundant unused variable "no_more_content"
16029         
16030 2005-01-11  Peter Bartok  <pbartok@novell.com>
16031
16032         * XplatUIX11.cs (DoEvents): Needs to return when no more events
16033           are pending, so it now calls PeekMessage instead of GetMessage;
16034           implemented a incomplete version of PeekMessage
16035         
16036 2005-01-11  Peter Bartok  <pbartok@novell.com>
16037
16038         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
16039           I18n issues
16040         * TextBoxBase.cs: Added sending of TextChanged event
16041
16042 2005-01-10  Jackson Harper  <jackson@ximian.com>
16043
16044         * TreeView.cs: Try not to draw outside the clipping rectangle on
16045         each node element.
16046
16047 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
16048
16049         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
16050
16051 2005-01-10  Jackson Harper  <jackson@ximian.com>
16052
16053         * TreeView.cs:
16054         - Implement fast scrolling. Now only the newly
16055         exposed nodes are drawn and the old image is moved using the
16056         XplatUI::ScrollWindow method.
16057         - Factor in height of nodes when calculating whether or not the
16058         node is in the clipping rect.
16059
16060 2005-01-10  Jackson Harper  <jackson@ximian.com>
16061
16062         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
16063
16064 2005-01-10  Peter Bartok  <pbartok@novell.com>
16065
16066         * Application.cs: Added temporary hack to resolve all our resize
16067           required issues on startup. This will get fixed properly at
16068           some point in the future
16069
16070 2005-01-10  Jackson Harper  <jackson@ximian.com>
16071
16072         * SizeGrip.cs: New internal class that is used as a sizing
16073         grip control...hence the name.
16074
16075 2005-01-10  Peter Bartok  <pbartok@novell.com>
16076
16077         * Control.cs: Implemented proper TabIndex handling, now assigning
16078           a tabindex when a control is added to a container
16079         * GroupBox.cs (ctor): Now sets the Container style bit, required
16080           for Control.GetNextControl()
16081
16082 2005-01-09  Jackson Harper  <jackson@ximian.com>
16083
16084         * TextBoxBase.cs: Clear window when scrolling (fixes build).
16085
16086 2005-01-09  Peter Bartok <pbartok@novell.com>
16087
16088         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16089           XplatUIX11.cs: Added ability to control ScrollWindow expose and
16090           an overload for ScrollWindow to allow only scrolling a rectangle
16091
16092 2005-01-09  Peter Bartok <pbartok@novell.com>
16093
16094         * Form.cs:
16095           - Implemented SetDesktopBounds method
16096           - Implemented SetDesktopLocation method
16097
16098 2005-01-08  Jackson Harper  <jackson@ximian.com>
16099
16100         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
16101         the node count has changed, this removes to VScroll::Refresh calls
16102         when drawing.
16103
16104 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
16105
16106         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
16107
16108 2005-01-07  Jackson Harper  <jackson@ximian.com>
16109
16110         * TreeNode.cs: Just update the single node when it is
16111         checked. Don't refresh after toggling, the Expand/Collapse already
16112         handles this.
16113         * TreeView.cs: Respect clipping a little more when drawing. Try
16114         not to redraw things that don't need to be redrawn. Just hide the
16115         scrollbars when they are no longer needed instead of removing
16116         them, so they don't have to be created again and again.
16117         
16118 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
16119
16120         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
16121         coordinates to window space to place the caret properly, FIXED.
16122         Implement GetWindowState & SetWindowState
16123
16124 2005-01-06  Peter Bartok <pbartok@novell.com>
16125
16126         * Form.cs:
16127           - Implemented ClientSize property
16128           - Implemented DesktopBounds property
16129           - Implemented DesktopLocation property
16130           - Implemented IsRestrictedWindow property
16131           - Implemented Size property
16132           - Implemented TopLevel property
16133           - Implemented FormWindowState property
16134         * Control.cs:
16135           - Implemented GetTopLevel() method
16136           - Implemented SetTopLevel() method
16137         * X11Structs.cs (Atom):
16138           - Added AnyPropertyType definition
16139           - Added MapState definiton and updated XWindowAttribute struct
16140         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
16141         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
16142         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
16143         * XplatUIWin32.cs:
16144           - Implemented GetWindowState() and SetWindowState() methods
16145           - Fixed Win32GetWindowLong return type
16146         * XplatUIX11.cs:
16147           - Introduced central function for sending NET_WM messages
16148           - Implemented GetWindowState() and SetWindowState() methods
16149         * TextBoxBase.cs (set_Lines):
16150           - Now uses Foreground color for text added via Text property (Duh!)
16151           - Added code to remember programmatically requested size (fixes
16152             behaviour when Multiline is set after Size)
16153           - Added AutoSize logic
16154
16155 2005-01-06  Jackson Harper  <jackson@ximian.com>
16156
16157         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
16158
16159 2005-01-06  Jackson Harper  <jackson@ximian.com>
16160
16161         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
16162         set to less then 0.
16163
16164 2005-01-06  Jackson Harper  <jackson@ximian.com>
16165
16166         * ScrollableControl.cs: Lazy init the scrollbars.
16167         
16168 2005-01-06  Jackson Harper  <jackson@ximian.com>
16169
16170         * Theme.cs: Speed up getting pens and solid brushes, by using
16171         their ARGB as a hash instead of tostring and not calling Contains.
16172
16173 2005-01-06  Peter Bartok <pbartok@novell.com>
16174
16175         * Form.cs:
16176           - Implemented OnActivated and OnDeactivate event trigger
16177           - Implemented Activate() method
16178           - Fixed ShowDialog() to activate the form that was active before
16179             the dialog was shown
16180         * XplatUIX11.cs:
16181           - Added global active_window var that tracks the currently active
16182             X11 window
16183           - Now always grabs Property changes from the root window to always
16184             catch changes on the active window property
16185           - Added code to PropertyNotify handler to send Active/Inactive
16186             messages when state changes. This puts X11 and Win32 en par on
16187             WM_ACTIVATE notifications (except for double notifications when
16188             the user clicks away from our modal window to another one of our
16189             windows)
16190
16191 2005-01-05  Jackson Harper  <jackson@ximian.com>
16192
16193         * ImageList.cs: Implment ctor
16194
16195 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16196
16197         * XplatUIOSX.cs: Implement Activate/SetTopmost
16198
16199 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16200
16201         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
16202
16203 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
16204
16205         * XplatUIOSX.cs: Implement GetActive/SetFocus.
16206
16207 2005-01-05  Peter Bartok <pbartok@novell.com>
16208
16209         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
16210           XplatUIOSX.cs: Added GetActive method to return the currently
16211           active window for the application (or null, if none is active)
16212         * Form.cs:
16213           - Implemented ActiveForm
16214           - Commented out owner assignment for modal dialogs (causes problems
16215             on Win32, since the owner will be disabled)
16216           - Reworked some Active/Focus handling (still incomplete)
16217         * CommonDialog.cs: Commented out owner assignment for modal dialogs
16218           (causes problems on Win32, since the owner will be disabled)
16219         * IWin32Window: Added ComVisible attribute
16220
16221 2005-01-05  Peter Bartok <pbartok@novell.com>
16222
16223         * ToolTip.cs (WndProc): Enable setting focus now that we have the
16224           required XplatUI functions.
16225
16226 2005-01-05  Peter Bartok <pbartok@novell.com>
16227
16228         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
16229           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
16230           to implement focus and activation handling; still incomplete and
16231           with debug output
16232
16233 2005-01-04  Peter Bartok <pbartok@novell.com>
16234
16235         * TextBoxBase.cs: Changed access level for Document property to
16236           match switch to internal for TextControl
16237
16238 2005-01-04  Peter Bartok <pbartok@novell.com>
16239
16240         * AccessibleObject: Added ComVisible attribute
16241
16242 2005-01-04  Jackson Harper  <jackson@ximian.com>
16243
16244         * X11Keyboard.cs: Remove unneeded var.
16245
16246 2005-01-04  Jackson Harper  <jackson@ximian.com>
16247
16248         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
16249         but PAINT.
16250         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
16251         ClientMessage. This makes apps exit cleanly (more often).
16252         
16253 2005-01-04  Jackson Harper  <jackson@ximian.com>
16254
16255         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
16256         handling focus, return correct colors and fonts,
16257         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
16258         handle selection, horizontal scrolling, and mouse interaction.
16259
16260 2005-01-04  Peter Bartok <pbartok@novell.com>
16261
16262         * ICommandExecutor.cs: Added
16263         * IDataGridColumnStyleEditingNotificationService.cs: Added
16264         * IFeatureSupport.cs: Added
16265         * IFileReaderService.cs: Added
16266         * IDataObject.cs: Added ComVisible attribute
16267         * AmbientProperties.cs: Added
16268         * BaseCollection.cs: Added missing attributes
16269         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
16270         * BaseCollection.cs: Added missing attributes
16271         * Binding.cs: Added TypeConverter attribute
16272         * BindingContext.cs: Added DefaultEvent attribute
16273         * BindingsCollection.cs: Added DefaultEvent attribute
16274         * Button.cs: Added DefaultValue attribute
16275         * DragEventArgs.cs: Added ComVisible attribute
16276         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
16277         * KeyEventArgs.cs: Added ComVisible attribute
16278         * KeyPressEventArgs.cs: Added ComVisible attribute
16279         * MouseEventArgs.cs: Added ComVisible attribute
16280         * NavigateEventArgs.cs: Added
16281         * NavigateEventHandler.cs: Added
16282         * FeatureSupport.cs: Added
16283         * OSFeature.cs: Added
16284         * Theme.cs: Added abstract Version property to support OSFeature
16285         * ThemeWin32Classic.cs: Added Version property to
16286           support OSFeature.Themes
16287         * ProgressBar.cs: Removed OnPaintBackground override, not required since
16288           the proper styles to avoid background drawing are set, also doesn't
16289           match MS signature
16290         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
16291         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
16292         * ScrollEventArgs.cs: Added ComVisible attribute
16293         * SplitterEventArgs.cs: Added ComVisible attribute
16294         * AccessibleSelection.cs: Added Flags attribute
16295         * Appearance.cs: Added ComVisible attribute
16296         * Border3DSide.cs: Added ComVisible attribute
16297         * Border3DStyle.cs: Added ComVisible attribute
16298         * BorderStyle.cs: Added ComVisible attribute
16299         * DragAction.cs: Added ComVisible attribute
16300         * ErrorBlinkStyle.cs: Added
16301         * ScrollEventType.cs: Added ComVisible attribute
16302         * AnchorStyles.cs: Added Editor attribute
16303         * DockStyle.cs: Added Editor attribute
16304         * HorizontalAlignment.cs: Added ComVisible attribute
16305         * HelpEventArgs.cs: Added ComVisible attribute
16306         * PaintEventArgs.cs: Added IDisposable
16307
16308 2005-01-04  Peter Bartok <pbartok@novell.com>
16309
16310         * TextControl.cs: Switched Line, LineTag and Document classes to
16311           internal
16312
16313 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16314
16315         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
16316         Simple mode, fixes, IntegralHeight, etc.
16317
16318 2005-01-04  Peter Bartok <pbartok@novell.com>
16319
16320         * TextBoxBase.cs: Using proper font variable now
16321
16322 2005-01-04  Peter Bartok <pbartok@novell.com>
16323
16324         * Form.cs (ShowDialog): Set parent to owner, if provided
16325         * GroupBox.cs: Removed unused vars
16326         * TextControl.cs:
16327           - Added GetHashCode() for Document and LineTag classes
16328           - Removed unused variables
16329           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
16330             to allow translation between continuous char position and line/pos
16331         * CheckBox.cs: Removed vars that are provided by base class
16332         * RadioButton.cs: Removed vars that are provided by base class, added
16333           new keyword where required
16334         * LinkLabel.cs: Added new keyword where required
16335         * Control.cs (WndProc): Removed unused variable
16336         * TextBoxBase.cs:
16337           - Finished SelectionLength property
16338           - Implemented SelectionStart property
16339           - Implemented Text property
16340           - Removed unused vars
16341         * MessageBox.cs: Added new keyword where required
16342         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
16343           WndProc signature
16344         * MenuAPI.cs: Added new keyword where required
16345         * ButtonBase.cs: Removed vars that are provided by base class, added
16346           new keyword where required
16347         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
16348           argument to double, to allow compiling with csc 2.0 (Atsushi ran
16349           into this)
16350         * Application.cs (Run): Now triggers the ThreadExit event
16351         * CommonDialog.cs: Added new keyword where required; now properly sets
16352           parent (owner) for dialog
16353         * XplatUIX11.cs: Commented out unused vars
16354         * StatusBar.cs: Fixed signature for Text property
16355         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
16356
16357 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16358
16359         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
16360         TrackBar.cs, MonthCalendar.cs: remove unused vars
16361
16362 2005-01-03  Jackson Harper  <jackson@ximian.com>
16363
16364         * ThemeWin32Classic.cs:
16365         * X11Keyboard.cs: Remove unused vars.
16366
16367 2005-01-03  Peter Bartok  <pbartok@novell.com>
16368
16369         * TextBox.cs:
16370           - set_Text: Tied into TextControl
16371           - set_TextAlignment: Tied into TextControl
16372         * TextControl.cs:
16373           - Added alignment properties and implemented alignment handling
16374             and drawing (still has a bug, not generating proper expose events)
16375           - Added new Line() constructor to allow passing the line alignment
16376           - Fixed selection setting, properly handling end<start now
16377           - Added aligment considerations to RecalculateDocument()
16378         * TextBoxBase.cs:
16379           - Now properly enforces control height for single line controls
16380           - Added support for CharacterCasing
16381           - Added IsInputKey override
16382           - Fixed Keys.Enter logic
16383           - Added SetBoundsCore override
16384           - Fixed mouse selection handling
16385
16386 2005-01-03  Jackson Harper  <jackson@ximian.com>
16387
16388         * TreeView.cs:
16389           - Collapse and uncheck all nodes when CheckBoxes is disabled.
16390           - Checkboxes are always aligned to the bottom of the node,
16391           regardless of item height.
16392           - Use the node bounds to draw the text so we can center it when
16393           the item height is greater then the font height.
16394           - Node::Bounds are only the text part of the node.
16395         * TreeNode.cs: New method to combine collapsing and unchecking all
16396           nodes recursively.
16397
16398 2005-01-02  Jackson Harper  <jackson@ximian.com>
16399
16400         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
16401         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
16402         tree when a check is changed. TODO: Only refresh the checked node.
16403
16404 2004-12-30  Jackson Harper  <jackson@ximian.com>
16405
16406         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
16407         * TreeNode.cs: When collapsing make sure to never collapse the
16408         root node.
16409
16410 2004-12-29  Jackson Harper  <jackson@ximian.com>
16411
16412         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
16413         
16414 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
16415
16416         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
16417
16418 2004-12-28  Peter Bartok  <pbartok@novell.com>
16419
16420         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
16421           not yet assigned
16422
16423 2004-12-28  Peter Bartok  <pbartok@novell.com>
16424
16425         * Control.cs (WndProc): Added WM_HELP handler, now generates
16426           HelpRequested event
16427         * Form.cs: Added HelpButton property and required support code
16428         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
16429
16430 2004-12-28  Peter Bartok  <pbartok@novell.com>
16431
16432         * CommonDialog.cs:
16433           - Made DialogForm.owner variable internal
16434           - Added check to ensure owner form is set before setting
16435             owner properties in CreateParams
16436
16437 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
16438
16439         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
16440           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
16441           GetCursorPos.  Fix major visibility issues.  Rework the windowing
16442           system to support borderless/titleless windows (implements menus).
16443           Fix GetWindowPos.  Implement initial background color support for
16444           views.
16445
16446 2004-12-28  Peter Bartok  <pbartok@novell.com>
16447
16448         * Form.cs (get_CreateParams): Make sure we have an owner before using
16449           the owner variable. Implement proper default if no owner exists
16450
16451 2004-12-28  Peter Bartok  <pbartok@novell.com>
16452
16453         * In preparation for making Managed.Windows.Forms the default build target
16454           for System.Windows.Forms, the following stubbed files were added.
16455           Dialogs are currently being implemented by contributors and are only
16456           short-term place holders.
16457         * ColorDialog.cs: Initial check-in (minmal stub)
16458         * DataGrid.cs: Initial check-in (minimal stub)
16459         * DataGridLineStyle.cs: Initial check-in (minimal stub)
16460         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
16461         * DataGridTableStyle.cs: Initial check-in (minimal stub)
16462         * FontDialog.cs: Initial check-in (minimal stub)
16463         * FileDialog.cs: Initial check-in (minimal stub)
16464         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
16465         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
16466         * OpenFileDialog: Initial check-in (minimal stub)
16467         * IComponentEditorPageSite.cs: Initial check-in
16468         * Splitter.cs: Initial check-in (for Jackson)
16469         * SplitterEventArgs.cs: Initial check-in (for Jackson)
16470         * SplitterEventHandler.cs: Initial check-in (for Jackson)
16471         * TextBox.cs: Initial check-in; still needs some wiring to
16472           TextControl backend
16473         * Form.cs: Implemented ControlBox property
16474         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
16475         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
16476         * TextControl.cs: Added selection functionality; added todo header
16477         * TextBoxBase.cs:
16478           - Implemented Lines property
16479           - Implemented TextHeight property
16480           - Implemented SelectedText property
16481           - Implemented SelectionLength property
16482           - Implemented SelectAll method
16483           - Implemented ToString method
16484           - Removed and cleaned up some debug code
16485           - Implemented (still buggy) mouse text selection
16486
16487 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
16488
16489         * ComboBox.cs: Complete DropDownList implementation, fixes.
16490
16491 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
16492
16493         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
16494         * ComboBoxStyle.cs: ComboBoxStyle enum
16495         * ComboBox.cs: Initial work on ComboBox control
16496
16497 2004-12-21  Peter Bartok  <pbartok@novell.com>
16498
16499         * Control.cs (ctor, CreateParams): Moved setting of is_visible
16500           forward so that anything that creates a window gets the default,
16501           also no longer uses Visible property in CreateParams to avoid
16502           walking up the parent chain and possibly get the wrong visible
16503           status. Fixed IsVisible to no longer walk up to the parent.
16504
16505 2004-12-21  Peter Bartok  <pbartok@novell.com>
16506
16507         * Form.cs (ShowDialog): Unset modality for the proper window
16508  
16509 2004-12-20  Peter Bartok  <pbartok@novell.com>
16510
16511         * CommonDialog.cs: Initial check-in
16512
16513 2004-12-20  Peter Bartok  <pbartok@novell.com>
16514
16515         * Control.cs (Visible): Now uses the parent window instead of the
16516           client area window for the property
16517
16518         * Form.cs
16519           - ShowDialog(): Now uses the proper window for modality
16520           - The default visibility state for the form parent is now false. This
16521             will prevent the user from seeing all the changes to the form and
16522             its controls before the application hits Application.Run()
16523           - Removed some stale commented out code
16524
16525         * NativeWindow.cs:
16526           - Added FindWindow() method to have a method to check for existence
16527             of a window handle
16528           - Added ability to override default exception handling (for example
16529             when debugging with VS.Net; to do this the ExternalExceptionHandler
16530             define must be set
16531           - Removed some useless debug output
16532
16533         * XplatUIX11.cs:
16534           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
16535             not working as expected
16536           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
16537             property to allow switching back to the modal window if focus is
16538             given to another one of our windows (Application Modal)
16539           - Now only sets override_redirect if we create a window
16540             without WS_CAPTION
16541           - Moved EventMask selection before mapping of newly created window
16542             so we can catch the map event as well
16543           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
16544           - Added various Atom related DllImports
16545           - Implemented Exit() method
16546           - .ctor() : No longer shows window if WS_VISIBLE is not defined
16547             in the CreateParams
16548
16549         * MessageBox.cs: Now properly deals with the FormParent window by
16550           providing an override the FormParent CreateParams property to
16551           set as POPUP instead of OVERLAPPED window.
16552
16553 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16554
16555         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
16556         Minor code cleanup.
16557
16558 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16559         
16560         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
16561
16562 2004-12-18  Peter Bartok  <pbartok@novell.com>
16563
16564         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
16565           implementing SetModal() method
16566
16567 2004-12-18  Peter Bartok  <pbartok@novell.com>
16568
16569         * X11Structs.cs (XGCValues): Fixed type of function element
16570         * XplatUI.cs: Added ScrollWindow() method
16571         * XplatUIDriver.cs: Added ScrollWindow() abstract
16572         * XplatUIWin32.cs: Implemented ScrollWindow() method
16573         * XplatUIX11.cs: Implemented ScrollWindow() method
16574         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
16575
16576 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16577
16578         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
16579         Some more keyboard support (INCOMPLETE)
16580
16581 2004-12-17  Peter Bartok  <pbartok@novell.com>
16582
16583         * TextControl.cs:
16584         - Added color attribute to line tags.
16585         - Added color argument to all functions dealing with tags
16586         - Added color argument support to various functions
16587         - Fixed miss-calculation of baseline/shift in certain circumstances
16588
16589         * TextBoxBase.cs: Added new color option to test code
16590
16591 2004-12-17  Jackson Harper  <jackson@ximian.com>
16592
16593         * TreeNode.cs:
16594         * MonthCalendar.cs: Signature fixes
16595
16596 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16597
16598         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
16599         keyboard event moved it.  Create a new graphics context for each paint resolves this
16600
16601 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16602
16603         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
16604         Make caret exist and go blink blink.  Initial keyboard support.
16605         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
16606         works.
16607
16608 2004-12-17  Jackson Harper  <jackson@ximian.com>
16609
16610         * XplatUIStructs.cs: Updated set of virtual keycodes.
16611         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
16612
16613 2004-12-17  Jackson Harper  <jackson@ximian.com>
16614
16615         * XplatUIX11.cs: Prune old keyboard code.
16616
16617 2004-12-17  Jackson Harper  <jackson@ximian.com>
16618
16619         * XplatUIX11.cs: When generating mouse wparams get the modifier
16620         keys from the ModifierKeys property.
16621
16622 2004-12-17  Jackson Harper  <jackson@ximian.com>
16623
16624         * X11Keyboard.cs: Send up/down input when generating
16625         messages. Remove some unused vars.
16626
16627 2004-12-17  Jackson Harper  <jackson@ximian.com>
16628
16629         * TabControl.cs:
16630         * TreeView.cs: get rid of warnings.
16631
16632 2004-12-17  Jackson Harper  <jackson@ximian.com>
16633
16634         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
16635
16636 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
16637
16638         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
16639           CheckedListBox.cs: Implementation
16640
16641 2004-12-17  Peter Bartok  <pbartok@novell.com>
16642
16643         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
16644
16645 2004-12-16  Peter Bartok  <pbartok@novell.com>
16646
16647         * TextControl.cs:
16648           - InsertCharAtCaret(): Fixed start pos fixup
16649           - CaretLine_get: No longer derives the line from the tag, the tag
16650             could be stale if lines in the document have been added or deleted
16651           - RebalanceAfterDelete(): Fixed bug in balancing code
16652           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
16653           - Line.Streamline(): Now can also elminate leading empty tags
16654           - DumpTree(): Added a few more tests and prevented exception on
16655             uninitialized data
16656           - Added Debug section for Combining lines
16657           - Delete(): Now copies all remaining properties of a line
16658           
16659         * TextBoxBase.cs:
16660           - Left mousebutton now sets the caret (and middle button still acts
16661             as formatting tester, which must go away soon)
16662           - Added Debug section for Deleting/Combining lines
16663           - Fixed calculations for UpdateView after Combining lines
16664
16665 2004-12-16  Peter Bartok  <pbartok@novell.com>
16666
16667         * TextControl.cs: Now properly aligns text on a baseline, using the
16668           new XplatUI.GetFontMetrics() method. Simplified several calculations
16669         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
16670           defined
16671
16672 2004-12-16  Peter Bartok  <pbartok@novell.com>
16673
16674         * XplatUI.cs: Added GetFontMetrics() method
16675         * XplatUIDriver.cs: Added GetFontMetrics() abstract
16676         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
16677           into libgdiplus, our private GetFontMetrics function
16678         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
16679         * XplatUIWin32.cs: Implemented GetFontMetrics() method
16680
16681 2004-12-16  Jackson Harper  <jackson@ximain.com>
16682
16683         * XplatUIStruct.cs: Add enum for dead keys
16684         * X11Keyboard.cs: Map and unmap dead keys.
16685
16686 2004-12-16  Jackson Harper  <jackson@ximian.com>
16687
16688         * X11Keyboard.cs: Detect and use the num lock mask.
16689
16690 2004-12-16  Peter Bartok  <pbartok@novell.com>
16691
16692         * Control.cs (CreateGraphics): Added check to make sure the
16693           handle of the window exists before calling Graphics.FromHwnd()
16694
16695 2004-12-16  Peter Bartok  <pbartok@novell.com>
16696
16697         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
16698           contains a lot of code that's not supposed to be there for the
16699           real thing, but required for developing/testing the textbox
16700           backend.
16701
16702 2004-12-16  Peter Bartok  <pbartok@novell.com>
16703
16704         * TextControl.cs:
16705         - Fixed Streamline method
16706         - Added FindTag method to Line
16707         - Added DumpTree method for debugging
16708         - Added DecrementLines() method for deleting lines
16709         - Fixed UpdateView to update the cursor to end-of-line on single-line
16710           updates
16711         - Added PositionCaret() method
16712         - Fixed MoveCaret(LineDown) to move into the last line, too
16713         - Added InsertChar overload
16714         - Fixed InsertChar tag offset calculations
16715         - Added DeleteChar() method
16716         - Added Combine() method for folding lines
16717         - Fixed Delete() method, no longer allocates wasted Line object and
16718           now copies all properties when swapping nodes
16719         - Delete() method now updates document line counter
16720
16721 2004-12-15  Jackson Harper  <jackson@ximian.com>
16722
16723         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
16724         * X11Keyboard.cs: Expose the currently selected modifier keys
16725         through a property.
16726
16727 2004-12-15  Peter Bartok  <pbartok@novell.com>
16728
16729         * TextControl.cs: Initial check-in. Still incomplete
16730
16731 2004-12-15  Jackson Harper  <jackson@ximian.com>
16732
16733         * TreeNode.cs:
16734         * TreeView.cs: Fix build on csc (second time today ;-))
16735
16736 2004-12-15  Jackson Harper  <jackson@ximian.com>
16737
16738         * TreeView.cs: Store the treenodes plus/minus box bounds when it
16739         is calculated and use this for click testing.
16740         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
16741
16742 2004-12-15  Jackson Harper  <jackson@ximian.com>
16743
16744         * TreeView.cs: Pass the nodes image index to the image list when
16745         drawing that image.
16746
16747 2004-12-15  Jackson Harper  <jackson@ximian.com>
16748
16749         * X11Keyboard.cs: Set messages hwnd.
16750         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
16751         post_message calls.
16752
16753 2004-12-15  Jackson Harper  <jackson@ximian.com>
16754
16755         * X11Keyboard.cs: Fix to compile with csc.
16756         
16757 2004-12-15  Jackson Harper  <jackson@ximian.com>
16758
16759         * X11Structs.cs: Add key mask values
16760         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
16761         * X11Keyboard.cs: New file - Extrapolates and interpolates key
16762         down/up foo into WM_CHAR foo
16763         * KeyboardLayouts.cs: Common keyboard layouts
16764         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
16765         post messages into the main queue.
16766
16767 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
16768
16769         * Button.cs: implement ProcessMnemonic
16770         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
16771           brushes everytime
16772         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
16773         * ButtonBase.cs: Show HotkeyPrefix (not the &)
16774
16775 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
16776         
16777         * MonthCalendar.cs: Implemented click-hold for next/previous month
16778           and date selection
16779           
16780 2004-12-11  Peter Bartok  <pbartok@novell.com>
16781
16782         * X11Structs.cs:
16783           - Added XKeyboardState (moved from XplatUIX11.cs)
16784           - Added XCreateGC related enums and structures
16785           - Added GXFunction for XSetFunction
16786
16787         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
16788
16789         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
16790           CaretVisible() calls
16791
16792         * ToolTip.cs: Added code to prevent stealing focus from app windows
16793
16794         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
16795           DestroyCaret, SetCaretPos and CaretVisible)
16796
16797         * XplatUIX11.cs:
16798           - Added implementation for caret functions
16799           - Moved hover variables into a struct, to make it a bit easier
16800             on the eyes and to debug
16801           - Removed XKeyboardState (moved to XplatUIX11.cs)
16802           - Moved Keyboard properties into the properties region
16803
16804         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
16805           call to get a graphics context for our control
16806
16807         * XplatUIOSX.cs: Added empty overrides for the new caret functions
16808
16809         * TreeView.cs: Fixed bug. No matter what color was set it would always
16810           return SystemColors.Window
16811
16812         * XplatUIWin32.cs: Implemented caret overrides
16813
16814 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
16815
16816         * ListBox.cs: fire events, implement missing methods and properties,
16817         sorting.
16818
16819 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
16820
16821         * MonthCalendar.cs: invalidation bug fixing
16822         * ThemeWin32Classic.cs: paint fixing
16823
16824 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
16825
16826         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
16827         prepare the CGContextRef there now.
16828
16829 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
16830
16831         * MonthCalendar.cs:
16832           - optimisationL only invalidate areas that have changed
16833         * ThemeWin32Classic.cs:
16834           - only paint parts that intersect with clip_area
16835
16836 2004-12-09  Peter Bartok  <pbartok@novell.com>
16837
16838         * Application.cs: Undid changes from r37004 which cause problems
16839         on X11
16840
16841 2004-12-09  Ravindra  <rkumar@novell.com>
16842
16843         * ToolBar.cs: Added support for displaying ContextMenu
16844         attached to a button on ToolBar.
16845         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
16846         property.
16847
16848 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
16849
16850         * Label.cs: autosize works in text change and removes unnecessary
16851         invalidate
16852
16853 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
16854
16855         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16856         remove warnings
16857
16858 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
16859
16860         * XplatUIOSX.cs: Added mouse move/click/grab support
16861         Remove some debugging WriteLines not needed anymore.
16862         Add window resizing/positioning.
16863         Fix visibility on reparenting.
16864
16865 2004-12-08  Peter Bartok  <pbartok@novell.com>
16866
16867         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
16868
16869 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
16870
16871         * XplatUIOSX.cs: Initial checkin
16872         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
16873
16874 2004-12-03  Ravindra <rkumar@novell.com>
16875
16876         * ListView.cs: Added some keybindings and fixed scrolling.
16877         ScrollBars listen to ValueChanged event instead of Scroll
16878         Event. This would let us take care of all changes being
16879         done in the scrollbars' values programmatically or manually.
16880         * ListView.cs (CanMultiselect): Added a check for shift key.
16881         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
16882         * ListViewItem.cs (Clone): Fixed. We need to make a copy
16883         of ListViewSubItemCollection as well.
16884
16885 2004-12-06  Peter Bartok <pbartok@novell.com>
16886
16887         * Control.cs (Parent): Added check and exception to prevent
16888         circular parenting
16889
16890 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
16891
16892         * ListBox.cs: implemented clipping, selection single and multiple,
16893         bug fixing
16894
16895 2004-12-03  Ravindra <rkumar@novell.com>
16896
16897         * ListView.cs (ListView_KeyDown):
16898         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
16899         when CTRL key is pressed.
16900         * ListViewItem.cs (Selected): Fixed setting the property.
16901
16902 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
16903
16904         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
16905
16906         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
16907         MinimizeBox, ShowInTaskbar, TopMost properties.
16908
16909         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
16910         will be implemented).
16911
16912 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
16913
16914         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
16915
16916         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
16917         tests.
16918         
16919         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
16920         
16921         * TreeView.cs: BackColor is Colors.Window.
16922
16923 2004-12-01  Jackson Harper  <jackson@ximian.com>
16924
16925         * TreeView.cs: When resizing the tree if the user is making it
16926         smaller we don't get expose events, so we need to handle adding
16927         the horizontal scrollbar in the size changed handler as well as
16928         the expose handler.
16929
16930 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
16931
16932         * DrawItemState.cs: fixes wrong enum values
16933
16934 2004-12-01  Jackson Harper  <jackson@ximian.com>
16935
16936         * TreeView.cs: Resize the hbar as well as the vbar on resize.
16937
16938 2004-12-01  Jackson Harper  <jackson@ximian.com>
16939
16940         * NodeLabelEditEventArgs.cs:
16941         * NodeLabelEditEventHandler.cs:
16942         * OpenTreeNodeEnumerator.cs:
16943         * TreeNode.cs:
16944         * TreeNodeCollection.cs:
16945         * TreeView.cs:
16946         * TreeViewAction.cs:
16947         * TreeViewCancelEventArgs.cs:
16948         * TreeViewCancelEventHandler.cs:
16949         * TreeViewEventArgs.cs:
16950         * TreeViewEventHandler.cs: Initial implementation.
16951
16952 2004-12-01  Ravindra <rkumar@novell.com>
16953
16954         * ListView.cs (CalculateListView): Fixed scrolling related
16955         calculations. Also, removed some debug statements from other
16956         places.
16957         * ListViewItem.cs: Changed access to 'selected' instance variable
16958         from private to internal.
16959         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
16960
16961 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
16962
16963         * ThemeWin32Classic.cs: remove cache of brush and pens for
16964         specific controls and use the global system, fixes scrollbutton
16965         bugs (for small sizes, disabled, etc)
16966         
16967         * ScrollBar.cs: does not show the thumb for very small controls
16968         (as MS) and allow smaller buttons that the regular size
16969
16970 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
16971
16972         * UpDownBase.cs: Add abstract methods for the interface.
16973         Add new virtual methods (need to be hooked up to TextEntry when it
16974         exists).
16975         Add override methods for most features.
16976         Computes the size, forces the height of the text entry.
16977
16978         * NumericUpDown.cs: Put here the current testing code.
16979
16980         * Set eol-style property on all files that do not have mixed line
16981         endings, to minimize the future problems.  There are still a few
16982         files with mixed endings, and someone should choose whether they
16983         want to move it or not.
16984
16985 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
16986
16987         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
16988         System.Colors
16989         
16990 2004-11-30  Ravindra <rkumar@novell.com>
16991
16992         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
16993         drawing and replaced use of SystemColors by theme colors.
16994         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
16995         * ListView.cs (ListViewItemCollection.Add): Throw exception when
16996         same ListViewItem is being added more than once.
16997
16998 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
16999
17000         * MonthCalendar.cs:
17001           - ControlStyles love to make the control not flicker
17002           
17003 2004-11-30  Peter Bartok  <pbartok@novell.com>
17004
17005         * CharacterCasing.cs: Added
17006
17007 2004-11-29  Peter Bartok  <pbartok@novell.com>
17008
17009         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17010           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
17011           I am removing these files as they conflict with already completed
17012           work. While it is fantastic to get contributions to MWF, I
17013           respectfully ask that everyone please coordinate their contributions
17014           through mono-winforms-list or #mono-winforms at this time. We're
17015           explicitly avoiding stubbing and don't want controls that don't have
17016           their basic functionality implemented in svn. Please also see
17017           http://www.mono-project.com/contributing/winforms.html
17018
17019
17020 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
17021
17022         * Application.cs (ModalRun): Don't hang after exit.
17023
17024         * Theme.cs: New TreeViewDefaultSize property.
17025
17026         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
17027         with less hardcoded SystemColors constant.
17028         Implemented TreeViewDefaultSize.
17029
17030         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
17031         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
17032
17033
17034 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
17035
17036         * MonthCalendar.cs:
17037           - Fix NextMonthDate and PrevMonthDate click moving calendar
17038
17039 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17040
17041         * MonthCalendar.cs:
17042           - Fix usage of ScrollChange Property when scrolling months
17043
17044 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
17045
17046         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
17047          - Fixes menu destroying
17048          - Support adding and removing items on already created menus
17049
17050 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
17051
17052         * MonthCalendar.cs:
17053           - Re-worked all bolded dates handling to match win32
17054         * ThemeWin32Classic.cs:
17055           - Fixed rendering with bolded dates
17056
17057 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
17058
17059         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
17060         - Horizontal scroolbar
17061         - Multicolumn
17062         - Fixes
17063
17064
17065 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
17066
17067         * MonthCalendar.cs:
17068           - Fix Usage of MaxSelectionCount from SelectionRange
17069           - Fixed Shift + Cursor Selection
17070           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
17071           - Fixed normal cursor selection to be compat with win32
17072           - Fixed Shift + Mouse Click selection
17073
17074 2004-11-24  Peter Bartok <pbartok@novell.com>
17075
17076         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
17077         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
17078         * XplatUIX11.cs:
17079           - CreatedKeyBoardMsg now updates keystate with Alt key
17080           - Added workaround for timer crash to CheckTimers, Jackson will
17081             develop a proper fix and check in later
17082           - Implemented DispatchMessage
17083           - Removed calling the native window proc from GetMessage (call
17084             now moved to DispatchMessage)
17085
17086         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
17087           the keydata (Fixes bug #69831)
17088
17089         * XplatUIWin32.cs:
17090           - (DispatchMessage): Switched to return IntPtr
17091           - Added DllImport for SetFocus
17092
17093 2004-11-24  Ravindra <rkumar@novell.com>
17094
17095         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
17096         background drawing.
17097         * ListViewItem.cs: Fixed various properties, calculations
17098         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
17099         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
17100         and some internal properties. Fixed MouseDown handler and Paint
17101         method.
17102
17103 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17104
17105         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
17106
17107 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17108
17109         * ContainerControl.cs: correct accidental check in of local changes
17110
17111 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
17112
17113         * ThemeWin32Classic.cs:
17114                 - Fixed Drawing Last month in grid (sometimes not showing)
17115         * MonthCalendar.cs:
17116                 - Fixed title width calculation bug (makeing title small)
17117
17118 2004-11-23  Peter Bartok <pbartok@novell.com>
17119
17120         * XplatUIX11.cs:
17121           - Added generation of WM_MOUSEHOVER event
17122           - Added missing assignment of async_method atom
17123           - Fixed WM_ERASEBKGND; now only redraws the exposed area
17124
17125 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17126
17127         * ThemeWin32Classic.cs:
17128                 - Fixed Drawing of today circle when showtodaycircle not set
17129                 - fixed drawing of first and last month in the grid (gay dates)
17130         * MonthCalendar.cs:
17131                 - Fixed Drawing of today circle
17132                 - Fixed drawing of grady dates
17133                 - Fixed HitTest for today link when ShowToday set to false
17134                 - Fixed DefaultSize to obey ShowToday
17135
17136 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
17137
17138         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
17139         * System.Windows.Forms/Theme.cs
17140         * MonthCalendar.cs: added for MonthCalendar
17141         * SelectionRange.cs: added for MonthCalendar
17142         * Day.cs: added for MonthCalendar: added for MonthCalendar
17143         * DateRangeEventArgs.cs: added for MonthCalendar
17144         * DateRangeEventHandler.cs: added for MonthCalendar
17145
17146 2004-11-22  Ravindra <rkumar@novell.com>
17147
17148         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
17149         property.
17150
17151 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
17152
17153         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
17154         event handler.
17155         
17156         * NumericUpDown.cs: Added new implementation.
17157         * UpDownBase.cs: Added new implementation.
17158
17159         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
17160         implementations.
17161         
17162         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
17163         implementations.
17164
17165         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
17166         methods.
17167
17168 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
17169
17170         * Timer.cs  (Dispose): Should call the base dispose when
17171         overriding.
17172
17173 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17174
17175         * ScrollBar.cs: updates thumb position when max, min or increment
17176         is changed
17177
17178 2004-11-21  Ravindra <rkumar@novell.com>
17179
17180         * ListView.cs: Implemented item selection, activation and
17181         column header style. Fixed properties to do a redraw, if
17182         required. Added support for MouseHover, DoubleClick, KeyDown
17183         and KeyUp event handling and some minor fixes.
17184         * ListViewItem.cs: Fixed constructor.
17185         * ThemeWin32Classic.cs: Improved drawing for ListView.
17186
17187 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
17188
17189         * ThemeWin32Classic.cs: initial listbox drawing code
17190         * DrawMode.cs: new enumerator
17191         * ListControl.cs: stubbed class
17192         * ListBox.cs: initial implementation
17193         * Theme.cs: new methods definitions
17194         * SelectionMode.cs: new enumerator
17195
17196 2004-11-17  Peter Bartok  <pbartok@novell.com>
17197
17198         * XplatUIWin32.cs: Added double-click events to the class style
17199         * Control.cs (WndProc):
17200           - Added handling of click-count to MouseDown/ MouseUp events.
17201           - Added handling of middle and right mouse buttons
17202           - Removed old debug code
17203
17204 2004-11-17  Jackson Harper  <jackson@ximian.com>
17205
17206         * XplatUIX11.cs: Use the new Mono.Unix namespace.
17207
17208 2004-11-17  Ravindra <rkumar@novell.com>
17209
17210         * ListView.cs: Added event handling for MouseMove/Up/Down.
17211         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
17212         * ThemeWin32Classic.cs: We need to clear the graphics context and
17213         draw column header in a proper state.
17214
17215
17216 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
17217
17218         *  Menu.cs: fixes signature
17219
17220 2004-11-16  Peter Bartok  <pbartok@novell.com>
17221
17222         * XplatUIX11.cs (GetMessage): Implemented generation of
17223           double click mouse messages
17224
17225 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
17226
17227         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
17228         not by menu
17229
17230 2004-11-11  Peter Bartok  <pbartok@novell.com>
17231
17232         * HandleData.cs: Added Visible property
17233         * XplatUIX11.cs (IsVisible): Now uses Visible property from
17234           HandleData
17235         * XplatUIX11.cs: Removed old debug leftovers
17236         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
17237         * Control.cs (WndProc): Removed old debug leftovers,
17238           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
17239           needed WM_SIZE handling
17240
17241 2004-11-11  Jackson Harper  <jackson@ximian.com>
17242
17243         * OwnerDrawPropertyBag.cs:
17244         * TreeViewImageIndexConverter.cs: Initial implementation
17245
17246 2004-11-10  Jackson Harper  <jackson@ximian.com>
17247
17248         * ThemeWin32Classic.cs:
17249         * TabControl.cs: instead of moving tabs by the slider pos just
17250         start drawing at the tab that is offset by the slider. This way
17251         scrolling always moves by exactly one tab.
17252
17253 2004-11-10  Jackson Harper  <jackson@ximian.com>
17254
17255         * TabControl.cs: You can only scroll left when the slider has
17256         already ben moved right.
17257         
17258 2004-11-10  Jackson Harper  <jackson@ximian.com>
17259
17260         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
17261         the clip area.
17262         
17263 2004-11-10  Jackson Harper  <jackson@ximian.com>
17264
17265         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
17266         clip area.
17267         
17268 2004-11-09  Jackson Harper  <jackson@ximian.com>
17269
17270         * TabControl.cs (CalcXPos): New helper method so we can determine
17271         the proper place to start drawing vertical tabs.
17272         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
17273         
17274 2004-11-09  Jackson Harper  <jackson@ximian.com>
17275
17276         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
17277         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
17278         and Bottom, left and right are illegal values for this and
17279         multiline is enabled when the alignment is set to left or right.
17280         (DrawTab): Each alignment block should draw the text itself now
17281         because Left requires special love. Also add rendering for Left
17282         aligned tabs.
17283         
17284 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
17285
17286         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
17287         does not destroy the windows, removes debugging messages
17288
17289 2004-11-09  jba  <jba-mono@optusnet.com.au>
17290
17291         * ThemeWin32Classic.cs
17292         (DrawButtonBase): Fix verticle text rect clipping in windows
17293         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17294         rendering and incorrect text rect clipping
17295         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
17296         rendering and incorrect text rect clipping
17297         
17298 2004-11-08  Jackson Harper  <jackson@ximian.com>
17299
17300         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
17301         bottom when they are bottom aligned so the bottoms of the tabs get
17302         displayed.
17303         * TabControl.cs (DropRow): Move rows up instead of down when the
17304         tab control is bottom aligned.
17305
17306 2004-11-08 13:59  pbartok
17307
17308         * XplatUIX11.cs:
17309           - Added handling for various window styles
17310           - Added handling for popup windows
17311           - Added SetTopmost handling
17312
17313 2004-11-08 13:55  pbartok
17314
17315         * XplatUIWin32.cs:
17316           - Added argument to SetTopmost method
17317           - Fixed broken ClientToScreen function
17318
17319 2004-11-08 13:53  pbartok
17320
17321         * XplatUIStructs.cs:
17322           - Added missing WS_EX styles
17323
17324 2004-11-08 13:53  pbartok
17325
17326         * XplatUI.cs, XplatUIDriver.cs:
17327           - Added argument to SetTopmost
17328
17329 2004-11-08 13:52  pbartok
17330
17331         * X11Structs.cs:
17332           - Added XSetWindowAttributes structure
17333           - Improved XWindowAttributes structure
17334           - Added SetWindowValuemask enum
17335           - Added window creation arguments enum
17336           - Added gravity enum
17337           - Added Motif hints structure
17338           - Added various Motif flags and enums
17339           - Added PropertyMode enum for property functions
17340
17341 2004-11-08 13:50  pbartok
17342
17343         * Form.cs:
17344           - Fixed arguments for updated SetTopmost method
17345
17346 2004-11-08 13:49  pbartok
17347
17348         * ToolTip.cs:
17349           - Fixed arguments for updated SetTopmost function
17350           - Fixed usage of PointToClient
17351
17352 2004-11-08 13:44  pbartok
17353
17354         * MenuAPI.cs:
17355           - Added Clipping of children and siblings
17356
17357 2004-11-08 13:41  pbartok
17358
17359         * MainMenu.cs:
17360           - Removed SetMenuBarWindow call. We do this in Form.cs
17361
17362 2004-11-08 13:40  jackson
17363
17364         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
17365           scrolling jimmi in the correct location with bottom aligned tabs
17366
17367 2004-11-08 13:36  pbartok
17368
17369         * ContainerControl.cs:
17370           - Implemented BindingContext
17371           - Implemented ParentForm
17372
17373 2004-11-08 12:46  jackson
17374
17375         * TabControl.cs: Put bottom rendered tabs in the right location
17376
17377 2004-11-08 07:15  jordi
17378
17379         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
17380           removes dead code
17381
17382 2004-11-05 17:30  jackson
17383
17384         * TabControl.cs: When selected tabs are expanded make sure they
17385           don't go beyond the edges of the tab control
17386
17387 2004-11-05 14:57  jackson
17388
17389         * TabControl.cs: Reset show_slider so if the control is resized to
17390           a size where it is no longer needed it's not displayed anymore
17391
17392 2004-11-05 13:16  jackson
17393
17394         * TabControl.cs: Make tab pages non visible when added to the
17395           control
17396
17397 2004-11-05 12:42  jackson
17398
17399         * TabControl.cs: Implement SizeMode.FillToRight
17400
17401 2004-11-05 12:16  jackson
17402
17403         * Control.cs: Do not call CreateHandle if the handle is already
17404           created
17405
17406 2004-11-05 11:46  jackson
17407
17408         * TabControl.cs: Remove superflous call to CalcTabRows
17409
17410 2004-11-05 09:07  jackson
17411
17412         * XplatUIX11.cs: Update for Mono.Posix changes
17413
17414 2004-11-05 07:00  ravindra
17415
17416         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
17417           scrolling.
17418
17419 2004-11-04 22:47  jba
17420
17421         * ThemeWin32Classic.cs:
17422           - Fix Button rendering for FlatStyle = Flat or Popup
17423           - Fix RadioButton and CheckBox rendering when Appearance = Button
17424             (normal and flatstyle).
17425           - Correct outer rectangle color when drawing focus rectangle
17426           - Adjust button bounds to be 1 px smaller when focused
17427           - Make button not draw sunken 3d border when pushed (windows compat)
17428           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
17429           - Offset the text in RadioButton and Checkbox when being rendered as
17430           a button.
17431           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
17432           radiobuttons
17433           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
17434           - Fixed disabled text rendering for normally rendered radiobuttons
17435
17436 2004-11-04 10:26  jackson
17437
17438         * TabControl.cs: Recalculate tab rows when resizing
17439
17440 2004-11-04 07:47  jordi
17441
17442         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
17443           collection completion, drawing issues, missing features
17444
17445 2004-11-04 05:03  ravindra
17446
17447         * ScrollBar.cs:
17448                 - We need to recalculate the Thumb area when
17449                 LargeChange/maximum/minimum values are changed.
17450           - We set the 'pos' in UpdatePos() method to minimum, if it's less
17451                 than minimum. This is required to handle the case if large_change is
17452                 more than max, and use LargeChange property instead of large_change
17453                 variable.
17454           - We return max+1 when large_change is more than max, like MS does.
17455
17456 2004-11-04 04:29  ravindra
17457
17458         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
17459                 - Changed default value signatures (prefixed all with ListView).
17460                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
17461                 ListView.
17462           - Fixed calculations for ListViewItem and implemented Clone()
17463           method.
17464
17465 2004-11-04 04:26  ravindra
17466
17467         * Theme.cs, ThemeWin32Classic.cs:
17468                 - Changed default ListView values signatures (prefixed all with
17469                 ListView).
17470           - Fixed default size values for VScrollBar and HScrollBar.
17471                 - Fixed DrawListViewItem method.
17472
17473 2004-11-04 04:05  ravindra
17474
17475         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
17476
17477 2004-11-04 04:04  ravindra
17478
17479         * ImageList.cs: Implemented the missing overload for Draw method.
17480
17481 2004-11-03 19:29  jackson
17482
17483         * TabControl.cs: Handle dropping rows on selection properly
17484
17485 2004-11-03 11:59  jackson
17486
17487         * TabControl.cs: remove debug code
17488
17489 2004-11-03 11:52  jackson
17490
17491         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
17492           the scrolly widgerywoo
17493
17494 2004-11-02 13:52  jackson
17495
17496         * TabControl.cs: Resize the tab pages and tabs when the tab control
17497           is resized
17498
17499 2004-11-02 13:40  jackson
17500
17501         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
17502           selected tab to the bottom
17503
17504 2004-11-02 13:39  jackson
17505
17506         * TabPage.cs: Store the tab pages row
17507
17508 2004-11-02 12:33  jordi
17509
17510         * MenuItem.cs: fixes handle creation
17511
17512 2004-11-02 11:42  jackson
17513
17514         * TabControl.cs: signature fix
17515
17516 2004-11-02 08:56  jackson
17517
17518         * TabControl.cs: Calculate whether the tab is on an edge properly.
17519           Remove top secret debugging code
17520
17521 2004-11-01 19:57  jackson
17522
17523         * TabControl.cs: Add click handling, and proper sizing
17524
17525 2004-11-01 19:47  jackson
17526
17527         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
17528           tab controls
17529
17530 2004-11-01 19:39  jackson
17531
17532         * TabPage.cs: add internal property to store the bounds of a tab
17533           page
17534
17535 2004-10-30 04:23  ravindra
17536
17537         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
17538           values.
17539
17540 2004-10-30 04:21  ravindra
17541
17542         * ListView.cs, ListViewItem.cs: Added support for scrolling and
17543           fixed calculations.
17544
17545 2004-10-30 03:06  pbartok
17546
17547         * XplatUIX11.cs:
17548           - Removed extension of DllImported libs
17549
17550 2004-10-29 09:55  jordi
17551
17552         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
17553           navigation, itemcollection completion, menu fixes
17554
17555 2004-10-27 22:58  pbartok
17556
17557         * XplatUIX11.cs:
17558           - Now throws a nice error message when no X display could be opened
17559
17560 2004-10-26 13:51  jordi
17561
17562         * ListView.cs: removes warning
17563
17564 2004-10-26 03:55  ravindra
17565
17566         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
17567           ThemeWin32Classic.cs: Some formatting for my last checkins.
17568
17569 2004-10-26 03:36  ravindra
17570
17571         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
17572           control and default values.
17573
17574 2004-10-26 03:35  ravindra
17575
17576         * Theme.cs: Added some default values for ListView control.
17577
17578 2004-10-26 03:33  ravindra
17579
17580         * ToolBar.cs: ToolBar should use the user specified button size, if
17581           there is any. Added a size_specified flag for the same.
17582
17583 2004-10-26 03:33  ravindra
17584
17585         * ColumnHeader.cs: Added some internal members and calculations for
17586           ColumnHeader.
17587
17588 2004-10-26 03:32  ravindra
17589
17590         * ListViewItem.cs: Calculations for ListViewItem.
17591
17592 2004-10-26 03:31  ravindra
17593
17594         * ListView.cs: Added some internal members and calculations for
17595           ListView.
17596
17597 2004-10-22 13:31  jordi
17598
17599         * MenuAPI.cs: speedup menus drawing
17600
17601 2004-10-22 13:16  jackson
17602
17603         * XplatUIX11.cs: Make sure to update exposed regions when adding an
17604           expose event
17605
17606 2004-10-22 11:49  jackson
17607
17608         * Control.cs: oops
17609
17610 2004-10-22 11:41  jackson
17611
17612         * Control.cs: Check to see if the window should have its background
17613           repainted by X when drawing.
17614
17615 2004-10-22 11:31  jackson
17616
17617         * XplatUIX11.cs: When invalidating areas only use XClearArea if
17618           clear is true, this way we do not get flicker from X repainting the
17619           background
17620
17621 2004-10-22 11:28  jackson
17622
17623         * XEventQueue.cs: Queue properly
17624
17625 2004-10-21 09:38  jackson
17626
17627         * XEventQueue.cs: Fix access modifier
17628
17629 2004-10-21 09:36  jackson
17630
17631         * XEventQueue.cs: Don't loose messages
17632
17633 2004-10-21 09:22  jackson
17634
17635         * XEventQueue.cs: Don't loose messages
17636
17637 2004-10-20 04:15  jordi
17638
17639         * BootMode.cs: enum need it by SystemInfo
17640
17641 2004-10-19 21:58  pbartok
17642
17643         * XplatUIWin32.cs:
17644           - Small sanity check
17645
17646 2004-10-19 21:56  pbartok
17647
17648         * Form.cs:
17649           - Added private FormParentWindow class which acts as the container
17650             for our form and as the non-client area where menus are drawn
17651           - Added/Moved required tie-ins to Jordi's menus
17652           - Fixed/Implemented the FormStartPosition functionality
17653
17654 2004-10-19 21:52  pbartok
17655
17656         * Control.cs:
17657           - Removed unneeded locals
17658           - Added code to all size and location properties to understand and
17659             deal with the parent container of Form
17660
17661 2004-10-19 21:33  pbartok
17662
17663         * Application.cs:
17664           - Fixed to deal with new Form subclasses for menus
17665
17666 2004-10-19 17:48  jackson
17667
17668         * XEventQueue.cs: commit correct version of file
17669
17670 2004-10-19 16:50  jackson
17671
17672         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
17673
17674 2004-10-19 16:15  jordi
17675
17676         * MenuAPI.cs: MenuBarCalcSize returns the height
17677
17678 2004-10-19 08:31  pbartok
17679
17680         * Control.cs:
17681           - Added missing call to PreProcessMessage before calling OnXXXKey
17682           methods
17683
17684 2004-10-19 00:04  ravindra
17685
17686         * ToolTip.cs: Fixed constructor.
17687
17688 2004-10-18 09:31  jordi
17689
17690         * MenuAPI.cs: menuitems in menubars do not have shortcuts
17691
17692 2004-10-18 09:26  jordi
17693
17694         * MenuItem.cs: fixes MenuItem class signature
17695
17696 2004-10-18 08:56  jordi
17697
17698         * MenuAPI.cs: prevents windows from showing in the taskbar
17699
17700 2004-10-18 00:28  ravindra
17701
17702         * ToolTip.cs: Suppressed a warning message.
17703
17704 2004-10-18 00:27  ravindra
17705
17706         * Control.cs: Default value of visible property must be true.
17707
17708 2004-10-17 23:19  pbartok
17709
17710         * ToolTip.cs:
17711           - Complete implementation
17712
17713 2004-10-17 23:19  pbartok
17714
17715         * XplatUIX11.cs:
17716           - Added EnableWindow method
17717           - Added SetModal stub
17718           - Added generation of WM_ACTIVATE message (still needs testing)
17719           - Added SetTopMost stub
17720           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
17721
17722 2004-10-17 23:17  pbartok
17723
17724         * XplatUIWin32.cs:
17725           - Removed VirtualKeys to XplatUIStructs
17726           - Implemented SetTopMost method
17727           - Implemented EnableWindow method
17728           - Bugfix in ScreenToClient()
17729           - Bugfixes in ClientToScreen()
17730
17731 2004-10-17 22:51  pbartok
17732
17733         * XplatUIStructs.cs:
17734           - Added WS_EX styles to WindowStyles enumeration
17735
17736 2004-10-17 22:50  pbartok
17737
17738         * XplatUI.cs, XplatUIDriver.cs:
17739           - Added method for enabling/disabling windows
17740           - Added method for setting window modality
17741           - Added method for setting topmost window
17742
17743 2004-10-17 22:49  pbartok
17744
17745         * ThemeWin32Classic.cs:
17746           - Added ToolTip drawing code
17747
17748 2004-10-17 22:49  pbartok
17749
17750         * Theme.cs:
17751           - Added ToolTip abstracts
17752
17753 2004-10-17 22:47  pbartok
17754
17755         * Form.cs:
17756           - Fixed Form.ControlCollection to handle owner relations
17757           - Added Owner/OwnedForms handling
17758           - Implemented Z-Ordering for owned forms
17759           - Removed unneeded private overload of ShowDialog
17760           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
17761             so I hope)
17762           - Fixed Close(), had wrong default
17763           - Added firing of OnLoad event
17764           - Added some commented out debug code for Ownership handling
17765
17766 2004-10-17 22:16  pbartok
17767
17768         * Control.cs:
17769           - Fixed/implemented flat list of controls
17770
17771 2004-10-17 22:14  pbartok
17772
17773         * Application.cs:
17774           - Added code to simulate modal dialogs on Win32
17775
17776 2004-10-17 16:11  jordi
17777
17778         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
17779           mouse event
17780
17781 2004-10-17 13:39  jordi
17782
17783         * MenuAPI.cs: menu drawing fixes
17784
17785 2004-10-15 09:10  ravindra
17786
17787         * StructFormat.cs: General Enum.
17788
17789 2004-10-15 09:09  ravindra
17790
17791         * SizeGripStyle.cs: Enum for Form.
17792
17793 2004-10-15 09:08  ravindra
17794
17795         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
17796           in Theme for ListView.
17797
17798 2004-10-15 09:06  ravindra
17799
17800         * ColumnHeader.cs: Flushing some formatting changes.
17801
17802 2004-10-15 09:05  ravindra
17803
17804         * ListViewItem.cs: Implemented GetBounds method and fixed coding
17805           style.
17806
17807 2004-10-15 09:03  ravindra
17808
17809         * ListView.cs: Implemented Paint method and fixed coding style.
17810
17811 2004-10-15 07:34  jordi
17812
17813         * MenuAPI.cs: fix for X11
17814
17815 2004-10-15 07:32  ravindra
17816
17817         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
17818                 - Renamed Paint() method to Draw() for clarity. Also, moved
17819                 DrawImage() to OnPaint().
17820
17821 2004-10-15 07:25  ravindra
17822
17823         * CheckBox.cs, RadioButton.cs:
17824                 - Removed Redraw (), we get it from ButtonBase.
17825                 - Implemented Paint (), to do class specific painting.
17826
17827 2004-10-15 07:16  ravindra
17828
17829         * ButtonBase.cs:
17830                 - Redraw () is not virtual now.
17831                 - Added an internal virtual method Paint (), so that
17832                 derived classes can do their painting on their own.
17833                 - Modified OnPaint () to call Paint ().
17834
17835 2004-10-15 06:43  jordi
17836
17837         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
17838           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
17839
17840 2004-10-15 00:30  ravindra
17841
17842         * MessageBox.cs:
17843                 - MessageBox on windows does not have min/max buttons.
17844                 This change in CreateParams fixes this on Windows. We
17845                 still need to implement this windowstyle behavior in
17846                 our X11 driver.
17847
17848 2004-10-14 05:14  ravindra
17849
17850         * ToolBar.cs:
17851                 - Changed Redraw () to do a Refresh () always.
17852                 - Fixed the MouseMove event handling when mouse is pressed,
17853                 ie drag event handling.
17854                 - Replaced the usage of ToolBarButton.Pressed property to
17855                 ToolBarButton.pressed internal variable.
17856
17857 2004-10-14 05:10  ravindra
17858
17859         * ToolBarButton.cs:
17860                 - Added an internal member 'inside' to handle mouse move
17861                 with mouse pressed ie mouse drag event.
17862                 - Changed 'Pressed' property to return true only when
17863                 'inside' and 'pressed' are both true.
17864                 - Some coding style love.
17865
17866 2004-10-14 00:17  ravindra
17867
17868         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
17869           public method.
17870
17871 2004-10-14 00:15  ravindra
17872
17873         * ButtonBase.cs: Redraw () related improvements.
17874
17875 2004-10-14 00:14  ravindra
17876
17877         * MessageBox.cs: Moved InitFormSize () out of Paint method and
17878           removed unnecessary calls to Button.Show () method.
17879
17880 2004-10-13 17:50  pbartok
17881
17882         * XplatUIX11.cs:
17883           - Formatting fix
17884           - Removed destroying of window until we solve the problem of X
17885             destroying the window before us on shutdown
17886
17887 2004-10-13 16:32  pbartok
17888
17889         * ButtonBase.cs:
17890           - Now Redraws on MouseUp for FlatStyle Flat and Popup
17891
17892 2004-10-13 14:18  pbartok
17893
17894         * XplatUIX11.cs:
17895           - Added code to destroy the X window
17896
17897 2004-10-13 14:18  pbartok
17898
17899         * XplatUIWin32.cs:
17900           - Added code to destroy a window
17901
17902 2004-10-13 14:12  pbartok
17903
17904         * ButtonBase.cs:
17905           - Added the Redraw on Resize that got dropped in the last rev
17906
17907 2004-10-13 09:06  pbartok
17908
17909         * ThemeWin32Classic.cs:
17910           - Path from John BouAntoun:
17911             * Fix check rendering (centre correctly for normal style, offset
17912               correctly for FlatStyle).
17913             * Fix border color usage (use backcolor) for FlatStyle.Popup
17914             * Use checkbox.Capture instead of checkbox.is_pressed when
17915               rendering flatstyle states.
17916
17917 2004-10-12 21:48  pbartok
17918
17919         * ThemeWin32Classic.cs:
17920           - Removed all occurences of SystemColors and replaced them with the
17921             matching theme color
17922
17923 2004-10-12 21:41  pbartok
17924
17925         * ThemeWin32Classic.cs:
17926           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
17927             him using the function for flatstyle drawing
17928           - Changed functions to use the new version of CPDrawBorder3D
17929
17930 2004-10-12 21:15  pbartok
17931
17932         * ControlPaint.cs:
17933           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
17934             match MS documentation. They need to return defined colors if the
17935             passed color matches the configured control color. Thanks to John
17936             BouAntoun for pointing this out.
17937
17938 2004-10-12 20:57  pbartok
17939
17940         * Control.cs:
17941           - Fix from John BouAntoun: Raise ForeColorChanged event when text
17942             color is changed
17943
17944 2004-10-12 20:46  pbartok
17945
17946         * CheckBox.cs:
17947           - Fix from John BouAntoun: Now properly sets the Appearance property
17948
17949 2004-10-12 20:45  pbartok
17950
17951         * ThemeWin32Classic.cs:
17952           - Fixes from John BouAntoun: now handles forecolors and backcolors
17953             for flatstyle rendered controls much better; It also fixes normal
17954             checkbox rendering when pushed or disabled.
17955
17956 2004-10-08 02:50  jordi
17957
17958         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
17959           work
17960
17961 2004-10-07 08:56  jordi
17962
17963         * ThemeWin32Classic.cs: Removes deletion of cached brushes
17964
17965 2004-10-06 03:59  jordi
17966
17967         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
17968           XplatUIWin32.cs: removes warnings from compilation
17969
17970 2004-10-05 12:23  jackson
17971
17972         * RadioButton.cs: Fix ctor
17973
17974 2004-10-05 11:10  pbartok
17975
17976         * MessageBox.cs:
17977           - Partial implementation by Benjamin Dasnois
17978
17979 2004-10-05 10:15  jackson
17980
17981         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
17982           by John BouAntoun
17983
17984 2004-10-05 03:07  ravindra
17985
17986         * ToolBar.cs:
17987                 - Removed a private method, Draw ().
17988                 - Fixed the ButtonDropDown event handling.
17989                 - Fixed MouseMove event handling.
17990
17991 2004-10-05 03:04  ravindra
17992
17993         * ThemeWin32Classic.cs:
17994                 - Added DrawListView method and ListViewDefaultSize property.
17995                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
17996                 - Changed DOS style CRLF to Unix format (dos2unix).
17997
17998 2004-10-05 03:03  ravindra
17999
18000         * Theme.cs:
18001                 - Added DrawListView method and ListViewDefaultSize property.
18002
18003 2004-10-05 02:42  ravindra
18004
18005         * ToolBarButton.cs: Added an internal member dd_pressed to handle
18006           clicks on DropDown arrow.
18007
18008 2004-10-04 22:56  jackson
18009
18010         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
18011           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
18012           Control handle the buffers, derived classes should not have to
18013           CreateBuffers themselves.
18014
18015 2004-10-04 21:20  jackson
18016
18017         * StatusBar.cs: The control handles resizing the buffers now.
18018
18019 2004-10-04 21:18  jackson
18020
18021         * Control.cs: When resizing the buffers should be invalidated. This
18022           should be handled in Control not in derived classes.
18023
18024 2004-10-04 14:45  jackson
18025
18026         * TabPage.cs: oops
18027
18028 2004-10-04 02:14  pbartok
18029
18030         * LeftRightAlignment.cs:
18031           - Initial check-in
18032
18033 2004-10-04 01:09  jordi
18034
18035         * ThemeWin32Classic.cs: fixes right button position causing right
18036           button not showing on horizontal scrollbars
18037
18038 2004-10-02 13:12  pbartok
18039
18040         * XplatUIX11.cs:
18041           - Simplified the Invalidate method by using an X call instead of
18042             generating the expose ourselves
18043           - Added an expose when the window background is changed
18044           - Implemented ClientToScreen method
18045
18046 2004-10-02 13:08  pbartok
18047
18048         * XplatUIWin32.cs:
18049           - Added Win32EnableWindow method (test for implementing modal
18050           dialogs)
18051           - Added ClientToScreen method and imports
18052
18053 2004-10-02 13:07  pbartok
18054
18055         * XplatUI.cs, XplatUIDriver.cs:
18056           - Added ClientToScreen coordinate translation method
18057
18058 2004-10-02 13:06  pbartok
18059
18060         * KeyPressEventArgs.cs:
18061           - Fixed access level for constructor
18062
18063 2004-10-02 13:06  pbartok
18064
18065         * NativeWindow.cs:
18066           - Changed access level for the window_collection hash table
18067
18068 2004-10-02 13:05  pbartok
18069
18070         * Form.cs:
18071           - Added KeyPreview property
18072           - Added Menu property (still incomplete, pending Jordi's menu work)
18073           - Implemented ProcessCmdKey
18074           - Implemented ProcessDialogKey
18075           - Implemented ProcessKeyPreview
18076
18077 2004-10-02 13:02  pbartok
18078
18079         * Control.cs:
18080           - Added private method to get the Control object from the window
18081           handle
18082           - Implemented ContextMenu property
18083           - Implemented PointToScreen
18084           - Implemented PreProcessMessage
18085           - Implemented IsInputChar
18086           - Implemented IsInputKey
18087           - Implemented ProcessCmdKey
18088           - Completed ProcessKeyEventArgs
18089           - Fixed message loop to call the proper chain of functions on key
18090           events
18091           - Implemented ProcessDialogChar
18092           - Implemented ProcessDialogKey
18093           - Implemented ProcessKeyMessage
18094           - Implemented ProcessKeyPreview
18095           - Added RaiseDragEvent stub (MS internal method)
18096           - Added RaiseKeyEvent stub (MS internal method)
18097           - Added RaiseMouseEvent stub (MS Internal method)
18098           - Added RaisePaintEvent stub (MS Internal method)
18099           - Added ResetMouseEventArgs stub (MS Internal method)
18100           - Implemented RtlTranslateAlignment
18101           - Implemented RtlTranslateContent
18102           - Implemented RtlTranslateHorizontal
18103           - Implemented RtlTranslateLeftRight
18104           - Added generation of KeyPress event
18105
18106 2004-10-02 05:57  ravindra
18107
18108         * ListViewItem.cs: Added attributes.
18109
18110 2004-10-02 05:32  ravindra
18111
18112         * ListView.cs: Added attributes.
18113
18114 2004-10-01 11:53  jackson
18115
18116         * Form.cs: Implement the Close method so work on MessageBox can
18117           continue.
18118
18119 2004-09-30 14:06  pbartok
18120
18121         * XplatUIX11.cs:
18122           - Bug fixes
18123
18124 2004-09-30 11:34  jackson
18125
18126         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
18127
18128 2004-09-30 07:26  ravindra
18129
18130         * ListViewItemConverter.cs: Converter for ListViewItem.
18131
18132 2004-09-30 07:26  ravindra
18133
18134         * SortOrder.cs: Enum for ListView control.
18135
18136 2004-09-30 07:25  ravindra
18137
18138         * ColumnHeader.cs: Supporting class for ListView control.
18139
18140 2004-09-30 07:24  ravindra
18141
18142         * ListView.cs, ListViewItem.cs: Initial implementation.
18143
18144 2004-09-30 07:20  ravindra
18145
18146         * ItemActivation.cs: Enum for ListView Control.
18147
18148 2004-09-29 20:29  pbartok
18149
18150         * XplatUIX11.cs:
18151           - Added lookup of pixel value for background color; tries to get a
18152             color 'close' to the requested color, it avoids having to create a
18153             colormap.  Depending on the display this could mean the used color
18154             is slightly off the desired color. Might have to change it to a more
18155             resource intensive colormap approach, but it will work as a
18156           workaround to avoid red screens.
18157
18158 2004-09-29 14:27  jackson
18159
18160         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
18161
18162 2004-09-28 12:44  pbartok
18163
18164         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
18165           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
18166           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
18167           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
18168           TrackBar.cs, VScrollBar.cs:
18169           - Streamlined Theme interfaces:
18170             * Each DrawXXX method for a control now is passed the object for
18171               the control to be drawn in order to allow accessing any state the
18172               theme might require
18173
18174             * ControlPaint methods for the theme now have a CP prefix to avoid
18175               name clashes with the Draw methods for controls
18176
18177             * Every control now retrieves it's DefaultSize from the current
18178             theme
18179
18180 2004-09-28 12:17  jackson
18181
18182         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
18183           drawing
18184
18185 2004-09-24 14:57  jackson
18186
18187         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
18188           Gives us a nice little performance boost.
18189
18190 2004-09-24 12:02  jackson
18191
18192         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
18193           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
18194           Control and supporting classes. Initial checkin
18195
18196 2004-09-23 13:08  jackson
18197
18198         * Form.cs: Temp build fixage
18199
18200 2004-09-23 01:39  ravindra
18201
18202         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
18203           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
18204           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
18205           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
18206           EventHandlers needed by ListView Control.
18207
18208 2004-09-22 14:12  pbartok
18209
18210         * ScrollableControl.cs:
18211           - Implemented DockPadding property
18212           - Implemented AutoScroll property
18213           - Implemented AutoScrollMargin property
18214           - Implemented AutoScrollMinSize property
18215           - Implemented AutoScrollPosition property
18216           - Implemented DisplayRectangle property (still incomplete)
18217           - Implemented CreateParams property
18218           - Implemented HScroll property
18219           - Implemented VScroll property
18220           - Implemented OnVisibleChanged property
18221
18222 2004-09-22 14:09  pbartok
18223
18224         * Form.cs:
18225           - Added Form.ControllCollection class
18226           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
18227             RemoveOwnedForm (still incomplete, missing on-top and common
18228             minimize/maximize behaviour)
18229           - Added StartPosition property (still incomplete, does not use when
18230             creating the form)
18231           - Added ShowDialog() methods (still incomplete, missing forcing the
18232             dialog modal)
18233
18234 2004-09-22 14:05  pbartok
18235
18236         * Application.cs:
18237           - Added message loop for modal dialogs
18238
18239 2004-09-22 14:02  pbartok
18240
18241         * GroupBox.cs:
18242           - Fixed wrong types for events
18243
18244 2004-09-22 14:00  pbartok
18245
18246         * Shortcut.cs, FormWindowState.cs:
18247           - Fixed wrong values
18248
18249 2004-09-22 12:01  jackson
18250
18251         * Control.cs: Text is never null
18252
18253 2004-09-20 22:14  pbartok
18254
18255         * XplatUIWin32.cs:
18256           - Fixed accessibility level for Idle handler
18257
18258 2004-09-20 18:54  jackson
18259
18260         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18261           XplatUIX11.cs: New message loop that uses poll so we don't get a
18262           busy loop
18263
18264 2004-09-17 10:43  pbartok
18265
18266         * ScrollBar.cs:
18267           - Fixed behaviour of arrow buttons. Now properly behaves like
18268             Buttons (and like Microsoft's scrollbar arrow buttons)
18269
18270 2004-09-17 10:14  pbartok
18271
18272         * ScrollBar.cs:
18273           - Added missing release of keyboard/mouse capture
18274
18275 2004-09-17 06:18  jordi
18276
18277         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
18278           Theme.cs: Very early menu support
18279
18280 2004-09-16 17:45  pbartok
18281
18282         * XplatUIWin32.cs:
18283           - Fixed sending a window to the front
18284           - Added overload for SetWindowPos to avoid casting
18285
18286 2004-09-16 17:44  pbartok
18287
18288         * Control.cs:
18289           - Added SendToBack and BringToFront methods
18290
18291 2004-09-16 07:00  ravindra
18292
18293         * Copyright: Added Novell URL.
18294
18295 2004-09-16 07:00  ravindra
18296
18297         * ToolBar.cs: Invalidate should be done before redrawing.
18298
18299 2004-09-15 21:19  ravindra
18300
18301         * ColumnHeaderStyle.cs: Enum for ListView Control.
18302
18303 2004-09-15 21:18  ravindra
18304
18305         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
18306           ListView Control.
18307
18308 2004-09-13 18:26  jackson
18309
18310         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
18311           properly
18312
18313 2004-09-13 18:13  jackson
18314
18315         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
18316           a second thread and post messages into the main threads message
18317           queue. This makes timing much more consistent. Both win2K and XP
18318           have a minimum timer value of 15 milliseconds, so we now do this
18319           too.
18320
18321 2004-09-13 15:18  pbartok
18322
18323         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18324           XplatUIX11.cs:
18325           - Added Z-Ordering methods
18326
18327 2004-09-13 10:56  pbartok
18328
18329         * Form.cs:
18330           - Fixed #region names
18331           - Moved properties and methods into their proper #regions
18332
18333 2004-09-13 10:51  pbartok
18334
18335         * Form.cs:
18336           - Added Accept and CancelButton properties
18337           - Added ProcessDialogKey() method
18338
18339 2004-09-13 08:18  pbartok
18340
18341         * IWindowTarget.cs:
18342           - Initial check-in
18343
18344 2004-09-10 21:50  pbartok
18345
18346         * Control.cs:
18347           - Added DoDragDrop() [incomplete]
18348           - Properly implemented 'Visible' handling
18349           - Added SetVisibleCore()
18350           - Implemented FindChildAtPoint()
18351           - Implemented GetContainerControl()
18352           - Implemented Hide()
18353
18354 2004-09-10 19:28  pbartok
18355
18356         * Control.cs:
18357           - Moved methods into their appropriate #regions
18358           - Reordered methods within regions alphabetically
18359
18360 2004-09-10 18:57  pbartok
18361
18362         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18363           - Added method to retrieve text from window
18364
18365 2004-09-10 18:56  pbartok
18366
18367         * Control.cs:
18368           - Moved some internal functions into the internal region
18369           - Implemented FontHeight
18370           - Implemented RenderRightToLeft
18371           - Implemented ResizeRedraw
18372           - Implemented ShowFocusCues
18373           - Implemented ShowKeyboardCues
18374           - Implemented FromChildHandle
18375           - Implemented FromHandle
18376           - Implemented IsMnemonic
18377           - Implemented ReflectMessage
18378           - All public and protected Static Methods are now complete
18379
18380 2004-09-10 16:54  pbartok
18381
18382         * Control.cs:
18383           - Implemented remaining missing public instance properties
18384           - Alphabetized some out of order properties
18385
18386 2004-09-10 05:51  ravindra
18387
18388         * PictureBox.cs: Added a check for null image.
18389
18390 2004-09-10 00:59  jordi
18391
18392         * GroupBox.cs: remove cvs tag
18393
18394 2004-09-09 05:25  ravindra
18395
18396         * ToolBar.cs: Make redraw accessible from ToolBarButton.
18397
18398 2004-09-09 05:23  ravindra
18399
18400         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
18401           parent redraw.
18402
18403 2004-09-09 02:28  pbartok
18404
18405         * ThemeWin32Classic.cs:
18406           - Improve disabled string look
18407
18408 2004-09-09 01:15  jordi
18409
18410         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
18411           args and handler
18412
18413 2004-09-08 23:56  ravindra
18414
18415         * ItemBoundsPortion.cs: It's enum, not a class!
18416
18417 2004-09-08 23:47  ravindra
18418
18419         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
18420           Enums for Form.
18421
18422 2004-09-08 21:13  ravindra
18423
18424         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
18425           ListView control.
18426
18427 2004-09-08 21:03  ravindra
18428
18429         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
18430           avoid crash.
18431
18432 2004-09-08 21:01  ravindra
18433
18434         * ScrollableControl.cs: Removed unreachable code.
18435
18436 2004-09-08 06:45  jordi
18437
18438         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
18439
18440 2004-09-08 01:00  jackson
18441
18442         * XplatUIX11.cs: Only run the timers when updating the message
18443           queue. This effectively gives X messages a higher priority then
18444           timer messages. Timers still need love though
18445
18446 2004-09-07 14:01  jackson
18447
18448         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
18449           this for us and the handle is no longer valid.
18450
18451 2004-09-07 13:59  jackson
18452
18453         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
18454           loop that manages to not crash. TODO: Add poll and cleanup timers
18455
18456 2004-09-07 11:12  jordi
18457
18458         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
18459
18460 2004-09-07 03:40  jordi
18461
18462         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
18463           fixes, methods, multiple links
18464
18465 2004-09-06 06:55  jordi
18466
18467         * Control.cs: Caches ClientRectangle rectangle value
18468
18469 2004-09-05 02:03  jordi
18470
18471         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
18472           certain situations
18473
18474 2004-09-04 11:10  jordi
18475
18476         * Label.cs: Refresh when font changed
18477
18478 2004-09-02 16:24  pbartok
18479
18480         * Control.cs:
18481           - Added sanity check to creation of double buffer bitmap
18482
18483 2004-09-02 16:24  pbartok
18484
18485         * ButtonBase.cs:
18486           - Fixed selection of text color
18487           - Fixed handling of resize event; now properly recreates double
18488             buffering bitmap
18489           - Added missing assignment of TextAlignment
18490           - Added proper default for TextAlignment
18491
18492 2004-09-02 14:26  pbartok
18493
18494         * RadioButton.cs:
18495           - Added missing RadioButton.RadioButtonAccessibleObject class
18496
18497 2004-09-02 14:26  pbartok
18498
18499         * Control.cs:
18500           - Added missing Control.ControlAccessibleObject class
18501           - Started to implement Select()ion mechanisms, still very incomplete
18502
18503 2004-09-02 14:25  pbartok
18504
18505         * AccessibleObject.cs:
18506           - Added missing methods
18507
18508 2004-09-02 14:23  pbartok
18509
18510         * AccessibleNavigation.cs, AccessibleSelection.cs:
18511           - Initial check-in
18512
18513 2004-09-02 10:32  jordi
18514
18515         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
18516           pool for pens, brushes, and hatchbruses
18517
18518 2004-09-01 15:30  jackson
18519
18520         * StatusBar.cs: Fix typo
18521
18522 2004-09-01 14:44  pbartok
18523
18524         * RadioButton.cs:
18525           - Fixed state
18526
18527 2004-09-01 14:39  pbartok
18528
18529         * Button.cs, RadioButton.cs:
18530           - Functional initial check-in
18531
18532 2004-09-01 14:01  pbartok
18533
18534         * CheckBox.cs:
18535           - Added missing default
18536           - Added missing region mark
18537
18538 2004-09-01 09:10  jordi
18539
18540         * Label.cs: fixes method signatures, new methods, events, fixes
18541           autosize
18542
18543 2004-09-01 07:19  jordi
18544
18545         * Control.cs: Init string variables with an empty object
18546
18547 2004-09-01 04:20  jordi
18548
18549         * Control.cs: fires OnFontChanged event
18550
18551 2004-08-31 20:07  pbartok
18552
18553         * ButtonBase.cs:
18554           - Enabled display of strings
18555
18556 2004-08-31 20:05  pbartok
18557
18558         * Form.cs:
18559           - Added (partial) implementation of DialogResult; rest needs to be
18560             implemented when the modal loop code is done
18561
18562 2004-08-31 19:55  pbartok
18563
18564         * CheckBox.cs:
18565           - Fixed to match the removal of the needs_redraw concept
18566
18567 2004-08-31 19:55  pbartok
18568
18569         * ButtonBase.cs:
18570           - Removed the rather odd split between 'needs redraw' and redrawing
18571           - Now handles the events that require regeneration (ambient
18572             properties and size)
18573
18574 2004-08-31 19:41  pbartok
18575
18576         * Control.cs:
18577           - Added firing of BackColorChanged event
18578           - Added TopLevelControl property
18579           - Fixed handling of WM_ERASEBKGRND message
18580
18581 2004-08-31 12:49  pbartok
18582
18583         * ButtonBase.cs:
18584           - Removed debug
18585           - Minor fixes
18586
18587 2004-08-31 12:48  pbartok
18588
18589         * CheckBox.cs:
18590           - Finished (famous last words)
18591
18592 2004-08-31 04:35  jordi
18593
18594         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
18595           scrolling bugs, adds new methods
18596
18597 2004-08-30 14:42  pbartok
18598
18599         * CheckBox.cs:
18600           - Implemented CheckBox drawing code
18601
18602 2004-08-30 14:42  pbartok
18603
18604         * ButtonBase.cs:
18605           - Made Redraw() and CheckRedraw() virtual
18606           - Improved mouse up/down/move logic to properly track buttons
18607
18608 2004-08-30 09:44  pbartok
18609
18610         * CheckBox.cs:
18611           - Updated to fix broken build. Not complete yet.
18612
18613 2004-08-30 09:28  pbartok
18614
18615         * CheckState.cs:
18616           - Initial checkin
18617
18618 2004-08-30 09:17  pbartok
18619
18620         * Appearance.cs:
18621           - Initial check-in
18622
18623 2004-08-27 16:12  ravindra
18624
18625         * ToolBarButton.cs: Added TypeConverter attribute.
18626
18627 2004-08-27 16:07  ravindra
18628
18629         * ImageIndexConverter.cs: Implemented.
18630
18631 2004-08-27 14:17  pbartok
18632
18633         * Control.cs:
18634           - Removed unneeded stack vars
18635           - First attempt to fix sizing issues when layout is suspended
18636
18637 2004-08-25 15:35  jordi
18638
18639         * ScrollBar.cs: more fixes to scrollbar
18640
18641 2004-08-25 14:04  ravindra
18642
18643         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
18644           Added the missing divider code and grip for ToolBar Control.
18645
18646 2004-08-25 13:20  pbartok
18647
18648         * Control.cs:
18649           - Control now properly passes the ambient background color to child
18650             controls
18651
18652 2004-08-25 13:20  jordi
18653
18654         * ScrollBar.cs: small bug fix regarding bar position
18655
18656 2004-08-25 12:33  pbartok
18657
18658         * Timer.cs:
18659           - Now only calls SetTimer or KillTimer if the enabled state has
18660           changed
18661
18662 2004-08-25 12:33  pbartok
18663
18664         * XplatUIWin32.cs:
18665           - Fixed timer handling, now seems to work
18666           - Improved error message for window creation
18667
18668 2004-08-25 12:32  pbartok
18669
18670         * Control.cs:
18671           - Fixed generation of MouseUp message
18672
18673 2004-08-25 12:29  jordi
18674
18675         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
18676           and fixes for progressbar
18677
18678 2004-08-24 18:43  ravindra
18679
18680         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
18681           in ToolBar control.
18682
18683 2004-08-24 17:15  pbartok
18684
18685         * Panel.cs:
18686           - Added #region
18687           - Added missing events
18688           - Alphabetized
18689
18690 2004-08-24 17:14  pbartok
18691
18692         * StatusBar.cs, PictureBox.cs:
18693           - Now uses Control's CreateParams
18694
18695 2004-08-24 16:36  pbartok
18696
18697         * XplatUIX11.cs:
18698           - Fixed background color handling
18699           - Fixed sending of enter/leave events on a grab
18700
18701 2004-08-24 16:35  pbartok
18702
18703         * X11Structs.cs:
18704           - Refined definitions for CrossingEvent
18705
18706 2004-08-24 12:37  jordi
18707
18708         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
18709           formmating, methods signature, and adds missing events
18710
18711 2004-08-24 12:24  jordi
18712
18713         * Control.cs: fire OnEnabledChanged event
18714
18715 2004-08-24 11:17  pbartok
18716
18717         * XplatUIWin32.cs:
18718           - Implemented SetTimer() and KillTimer()
18719
18720 2004-08-24 11:16  pbartok
18721
18722         * XplatUIX11.cs:
18723           - Now uses Remove instead of Add to kill the timer
18724
18725 2004-08-24 10:16  jackson
18726
18727         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
18728           picture boxes in the theme now. Draw picture box borders and obey
18729           sizing modes
18730
18731 2004-08-24 05:49  jackson
18732
18733         * Timer.cs: Remove top secret debugging code
18734
18735 2004-08-24 05:34  jackson
18736
18737         * PictureBox.cs: Temp hack to make picture boxes draw their full
18738           image
18739
18740 2004-08-24 05:29  jackson
18741
18742         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18743           XplatUIX11.cs: Move timers to the driver level. On X they are
18744           queued by the driver and checked on idle.
18745
18746 2004-08-24 01:07  jackson
18747
18748         * XplatUIX11.cs: Use a queue for async messages instead of passing
18749           them as ClientMessages since that was totally broken. Also simply
18750           check for events and return an idle message if none are found. This
18751           gives us an idle handler, and prevents deadlocking when no messages
18752           are in the queue.
18753
18754 2004-08-23 18:19  ravindra
18755
18756         * XplatUIWin32.cs: Removed the unwanted destructor.
18757
18758 2004-08-23 17:27  pbartok
18759
18760         * ButtonBase.cs:
18761           - Finishing touches. Works now, just needs some optimizations.
18762
18763 2004-08-23 16:53  jordi
18764
18765         * ScrollBar.cs: small fix
18766
18767 2004-08-23 16:45  pbartok
18768
18769         * Application.cs:
18770           - Removed debug output
18771           - Simplifications
18772
18773 2004-08-23 16:43  jordi
18774
18775         * ScrollBar.cs: [no log message]
18776
18777 2004-08-23 16:10  pbartok
18778
18779         * Form.cs:
18780           - Fixed handling of WM_CLOSE message
18781           - Removed debug output
18782
18783 2004-08-23 16:09  pbartok
18784
18785         * Application.cs:
18786           - Added handling of Idle event
18787           - Added handling of form closing
18788           - Fixed reporting of MessageLoop property
18789           - Removed some unneeded code, should provide a bit of a speedup
18790
18791 2004-08-23 15:22  pbartok
18792
18793         * Control.cs:
18794           - Added InitLayout() method
18795           - Added code to properly perform layout when Anchor or Dock property
18796             is changed
18797           - Changed 'interpretation' of ResumeLayout. MS seems to have a
18798             LAMESPEC, tried to do it in a way that makes sense
18799
18800 2004-08-23 14:10  jordi
18801
18802         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
18803           properties and methods
18804
18805 2004-08-23 13:55  pbartok
18806
18807         * Control.cs:
18808           - Properly fixed Jordi's last fix
18809           - Now uses Cursor's Position property instead of calling XplatUI
18810           directly
18811
18812 2004-08-23 13:44  jordi
18813
18814         * PaintEventHandler.cs: Adding missing attribute
18815
18816 2004-08-23 13:39  pbartok
18817
18818         * Cursor.cs:
18819           - Implemented Position property
18820
18821 2004-08-23 13:39  pbartok
18822
18823         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18824           - Added method to move mouse cursor
18825
18826 2004-08-23 13:39  pbartok
18827
18828         * XplatUIX11.cs:
18829           - Fixed setting of background color
18830           - Added method to move mouse cursor
18831
18832 2004-08-23 13:16  jordi
18833
18834         * Control.cs: avoids null exception
18835
18836 2004-08-22 17:46  jackson
18837
18838         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
18839           PictureBox
18840
18841 2004-08-22 17:40  jackson
18842
18843         * XplatUIX11.cs: Add some missing locks
18844
18845 2004-08-22 15:10  pbartok
18846
18847         * Control.cs, Form.cs:
18848           - Removed OverlappedWindow style from Control, instead it's default
18849             now is child
18850           - Made form windows OverlappedWindow by default
18851
18852 2004-08-22 13:34  jackson
18853
18854         * ScrollBar.cs: Update the position through the Value property so
18855           the OnValueChanged event is raised.
18856
18857 2004-08-22 12:04  pbartok
18858
18859         * SWF.csproj:
18860           - Added Cursor.cs and UserControl.cs
18861
18862 2004-08-22 12:03  pbartok
18863
18864         * Cursor.cs:
18865           - Started implementation, not usable yet
18866
18867 2004-08-22 12:00  pbartok
18868
18869         * UserControl.cs:
18870           - Implemented UserControl (complete)
18871
18872 2004-08-21 19:20  ravindra
18873
18874         * ToolBar.cs: Correcting the formatting mess of VS.NET.
18875
18876 2004-08-21 18:49  ravindra
18877
18878         * ToolBar.cs: Probably this completes the missing attributes in
18879           toolbar control.
18880
18881 2004-08-21 18:03  ravindra
18882
18883         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
18884           Fixed toolbar control signatures.
18885
18886 2004-08-21 16:32  pbartok
18887
18888         * LinkLabel.cs:
18889           - Signature Fixes
18890
18891 2004-08-21 16:30  pbartok
18892
18893         * Label.cs:
18894           - Signature fixes
18895
18896 2004-08-21 16:19  pbartok
18897
18898         * Control.cs, Label.cs:
18899           - Signature fixes
18900
18901 2004-08-21 15:57  pbartok
18902
18903         * ButtonBase.cs:
18904           - Added loads of debug output for development
18905           - Fixed typo in method name
18906
18907 2004-08-21 15:52  pbartok
18908
18909         * ToolBarButtonClickEventArgs.cs:
18910           - Added missing base class
18911
18912 2004-08-21 14:53  pbartok
18913
18914         * Control.cs:
18915           - Updated to match new GrabWindow signature
18916
18917 2004-08-21 14:51  pbartok
18918
18919         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18920           - Added method to get default display size
18921
18922 2004-08-21 14:23  pbartok
18923
18924         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18925           - Added method to query current grab state
18926           - Added argument to allow confining a grab to a window
18927
18928 2004-08-21 14:22  pbartok
18929
18930         * Keys.cs:
18931           - Added [Flags] attribute so that modifiers can be used in bitwise
18932           ops
18933
18934 2004-08-21 14:21  pbartok
18935
18936         * TrackBar.cs, ScrollBar.cs:
18937           - Replaced direct XplatUI calls with their Control counterpart
18938
18939 2004-08-21 13:32  pbartok
18940
18941         * Control.cs:
18942           - Implemented Created property
18943
18944 2004-08-21 13:28  pbartok
18945
18946         * Control.cs:
18947           - Implemented ContainsFocus
18948
18949 2004-08-21 13:26  pbartok
18950
18951         * Control.cs:
18952           - Implemented CausesValidation
18953
18954 2004-08-21 13:21  pbartok
18955
18956         * Control.cs:
18957           - Implemented CanFocus
18958           - Implemented CanSelect
18959           - Implemented Capture
18960
18961 2004-08-21 12:35  pbartok
18962
18963         * XplatUIWin32.cs:
18964           - Fixed bug with Async message handling
18965           - Implemented getting the ModifierKeys
18966
18967 2004-08-21 12:32  jackson
18968
18969         * AsyncMethodResult.cs: Make sure we have the mutex before we
18970           release it. Fixes BeginInvoke on windows
18971
18972 2004-08-21 11:31  pbartok
18973
18974         * XplatUIWin32.cs, XplatUIX11.cs:
18975           - Drivers now return proper mouse state
18976
18977 2004-08-21 10:54  jackson
18978
18979         * Control.cs: Implement EndInvoke
18980
18981 2004-08-21 10:48  jackson
18982
18983         * Timer.cs: Remove unneeded finalizer
18984
18985 2004-08-20 19:52  ravindra
18986
18987         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
18988           in mouse event handling in the ToolBar control.
18989
18990 2004-08-20 19:50  ravindra
18991
18992         * ImageList.cs: Changed draw method to use the arguments passed in
18993           to draw the image.
18994
18995 2004-08-20 18:58  pbartok
18996
18997         * XplatUIStructs.cs:
18998           - Added private message for async communication
18999
19000 2004-08-20 17:38  ravindra
19001
19002         * Control.cs: Made RightToLeft property virtual and removed a
19003           Console.WriteLine.
19004
19005 2004-08-20 14:39  jordi
19006
19007         * ThemeGtk.cs: use style_attach
19008
19009 2004-08-20 14:39  pbartok
19010
19011         * XplatUIWin32.cs:
19012           - Added jackson's Async code from X11 to Win32
19013
19014 2004-08-20 14:09  pbartok
19015
19016         * SWF.csproj:
19017           - Added all new files
19018
19019 2004-08-20 14:09  pbartok
19020
19021         * Control.cs:
19022           - Added call to set window background color
19023
19024 2004-08-20 14:03  pbartok
19025
19026         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19027           - Added method for setting the window background
19028
19029 2004-08-20 14:02  pbartok
19030
19031         * XplatUIWin32.cs:
19032           - Added method for setting the background color
19033           - Added handling for erasing the window background
19034
19035 2004-08-20 13:45  jordi
19036
19037         * TrackBar.cs: fixes timer, new properties and methods
19038
19039 2004-08-20 13:34  jackson
19040
19041         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
19042           correct thread
19043
19044 2004-08-20 13:22  jackson
19045
19046         * Timer.cs: Timer Tick events are now handed through Controls Async
19047           mechanism so the callbacks are executed in the same thread as X
19048
19049 2004-08-20 13:19  jackson
19050
19051         * XplatUIDriver.cs: Expose functionality to send async messages
19052           through the driver
19053
19054 2004-08-20 13:18  jackson
19055
19056         * Control.cs: Implement Begininvoke
19057
19058 2004-08-20 13:14  jackson
19059
19060         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
19061           messages through the driver
19062
19063 2004-08-20 13:12  jackson
19064
19065         * XplatUIX11.cs: Lock before all X operations. Also added Async
19066           method functionality through XSendEvent
19067
19068 2004-08-20 13:11  jackson
19069
19070         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
19071           This will screw up on 64 bit systems)
19072
19073 2004-08-20 13:10  jackson
19074
19075         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
19076           Async messages through X/Win32
19077
19078 2004-08-19 19:39  pbartok
19079
19080         * XplatUIX11.cs:
19081           - Updated code to match new HandleData.DeviceContext type
19082
19083 2004-08-19 19:38  pbartok
19084
19085         * HandleData.cs:
19086           - Made DeviceContext a generic object to allow usage from various
19087           drivers
19088           - Added support for queueing Windows messages
19089
19090 2004-08-19 19:37  pbartok
19091
19092         * XplatUIWin32.cs:
19093           - Added generation of MouseEnter, MouseLeave and MouseHover events
19094           - Added cleanup on EndPaint
19095
19096 2004-08-19 19:17  pbartok
19097
19098         * Control.cs:
19099           - Added handling of WM_MOUSEHOVER
19100           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
19101           code
19102
19103 2004-08-19 18:55  jordi
19104
19105         * ThemeGtk.cs: fixes button order
19106
19107 2004-08-19 18:12  jordi
19108
19109         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
19110
19111 2004-08-19 17:09  pbartok
19112
19113         * Control.cs:
19114           - Added Right property
19115           - Added RightToLeft property
19116
19117 2004-08-19 16:27  jordi
19118
19119         * ThemeGtk.cs: experimental GTK theme support
19120
19121 2004-08-19 16:26  jordi
19122
19123         * ITheme.cs, Theme.cs: move themes from an interface to a class
19124
19125 2004-08-19 16:25  jordi
19126
19127         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
19128           theme enhancaments
19129
19130 2004-08-19 16:04  pbartok
19131
19132         * XplatUIX11.cs:
19133           - Added colormap basics
19134           - Added a way to re-initialize with a different display handle
19135           - Fixed setting of the window background color
19136           - Added various X11 imports related to colors and colormaps
19137
19138 2004-08-19 15:51  pbartok
19139
19140         * X11Structs.cs:
19141           - Removed packing hints (Paolo suggested this a while back)
19142           - fixed colormap type
19143           - Added default Atom types
19144           - Added Screen and color structs and enums
19145
19146 2004-08-19 15:39  pbartok
19147
19148         * ImageList.cs:
19149           - Added missing Draw() method
19150           - Added missing RecreateHandle event
19151
19152 2004-08-19 15:30  pbartok
19153
19154         * Form.cs:
19155           - Added handling of WM_CLOSE
19156
19157 2004-08-18 13:16  jordi
19158
19159         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
19160           a table
19161
19162 2004-08-18 09:56  jordi
19163
19164         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
19165
19166 2004-08-17 15:31  ravindra
19167
19168         * SWF.csproj: Updated project.
19169
19170 2004-08-17 15:25  pbartok
19171
19172         * Control.cs:
19173           - Drawing improvement; don't call UpdateBounds if we are not visible
19174             (or have been minimized)
19175
19176 2004-08-17 15:24  pbartok
19177
19178         * XplatUIWin32.cs:
19179           - Finished IsVisible
19180           - Added Win32GetWindowPlacement
19181
19182 2004-08-17 15:08  jackson
19183
19184         * Panel.cs: Initial checkin of the Panel
19185
19186 2004-08-17 14:25  pbartok
19187
19188         * Control.cs:
19189           - Fixed broken handling of default window sizes
19190
19191 2004-08-17 13:29  jackson
19192
19193         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
19194           has a large startup time.
19195
19196 2004-08-17 10:25  jackson
19197
19198         * HandleData.cs: union areas properly
19199
19200 2004-08-17 10:12  jackson
19201
19202         * HandleData.cs: union areas properly
19203
19204 2004-08-16 20:00  ravindra
19205
19206         * ToolBar.cs, ToolBarButton.cs: Added attributes.
19207
19208 2004-08-16 18:48  ravindra
19209
19210         * ToolBar.cs: Added attributes.
19211
19212 2004-08-16 17:17  ravindra
19213
19214         * SWF.csproj: Updated project.
19215
19216 2004-08-16 17:16  jackson
19217
19218         * XplatUIX11.cs: Check for more expose events before sending a
19219           WM_PAINT so they can all be grouped together. This makes dragging a
19220           window across another window redraw in a sane way.
19221
19222 2004-08-16 15:47  pbartok
19223
19224         * Control.cs:
19225           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
19226             support OnMouseEnter/Leave()
19227           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
19228             exposure handling
19229
19230 2004-08-16 15:46  pbartok
19231
19232         * XplatUIStructs.cs, XplatUIX11.cs:
19233           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
19234           OnMouseEnter/Leave()
19235
19236 2004-08-16 15:34  jackson
19237
19238         * XplatUIX11.cs: Group multiple expose events in HandleData, make
19239           sure messages get the message field set to WM_NULL if they are not
19240           handled.
19241
19242 2004-08-16 15:24  jackson
19243
19244         * HandleData.cs: HandleData is used for storing message information
19245           for window handles
19246
19247 2004-08-15 17:23  ravindra
19248
19249         * ColorDepth.cs: Added attribute.
19250
19251 2004-08-15 17:23  ravindra
19252
19253         * SWF.csproj: Updated project for ToolBar Control.
19254
19255 2004-08-15 17:20  ravindra
19256
19257         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
19258           control and also dos2unix format.
19259
19260 2004-08-15 17:13  ravindra
19261
19262         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
19263           ToolBarButtonClickEventArgs.cs,
19264           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
19265           ToolBarTextAlign.cs: First Implementation of ToolBar control.
19266
19267 2004-08-15 15:31  pbartok
19268
19269         * ButtonBase.cs:
19270           - First (mostly) working version
19271
19272 2004-08-13 16:15  pbartok
19273
19274         * Control.cs:
19275           - Fixed Anchor default
19276
19277 2004-08-13 15:43  pbartok
19278
19279         * Control.cs:
19280           - Changed GetCursorPos signature
19281
19282 2004-08-13 15:42  pbartok
19283
19284         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
19285           - Changed signature for GetCursorPos
19286
19287 2004-08-13 15:25  pbartok
19288
19289         * XplatUIX11.cs:
19290           - Cleanup
19291           - Fixed resizing/exposure handling
19292
19293 2004-08-13 15:22  jordi
19294
19295         * ThemeWin32Classic.cs: removes redundant code and fixes issues
19296           with tickposition
19297
19298 2004-08-13 14:55  jordi
19299
19300         * TrackBar.cs: change from wndproc to events
19301
19302 2004-08-13 13:00  jordi
19303
19304         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19305           XplatUIX11.cs: implements PointToClient (ScreenToClient)
19306
19307 2004-08-13 12:53  pbartok
19308
19309         * XplatUIWin32.cs:
19310           - Changed GetWindowPos to also provide client area size
19311           - Fixed broken prototypes for several win32 functions
19312
19313 2004-08-13 12:53  pbartok
19314
19315         * XplatUI.cs, XplatUIDriver.cs:
19316           - Changed GetWindowPos to also provide client area size
19317
19318 2004-08-13 12:52  pbartok
19319
19320         * XplatUIX11.cs:
19321           - Added generation of WM_POSCHANGED
19322           - Changed GetWindowPos to also provide client area size
19323
19324 2004-08-13 12:52  pbartok
19325
19326         * Control.cs:
19327           - Added Dispose() and destructor
19328           - Fixed resizing and bounds calculation
19329           - Fixed Layout
19330           - Added memory savings for invisible windows
19331
19332 2004-08-13 12:46  jordi
19333
19334         * TrackBar.cs: adds timer and grap window
19335
19336 2004-08-13 10:25  jackson
19337
19338         * Timer.cs: SWF Timer
19339
19340 2004-08-12 16:59  pbartok
19341
19342         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19343           - Implemented method to get current mouse position
19344
19345 2004-08-12 14:29  jordi
19346
19347         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
19348           enhancement, fix mouse problems, highli thumb, etc
19349
19350 2004-08-12 13:31  pbartok
19351
19352         * Control.cs:
19353           - Fixed Anchoring bugs
19354
19355 2004-08-12 13:01  jackson
19356
19357         * StatusBar.cs: Don't forget things
19358
19359 2004-08-12 12:54  jackson
19360
19361         * ThemeWin32Classic.cs: Handle owner draw status bars
19362
19363 2004-08-12 12:54  jackson
19364
19365         * StatusBar.cs: Implement missing properties, events, and methods.
19366           Handle mouse clicking
19367
19368 2004-08-12 10:19  jackson
19369
19370         * StatusBarPanelClickEventArgs.cs,
19371           StatusBarPanelClickEventHandler.cs: Classes for handling status
19372           bar panel click events
19373
19374 2004-08-12 10:10  jackson
19375
19376         * Control.cs: Add missing properties
19377
19378 2004-08-12 09:46  pbartok
19379
19380         * BindingsManagerBase.cs:
19381           - Name changed to BindingManagerBase.cs
19382
19383 2004-08-12 09:25  jordi
19384
19385         * ScrollableControl.cs: calls ctrlbase instead of exeception
19386
19387 2004-08-11 16:28  pbartok
19388
19389         * InputLanguageChangingEventArgs.cs:
19390           - Never check in before compiling. Fixes the last check-in
19391
19392 2004-08-11 16:26  pbartok
19393
19394         * InputLanguageChangingEventArgs.cs:
19395           - More signature fixes
19396
19397 2004-08-11 16:20  pbartok
19398
19399         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
19400           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
19401           ImageListStreamer.cs, InputLanguage.cs,
19402           InputLanguageChangedEventArgs.cs,
19403           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
19404           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
19405           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
19406           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19407           - Signature fixes
19408
19409 2004-08-11 16:16  pbartok
19410
19411         * Application.cs:
19412           - Fixed Signature
19413           - Added .Net 1.1 method
19414
19415 2004-08-11 15:25  pbartok
19416
19417         * SWF.csproj:
19418           - Fixed BindingManagerBase.cs filename
19419
19420 2004-08-11 15:22  pbartok
19421
19422         * BindingManagerBase.cs:
19423           - Was checked in with wrong filename
19424
19425 2004-08-11 14:50  pbartok
19426
19427         * SWF.csproj:
19428           - Updated
19429
19430 2004-08-11 13:41  jordi
19431
19432         * XplatUIWin32.cs: Fixes ClientRect
19433
19434 2004-08-11 13:19  pbartok
19435
19436         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19437           XplatUIX11.cs:
19438           - We had SetWindowPos and MoveWindow to set window positions and
19439             size, removed MoveWindow. We have GetWindowPos, so it made sense to
19440             keep SetWindowPos as matching counterpart
19441           - Added some X11 sanity checking
19442
19443 2004-08-11 12:59  pbartok
19444
19445         * Control.cs:
19446           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
19447             (It seems that SetBounds is just a front for SetBoundsCore and
19448              SetBoundsCore updates the underlying window system and
19449              UpdateBounds is responsible for updating the variables associated
19450              with the Control and sending the events)
19451           - Major cleanup of Size handling; we now have two sizes, client_size
19452             and bounds. Bounds defines the window with decorations, client_size
19453             without them.
19454
19455 2004-08-11 12:55  pbartok
19456
19457         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19458           - Added method to calculate difference between decorated window and
19459             raw client area
19460
19461 2004-08-11 12:54  pbartok
19462
19463         * Label.cs:
19464           - Forcing redraw on resize
19465
19466 2004-08-11 11:43  pbartok
19467
19468         * ImageList.cs:
19469           - Removed disposing of the actual images when the list is disposed
19470
19471 2004-08-11 09:13  pbartok
19472
19473         * Control.cs:
19474           - Now properly reparents windows
19475
19476 2004-08-11 08:37  pbartok
19477
19478         * Control.cs:
19479           - Duh!
19480
19481 2004-08-11 07:47  pbartok
19482
19483         * Control.cs:
19484           - Rewrote the collection stuff. Might not be as fast now, not
19485             keeping the number of children around and accessible directly, but
19486             it's more straightforward
19487
19488 2004-08-11 07:44  pbartok
19489
19490         * AccessibleObject.cs:
19491           - Fixed to match ControlCollection rewrite
19492
19493 2004-08-11 07:43  pbartok
19494
19495         * ImageList.cs:
19496           - Added missing creation of the collection list
19497
19498 2004-08-10 20:08  jackson
19499
19500         * StatusBar.cs: Get the paint message from WndProc
19501
19502 2004-08-10 19:31  jackson
19503
19504         * ThemeWin32Classic.cs: Create Brushes as little as possible
19505
19506 2004-08-10 19:20  jackson
19507
19508         * UICues.cs: Add Flags attribute
19509
19510 2004-08-10 19:19  jackson
19511
19512         * StatusBarPanel.cs: Signature cleanup
19513
19514 2004-08-10 19:10  jackson
19515
19516         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
19517           Initial implementation of status bar item drawing
19518
19519 2004-08-10 17:27  jordi
19520
19521         * TrackBar.cs: add missing methods, properties, and restructure to
19522           hide extra ones
19523
19524 2004-08-10 16:24  jackson
19525
19526         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
19527           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
19528           attribute
19529
19530 2004-08-10 13:21  jordi
19531
19532         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
19533           enhancements and standarize on win colors defaults
19534
19535 2004-08-10 12:52  jackson
19536
19537         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
19538           ThemeWin32Classic.cs: Implement DrawItem functionality
19539
19540 2004-08-10 12:47  jordi
19541
19542         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
19543
19544 2004-08-10 12:32  jordi
19545
19546         * Control.cs: throw ontextchange event
19547
19548 2004-08-10 11:43  pbartok
19549
19550         * Control.cs:
19551           - Added more to the still unfinished Dock/Anchor layout code
19552
19553 2004-08-10 11:39  pbartok
19554
19555         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19556           - Added GetWindowPos method
19557
19558 2004-08-10 11:36  pbartok
19559
19560         * XplatUIWin32.cs:
19561           - Implemented several methods
19562
19563 2004-08-10 09:47  jackson
19564
19565         * TrackBar.cs: Allow control to handle buffering
19566
19567 2004-08-10 09:41  jackson
19568
19569         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
19570
19571 2004-08-10 09:24  jackson
19572
19573         * Label.cs, LinkLabel.cs: Let Control handle buffering.
19574
19575 2004-08-10 09:09  jackson
19576
19577         * StatusBar.cs: Let Control handle all the buffering.
19578
19579 2004-08-10 09:08  jackson
19580
19581         * Control.cs: Control will now handle the buffering code, so each
19582           control does not have to implement this.
19583
19584 2004-08-10 08:34  jackson
19585
19586         * XplatUIDriver.cs: Use default colors from the theme
19587
19588 2004-08-09 17:12  pbartok
19589
19590         * ImageList.cs:
19591           - Fixed several bugs Ravindra pointed out
19592
19593 2004-08-09 16:11  pbartok
19594
19595         * Control.cs:
19596           - Added incomplete dock layout code
19597           - Added support for mouse wheel
19598
19599 2004-08-09 16:09  pbartok
19600
19601         * XplatUIX11.cs:
19602           - Added handling for middle and right mousebutton
19603           - Added handling for mouse wheel
19604           - Added handling for key state and mouse state and position
19605           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
19606           messages
19607
19608 2004-08-09 15:40  jackson
19609
19610         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
19611           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
19612           checkin
19613
19614 2004-08-09 15:37  jackson
19615
19616         * StatusBar.cs: Initial implementation of StatusBar
19617
19618 2004-08-09 15:36  jackson
19619
19620         * ITheme.cs: Add support for drawing status bar and getting status
19621           bar item sizes
19622
19623 2004-08-09 15:35  pbartok
19624
19625         * MouseButtons.cs:
19626           - Fixed values
19627
19628 2004-08-09 15:34  jackson
19629
19630         * ThemeWin32Classic.cs: Add support for drawing status bar and get
19631           status bar item sizes
19632
19633 2004-08-09 15:21  jackson
19634
19635         * ThemeWin32Classic.cs: Use known colors for default control
19636           colours
19637
19638 2004-08-09 15:12  jackson
19639
19640         * ThemeWin32Classic.cs: Make the default font static, it is static
19641           in control so this doesn't change functionality and creating fonts
19642           is sloooooow.
19643
19644 2004-08-09 14:56  pbartok
19645
19646         * X11Structs.cs:
19647           - Added GrabMode enum
19648
19649 2004-08-09 14:55  pbartok
19650
19651         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19652           - Removed Run method, was only required for initial development
19653
19654 2004-08-09 14:51  pbartok
19655
19656         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19657           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
19658           capture
19659
19660 2004-08-09 13:48  pbartok
19661
19662         * XplatUIX11.cs:
19663           - Fixed default sizing for child windows
19664
19665 2004-08-09 12:56  pbartok
19666
19667         * XplatUIX11.cs:
19668           - Added generation of WM_DESTROY message
19669           - Added handling of window manager induced shutdown
19670
19671 2004-08-09 11:31  jackson
19672
19673         * ThemeWin32Classic.cs: New names for control properties
19674
19675 2004-08-09 11:25  jackson
19676
19677         * Control.cs: Use new color names
19678
19679 2004-08-09 11:02  jackson
19680
19681         * XplatUI.cs: Get default window properties from the theme
19682
19683 2004-08-09 11:01  jackson
19684
19685         * ITheme.cs: The theme engine now controls default window
19686           properties
19687
19688 2004-08-09 11:00  jackson
19689
19690         * ThemeWin32Classic.cs: Add default window color properties
19691
19692 2004-08-09 10:17  jackson
19693
19694         * ThemeWin32Classic.cs: Use correct default back color
19695
19696 2004-08-09 10:05  jackson
19697
19698         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
19699           the theme now.
19700
19701 2004-08-09 09:56  jackson
19702
19703         * XplatUI.cs: Remove defaults, these are handled by the theme now.
19704
19705 2004-08-09 09:54  jackson
19706
19707         * Control.cs: Get default properties from the theme.
19708
19709 2004-08-09 09:53  jackson
19710
19711         * ITheme.cs: Themes now handle default control properties
19712
19713 2004-08-09 09:53  jackson
19714
19715         * ThemeWin32Classic.cs: Themes now handle default control
19716           properties so coloring will be consistent
19717
19718 2004-08-08 16:54  jordi
19719
19720         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
19721
19722 2004-08-08 15:08  jordi
19723
19724         * XplatUIX11.cs: fixes keyboard crash
19725
19726 2004-08-08 13:47  jordi
19727
19728         * Label.cs: add cvs header info
19729
19730 2004-08-08 12:09  jackson
19731
19732         * ThemeWin32Classic.cs: Add pen_buttonface
19733
19734 2004-08-08 11:52  jordi
19735
19736         * Label.cs, LinkLabel.cs: [no log message]
19737
19738 2004-08-08 11:34  jordi
19739
19740         * ThemeWin32Classic.cs: Use Windows Standard Colours
19741
19742 2004-08-07 17:32  jordi
19743
19744         * TrackBar.cs: throw exceptions of invalid enums values
19745
19746 2004-08-07 17:31  jordi
19747
19748         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
19749           draw method name
19750
19751 2004-08-07 16:56  jackson
19752
19753         * HorizontalAlignment.cs: Initial checkin
19754
19755 2004-08-07 13:16  jordi
19756
19757         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
19758           methods
19759
19760 2004-08-07 13:05  jordi
19761
19762         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
19763           GetSysColor defines
19764
19765 2004-08-06 18:01  pbartok
19766
19767         * ThemeWin32Classic.cs:
19768           - Fixed some rounding issues with float/int
19769
19770 2004-08-06 18:00  jackson
19771
19772         * DockStyle.cs, AnchorStyles.cs:
19773
19774                   Add flags and serializable attributes.
19775
19776 2004-08-06 17:46  pbartok
19777
19778         * XplatUIX11.cs:
19779           - Implemented GetParent
19780
19781 2004-08-06 17:18  pbartok
19782
19783         * TrackBar.cs:
19784           - Fixed some rounding issues with float/int
19785
19786 2004-08-06 17:17  pbartok
19787
19788         * X11Structs.cs, XplatUIX11.cs:
19789           - Fixed Refresh and Invalidate
19790
19791 2004-08-06 15:30  pbartok
19792
19793         * Control.cs, X11Structs.cs, XplatUIX11.cs:
19794           - Fixed recursive loop when resizing
19795           - Improved/fixed redrawing on expose messages
19796
19797 2004-08-06 09:53  jordi
19798
19799         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
19800           keyboard navigation
19801
19802 2004-08-06 08:02  pbartok
19803
19804         * X11Structs.cs, XplatUIX11.cs:
19805           - Fixed reparenting
19806           - Fixed window border creation
19807
19808 2004-08-05 15:38  pbartok
19809
19810         * XplatUIX11.cs:
19811           - Attempted fix for reparenting problems
19812
19813 2004-08-04 15:14  pbartok
19814
19815         * Control.cs:
19816           - Fixed Invalidation bug (calculated wrong client area)
19817           - Added ClientSize setter
19818
19819 2004-08-04 15:13  pbartok
19820
19821         * Form.cs:
19822           - Added AutoScale properties
19823
19824 2004-08-04 15:13  pbartok
19825
19826         * SWF.csproj:
19827           - Added latest files
19828
19829 2004-08-04 14:11  pbartok
19830
19831         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19832           XplatUIX11.cs:
19833           - Added Invalidate handling
19834
19835 2004-08-03 17:09  jordi
19836
19837         * XplatUIDriver.cs: fixes spelling mistake
19838
19839 2004-07-27 09:53  jordi
19840
19841         * TrackBar.cs: fixes trackbar events, def classname, methods
19842           signature
19843
19844 2004-07-27 09:29  jordi
19845
19846         * ScrollBar.cs: fixes scrollbar events
19847
19848 2004-07-27 04:38  jordi
19849
19850         * Control.cs: changes to be able to run winforms samples
19851
19852 2004-07-26 11:42  jordi
19853
19854         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
19855           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
19856
19857 2004-07-26 05:41  jordi
19858
19859         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
19860           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
19861           implementation
19862
19863 2004-07-22 09:22  jordi
19864
19865         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
19866           check link overlapping, implement events, and fixes
19867
19868 2004-07-21 10:28  jordi
19869
19870         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
19871
19872 2004-07-21 10:19  jordi
19873
19874         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
19875           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
19876           LinkLabelLinkClickedEventArgs.cs,
19877           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
19878           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
19879           implementation
19880
19881 2004-07-19 13:09  jordi
19882
19883         * Control.cs, Label.cs: label control re-written: added missing
19884           functionlity, events, and properties
19885
19886 2004-07-19 10:49  jordi
19887
19888         * Control.cs: fixes SetBounds logic
19889
19890 2004-07-19 01:29  jordi
19891
19892         * Control.cs: Call RefreshWindow only if the window has created
19893
19894 2004-07-15 14:05  pbartok
19895
19896         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
19897           - Implemented ImageList and ImageList.ImageCollection classes
19898           - Added ColorDepth enumeration
19899           - Updated SWF VS.Net project
19900
19901 2004-07-15 11:06  jordi
19902
19903         * XplatUIStructs.cs: added MsgButons enum
19904
19905 2004-07-15 11:03  jordi
19906
19907         * Control.cs: added basic mouse handeling events
19908
19909 2004-07-15 03:38  jordi
19910
19911         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
19912           Vertical TrackBar control implementation
19913
19914 2004-07-13 09:33  jordi
19915
19916         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
19917
19918 2004-07-13 09:31  jordi
19919
19920         * Control.cs, Form.cs: commit: new properties and fixes form size
19921           problems
19922
19923 2004-07-09 14:13  miguel
19924
19925         * ProgressBar.cs: Spelling
19926
19927 2004-07-09 11:25  pbartok
19928
19929         * ProgressBar.cs:
19930           - Removed usage of Rectangle for drawing. Miguel pointed out it's
19931           faster
19932
19933 2004-07-09 11:17  miguel
19934
19935         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
19936
19937                 * ProgressBar.cs: Fixed spelling for `block'
19938
19939                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
19940                 style guidelines.
19941
19942                 Avoid using the += on rect.X, that exposed a bug in the compiler.
19943
19944 2004-07-08 23:21  pbartok
19945
19946         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
19947           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
19948           BaseCollection.cs, Binding.cs, BindingContext.cs,
19949           BindingMemberInfo.cs, BindingsCollection.cs,
19950           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
19951           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
19952           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
19953           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
19954           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
19955           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
19956           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
19957           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
19958           FrameStyle.cs, GiveFeedbackEventArgs.cs,
19959           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
19960           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
19961           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
19962           InputLanguageChangedEventArgs.cs,
19963           InputLanguageChangedEventHandler.cs,
19964           InputLanguageChangingEventArgs.cs,
19965           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
19966           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
19967           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
19968           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
19969           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
19970           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
19971           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
19972           QueryAccessibilityHelpEventArgs.cs,
19973           QueryAccessibilityHelpEventHandler.cs,
19974           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
19975           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
19976           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
19977           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
19978           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
19979           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
19980           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
19981           XplatUIX11.cs, lang.cs:
19982           - Initial check-in
19983