* XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2
3         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
4
5 2008-11-21  Andreia Gaita  <avidigal@novell.com>
6
7         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
8         
9 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10
11         * ScrollBar.cs:
12         * ScrollableControl.cs: Set manually the thumb size for the
13         ScrollableControl scrollbars, so any further changes to the underneath
14         scrollbars respect the original size.
15         Fixes part of #441546.
16
17 2008-11-21  Geoff Norton  <gnorton@novell.com>
18
19         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
20         PlatformID.MacOSX now exists.
21
22 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
23
24         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
25         Having something internal abstract isn't very nice for people who want
26         to inherit from this class.
27
28 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
29
30         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
31         invalid value.  Just return null for the Image, and use the ImageList's
32         ImageSize for calculations.
33
34 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
35
36         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
37         through DroppedDown so the proper events get called and state gets reset.
38         [Fixes bug #446805]
39
40 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
41
42         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
43         the collection is modified.
44
45 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
46
47         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
48         aren't always correct, and fixing them for every case is not worth the
49         negligible benefit they provide.
50         [Fixes bug #445713]
51
52 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
53
54         * DataGridView.cs: We should never add actual cells to the RowTemplate.
55         Internally, use RowTemplateFull to give us a new row with cells.
56         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
57         * DataGridViewRowCollection.cs: Use RowTemplateFull.
58
59 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
60
61         * XplatUIX11.cs: Forms without borders should be able to change its
62         size - specially they should be able to be maximized, adding the
63         respective MotifFunctions.Resize bit when setting window properties as
64         well as *not* marking the Hwnd as size fixed.
65         Fixes #444347.
66
67 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
68
69         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
70         an alpha value.
71         [Fixes bug #444348]
72
73 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
74
75         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
76         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
77         AutoSizeColumnModeChanged.
78         [Fixes bug #443609]
79
80 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
81
82         * DataGridViewRowCollection.cs: Guard against the user deleting the
83         NewRow.  Add an internal delete so we can still delete it.
84         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
85         [Fixes bug #442181]
86
87 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
88
89         * TextControl.cs: Add some order of operation to our math so
90         we don't end up with a negative height for our invalidate rect.
91         [Fixes bug #381889]
92
93 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
94
95         * Control.cs: When our enabled changes, notify our implicit children
96         controls as well as our regular controls.
97         [Fixes bug #441523]
98
99 2008-11-08  Andreia Gaita <shana@jitted.com> 
100
101         * HtmlElement.cs: Small code cleanup
102
103 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
104
105         * BindingNavigator.cs: MoveFirstItem should be enabled only if
106         position is larger than 0, not only different than 0. Also Position
107         and Count items should be enabled if the BindingSource is non null and
108         non empty.
109         Fixes #439961.
110
111 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
112
113         * TabControl.cs: Don't raise SelectedIndexChanged until we have
114         actually modified the tab collection, so TabCount will be correct.
115         [Fixes bug #441896]
116
117 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
118
119         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
120         NonSerialized to fix serialization of ListViewItem.
121
122 2008-11-04  Mike Gorse  <mgorse@novell.com>
123
124         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
125           focus change, and always call in SetFocusedItem.
126         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
127
128 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
129
130         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
131         mode.  Based on a patch by John Mortlock.
132         [Fixes bug #436790]
133
134 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
135
136         * ListView.cs: Use the UsingGroups property where needed, instead of
137         duplicating the check in other places.
138
139 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
140
141         * ListView.cs: When calculating layout, refresh the count of items
142         belonging to the default item, insteas of doing it only one time. This
143         was already working fine for icon views, not not for details.
144         Fixes #438948.
145
146 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
147
148         * ListView.cs:
149         * ListViewItem.cs:
150         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
151         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
152         does.
153         Fixes #437933.
154
155 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
156
157         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
158
159 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
160
161         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
162         #441280, patch by Mike Gorse <mgorse@novell.com>.
163
164 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
165
166         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
167         if there is no scrollbar.
168         [Fixes bug #440885]
169
170 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
171
172         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
173         patch from Andy Hume that fixes many issues with ProgressBar.
174         [See bug #440220]
175
176 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
177
178         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
179         [Fixes bug #438866]
180
181 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
182
183         * UpDownBase.cs:
184         * DomainUpDown.cs:
185         * NumericUpDown.cs: Internal events added to UpDownBase:
186         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
187         <ngao@novell.com>.
188
189 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
190
191         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
192
193 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
194
195         * ListView.cs:
196         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
197         Application.EnableVisualStyles hasn't been called.
198         Fixes part of #437933.
199
200 2008-10-31  Andreia Gaita  <shana@jitted.com>
201
202         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
203           if the container is not focused already, we need to specifically set
204           focus to the first available control, or to the form itself if there
205           are no controls.
206
207 2008-10-31  Andreia Gaita  <shana@jitted.com>
208
209         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
210         WM_ACTIVATE have been processed before returning, so it is guaranteed that
211         once it returns and the form is visible, it is actually on the screen on X11
212
213         * ContainerControl.cs: Only send focus to the control if the top container
214           is already focused. This is so that, when a form is first shown, all
215           the enter/leave events are done first before any focus stuff comes in.
216           If a control has no top container, there's an extra check on Control.Focus
217           to make sure it gets focused in this particular case.
218
219         * Control.cs: Force focus if the control is active but did not receive
220           focus after being set as active.
221
222         * MdiClient.cs: Dispose the form when closing
223
224         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
225           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
226           if the window is a top Form.
227           Reset all hwnd properties when the window has been destroyed so that
228           we don't land in any codepaths that might try to do something with it.
229           Added a bunch of debugging messages. If TRACE is defined, all X calls
230           are logged through DebugHelper. Set a few missing EntryPoint attributes.
231
232 2008-10-29  Mario Carrion <mcarrion@novell.com>
233
234         * ListViewItem.cs: Control enabled to support Accessibility:
235         - Internal events: UIATextChanged, UIASubItemTextChanged.
236         - Internal event UIATextChanged in ListViewSubItem that triggers
237         UIASubItemTextChanged.
238         * ListView.cs: Control enabled to support Accessibility:
239         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
240         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
241         - Internal event UIACollectionChanged in ColumnHeaderCollection.
242         - Internal event UIACollectionChanged in ListViewItemCollection.
243         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
244         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
245         - Internal methods: UIAGetHeaderBounds.
246
247 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
248
249         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
250         the event from the respective scrollbars.
251         Fixes #436709.
252
253 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
254
255         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
256         textbox to know whether any navigation key will be handled or not. If
257         not, don't pass the message to the textbox, and use it here instead. 
258         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
259         is more precise- than the previous AutoCompleteMatches one.
260         This should the keyboard navigation in ComboBox when using auto
261         complete modes.
262
263 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
264
265         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
266         [Fixes bug #436730]
267
268 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
269
270         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
271         overridden methods will get called.
272         * ToolStripItem.cs: Raise Click before MouseUp.
273         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
274         the item's location into account.
275         [Fixes bug #437683]
276
277 2008-10-24  Neville Gao <nevillegao@gmail.com>
278
279         * NumericUpDown.cs: Control enabled to support accessibility.
280         [Fiexes bug #438135]
281
282 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
283
284         * TextBox.cs: Check that we actually have items no navigate, select
285         text when pressing enter, as well as handle direction keys only if
286         mode is different to Suggest or the suggest listbox is visible.
287
288 2008-10-23  Andreia Gaita  <shana@jitted.com>
289
290         * WebBrowser.cs: Use the new ContentStream property to retrieve
291           a stream encoded from the document content
292
293 2008-10-23  Andreia Gaita  <shana@jitted.com>
294
295         * HtmlDocument.cs,
296           HtmlElement.cs,
297           HtmlWindow.cs: Fix GetHashcode for null objects
298
299 2008-10-22  Andreia Gaita  <shana@jitted.com>
300
301         * HtmlDocument.cs,
302           HtmlElement.cs,
303           HtmlWindow.cs: Fix equality operators (fixes #428173)
304
305 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
306
307         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
308         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
309         [Fixes bug #436772]
310
311 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
312
313         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
314         same item with the mouse as was already selected.
315         [Fixes bug #436789]
316
317 2008-10-21  Brad Taylor  <brad@getcoded.net>
318         
319         * TextControl.cs: Break out code to get the visible range into
320           GetVisibleLineIndexes to be used in UIA code.
321         
322         * Line.cs:
323         * TextControl.cs:
324         * TextBoxBase.cs: Add comments indicating that the method or property
325           is used via reflection from UIA code.
326
327 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
328
329         * ListViewItem.cs: Match .net serialization.
330         Fixes remaining part of #417520.
331
332 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
333
334         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
335
336 2008-10-20  Mario Carrion <mcarrion@novell.com>
337
338         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
339         added: UIAToolTipRectangle.
340
341 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
342
343         * ListViewItem.cs: When deserializing enumerate over the data, instead
344         of accessing the data directly. This way we handle much better the
345         cases were we lack information.
346         Fixes #417520.
347
348 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
349
350         * ListView.cs: When removing an item from a main ListView.Items
351         collection (and not a ListViewGroupCollection.Items one), remove it
352         also from the group, as .net does. Patch by Mario Carrion (mario at
353         novell dot com).
354         Fixes #436653.
355
356 2008-10-19  Andreia Gaita  <avidigal@novell.com>
357
358         * Form.cs: Forms that get closed without a handle being created are
359         disposed in 2.0. Fixes failing FormTest.FormClose and
360         FormTest.FormClose2 on windows.
361
362 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
363
364         * ListView.cs: If both scrollbars are visible, the vertical one
365         shouldn't extend too far down.
366         Fixes #435771.
367
368 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
369
370         * DataGridView.cs: Add the ability to resize columns and rows with
371         the mouse.  Also support double-clicking to autoresize.
372         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
373         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
374         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
375         isn't shown on autoresize.
376         [Fixes bug #420193]
377
378 2008-10-17  Mario Carrion <mcarrion@novell.com>
379
380         * ComboBox.cs: Remove UIAListbox.
381
382 2008-10-17  Mario Carrion <mcarrion@novell.com>
383
384         * ComboBox.cs, ListBox.cs: Using added/removed item in 
385           OnUIACollectionChangedEvent instead of index.
386
387 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
388
389         * ComboBox.cs: When we are sorting the items, if the item's type
390         doesn't support IComparer, use a default one that compares based
391         off the item's visible text.
392         [Fixes bug #436328]
393
394 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
395
396         * ColumnHeader.cs: Invalidate ListView.header_control when setting
397         ImageIndex/ImageKey.
398         * ThemeWin32Classic.cs: When drawing the column header, draw a image
399         for the column if available, and make the required adjustments to the
400         text location.
401         Fixes #435105.
402
403 2008-10-17  Neville Gao <nevillegao@gmail.com>
404
405         * StatusBarPanel.cs: Control enabled to support accessibility.
406         [Fixes bug #435988]
407
408 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
409
410         * DataGridView.cs: When a user begins an edit in the 'new row',
411         make that a real row, and add a new 'new row'.  If the user
412         cancels the edit, remove the new 'new row' and reset everything.
413         Also, ensure UserAddedRow and UserRemovedRow events are raised.
414         [Fixes bug #430954]
415
416 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
417
418         * TableLayoutSettings.cs: Fix NREs when deserializing and 
419         panel is not yet set.
420         [Fixes bug #436199]
421
422 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
423
424         * DataGridView.cs: Invalidate after deleting a row.
425
426 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
427
428         * DataGridView.cs: Handle Enter and Escape keys.
429           - Move call to EndEdit to MoveCurrentCell.
430           - Remove call to EndEdit from navigation key routines.
431           - Fire CellLeave and CellEnter.
432
433 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
434
435         * DataGridViewCell.cs: Some fixes to the new cell border
436         painting code.
437
438 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
439
440         * ThemeEngine.cs: Enable visualstyles rendering by default
441         (on platforms that support it).
442
443 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
444
445         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
446         MainForm.OnLoad has completed unless DoEvents is forced.
447         [Fixes bug #412536]
448
449 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
450
451         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
452
453 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
454
455         * Control.cs: Make our implementation of DrawToBitmap better 
456         match WmPaint.  [Fixes bug #435579]
457
458 2008-10-14  Andreia Gaita  <avidigal@novell.com>
459
460         * WebBrowser.cs: Use DocumentElement as the document's root for the
461         whole content. Should fix DocumentText and DocumentStream problems.
462
463 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
464
465         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
466         these will get called in DGV.OnCollectionChanged.  Make sure 
467         OnCollectionChanged always gets called.
468         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
469         from every row.  Call this in OnCollectionChanged.
470         [Fixes bug #433669]
471
472 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
473
474         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
475         textbox if auto complete is used, since we need to navigate over it.
476         And in this case don't pass this messages to the base impl. Also hide
477         the auto complete list box when displaying the drop down listbox.
478         * TextBox.cs: new internal members to expose some of the auto complete
479         functionality to combobox.
480
481 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
482
483         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
484         MainForm.OnLoad has completed.
485         [Fixes bug #412536]
486
487 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
488
489         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
490         Append support to this controls. We need it to apply new patches.
491
492 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
493
494         * Control.cs: When updating z order in child controls, send to back
495         the implicit controls. Also, do it explicitly, instead of making
496         GetAllControls return the implicit controls in a specific order, and
497         thus avoid depending on that, which could change in the future.
498         Fixes #434304.
499
500 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
501
502         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
503         call to StartDrag, since we must fire DragDrop/DragLeave *before*
504         that, as .net does - instead of firing DragDrop/DragLeave *after* the
505         call to Control.DoDragDrop has completed. This is needed since at the
506         point of returning, we have sent related dnd ClientMessages, but we
507         need to wait for them to fire the wmf respective ones.
508         Fixes #325076.
509
510 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
511
512         * LinkLabel.cs: Recreate link pieces when change Padding.
513
514 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
515
516         * LinkLabel.cs: Take Padding into account when recreate link pieces.
517         [Fixes bug #412530]
518
519 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
520
521         * Control.cs: Implement internal property PaddingClientRectangle, it will be
522         useful for drawing controls that must take care about Padding property.
523
524 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
525
526         * BindingSource.cs: Make item_type internal so we can access it in DGV.
527         * DataGridView.cs: Add support for autogenerating columns from a
528         BindingSource.
529
530 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
531
532         * DataGridView.cs: Comment out an exception that is getting thrown
533         too often currently.
534
535 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
536
537         * DataGridView.cs: Always rebind to the datasource, as things may
538         have changed in it that we aren't capturing yet.
539
540 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
541
542         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
543         drawing mode.  If we are top aligned, give ourselves some top padding.
544
545 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
546
547         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
548         events on the control under the mouse pointer, instead of firing them
549         on the window generating the dnd operation. To achieve this re-use the
550         code used to get the window under the pointer when getting MouseMove
551         events.
552         Fixes #381876.
553
554 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
555
556         * X11Dnd.cs: Don't check that that the window sending the dnd events
557         is the owner of the selection. Although Gtk+ sets it that way, it's
558         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
559         So, just as Gtk+ does, we set our window sending the dnd events as the
560         owner of the selection, but don't check it when receiving them. This
561         should fix interoperability with Qt/Kde.
562         Fixes #324251.
563
564 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
565
566         * DataGridView.cs: Make sure we take the vertical scrollbar into
567         account when autosizing columns.
568
569 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
570
571         * DataGridView.cs: Handle sorting datetimes.
572
573 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
574
575         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
576         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
577         compilation warnings.
578
579 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
580
581         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
582         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
583         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
584         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
585         compilation warnings.
586
587 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
588
589         * DataGridView.cs, DataGridViewCell.cs, 
590         DataGridViewCellValidatingEventArgs.cs, 
591         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
592         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
593         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
594
595 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
596
597         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
598         Cleanup compilation warnings.
599
600 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
601
602         * XplatUIWin32.cs: Cleanup compilation warnings.
603
604 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
605
606         * PropertyGrid.cs: Cleanup compilation warnings.
607
608 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
609
610         * DataGridViewRow.cs: Only clear the row background if we
611         are going to paint a new background.
612
613 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
614
615         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
616         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
617         use PaintBorder instead.        
618
619 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
620
621         * DataGridView.cs: When CellBorderStyle is set, update the
622         AdvancedCellBorderStyle to match.
623
624 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
625
626         * DataGridViewCell.cs: Add helper methods to convert Alignment
627         to TextFormatFlags and align rectangles.
628         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
629         * DataGridViewImageCell.cs: Use Alignment when painting the image.
630
631 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
632
633         * ToolTip.cs: Display tooltips only for controls on the active form.
634         [Fixes bug #428115]
635
636 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
637
638         * DataGridView.cs: Make OnCellValueNeeded internal.
639         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
640         user can supply their own value if they choose.
641
642 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
643
644         * DataGridViewColumnHeaderCell.cs: Create a new style object
645         so the DefaultCellStyle doesn't get changed.
646
647 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
648
649         * ToolStripItem.cs: Check to make sure the owner is actually
650         changing in InternalOwner before doing any work.  Fixes some
651         failing tests.
652
653 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
654
655         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
656         * DataGridView.cs: Use a column header's inherited style instead
657         of just using the default.
658
659 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
660
661         * SplitContainer.cs: Raise SplitterMoved when the splitter is
662         moved through code.
663
664 2008-10-01  Mario Carrion <mcarrion@novell.com>
665
666         * ScrollBar.cs: Internal property added: UIAThumbPosition.
667
668 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
669
670         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
671
672 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
673
674         * ToolStripItem.cs: When the user sets Owner, we need to remove
675         it from its previous owner and then add it to the new owner's
676         item collection.  Also, create InternalOwner, so we can set the owner
677         that doesn't do this new stuff.
678         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
679
680 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
681
682         * ToolStripItem.cs: When our parent changes, recalculate our text
683         size, since we may be getting our Font from our parent.  When our
684         owner's Font changes, recalculate ourselves as we may be using
685         that font.
686
687 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
688
689         * MenuAPI.cs: Select the first option of a popup when opening the popup via
690         return key. [Fixes bug #413792].
691
692 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
693
694         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
695         ambient properties.  (Get their value from their parents if
696         values haven't been set.)
697
698 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
699
700         * ToolStripSystemRenderer.cs: Call overridden methods' bases
701         after our logic, so users can do painting by handling the events.
702         Currently, we draw over any user painting.
703
704 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
705
706         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
707         after our logic, so users can do painting by handling the events.
708         Currently, we draw over any user painting.
709
710 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
711
712         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
713
714 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
715
716         * TreeNode.cs, TreeView.cs: Move logic that determines the node
717         image to draw to TreeNode.  Give Index/Keys put on the node
718         precedence over the global one for the TreeView.
719
720 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
721
722         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
723
724 2008-09-29  Mario Carrion <mcarrion@novell.com>
725
726         * ListBox.cs: Index fixed.
727
728 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
729
730         * TabControl.cs: When expanding the tab -because it's selected now-,
731         using Right alignment, instead of adding some selected delta value to
732         the X origin, substract it, so it gets a location adjacent to the panel, 
733         instead of be more separated.
734         Fixes #409170.
735
736 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
737
738         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
739         own copies of them.
740
741 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
742
743         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
744         as well as the other static fields, to avoid using their previous
745         values my mistake when handling the dnd events. This should avoid
746         handling any status event after the drop has been finalized/cancelled.
747
748 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
749
750         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
751         operation, instead of waiting until we get any movement - this will
752         help us to have the data available in case no movement was detected
753         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
754         Finally add a windows.forms-only fallback to fire the mentioned events
755         if no movement at all was detected, just like .net does.
756         Fixes #381876.
757
758 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
759
760         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
761         return early if the text is empty because the icon doesn't get
762         drawn then.  [Fixes bug #428113]
763
764 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
765
766         * FileDialog.cs: Implement basic support for sorting by columns in
767         Details view. Patch by Eric Petit.
768         Fixes #428006.
769
770 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
771
772         * ThemeWin32Classis.cs: When drawing gridlines take into account the
773         case where ListView.ItemSize hasn't been computed, and provide a
774         fallback as well. This prevents a division by 0.
775
776 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
777
778         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
779         correctly draw tooltip backgrounds.
780
781 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
782
783         * ImageList.cs: Change CopyTo implementation to ensure clones are
784         created of our images.
785         [Fixes bug #409169]
786
787 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
788
789         * Control.cs: When setting fonts, we need to ensure we change our
790         reference to the new font object, even if it represents the same
791         font as before.  If we don't, the original font can get disposed
792         and we will still try to use it.
793         [Fixes bug #386450]
794
795 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
796
797         * FileDialog.cs: Take into account Tile view when selecting the view
798         (2.0 profile).
799
800 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
801
802         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
803         the item bounds, since we can't iterate over them in virtual mode.
804         Also fix wrong calculation of the gridlines when using scrolling.
805         Fixes #400390.
806
807 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
808
809         * XplatUIX11.cs: When handling EnterNotify events, take into account
810         both the public and implicit controls when trying to detect the
811         grab/ungrab process. This should fix ListView selection in Details
812         view.
813
814 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
815
816         * TreeView.cs: Redraw the whole node area when the selected node changes.
817         Things like state images were not getting redrawn because the invalid
818         rectangle was too small.
819         [Fixes bug #428211]
820
821 2008-09-23  Mario Carrion  <mcarrion@novell.com>
822
823         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
824         [Fixes bug #428993]
825
826 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
827
828         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
829         [Fixes bug #428114]
830
831 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
832
833         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
834         [Fixes bug #427884]
835
836 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
837
838         * StatusBar.cs: Add tooltip support.
839         [Fixes bug #428113]
840
841 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
842
843         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
844         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
845         hlaustralia.com.au).
846         Fixes #425360.
847
848 2008-09-23  Neville Gao <nevillegao@gmail.com>
849
850         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
851         [Fixes bug #419079]
852
853 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
854
855         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
856         [Fixes bug #428107]
857
858 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
859
860         * ListView.cs: Don't do anything when EnsureVisible is called inside a
861         BeginUpdate/EndUpdate block.
862         Fixes #425049.
863
864 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
865
866         * ListViewItem.cs: The semantics for the public .ctor of
867         ListViewSubItemCollection need us to already have a Text value for the
868         item, which in our implementation have as available *after* adding the
869         first sub item. So create an internal .ctor that satisfies our needs
870         and let the public .ctor have the same semantics as .net.
871         Fixes #427561.
872
873 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
874
875         * ListControl.cs: Changes in Formatting related values should call
876         RefreshItems, as .net does.
877         * ComboBox.cs:
878         * ListBox.cs: In the respective overrides of RefreshItems calculate
879         layout as well as refreshing - again, this is what .net does.
880         Fixes #426168.
881
882 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
883
884         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
885         since we are already doing that when we change the value of the
886         scrollbar or force the call to ScrollWindow in the same method. This
887         way we don't cause a Invalidate call for all the listbox bounds for
888         methods calling UpdateTopItem with an already updated top item. This
889         was happening specially calling EnsureVisible with already visible
890         items.
891
892 2008-09-18  Mike Gorse <mgorse@novell.com>
893
894         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
895           XplatUIStructs.cs: Added KeyFilter
896         [Fixes bug #427039]
897
898 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
899
900         * RelatedPropertyManager.cs: The properties returned by
901         GetItemProperties should be that ones of the *actual* object returned
902         by the property, not the property type - this is very special when the
903         property exposes a type, but the returned object actually is a child
904         class and implements more functionality and properties.
905
906 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
907
908         * Binding.cs: Don't look for the property in the data source if the
909         passed string is empty.
910
911 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
912
913         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
914         fix unused variable warnings.
915
916 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
917
918         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
919         [Fixes bug #427073]
920
921 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
922
923         * XplatUIX11.cs: 
924          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
925          leads to the window manager overriding our border style and zorder. 
926          - Allow the activation of non-modal forms, which are children of a 
927          modal form.
928         [Fixes bug #423417]
929
930 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
931
932         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
933         ask the window manager to do the work instead of changing the property 
934         directly.
935         [Fixes bug #423417]
936
937 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
938
939         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
940         AddNew to fix some navigation for empty datasets. [Fixes #323053]
941
942 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
943
944         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
945         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
946         border and fixes some drawing issues when resize form.
947
948 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
949
950         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
951         
952         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
953         AcceptButton.
954
955 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
956
957         * TextBoxBase.cs: For standard textbox the scrollbars are always 
958         visible if Multiline is true.
959         [Fixes bug #426896]
960
961 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
962
963         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
964         patch.
965         
966 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
967
968         [Fixes most od DBNull and HeadersVisible problems]
969         
970         * DataGrid.cs:
971         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
972         returns the value that we need.
973         - Fixed FromPixelToColumn method that return zero for first     column and for
974         row header cell, now it returns -1 for row header cell.
975         - Fixed HitTest to check row header cell in column header area, it now
976         returns HitTestType.None. [Fixes #322864]
977         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
978         checks for RowHeadersVisible and other things.
979         - If an exception occurs when setting CurrentCell and user type 'yes' in
980         message dialog, invalidade current and new cell and set setting_current_cell
981         to false to prevent future errors. [Partially fixes #323050]
982
983         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
984         value (SetColumnValueAtRow), it must be done by grid to properly show 
985         messages. [Fixes #323050]
986
987         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
988         better draw column and row header. Also dont draw anything when column
989         headers is not visible.
990
991 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
992
993         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
994         logic.
995
996 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
997
998         * TreeView.cs: Don't start editing a node on right click, only
999         left click.
1000
1001 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1002
1003         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
1004         disabled over a year ago.
1005         * Form.cs: Wrap calling Load in a try/catch because it can happen
1006         before the catch-all one in NativeWindow.
1007         [Fixes bug #425414]
1008
1009 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1010
1011         * ToolStripDropDownMenu.cs: Calculate the connected area better
1012         to take into account when the drop down is not directly under the
1013         owner item.
1014         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
1015
1016 2008-09-16  Mario Carrion <mcarrion@novell.com>
1017
1018         * ScrollBar.cs: New event added: UIAValueChanged, generated when
1019           LargeChange, SmallChange, Maximum or Minimum values are changed.
1020         [Fixes bug #426464]
1021
1022 2008-09-16  Mario Carrion <mcarrion@novell.com>
1023
1024         * ErrorProvider.cs: Component enabled to support accessibility.
1025         * Application.cs: Updated to Initialize UIA in ErrorProvider.
1026         [Fixes bug #426459]
1027
1028 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1029
1030         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
1031         so we don't highlight on first focus.
1032         [Fixes bug #360869]
1033
1034 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1035
1036         * TextControl.cs: Correctly calculate the height of the area we 
1037         need to invalidate when we have started scrolling and viewport_y
1038         is used.  [Fixes bug #387608]
1039
1040 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1041
1042         * TextControl.cs: When getting the SelectedText, don't add in
1043         NewLine characters, as they are already contained in the lines.
1044         [Fixes bug #388115]
1045
1046 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
1047
1048         * TextBoxBase.cs: Replace the buggy Lines setter with one that
1049         simply concats the lines and send it to the Text setter.
1050         [Fixes issue #2 and #3 of 388115]
1051
1052 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1053
1054         * Binding.cs: The default value of DataSourceNullValue should be
1055         Convert.DBNull actually. Also, the NullValue should only be used *if*
1056         itself is not null, and use the null/Convert.DBNull value instead.
1057
1058 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1059
1060         * TextControl.cs: Add a method to convert a string newline to the
1061         newline enum.
1062         * TextBoxBase.cs: When the user hits enter, insert a native newline.
1063         [Fixes part 1 of bug #388115]
1064
1065 2008-09-15  Mario Carrion <mcarrion@novell.com>
1066
1067         * ToolTip.cs: UnPopup event set to internal to match public API.
1068
1069 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1070
1071         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
1072         have to remove the Ctrl in order for the focus moving code to kick in.
1073         [Fixes bug #426170]
1074
1075 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
1076
1077         * CheckedListBox.cs: Return the real item index from Add.  It may not be
1078         the last item if the list is sorted.  The user can change the NewValue in
1079         the ItemCheck event, we need to use that value if so.
1080         * ListBox.cs: Return the real item index from a sorted Add.
1081         [Fixes bug #426166]
1082
1083 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
1084
1085         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
1086         happen that the icons from the theme is missing or the particular size 
1087         unavailable.
1088         [Fixes bug #424981]
1089
1090 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1091
1092         * Binding.cs: When assigning null or DBNull depending on value/ref type,
1093         use IsValueType instead to get the precise desired value.
1094         Fixes #424276.
1095
1096 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1097
1098         * TreeNodeCollection.cs: When adding a new node to an opened node,
1099         we have to invalidate everything below the parent node because
1100         every node scoots down and we have to repaint them.
1101         [Fixes bug #411386]
1102
1103 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1104
1105         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
1106         property into account when drawing.
1107         [Fixes bug #416064]
1108
1109 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1110
1111         * ListBox.cs: When calling Items.Clear(), call
1112         SelectedIndexCollection.ClearCore instead of normal Clear method, to
1113         not fire any Selected*Changed event - this is done to match .net and
1114         don't have invalid values when changing the DataSourceProperty.
1115         Fixes #424273.
1116
1117 2008-09-12  Mario Carrion  <mcarrion@novell.com>
1118
1119         * HelpProvider.cs: Control enabled to support accessibility.
1120         * Application.cs: Updated to Initialize UIA in HelpProvider.
1121         [Fixes bug #425988]
1122
1123 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1124
1125         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
1126         make the dialog TopMost as well.
1127         [Fixes bug #425984]
1128
1129 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1130
1131         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
1132         clipboard data better.
1133         [Fixes bug #414446]
1134
1135 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1136
1137         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
1138         TextChanged and SelectionChanged events fire in the same order as .Net.
1139         [Fixes bug #425725]
1140
1141 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1142
1143         * DataGridView.cs: When sorting a column, if it only contains numbers,
1144         do a numeric sort instead of a string sort.
1145         [Fixes bug #425849]
1146
1147 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
1148
1149         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
1150         against NRE's when the settings have a null panel.
1151         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
1152         the panel gets set.
1153         [Fixes bug #425647]
1154
1155 2008-09-11  Mario Carrion  <mcarrion@novell.com>
1156
1157         * ToolTip.cs: Control enabled to support accessibility.
1158         * Application.cs: Updated to Initialize UIA in ToolTip.
1159         [Fixes bug #425277]
1160
1161 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1162
1163         * Control.cs: Make the custom Enumerator internal to fix build.
1164
1165 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1166
1167         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
1168         already in edit mode, begin edit mode.  Generally edit mode isn't
1169         started until the second click, but CheckBoxes are special.
1170
1171 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1172
1173         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
1174         since that can be set to anything.  Always add them to the Control's
1175         parent.  [Fixes bug #416058]
1176
1177 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1178
1179         * ListView.cs: Use a custom enumerator for ListViewItemCollection
1180         so items can be deleted in a foreach.
1181         [Fixes bug #425342]
1182
1183 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1184
1185         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
1186         Store the user set explicit height so that the row can be AutoSized
1187         and then when AutoSize is turned off, it can get its original size back.
1188         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
1189         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
1190         rows' heights back to their explicit values.
1191         [Fixes bug #415780]
1192
1193 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1194
1195         * DateTimePicker.cs: When getting focus, select the checkbox if we are
1196         already showing it. Also, don't change its value when pressing space
1197         if the checkbox is not visible (ShowCheckBox as false). Finally, the
1198         checkbox should remain selected as long as Checked is false, and the
1199         other parts are disabled.
1200         Fixes #424267.
1201         
1202 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * MessageBox.cs: Handle shortcut keys to dialog buttons.
1205         [Fixes bug #425425]
1206
1207 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1208
1209         * Binding.cs: When the value retrieved from the control property is
1210         null, don't return Convert.DBNull for Nullable instances, since they
1211         can *actually* get a null value.
1212         Fixes #424265.
1213
1214 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1215
1216         * Control.cs: Add an internal field to force doublebuffering regardless
1217         of what the public mechanisms are set to.  This is because MS's native
1218         controls are doublebuffered even though their .Net bits are set to false.
1219         * ProgressBar.cs: Set force_double_buffer to true.
1220         [Fixes bug #406595]
1221
1222 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
1223
1224         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
1225         the cell template.
1226         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
1227         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
1228         without EditingControls, paint background selection for types without
1229         EditingControls, reset the EditingCellValueChanged flag when the
1230         cell's value is committed.
1231         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
1232         have EditingControls, remove a double call to a cell's OnContentClickInternal,
1233         don't do cell changing logic in OnMouseDown if the cell didn't change.
1234         [Fixes bug #420351]
1235
1236 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1237
1238         * DateTimePicker.cs: Fix the edition of am/pm specifier.
1239
1240 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
1241
1242         * TextControl.cs: Add "&" to the list of valid characters in a URL.
1243
1244 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1245
1246         * DateTimePicker.cs: Before incrementing or decrementing any part in
1247         the textbox, end any current edit. Also when ending the current edit
1248         use the editing_part_index field instead of the current selected
1249         value, since they can be out of synch, and we really need to work on
1250         the *real* current edit part. Finally when PartData.Selected changes,
1251         always try to end any ongoing edit.
1252         This should fix some small errors handling mouse navigation and
1253         increase/decrease operations.
1254
1255 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1256
1257         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
1258         respectively) should handled different, since the 12 hours format
1259         needs the value typed by the user to be adjusted depending on the
1260         a.m/p.m value, so it is preserved, and only changed when the value
1261         reaches the 12 value (when it changes from a.m to p.m).
1262         Fixes part of #416555.
1263
1264 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1265
1266         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
1267         * ToolStripDropDownItem.cs: Don't fire events and such again if
1268         ShowDropDown is called on an already dropped down item.
1269         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
1270         subitems, the user may add some in the DropDownOpening event.
1271         [Fixes bug #417877]
1272
1273 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1274
1275         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
1276         [Fixes bug #424270]
1277
1278 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * MdiClient.cs: When looking for menustrips on a child form to merge,
1281         look inside ToolStripContainers.
1282         [Fixes bug #424264]
1283
1284 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1285
1286         * ErrorProvider.cs: Unbreak my previous commit.
1287
1288 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
1289
1290         * ErrorProvider.cs: Icon should always be 16x16.
1291         [Fixes bug #424380]
1292
1293 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1294
1295         * GridEntry.cs: Invalidate the child items cache when the property 
1296         value changes.
1297
1298 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
1299
1300         * GridEntry.cs, PropertyGridView.cs: 
1301            - Update the ReadOnly detection and rendering to finally hopefully 
1302            match the one of MSFT.
1303            - Niceify and move the debug CWLS.
1304         [Fixes bug #409028]
1305
1306 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1307
1308         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
1309         since we are already calling Invalidate for the entire control when
1310         needed - and call Redraw() when size changes, since we need to paint
1311         there by ourselved and not anymore from the mentioned method. 
1312         This should improve the layout process. Also clean some not needed calls 
1313         here and there.
1314
1315 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1316
1317         * MenuAPI.cs: Add a null check to the Alt-F4 code.
1318         [Fixes bug #420309]
1319
1320 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
1321
1322         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
1323         [Fixes bug #423040]
1324
1325 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
1326
1327         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
1328         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
1329         on item expansion. Improves performance and fixes bug #417955.
1330         [Fixes bug #417955]
1331
1332 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
1333
1334         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
1335         fix the build.
1336
1337 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1338
1339         * TextControl.cs: Add "_" to the list of valid characters in a URL.
1340         [Fixes bug #423408]
1341
1342 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1343
1344         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
1345         region gets set.
1346         [Fixes bug #414166]
1347
1348 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1349
1350         * FontDialog.cs: When storing our font size from the starting font,
1351         use SizeInPoints instead of Size in case Size is a different unit
1352         from Points.
1353         [Fixes bug #416489]
1354
1355 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
1356
1357         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
1358         don't use it for anything else, check if a directory is highlighted.
1359         If it is, navigate into it.
1360         [Fixes bug #422087]
1361
1362 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1363
1364         * Binding.cs: When acquiring a BindingManagerBase for the first time,
1365         check that the specified property actually exists in the data source,
1366         and throw an ArgumentException if that's not the case - this is only
1367         done for this scenario, since for later cases (such Position changes)
1368         we throw different exceptions (match .Net).
1369
1370 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
1371
1372         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
1373           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
1374           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
1375           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
1376           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
1377           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
1378           properties.
1379           [Fixes bug #418684]
1380
1381 2008-09-03  Neville Gao <nevillegao@gmail.com>
1382
1383         * StatusBar.cs: Control enabled to support accessibility.
1384         [Fixes bug #419079]
1385
1386 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1387
1388         * Binding.cs: When connecting the event handler for the "Changed"
1389         event for the property, only do it for PropertyManager, and not for
1390         CurrencyManager - this is exactly what does .Net, totally ignoring any
1391         change in the property of the elements of a list.
1392         Fixes the tests.
1393
1394 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
1395
1396         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
1397         to Windows when creating a window, as we fake MDI stuffs.
1398         [Fixes bug #421858]
1399
1400 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
1401
1402         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
1403         change takes effect.
1404
1405 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
1406
1407         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
1408         [Fixes bug #419001]
1409
1410 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1411
1412         * DataGridView.cs: Raise CellContentClick event.
1413         [Fixes part of bug #420351]
1414
1415 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1416
1417         * ScrollBar.cs: Control enabled to support accessibility.
1418         [Fixes bug #416759]
1419
1420 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1421
1422         * ComboBox.cs: Control enabled to support accessibility.
1423         [Fixes bug #416663]
1424
1425 2008-08-27  Mario Carrion  <mcarrion@novell.com>
1426
1427         * ListBox.cs: Control enabled to support accessibility.
1428         [Fixes bug #416640]
1429
1430 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
1431
1432         * ComboBox.cs: Don't suppress the TextChanged event when changing
1433         the SelectedIndex.
1434         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
1435         and re-raise it.
1436         [Fixes bug #420673]
1437
1438 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
1439
1440         * ErrorProvider.cs: Fix a regression NRE when setting properties
1441         for a control before it has a parent.
1442         [Fixes bug #420305]
1443
1444 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1445
1446         * Binding.cs: Use the BindingManagerBase.Current value to obtain
1447         connect the property "Changed" event, instead of using the data
1448         sources - this is useful when the property specifies actually a
1449         multiple objects path.
1450         Fixes part of #417973.
1451
1452 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1453
1454         * RelatedPropertyManager.cs: PropertyManager instances associated to a
1455         nested properties should return not the properties of the data source
1456         itself, but the properties of the type of a specific property in the
1457         data source - match .net.
1458
1459 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
1460
1461         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
1462         AddRange overloads into AddItems method, and added missing NULL check.
1463         Added extra argument check to RemoveAt for compatibility with MS. 
1464         Modified IList implementation of Add, Contains, IndexOf and Remove to
1465         throw an ArgumentException if item is not an int. Modified IList.Insert
1466         to throw a NotSupportException instead of an Exception. Implemented
1467         ICollection.
1468         (ObjectCollection): To avoid duplication, use AddItems method from
1469         AddRange overloads. On 1.0 profile, first perform NULL check on items
1470         in AddItems.
1471
1472 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
1473
1474         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
1475          #419087.
1476
1477 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1478
1479         * X11Keyboard.cs : comment out some Console.WriteLine().
1480
1481 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
1482
1483         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
1484           even if premises are not filled. Also XLookupString() was not
1485           receiving correct input, which blocked precise input handling
1486           on non-XIM mode.
1487
1488 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1489
1490         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
1491         type of delegate, instead of EventHandler - this was causing a type
1492         cast exception in all apps handling this event.
1493         Fixes #417876.
1494
1495 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
1496
1497         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
1498         ShowDropDown to give the user a chance to dynamically add
1499         drop down items.  [Step 1 of fixing bug #417877]
1500
1501 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1502
1503         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
1504         had any mouse motion since the call to StartDrag, to match the dnd
1505         behaviour of .net.
1506         Fixes part of #381876.
1507
1508 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1509
1510         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
1511         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
1512         Also, if we are actually moving into a different window after
1513         grabbing, generate a LeaveNotify event for the previous window, since
1514         we need to fire the leave events until the grab ends, not when
1515         actually moving outside of the control.
1516
1517 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1518
1519         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
1520         events only for client windows was wrong - we need to compare the
1521         client window against the window receiving the EnterNotify event, not
1522         against zero (since client window is never Zero, btw).
1523         This prevents having unnecessary handling of EnterNotify events for
1524         non-client windows when a gran begins.
1525
1526 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1527
1528         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
1529         MouseMove/MotionNotify events at all (which should only happen after
1530         MouseUp/ButtonRelease, as .Net does).
1531         This avoids firing an extra and unnecessary MouseMove event just after
1532         every MouseDown event.
1533
1534 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1535
1536         * LinkLabel.cs: Always clear any previous links when LinkArea
1537         is set.  [Fixes bug #410709]
1538
1539 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1540
1541         * ToolStripProfessionalRenderer.cs: Revert last change.
1542         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
1543         for ToolStripDropDownBackground.
1544
1545 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
1546
1547         * ToolStripProfessionalRenderer.cs: Use Window color for the 
1548         background of dropdowns to match .Net when the user is not
1549         using the default white.  [Fixes bug #418108]
1550
1551 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
1552
1553         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
1554           it caused timer registration twice. Fixed bug #418107.
1555
1556 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1557
1558         [Correction: This is the actual change to X11Dnd issue, not the
1559         previous one, which was actually a different issue.]
1560
1561         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
1562         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1563         when the pointer is actually in motion, but only when the pointer
1564         seems to stop (as .net does).
1565         Fixes part of #381876.
1566
1567
1568 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
1569
1570         * ListBox.cs: Fix CopyTo implementation.
1571         [Fixes bug #409169]
1572
1573 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
1574
1575         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
1576         drawing a ComboBox's background.  Fixes bad disabled rendering when
1577         the control is not at 0,0.
1578         [Fixes bug #416063]
1579
1580 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
1581
1582         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
1583         ComponentModel layer, which will properly prioritize the attributes.
1584         Avoids wrong prioritization of duplicate attributes when retrieving 
1585         the converter and editor.
1586         [Fixes bug #417729]
1587
1588 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1589
1590         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
1591         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
1592         when the pointer is actually in motion, but only when the pointer
1593         seems to stop (as .net does).
1594         Fixes part of #381876.
1595
1596 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
1597
1598         * GridEntry.cs: Perform stricter check for the ParentEntry's 
1599         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
1600         implementation.
1601         [Fixes bug #417567]
1602
1603 2008-08-14  Geoff Norton  <gnorton@novell.com>
1604
1605         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
1606         Fixes #396983.  Properly fix ActiveWindow trackin and do not
1607         prematurely show POPUP windows.
1608
1609 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1610
1611         * XplatUIX11.cs: Handle the obscured regions while scrolling using
1612         GraphicsExpose event, processing it just after we copy the scrolled
1613         area. This ensures that the next calls to ScrollWindow will copy
1614         regions already updated, and the scrolling will be smooth. Also remove
1615         the code that was trying to detect the obscured regions, since we are
1616         not using it anymore (too slow).
1617
1618 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1619
1620         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
1621         MultiExtended mode, by separating some logic between the ctrl/shift
1622         handling. Also ignore any MouseMove events generated together with
1623         MouseDown events - we are only interested in the real motion event.
1624         Fixes part of #414963.
1625
1626 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
1627
1628         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
1629         is selected.  [Fixes bug #414143]
1630
1631 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
1632
1633         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
1634         and not the parent one (the propertyowner). Fixes the behavior of 
1635         GetConverter/GetEditor.
1636         [Fixes bug #415452]
1637
1638 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
1639
1640         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
1641         [Fixes part of bug #415452]
1642
1643 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
1644
1645         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
1646         GridEntry, not the current.
1647         [Fixes bug #413896]
1648
1649 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
1650
1651         * TextBoxBase.cs: De-internalize max_length field.
1652         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
1653         share the same logic.
1654         [Fixes bug #414454]
1655
1656 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1657
1658         * ListBox.cs: Selection changes made in the MouseDown handler should
1659         use the *Core versions of selection in SelectedIndices collection,
1660         since the SelectedIndexChanged/SelectedValueChanged events are fired
1661         until we get a MouseUp event, and thus we need to separate the logic
1662         from the events, as done in the keyboard navigation. Also, fire those
1663         selection events from keyboard navigation in SelectionMode.None, even
1664         if we don't have a selection, as .Net does.
1665
1666 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
1667
1668         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1669         last change introduced when an item is clicked but isn't on a toolstrip.
1670
1671 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1672
1673         * ListBindingHelper.cs: When looking for an object's properties, check
1674         if it implements ICustomTypeDescriptor, in which case we should
1675         resolve the propertu based on its GetProperties method, not in its
1676         actual properties. This is what .Net seems to do.
1677         Fixes a UsingWebBrowser problem during initialization.
1678
1679 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1680
1681         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1682         sitting on a MenuStrip.
1683
1684 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1685
1686         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1687         no children with the keyboard, we need to release the keyboard capture.
1688         [Fixes bug #413567]
1689
1690 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
1691
1692         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1693         no children with the keyboard, we need to release the keyboard capture.
1694         [Fixes bug #413567]
1695
1696 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1697
1698         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1699         the GTK+-based implementation of VisualStyles.
1700         * ThemeWin32Classic.cs: Exposed various layout values for use in the
1701         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1702         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1703         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1704         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1705         TrackBarHorizontalTrackHeight.
1706
1707 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
1708
1709         * TabControl.cs: Added hot style handling for the scroll buttons.
1710         right_slider_state, left_slider_state are now of type PushButtonState to
1711         allow for a hot state. Added tracking of the mouse button being held down
1712         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1713         LeftScrollButtonArea.
1714         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1715         TabControlGetRightScrollRect.
1716
1717 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1718
1719         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
1720         runtime errors.
1721
1722 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1723
1724         * Form.cs: Ensure that we reset the shown_raised flag after 
1725         the form is closed, so that we raise the show events the next 
1726         time the form is shown.
1727         [Fixes bug #413141]
1728
1729 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1730
1731         * Form.cs: Ensure closing events are raised only once.
1732         [Fixes bug #413143]
1733
1734 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1735
1736         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
1737         so that we can successfully generate the LParam in-place instead of 
1738         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
1739         navigation for menus.
1740
1741 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1742
1743         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
1744         'navigating'. Fixes bug #411356.
1745
1746 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1747
1748         [Fixed remaining issues of #406773 (#1)]
1749         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
1750
1751         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
1752         MainMenu (already done) and ContextMenu creation.
1753
1754         * ContextMenu.cs: Create tracker on construction. 
1755
1756 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1757
1758         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
1759         possible to instantiate MenuTracker without GrabControl.
1760
1761 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1762
1763         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
1764
1765         * MainMenu.cs: Set GrabControl on SetForm using current form.
1766
1767 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1768
1769         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
1770
1771 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
1772
1773         * MenuAPI.cs: Check if menu is activated before deactivate it in 
1774         ProcessShortcut.
1775
1776 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
1777
1778         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
1779         ColumnStyle.cs: 
1780         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
1781          - One style instance can only participate in a single style collection.
1782          - Styles can request their owner to layout whenever their properties 
1783          change.
1784          [Fixes bugs #412583 and #412582]
1785
1786 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
1787
1788         * X11Keyboard.cs: Implement the generation of the LParam for 
1789         all keyboard messages.
1790         [Fixes bug #378728]
1791
1792 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
1793
1794         * ListBox.cs: Don't let the user set TopIndex so high that it
1795         scrolls up far enough to show empty items.
1796         [Fixes bug #412728]
1797
1798 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1799
1800         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
1801         (I'm an idiot and forgot to commit the actual changes, as well as
1802         specify the right file, which is this one, not ListView.cs).
1803
1804 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1805
1806         * ListView.cs: Don't draw ListViewSubItem instances from
1807         DrawListViewItem - we need to reuse the main item's drawing for the
1808         first sub item in case owner draw is true, but wants the system to
1809         do the default draw for the first sub item, without incurring in a
1810         recursion problem.
1811         Fixes #410880.
1812
1813 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
1814
1815         * ToolStripButton.cs: Update Checked for CheckOnClick before
1816         raising the Click event.  [Fixes bug #412505]
1817
1818 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
1819
1820         * Form.cs: Remove some seems leftover code for non-TopLevel's 
1821         CreateParams, which is breaking ClientSize sizing, because it 
1822         removes the border window styles.
1823
1824 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
1825
1826         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
1827         changes.
1828
1829 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
1830
1831         * WebBrowser.cs: Removed debug output.
1832
1833 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
1834
1835         * FileDialog.cs: Apply patch from Ernesto to clean up some
1836         dialog messages.
1837
1838 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1839
1840         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
1841         that the change has an immediate effect.
1842
1843 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1844
1845         * ScrollableControl.cs: Update PerformLayout calls to include 
1846         provide the name of the property that changed.
1847
1848 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1849
1850         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
1851         location. Fixes drawing of border and cell borders if scrollable.
1852
1853 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1854
1855         * ScrollableControl.cs: Perform layouting after the AutoScroll 
1856         properties have changed, so that the changes have immediate 
1857         effect.
1858         [Fixes bug #409090]
1859
1860 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1861
1862         * XplatUIX11.cs: Non Client area is actually Client such in the 
1863         case of NotifyIcon, so double check WholeWindow == ClientWindow 
1864         when adding an expose.
1865         [Fixes bugs #324237 and #357022]
1866
1867 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1868
1869         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
1870         repaint the cell borders.
1871
1872 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
1873
1874         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
1875         disposal to avoid unexpected ObjectDisposedExceptions.
1876
1877 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
1878
1879         * TableLayoutPanel.cs: Layout on Row/Column count change.
1880
1881 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
1882
1883         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
1884         bug #409351.
1885         * PictureBox.cs: When ImageLocation is set to null or an empty string,
1886         only set image to null if it was previously initialized from an url
1887         (or using ImageLocation). In ImageLocation, load specified image
1888         asynchronously if WaitOnLoad is false. Added support for local file
1889         paths to LoadAsync, and added missing argument check.
1890
1891 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892
1893         * DateTimePicker.cs: 
1894         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
1895         order to set the value as required (which means: when selection
1896         changes for a part being edited, and not before that if not needed).
1897         Also use an enum to describe which part are we using, and use the
1898         selection as a property in PartData, in order to notify the
1899         DateTimePicker owner that we need to end the current edit.
1900         Fixes #383462.
1901
1902 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
1903
1904         * PropertyGridTextBox.cs: Validation should be performed only if we 
1905         are focused. We can lose focus for example if the Return key is used 
1906         to set the entry and there is an error. When the message box is 
1907         displayed we would have validate on click in the message box.
1908
1909 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
1910
1911         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
1912         in order to determine that we are expandable is wrong. There was a bug, 
1913         now fixed, in TypeDescriptor that was causing the wrong converter to be 
1914         returned which caused GetPropertiesSupported == false in most cases.
1915         [Fixes bug #409027]
1916
1917 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
1918
1919         * ImageList.cs: Fix ICollection.CopyTo implementation for
1920         ImageListCollection.  [Fixes bug #409169]
1921
1922 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1923
1924         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
1925         WorkingArea so that menus can appear on the second monitor
1926         when one has dual monitors.
1927
1928 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1929
1930         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
1931         Fixes build.
1932
1933 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1934
1935         * TextBox.cs: Implement navigation support for auto complete in
1936         TextBox, as well as refactor the code to show the auto complete window
1937         when receiving a WM_CHAR message, instead of TextChanged, since
1938         autocomplete itself should be able to set the Text a lot of times and
1939         finally only typing should show it, not changes from code.
1940
1941 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1942
1943         * TabControl.cs: When expanding the selected tab, don't adjust the
1944         width if alignment is Right, since it has a different offset than 0,
1945         as opposed to the other alignments.
1946         Fixes the selected tab not being painted at all with alignment = Right
1947         and using FillToRight size mode.
1948
1949 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1950
1951         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
1952
1953 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1954
1955         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1956         values from the textbox to the boundary values.  [Fixes bug #409026]
1957
1958 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
1959
1960         * TreeNodeCollection.cs: We were copying one too many elements when
1961         doing our array copy.  Fixes a crash when RemoveAt is called.
1962         [Fixes bug #408999]
1963
1964 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1965
1966         * TabControl.cs: When doing the layout and need to call FillRow -using
1967         FillToRight size mode-, use the overload receiving a bool param
1968         indicating whether we need to do a vertical or horizontal calculation.
1969         Fixes part of #399583.
1970
1971 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1972
1973         * TextBox.cs: When painting, use the value returned by
1974         GetLastVisibleItem instead of using the cached last_item field, since
1975         there could be a desynchronization between the layout and the
1976         painting. Fixes a AOOR exception in auto complete mode.
1977
1978 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
1979
1980         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1981         NonClientAreaEnabled until our VisualStyles is modified to allow it.
1982
1983 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
1984
1985         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1986
1987 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1988
1989         * TextBox.cs: When focus is lost, if the auto complete listbox is
1990         visible, hide it.
1991
1992 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
1993
1994         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1995         tracking size for tool windows.
1996         * Theme.cs, ThemeWin32Classic.cs : Extracted
1997         ManagedWindowSpacingAfterLastTitleButton.
1998
1999 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2000
2001         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
2002         They are bit-rotted and have always been listed as "unsupported".
2003
2004 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
2005
2006         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2007
2008 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2009
2010         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2011
2012 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2013
2014         * ListBox.cs: Make sure last_item_visible gets reset before we try
2015         to do a layout due to scrollbars appearing or disappearing.
2016         [Fixes bug #408139]
2017
2018 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2019
2020         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
2021         for different window themes.  [Fixes bug #339140]
2022
2023 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2024
2025         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
2026         in ManagedWindowBorderWidth.
2027
2028 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2029
2030         * InternalWindowManager.cs: Change MouseMove to take a point, so
2031         we can use the same point later on.
2032         * MdiWindowManager.cs: Store point sent to MouseMove so we can
2033         later reset to it.  On Windows, the Cursor.Position had already
2034         changed by the time we were resetting to it.
2035         [Fixes bug #363239]
2036
2037 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2038
2039         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
2040         are inactive.
2041         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
2042         user requested it.
2043         [Fixes bug #398686]
2044
2045 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
2046
2047         * MdiWindowManager.cs: Double-clicking on the title bar should not
2048         maximize a MDI form if MaximizeBox = false.
2049
2050 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2051
2052         * ThemeVisualStyles.cs: Fixed a warning.
2053
2054 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2055
2056         * ThemeVisualStyles.cs: Fixed warnings and formatted.
2057
2058 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2059
2060         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
2061         implementation produces a better result.
2062
2063 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2064
2065         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
2066         windows.
2067
2068 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
2069
2070         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
2071         cannot be used from the ThemeEngine constructor.
2072         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
2073         Application.VisualStylesEnabled because it does not work on X11.
2074
2075 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
2076
2077         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
2078         that we did not always check for, as well as fixes to the IList
2079         implementations.  [Fixes bug #402703]
2080
2081 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2082
2083         * IDeviceContext.cs: Added Dispose.
2084
2085 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2086
2087         * Control.cs: Added OnSizeInitializedOrChanged.
2088         * Form.cs: OnLoadInternal: Added a call to
2089         Control.OnSizeInitializedOrChanged.
2090         * InternalWindowManager.cs:
2091          * HandleTitleBarMouseMove: No longer invalidates the parent window.
2092          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
2093          * TitleButton: Added Entered.
2094          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
2095         * MdiWindowManager.cs:
2096          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
2097          move over the maximized title buttons causes a change.
2098          * IsActive: Can now be called before the window is added to a MDI parent.
2099         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
2100         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2101         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
2102         * ThemeWin32Classic.cs:
2103          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
2104          * DrawTitleButton takes a new form parameter.
2105          * Added ManagedWindowTitleButtonHasHotElementStyle,
2106          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2107
2108 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2109
2110         * ThemeEngine.cs: ThemeVisualStyles is now selected if
2111         Application.EnableVisualStyles has been called, even if the current system
2112         configuration does not support rendering with Visual Styles.
2113         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
2114         Styles should not be used.
2115
2116 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
2117
2118         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
2119         ComboBox in FormsTest.
2120
2121 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
2122
2123         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
2124         for fixed toolwindows.
2125
2126 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
2127
2128         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2129
2130 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2131
2132         * Control.cs: CreateControl just returns if the Control is diposed 
2133         and doesn't throw ObjectDisposedException.
2134         [Fixes bug #406566]
2135
2136 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2137
2138         * Control.cs: Do not create the control if the parent isn't created 
2139         yet, e.g in the case of a parented form on which .Show is called.
2140         It will be created when the parent is made visible/created.
2141         Improves #402446.
2142
2143 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2144
2145         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
2146         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
2147         [Fixes bug #406786]
2148
2149 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2150
2151         * Form.cs: When disposed set owner to null. Improves #402446.
2152
2153 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2154
2155         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
2156         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
2157         if not.
2158         * Form.cs: Take the Padding into account for the PreferredSize.
2159         [Fixes bug #402849]
2160
2161 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2162
2163         * TabControl.cs: Since we don't support more than one direction in
2164         TabControl rows alignment (this is, the row becomes the
2165         bottom row when selected), make Direction return always 1. This way
2166         the layout doesn't get confused about a bad calculation.
2167         Fixes #399582.
2168
2169 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
2170
2171         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
2172         so that the wparam is properly set.
2173         Fixes form moving in the test case in bug 402446.
2174
2175 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
2176
2177         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
2178         the full tree instead of nothing.  [Improves bug #406584]
2179
2180 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2181
2182         * ThemeWin32Classic.cs: Adjusted minimized window painting.
2183
2184 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
2185
2186         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
2187         children.
2188
2189 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
2190
2191         * TreeView.cs: Add a null check when using CollapseAll on an
2192         empty tree.  [Fixes bug #406449]
2193
2194 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2195
2196         * Form.cs: Make OnMenuComplete internal so we can call it.
2197         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
2198         [Fixes bug #399321]
2199
2200 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2201
2202         * TabControl.cs: Handle Up and Down keys when TabControl is in
2203         vertical alignment.
2204         [Fixes bug #399585]
2205
2206 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2207
2208         * TabControl.cs: Invalidate when we remove a tab.  Guard against
2209         an AOORE when trying to remove a tabpage that is not owned by the
2210         parent control.
2211         [Fixes bug #399927]
2212
2213 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2214
2215         * ScrollBar.cs: Change the LargeChange calculation to be correct.
2216         Ensure we are using LargeChange instead of large_change so we our
2217         calculations are correct.
2218         [Fixes bug #403122]
2219
2220 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
2221
2222         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
2223         we need to ensure the ColumnCount/RowCount gets set.
2224         [Fixes bug #404851]
2225
2226 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227
2228         * ListBox.cs: When handling item navigation, if selection mode is
2229         None, call EnsureVisible, since scrolling is normally handled by
2230         selection, that we are not calling in this case.
2231         Fixes #398345.
2232
2233 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2234
2235         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
2236         a null check to our focus walking code.  [Fixes bug #394332]
2237
2238 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
2239
2240         * ComboBox.cs: Case missed in bug 379596 "Support item
2241         navigation by entering text": On _close_ drop-down select
2242         the first item matching the text in the textbox.  [Fixes bug #397265]
2243
2244 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
2245
2246         * DataGridView.cs: Fix a crash when sorting by column headers, 
2247         mentioned in bug #404841.  Remove some dead switch cases.
2248
2249 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2250
2251         * ComboBox.cs:
2252         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
2253         uses the AutoComplete support in the internal TextBox. Also TextBox
2254         can store a reference to ComboBox, in case AutoCompleteSource is set
2255         to ListItems (this is, ComboBox's items, and we don't want to pass an
2256         additional collection).
2257
2258 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2259
2260         * ListViewItem.cs: Restore the initial value of bounds rect to
2261         Rectangle.Empty, and is this value for Layout detection in virtual
2262         mode. Fixes the tests.
2263
2264 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
2265
2266         * XPlatUI.cs: Remove references to "new" X11 backend.
2267
2268 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2269
2270         * Control.cs: Add an internal virtual OnDragDropEnd method 
2271         to allow controls such as ListBox, which depend on a sequence 
2272         of MouseDown+Move+End events, to handle the lack of a MouseUp 
2273         when a DnD operation is started in MouseDown.
2274         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
2275         get a MouseUp, so reset our state whenever a DnD operation ends.
2276
2277 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
2278
2279         * PropertyGrid.cs: Clear the root griditem first thing when 
2280         new object/s is/are selected. Fixes some rare cases where 
2281         the View will get a paint request and won't know that the 
2282         grid is in the process of repopulating.
2283
2284 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2285
2286         * XplatUIX11.cs, InternalWindowManager.cs: 
2287         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
2288         doesn't automagically update the FormBorderStyle, so we must 
2289         double check the CreateParams explicitly to determine if the 
2290         window is a toolwindow.
2291         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
2292         instead of doing custom checks.
2293
2294         Fixes toolwindows for the test case in bug #402446
2295
2296 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2297
2298         * Control.cs: Visibility of the control should be false 
2299         when the handle is destroyed in WmDestroy and not immediately 
2300         in Dispose(). This is effectively where the disposing process 
2301         ends even though the control is marked as Disposed immediately 
2302         after calling Dispose().
2303         [Fixes bug #402446]
2304
2305 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2306
2307         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
2308         when the textbox gets focus.
2309         [Fixes bug #402704]
2310
2311 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
2312
2313         * PropertyGridTextBox.cs, PropertyGridView.cs: 
2314          - Alt + Down should show the drop down editor.
2315          - Focus the editor when showing it
2316         [Fixes bug #402710]
2317
2318 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
2319
2320         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
2321         that are not the first panel.
2322         * StatusBar.cs: Ensure that the X coordinate of panels is always
2323         stored.  Fix IList implementation of StatusBarPanelCollection to
2324         call the regular methods.
2325         [Fixes bug #403599, #402165]
2326
2327 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
2328
2329         * ThemeWin32Classic.cs: Fix position calculation for centered
2330         text on status bar panels.  [Fixes bug #402165]
2331
2332 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2333
2334         * Splitter.cs: Fix Splitter to:
2335          - Work for arbitrary splitter size
2336          - Handle MinSize and MinExtra properly
2337          - Get rid of absolute positioning during drag and use relative
2338          - Multiple other fixes 
2339          [Fixes bug #338966]
2340
2341 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
2342
2343         * Cursor.cs: Show shouldn't hide the cursor.
2344
2345 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2346
2347         * ListViewItem.cs: When invalidating, add some extra space to bounds,
2348         since focus rectangle and selection can add some space and need to
2349         take into account those small offsets - specially in Details view.
2350         * ListView.cs: Instead of invalidate using item Bounds directly, call
2351         item.Invalidate, to have the code centralized.
2352         Fixes focused/selection garbage when selecting and deselecting items
2353         that are close.
2354
2355 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2356
2357         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
2358         mode we can check whether we have to force a Layout or not, and can
2359         cache based on this, instead of avoiding caching all the the time. Do
2360         this check in GetBounds and TextBounds.
2361         Fixes selection in Details view.
2362
2363 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2364
2365         * ListView.cs: Make HeaderControl internal, thus the theme engine can
2366         get its *real* height instead of trying to infere it.
2367         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
2368         get the position of them, since it's in general a bad idea in general,
2369         and because we can't do that in virtual mode. Instead get the first
2370         visible item as well as item height, and draw them.
2371         Fixes #400390.
2372
2373 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
2374
2375         * ToolStripSplitButton.cs: We can't add in extra width if
2376         the button is not AutoSize.  [Fixes bug #401279]
2377
2378 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
2379
2380         * PaddingConverter.cs: 
2381          - Implement conversion to InstanceDescriptor
2382          - Handle "All" in CreateInstance by using the supplied 
2383          ITypeDescriptorContext.
2384          [Fixes bugs #396076 and #396078]
2385
2386          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
2387          Code contributed under MIT/X11 license.
2388
2389 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
2390
2391         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
2392         ButtonBase.cs:
2393         Add Category attributes.
2394         Code is contributed under the MIT/X11 license.
2395
2396 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
2397
2398         * Form.cs: 
2399          - Fix a NRE when unparenting a form.
2400          - Do not recreate or destroy a parented form when 
2401         unparenting. 
2402
2403 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2404
2405         * TextBox.cs: Implement basic support for AutComplete with custom
2406         sources.
2407
2408 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
2409
2410         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
2411         DropDownButtonBounds should be from the origin of the button, not the
2412         ToolStrip.  [Fixes bug #401279]
2413
2414 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
2415
2416         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
2417           running gtk_init_check.  This prevents GAIL from loading
2418           unnecessarily, which was breaking UIA support.  Initial fix for bug
2419           #375987.
2420         * Application.cs: Add UIA support to Winforms.  New static constructor
2421           uses reflection to initialize UIAutomationWinforms assembly.  Added
2422           PreRun event so UIA can initialize before the mainloop starts, and
2423           FormAdded event so UIA can provide a11y support for new Forms in an
2424           Application.
2425
2426 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
2427
2428         * DataGridView.cs: When binding to a dataset, subscribe to table
2429         and column change events.  Unsubscribe to these when we clear bindings.
2430         [Fixes bug #399601]
2431
2432 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
2433
2434         [DataGrid drawing refactory]
2435
2436         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
2437
2438         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
2439         must be handle by Theme, now it call DataGridPaintColumnHeader.
2440
2441         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
2442         test cases must be also fixed because it checks for wrong size.
2443
2444         * ThemeWin32Classic.cs: 
2445                 - Draw the bottom line of grid caption.
2446                 - Prevent to draw caption text when it is empty.
2447                 - Use CPDrawBorder3D for 3D efects to simplify code.
2448                 - Uses 3D (when not flat) to paint corner shared between row and column
2449                 header.
2450                 - Fix header drawing issues on win32, now borders are drawing.
2451                 - Fix column header paint issues to mimic win32.
2452                 - Adjust header drawing for last column, like first one it must be draw
2453                 different.
2454                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
2455                 not an character.
2456                 - DataGridPaintColumnHeader created to draw column headers, it also
2457                 paint stuff right on Win32.
2458                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
2459                 class.
2460
2461         * Theme.cs: 
2462                 - DataGridPaintRowHeaderStar method added.
2463                 - DataGridPaintColumnHeader method added.
2464
2465 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
2466
2467         * Control.cs: Don't reset to Dock style layout if DockStyle is
2468         set to none.  [Fixes bug #399316]
2469
2470 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
2471
2472         * Win32DnD.cs: Fix the check for control not equal null.
2473         Fixes bug #341420 and #381886. 
2474
2475 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2476
2477         * DataGridViewRowCollection.cs: Update the indexes of rows after
2478         one has been removed.
2479         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
2480         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
2481         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
2482         rows for the Rows collection, or deleting rows from the bound DataSet.
2483
2484 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
2485
2486         * DataGridView.cs: Listen to a DataSet's changed event even
2487         when autogeneratecolumns is false.  Refactor the changed event's
2488         add row code to use the same as the existing add row code.
2489         [Fixes bug #399601]
2490
2491 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
2494         much any time the caret moves and there is text, not just when
2495         the selection changes as one would think.
2496         * RichTextBox.cs: Override RaiseSelectionChanged and fire
2497         SelectionChanged.
2498         [Fixes bug #397271]
2499
2500 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2501
2502         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
2503         instead of trying to duplicate the code.
2504         * ListBox.cs: Make method internal so we can send keyboard events.
2505         [Fixes bug #398344]
2506         
2507 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2508
2509         * TextBoxBase.cs: When pasting and checking the max length,
2510         subtract the selected text length (the text we will be replacing) from
2511         the document length.
2512         * TextControl.cs: Ensure every character insertion is reflected in
2513         charcount, so max length will work properly.
2514         [Fixes bug #398605]
2515
2516 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2517
2518         * ListBox.cs: Ensure scrollbars are updated when a single
2519         column listbox with an already set top-index is created.
2520         [Fixes bug #398342]
2521
2522 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
2523
2524         * FontDialog.cs: Typing in the font/style textboxes should search
2525         the list boxes case-insensitively.  [Fixes bug #398343]
2526
2527 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
2528
2529         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
2530         widths of icon and buttons instead of hard coded values.
2531
2532 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2533
2534         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
2535         as well as generating a SelectedIndexChanged event, just like .Net does
2536         -surprise-.
2537         Fixes #398345.
2538
2539 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2540
2541         * ListBox.cs: When navigating items visually, use FocusedItem as the
2542         reference point instead of SelectedIndex, since even in
2543         SelectionMode.None we need to support navigation, and in that case we
2544         just can't use SelectedIndex.
2545         Fixes part of #398345.
2546
2547 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
2548
2549         * Control.cs: Make a SetBoundsInternal that avoids the new
2550         SetBounds code.
2551         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
2552         SetBoundsInternal instead of SetBoundsCoreInternal.
2553
2554 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
2555
2556         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
2557         SetBounds for the scrollbars.
2558
2559 2008-06-10  Andreia Gaita <avidigal@novell.com> 
2560
2561         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
2562           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
2563           OnMouseMove, OnMouseOver, OnMouseUp
2564         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
2565           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
2566         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
2567           to the WebControl object to pass to new collection objects
2568         * HtmlHistory.cs: Implement support for individual window histories.
2569         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
2570           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
2571           GotFocus, LostFocus, OnLoad, OnUnload
2572         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
2573           ContextMenu
2574         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
2575           security level changes and context menu event support.
2576
2577 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2578
2579         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
2580         as happens with Esc, patch my Andy Hume.
2581         Fixes #396294.
2582
2583 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2584
2585         * MdiWindowManager.cs: DrawMaximizedButtons now uses
2586         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
2587         * Theme.cs: Made MenuButtonSize platform dependent. Added
2588         ManagedWindowButtonSize.
2589         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
2590         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2591
2592 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2593
2594         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
2595         Added support for rendering with VisualStyles.
2596
2597 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2598
2599         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2600         support for rendering the border with VisualStyles.
2601
2602 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2603
2604         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
2605         the icon is not shown.
2606         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
2607         its own logic.
2608
2609 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
2610
2611         * InternalWindowManager.cs: Draw minimized windows even if they don't have
2612         borders.
2613
2614 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
2615
2616         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2617
2618 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
2619
2620         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
2621         [Fixes bug #397943]
2622
2623 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2624
2625         * ComboBox.cs: When snaping height -because of IntegralHeight set to
2626         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
2627         if the requested height leaves the listbox area with *less* than the
2628         required are to see one item. We were setting it to PreferredHeight
2629         even for values matching the height for a single item.
2630         Fixes #396297.
2631
2632 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
2633
2634         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2635
2636 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         * DataGridViewCell.cs: Use property instead of field.
2639
2640 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2641
2642         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
2643         null checks.
2644
2645 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2646
2647         * Theme.cs: Added #region around the managed window code. Made the managed
2648         window methods abstract.
2649         * ThemeWin32Classic.cs: Added #region around the managed window code.
2650
2651 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2652
2653         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2654         if it has borders.
2655         * ThemeWin32Classic.cs: Removed HasBorders checks in
2656         DrawManagedWindowDecorations.
2657
2658 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
2659
2660         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2661         Extracted ManagedWindowGetTitleBarIconArea.
2662
2663 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2664
2665         * DataGridViewCellStyle.cs: Don't clone the font.
2666
2667 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2668
2669         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2670
2671 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2672
2673         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2674         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2675         in 64 bit machines.
2676
2677 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
2678
2679         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2680         Use Format/FormatProvider before trying converters.
2681         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2682         are 'set'.  Change constructor to not use ApplyStyle since it wants
2683         everything applied.  Clone the Font.
2684         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2685         ApplyStyle the rest.
2686
2687 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2688
2689         * ListView.cs: We need to calculate the scrollbars even if the handle
2690         hasn't been created - this is needed when methods using scrollbars
2691         info, such EnsureVisible, are called before control has been created.
2692         Fixes #397272.
2693
2694 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
2695
2696         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2697         only if the elements are defined. 
2698
2699 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2700
2701         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2702         section. Also, when setting bounds, snap height as well as save the
2703         requested height if Dock has any value affecting the height: Left,
2704         Right and Bottom - important if using IntegralHeight as true.
2705
2706 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2707
2708         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2709         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
2710         instead of doing that only in our SetBoundsCore override, since the 
2711         bounds cached can be the same as saved one and we could not get the
2712         new height applied.
2713         Fixes #396297.
2714
2715 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2716
2717         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2718         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2719         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2720         ToolWindowCaptionButtonSize.
2721         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2722
2723 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2724
2725         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2726         hard coded values.
2727         * Theme.cs: Made DoubleClickTime plaform dependent.
2728
2729 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2730
2731         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
2732         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2733         ToolWindowCaptionHeight.
2734
2735 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2736
2737         * InternalWindowManager.cs: The adjustment to ensure positive client area
2738         sizes is now platform dependent (disabled on Windows).
2739         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2740         RequiresPositiveClientAreaSize.
2741
2742 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2743
2744         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
2745
2746 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
2747
2748         * InternalWindowManager.cs: Changed IconicSize to use
2749         SystemInformation.MinimizedWindowSize.
2750         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
2751         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
2752
2753 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2754
2755         * ComboBox.cs: If the combobox is anchored both on top and bottom,
2756         adjust height if IntegralHeight is true when calling SetBoundsCore (as
2757         likely the height was modified even if Height wasn't specified in
2758         BoundsSpecified parameter).
2759         Fixes part of #396297.
2760
2761 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
2762
2763         * InternalWindowsManager.cs: Changed minimum window size while resizing to
2764         SystemInformation.MinWindowTrackSize.
2765         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
2766         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
2767
2768 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
2769
2770         * MenuItem.cs: Fixed Dispose.
2771
2772 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
2773
2774         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
2775         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
2776         EnteredHeaderCell, PressedHeaderCell: Added.
2777         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
2778         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
2779         theme a chance to override default painting.
2780         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
2781         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
2782         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
2783         ListView and DataGridView header rendering.
2784         
2785 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
2786
2787         * RichTextBox.cs: GetPositionFromCharIndex should return the 
2788         visual position of the character relative to the viewport.
2789         [Fixes part of bug #396664]
2790
2791 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
2792
2793         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
2794         and not just for the existance of an UITypeEditor. In some cases 
2795         there is an editor associated just to do PaintValue, but which 
2796         doesn't actually support editing.
2797         [Fixes bug #396632]
2798
2799 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2800
2801         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
2802         if needed, instead of 0 - this should help us in the corner case where
2803         we have more than one item but we are only partially showing 1 item.
2804         Fixes part of #374713.
2805
2806 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2807
2808         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
2809         control, return immediately if the any parent control's handle hasn't
2810         been created or isn't visible, as well as avoiding creating the parent
2811         Form if the handle hasn't been previously created.
2812         Fixes tests.
2813
2814 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
2815
2816         * TableLayoutPanel.cs: Use border sizes when calculating the
2817         panel's preferred size.  [Fixes part of bug #396433]
2818
2819 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
2820
2821         * SplitContainer.cs:
2822          - Fix SplitterDistance to update only if needed. 
2823          - Make it force min and max validation.
2824          - Handle properly mouse moves outside the resizeable area.
2825          [Fixes bug #396232]
2826
2827 2008-06-02  Andreia Gaita <avidigal@novell.com> 
2828
2829         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
2830           (which also suppresses all popup dialogs). Throw NotSupported
2831           exceptions for activex getters/setters.
2832         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
2833           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
2834           StatusText, Version, GoSearch
2835         * HtmlDocument.cs: Add DocType support
2836
2837 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
2838
2839         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
2840         [Fixes bug 396124]
2841
2842 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
2843
2844         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2845
2846 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
2847
2848         * TableLayoutPanel.cs: When calculating preferred size, use the
2849         actual number of columns and rows, not what the user set them to.
2850         [Fixes bug #396141]
2851
2852 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
2853
2854         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
2855         394311.
2856
2857 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2858
2859         * XplatUIX11.cs: When detecting areas obscured in a control by other
2860         toplevel windows while scrolling, return if the control hasn't a 
2861         container form.
2862         Fixes some tests.
2863
2864 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2865
2866         * XplatUIX11.cs: Properly detect the visible area of a control being
2867         scrolled (obscured by other winforms controls and any X toplevel
2868         windows), to mark as invalid the requested area to be scrolled that
2869         isn't visible and thus can't be copied.
2870         Fixes #324513.
2871
2872 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2873
2874         * ListBox.cs: Compute the precise amount to vertically scroll when
2875         using DrawMode.OwnerDrawVariable.
2876         Patch by jkeymer (j.keymer@gmx.net).
2877
2878 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2879
2880         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
2881         to avoid setting an invalid value for the verticall scrollbar 
2882         when navigating items. And, duh, also remove my silly debug messages
2883         from previous commits.
2884         Fixes #374713.
2885
2886 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
2887
2888         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
2889         make it MS compatible.
2890
2891 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
2892
2893         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
2894          - Allow the editing of entries even if their parent is read-only.
2895          - Do not render expandable properties read-only.
2896          - Refactor expansion checks form PropertyGrid into PropertyGrid.
2897
2898 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
2899
2900         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2901         support for the hover style.
2902
2903 2008-05-29  Andreia Gaita <avidigal@novell.com> 
2904
2905         * ContainerControl.cs: Check for null dead-end when traversing the tree
2906           of parent controls.
2907         
2908           [Fixes #394332, patch by Ernesto Carrea]
2909
2910 2008-05-29  Geoff Norton  <gnorton@novell.com>
2911
2912         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
2913         constant that it is.  Fixes #393981
2914
2915 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
2916
2917         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
2918         that the user probably doesn't want to set this.
2919
2920 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
2921
2922         * ThemeWin32Classic.cs: Don't let the text size be bigger than
2923         the control size for CheckBox/RadioBox.
2924         [Fixes part of bug #394645]
2925
2926 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2927
2928         * PropertyGrid.cs: Update the state of the sorting buttons in 
2929         the toolbar if PropertySort is set programatically.
2930
2931 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2932
2933         * GridItemCollection.cs: Add multiple items with conflicting names 
2934         support and also preserve name ordering.
2935         [Fixes #395345]
2936
2937 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
2938
2939         * GridItemCollection.cs: Revert my multiple items with same 
2940         name patch.
2941
2942 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2943
2944         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2945         or middle ones.
2946         Fixes part of #393908.
2947
2948 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
2949
2950         * ToolStripDrowDown.cs: When using the Show () methods that have a
2951         Control parameter, set the menu owner to that Control.
2952         [Fixes bug #394345]
2953
2954 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
2955
2956         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2957         [Fixes bug #362756]
2958
2959 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2960
2961         * GridItemCollection.cs: Refactor to support multiple items with the 
2962         same name.
2963         [Fixes bug #394314]
2964
2965 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
2966
2967         * Control.cs: The 2.0 check for illegal cross thread calls in 
2968         Control.Handle were throwing an exception when we were getting
2969         the Handle in order to invoke correctly.  Created a private
2970         version that does not contain this check.
2971         [Fixes bug #394531]
2972
2973 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2974
2975         * PropertyGrid.cs: Respect DefaultTabType.
2976
2977 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2978
2979         * ListView.cs: SPACE selects an item.
2980         [Fixes bug #393023]
2981
2982 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
2983
2984         * ListView.cs: Reset the search string whenever the items are 
2985         modified.
2986         [Fixes bug #393020]
2987
2988 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2989
2990         * ListControl.cs: For the first added item PositionChanged is fired
2991         _before_ ItemChanged, which leave us in a temporary invalid state - so
2992         we need to set the selected index from ItemChanged handler *if* we
2993         know that the first item has just been added *and* the items have been
2994         actually added to the ListControl.
2995         Fixes #369048.
2996
2997 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2998
2999         * TabControl.cs: Only clicks with the left button should be
3000         handled.
3001         Fixes #393908.
3002
3003 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3004
3005         * ComboBox.cs: 
3006         * FIleDialog.cs:
3007         * TextBox.cs: Expose an internal method in TextBox to restore the
3008         original context menu, and call it from ComboBox to re-use it in the
3009         combobox containing the file name in FileDialog.cs.
3010         Fixes part of #393775.
3011
3012 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3013
3014         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
3015         style.
3016
3017 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
3018
3019         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
3020         down button style.
3021
3022 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3023
3024         * ComboBox.cs: Minor correction to previous patch: PageDown should
3025         also *try* to move by one item if the computed offset is negative,
3026         just like the PageUp case.
3027
3028 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3029
3030         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
3031         should be done for at least 1 item, and not stay at the same item.
3032         Fixes part of #374713.
3033
3034 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
3037         directories.  [Fixes bug #393931]
3038
3039 2008-05-22  Andreia Gaita <avidigal@novell.com> 
3040
3041         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
3042           Don't fire events until the initial about:blank page has finished
3043           loading. Clean up events.
3044
3045 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3046
3047         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
3048           FocusIn() too. This should fix the issue on switching
3049           scim keyboards.
3050
3051 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
3052
3053         * X11Keyboard.cs : set XIM font size to somewhat reasonable
3054           number (ideally the input textbox size, but that could be
3055           too messy).
3056
3057 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
3058
3059         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
3060         the ToolStripItem's TextChanged.  [Fixes bug #393597]
3061
3062 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3063
3064         * TabControl.cs: When invalidating in SelectedIndex and we need to
3065         inflate to take into account the border of the tabs, make sure that
3066         the invalidated rect doesn't overflow the control bounds, since that
3067         would avoid updating at all.
3068
3069 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3070
3071         * TabControl.cs: Don't substract scroller width from the row width,
3072         since we need to take into account the total width of the control when
3073         calculating the position of the tabs. This avoids showing scroller
3074         when it is actually not needed.
3075         Fixes part of #322325.
3076
3077 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3078
3079         * ThemeVisualStyles.cs: Added support for TextBoxBase.
3080
3081 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3082
3083         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3084         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
3085
3086 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3087
3088         * DataGridView.cs: Only paint the top left header cell if there
3089         are columns.
3090
3091 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * DataGridView.cs: When binding to a BindingSource, get the underlying
3094         list to bind to.  [Fixes bug #345483]
3095
3096 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
3097
3098         * DataGridView.cs: Do not bind to collection properties.
3099         [Fixes bug #337470]
3100
3101 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3102
3103         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
3104
3105 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3106
3107         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
3108         thumb style.
3109
3110 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3111
3112         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
3113
3114 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3115
3116         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
3117         background.
3118
3119 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3120
3121         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
3122
3123 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3124
3125         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
3126         checked styles.
3127
3128 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3129
3130         * TabControl.cs: Extended to handle the hot style.
3131
3132 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
3133
3134         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
3135         Extended UpDownBase code to handle hot and disabled styles.
3136
3137 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3138
3139         * DataGridView.cs: Handle databinding to generic list type things.
3140         [Fixes bug #325239]
3141
3142 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3143
3144         * DataGridViewCellCollection.cs: Add a method to find the cell
3145         with the given DataPropertyName.
3146         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
3147         * DataGridViewColumnCollection.cs: Add a method to clear all
3148         autogenerated columns.
3149         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
3150         columns.
3151         [Fixes bug #348082]
3152
3153 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3154
3155         * DataGridView.cs: Don't try to update the RowTemplate with
3156         a null CellTemplate.
3157
3158 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3159
3160         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
3161         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
3162         * DataGridView.cs: Lots of fixes/enhancements to databinding to
3163         a DataSet.
3164
3165 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
3166
3167         * Control.cs: Remove invalidating implicit child controls when
3168         control is invalidated.  It was causing too many redraws on
3169         controls with implicit scrollbars.
3170         * ListView.cs: Listen to the Invalidated event and invalidate
3171         child controls.
3172
3173 2008-05-20  Andreia Gaita <avidigal@novell.com> 
3174
3175         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
3176         * HtmlDocument.cs: Check for nulls
3177
3178 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3179
3180         * Control.cs: In ControlCollection.RemoveInternal, remove the
3181         internal control before calling PerformLayout and OnControlRemoved,
3182         which was leaving us in an invalid state and causing a X error (bad
3183         match). Observe that Remove () call has the same order.
3184         Fixes an X error changing ComboBoxStyle.DropDownStyle.
3185
3186 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3187
3188         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
3189         being fired if ControlStyles.UserPaint style is activated.
3190         Fixes #371905.
3191
3192 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3193
3194         * GridEntry.cs: Don't be so strict when setting the value - 
3195         do not check if what we set is what we get.
3196         [Fixes bug #389245]
3197
3198 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3199
3200         * XplatUIX11.cs: If there are no timers timeout should be 0
3201         [Fixes bug #363522]
3202
3203 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3204
3205         * Control.cs: As a followup to invalidating implicit children when
3206         a control is invalidated, only invalidate them if they are in the
3207         clip rectangle.
3208
3209 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3210
3211         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
3212
3213 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3214
3215         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
3216
3217 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3218
3219         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
3220         * XplatUIWin32.cs: Made Win32DeleteObject public.
3221
3222 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
3223
3224         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
3225         PropertyDescriptor.ShouldSerializeValue.
3226         [Fixes bug #391924]
3227
3228 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3229
3230         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
3231         in the classic theme.
3232
3233 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3234
3235         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
3236         ThumbPressed.
3237         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
3238         ScrollBarHasPressedThumbStyle.
3239
3240 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3241
3242         * TextRenderer.cs: Included some methods in the 1.1 profile.
3243
3244 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
3245
3246         * Control.cs: When we make a control visible, it may have been
3247         previously visible and while it wasn't visible, the z-order of
3248         things may have been shuffled, so the control needs to have its
3249         z-order updated just in case.  [Fixes bug #391518]
3250
3251 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3252
3253         * ThemeVisualStyles.cs: Added support for GroupBox.
3254
3255 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
3256
3257         * GroupBoxRenderer.cs: Included in the 1.1 profile.
3258
3259 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
3260
3261         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
3262           bug #389996; XSelectInput() behaved as mouse handler robber,
3263           so remove extra call to it.
3264
3265 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3266
3267         * Control.cs: Simplify ControlCollection.Contains method.
3268
3269 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3270
3271         * DataGridViewRow.cs: Implement GetPreferredSize.
3272
3273 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3274
3275         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
3276
3277 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
3278
3279         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
3280         painting and edit control fixes.
3281
3282 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * DataGridView.cs, DataGridViewCell.cs: Work around some external
3285         checks to make sure we are in an actual row/col for top left header cell.
3286         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
3287
3288 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3289
3290         * Control.cs: Use long instead of int when handling WParam from
3291         mousewheel scrolling.  Int was overflowing on Win64.
3292
3293 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3294
3295         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
3296         flow panel without scrolling first, and then calculate the 
3297         scrolling based on the new layout.  [Fixes bug #390149]
3298
3299 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
3300
3301         * ListBox.cs: Invalidate after scrolling up when selected index
3302         changes.  [Fixes bug #390151]
3303
3304 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3305
3306         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
3307         set, default height to 150. I tried first with DefaultSize, but this
3308         is not generating a SetBoundsCore call before handle creation time, so
3309         we can take it into account. This is just what .net does.
3310
3311 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3312
3313         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
3314         as it broke some stuff.  Calberto is filing a bug for eno to
3315         work with.
3316
3317 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3318
3319         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
3320         to 0 is the current value is -1, and if style is not Simple, just
3321         return, like .net does.
3322         Fixes part of #374713.
3323
3324 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
3325
3326         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
3327         progress bar stuffs, use doubles instead of ints to prevent
3328         overflow.  [Fixes bug #389798]
3329
3330 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3331
3332         * XplatUIX11.cs, X11Keyboard.cs :
3333           Significant refactoring on XIM support. Now IM engine UI
3334           should show up, at mostly-correct preedit position.
3335           - Eliminated use of FocusWindow, as it is never mapped
3336             and hence blocks correct preedit position. XIC is now
3337             created per window, and it must be destroyed too when
3338             the window is destroyed.
3339           - WM_QUIT messages should not be filtered even when hwnd
3340             is zombie. Filtering it could cause endless loop.
3341           - Preedit position must move only when the window is alive.
3342           - Make it IDisposable and make sure to release XIM/XICs.
3343
3344 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
3345
3346         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
3347           XplatUIX11.cs, XplatUIWin32.cs :
3348           fix for bug #325033 and #387693;
3349           - WM_QUIT should not be sent when no running application
3350             exists.
3351           - SetTimer/KillTimer (especially on win32) should be
3352             invoked for the window that the timer is/will_be attached.
3353           - There could be unattached timers to a window when it's
3354             started. For those timers, hold pending timers and when
3355             a window is mapped, attach them to it.
3356           - WaitForHwndMessage() could run into loop when
3357             WM_SHOWWINDOW is handled before this method is called.
3358             So, strictly check wm_showwindow state.
3359           - Tick handler should not be invoked while one Tick handler
3360             call is still running (introduced Busy state).
3361
3362 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3363
3364         * WebBrowserBase.cs: Override Internal alternative methods for
3365           SetBoundsCore and OnResize instead of the protected ones.
3366         * Control.cs: Move SetBoundsCore and OnResize implementations to
3367           SetBoundsCoreInternal and OnResizeInternal, so they can be
3368           overriden internally (WebBrowserBase needs to catch them but can't
3369           override the protected methods without api compat problems)
3370
3371 2008-05-13  Andreia Gaita <avidigal@novell.com> 
3372
3373         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
3374
3375 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3376
3377         * Binding.cs:
3378         * ListView.cs: Remove debug messages.
3379
3380 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3381
3382         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
3383         area is empty. Also calculate scrollbars in Simple mode based in area
3384         height and total number of items, not in MaxDropDownItems.
3385         Fixes part of #371991.
3386
3387 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3388
3389         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
3390
3391 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3392
3393         * BindingSource.cs: GetListSortDescription is not public.
3394
3395 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3396
3397         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
3398
3399 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3400
3401         * HtmlElement.cs: Fix parameter names to match MS.
3402         * HtmlWindowCollection.cs: Should not be sealed.
3403
3404 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3405
3406         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
3407         button, because the thumb button will not get drawn if the scrollbar
3408         is disabled.  [Fixes bug #389262]
3409
3410 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3411
3412         * ListBox.cs: Handle End key for multi-column listboxen.
3413         [Fixes bug #389266]
3414
3415 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3416
3417         * ListBox.cs: Fix algorithm to determine which column our item is in.
3418         [Fixes bug #389265]
3419
3420 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3421
3422         * ListBox.cs: Invalidate when the listbox is resized.
3423         [Fixes bug #389256]
3424
3425 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3426
3427         * ListBox.cs: There is always at least one row in the ListBox (if
3428         we are doing these calculations.)  [Fixes bug #389253]
3429
3430 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
3431
3432         * ListBox.cs: There is always at least one column in the ListBox.
3433         [Fixes bug #389250]
3434
3435 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3436
3437         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
3438         ensure in Simple mode that the height is exactly the requested one.
3439         Also add the ComboBoxListControl to the controls collection in Simple
3440         mode even if handle hasn't been created.
3441         Fixes part of #371991.
3442
3443 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3444
3445         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
3446         our ComboBox owner instead of giving it back to the previous control (
3447         as done in other controls). Also remove the empty override of Select
3448         method, since we want to be selected *and* give focus to our owner.
3449         This should let the user do keys-navigation in Simple mode. 
3450
3451 2008-05-10  Geoff Norton  <gnorton@novell.com>
3452
3453         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
3454         problems with rapid scrolling of treeviews. Fixes #381084
3455
3456 2008-05-10  Geoff Norton  <gnorton@novell.com>
3457
3458         * XplatUICarbon.cs: Deactivate the active window before
3459         activating the desired window.  Completes fixing #386504
3460
3461 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3462
3463         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
3464         SmallChange to the item size width plus the padding, to match .net.
3465
3466 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3467
3468         * FileDialog.cs: Apply the custom filter typed by the user in the file
3469         name combobox as much as possible while navigating in the file dialog.
3470         Fixes #385261.
3471
3472 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3473
3474         * Binding.cs: Actually use NullValue if the retrieved value of
3475         data source is null or DBNull. Makes a test pass.
3476
3477 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
3478
3479         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
3480         * MimeIcon.cs: Provide a way to get icons from resources.
3481
3482 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3483
3484         * Binding.cs: When the value retrieved from the control to be assigned
3485         to the data source is null, actually use the 2.0 DataSourceNullValue
3486         value. Make pass a data binding test.
3487
3488 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3489
3490         * Control.cs: We need to invalidate implicit children even when
3491         invalidate is called with invalidatechildren = false.  (Implicit
3492         children are really part of the parent.)
3493         * ListView.cs: Double-buffer internal child controls for less
3494         flicker.
3495         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
3496         owner ListView subitems for greatly increased performance.
3497         [Fixes bug #388477]
3498
3499 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
3500
3501         * FileDialog.cs: When the user types a wildcard character in the
3502         filename combobox, update the contents of the folder using the text as
3503         a filter.
3504         Fixes part of #385261.
3505
3506 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3507
3508         * ListBox.cs: Various fixes for MultiColumn listboxen.
3509         [Fixes bug #388114]
3510
3511 2008-05-08  Andreia Gaita <avidigal@novell.com> 
3512
3513         * HtmlElement.cs: Implement Style property
3514
3515 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
3516
3517         * ListBox.cs: Respect checkboxes when measuring item size.
3518         * ThemeWin32Classis.cs: When drawing list items, don't draw
3519         text outside of the item's bounds to prevent overlapping.
3520         (.Net actually overlaps, but that's just silly.)
3521         [Fixes bug #388117]
3522
3523 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
3524
3525         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
3526         Gert Driesen. Fixes bug #324830. 
3527
3528 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
3529
3530         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
3531         method implemented.
3532
3533 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3534
3535         * BindingSource.cs: When calling IsSynchronized, return the value of
3536         the related IList list.
3537
3538 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3539
3540         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
3541         make a test pass.
3542
3543 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
3544
3545         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
3546         navigation to scroll the grid if the current cell is not visible.
3547
3548 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3549
3550         * HtmlElement.cs: Implement TabIndex
3551
3552 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
3553
3554         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
3555         properties, even when there are no items.
3556         [Fixes bug #387611]
3557
3558 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
3559
3560         * NativeWindow.cs: Add support for multiple handles per window.
3561         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
3562         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
3563         directly - use FromHandle instead.
3564         [Fixes bug #374660]
3565
3566 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3567
3568         * HtmlElement.cs: Implement InnerHTML setter
3569
3570 2008-05-07  Andreia Gaita <avidigal@novell.com> 
3571
3572         * HtmlDocument.cs: Implement Focused
3573
3574 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3575
3576         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
3577         methods, as well as add messages to the exceptions.
3578
3579 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3580
3581         * BindingSource.cs: Setting DataSource should only reset DataMember if
3582         the previous value was null (make pass a not working test).
3583
3584 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3585
3586         * BindingSource.cs: When EndInit call is postponed and is called until
3587         DataSource.EndInit is called, remove the handler for data source.
3588
3589 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
3592
3593 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3594
3595         * ToolStripManager.cs: Store references to toolstrips as
3596         weak references so they do not prevent forms from getting collected.
3597         [Fixes bug #386483]
3598
3599 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3600
3601         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
3602         on .Net.  So do the same thing in WndProc.
3603
3604 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3605
3606         * TrackBar.cs: Commit patch from Andy Hume that corrects
3607         the clickable areas to better match .Net.
3608         [Fixes bug #387074]
3609
3610 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3611
3612         * TrackBar.cs: Commit patch from Andy Hume that adds the
3613         ResizeRedraw control flag so the track bar repaints itself
3614         when it is resized.  [Fixes bug #387072]
3615
3616 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
3617
3618         * TrackBar.cs: Commit patch from Andy Hume that adds better
3619         support for keyboard navigation when the TrackBar is vertical.
3620         [Fixes bug #387071]
3621
3622 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3623
3624         * BindingSource.cs: Implement ISupportInitializeNotification support.
3625
3626 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
3627
3628         * ThemeVisualStyles.cs: Added support for ToolBar.
3629
3630 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
3631
3632         * ToolBar.cs: Made the Vertical property internal.
3633
3634 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3635
3636         * ThemeVisualStyles.cs: Added support for TrackBar.
3637
3638 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3639
3640         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
3641         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
3642         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
3643         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
3644         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
3645         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3646
3647 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3648
3649         * ThemeVisualStyles.cs: Added support for UpDownBase.
3650
3651 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
3652
3653         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3654         Extracted Theme.UpDownBaseDrawButton.
3655
3656 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3657
3658         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3659         removed from the static toolstrips collection in ToolStripManager
3660         when they are disposed.  Provides a workaround for bug #386483.
3661
3662 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
3663
3664         * GridEntry.cs: Read-only properties with Editor with 
3665         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3666         [Fixes bug #384184]
3667
3668 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
3669
3670         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3671         the menu key and there are no items on the menu.
3672         [Fixes bug #386644]
3673
3674 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
3675
3676         * Control.cs: Avoid calling ToString on a string.
3677         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3678         * GroupBox.cs: In FlatStyle property throw, not just create, the 
3679         exception. Avoid calling ToString on a string.
3680         * ProgressBar.cs: Avoid calling ToString on a string. 
3681         * ScrollBar.cs: Avoid calling ToString on a string. 
3682         [All issues were found using Gendarme]
3683
3684 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3685
3686         * NotifyIcon.cs: Prevent click events to be trigger after double click 
3687         events. Fixes remaining issues of bug #324832.
3688
3689 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
3690
3691         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3692         to mimic win32 behavior. Partially fixes bug #324832.
3693
3694 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3695
3696         * BindingSource.cs: Implement Find methods.
3697
3698 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3699
3700         * BindingSource.cs: Implement Sort, ApplySort overloads, and
3701         RemoveSort methods.
3702
3703 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704
3705         * ListBindingHelper.cs: When calling GetListItemProperties and the
3706         passed object is ITypedList, return the result of
3707         ITypedList.GetItemProperties instead.
3708
3709 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3710
3711         * LinkLabel.cs: Set default value of name on constructor of Link class
3712         only for 2.0 profile.
3713
3714 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3715
3716         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3717         Fixes remaining issues of bug #346154.
3718
3719 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3720
3721         * LinkLabel.cs: Set a default value for name on internal contructor of
3722         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3723
3724 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
3725
3726         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3727         and refer all instances to owner.links. Partially fixes #346154.
3728
3729 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3730
3731         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
3732         length equal zero. Also called CreateLinkPieces in constructor. It fixes
3733         the LinkLabel test 'TestLinkArea'.
3734
3735 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3736
3737         * Form.cs: Remove menu before close form to prevent form to be not gaced.
3738         [Fixes #386460]
3739
3740 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3741
3742         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
3743         [Fixes #386463]
3744
3745 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3746
3747         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
3748         [Fixed bug #357004]
3749
3750 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3751
3752         * MenuAPI.cs: Remove unused ProcessCmdKey method.
3753
3754 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3755
3756         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
3757         [Fixes bug #375398]
3758
3759 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3760
3761         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
3762         of bug #367492.
3763
3764 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
3765
3766         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
3767         sometimes we open a conext menu on mouse down of some controls and the mouse
3768         up is dispatched to menu and dont need to. It fix remaining issues of 
3769         #363711 and other problems related to menu mouse click events.
3770
3771 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3772
3773         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
3774         some var names to better fit changes, now we have month_menu and today_menu
3775         vars. Fixes bug #363711.
3776
3777 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3778
3779         * MonthCalendar.cs: Handle every right mouse click to open context menu,
3780         right now the default month menu but it will be change to have "Go to today"
3781         menu.
3782
3783 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3784
3785         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
3786
3787 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
3788
3789         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
3790
3791 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3792
3793         * ThemeVisualStyles.cs: Added support for TreeView.
3794
3795 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3796
3797         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
3798         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
3799
3800 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3801
3802         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
3803
3804 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3805
3806         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
3807         Implement 2.0 SP1 stuffs.
3808
3809 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3810
3811         * FileDialog.cs: Implement 2.0 SP1 stuffs.
3812
3813 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3814
3815         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
3816         Implement CanEnableIme property. (2.0 SP1)
3817
3818 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3819
3820         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
3821         from the 2.0 API.
3822
3823 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3824
3825         * Control.cs: Provide an internal way for a control to override
3826         the setting of Height.
3827         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
3828         set height using new method.
3829
3830 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3831
3832         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
3833
3834 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3835
3836         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3837         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
3838
3839 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3840
3841         * ThemeVisualStyles.cs: Added support for StatusBar.
3842
3843 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3844
3845         * DataObject.cs: Add the other IDataObject interface.
3846
3847 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
3848
3849         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
3850         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
3851
3852 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
3855         * ListView.cs: Hide non-public API.
3856         * MaskedTextBox.cs: Remove extra attribute.
3857
3858 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * DataGridViewImageCell.cs: Use formatted value instead of value
3861         to calculate preferred size.
3862
3863 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3864
3865         * ListBox.cs: Move some initialization around so that selected_indices
3866         is not accessed before it is created.
3867
3868 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3869
3870         * InputLanguageCollection.cs: Implement the collection better.
3871         [Fixes bug #385506]
3872
3873 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3874
3875         * ToolStripDropDownItem.cs: Get the correct event object for
3876         DropDownItemClicked.
3877         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
3878         [Fixes bug #385475]
3879
3880 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
3881
3882         * DataGridViewRowCollection.cs: We don't currently support shared 
3883         rows.  Should fix test failures caused by previous commit.
3884
3885 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3886
3887         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
3888         datagridview gets set.  Only paint cells in visible columns.
3889         * DataGridViewCell.cs: Draw border after cell content.
3890         * DataGridView.cs: Invalidate after setting some properties.  Only
3891         use visible columns.  Fit hit test bug with areas in the col/row header
3892         area but not in a row or col.  Implement UpdateCell/Row methods.
3893
3894 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3895
3896         * DataGridViewElement.cs: Don't throw NIEX.
3897         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
3898         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
3899         * DataGridViewCheckBoxColumn.cs: Implement ToString.
3900         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
3901         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
3902         if the user filled in the formatting Value, use it.
3903
3904 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
3905
3906         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
3907         to a string.
3908
3909 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3910
3911         * BindingSource.cs: Some corrections to Filter property, as well as
3912         setting it for our list when resetting it.
3913
3914 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
3915
3916         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
3917         than the maximum.  Fixes reopened bug #384182.
3918
3919 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3920
3921         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
3922         Fixes remaining issues of #367490.
3923
3924 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3925
3926         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
3927         SystemInformation.WorkingArea to get max_screen value.
3928
3929 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3930
3931         * BindingSource.cs: Implement Filter and RemoveFilter.
3932
3933 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3934
3935         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3936
3937 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3938
3939         * X11Dnd.cs: When trying to convert data and we know we started the
3940         dnd loop, don't try to use the cached data if the loop is not running,
3941         which means that the data has been resetted.
3942         Fixes #378191.
3943
3944 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3945
3946         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3947         win32 behavior.
3948
3949 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3950
3951         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3952         it to drawn off screen edge. Fixes bug #367490.
3953
3954 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3955
3956         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3957         menu position to have only one assignment of Location var.
3958
3959 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
3960
3961         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3962         for this patch. Fixes bug #384115.
3963
3964 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3965
3966         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3967         the same.  If LargeChange is zero, set a minimum size for the scroll
3968         thumb grip.  [Fixes bug #384182]
3969
3970 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3971
3972         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3973         [Fixes bug #384181]
3974
3975 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
3976
3977         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
3978
3979 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3980
3981         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3982         patch from Ernesto).
3983
3984 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3985
3986         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3987
3988 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3989
3990         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3991
3992 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3993
3994         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3995
3996 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
3997
3998         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3999
4000 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
4001
4002         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
4003
4004 2008-04-27  Andreia Gaita <avidigal@novell.com> 
4005
4006         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
4007           supposed to return a reference to an mshtml interface, which we
4008           don't support).
4009         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
4010           reference to an mshtml interface, which we don't support). Code
4011           formatting cleanup.
4012         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
4013           DomDocument getter (it's supposed to return a reference to an
4014           mshtml interface, which we don't support). Code formatting cleanup.
4015
4016 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017
4018         * ListView.cs: Ouch, forgot to commit.
4019
4020 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4021
4022         * ListView.cs: 
4023         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
4024
4025 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4026
4027         * ListView.cs: When calculating box selection for virtual mode, don't
4028         look for intersection with item's text, but item bounds, since that
4029         would mean read ListViewItem's text for _every_ item, and that's
4030         something we just can't do in virtual mode (items are only requested
4031         when drawn).
4032
4033 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
4034
4035         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
4036         partial support for managed windows (based on the patch from Ernesto).
4037
4038 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4039
4040         * ListView.cs: When doing a key search use FindItemWithText method
4041         instead of doing the search by ourselves, this way we avoid
4042         duplicating the code and also we handle the special case for virtual
4043         mode. To achieve that make our private overload of FindItemWithText
4044         internal and also have a 'roundtrip' parameter.
4045
4046 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4047
4048         * ListView.cs: When doing the layout don't request the
4049         ListViewItem instance if we are in virtual mode (since we can't request it
4050         until the item is actully drawn).
4051
4052 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4053
4054         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
4055         from Ernesto).
4056
4057 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4058
4059         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
4060         the patch from Ernesto).
4061
4062 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4063
4064         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
4065         * ThemeVisualStyles.cs: Added.
4066
4067 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4068
4069         * IDeviceContext.cs: Added a missing using.
4070
4071 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4072
4073         * ButtonBase.cs: Made IsDefault protected internal.
4074         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
4075
4076 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4077
4078         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
4079         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
4080         RadioButtonRenderer.cs: Included in the 1.1 profile.
4081         * IDeviceContext.cs: Added.
4082         * TextRenderer.cs: Included a member in the 1.1 profile.
4083
4084 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
4085
4086         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
4087
4088 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4089
4090         * ErrorProvider.cs: Make the error icons come after the control
4091         they refer to.  It isn't the way the MS does it, but its better
4092         than what we were doing.  See bug #368587.
4093
4094 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4095
4096         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
4097         from Eric Albright that lazy loads the input language as ensures
4098         everything gets properly initialized.  Fixes bug #373871.
4099
4100 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
4101
4102         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
4103         implicit mnemonics.  [Fixes bug #383000]
4104
4105 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4106
4107         * X11Dnd.cs: When canceling the operation, automatically restore the
4108         default cursor - normally the default cursor is restored when the
4109         mouse buttons are released, but we should be able to restore it even
4110         if the buttons are still pressed (for example, when pressing ESC to
4111         cancel).
4112         Fixes #381894.
4113
4114 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4115
4116         * X11Dnd.cs: When starting a new drad and drop operation, set control
4117         field to null, just as the other fields, to avoid calling any
4118         operation on a previous control. Also, when calling DndLeave on a
4119         control, set it to null, thus we don't fire that event multiple times
4120         for that control.
4121         Fixes #209264.
4122
4123 2008-04-23  Geoff Norton  <gnorton@novell.com>
4124
4125         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
4126         the whole_window object.  Fixes #377084.
4127
4128 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4129
4130         * HtmlElement.cs: Implement RaiseEvent (event injection into the
4131           embedded browser)
4132
4133 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
4134
4135         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
4136
4137 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4138
4139         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
4140           invocation
4141
4142 2008-04-23  Andreia Gaita <avidigal@novell.com> 
4143
4144         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
4145           attaching/detaching
4146
4147 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4148
4149         * X11Dnd.cs: When the drop was cancelled, or could just not be
4150         performed, return DragDropEffect.None always (match .net).
4151
4152 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4153
4154         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
4155
4156 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4157
4158         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
4159
4160 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
4161
4162         * DataGridView.cs: Add support for error icon tool tips.
4163         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
4164         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
4165
4166 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
4167
4168         * X11Structs.cs: Add mouse button masks enum.
4169         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
4170         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
4171         form resize/move operation instead of for each step of it.
4172         [Fixes bug #346529 for the x11 backend]
4173
4174 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4175
4176         * DataGridView*: Implement support for drawing error icons.
4177
4178 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4179
4180         * TreeView.cs: Make vbar and hbar internal.
4181         * TreeNode.cs: If collapsing the node removes one of the TreeView's
4182         scrollbars, invalidate the whole thing.
4183         [Fixes bug #382001]
4184
4185 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4186
4187         * TreeView.cs: Calling Sort() sets Sorted = true.
4188         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
4189         if the nodes need to be sorted.
4190         [Fixes bug #382028]
4191
4192 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
4193
4194         * Form.cs: Fire SizeChanged for both when the form is minimized and 
4195         restored.
4196         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
4197         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
4198
4199 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
4200
4201         * ComboBox.cs: If the combobox is disabled, draw a disabled
4202         background before painting anything else.
4203         [Fixes bug #381729]
4204
4205 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4206
4207         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
4208         forget to send a Leave event to the target window - just as .net does
4209         when cancelling dnd operations.
4210
4211 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4212
4213         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
4214         soon as possible - this happens when we send the drop message to the
4215         target window. This way we avoid firing any DragOver _after_ drop finished.
4216         Fixes #378179.
4217
4218 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4219
4220         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
4221         * Form.cs: Handle form minimization as a special state, where size doesn't 
4222         change, but we have to fire SizeChanged.
4223         [Fixes bug #325122 for the win32 and x11 backends]
4224
4225 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4226
4227         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
4228         if the handle is disabled.
4229         [Fixes bug #371751]
4230
4231 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4232
4233         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
4234         for forms with FormBorderStyle.None.
4235         [Fixes bug #349571]
4236
4237 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
4238
4239         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
4240         WM_EXITSIZEMOVE.
4241         [Fixes bug #346529 for the X11 backend]
4242
4243 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4244
4245         * XplatUIX11.cs: 
4246           - Send a mouse Enter message after say dragging the mouse with a 
4247           button down and then release it in another client.
4248           - Reset the cursor to prevent X11 from remembering it and setting it 
4249           before the control gets WM_SETCURSOR.
4250           - Qeueue a mouse move after a mouse enter like win32.
4251           [Fixes bug #323234]
4252
4253 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4254
4255         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
4256         It's sent when the form gets moved, resized, closed.
4257         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
4258         [Fixes bug #359193 for X11]
4259
4260 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4261
4262         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
4263         the build.
4264
4265 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
4266
4267         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
4268         group. Fixes the 1.1 build.
4269
4270 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4271
4272         * ListView.cs: Use display indexes for selection in Details view, as
4273         well as do the proper layout based on display indexes for that view
4274         too.
4275
4276 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4277
4278         * ListView.cs: Focused item information is now stored as a display
4279         index, and display indexes are used all over the place for selection,
4280         instead of ListViewItem.Index values, which doesn't give us enough
4281         information to modify the selection in groups mode, and was broken.
4282
4283 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
4284
4285         * Control.cs: Do not fire MouseDown if validation of the control has 
4286         failed.
4287         * Form.cs: Validate the form before closing.
4288         [Fixes bugs #330501 and #353310]
4289
4290 2008-04-18  Andreia Gaita <avidigal@novell.com> 
4291
4292         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
4293           CreateWebBrowserSiteBase implementations
4294         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
4295           Style and TabIndex setters
4296
4297 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298
4299         * ListViewGroup.cs: When returning the actual item count, return the
4300         proper count for default group.
4301         Fix the tests.
4302
4303 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304
4305         * ListView.cs:
4306         * ListViewGroup.cs: When calculating groups layout, get the actual
4307         number of items per group, since groups added to the group BUT not
4308         added to the ListView are just ignored, and can cause some nasty
4309         exceptions because of the lack of synchronization. Also for
4310         ListViewGroup don't use lazy initialization for items, since we 
4311         the common scenario is to use it always - and it helps us to  refactor
4312         and clean the .ctor overloads.
4313
4314 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4315
4316         * ListView.cs: When adding an item to a ListViewItemCollection
4317         belonging to a group (ListViewGroup.Items), don't generate a redraw if
4318         the added item hasn't beeen previously added to the ListView instance
4319         refered by the group, since it will be ignored. This should avoid some 
4320         really nasty flickering.
4321
4322 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4323
4324         * ListView.cs: When accessing an item in a specific display
4325         position, use the helper method GetItemAtDisplayIndex, instead of
4326         direct access to the reordered_items_indices array. When doing layout
4327         for groups set the correct Items index for the display position (since
4328         in groups mode items don't have the same position as in Items
4329         collection).
4330         * ListViewGroup.cs: Add a field to store the starting item number,
4331         which is later used when calculating the layout.
4332
4333         Fixes #360805.
4334
4335 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
4336
4337         * Application.cs: Fixed ProductVersion to fallback to the assembly
4338         version. Fixes regression for bug #325413.
4339
4340 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4341
4342         * ListView.cs: New helper method to retrieve an item in a _specific
4343         display_ position (the items can be displayed in a different order
4344         than one of Items collection).
4345         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
4346         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
4347         specific display position (again remember that items can be sorted
4348         different than Items).
4349
4350 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4351
4352         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
4353         list and update it when the collection changes.  We were recreating
4354         this several times per row paint and for every pixel the mouse moved
4355         across the grid.
4356         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
4357         changes.
4358
4359 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4360
4361         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
4362         list to use generics.
4363         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
4364         and remove unneccessay casts.
4365
4366 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
4367
4368         * DataGridViewBand.cs: Add internal way to set displayed variable.
4369         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
4370         * DataGridView.cs: Make sure we always keep track of Displayed
4371         rows and columns, and only draw things that are displayed.
4372
4373 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
4374
4375         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
4376           whether the key events are filtered or not. Introduced
4377           PreFilter() process for this purpose. This fixes atokx3/iiimx
4378           shift state issue.
4379
4380 2008-04-16  Andreia Gaita <avidigal@novell.com> 
4381
4382         * HtmlHistory.cs: Implement Length property
4383
4384 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
4385
4386         * DataGridView.cs: Call EndEdit when a sort is performed so we take
4387         away the edit textbox.  Refactor to reuse column sort code.
4388
4389 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
4390
4391         * MenuAPI.cs: Remove the code that save and restore capture status of 
4392         grab_control, this fixes some Menu and Context menu bugs but maybe it can
4393         cause some others, I cant figure the possible problems of this patch but
4394         right now remove the code looks to be better than keep it. This patch fixes
4395         bugs #357638, #378721 and #379570.
4396
4397 2008-04-12  Andreia Gaita <avidigal@novell.com> 
4398
4399         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
4400         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
4401         add missing properties and event handlers.
4402         
4403 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
4404
4405         * ListBox.cs: Make sure the LargeChange we are setting is at least
4406         zero, to prevent an IOORE.  [Fixes bug #379531]
4407
4408 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
4409
4410         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
4411         in DropDownList mode, for each key-press select the next item 
4412         starting with that letter.
4413         For other modes, when no item selected, on arrow-up/-down and open 
4414         drop-down select the first item matching the text in the textbox.
4415
4416 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
4417
4418         * X11Keyboard.cs : Control.FromHandle() could return null
4419           in MoveCurrentCaretPos().
4420
4421 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4422
4423         * ListView.cs: When changing the size in VirtualMode, also Reset the
4424         selection.
4425         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
4426         changing selection info for VirtualMode.
4427         Fixes #372618.
4428
4429 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4430
4431         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
4432         view, don't use LineLimit for the first item - use NoWrap *always*
4433         instead, since ListView.LabelWrap is not used for this view.
4434         Fixes #378054.
4435
4436 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4437
4438         * Binding.cs: Call UpdateIsBinding when setting control - probably
4439         Binding is already usable and we don't need to wait to check the
4440         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
4441         Created, just like 2.0 does.
4442         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
4443
4444 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4445
4446         * Binding.cs: Just realized we don't need to have a handler for
4447         BindingContextChanged, since this info should be now consumed directly
4448         in the BindingManagerBase. And also, the manager.IsBindingSuspended
4449         state info is checked directly, instead of caching it.
4450
4451         * CurrencyManager.cs: IsSuspended should return always false if Count
4452         == 0.
4453
4454 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4455
4456         * Binding.cs: When calling PushData, return if manager.Count == 0,
4457         since we just don't have data to be read. Also, when setting the
4458         Control for binding, hook up some events to refresh the IsBinding
4459         state when BindingContext change or control gets created; use
4460         Control.IsHandleCreated instead of Control.Created check to set
4461         IsBinding state - we *actually* need to modify IsBinding when control
4462         is created, but we don't have any Created event, only HandleCreated.
4463         Fixes part of #349364.
4464
4465 2008-04-11  Geoff Norton  <gnorton@novell.com>
4466
4467         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
4468         warping a null Caret.
4469
4470 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4471
4472         * DataGridView.cs: Implement row/column autosizing methods. Implement
4473         autosorting.
4474         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
4475         * DataGridViewRowCollection.cs: Add an internal sorting method.
4476
4477 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4478
4479         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
4480         value in ListView drawing code.
4481
4482 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
4483
4484         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
4485         is clicked.  Respect the user setting Cancel in FileOk.
4486
4487 2008-04-11  Geoff Norton  <gnorton@novell.com>
4488
4489         * ListView.cs: Avoid setting and resetting control Width/Heights and
4490         calculate the final value and set it once.  Prevents a feedback loop
4491         on the mac.
4492
4493 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4494
4495         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
4496         [Fixes bug #378869]
4497
4498 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
4499
4500         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
4501           Add some on-the-spot code, but it seems we don't need it.
4502
4503 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4504
4505         * Form.cs: Add method for DataGridView to trigger focus cues
4506         even when it handles the tab keypress.
4507
4508 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
4509
4510         * DataGridView.cs: More keyboard handling, tab, esc.
4511         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
4512         when at the beginning or end of the text in the text box.
4513
4514 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4515
4516         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
4517
4518 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4519
4520         * DataGridView.cs: Some fixups for showing and adding the edit control.
4521         * DataGridViewButtonColumn.cs: Implement ToString.
4522         * DataGridViewCell.cs: Size and position the control simultaneously.
4523         * DataGridViewTextBoxCell.cs: Use base to position control.
4524
4525 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4526
4527         * DataGridViewCell.cs: Fix up some formatting and painting code.
4528         * DataGridViewImageCell.cs: Implement some NIEX methods.
4529
4530 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4531
4532         * ToolStripItemCollection.cs: What moving an item from one owner
4533         to another, remove from source owner before adding to destination.
4534         [Fixes bug #378109]
4535
4536 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
4537
4538         * PictureBox.cs: Call Load when ImageLocation is set.
4539         [Fixes bug #378308]
4540
4541 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
4542
4543         * X11Keyboard.cs, XplatUIX11.cs :
4544           Implement over-the-spot mode (with some odd offsets).
4545           - set preedit position when caret is set.
4546           - Wrap XMoveResizeWindow() to move preedit position.
4547
4548 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4549
4550         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
4551         array lenght.
4552
4553 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4554
4555         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
4556         and ScanTableIndex public, it fix compilations errors when compiling
4557         WinForms to generate keyboard layout resources.
4558
4559 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
4560
4561         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
4562         different element count than scan table. It prevents some errors in non
4563         standard keyboards.
4564
4565 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
4566
4567         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
4568
4569 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
4570
4571         * DataGridView.cs: Call OnContentClick.
4572         * DataGridViewCell.cs: Do a null check on ValueType instead
4573         of valueType.
4574         * DataGridViewCheckBoxCell.cs: Implement.
4575
4576 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4577
4578         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
4579
4580 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4581
4582         * X11Keyboard.cs : Check XGetIMValues() return value in
4583           case it does not return input styles in some environment.
4584
4585 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
4586
4587         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
4588
4589 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4590
4591         * BindingContext.cs: Stub UpdateBinding method.
4592
4593 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
4594
4595         * X11Structs.cs : added couple of structs for XIM support.
4596         * X11Keyboard.cs :
4597           Release XIM in case it failed to create XIC. 
4598           Use consts for XNblah string.
4599           Add support for IM style customization and XIC creation
4600           for preedit-position and preedit-callback.
4601           Right now use MONO_WINFORMS_XIM_STYLE environment variable
4602           (list of: over-the-spot | on-the-spot | root). Only root
4603           mode works so far.
4604
4605           (redoing r99172 with fix.)
4606
4607 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4608
4609         * TreeView.cs: Center the checkbox a little better.
4610
4611 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4612
4613         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
4614         Apply very nice patch from Ernesto Carrea that simplifies our
4615         scrollbar drawing.  [From bug #376146]
4616
4617 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
4618
4619         * TreeView.cs: Correct the location of the root node checkbox when
4620         ShowRootLines = false.  Don't draw the root lines for the root node
4621         when ShowRootLines = false.  [Fixes bug #377535]
4622
4623 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
4624
4625         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
4626         Fixed line endings.
4627         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
4628         line endings.
4629         * MaskedTextBox.cs: Added missing attribute. Code formatting.
4630         * PageSetupDialog.cs: Added missing attribute. Code formatting.
4631         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
4632         * ImeMode.cs: Added missing field.
4633         * HtmlWindow.cs: Code formatting. Fixed line endings.
4634         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
4635         warnings.
4636         * HtmlHistory.cs: Code formatting. Fixed line endings.
4637         * HtmlDocument.cs: Code formatting. Fixed line endings.
4638         * ToolStripPanel.cs: Added missing IList implementation.
4639         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
4640
4641 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
4642
4643         * BindingContext.cs: Changed argument names to fix corcompare errors.
4644         * DataGridView.cs: Removed extra explicit interface implementation
4645         of IDropTarget. Code formatting.
4646         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4647         * ComboBox.cs: Changed argument names to fix corcompare errors.
4648         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4649         errors.
4650         * GridColumnStylesCollection.cs: Changed argument names to fix
4651         corcompare errors. Removed extra tabs.
4652         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4653         errors.
4654         * Control.cs: Changed argument names to fix corcompare errors. Code
4655         formatting. Removed extra explicit IList implementation.
4656         * TextBox.cs: Changed argument names to fix corcompare errors. Code
4657         formatting. Use string.Empty instead of "".
4658         * GridItemCollection.cs: Changed argument names to fix corcompare
4659         errors. Code formatting.
4660         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4661         corcompare errors. Code formatting.
4662         * ImageList.cs: Changed argument names to fix corcompare errors.
4663         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4664         * DataGridViewRowCollection.cs: Changed argument names to fix
4665         corcompare errors. Code formatting.
4666         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4667         * DataGridViewSelectedCellCollection.cs: Changed argument names to
4668         fix corcompare errors. Code formatting.
4669         * DataGridViewComboBoxCell.cs: Changed argument names to fix
4670         corcompare errors. Code formatting.
4671         * LinkLabel.cs: Changed argument names to fix corcompare errors.
4672         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4673         formatting.
4674         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4675         Code formatting.
4676         * BindingSource.cs: Changed argument names to fix corcompare errors.
4677         Removed extra explicit interface implementations.
4678         * DataGridViewSelectedRowCollection.cs: Changed argument names to
4679         fix corcompare errors. Code formatting.
4680         * ToolStripItemCollection.cs: Removed extra explicit interface
4681         implementation of IList.ReadOnly.
4682         * DataGridViewColumnCollection.cs: Changed argument names to fix
4683         corcompare errors. Code formatting.
4684         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4685         * ListView.cs:  Changed argument names to fix corcompare errors.
4686         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4687         errors.
4688         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4689         errors.
4690         * ListBindingHelper.cs: Changed argument names to fix corcompare
4691         errors.
4692         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4693         fix corcompare errors. Code formatting.
4694         * ToolStripPanel.cs: Removed extra explicit implementation of
4695         IDropTarget interface.
4696         * ListBox.cs: Changed argument names to fix corcompare errors. Code
4697         formatting. Removed extra tabs and spaces.
4698         * DataGridViewCellCollection.cs: Changed argument names to fix
4699         corcompare errors.
4700         * Help.cs: Changed argument names to fix corcompare errors. Code
4701         formatting.
4702         * TabControl.cs: Changed argument names to fix corcompare errors.
4703         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4704         errors.
4705         * TableLayoutSettings.cs: Changed argument names to fix corcompare
4706         errors.
4707
4708 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4709
4710         * ListBindingHelper.cs: When returning properties, only return those
4711         that are browsable. Also, don't do a linear search of the properties,
4712         but use the indexer of the PropertyDescriptorCollection class.
4713
4714 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4715
4716         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4717         Dictionary containing the related (child) currency managers. Also,
4718         when setting DataSource, add datasource to our List if it is not a list.
4719
4720 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4721
4722         * PropertyGridTextBox.cs: Fix background color of the buttons.
4723         * PropertyGridView.cs: Make the entry less jumpy.
4724
4725 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4726
4727         * PropertyGrid.cs: Fix unused variable warnings.
4728
4729 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
4730
4731         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
4732         double-click. It expanded it once in the mouse down and then 
4733         again in the double-click handler.
4734
4735 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
4736         
4737         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
4738         TypeConverter and UITypeEditors.
4739
4740 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
4741
4742         * Control.cs: Visibility should be set synchronously, 
4743         so we must also redraw once it is and not rely on layouting or 
4744         other code to repaint.
4745         [Fixes bug #339898]
4746
4747 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
4748
4749         * DataGridViewCell.cs: Respect DataGridView.GridColor.
4750
4751 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * Control.cs: Invalidate when the alpha channel is less than 255,
4754         not only when control is transparent.
4755
4756 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4757
4758         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
4759         Implement some painting convenience methods that threw NIEX.
4760
4761 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
4762
4763         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
4764         * DataGridViewLinkCell.cs: Implement.
4765
4766 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
4767
4768         * GridEntry.cs: Report the conversion exception error description.
4769         [Fixes bug #375792]
4770
4771 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
4772
4773         * PropertyGridView.cs: Do not scroll to item on resize.
4774         [Fixes bug #375789]
4775
4776 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4777
4778         * BindingContext.cs: When retrieving a BindingManagerBase, if the
4779         dataSource parameter is ICurrencyManagerProvider, then return
4780         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
4781         instead of creating a new one.
4782
4783 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4784
4785         * BindingSource.cs: Implement support for Type instances as
4786         DataSource.
4787
4788 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
4789
4790         * DataGridView.cs: Minor cleanups and call CellMouseUp.
4791         * DataGridViewCell.cs: Make some painting routines internally virtual.
4792         * DataGridViewButtonCell.cs: Implement.
4793
4794 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * Control.cs: We always need to invalidate our children with
4797         transparent backgrounds when we are invalidated.
4798         [Fixes bug #376081]
4799
4800 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4801
4802         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
4803         and CancelCurrentEdit on CurrencyManager respectively. Implement
4804         support for ICancelAddNew too.
4805
4806 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4807
4808         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
4809         call EndNew/CancelNew if list is ICancelAddNew.
4810
4811 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
4812
4813         * DataGridView.cs: Guard against an exception while painting
4814         if there are no rows.
4815
4816 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
4817
4818         * DataGridView.cs: Implement a bunch of keyboard commands.
4819
4820 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
4821
4822         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
4823         isn't set, don't call OnPaint.  [Fixes bug #375300]
4824
4825 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4826
4827         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
4828         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
4829         hookup the remaining events related to CurrencyManager, and fire
4830         OnListChanged also for the Clear () method.
4831
4832 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4833
4834         * BindingSource.cs: Use Current and Position implementations in
4835         CurrencyManager instead of using our own routines, since we need 
4836         to be in synch with it. Count should NEVER return a -1 value, and 
4837         also report ListChanged events for both simple IList data 
4838         sources (manually) as well for IBindingList ones (by hooking up an
4839         event handler for it).
4840
4841 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4842
4843         * BindingSource.cs: Make one .ctor call the another, to avoid
4844         duplicate code. Add the CurrencyManager property, and also for AddNew
4845         throw the proper exceptions and show better error messages.
4846
4847 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4848
4849         * ComboBox.cs: Only adjust selectedindex if Handle has been
4850         created.  Fixes failing test.
4851
4852 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4853
4854         * ComboBox.cs: Adjust selectedindex if we insert a new item
4855         above the current selectedindex in a sorted ComboBox.
4856         [Fixes bug #374654]
4857
4858 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4859
4860         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
4861         [Fixes bug #374712]
4862
4863 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
4864
4865         * DataGridViewTextBoxCell.cs: Implement stuffs.
4866
4867 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4868
4869         * TreeView.cs: Create the scrollbars even earlier to be
4870         double dog certain they are created before they are accessed.
4871
4872 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4873
4874         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
4875
4876 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4877
4878         * ScrollBar.cs: Create an internal safe Value setter so we
4879         won't crash if we try to set a value outside the min and max.
4880         * TextBoxBase.cs: Use safe value setter to guard against a
4881         potential NRE that is being reported by Reflector.
4882
4883 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4884
4885         * TreeView.cs: Create the scrollbars earlier in the constructor
4886         to attempt to guard against an NRE in SetTop in Reflector.
4887
4888 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
4889
4890         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
4891         DataGridViewRowCollection.cs: Do not scroll column and row headers,
4892         show messagebox on data format error, use column display index
4893         correctly, make sure HitTest supports new layout stuff,
4894         make sure scrollbars support new layout stuff.
4895
4896 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
4897
4898         * XplatUIX11.cs : Patch by Doug Rintoul.
4899           For some IM engines, keypress events need to delay call
4900           to XPending() and XNextEvent() in the loop so that it
4901           does not mess the orders in XIM commit callback.
4902           Some KeyRelease events such as shift keys need to be
4903           processed both in the IM engine and winforms driver
4904           itself since winforms holds its own state check.
4905
4906           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
4907
4908 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
4909
4910         * X11Keyboard.cs, XplatUIX11.cs :
4911           add primitive support for XIM input support (preedit-
4912           nothing and status-nothing). It requires precise event
4913           capturing (XSelectInput/"filterEvents") and different
4914           call to XFilterEvent against root window.
4915           Get composed string and send dummy WM_IME_COMPOSITION.
4916           Free XIM and XIC instances in finalizer.
4917
4918           (This first patch does not include suggested changes
4919            by Doug Rintoul. It will follow.)
4920
4921 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4922
4923         * DataGridView.cs: When binding to a property, if the property
4924         doesn't have a setter, set the column to readonly.
4925         [Fixes bug #343965]
4926
4927 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4928
4929         * ComboBox.cs: Guard against NRE if an arrow key is hit while
4930         we aren't dropped down.  Support Home/End in DropDownList mode.
4931         [Fixes bug #371990]
4932
4933 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
4934
4935         * TreeNodeCollection.cs: Don't increment count until we've
4936         saved our index to return.
4937         [Fixes bug #373603]
4938
4939 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4940
4941         * Label.cs: Add padding to the label's AutoSize calculation.
4942         [Fixes bug #373792]
4943
4944 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4945
4946         * ListBindingHelper.cs: Actually implement GetListName method.
4947
4948 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4949
4950         * BindingSource.cs: Throw the propert expceptions for some methods, as
4951         well as detect the list item type for Add method if DataSource is null.
4952
4953 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4954
4955         * DataGridViewCell.cs: I don't know why I commented this out,
4956         putting it back for now.
4957
4958 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4959
4960         * DataGridViewCell.cs: Remove storage for owning column, just
4961         use column index.
4962         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4963         * DataGridViewColumnHeaderCell.cs: If the header text has been
4964         explicitly set, return it.
4965         [Fixes bug #325979]
4966
4967 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
4968
4969         * DataGridViewRowCollection.cs: Disable row sharing when
4970         using data binding.  Its a great feature, but lets work on
4971         getting DGV usable first before we worry about optimizations.
4972
4973 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4974
4975         * BindingSource.cs: When resetting our internal list, compute list
4976         item type information to be used for indirect list access. Also
4977         implement/tune some properties and methods related to the list access
4978         too.
4979         * ListBindingHelper.cs: Add a stub for GetListName method, used from
4980         BindingSource.
4981
4982 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4983
4984         * DataGridView.cs: If RowCount is increased while ColumnCount
4985         is zero, add a column.  [Fixes bug #331649]
4986
4987 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4988
4989         * DataGridViewRowCollection.cs: When adding new rows for
4990         databinding, make sure they are place before the add row.
4991         [Fixes bug #343961]
4992
4993 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4994
4995         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4996         instead of Index order.
4997
4998 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
4999
5000         * DataGridView.cs: If columns are added by increasing ColumnCount,
5001         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
5002         [Fixes bug #325588]
5003
5004 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5005
5006         * DataGridView.cs: Turn off and on the "new row" when 
5007         AllowUserToAddRows is toggled.  When the handle is created,
5008         set current cell and selected cell/row/col.
5009
5010 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
5011
5012         * ComboBox.cs: When navigating the drop down by keyboard, we
5013         need to scroll the list box if our selection moves out of the
5014         currently shown items.  [Fixes bug #371990]
5015
5016 2008-03-24  Luke Page <luke.a.page@gmail.com>
5017
5018         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
5019         on the control. Also now handles unicode compatibility characters and
5020         stores the unicode compatibility length on the stack. Fixes Bugs
5021         #355198 and #366436.
5022
5023 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5024
5025         * BindingSource..cs: Take into account DataMember when re-creating the
5026         List property, and also create a specific kind of list as needed.
5027
5028 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5029
5030         * ListBindingHelper.cs: Add a new case for GetList () method - when we
5031         get an empty IEnumerable, try to detect whether the datamember is
5032         valid or not for that type, if true, return null, and throw exception
5033         otherwise.
5034
5035 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
5036
5037         * ComboBox.cs: Alt-Down should drop down the list, Esc should
5038         retract it.  [Fixes bug #371989]
5039
5040 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5041
5042         * PropertyGrid.cs: Initialize the sorting button as pushed.
5043
5044 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
5045
5046         * PropertyGrid.cs: 
5047          - Visually select the PropertyTab.
5048          - Filter Properties by Attributes properly.
5049
5050 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5051
5052         * MenuItem.cs: Remove menu item from parent when disposed.
5053         [Fixes bug #372845]
5054
5055 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5056
5057         * ToolBar.cs: Don't reset layout_type if Dock = None.
5058
5059 2008-03-21  Andreia Gaita <avidigal@novell.com> 
5060
5061         * UserControl.cs: Select the first available control when we get focus.
5062           Fixes #372616
5063
5064 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5065
5066         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
5067         the content if we are in edit mode.  [Fixes bug #343964]
5068
5069 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
5070
5071         * DataGridViewCell.cs: Fix border painting for column headers.
5072
5073 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5074
5075         * BindingSource.cs: When setting or resetting data source,
5076         use ListBindingHelper.GetList () method, since it will get the list in
5077         case datasource is IListSource.
5078
5079 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5080
5081         * DataGridViewCell.cs: Implement lots more stuffs.
5082
5083 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5084
5085         * PropertyGridView.cs, GridEntry.cs: Implement support for 
5086         UITypeEditor.IsDropDownResizable.
5087
5088 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
5089
5090         * DataGridViewCell.cs: Remove unused variables, improve how
5091         several of the property getters work.
5092         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
5093         get its size from the parent row/col.
5094
5095 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5096
5097         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
5098         user alters manually the PropertyTabs collection via the 
5099         PropertyTabs property.
5100
5101 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5102
5103         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
5104         new tests for them to be sure to be compatible with .net.
5105
5106 2008-03-20  Andreia Gaita <avidigal@novell.com> 
5107
5108         * WebBrowserBase.cs: Fix attributes, add events
5109         * WebBrowser.cs: Fix Padding signature
5110
5111 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
5112
5113         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
5114
5115 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
5116
5117         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
5118         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
5119         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
5120         passes the new suite of tests for it.
5121
5122 2008-03-18  Andreia Gaita <avidigal@novell.com> 
5123
5124         * WebBrowser.cs: Add missing attributes, missing Padding and
5125           DefaultSize properties, remove extraneous getters
5126
5127 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5128
5129         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
5130         method overloads.
5131
5132 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5133
5134         * ComboBox.cs: Move resetting the selected index to keypress
5135         instead of textchanged.  Changing the text programmatically
5136         should not trigger resetting the selected index.  Fixes test.
5137
5138 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5139
5140         * ComboBox.cs: When the user types into the textbox, reset
5141         the selected index to -1.  [Fixes bug #371672]
5142
5143 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
5144
5145         * FileDialog.cs: Support Control-A for selecting everything
5146         in an OpenFileDialog.  [Fixes bug #371564]
5147
5148 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
5149
5150         * DataGridView.cs: When row/column visible/height properties
5151         change, invalidate.  Take the NIEX out of InvalidateRow/Column
5152         etc.  We don't support them yet, but we can just invalidate
5153         everything until we do support them.  (Added MonoTODO).  Set
5154         proper control styles.
5155         * DataGridViewRow.cs: Don't call PaintHeader if row headers
5156         are turned off. 
5157
5158 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5159
5160         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
5161
5162 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5163
5164         * DataGridViewRow.cs: Only paint the white background in
5165         cell bounds, the row bounds extends past the cells if the 
5166         grid width isn't as wide as the DGV.
5167
5168 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
5169
5170         * DataGridView*: Completely revamp the drawing to match the
5171         public API.  Our grids now look better, and call all the
5172         appropriate methods and event to allow users to override
5173         the painting and do their own.
5174
5175 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5176
5177         * ListBindingHelper.cs: Implement 2.0 GetList methods.
5178
5179 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5180
5181         * DataGridView.cs: Implement BorderStyle.
5182
5183 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5184
5185         * FileDialog.cs: Apply patch from Andy Hume: Any time we
5186         are comparing attributes, make sure we only look at the
5187         one we are interested.  These calls were failing if there
5188         were more than one attribute.
5189         [Fixes bug #370385]
5190
5191 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
5192
5193         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
5194
5195 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5196
5197         * PageSetupDialog.cs: Stub EnableMetric.
5198         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
5199         * PrintPreviewDialog.cs: Add ProcessDialogKey,
5200         ProcessTabKey.
5201
5202 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5203
5204         * MonthCalendar.cs: Remove unused variable.
5205
5206 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
5207
5208         * DataGridView*.cs: corcompare stuffs.
5209
5210 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5211
5212         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
5213         The savings aren't worth the extra code to fix the optimization.
5214         [Fixes bug #368585]
5215
5216 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5217
5218         * ToolBar.cs: Always call base.Dock in the Dock override so that
5219         Control's layout_type gets reset correctly.
5220         [Fixes bug #368882]
5221
5222 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
5223
5224         * X11Dnd.cs: End DnD operation also for the middle mouse button.
5225
5226 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5227
5228         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
5229         at the same time we do explicit ones, because we have to give all
5230         other controls on the container a chance to handle explicit ones
5231         first.  If no one has an explicit mnemonic, then we can let the
5232         MenuStrip have a shot at implicit mnemonics.
5233         * MenuStrip.cs: Create an implicit mnemonic function.
5234         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
5235         mnemonics for MenuStrips.
5236         [Fixes bug #368493]
5237
5238 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
5239
5240         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
5241         DataGridColumnStyle.cs: corcompare stuffs.
5242
5243 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5244
5245         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
5246         Details - This is needed after we added the bits to use any available
5247         column also for List and SmallIcon view. 
5248
5249 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5250
5251         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
5252         at the proper place, not only when changing SelectedIndex and changing
5253         the selection using keys/mouse, as .net does.
5254
5255 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5256
5257         * ControlBindingsCollection.cs: Implement last 2.0
5258         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
5259         in the new 2.0 Add methods.
5260
5261 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5262
5263         * ListBox.cs: When calling SelectedIndexCollection.Clear,
5264         return if no items are previously selected - this is done to avoid 
5265         firing OnSelectedIndexChanged without need to do so. Also,
5266         when creating handle ensure that the focused item is visible (as
5267         .net does).
5268
5269 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5270
5271         * ListBox.cs: Rewrote/refactored most of selection code. We require
5272         the following things in selection: a) keep selection sorted (both
5273         indices and items), b) SelectedIndices automatically detect the
5274         selection mode, c) SelectedIndex should be the first selected item
5275         index, d) Need to Focus/adjust scroll bar when selecting a new item,
5276         not only for SelectedIndex, which is specially important in Multi*
5277         selection modes. To achieve this we are moving the selection core to
5278         SelectedIndexCollection and make depend all selection modifications on
5279         it.
5280         Fixes #366438.
5281
5282 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5283
5284         * ToolStrip.cs: Enable implicit mnemonics for drop down
5285         menu strips.  [Fixes part of bug #367692]
5286
5287 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5288
5289         corcompare - fix parameter names [stragglers].
5290         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
5291         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
5292         TabControl.cs.
5293
5294 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5295
5296         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
5297         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
5298         mnemonic, let the ToolStripManager have it even if it doesn't
5299         have a matching mnemonic.
5300         [Fixes bug #367499]
5301
5302 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5303
5304         corcompare - fix warning about implicit implementation
5305         * ToolStrip.cs: Add IToolStripData interface.
5306         * IToolStripData.cs: Add.
5307
5308 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
5309
5310         corcompare - fix warning about implicit implementation
5311         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
5312         * IBounds.cs: Add.
5313
5314 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5315
5316         corcompare - fix parameter names [N-Z].
5317         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
5318         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
5319         PropertyManager.cs, RichTextBox.cs,
5320         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
5321         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
5322         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
5323         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
5324         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
5325         ToolStripContentPanel.cs, ToolStripDropDown.cs,
5326         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
5327         ToolStripPanel.cs, ToolStripSeparator.cs,
5328         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
5329         UICuesEventHandler.cs, UpDownBase.cs.
5330
5331 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5332
5333         corcompare - fix parameter names [G-M].
5334         GridColumnStylesCollection.cs, GridItemCollection.cs,
5335         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
5336         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
5337         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
5338         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
5339         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
5340
5341 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
5342
5343         corcompare - fix parameter names [A-F].
5344         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
5345         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
5346         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
5347         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
5348         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
5349         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
5350         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
5351
5352 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5353
5354         * GridEntry.cs: Do not convert not only if the types match, 
5355         but also if the property type is assigneable from the value's
5356         type.
5357         [Fixes bug #366566]
5358
5359 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
5360
5361         * PropertyGridView.cs: 
5362          - Subscribe to the listbox only once and not everytime.
5363          - Update the textbox even if SetValue fails.
5364          - Close the listbox before calling TrySetValue just in case.
5365          [Fixes bug #366569]
5366
5367 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
5368
5369         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
5370
5371 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5372
5373         * ListView.cs: Implement support for custom column width based on
5374         Columns collection (we were previously using this collection only
5375         with Details view).
5376         Fixes #364484.
5377
5378 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5379
5380         * ListViewItem.cs: For Tile view, always set bounds for the first
5381         subitem (which is the main one), and also don't let Width be larger
5382         than ListView.TileSize.Width. Improve code readibility also.
5383         * ThemeWin32Classic.cs: When painting the ListViewItem instances
5384         in Tile view, _always_ use the NoWrap flag.
5385         Fixes #360798.
5386
5387 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
5388
5389         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
5390         in case.
5391         * GridEntry.cs: For MS compitability make all child properties 
5392         readonly if the parent is readonly. Ugh.
5393         [Fixes bug #365945 and #365944]
5394
5395 2008-02-29  Andreia Gaita <avidigal@novell.com> 
5396
5397         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
5398           relative to the history
5399
5400 2008-02-29  Andreia Gaita <avidigal@novell.com>
5401
5402         * HtmlElement.cs: More handlers for mouse and key events
5403
5404 2008-02-28  Andreia Gaita <avidigal@novell.com>
5405
5406         * WebBrowserBase.cs: MouseClick sig changed.
5407         * HtmlHistory.cs: Implement history navigation
5408         * HtmlElement.cs: Add event handlers, and connect them.
5409
5410 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
5411
5412         * GridEntry.cs: 
5413          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
5414            so that DisplayNameAttribute doesn't get ignored.
5415          - Check for ParenthesizeNameAttribute and parenthesize the Label.
5416          - Add support for PasswordPropertyTextAttribute
5417         * PropertyGridView.cs: Check if an entry is a password.
5418         [Fixes bugs #365589, #365586, #365588]
5419
5420 2008-02-28  Andreia Gaita <avidigal@novell.com>
5421
5422         * PropertyGridView.cs: Revert the message filtering change, as we
5423         need it to block after all. Remove block parameter, unnecessary.
5424
5425 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
5426
5427         * UserControl.cs: Better implementation of GetPreferredSize.
5428         First step to fixing bug #361441.
5429
5430 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5431
5432         * Binding.cs: Actually implement data binding support for 
5433         classes implementing IBindableComponent.
5434         * ControlBindingsCollection.cs: Likewise.
5435
5436 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5437
5438         * PropertyGridView.cs: Use a message filter to check when to 
5439         close the dropdown
5440
5441 2008-02-26  Andreia Gaita  <avidigal@novell.com>
5442
5443         * Application.cs: Change the message_filters loop so a filter 
5444         can be removed while looping.
5445
5446 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
5447
5448         * GridEntry.cs: Optimization in ToggleValue so that it caches
5449         the current value.
5450         * PropertyGridView.cs: An optimization so that the property isn't 
5451         re-read twice for each StandardValue added to the drop-down menu.
5452         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
5453         license.
5454         [Fixes bug #362755]
5455
5456 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
5457
5458         * Application.cs: Apply patch from Justin Cherniak to match
5459         MS better for ProductName, ProductVersion, and CompanyName.
5460         [Fixes bug #361709]
5461
5462 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5463
5464         * Binding.cs: Actually implement 2.0 NullValue property. Also
5465         when changing the formatting related properties, only update the state
5466         if formatting_enabled is true (we don't mind otherwise).
5467
5468 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
5469
5470         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
5471         [Fixes bug #364486]
5472
5473 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5474
5475         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
5476         of GetType on the current value as it uses reflection to 
5477         determine the type. This fixes the case where the new value is 
5478         null. 
5479
5480 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
5481
5482         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
5483         past the view.
5484
5485 2008-02-24  Luke Page  <luke.a.page@gmail.com>
5486
5487         * Line.cs, TextControl.cs: Implement offset x and y so that a
5488         document doesn't have to begin  at (0,0) on the viewpoint.
5489         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
5490         bars and switches the text alignment (and therefore is now
5491         implemented for textbox). Fixes #321383.
5492
5493 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5494
5495         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
5496         properties. Also when changing FormattingEnabled update the control
5497         property -as .Net does-.
5498
5499 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
5500
5501         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
5502         * Binding.cs: Add stubs for the overloads of the Add method in
5503         CBCollection.
5504
5505 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5506
5507         * Binding.cs: PullData () returns a false value if we got an exception.
5508         Also when validating the control and we get an error, instead of
5509         setting the value of the previous one, cancel the event (tested in 1.1
5510         and 2.0).
5511
5512 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
5513
5514         * TreeView.cs: Make selected_node and highlighted_node internal.
5515         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
5516         to null when Nodes.Clear is called.
5517         [Fixes bug #363884]
5518
5519 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5520
5521         * FontDialog.cs: Ensure that when the Font is set in code,
5522         all the gui pieces are updated accordingly.
5523         [Fixes bug #361020]
5524
5525 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * TextRenderer.cs: Respect proposed size for MeasureString.
5528         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
5529         autosize, use a proposed width to force wrapping for long text.
5530         [Fixes bug #360981]
5531
5532 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5533
5534         * TreeView.cs: Factor in checkboxes = false and state images in
5535         to HitTest.  [Fixes bug #363360]
5536
5537 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5538
5539         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
5540         when drawing the selected range.
5541         [Fixes bug #363648]
5542
5543 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
5544
5545         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
5546         ResizeRedraw control styles.
5547         [Fixes bug #363555]
5548
5549 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5550
5551         * TreeView.cs: StateImages are basically custom checkboxes, so
5552         factor their size the same as real checkboxes when determining
5553         what got clicked.
5554         [Fixes bug #363367]
5555
5556 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5557
5558         * MessageBox.cs: Make the message box wider if the form caption
5559         is longer than the text in the form.
5560         [Fixes bug #361137]
5561
5562 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
5563
5564         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
5565
5566 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5567
5568         * TreeNode.cs: Guard against an NRE when the parent's
5569         StateImageList hasn't been set.
5570         [Fixes bug #363353]
5571
5572 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5573
5574         * SplitContainer.cs: Add SupportsTransparentBackColor and
5575         OptimizedDoubleBuffering control styles.
5576         [Fixes bug #363303]
5577
5578 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5579
5580         * Application.cs: For the app data paths and the registry key paths,
5581         ensure they are created before returning them to the user.
5582         [Fixes bug #361709]
5583
5584 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5585
5586         * Application.cs: Guard against an NRE in CompanyName and
5587         ProductName.
5588
5589 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
5590
5591         * Application.cs: For CompanyName, ProductName, and ProductVersion,
5592         make sure we handle all three cases correctly: attribute is present,
5593         attribute is present but is an empty string, and attribute is not
5594         present.
5595
5596 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
5597
5598         * PropertyGridView.cs: 
5599          - Fix a NRE that caused a test failure
5600          - Another performance improvement - cache the standard values
5601          listbox.
5602
5603 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5604
5605         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
5606         code paths.
5607
5608 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
5609
5610         * PropertyGridView.cs: Fix a big performance bug.
5611
5612 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5613
5614         * SelectionRange.cs: Apply patch from Andy Hume to make
5615         constructor behavior more accurate.  [Fixes bug #362117]
5616
5617 2008-02-19  Andreia Gaita <avidigal@novell.com> 
5618
5619         * Control.cs: Added a new flag is_disposing to track if the
5620         window is currently in the process of being disposed of.
5621         This is used so that, when firing visibility changes triggered
5622         by unparenting controls during Dispose, the control doesn't
5623         get created again.      
5624
5625 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
5626
5627         * ComboBox.cs: Set height to preferred height when the handle
5628         is created.  [Fixes bug #360862]
5629
5630 2008-02-18  Andreia Gaita <avidigal@novell.com>
5631
5632         * XplatUIX11.cs: Create FosterParent with border width at 0.
5633         With the previous value of 4, everytime a control got reparented
5634         from parent = null, it's location would be shifted right and 
5635         down by 4, since these coordinates would be offset by the 
5636         FosterParent's border width.
5637
5638 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
5639
5640         * Control.cs: During diposing firstly remove ourselfes from
5641         the parent and *then* destroy our handle, because removing
5642         ourselfes from the parent controls collection causes 
5643         VisibilityChange, etc events, which require a handle and end
5644         up recreating the control.
5645
5646 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
5647
5648         * GridEntry.cs: Set expanded state before notifying that the
5649         expansion has taken place.
5650         * PropertyGridView.cs:
5651          - Set the propertygridtextbox text to the selected 
5652          StandardValue before proceeding to setting it.
5653          - Scrolling bugfixes.
5654
5655 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5656
5657         * GridEntry.cs:
5658          - Fix ValueText to not return null.
5659          - Fix conversion error reporting to actually happen.
5660         * PropertyGridView.cs: Set entry only if the text has changed.
5661         [Fixes bug #362116]
5662
5663 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5664
5665         * GridEntry.cs: 
5666          - Fix handling of a null current value.
5667          - Swallow editor exceptions.
5668         [Fixes bug #362114]
5669
5670 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
5671
5672         * PropertyGrid.cs: Clear current items first thing before 
5673         repopulating subitems.
5674         * GridEntry.cs: 
5675          - Handle null StandardValuesCollection.
5676          - Mark as not editable if there is no PropertyDescriptor and
5677          if the Converter cannot convert from string.
5678         [Part of fix for bugs #360666 and #358332]
5679
5680 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5681         * MaskedTextBox.cs: Now skips non editable characters after a
5682         character has been entered and we are progressing to the next
5683         position in the MaskedTextBox.
5684
5685 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5686         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5687         that it changes the selection rather than just repositioning the
5688         cursor. Fixes Bug #360873.
5689
5690 2008-02-15  Luke Page  <luke.a.page@gmail.com>
5691         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5692         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5693         correctly. See #359330
5694
5695 2008-02-15  Andreia Gaita <avidigal@novell.com>
5696
5697         * XplatUIX11.cs: If the handle is null when posting a message, use the
5698         current thread queue to post instead. Fixes #332409
5699
5700         * SendKeys.cs: Slight optimization
5701
5702 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
5703
5704         * PropertyGrid.cs, PropertyGridView.cs:
5705         Fix multiple scrolling and sizing issues.
5706         [Fixes bug #359199]
5707
5708 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5709
5710         * PropertyGridView.cs: Ensure that drop down editors are shown
5711         in the WorkingArea of the screen.
5712         [Fixes bug #359807]
5713
5714 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
5715
5716         * GridEntry.cs: Fail silently when UITypeEditor is missing.
5717         [Fixes bug #360666]
5718
5719 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5720
5721         * Binding.cs: Implement 2.0 DataSourceNullValue property.
5722
5723 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5724
5725         * PropertyGridView.cs:
5726          - Clear the controls in the drop down form after it is hidden.
5727          - Fix Width sizing of the dropdown editors to match MSFT.
5728
5729 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5730
5731         * PropertyGridView.cs: 
5732          - Fix height for drawing the grid entry
5733          text value, so that it clips multiline text properly.
5734          - Fix unfocusing to match MSFT.
5735
5736 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
5737
5738         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
5739         Fixes a bug where on repopulation after value changed items become
5740         expandable.
5741
5742 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5743
5744         * Binding.cs: For the 2.0 profile, look for a 
5745         'PropertyChanged' event in the target control, and add checks for
5746         DataSourceUpdateMode property to change -or not- the data source
5747         from validation/control property change.
5748
5749 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
5750
5751         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
5752           not compare struct with null in 2.0).
5753
5754 2008-02-10  Luke Page <luke.a.page@gmail.com>
5755
5756         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
5757         updates the provider and if not using a provider, uses the internal document
5758         class implementation of password char. Also when showing text, uses display string
5759         from the provider, instead of the actual text.
5760
5761 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5762
5763         * Binding.cs: Ooooops, forgot to take into account the data_source
5764         and binding_member_info null case (it was breaking the Binding tests).
5765
5766 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767
5768         * Binding.cs: Implement support for data source changes exposed by
5769         'PropertyNameChanged' events, and update the control property as
5770         needed.
5771
5772 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5773
5774         * Binding.cs: Implement 2.0 WriteValue method.
5775
5776 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5777
5778         Commit patch from James Purcell for better AutoScale implementation:
5779
5780         * ScaleControl should call GetScaledBounds with the control's total size rather
5781         than client size.  GetScaledBounds should handle ignoring the borders in its
5782         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
5783         (for the most part they just call the base code now since that is fixed).
5784         * Added ScaleChildrenInternal to allow controls to disable scaling of children
5785         without having to override ScaleChildren (since none of .NET's controls do). 
5786         This is required for most controls in Mono that have scrollbars to prevent the
5787         scrollbars from being moved/resized.
5788         * Nested ContainerControls can have a different scale mode than their parent. 
5789         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
5790         designer produce different results both of which look incorrect).
5791         * Default AutoScaleMode for ContainerControl should be Inherit.
5792         * Simplified workaround for ComboBox scaling issue.
5793         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
5794         1.0 style auto scaling should scale the whole control's size instead of
5795         ignoring the borders (except for Form) and the rounding is done differently to
5796         preserve control alignment.
5797         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
5798         GetAutoScaleSize.
5799         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
5800         * CurrentAutoScaleDimensions should round the estimated character width instead
5801         of truncating.
5802         * ListBox's GetScaledBounds should always use the height it was set to instead
5803         of the height that was passed in.  This prevents rounding errors from
5804         accumulating quickly with IntegralHeight.
5805         [Bug #359098]
5806
5807 2008-02-08  Andreia Gaita <avidigal@novell.com>
5808
5809         * Form.cs: Add a null check (darn it). 
5810
5811 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5812
5813         * MdiClient.cs: Make sure the requesting form actually owns the
5814         control menu items before removing them.  Also, use
5815         Suspend/ResumeLayout when adding or removing items so we only
5816         layout once.
5817         [Fixes bug #359887]
5818
5819 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
5820
5821         * Control.cs: Guard against an NRE in ShowFocusCues.
5822         [Fixes bug #359830]
5823
5824 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5825
5826         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
5827         property, as well as stubbing DataSourceUpdateMode.
5828
5829 2008-02-08  Andreia Gaita <avidigal@novell.com>
5830
5831         * Form.cs: When closing forms, get focus back to the active control of the
5832         active form. [Fixes #341314, corner case]
5833         
5834 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5835
5836         * MdiClient.cs: After we move the scrollbars, invalidate the NC
5837         area, so any old scrollbar artifacts are cleaned up.
5838         [Fixes bug #336305]
5839
5840 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5841
5842         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
5843         for our menus, display that control box menu instead of the 1.1
5844         menu one.
5845
5846 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5847
5848         * MdiControlStrip.cs: Add property to access the mdi form tied to
5849         each toolstripitem.
5850         * MdiClient.cs: Be smarter about removing and adding toolstripitems
5851         to the implicitly merged menu.  Every time we clicked the form, items
5852         were getting removed and the re-added, causing the form to jump around
5853         as the menu resized.
5854
5855 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5856
5857         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
5858         was being reset by the implicit menu merge for menustrips.
5859         [Fixes bug #336296]
5860
5861 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5862
5863         * Form.cs: Don't do the previous change when WindowState = Normal,
5864         or it messes up where the window is placed.  Fixes test failure.
5865
5866 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
5867
5868         * Form.cs: When becoming visible, if we are an MDI child, call
5869         SetWindowState with a dummy old_state so that changes will actually
5870         be made.
5871         [Fixes the 2nd part of bug #325473]
5872
5873 2008-02-07  Andreia Gaita <avidigal@novell.com>
5874
5875         * Control.cs: Reset properties to their pre parent-change values in case
5876         the new parent == null (in which case we're basically removing the control, 
5877         and don't want any events fired due to fake property changes)
5878         [Fixes #355850]
5879
5880 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
5881
5882         * PropertyGridView.cs: 
5883          - Refactor SetValue to allow setting the value
5884         when a custom editor is used, but the entry is not editable.
5885          - Remove the custom editor control on CloseDropDown.
5886         [Fixes #359196]
5887
5888 2008-02-06  Andreia Gaita <avidigal@novell.com>
5889
5890         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
5891         reflection only on 1.1, this property is public on system.drawing on 2.0.
5892         Fixed #359247
5893
5894 2008-02-06  Andreia Gaita  <avidigal@novell.com>
5895         
5896         * WebBrowser.cs: Do a normal page refresh by default.
5897
5898 2008-02-05  Andreia Gaita  <avidigal@novell.com>
5899
5900         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
5901         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
5902         platforms. Fixes #359036
5903         
5904         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
5905         platform-specific flags.
5906
5907 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5908
5909         * Binding.cs: Add 2.0 BindableComponent property - just return control
5910         by now.
5911
5912 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
5913
5914         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
5915         Jonathan for this patch. Fixes #358442.
5916
5917 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
5918
5919         * Form.cs: If we change the active MDI child form, let the others
5920         know they need to repaint their title bar so it will appear inactive.
5921         [Fixes part 1 of bug #325473]
5922
5923 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
5924
5925          * PropertyGridView.cs: Do not trucate custom editors' width
5926          and align them to the left.
5927          [Fixes #358353 and #358349]
5928
5929 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5930
5931         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
5932         Also fix the arguments passed to CollectionChangeEventArgs in the
5933         related methods.
5934
5935 2008-02-04  Geoff Norton  <gnorton@novell.com>
5936
5937         * Hwnd.cs: The conversion to Quartz coordinates happens in
5938         System.Drawing.  Removing this translation from here.
5939
5940 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5941
5942          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5943          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5944          GridItemCollection.cs:
5945          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5946
5947 2008-02-04  Geoff Norton  <gnorton@novell.com>
5948
5949         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
5950         SYSKEYUP if any other key has been pressed in the mean time.
5951         Fixes #324404
5952
5953 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5954
5955         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5956         when the item in current position is different than 0. Also, save the
5957         item index in the beginning of the operation, instead of getting the
5958         index of the item when the event is actually performed. Lastly clean
5959         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5960         triggered.
5961         [Fixes #357873]
5962
5963 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5964
5965         * Form.cs: Alt-Minus for MDI children system menu should work
5966         with both the minus keys on the keyboard.
5967         [Fixes bug #336295]
5968
5969 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5970
5971         * Control.cs: Don't invalidate on region change.  The WM should
5972         take care of this automagically.  Keeps us out of an infinite
5973         paint loop if someone changes the Region in the OnPaint.
5974         [Fixes bug #358327]
5975
5976 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
5977
5978          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5979
5980 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5981
5982         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5983         down the MonthCalendar only on F4, not Alt+F4.
5984         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5985         [Fixes bug #358340]
5986
5987 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5988
5989         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5990         if its part of a DateTimePicker, else, use the back color.
5991         [Fixes bug #358339]
5992
5993 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
5994
5995         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5996         [Fixes bug #358342]
5997
5998 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5999
6000         * CurrencyManager.cs: When we get a ListChanged event from our source,
6001         always fire our own ListChanged event, as .Net does.
6002
6003 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6004
6005         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
6006         #358379.
6007
6008 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6009
6010         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
6011         property. Removed if for richtext property that was always true.
6012         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
6013
6014 2008-02-03  Luke Page  <luke.a.page@gmail.com>
6015
6016         * TextBoxBase.cs - commited patch from James Purcell that
6017         correctly sets the FixedHeight control style when the MultiLine
6018         property is changed on a TextBox control. Fixes bug 358229.
6019
6020 2008-02-02  Luke Page  <luke.a.page@gmail.com>
6021
6022         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
6023         Fixes bug 351938 - caret is positioned correctly when drawn
6024         and when calculating textual position of caret, no longer
6025         has a NRE in certain situations.
6026         
6027 2008-02-01  Geoff Norton  <gnorton@novell.com>
6028
6029         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
6030         get that region removed from the paint event.
6031         * XplatUICarbon.cs: Remove the window mapping after disposing of 
6032         window.  Prevents a crash with handle reuse.  Optimize exposes
6033         only onto visible windows (rare; but possible).
6034
6035 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6036
6037         * UpDownBase.cs: Make sure the internal textbox calls the base's
6038         OnMouseDown and OnMouseUp so the textbox will function correctly.
6039         There were notes saying it doesn't chain up, but its an internal
6040         class, so our implementation may differ.
6041         [Fixes bug #357482]
6042
6043 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6044
6045         * ListBox.cs: Fix a logic error and don't process MouseDown
6046         for mouse buttons other than Left.
6047
6048 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6049
6050         * Control.cs: Remove HeightInternal.
6051         * ListBox.cs: Commit patch from James Purcell that correctly
6052         calculates heights for ListBoxen.
6053         [Fixes bug #357152]
6054
6055 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6056
6057         * Label.cs: Apply patch from James Purcell that corrects the 
6058         signature of the AutoSize property.
6059         [Fixes bug #357605]
6060
6061 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * ListBox.cs: Don't throw [Mouse]Click events for buttons
6064         other than the left mouse button.
6065
6066 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
6067
6068         * Control.cs: Remove my awesome optimization as it caused some
6069         regressions with control ordering.  :(
6070         [Fixes bug #357467]
6071
6072 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
6073
6074          * PropertyGridView.cs: Fix a NRE on double click when there is no
6075          selected object.
6076
6077 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6078
6079         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
6080
6081 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
6082
6083         * ListBox.cs: Call MouseClick and MouseDoubleClick.
6084         [Fixes bug #357146]
6085
6086 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6087
6088         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
6089         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
6090         instead of Hwnd.bmp_g.
6091
6092 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6093
6094         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
6095         Use the Hwnd one instead.
6096
6097 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6098
6099         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
6100
6101 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6102
6103         * Form.cs: corcompare for RestoreBounds.
6104
6105 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6106
6107         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
6108
6109 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
6110
6111         * Form.cs: Handle Alt-Minus for MDI children forms.
6112         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
6113         Add mnemonics to the control menu.
6114         [Fixes bug #336295]
6115
6116 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6117
6118         * Binding.cs: Initial implementation bits of FormattingEnabled
6119         property and BindingComplete event (2.0). 
6120         * BindingCompleteEventArgs.cs: Internal methods for setting error text
6121         and exception.
6122
6123 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6124
6125         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
6126         table.Location.  [Fixes bug #354672]
6127
6128 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
6129
6130         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
6131         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
6132
6133 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6134
6135         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
6136         of doing all the re-bound work, just invalidate and call SetControlText 
6137         to set the updated text of selected item to our textbox.
6138         Fixes #333750.
6139
6140 2008-01-28  Andreia Gaita <avidigal@novell.com>
6141
6142         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
6143         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
6144         missing properties and methods. Add Load, Unload, Error, GotFocus, 
6145         LostFocus, Resize, Scroll events (only load and unload are connected)
6146
6147 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
6148
6149         * AccessibleObject.cs: Modified argument names to match MS.
6150         * Button.cs: Modified argument names to match MS.
6151         * BindingContext.cs: Modified argument names to match MS.
6152         * BindingMemberInfo.cs: Modified argument names to match MS.
6153         * ButtonBase.cs: Modified argument names to match MS.
6154         * ComboBox.cs: Modified argument names to match MS.
6155         * Control.cs: Modified argument names to match MS.
6156         * CheckedListBox.cs: Modified argument names to match MS.
6157         * CommonDialog.cs: Modified argument names to match MS.
6158         * DataGrid.cs: Modified argument names to match MS.
6159         * CursorConverter.cs: Modified argument names to match MS.
6160         * ControlPaint.cs: Modified argument names to match MS.
6161         * CheckBox.cs: Modified argument names to match MS.
6162         * ControlBindingsCollection.cs: Modified argument names to match MS.
6163         * BindingSource.cs: Modified argument names to match MS.
6164         * DataFormats.cs: Modified argument names to match MS.
6165         * ContainerControl.cs: Modified argument names to match MS.
6166         * CurrencyManager.cs: Modified argument names to match MS.
6167         * Application.cs: Modified argument names to match MS.
6168         * ContextMenuStrip.cs: Modified argument names to match MS.
6169         * ContextMenu.cs: Modified argument names to match MS.
6170         * BindingManagerBase.cs: Modified argument names to match MS.
6171         * WindowsFormsSection.cs: Fixed line ending.    
6172
6173 2008-01-27  Andreia Gaita <avidigal@novell.com>
6174
6175         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
6176         detecting that the dropdown toolwindow is hidden. EndLoop outside the
6177         while.
6178
6179 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
6180
6181         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
6182         MS. Code formatting.
6183
6184 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6185
6186         * Binding.cs: Don't avoid the Format event if the control 
6187         property type is object. Also, if the value retrieved by 
6188         the data source is null _and_ the control proeprty type 
6189         is object, return Convert.DBNull (match .Net).
6190         Fixes part of #324286.
6191
6192 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6193
6194         * ListControl.cs: Since we are getting two BinginContextChanged events
6195         for the same binding context instance (when the control is added to
6196         form, and when the form is actually shown), take it into account only the
6197         first time for a given binding context instance.
6198         Fixes part of #324286.
6199
6200 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6201
6202          * PropertryGridView.cs: Ops.
6203
6204 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
6205
6206          * PropertyGridView.cs: Close dropdown form if the owner form is
6207          moved or minimized.
6208          [Fixes bug #322446]
6209
6210 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
6211
6212          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
6213          RootGridEntry.cs, CategoryGridEntry.cs:
6214          PropertyGrid rewrite.
6215          - Rewrite all of the control logic in PropertyGrid.
6216          - Rewrite all of the ComponentModel logic in GridEntry.
6217          - Rewrite all UI work in PropertyGridView.
6218          - Many bugfixes, etc.
6219
6220 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
6221
6222         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
6223         when all contained controls are autosize or dock-fill.  Also take into
6224         account when the total percentage of column/row sizes is not 100%.
6225         [Fixes bug #354672]
6226
6227 2008-01-24  Andreia Gaita <avidigal@novell.com>
6228
6229         * HtmlDocument.cs:
6230         - Save a reference to the IDocument in the instance and
6231           use that one instead of going to WebHost.Document; the document that the 
6232           WebHost returns might not be the right one (in case of frames).
6233         - Use the hashcode returned from the IDocument interface.
6234         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
6235           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
6236           LinkColor, Url, VisitedColor, Window
6237
6238         * HtmlElement.cs: 
6239         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
6240           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
6241           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
6242           SetAttribute, Equals, equality operators.
6243         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
6244           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
6245         
6246         * HtmlElementCollection.cs: Change implementation to use a generic
6247         collection. Implemented Enumerator and CopyTo
6248
6249         * HtmlHistory.cs: Add constructor, no implementation yet.
6250
6251         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
6252         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
6253         Equals, equality operators.
6254
6255         * HtmlWindowCollection.cs: Implemented. 
6256
6257         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
6258         has been deprecated).
6259
6260         * WebBrowserBase.cs: Use Completed event to track document loading
6261         (Navigated has been deprecated)
6262
6263 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
6264
6265         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
6266         level MenuItems do not respect tabs.
6267         [Fixes bug #355196]
6268
6269 2008-01-23  Geoff Norton  <gnorton@novell.com>
6270
6271         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
6272         FormWindowState.  Finished fixing Fullscreen windows on Carbon
6273
6274 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6275
6276         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
6277         be used as grab_control. Also save status of capture before show ContextMenu
6278         and restore it after close.
6279
6280 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6281
6282         * Control.cs: Internal FindRootParent method added to return high control
6283         in parent tree.
6284
6285 2008-01-23  Geoff Norton  <gnorton@novell.com>
6286
6287         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
6288         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
6289         it work again.  Handle HITTEST events.
6290
6291 2008-01-23  Geoff Norton  <gnorton@novell.com>
6292
6293         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
6294         a crash in certain cases.  Support for fullscreen windows in certain cases.
6295
6296 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
6297
6298         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
6299         [Fixes bug #355703]
6300
6301 2008-01-23  Geoff Norton  <gnorton@novell.com>
6302         
6303         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
6304
6305 2008-01-23  Geoff Norton  <gnorton@novell.com>
6306
6307         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
6308
6309 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6310
6311         * SplitContainer.cs: Remove unused declarations.
6312         * Binding.cs: Remove unused declarations.
6313
6314 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6315
6316         * Form.cs: Remove unused declaration of 'active' in Activate method.
6317         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
6318         prevent compilation warnings.
6319         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
6320         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
6321         * Bindings.cs: Remove unused formatting_enabled declaration.
6322         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6323         warnings.
6324         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
6325         warnings.
6326         * PropertyGridView.cs: Remove usused 'ex' declaration.
6327         * DataGridView.cs: Remove unused declarations.
6328
6329 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6330
6331         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
6332         
6333         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
6334         to Control class, it makes possible to grab menu to controls that can't 
6335         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
6336         WmMouseMove removed since it was used only to track menu events.
6337
6338         * Control.cs:
6339         - Moved all active_tracker stuff from Form.
6340         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
6341         can call this method instead of reimplement all necessary code handle for
6342         menu tracker.
6343         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
6344         and WmMouseMove).
6345         
6346         * MenuAPI.cs: 
6347         - Remove special handle to ToolStripOverflow, now we can grab menu to 
6348         controls that can't reach Form using parent tree.
6349         - Change type of grab_control from Form to Control.
6350
6351 2008-01-22  Geoff Norton  <gnorton@novell.com>
6352
6353         * TextBoxBase.cs: Split up the sizing of controls and placing of 
6354         controls.  Fixes a bug where scrollbars in Reflector could be sized
6355         wrong and have non-working thumbers.
6356
6357 2008-01-23  Geoff Norton  <gnorton@novell.com>
6358
6359         * XplatUI.cs: Refactor environment variables to default support to the
6360         Carbon driver on the Mac.
6361
6362 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
6363
6364         * Label.cs: Uses new LabelPainter for drawing operations.
6365         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
6366         * Theme.cs: DrawLabel and LabelDefaultSize removed.
6367
6368 2008-01-22  Geoff Norton  <gnorton@novell.com>
6369
6370         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
6371
6372 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6373
6374         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
6375         through the normal flat button code and don't draw the checkbox glyph.
6376         * Theme.cs: Button->ButtonBase signature change.
6377         [Fixes bug #324755]
6378
6379 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6380
6381         * LinkLabel.cs: Uses new class LinkLabelPainter.
6382
6383 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
6384
6385         * MessageBox.cs: Adjust right border space, we don't need to add 
6386         "space_border*2" two times.
6387
6388 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6389
6390         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
6391         becomes a wrapper around Padding.
6392         [Fixes a part of bug #354676]
6393
6394 2008-01-22 Geoff Norton  <gnorton@novell.com>
6395
6396         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
6397         acquired.  Also ensure the buffer is large enough to grab the header
6398         we need on linux boxes.
6399
6400 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
6401
6402         * Control.cs: Implement a custom enumerator so people can delete
6403         from the Controls collection while in a foreach.
6404         [Fixes bug #355074]
6405
6406 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6407
6408          * PropertyGridView.cs: Fix focusing behavior:
6409          - Tab should focus the grid text box.
6410          - Clicking on the labels shouldn't focus the grid text box.
6411
6412 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6413
6414          * PropertyGridView.cs: IsValueTypeGridItem should return true 
6415          for Arrays as well.
6416
6417 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
6418
6419          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
6420           - Renamed GridEntry.SelectedObjects to TargetObjects to better
6421           reflect the property name role.
6422           - PropertyGrid.GetTarget is not required as the target is known
6423           (TargetObjects).
6424           - Setting values will handle value types as a special case now and
6425           populate them up in the chain.
6426           [Fixes #354990]
6427
6428 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
6429
6430         * Hwnd.cs: Create a public property for the Graphics we keep around.
6431
6432 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6433
6434          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
6435          when the current object selection changes. 
6436          Fixes failing test SelectedObject_Null2.B5.
6437
6438 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
6439
6440          * PropertyGrid.cs: Process Browsable properties with 
6441          DesignerSerializationVisibilityAttribute.Content as being expandable.
6442          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
6443          will not be expandable. We should be nested components-friendly now.
6444
6445 2008-01-21  Andreia Gaita <avidigal@novell.com>
6446
6447         * WebBrowserBase.cs: Check if control was loaded properly, 
6448         don't bind if it wasn't.
6449
6450         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
6451         GetElementFromPoint, equality operators, OpenNew, Write.
6452         Remove extra set_Body
6453
6454 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6455
6456         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
6457         that makes our AutoScale* stuff more tolerant to different orders
6458         of being set.  [Fixes bug #354669]
6459
6460 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6461
6462          * PropertyGridView.cs, PropertyGridTextBox.cs: 
6463          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
6464          [Fixes #339005 and #348209]
6465
6466 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
6467
6468          * PropertyGridView.cs: Hide the grid text box before adjusting it
6469          for the newly selected GridItem.
6470          [Fixes #338999]
6471
6472 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
6473
6474         * Form.cs: Give MDI children the opportunity to cancel the parent form
6475         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
6476         properly for both the parent and child.
6477         * Application.cs: Signature of internal method changed, pass the previous
6478         default of false.
6479         [Fixes bug #354286]
6480
6481 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6482
6483         * PropertyGridView.cs: Set the property value only if it has changed.
6484         [Fixes bug #338997]
6485
6486 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6487
6488         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
6489         If the mouse hasn't actually moved, ignore these messages so the currently
6490         highlighted menuitem isn't reset to the one under the mouse.
6491         [Fixes bug #333668]
6492
6493 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
6494
6495         * PropertyGridView.cs: When the property changes Invalidate the GridItem
6496         in order for the properties with UITypeEditor.GetPaintValueSupported == true
6497         to reflect the change visually.
6498         [Fixes bug #338998]
6499
6500 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
6501
6502         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
6503         to 2.0 button drawing.
6504         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
6505         the button text is tall enough for one line.  LineLimit says it will
6506         always draw at least one line, but it is a lie.
6507         [Fixes bug #324941]
6508
6509 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
6510
6511         * XplatUIStructs.cs, X11Keyboard.cs :
6512           added some more VK_* keys to be handled.
6513
6514 2008-01-16  Andreia Gaita <avidigal@novell.com>
6515
6516         * Control.cs: Check if there is a container before setting or getting
6517         the validation flag.
6518
6519 2008-01-16  Andreia Gaita <avidigal@novell.com>
6520
6521         * ContainerControl.cs: Add flag to track if a control cancels validation, 
6522         so we don't fire click events.
6523
6524         * Control.cs: 
6525         - (HandleClick) Check if validation was cancelled before  firing the click
6526         events (doubleclicks are fired, but not clicks)
6527         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
6528         ContainerControl.set_ActiveControl, but in the case of non-selectable
6529         controls, like a Label, activecontrol is not set. 
6530
6531         * ButtonBase.cs: Only fire clicks if validation passes.
6532         
6533         Fixes #353310
6534
6535 2008-01-16  Geoff Norton  <gnorton@novell.com>
6536
6537         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
6538         trunk
6539
6540 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
6541
6542         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
6543         SelectedPath, just display the default dialog instead of crashing.
6544         [Fixes bug #348989]
6545
6546 2008-01-16  Geoff Norton  <gnorton@novell.com>
6547
6548         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
6549         AddExpose instead of trusting apples compositing manager which doesn't
6550         work for our use case.  Remove some dead code causing warnings and 
6551         redecorate some other code to prevent warnings.
6552
6553 2008-01-16  Geoff Norton  <gnorton@novell.com>
6554
6555         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
6556         carbon signals us to redraw.  Fixes another portion of the flickering bug
6557
6558 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6559
6560         * Form.cs: Prevent the MdiParent property to be set when value is the same
6561         as value already set. Fixes bug #328019.
6562
6563 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6564
6565         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
6566         it prevents NRE when closing mdi child windows. Fixes bug #325211.
6567
6568 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6569
6570         * InternalWindowManager.cs: Invalidade close button after mouse up when 
6571         mdi form is prevented to close.
6572
6573 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
6574
6575         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
6576         thanks to Andy Hume. Fixes bug #325433.
6577
6578 2008-01-16  Andreia Gaita <avidigal@novell.com>
6579
6580         * LinkLabel.cs: Reset focused_index when resellecting the control.
6581         Fixes #323190
6582
6583 2008-01-15  Geoff Norton  <gnorton@novell.com>
6584
6585         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
6586         messages.
6587
6588 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
6589
6590         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
6591         of truncate.
6592
6593 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
6594
6595         * ContainerControl.cs: Setting AutoScaleMode to anything should set
6596         Form.AutoScale to false.
6597         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
6598         AutoScaleBaseSize should be changed on Font change unless it has been
6599         explicitly set.
6600         [Fixes bug #353827]
6601
6602 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
6603
6604         * MenuAPI.cs: On instance of MenuTracker check if source control is
6605         ToolStripOverflow and use properly method to find form.
6606         [Fixes bug #338511]
6607
6608 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
6609
6610         [Fixes bug #323241 Transparent toolbar support]
6611
6612         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
6613         is flat.
6614
6615         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
6616         defined in control style to mimic win32 behavior.
6617
6618         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
6619         it will be transparent.
6620
6621 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
6622
6623         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
6624         CreateParams for ToolBar controls.
6625
6626 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6627
6628         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
6629         FixedToolWindow, SizeableToolWindow, or None for border styles have
6630         different minimum sizes than regular forms.  Implemented to fix
6631         regression in PDN with toolbox being too wide.
6632
6633 2008-01-14  Andreia Gaita <avidigal@novell.com>
6634
6635         * HtmlElementCollection.cs: Implemented
6636
6637         * HtmlElement.cs: Implemented:
6638           - All
6639           - InnerHtml
6640           - InnerText
6641           - Id
6642           - Name
6643           - FirstChild
6644
6645         * HtmlDocument.cs: Implemented GetElementsByTagName.
6646
6647 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6648
6649         * Screen.cs: Stub BitsPerPixel to always return 32.
6650
6651 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6652
6653         * Form.cs: Implement RestoreBounds.
6654
6655 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6658         Sebastien and his fabulous magical problem-finding machine:
6659         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
6660         respect the value set.
6661
6662 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
6663
6664         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6665         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
6666
6667 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6668
6669         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6670         messages (to match .Net), we need to remove the capture ourselves.
6671
6672 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
6673
6674         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6675         will process the message and close our window.
6676         [Fixes bug #324328]
6677
6678 2008-01-10  Geoff Norton  <gnorton@novell.com>
6679
6680         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
6681         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
6682         window manager.
6683
6684 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6685
6686         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
6687         failing test.
6688
6689 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6690
6691         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
6692         Linux doesn't care, having a minimum matches MS and keeps the window
6693         from becoming too small to use window decorations.
6694         [Fixes bug #338996]
6695
6696 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6697
6698         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6699         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
6700         control.  [Fixes bug #325419]
6701
6702 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
6703
6704         * ComboBox.cs: Guard against an NRE if the user open a new form from a
6705         SelectedIndexChanged event.  This closes the combobox dropdown, and we
6706         were trying to dispose it.  [Fixes bug #352830]
6707
6708 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6709
6710         * Control.cs, Form.cs: Implement the necessary semantics for
6711         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
6712         to determine if a focus rectangle should be drawn.
6713         * PropertyGrid.cs: Fix property visibility to match override.
6714         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6715
6716 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
6717
6718         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6719         [Fixes bug #323552]
6720
6721 2008-01-09  Geoff Norton  <gnorton@novell.com>
6722         
6723         * XplatUICarbon.cs: Scroll windows in the correct direction.
6724
6725 2008-01-09  Geoff Norton  <gnorton@novell.com>
6726
6727         * XplatUICarbon.cs: Track all created utility windows so we can hide them
6728         when the app is deactivated or spaces is enabled.
6729
6730 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6731
6732         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
6733         extra separation pixel for the label rect origin if SmallImageList is
6734         null, and thus we don't need that separation between icon and label
6735         rects.
6736         Patch by Ernesto Carrea.
6737         Fixes # 340195.
6738
6739 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
6740
6741         * StatusStrip.cs: Invalidate after completing a layout.  The base
6742         OnLayout does this, but we don't call the base.
6743         * ToolStripItem.cs: Revert the previous change to invalidate after
6744         the item moves.
6745         [Fixes bug #351341 better.]
6746
6747 2008-01-07  Geoff Norton  <gnorton@novell.com>
6748
6749         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
6750         not a notification to exit the application.  Listen for WM_QUIT
6751         instead.
6752
6753 2008-01-07  Andreia Gaita <avidigal@novell.com>
6754
6755         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
6756
6757 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
6758
6759         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
6760         so it can repaint at the correct location.
6761         [Fixes bug #351341]
6762
6763 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6764
6765         * ListControl.cs: SelectedValue should return a null value if
6766         SelectedIndex is -1. Also, when setting it, it should throw an
6767         ArgumentNullException if the value is null, as well as taking
6768         into account the String.Empty value, instead of ignoring it (we have
6769         tests for that now).
6770         Fixes part of #324286.
6771
6772 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
6773
6774         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
6775         SelectionStart is updated after pressing enter.  Fixes bug #351918.
6776
6777 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6778
6779         * TextControl.cs: Revert a piece r92316 that prevented the fix
6780         from working when there were multiple tags in the text box.
6781         Fixes bug #351881.
6782
6783 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6784
6785         * TextControl.cs: Apply patch from Luke Page that prevents an
6786         NRE when determining the beginning of a paragraph.
6787         Fixes bug #351886.
6788
6789 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6790
6791         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
6792         caret gets moved with clicking away from a selected block of
6793         text.  Fixes bug #351885.
6794
6795 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6796
6797         * TextControl.cs: Apply patch from Luke Page that takes line
6798         alignment into account for mouse selection, so that center and
6799         right aligned text can be selected.
6800         Fixes bug #351881.
6801
6802 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6803
6804         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
6805         issues after loading an RTF file by using the correct line feeds.
6806         Fixes bug #351841.
6807
6808 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
6809
6810         * TextControl.cs: When deleting multiple line selections, we need
6811         to invalidate every line beginning at the first line of the selection.
6812         Patch from Luke Page fixes bug #351791.
6813
6814 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6815
6816         * ListControl.cs: When getting a CurrencyManager.PositionChanged
6817         event, don't set SelectedIndex if the number of items is 1. This is
6818         because, for the first item, PositionChanged is fired _before_
6819         ItemChanged (the place where we actually populate the items), and
6820         leave us in a temporary invalid state (since items collection is
6821         empty).
6822         Fixes #349655.
6823
6824 2008-01-04  Geoff Norton  <gnorton@novell.com>
6825
6826         * XplatUICarbon.cs:  Create native toolwindows instead of
6827         the managed drawing ones.
6828
6829 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6830
6831         * LineTag.cs: If the line doesn't have any characters, return
6832         0 for GetCharIndex.  Fixes an AOORE exception after certain
6833         caret movements.  Fixes bug #351683.  Patch by Luke Page.
6834
6835 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6836
6837         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
6838         is hit when there is selected text, only the selected text gets
6839         deleted, not the character in front of the selection as well.
6840         Fixes bug #351578.
6841
6842 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6843
6844         * ComboBox.cs: When the values are displayed, calculate the
6845         ComboListBox scrollbar's LargeChange based on the visible area's
6846         height and  the actuall ItemHeight, instead of calculating it
6847         based on MaxDropItems value, since it's not used by our _current_ 
6848         2.0 profile.
6849         Fixes #332366.
6850
6851 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6852
6853         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6854         Patch from Luke Page that fixes issues with font colors and styles
6855         not showing up in a readonly RichTextBox.  Fixes bug #324354.
6856
6857 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
6858
6859         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
6860         from Luke Page.  This one fixes bug #349926.
6861
6862 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6863
6864         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
6865         an item in the IBindingList source changes with
6866         ListChangedType.ItemAdded. Ignore for now firing the event for other
6867         changes, since we want to have tests for those cases as well.
6868
6869 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6870
6871         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
6872         created.
6873
6874 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6875
6876         * TextBoxTextRenderer.cs: Implement a cache for measuring each
6877         character.  This is effective because the typical usage of a
6878         TextBox is with a limited amount of fonts and characters, and
6879         the current implementation of TextBox measures everything one
6880         character at a time.  Another second or two speedup for bug #347238.
6881
6882 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6883
6884         * Control.cs: Rewrite the Font getter to only query the parent's
6885         Font property once instead of twice.  Since this operation is
6886         recursive, the queries were growing exponentially as the control
6887         tree got deeper.  Another second or two speedup for bug #347238.
6888
6889 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
6890
6891         * Control.cs: Avoid setting a parent (and more importantly, updating
6892         the zorder of all its children) if the parent is already correct in
6893         WmShowWindow.  Decreases the startup time of the test case on bug
6894         #347238 from 35 seconds to 11 seconds.
6895
6896 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6897
6898         * X11Dnd.cs: When the dnd operation has started and we are 
6899         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
6900         This is done to match .Net, which doesn't send those messages after
6901         dnd operation was completed/cancelled.
6902         Fixes #349922.
6903
6904 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
6905
6906         * ToolStrip.cs: Previous change should be != null, not == null.
6907         Thanks Gert!
6908
6909 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
6910
6911         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
6912         user may have moved the mouse off the current item during the event.
6913
6914 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6915
6916         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
6917         calling GetItemAt for every MouseMove event by also taking into
6918         account whether any mouse button is pressed (probably dragging); 
6919         if so, we can call GetItemAt, and if not, try to not call it 
6920         (GetItemAt can be quite expensive when used with a large number of items).
6921
6922 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6923
6924         * ListView.cs: Implement -finally- support for dnd, by calling
6925         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
6926         authors list ;-).
6927         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
6928         simple calculation of distances for all the items in the owner
6929         listview.
6930
6931 2007-12-21  Geoff Norton  <gnorton@novell.com>
6932
6933         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
6934         for windows that are originally created as invisible.  Fixes missing
6935         main window in paint-mono.
6936
6937 2007-12-21  Geoff Norton  <gnorton@novell.com>
6938
6939         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
6940         subclass handler for com.novell.mwfview subclassing HIView.  Implement
6941         Pasteboard and Dnd methods.
6942
6943 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6944
6945         * ListBox.cs: When we got focus, give focus to first item if there
6946         wasn't any pervious focused item. Also update navigation to depend on
6947         SelectedIndex rather than FocusedItem, just as .Net does.
6948         Fixes #349174.
6949
6950 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6951
6952         * ListBox.cs: Both FindString and FindStringExact methods must do an
6953         case insensitive search, should allow the last valid index to be
6954         passed in the overload taking an initial index, and should also
6955         continue searching from the top back to the specified index when it
6956         reaches the bottom.
6957
6958 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6961         redraw issue, and allows RichTextBox to draw colored text even while
6962         disabled or readonly.
6963
6964 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6965
6966         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6967         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6968         and doesn't grey text in a disabled RichTextBox.
6969
6970 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6971
6972         * RichTextBox.cs: Apply patch from Luke Page that adds better support
6973         for many RTF commands: quad alignment, separate formatting for blocks
6974         inside groups, and ParDef support.  Makes the test case from bug #324589
6975         look much better.
6976
6977 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6978
6979         * LineTag.cs: Fix an error in the new Draw method that caused
6980         a crash when rendering the document on bug #324589.
6981
6982 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
6983
6984         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6985         TextControl.cs: Apply patch from Luke Page that adds support
6986         for URL links in RichTextBox.
6987         [Fixes enhancement #342516]
6988
6989 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
6990
6991         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6992         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6993
6994 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6995
6996         * ListBox.cs: When a key gets pressed, try to find a string
6997         if the key is a character or a digit.
6998         Fixes #343971.
6999
7000 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7001
7002         * TableLayoutPanel.cs: Remove some unused variables.
7003
7004 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7005
7006         * DateTimePicker.cs: Commit patch from Luke Page that ensures
7007         we don't end up at an invalid date when we click the up/down
7008         spinner to change the month or year.  Fixes bug #348682.
7009
7010 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
7011
7012         * Application.cs: Calling Exit in 2.0 should chain to the
7013         Exit (CancelEventArgs) version so it can be cancelled.
7014         * Form.cs: Create a flag to allow raising the Closing
7015         events to be skipped.  We raise them once in Application.Exit
7016         and don't want to raise them again when the Form is actually
7017         closed.  [Fixes bug #349073]
7018
7019 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
7020
7021         * ToolStripDropDown.cs: Guard against an NRE when there
7022         hasn't been a mainform set in the application context.
7023         [Fixes bug #349108]
7024
7025 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7026
7027         * ListBox.cs: When SetBoundsCore gets called, besides
7028         calling UpdateScrollBars, update the value of
7029         last_visible_index, since we could need to show more items
7030         than before, and we need to let the paint routines know that.
7031         Fixes #344445.
7032
7033 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7034
7035         * ListView.cs: Add DesignerSerializationVisibility attribute to
7036         InsertionMark property.
7037         * ListViewItem.cs: Add same attribute to Position property.
7038
7039 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7040
7041         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
7042         is 2.0 only.
7043
7044 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
7045
7046         * ThemeWin32Classic.cs: Don't draw the background on a
7047         flat button if there is a background image.
7048         [Fixes bug #348649]
7049
7050 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7051
7052         * ListBox.cs: If we remove the item currently selected,
7053         remove it not only from SelectedItems, but also
7054         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
7055         the items count decreased and focused_item has bigger value than that.
7056
7057 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7058
7059         * Control.cs: Perform our layout after we resize ourselves
7060         if we had to adjust our AutoSize.  Missed commit for bug
7061         #346246.
7062
7063 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
7064
7065         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
7066         we can provide an implementation of AutoSize.
7067         [Fixes bug #346246]
7068
7069 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7070
7071         * ListBox.cs: Add the internal overload Sort (bool paint),
7072         to indicate whether we actually need a paint or we will
7073         call Refresh ourselves. This way we don't request a paint
7074         _before_ having an updated and valid layout.
7075         Fixes #347233.
7076
7077 2007-12-12  Andreia Gaita <avidigal@novell.com>
7078
7079         * XPlatUIX11.cs: Send paint messages when updating a systray icon
7080         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
7081         properly invalidated. 
7082         Fixes #324237
7083
7084 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7085
7086         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
7087         don't simply assign it to our internal group field, but instead 
7088         use our Group property, which should do all the neccessary work
7089         required to support groups. Fixes an issue reported to me (mail) by a 
7090         guy using this new feature.
7091
7092 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
7093
7094         * Control.cs: Use Scale instead of ScaleControl to ensure the
7095         whole hierarchy gets scaled.
7096         [Fixes bug #347282]
7097
7098 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7099
7100         * DateTimePicker.cs: Don't set the internal MonthCalendar's
7101         Parent property.  Doing this causes the control to be hosted by
7102         the Form instead of being a popup window.
7103         [Fixes bug #347665]
7104
7105 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7106
7107         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
7108         at an index higher than Count, just use Add instead of Insert.
7109         [Fixes bug #347669]
7110
7111 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
7112
7113         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
7114         DrawPictureBox, this is handled by Control.PaintBackground.
7115         [Fixes bug #347276]
7116
7117 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
7118
7119         * MenuAPI.cs: When process menu keys return true by default only if menu is
7120         active. Fixes bug #342892.
7121
7122 2007-12-09  Andreia Gaita <avidigal@novell.com>
7123
7124         * Control.cs: check if windows are actually mapped before
7125         trying to zorder. Fixes #342509, #346955
7126
7127 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7128
7129         * ListView.cs:
7130         * ListViewInsertionMark.cs:
7131         * ThemeWin32Classic.cs: Implement the drawing side of the
7132         new 2.0 ListView.InsertionMark property.
7133
7134 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
7135
7136         * CurrencyManager.cs: Silence some debug spew.
7137
7138 2007-12-07  Geoff Norton  <gnorton@novell.com>
7139         
7140         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
7141         masks for our children as well as siblings to avoid having to query
7142         Quartz for this information.
7143         * XplatUICarbon.cs: Implement a delegate based system to pass
7144         information to System.Drawing.  Implement Async methods.  Remove
7145         the hack for the resize thumb and imlpement a transparent Grow Box.
7146         Rework the messaging system to proplery create window's and messages,
7147         fixes TabControl.
7148
7149 2007-12-06  Andreia Gaita <avidigal@novell.com>
7150
7151         * X11Keyboard.cs: Use Xutf8LookupString to support international 
7152         characters under alternate codepages. Patch from #340878
7153
7154 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7155
7156         * ListView.cs: When doing layout computations, set position in the
7157         ListView instances (we cache the position just as .Net does).
7158         * ListViewItem.cs: New internal setter method for Position. Also set
7159         position field as also available in 1.1, since we are going to use it
7160         now in the common case.
7161
7162 2007-12-06  Andreia Gaita <avidigal@novell.com>
7163
7164         * Control.cs: When removing controls, get the actual container
7165         to notify about active control changes. Fixes 341314.
7166
7167 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7168
7169         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
7170
7171 2007-12-05  Andreia Gaita <avidigal@novell.com>
7172
7173         * Control.cs: When updating the zorder, ignore windows that are not
7174         mapped. Fixes #342509
7175
7176 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7177
7178         * ListViewItem.cs: Actually implement serialization on this class.
7179
7180 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
7181
7182         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
7183         LinkCollection. Spaces to tabs, and removed extra tabs.
7184
7185 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7186
7187         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
7188           tests to fail (hopefully).
7189
7190 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7191
7192         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
7193         the image margin so custom renderers can correctly place it.
7194
7195 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7196
7197         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
7198         so custom renderers can correctly place it.
7199
7200 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
7201
7202         * Application.cs: Let WM_CHAR messages flow through to controls
7203         hosted in Strips.  [Fixes bug #343972]
7204
7205 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * ToolStripManager.cs: Guard against an NRE I ran into.
7208
7209 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
7210
7211         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
7212         a Link is manually added to the Links collection, we need to set
7213         its owner, so it can invalidate properly.
7214         [Fixes bug #344012]
7215
7216 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7217
7218         * ListView.cs: When changing ListViewItem.Position (which calls
7219         ListView.ChangeItemLocation), invalidate not only the area
7220         corresponding to the main item, but also to the area occupied
7221         by the items being moved.
7222
7223 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7224
7225         * ListView.cs: When changing the position of a given item,
7226         don't use item bounds, but item areas (which includes the item spacing
7227         between them). Also, use first/last position if the requested
7228         position is outside bounds (as .Net does). Invalidate the previous and
7229         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
7230         in a specific position, instead of directly accessing Items collection
7231         (this is done to get the right item - remember an Item can have a
7232         different position in the grid than in the Items collection).
7233
7234 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7235
7236         * MessageBox.cs: Calculate text area instead of just top left, this rect 
7237         area will be used in DrawString. Fixes bug #343364.
7238
7239 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7240
7241         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
7242         screen width. Partially fixes bug #343364.
7243
7244 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
7245
7246         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
7247         code inside recalculate, it makes code more simple.
7248
7249 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
7250
7251         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
7252         between update or add icon. Fixes bug #324344.
7253
7254 2007-11-21  Andreia Gaita <avidigal@novell.com>
7255
7256         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
7257         window manager, since that stretches the drawing area to include
7258         the window decorations, and they get hidden. Reverts r84444 and fixes
7259         #335849 and #342790 (mdi and pdn3 regression)
7260
7261 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7262
7263         * ListView.cs: When setting focused item, try to give focus to the
7264         previous one _only_ if the previous one remains valid. 
7265         Fixes #342504.
7266
7267 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
7268
7269         * Application.cs: Revert r89650, as it broke a common case to fix
7270         an obscure case.  Fixes bug #342606.
7271
7272 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7273
7274         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
7275
7276 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
7277
7278         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
7279         alignment. [Fixes #324228]
7280
7281 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7282
7283         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
7284         [Fixes bug #342123]
7285
7286 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
7287
7288         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
7289         it prevent problems when empty captions. [Fixes #342141]
7290
7291 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
7292
7293         * Label.cs: Use Size instead of None.  Fixes bug #342077.
7294
7295 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7296
7297         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
7298
7299 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7300
7301         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
7302         but there isn't a MdiContainer.
7303         [Fixes bug #342358]
7304
7305 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
7306
7307         * TextControl.cs: Don't recalculate document if the recalc_start and
7308         recalc_end hasn't changed.
7309         [Fixes bug #342505]
7310
7311 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
7312
7313         * DataGridViewTextBoxCell.cs: Removed CWL.
7314
7315 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7316
7317         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
7318
7319 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7320
7321         * TextControl.cs: Missed some code for bug 341534 to trigger a
7322         recalculation when the font changes.
7323
7324 2007-11-16  Andreia Gaita <avidigal@novell.com>
7325
7326         * Control.cs: When updating the zorder, check if the child to update is
7327         the same control that is set to always be on top (i.e., scrollbars), and 
7328         just put it on top directly. Fixes BadMatch error on pdn3
7329
7330 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7331
7332         * ListView.cs: Throw the needed exceptions for FindNearestItem.
7333
7334 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
7335
7336         * Control.cs: Don't perform a new layout when a label changes its text,
7337         cause label handles its own autosizing.
7338         [Fixes bug #342077]
7339
7340 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7341
7342         * ListView.cs: Implement 2.0 FindNearestItem methods.
7343
7344 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7345
7346         * ToolStripPanel.cs: Make Join at least add the control to the panel,
7347         even if the rest of what Join does isn't supported.  Add some more
7348         support for vertical toolbars.
7349         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
7350         [Fixes the application breaking parts of bug #341998]
7351
7352 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
7353
7354         * ToolStripItem.cs: When determining if we have a check/image margin,
7355         we need to look at ShowCheckMargin as well as ShowImageMargin.
7356
7357 2007-11-15  Geoff Norton  <gnorton@novell.com>
7358
7359         * XplatUIOSX.cs: Rename to...
7360         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
7361         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
7362
7363 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
7364
7365         * KeysConverter.cs: The default values should be an array of Keys, not
7366         strings.  Also, the array has more values for 2.0.
7367         [Fixes bug #341851]
7368
7369 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7370
7371         * Application.cs: Change ExecutablePath to use 
7372         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
7373         [Fixes bug #323552]
7374
7375 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7376
7377         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
7378         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
7379         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
7380         be ignored.  Create a new GetLineEnding that can specify which types of
7381         line endings to look for.  On Insert, only create new lines for \n and \r\n.
7382         [Fixes bug #324274]
7383
7384 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
7385
7386         * TextBoxBase.cs: As we loop through each line changing the font, tell
7387         the document that the line needs to be recalculated.  Fixes bug #341534.
7388
7389 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
7390         [Another round of refactoring]
7391         * Line.cs: Add DeleteCharacters.
7392         * LineTag.cs: Add Delete.
7393         * TextBoxBase.cs: Update to use new methods.
7394         * TextControl.cs: Refactor the Delete* methods.
7395
7396 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
7397
7398         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
7399         the patch. [Fixes #324856]
7400
7401 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7402
7403         * ListView.cs:
7404         * ListViewItem.cs: Add an initial implementation of
7405         2.0 ListViewItem.Position getter.
7406
7407 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7408
7409         * ListView.cs: Add a reordered_items_indices array, to allow us
7410         to have a different sorting than that of Items (the sorting in Items
7411         could not match the actual sorting in screen). This is needed to
7412         implement a pair of 2.0 features.
7413         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
7414         actual position in the ListView grid, since it could have a position
7415         different than its Index (position in ListViewItemCollection). 
7416
7417 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7418
7419         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
7420         not draw partial lines.
7421         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
7422         LineLimit flag from the base is preserved.
7423         Fixes the windows part of bug #338965.
7424
7425 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
7426
7427         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
7428         so that it can be canceled in KeyPress.
7429         Fixes bug #340078.
7430
7431 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7432
7433         * ListView.cs: In ItemControl, reset mouse-handling related
7434         fields even if we dont' have items (we still should reset them when
7435         we had items but then called Items.Clear). Partially based in a patch
7436         by George Giolfan.
7437         Fixes #338399.
7438
7439 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
7440
7441         * Application.cs: In ProductVersion first try AssemblyFileVersion
7442         before falling back to assembly version. Fixes bug #339787.
7443
7444 2007-11-08  Andreia Gaita <avidigal@novell.com>
7445
7446         * HtmlElement.cs: Implement InnerText setter.
7447         * WebBrowserBase.cs: Implement Navigated event support.
7448         Add flag to track when the browser "document" is ready to be retrieved.
7449         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
7450         Make sure browser document is ready before retrieving it.
7451         Clean up cached objects (document) when moving to a new page through
7452         any of the navigation methods.
7453         Use the new Mono.WebBrowser.INavigation interface to control navigation.
7454         Implement OnNavigated event.
7455
7456 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
7457
7458         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
7459         DrawLinkLabel, this is handled by OnPaintBackground.
7460         Fixes bug #339565, part II.
7461
7462 2007-11-07  Andreia Gaita <avidigal@novell.com>
7463
7464         * Control.cs: Revert r88915. Selecting text on a textbox depends on
7465         getting a Select call on click, so this call needs to be here for now.
7466         Unfixes #325809
7467
7468 2007-11-07  Geoff Norton  <gnorton@novell.com>
7469
7470         * OSXStructs.cs: Add the kEventClassApplication constants.
7471         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
7472         application is deactivated otherwise Menu overlays linger on top of
7473         other application windows.
7474
7475 2007-11-07  Geoff Norton  <gnorton@novell.com>
7476
7477         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
7478         dont support cursors yet anyways.  This allows Reflector to run.
7479
7480 2007-11-07  Geoff Norton  <gnorton@novell.com>
7481
7482         * XplatUIOSX.cs: Implement DragSize.
7483
7484 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7485
7486         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
7487         ItemControl, request the focus, as .Net does. This is needed after 
7488         Control does not request focus anymore when it receives a
7489         WM_LBUTTONDOWN.
7490
7491 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
7492
7493         * Label.cs: Make DrawImage internal so it can be called from Theme code.
7494         Remove the DrawImage call from OnPaint.
7495         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
7496         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
7497         but before we draw the text for DrawLabel and DrawLinkLabel.
7498         Fixes bug #339565.
7499
7500 2007-11-05  Andreia Gaita <avidigal@novell.com>
7501
7502         * Control.cs: Remove select call on click. Fixes #325809
7503
7504 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7505
7506         * ListViewItem.cs: Add 2.0 Position property getter.
7507
7508 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7509
7510         * ListView.cs: Add 2.0 BackgroundImageTiled property.
7511         Also, to make it work properly, change item's BackColor and
7512         BackgroundImageLayout as needed.
7513         * ThemeWin32Classic.cs: Don't fill any background rectangle 
7514         in ListView.ItemControl when drawing items; just let the Control
7515         base implementation fill it.
7516
7517 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7518
7519         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
7520         as well as adding a custom 'dummy' Converter, as .net does.
7521
7522 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7523
7524         * PropertyGridView.cs: When clicking drop-down button,
7525         select an index in the listbox only if our standard values collection 
7526         has one or more items.
7527
7528 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7529
7530         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
7531         property.
7532
7533 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7534
7535         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
7536         the value is not changed. This ensure a pushed button remains in that
7537         state when clicked again. When switching the value of PropertySort
7538         between Categorized and CategorizedAlphabetical, do not update the
7539         grid items and do not fire a PropertyChangedEvent. When clicking the
7540         sorting buttons, do not modify the PropertySort value when switching
7541         between Categorized and CategorizedAlphabetical but only update the
7542         button state.
7543
7544 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
7545
7546         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
7547         formatting.
7548         * PropertyGrid.cs: Also put Categorized button in pushed state when
7549         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
7550         for help description label.
7551
7552 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7553
7554         * ListView.cs: When calculating the biggest item for a given column,
7555         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
7556         the item's width.
7557
7558 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
7559
7560         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
7561         value for PropertySort on 1.0 profile. PropertySortChanged event
7562         should only be fired on 2.0 profile. Fixed NullReferenceException
7563         in UpdateSortLayout when PropertyGrid contains no items.
7564
7565 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
7566
7567         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
7568         [Fixes bug #338554]
7569
7570 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7571
7572         * ListViewItem.cs: Implement 2.0 IndentCount property.
7573
7574 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7575
7576         * X11Dnd.cs: When sending status in a dnd operation, compare current
7577         effect with the 'allowed' field instead of 'drag_data.Allowed', since
7578         the later is only created when a Winforms application is both the
7579         source and the target, but not when we are the target only.
7580         Fixes part of #324251.
7581
7582 2007-11-01  Geoff Norton  <gnorton@novell.com>
7583
7584         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
7585         order of Z-Order.
7586         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
7587         children out of the drawing view on mac.
7588         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
7589         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
7590         
7591 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
7592
7593         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
7594         on the non-hosted-control part of it shouldn't do anything.
7595         Fixes part of bug #327498.
7596
7597 2007-11-01  Andreia Gaita <avidigal@novell.com>
7598
7599         * WebBrowserBase.cs: revert previous change, resize can be called anytime
7600
7601 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
7602
7603         * Application.cs: When a toolstrip has the keyboard input loop, let messages
7604         it does not use flow through to controls that are hosted in menus.
7605         Same with mouse clicks.
7606         * Form.cs: Don't close all menus on click if the click is on a
7607         control hosted in a menu.
7608         Fixes part of bug #327498, and part of bug #325969.
7609
7610 2007-10-31  Andreia Gaita <avidigal@novell.com>
7611
7612         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
7613
7614 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
7615
7616         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
7617         Addresses an issue raised in bug #336218.
7618
7619 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
7620
7621         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
7622         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
7623
7624 2007-10-30  Andreia Gaita <avidigal@novell.com>
7625
7626         * ContainerControl.cs: Check if the active control is a
7627         child of a removed control and update active_control accordingly.
7628         Fixes #329718
7629
7630 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7631
7632         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
7633         or the MaxDate.  Fixed bug #337693.
7634
7635 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7636
7637         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
7638         after calling SetWindowLong for a form, to force an immediate NC refresh.
7639         Fixes first part of bug #325150.
7640
7641 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7642
7643         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
7644         simple.  Fixes the last part of bug #322668.
7645
7646 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
7647
7648         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7649         needs to be TopMost as well, or else the MessageBox is under the form.
7650         Patch by George fixes bug #325300.
7651
7652 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7653
7654         * X11Dnd.cs: When starting a new drag operation, reset the static
7655         'dropped' field to false (previously the implementation didn't reset
7656         it and got confused after the first drag).
7657         Fixes #325071.
7658
7659 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7660
7661         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7662         items instead of re-creating them all. For this purpose we now cache
7663         both CategoryGridEntry items and the GridEntries for the main object's
7664         properties.
7665         * GridItem.cs: Make SetParent method abstract.
7666         * GridEntry.cs: Override the SetParent method (already there, but now
7667         we override it).
7668         Fixes #324866.
7669
7670 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7671
7672         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7673         depending on its depth (as .Net does). Update the needed values in
7674         MouseDown handler. Also draw the plus/minus rect after the label,
7675         so we don't draw on top of it.
7676
7677 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
7678
7679         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7680         processed by forms or controls when menu is active. [Fixes #333548]
7681
7682 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7683
7684         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7685         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
7686         focus on mouse over.
7687
7688 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7689
7690         * TextControl.cs: Code cleaning, simplifying.
7691
7692 2007-10-24  Geoff Norton  <gnorton@novell.com>
7693
7694         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7695         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7696
7697 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
7698
7699         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7700         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
7701
7702 2007-10-24  Andreia Gaita <avidigal@novell.com>
7703
7704         * SendKeys.cs: apply jpobst's patch to bug #332409
7705
7706 2007-10-23  Andreia Gaita <avidigal@novell.com>
7707
7708         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
7709         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7710         for some reason
7711
7712 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7713
7714         * PropertyGridView.cs: If a property has an UIEditor available,
7715         make the drop-down/editor button available only if the property
7716         is _not_ read only.
7717
7718 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7719
7720         * PropertyGridView.cs: Don't make the grid item textbox 
7721         editable when a drop-down control is available, but 
7722         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7723         true. The same bur the color of the grid item value's label.
7724
7725 2007-10-22  Geoff Norton  <gnorton@novell.com>
7726
7727         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7728         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7729         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
7730         driver.  Padd the bottom of all real windows so the resize thumb doesn't
7731         obscure scroll/status bars.
7732
7733 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * WindowsFormsSection.cs: Implement.
7736
7737 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
7738
7739         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
7740         closed see #325434 patch.
7741
7742 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
7743
7744         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
7745         see #325434 patch.
7746
7747 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7748
7749         * PropertyGridView.cs: When showing the textbox for a grid item,
7750         have two local variables to store the read-only and non-editable
7751         status of a grid item (we were previously using just one variable
7752         to do this, when actually they are slightly different).
7753         Fixes part of #325023.
7754
7755 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7756
7757         * PropertyGridView.cs: When showing a drop-down list, try to get the
7758         values using TypeConverter.ConvertTo (to convert to a string). Fixes
7759         part of #325023.
7760
7761 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7762
7763         * PropertyGrid.cs: When updating a property and populating sub grid
7764         items, remove the previous ones, and invalidate the specific area.
7765         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
7766         area behind a grid item.
7767         * GridItemCollection.cs: Add an internal Clear method, to allow us to
7768         clean the items if needed (specially for controls implementing 
7769         ICustomTypeDescriptor and returning a variable number of properties).
7770         Fixes #324865.
7771
7772 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * TextControl.cs: Clean up and document the Insert function.
7775
7776 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * TextControl.cs: Make sure we know our start point for updating the view
7779         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
7780         update the view.
7781
7782 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7783
7784         * ListView: Couple of corcompare fixes.
7785
7786 2007-10-17  Geoff Norton  <gnorton@novell.com>
7787
7788         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
7789         the title caption of real window.
7790
7791 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7792
7793         * ErrorProvider.cs: Add the error provider's internal window to a 
7794         containercontrol when the parent changes.  [Fixes bug #329714]
7795
7796 2007-10-17  Geoff Norton  <gnorton@novell.com>
7797
7798         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
7799         When we make a new window; restore the old active window - fixes dialogs.
7800
7801 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7802
7803         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
7804         when modifying a property, and if found then invalidate as
7805         requested.
7806         Fixes part of #324865.
7807
7808 2007-10-17  Geoff Norton  <gnorton@novell.com>
7809
7810         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
7811         highly experimental.  Fixed coordinate translation.  Fixed window locations.
7812         Initial support for clipping. Implemented NC areas and menus.  Support for
7813         launching from command line from Will Johansson (wjohansson@atacomm.com).
7814         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
7815         wjohansson@atacomm.com)
7816         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
7817         Hwnds now track the existence of all of their children for Mac clipping.
7818     * XplatUI.cs: Re-enabled the native driver on the Mac.
7819
7820 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
7821
7822         * Line.cs: Move the InsertString function to here.
7823         * TextControl.cs: Cleanup some duplicate code, move some InsertString
7824         functionality to Line.
7825
7826 2007-10-17  Geoff Norton  <gnorton@novell.com>
7827
7828         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
7829
7830 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
7831
7832         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
7833         always setting value to true.
7834         * Form.cs: When changing AcceptButton, notify new and original button.
7835
7836 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
7837
7838         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
7839         a custom control that implements IButtonControl instead of an actual
7840         button.  [Fixes bug #334244]
7841
7842 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
7843
7844         * Form.cs: Change SelectActiveControl to internal, we need to call it in
7845         MdiWindowManager.
7846         
7847         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
7848         active control when activate a new mdi window.
7849         
7850         [Fixes bug #330495]
7851
7852 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
7853
7854         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
7855         is already added.
7856         [Fixes bug #333617]
7857
7858 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7859
7860         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
7861         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
7862         so we always recalculate the whole document instead of just the new part.
7863         [Fixes bug #325082]
7864
7865 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7866
7867         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
7868         when the mouse was to the left of the first character in the line.
7869
7870 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
7871
7872         * TextBox.cs, TextBoxBase.cs: When setting the document's password
7873         character, use the property instead of the variable so that the
7874         UseSystemPasswordChar property is taken into account.
7875         [Fixes bug #333748]
7876
7877 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7878
7879         * FolderBrowserDialog.cs: When a node is right clicked and the "New
7880         folder" contex menu appears, actually add the new folder to it, even
7881         if the node is not currently selected. Still use SelectedNode in case 
7882         there wasn't found a node under the pointer.
7883         Fixes #325452.
7884
7885 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7886
7887         * ListViewItem.cs: When retrieving the focused state, the index check
7888         should be done only when ListView is in virtualmode, as it is an
7889         expensive check for normal mode.
7890
7891 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7892
7893         * ListViewItem.cs: Make the focus state information be stored
7894         in the ListView, not in the items. This is done to match the MS
7895         behaviour for items that are not yet part of a ListView control;
7896         besides that, since just one item can be focused at the same time,
7897         we save a little space in our items.
7898         Fixes part of #331643.
7899
7900 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7901
7902         * ComboBox.cs: When focus is lost, deselect the text. When setting
7903         text of control, select all text. Do not hide selection when control
7904         does not have focus. Fixes bug #333663.
7905
7906 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7907
7908         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
7909         instead of ArgumentException when SelectionLength is set to negative
7910         value. Added same check to SelectionStart. Code formatting.
7911
7912 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7913
7914         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
7915         or SelectionStart. Code formatting.
7916
7917 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7918
7919         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
7920         indicating that there was not a previous drag-and-drop operation going
7921         on.
7922         Fixes part of #325071.
7923
7924 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7925
7926         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
7927         AllowedEffect, don't let the drop operation happen. 
7928         Fixes #32580.
7929
7930 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7931
7932         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
7933
7934 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7935
7936         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7937         is called.
7938
7939 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
7940
7941         * Line.cs: Add a method that finds the tag that contains an x-coord.
7942         * LineTag.cs: Add a method that finds the character at an x-coord using
7943         a binary search, the old way was a linear search.
7944         * TextControl.cs: Change FindCursor to use the above new methods.
7945
7946 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7947
7948         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7949         value different than AllowedEffect). This should be possible to
7950         indicate that dragging is not possible in some control/area.
7951
7952 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
7953
7954         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
7955         descent internally when font changes instead of outside code being responsible
7956         for setting it.
7957         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7958         instead of accessing internal variables.
7959
7960 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
7961
7962         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7963         remove special treatment for ArrangeIcons since it is already arranged.
7964
7965 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7966
7967         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7968         the Win32 backend uses Color.
7969         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7970         Refactor to store a Color instead of a Brush for Color.
7971
7972 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7973
7974         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7975         away.  I didn't realize I needed this when I refactored these earlier.
7976
7977 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7978
7979         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7980         store a Color structure and use the ResPool for back color instead of
7981         holding onto brushes.
7982
7983 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
7984
7985         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7986         [Fixes bug #325592]
7987
7988 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7989
7990         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7991         to recalculate its size.  Fixes a part of bug #331052.
7992
7993 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7994
7995         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7996         button.  Fixes a part of bug #331052.
7997
7998 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
7999
8000         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
8001         the CreateParams.
8002         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
8003         decorations.
8004         [Fixes bug #330986]
8005
8006 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8007
8008         * TextBoxTextRenderer.cs: Don't make this a static class, as static
8009         doesn't exist in 1.1.  (Thanks jb!)
8010
8011 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
8012
8013         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
8014         class to allow us to use different backends on different platforms.
8015         Linux uses the current [Draw|Measure]String backend.  Windows uses
8016         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
8017         of GDI+.  This leads to better looking text and more accurate measurements
8018         on Windows, fixing many of the reported issues.
8019         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
8020
8021 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8022
8023         * FolderBrowserDialog.cs: When running on Windows,
8024         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
8025         since we must match both "C:" and "C:\" forms. A little hackish, but
8026         works.
8027         Fixes #325247.
8028
8029 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8030
8031         * ListView.cs: When calling EndEdit (after editing an item),
8032         create a new instance of LabelEditEventArgs to keep clean the fields
8033         in case we get a new call to BeginEdit; also do Application.DoEvents
8034         to have focus in synch. This is a fix similar to TreeView's #325244.
8035
8036 2007-10-07  Andreia Gaita <avidigal@novell.com>
8037
8038         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
8039         * WebBrowserBase.cs: Added dialog support, calling the
8040           WebBrowserDialogs classes for each specific dialog type.
8041
8042 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8043
8044         * ListView.cs: When the last item is focused and is removed,
8045         move the focus to the previous item (in Items order). This is what MS
8046         does.
8047         Fixes #330415.
8048
8049 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8050
8051         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
8052         instead of the opposite (RemoveAt call Remove). This is a better
8053         approach since we don't need to to a pair of traversals when using
8054         RemoveAt.
8055
8056 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8057
8058         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
8059         check that the node actually has nodes, and if not, move to the
8060         parent node instead. 
8061         Fixes #325265.
8062
8063 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8064
8065         * TreeView.cs: Move the previous change to the general case (to
8066         call Application.DoEvents in cases where the method was called by
8067         different places).
8068
8069 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8070
8071         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
8072         call Application.DoEvents. This is neccessary when we get a call to
8073         BeginEdit from an AfterLabelEdit handler, because the focus always
8074         goes to the TreeView, even if we try to give it to our
8075         LabelEditTextBox. The call do Application.DoEvents seems to
8076         synchronize the focus, basically.
8077         Fixes #325244.
8078
8079 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8080
8081         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
8082         should be false. This also removes some nasty recursive paths. Fixes
8083         part of #325244.
8084
8085 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
8086
8087         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
8088         state to normal. Also resize window when cascading. Fixes #325433. 
8089
8090 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8091
8092         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
8093         DefaultForeColor, as drawing empty colored lines isn't very useful.
8094         [Fixes the not drawn lines part of bug #324358]
8095
8096 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
8097
8098         * TextControl.cs: Move Line and LineTag classes into separate files to
8099         make things easier to find.
8100         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
8101         * RichTextBox.cs: Capitalize LineTag.Length property access.
8102         - This is purely an organizational/formatting change, no logic changed. -
8103
8104 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8105
8106         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
8107         text is empty.
8108
8109 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8110
8111         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
8112         text is empty.
8113
8114 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8115
8116         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
8117         prevent calling of OnBackColorChanged. Fixes #325321.
8118
8119 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
8120
8121         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
8122         because control can be disabled because owner is disabled.
8123
8124 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8125
8126         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
8127         string.Empty, test failed from previous change.
8128
8129 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
8130
8131         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
8132         is null, not String.Empty.  See bug #323038.
8133
8134 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
8135
8136         * TextControl.cs: Change the margins to match MS a little better.
8137         Still not perfect for X11 due to some DrawString differences, but
8138         is still an improvement over the old stuff.
8139         Partially fixes #324467.
8140
8141 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8142
8143         * FolderBrowserDialog.cs: When using MyComputer as 
8144         RootFolder, let absolute paths be considered as valid ones. Also, use
8145         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
8146         for Windows compatibility.
8147         Partially fixes #325247.
8148
8149 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8150
8151         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
8152         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
8153         method, since it causes the dialog to not select folders directly
8154         under the root path (when setting SelectedPath property).
8155
8156 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8157
8158         * TreeNode.cs: When calling Expand/Collapse and need to call 
8159         ExpandBelow/CollapseBelow respectively, take into account
8160         partially visible nodes (previously Expanding/Collapsing
8161         a partially visible node in the bottom was not updating its +- sign).
8162
8163 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8164
8165         * TreeView.cs: When calling Expand on a TreeNode, and we need to
8166         expand nodes below (ExpandBelow), scroll the entire Viewport
8167         area if the node is above it and not visible (instead of scrolling
8168         the area from node's Bottom, which applies only when the node is
8169         visible).
8170         Fixes #325266.
8171
8172 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8173
8174         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
8175         node in the bottom area (as .Net does). This is done to preserve the
8176         scroll position when ExpandAll is called before handle is created for
8177         the 1.1 profile (bottom area, as opposed to top area in 2.0).
8178         Fixes #324103.
8179
8180 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8181
8182         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
8183         bottom area if we are in fact not using the vertical scroll bar.
8184         Fixes #324824.
8185
8186 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8187
8188         * Control.cs: Comment out a double buffering optimization that doesn't
8189         take into account invalidates created in OnPaint, causing the control
8190         to never be redrawn.  It would take quite a bit of work to work around
8191         this, but I left it commented with an explanation for later possible
8192         optimization.
8193         [Fixes bug #328681]
8194
8195 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
8196
8197         * Control.cs: Ask parent to perform a layout if control is AutoSize and
8198         the text changes.
8199         * RadioButton.cs: Implement GetPreferredSizeCore.
8200         [Fixes bug #328672]
8201
8202 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8203
8204         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
8205         corcompare stuffs.
8206
8207 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
8208
8209         * Application.cs: Move the sync context stuff to Run instead of RunLoop
8210         so that it doesn't get uninstalled on modal forms.
8211         * Control.cs: Install a sync context when a control is created.
8212         * WindowsFormsSyncronizationContext.cs: Create a private static control
8213         to invoke on.  This is easier than trying to find a created control we
8214         can use.
8215         [Fixes bug #327608]
8216
8217 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
8218
8219         * Application.cs: Install a WindowsFormsSynchronizationContext in the
8220         run loop, and uninstall it when done.
8221         * WindowsFormsSynchronizationContext.cs: Implement.
8222         [Fixes the common case in bug #327608]
8223
8224 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
8225
8226         * DataGridViewCellCollection.cs: Added argument checks for indexers.
8227         Use case-insensitive lookup of column name in indexer. Code
8228         formatting.
8229
8230 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8231
8232         * TreeNode.cs: When collapsing or expanding a node, check whether its
8233         change will affect the visible area (we were previously doing a
8234         IsVisible check, but that check is not enough since children nodes
8235         could be still visible). Fixes part of #325266.
8236
8237 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8238
8239         * TreeView.cs: Always select the first node when the TreeView gets
8240         focus if there is no currently selected node.
8241         [Fixes bug #324279]
8242
8243 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
8244
8245         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
8246         node being selected is null.
8247         [Patch from Yves Bastide fixes bug #326858]
8248
8249 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8250
8251         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
8252         whether all the parent nodes are expanded.
8253         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
8254         call RecalculateVisibleOrder if all previous nodes are expanded.
8255         Before that we were doing a IsVisible check, but sometimes the node
8256         is not in the visible area, but _should_already be ready, because of
8257         all previous nodes are expanded. Fixes #325259.
8258
8259 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8260
8261         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
8262         portion of the item is clicked.
8263
8264 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8265
8266         * TextControl.cs: Do not tell the system to move the cursor if the
8267         textbox isn't focused.  Fixes part of bug #322668.
8268
8269 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8270
8271         * ComboBox.cs: When there are no items, do not show the dropdown if
8272         the down arrow is clicked.  Fixes part of bug #322668.
8273
8274 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
8275
8276         * ToolStripComboBox.cs: Manually set the size of this control in the
8277         constructor, as it doesn't seem to be the same as DefaultSize.
8278         Fixes a failing monobuild test.
8279
8280 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8281
8282         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
8283         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
8284
8285 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
8286
8287         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
8288         Desktop.  This lets it work for people who have moved their desktops
8289         from the default location on windows.  For people who have not, both
8290         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
8291
8292 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8293
8294         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
8295         but when the base constructor sets this, the control is null.  Set it
8296         again in the constructor.  Fixes a failing monobuild test.
8297
8298 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
8301         get called.
8302         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
8303         called.
8304
8305 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8306
8307         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
8308         will handle it themselves.
8309         * ToolStripItem.cs: When deciding what the text of a tooltip should
8310         be, use the Text property instead of the text field.
8311         * ToolStripTextBox.cs: Handle tooltips.
8312         [Fixes bugs #325417 and #325973]
8313
8314 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8315
8316         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
8317         left click.  Fixes the easy part of bug #325969.
8318
8319 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
8320
8321         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
8322         bug #325406, but set a minimum for StatusStrip to 22 to keep
8323         bug #325390 fixed.  I think this minimum would have been figured
8324         up automatically if the grip was actually a ToolStripItem, but it
8325         currently is not.
8326
8327 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8328
8329         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
8330         as this is apparently the actual value used by .Net. Also apply
8331         ItemPadding in Details view only, and decrease the general width padding,
8332         to have only the needed. This should fix #324340 in Windows too.
8333
8334 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8335
8336         * ListViewItem.cs: Don't Invalidate item if parent is inside
8337         a BeginUpdate/EndUpdate block. This prevents to have differences
8338         between the ListView and items state, as well as avoid some exceptions
8339         there.
8340         * ListView.cs: Make 'updating' field internal.
8341
8342 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8343
8344         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
8345         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
8346         size if appropriate.
8347         Fixes reopened bug #325414.
8348
8349 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8350
8351         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
8352         * ToolStripItem.cs: Invalidate before and after our new autosize when
8353         text changes.
8354         Fixes reopened bug #325390.
8355
8356 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8357
8358         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
8359         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
8360         #325044.
8361
8362 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
8363
8364         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
8365
8366 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8367
8368         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
8369         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
8370         #82734.
8371
8372 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8373
8374         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
8375         item to select when the ToolStrip is selected.
8376         * ToolStripControlHost: Realign the control when the bounds or visibility
8377         change.
8378         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
8379         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
8380         preferred height.
8381         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
8382         base.OnPaint.  Was causing text not to be drawn.
8383
8384 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
8385
8386         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
8387
8388 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8389
8390         * TreeView.cs: When creating the label edit text box,
8391         set is initially to Visible = false. This is done to
8392         prevent a confusion in the layout which makes it to lose
8393         focus when shown the first time. Fixes part of #82592.
8394
8395 2007-09-13 Andreia Gaita <avidigal@novell.com>
8396
8397         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
8398
8399 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8400
8401         * ToolStrip.cs: Take Margin into account when calculating preferred
8402         size.  Also, allow preferred size to get smaller than the explicit
8403         size.
8404         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
8405         First step towards fixing bug #82747.
8406
8407 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8408
8409         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
8410         full row select background over the plus/minus glyph.  Also, turn
8411         off the focus rectangle for full row select since MS doesn't seem
8412         to ever paint it.  [Fixes bug #81839]
8413
8414 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8415
8416         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
8417         This was causing keyboard opened dropdowns to lose focus.
8418         [Fixes bug #82803]
8419
8420 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8421
8422         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
8423         ClientRectangle instead.  [Fixes bug #82838]
8424
8425 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
8426
8427         * SplitContainer.cs: We can't reset Visible on every layout because
8428         someone may have set Visible = false explicitly on a SplitterPanel.
8429         Make sure when we switch orientation the SplitterDistance does not
8430         change.  Fixes two failing tests.
8431
8432 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8433
8434         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
8435         TextRenderer, since the latter is only available in 2.0.
8436
8437 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
8438
8439         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
8440         * SplitContainer.cs: Implement FixedPanel layouting.
8441
8442 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8443
8444         * WebBrowserBase.cs: setup shutdown routine
8445
8446 2007-09-12  Andreia Gaita  <avidigal@novell.com>
8447
8448         * Application.cs: Let keyboard events that are targetted 
8449                 to non-mwf windows hosted inside mwf (as in, webbrowser),
8450                 propagate properly. Fixes keyboard handling on the webbrowser.
8451
8452 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8453
8454         * ListView.cs: When handling MouseUp event and we are 
8455         highligting a node with the mouse right button, don't trigger
8456         Before/AfterSelecting event, since we are not actually selecting
8457         the node.
8458
8459 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8460
8461         * TreeView.cs: When editing a node, modify the edit text box
8462         depending on the text length (as you are typing), like MS does.
8463
8464 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8465
8466         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
8467         Override GetPreferredSizeCore to perform calculations.  Remove custom
8468         autosize logic.  [Fixes bug #82739]
8469
8470 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
8471
8472         * TextBoxBase.cs: Modified should default to false.
8473
8474 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8475
8476         * Control.cs: Update the anchoring distances even when layout is supspended.
8477         Patch provided by George fixes bug #82805.
8478
8479 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8480
8481         * Control.cs: Provide a setter for ExplicitHeight.
8482         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
8483         remove the hacks in here for requested_height.
8484         [Fixes bug #82749]
8485
8486 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8487
8488         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
8489         Maximum to lower that its current Value caused an ArgumentException by setting
8490         the Value to the new Maximum.
8491
8492 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8493
8494         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
8495         handle moves to the closest tick when it is being dragged.
8496         [Fixes bug #82751]
8497
8498 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
8499
8500         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
8501         can't let them count as real items when calculating where to merge in the
8502         user's items.  [Fixed bug #82786]
8503
8504 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8505
8506         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
8507         who want to add a menu item directly onto a toolstrip.
8508         [Fixes bug #82775, part II]
8509
8510 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8511
8512         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
8513         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
8514         don't set it to available.
8515         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
8516         [Fixes bug #82727, part II]
8517
8518 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8519
8520         * StatusStrip.cs: Change item placement to None if not visible.
8521         * ToolStripItem.cs: Invalidate when InternalVisible changes.
8522         These should have been committed to fix 82723, but I missed them.
8523
8524 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
8525
8526         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
8527         Click, and that it is only called once.
8528         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
8529         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
8530         dropped down.
8531         [Fixes bug #82775]
8532
8533 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8534
8535         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
8536         to match .Net.
8537         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
8538         instead of 8, just like above. Partially fixes #82734.
8539
8540 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8541
8542         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
8543         fixes #82734.
8544
8545         * ListView.cs: Remove extra space between rows in Details view (match
8546         .Net). 
8547         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
8548         the DefaultFont.
8549
8550 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
8551
8552         * Application.cs: Modified ProductVersion to return value of
8553         AssemblyInformationVersion if available, and fallback to assembly
8554         version. Fixes bug #82746. Code formatting.
8555         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
8556         instead.
8557
8558 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8559
8560         * Control.cs: When updating ZOrder for a child control,
8561         take into account the implicit ones (we need it in our controls
8562         using them). Fixes #82642.
8563
8564 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
8565
8566         * ToolStripItem.cs: Add support for animated images.
8567         [Fixes bug #82726]
8568
8569 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
8570
8571         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
8572         visible.  [Fixes bug #82727]
8573
8574 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8575
8576         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
8577         so we repaint using the new size.  [Fixes bug #82723]
8578
8579 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8580
8581         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
8582         option.  [Fixes bug #81779]
8583
8584 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8585
8586         * TreeView.cs: Override HandleClick because the StandardClick style is
8587         set to false.  According to MSDN (and testing), the click events should
8588         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
8589
8590 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8591
8592         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
8593         the border will disappear.  Fixes reopened #82653.
8594
8595 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8596
8597         * Control.cs: If the control is autosize, and its preferred size changes
8598         when it lays out its children, tell its parent so it can be re-layed out.
8599         Fixing some of the fallout from r85433.
8600
8601 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
8604         and CheckBox share some code.
8605
8606 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8607
8608         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
8609         the TrackBar, not every mouse move.  [Fixed bug #82718]
8610
8611 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8612
8613         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
8614         under 2.0 rendering.  [Fixes bug #82657]
8615
8616 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8617
8618         * TreeView.cs: If we found a TreeNode to display a context menu, but
8619         it doesn't have one to show, let the TreeView display its menu
8620         instead.  [Fixes bug #82680]
8621
8622 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
8623
8624         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
8625         OnPaintInternal instead.  Give the internal TextBox a Border property
8626         so it can draw itself more correctly.  [Fixes bug #82653]
8627
8628 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
8629
8630         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
8631
8632 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8633
8634         * ComboBox.cs: Adjust combobox button state to reflect current state when
8635         back to enabled = true. Fixes first issue of #82654.
8636
8637 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8638
8639         * Control.cs: Fix last patch regression, prevent forms to update zorder when
8640         setting visible property.
8641
8642 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
8643
8644         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
8645         fix zorder for controls initially created as non visible. Fixes #82667.
8646
8647 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
8648
8649         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8650         mimic win32 look. Fixes #82656.
8651
8652 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
8653
8654         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
8655         Stubs for new net 3.5 classes.
8656
8657 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8658
8659         * ListViewItem.cs: In ListViewItemCollection operations calculate
8660         Layout for owner as well as invalidate it. Fixes part of #82642.
8661
8662 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
8663
8664         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8665         when returning Enabled.  [Fixes bug #82651]
8666
8667 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
8668
8669         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8670
8671 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8672
8673         * ListView.cs: Put item padding info in a single place
8674         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8675         columns again.
8676         * ThemeWin32Classic.cs:
8677         * Theme.cs: Likewise.
8678
8679 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8680
8681         * ListView.cs: When a ListViewSubItem instance is invalidated,
8682         invoke Invalidate on parent ListViewItem, not parent ListView.
8683         Fixes #81570.
8684
8685 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8686
8687         * ListView.cs, ListViewItem.cs: corcompare stuffs.
8688
8689 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8690
8691         * BindingMemberInfo.cs: Implement == and != operators.
8692
8693 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
8694
8695         * HtmlElementEventArgs.cs: Implement properties.
8696
8697 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8698
8699         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8700
8701 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8702
8703         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8704         Add (string,string,string) to implement the imagekey.  It turns out, we
8705         use the requested imagekey whereas .Net does not.  So I broke ours to match
8706         theirs.  :(
8707
8708 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8709
8710         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8711
8712 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
8713
8714         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8715
8716 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
8717
8718         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8719         up-to-date. Fixes bug #82618.
8720
8721 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
8722
8723         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8724         reflect document changes. Fixes #82367.
8725
8726 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8727
8728         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8729         as well as add new ones. This should make work the BackgroundImage
8730         property for ListView again.
8731
8732 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8733
8734         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
8735         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
8736         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
8737
8738 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8739
8740         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
8741         IsKeyLocked.
8742
8743 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8744
8745         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
8746         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
8747
8748 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
8749
8750         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
8751         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
8752
8753 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
8754
8755         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
8756
8757 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
8758
8759         * GridEntry.cs: Implement GetService.
8760
8761 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
8762
8763         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
8764         for label editting, make sure we focus back on the TreeView.
8765         [Fixes bug #82590]
8766
8767 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8768
8769         * ListView.cs: Add some 2.0 overrides.
8770
8771 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8772
8773         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
8774         because getter dont returns right value before handle creation. Thanks 
8775         to George. Fixes #82569.  
8776
8777 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8778
8779         * Theme.cs: Revert last patch, it causes error under win32. 
8780
8781 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
8782
8783         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
8784         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
8785         logical Desktop rather than the physical file system location. Fixes #82603. 
8786
8787 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
8788
8789         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
8790         for the patch. Fixes #82568.
8791
8792 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8793
8794         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
8795         methods.
8796
8797 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8798
8799         * ListViewInsertionMark.cs: New stubbed class.
8800
8801 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8802
8803         * FolderBrowserDialog.cs: When adding folder, immediately create the
8804         directory with temporary name and rename the directory when editing
8805         finishes. This matches MS. Ensure the node for the new folder is 
8806         selected and LabelEdit is disabled, when editing is either finished
8807         or cancelled.
8808
8809 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8810
8811         * TreeView.cs: When editing label of node, ensure node is visible.
8812
8813 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
8814
8815         * PropertyGridView.cs: Set the value only if it has changed.
8816
8817 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8818
8819         * ListView.cs: Some more code refactoring to add support sorting
8820         with groups (now for Details view). Remove unused code also.
8821
8822 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8823
8824         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
8825         Not a big fan of reacting immediately to a field in an EventArg, but that's
8826         the way it's done.  (This is part of the previous commit that got left out.)
8827
8828 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
8829
8830         * FolderBrowserDialog.cs: Removed need for separate description field.
8831         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
8832         has focus when dialog box is displayed again, regardless of what
8833         button was pressed the previous time. Set RootFolder and SelectedPath
8834         each time dialog box is displayed. This ensures the treeview is
8835         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
8836         when it does not have focus. Added support for more special folders.
8837
8838 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8839
8840         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
8841         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
8842         it resets the edit_args.
8843         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
8844         [Fixes bug #82577]
8845
8846 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
8847
8848         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
8849         button to match MS. Provide more meaningful exception message for
8850         invalid RootFolder value. Use zero-length string when SelectedPath
8851         is set to null. Allow non-rooted paths in SelectedPath, but ignore
8852         them in FolderBrowserTreeView. Allow folders to be created in
8853         RootFolder. Fixes bug #82576.
8854
8855 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8856
8857         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
8858         since we need to take into account the group headers and the margin
8859         between them.
8860         * ListViewGroup.cs: Add a rows field to store the number of rows per
8861         group.
8862
8863 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8864
8865         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
8866           Anyways, let's just follow the lead.
8867
8868 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8869
8870         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
8871         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
8872         controls in GetPreferredSizeCore.
8873         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
8874         [Fixes bug #82488]
8875
8876 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
8877
8878         * PrintDialog.cs: Need to instantiate the form variable here too.
8879
8880 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8881
8882         * ListView.cs: Do some reorganization to support sorting in groups,
8883         by doing the layout sequentially in ListView.Items. Also add support
8884         for the Default Group, which should be available for items with no
8885         group assigned.
8886         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
8887         for storing layout info also.
8888         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
8889         collection, as well as providing internal members to do a traversal
8890         including the default group (needed when doing layout/drawing).
8891         * ThemeWin32Classic.cs: When drawing group headers use internal
8892         ListViewGroupCollection members to take into account the default
8893         group.
8894
8895 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
8896
8897         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
8898
8899 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8900
8901         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
8902         been created.  If handle is created, we want arror keys.  If we are editing
8903         a node, we want things like enter, esc, home, end, page up, page down.
8904         Allows Esc to work for FolderBrowserDialog.
8905
8906 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8907
8908         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
8909         they close when ESC is pressed.  Thanks Andy!
8910
8911 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8912
8913         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
8914         This way we can tell if this is a CommonDialog provided with mono, or one
8915         that is being implemented outside by a developer.  If it is an external one,
8916         the developer is responsible for showing their own form.  We were showing
8917         our blank form after the developer showed his.
8918         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
8919         PageSetupDialog.cs: Instantiate form variable in our constructor.
8920         [Fixes bug #82531]
8921
8922 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8923
8924         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
8925         and always return true.  [Fixes bug #81616]
8926
8927 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
8928
8929         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
8930         TextBox.  [Fixes bug #82549]
8931
8932 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
8933
8934         * FileDialog.cs: When Save/Open is clicked and no filename is selected
8935         or entered then do not close the dialog. Fixes bug #82539. Removed
8936         CWLs.
8937
8938 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
8939
8940         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8941         code to this method. It is calling every time filter changes. This method
8942         will help to fix the bug #80887.
8943
8944 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8945
8946         * CheckBox.cs: Implement AutoSize calculation.
8947
8948 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
8949
8950         * CheckBox.cs: Use new 2.0 rendering for 2.0.
8951         * Theme.cs: Method declarations for 2.0 rendering path.
8952         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8953
8954 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8955
8956         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8957
8958 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8959
8960         * ListViewGroupCollection.cs: Implement AddRange the right way, to
8961         only call Redraw on the parent one time.
8962
8963 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8964
8965         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8966           GetClipboardContent.
8967         * DataGridViewCell.cs: Implemented GetClipboardContent,
8968           GetEditedFormattedValue, GetFormattedValue.
8969         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8970
8971 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8972
8973         * TableLayoutStyleCollection.cs: corcompare fix.
8974
8975 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8976
8977         * DataObject.cs: Implemented retrieval of convertible / not convertible
8978           objects.
8979
8980 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
8981
8982         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8983         ourselves.  This ensures the entire old bounds are repainted, in case our new
8984         size is smaller.  [Fixes bug #82518]
8985
8986 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
8987
8988         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8989         flag to make fast handle of mouse events, without this the mouse move is
8990         handled in some manner, whether it is a mouse move or not. Fixes #81588.
8991
8992 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8993
8994         * ListView.cs: When doing layout calculations don't use a ref
8995         param to keep the current item; instead use its Index value (this 
8996         is specially important when doing the layout with Groups
8997         and Items being sparse). Also don't take into account items added to
8998         the Group but not yet added to the main ListView.Items collection.
8999
9000 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9001
9002         * ListViewGroupCollection.cs: Forgot to mimic an issue
9003         in the indexer (don't assign the ListView owner for new values).
9004
9005 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9006
9007         * ListViewGroupCollection.cs: Make the string indexer use
9008         the int based indexer to re-use code, instead of duplicate the code.
9009         Also Redraw as needed and take into account null values.
9010
9011 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9012
9013         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
9014         [Fixes bug #82481]
9015
9016 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
9019         when other buttons are clicked or navigated to.
9020
9021 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9022
9023         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
9024           it's XplatUIX11 that attaches them.
9025
9026 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9027
9028         * DataGridView.cs: If a column has been added, recreate the editing row.
9029           Fixes #82226.
9030
9031 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9032
9033         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
9034           of the tag to draw. Makes disappearing text show up again.
9035
9036 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9037
9038         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
9039           Contents. Fixes #82487.
9040
9041 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9042
9043         * Added HtmlElement.cs, HtmlElementCollection.cs, 
9044           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
9045           
9046 2007-08-19  Andreia Gaita  <avidigal@novell.com>
9047
9048         * BindingSource.cs: Implement this, dispose and getenumerator.
9049         * DataGridViewRowCollection.cs: Move the InvalidOperationException
9050         out of AddInternal, throw it only on public Add calls. The 
9051         UsingWebBrowser sample was blowing up with this when setting the
9052         DataSource after adding DataBindings, so it's likely that .net
9053         only throws this exception when Add is called directly. 
9054         
9055         * ToolStripControlHost.cs: Return the hosted control's text
9056         property, and not the ToolStripItem one (it would always return
9057         the initial value).
9058         
9059         * HtmlDocument.cs: Implement GetElementById and All
9060         * WebBrowser.cs: Remove exception on set_DocumentStream.        
9061
9062 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9063
9064         * Form.cs: Fix the max and min value for opacity (0~1).
9065
9066 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9067
9068         [Fixes #80118]
9069         * DataGridTableStyle.cs: Default header font is now null, on getter it 
9070         returns datagrid font when is null. On setter permits null.
9071
9072         * DataGrid.cs:
9073         - When ResetHeaderFont set header font to null.
9074         - On EndInit set grid_style.DataGrid.
9075
9076 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9077
9078         * TabControl.cs: Fix regression in default padding x.
9079
9080 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9081
9082         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
9083
9084 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
9085
9086         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
9087         not 2. Fixes #82229.
9088
9089 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9090
9091         * TabControl.cs: Fix tab size when image height is less than text height.
9092         Partially fixes #81837.
9093
9094 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9095
9096         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
9097         "alt + tab". It works only for Win32, for X11 theres no way to remove window
9098         from taskbar and keep it on "alt_tab". Fixes #81722.
9099
9100 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9101
9102         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
9103         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
9104         Fixes #80877 and #79418.
9105
9106 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9107
9108         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
9109         between position and one of the screen borders. Fixes #82349.
9110
9111 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9112
9113         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
9114         the MessageBox in the taskbar. Fixes #82457.
9115
9116 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
9117
9118         * MessageBox.cs: Fix form size when icon is set and text height is bigger
9119         than icon. Fixes #82468.
9120
9121 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9122
9123         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
9124         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
9125           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
9126           Refactored HandleNCCalcSize somewhat to avoid code duplication.
9127         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
9128           FormBorderStyle to decide if we're calculating a new size from the
9129           client size or not. CreateParams: Don't fake tool windows, only the X11
9130           backend manages toolwindows manually.
9131
9132 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9133
9134         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
9135         ObjectDisposedException.
9136
9137 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9138
9139         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
9140         in OnLoad should not have any effect.  [Fixes bug #82470]
9141
9142 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9143
9144         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
9145         paint for controls that create their own ToolTipWindow instead of
9146         going through ToolTip.
9147
9148 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9149
9150         * ToolTip.cs: Make Hide internal instead of public to match MS API.
9151
9152 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9153
9154         * ListViewGroupCollection.cs: Use generic List instead of an
9155         ArrayList, since this collection is 2.0 only.
9156
9157 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
9158
9159         * ToolTip.cs (Hide): Made public to make the build work (should
9160         this not be public?).
9161
9162 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9163
9164         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
9165         ToolTipWindow.
9166         * ToolTip.cs: Add an internal Visible property to facilitate transition.
9167
9168 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
9169
9170         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
9171         PopupEventHandler.cs: Make these internal for 1.1.
9172         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
9173         use ToolTipWindow internals.
9174         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
9175         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
9176
9177 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9178
9179         * X11Dnd.cs: Add a null check.
9180
9181 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9182
9183         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
9184           nothing else succeeds. Fixes #82453.
9185
9186 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9187
9188         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
9189           rectangle if we're painting to another window than the one the paint
9190           message was generated on. Simplify the code somewhat, which makes
9191           PaintEventEnd also simpler.
9192
9193 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9194
9195         * Control.cs: When changing parent of a form, let the form decide whether
9196           XplatUI.SetParent should be called or not.
9197         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
9198           recreating the handle. If the new parent's handle isn't created, don't
9199           recreate our handle, just destroy it. CreateParams: Check if the
9200           parent's handle is created before fetching it.
9201
9202 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9203
9204         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
9205           Update calls to PaintEventStart/End to take a Message argument.
9206         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
9207           take a Message argument.
9208         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
9209           Message argument, and handle the case where we don't paint to the window
9210           for which the paint message was generated.
9211
9212 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9213
9214         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
9215           Marshal.GetLastWin32Error. Plug nasty memory leak in
9216           PaintEventStart/End, we were creating a DC we weren't releasing.
9217
9218 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9219
9220         * ListView.cs: Add Groups support in Details view. Also have a small
9221         method to do the layout of the group header. Don't use a separate
9222         method to do the groups calculation in Icons view, since our methods
9223         are now a little simpler.
9224         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
9225         `Bounds'.
9226         * ThemeWin32Classic.cs: Likewise.
9227
9228 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9229
9230         * Application.cs: Add FilterMessage method and rework our message loop
9231         logic to use it.
9232
9233 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
9234
9235         * Application.cs: Add some methods and stub a few methods that are
9236         pretty much never used.
9237
9238 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
9239
9240         * TreeNode.cs: Add some serialization methods.
9241
9242 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9243
9244         * ListView.cs: In ListViewItemCollection have a 
9245         'is_main_collection' field to not modify ListViewItem.ListView
9246         when using it as ListViewGroup.Items (and not ListView.Items)
9247         and also don't modify selection state (.Net behaviour). 
9248         Instead, set group for items contained in a ListViewGroup.Items collection.
9249         * ListViewItem.cs: Simplify some code in Group setter.
9250         * ListViewGroup.cs: use the new .ctor to pass the current instance
9251         to the ItemsCollection.
9252         * ListViewGroup.cs: Set the ListView property for ListViewGroup
9253         instances when adding/removing. Also make Remove use RemoveAt, which
9254         should perform better.
9255
9256 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9257
9258         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
9259         that crept into the 1.1 profile.
9260
9261 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9262
9263         * ToolBarButton.cs: Implement ImageKey.
9264
9265 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
9266
9267         * ToolBar.cs: Implement ScaleControl/ScaleCore.
9268
9269 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9270
9271         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
9272           created, it might have gotten destroyed since we last checked. Fixes
9273           #82405.
9274
9275 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
9276
9277         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
9278         tooltip will hide when mouse is moved off the control.
9279         [Fixes bug #82407]
9280
9281 2007-08-11 Andreia Gaita <avidigal@novell.com>
9282
9283         * WebBrowserBase.cs, WebBrowser.cs: add implementation
9284         using Mono.Mozilla for loading and navigating webcontrol
9285         with xulrunner.
9286         The initial implementation was done on 
9287         /trunk/mozembed/tests/browser , and copied here.
9288
9289 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
9290
9291         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
9292         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
9293
9294 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9295
9296         * DataGridView.cs: Add support for an editing row. Fixes #82226.
9297           RowTemplateFull: throw an exception if a column doesn't have a template.
9298         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
9299           add the row just before it.
9300         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
9301           selected.
9302         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
9303           DataGridView field to be able to reach the grid's editing row.
9304
9305 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9306
9307         * ToolTip.cs: If the control's handle hasn't been created when it has a
9308         tooltip set on it, don't check to see if we need to show the tooltip.  This
9309         check was causing the control's handle to be created.
9310         [Fixes bug #82399]
9311
9312 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9313
9314         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
9315                                         1.1             2.0
9316         Handle Not Created      -1              0
9317         Handle Created          0               0
9318         [Fixes bug #82371]
9319
9320 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
9321
9322         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
9323         [Fixes bug #82348]
9324
9325 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9326
9327         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
9328         * ToolTip.cs: Implement some properties and owner draw.
9329
9330 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9331
9332         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
9333           show them again, since setting visibility causes a paint, causing an
9334           endless loop (instead use a temporary and set it all when it's known if
9335           they should be shown or not). Fixes #79265.
9336
9337 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9338
9339         * DataGridView.cs: Only do a full column/row selection if a header was
9340           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
9341           isn't pressed, deselect everything before selecting something.
9342
9343 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9344
9345         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
9346           behaviour according to bug #81075 - they are returned in the order they
9347           are selected. Fix HitTest to check if the point is within any of the
9348           headers. Allow for row/column selection when in ColumnHeader or
9349           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
9350           the row and column to call when their selected state changes, and
9351           updated selected_[rows|columns] whenever SetSelected* is called.
9352         * DataGridViewBand.cs: Initialize isRow correctly. Call
9353           SetSelected[Row|Column]CoreInternal when the selected state changes, and
9354           add a SelectedInternal to avoid StackOverflows.
9355         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
9356           ReadOnly no matter what.
9357         * DataGridViewSelectedColumnCollection.cs,
9358           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
9359           the items in reverse order (just as MS does...)
9360
9361 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
9362
9363         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
9364         itself, not part of a mnemonic.  [Fixes bug #82378]
9365
9366 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9367
9368         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
9369         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
9370           the DGV, the column, the row, or the cell itself is readonly.
9371
9372 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9373
9374         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
9375         OSVersion.Platform.
9376         * FileDialog.cs: Same.
9377         * TextRendered.cs: Same.
9378         * FolderBrowserDialog.cs: Same.
9379         * TextBoxBase.cs: Same.
9380         * Application.cs: Same.
9381         * Cursors.cs: Same.
9382         * ThemeClearLooks.cs: Same.
9383
9384 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
9385
9386         * XplatUI.cs: Added RunningOnUnix property to be used by controls
9387         instead of duplicating these checks everywhere.
9388         * FileDialog.cs: Use case-insensitive comparison for populating the
9389         DirComboBox when not running on unix. Fixes bug #82385.
9390         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
9391         "Look in".
9392
9393 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9394
9395         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
9396           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
9397           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
9398           cell and column selection with ctrl and shift pressed. Call the correct
9399           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
9400           the corresponding virtual method (PaintBackground to paint background,
9401           etc).
9402         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
9403           either the column, row or the cell itself is selected.
9404         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
9405           OnRowsAdded.
9406         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
9407           here. When the row is selected, don't select all cells. Each cell now
9408           queries the row to see if the row is selected.
9409
9410 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9411
9412         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
9413           SelectionMode.
9414
9415 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9416
9417         * ListView.cs: In ListViewItemsCollection check that owner is
9418         not null before trying to access it (this happens quite often
9419         using Groups). Also don't duplicate calls by calling CollectionChanged
9420         method.
9421
9422 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9423
9424         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
9425         when we are dismissed to clear keyboard mnemonics.
9426         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
9427         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
9428         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
9429         was activated by keyboard or the OS tells us to always draw them.
9430         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
9431         [Fixes bugs #82376, #82377]
9432
9433 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9434
9435         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
9436         shot at having it because Alt was pressed.
9437         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
9438         the first real menu item.
9439         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
9440         a mnemonic if Text is null.
9441         [Fixes bug #82374]
9442
9443 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9444
9445         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
9446         search do check whether the item is already contained in the
9447         collection or not; instead check if the owner of the item is the same
9448         as ours. Also, remove a redundant check in the same method. 
9449
9450 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
9451
9452         * Control.cs: Allow the clip region to be set back to null.
9453         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
9454         [Fixes button still showing up in bug #82370 when Show Through is turned off]
9455
9456 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9457
9458         * GridEntry.cs: Add a null check.
9459         * PropertyGrid.cs: When checking for existing grid entries, ignore category
9460           entries. Fixes #82297.
9461
9462 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9463
9464         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
9465         for 2.0.
9466
9467 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
9468
9469         * ListBox.cs: Implement ScaleControl.
9470
9471 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9472
9473         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
9474           have a menu strip.
9475         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
9476           parent has a menu strip. Fixes #81689.
9477
9478 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9479
9480         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
9481           moments, so apply some fuzzy logic to determine if the mouse is still
9482           inside a control or not. Fixes #82288 (for the third time).
9483
9484 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9485
9486         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
9487           Don't create the child if it has been disposed already (may happen if
9488           the user closes the form the Load event).
9489
9490 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9491
9492         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
9493           #82288.
9494
9495 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9496
9497         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
9498           might call us after we've been destroyed, in which case our own private
9499           parent field is null. Fixes #82326.
9500
9501 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9502
9503         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
9504         check for setting the dropdown's owner.
9505
9506 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
9509         before removing system menu items.
9510
9511 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
9512
9513         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
9514         folding.
9515         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
9516         folding.
9517         * ToolStrip.cs: Add a null check to mnemonics.
9518         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
9519         no ConnectedArea.
9520         [Fixes most of bug #81689]
9521
9522 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9523
9524         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
9525
9526 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9527
9528         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
9529
9530 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9531
9532         * DataGridViewCell.cs: EditType: returns
9533           DataGridViewTextBoxEditingControl always.
9534
9535 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
9536
9537         * TextRenderer.cs: Remove the LineLimit string format flag from the
9538         DrawString fallback method so that things like buttons that aren't
9539         tall enough to draw a full line will still draw part of the text.
9540         [Fixes part of bug #82272]
9541
9542 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9543
9544         * DataGridView.cs: Implemented AutoResizeColumn(s).
9545         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
9546           according to the Alignment.
9547         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
9548           Implement alignment and padding when painting.
9549         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
9550           exists.
9551         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
9552           way.
9553         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
9554           a column is added.
9555
9556 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9557
9558         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
9559         which is internal.
9560
9561 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9562
9563         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
9564         hide GetPreferredSize from public API.
9565         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
9566         * ToolStripItem.cs: Stub out drag and drop methods and events.
9567         * ToolStripManager.cs: Stub out Save/LoadSettings.
9568         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
9569         * ToolStripPanel.cs: Fix corcompare error.
9570         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
9571         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
9572         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
9573
9574 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
9575
9576         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
9577         bounds height instead of PreferredHeight.  Puts things back the way 
9578         they were for height while still fixing the width.  Fixes broken unit
9579         tests.
9580
9581 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9582
9583         * Binding.cs: Implement 2.0 constructors and add a null check.
9584
9585 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9586
9587         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
9588           and fix row index (off by one).
9589
9590 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9591
9592         * PropertyGridView.cs: Remove debug output.
9593
9594 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9595
9596         * Control.cs: We need to reset the is_created flags when the handle is
9597           destroyed. Fixes #82187.
9598         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
9599           client coordinates if the window doesn't have a parent.
9600           Win32GetParent returns the parent or the owner, and for top-level
9601           windows with no parent (but with an owner) we were calculating the
9602           location from the location of the owner.
9603         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
9604           form has been disposed.
9605         * MdiClient.cs: Add a null-check.
9606
9607 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
9608
9609         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
9610         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
9611         so we can provide an implementation that returns the current width
9612         and preferred height.  Allows anchor = right to work with TextBox 2.0.
9613         [Fixes bug #82233]
9614
9615 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9616
9617         * ListView.cs: Add support for navigating items in Groups mode, by
9618         creating a big matrix containing all rows and cols of all groups. When
9619         are in other mode than Details, pressing Up should have a similar
9620         behaviour as that one of Down (moving to the next available column if
9621         current one doesn't have an item in the requested row). Also, don't
9622         proceed to use groups if ShowGroups is false.
9623         * ListViewGroup.cs: Add an internal int field to store the starting
9624         row of the group (used by the big matrix used for navigating the
9625         ListView).
9626         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
9627         false.
9628
9629 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
9630
9631         * ToolStripDropDown.cs: When we do Show, start with the 
9632         DefaultDropDownDirection, but if our popup menu is going to off-screen,
9633         modify the direction to keep it on screen.  [Fixes bug #82210]
9634
9635 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
9636
9637         * FileDialog.cs: Accept any FilterIndex value, and store it
9638         unmodified. When FilterIndex is less than 1, or greater than number
9639         of filters, then default to first filter. Only add filter extension to
9640         file if user did not specifiy an extension. When type of dialog is
9641         OpenFileDialog and DefaultExt is set, then only use filter extension
9642         if: CheckFileExists is true and no file wih the default extension
9643         exists, or CheckFileExists is false, and user specified file does not
9644         exist. When CheckFileExists is true, then add first extension of 
9645         selected filter that matches existing file. Perform checks for
9646         existing file, overwrite and create after extension has been added to
9647         file name. When CheckFileExists is true and type is SaveFileDialog,
9648         then only consider first filter extension if DefaultExt is set.
9649         When CheckFileExists is true, then ignore DefaultExt if file with that
9650         extension does not exist. Also perform check for existing file when
9651         type is SaveFileDialog. Changed some field to constants.
9652
9653 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9654
9655         * ListView.cs: Take into account the region used by header
9656         control when doing the vertical scroll (this way we invalidate
9657         the precise area, and don't get any dirty one).
9658
9659 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
9660
9661         * FileDialog.cs: Check for valid filterIndex on button open/save. 
9662         Fixes #82184.
9663
9664 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9665
9666         * ListView.cs: Update some layout calculations in details view
9667         and clean the code in a pair of assignations.
9668
9669 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9670
9671         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9672         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9673         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9674         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9675
9676 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9677
9678         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9679         performance of thread-safe Graphic methods.  (Thanks rolf!)
9680
9681 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9682
9683         * ListView.cs: When doing the layout calculations, don't calculate
9684         scroll bars before handle is created. This is unnecessary and also
9685         calculating them before handle creation item causes a number of random
9686         bugs (which begin to appear after Chris' big patch for handle creation
9687         fixes). 
9688
9689 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
9690
9691         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9692         for things that don't have a Graphics object.  Currently, things just use
9693         the static Hwnd.bmp_g which is not thread safe.
9694
9695 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9696
9697         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9698           dialog. Fixes #82187.
9699
9700 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9701
9702         * DataGridViewElement.cs: Initialize state.
9703         * DataGridView.cs: Forward a few Mouse events to cells. Add
9704           GetRowInternal and GetCellInternal that doesn't unshare rows.
9705           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9706           don't use the index, but look it up. Add
9707           DataGridViewControlCollection.RemoveInternal to remove controls
9708           that Remove won't remove (scrollbars, edit control).
9709         * DataGridViewColumn.cs: Initialize State correctly.
9710         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9711           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9712           implementing this.
9713         * DataGridViewRowCollection.cs: Implemented shared rows.
9714         * DataGridViewRow.cs: Throw exceptions as MS do.
9715         * DataGridViewCell.cs: A few properties are implemented by a
9716           Get<Property> method, so move implementation there and remove the
9717           NIEX in the method. Add a bunch of OnXInternal that DataGridView
9718           calls when necessary.
9719         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9720           complicates matters.
9721         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9722           unshare any rows.
9723
9724 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9725
9726         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9727         the children controls.  Instead, we will just set up the proper docking for the
9728         children controls so we don't have to worry about it.  [Fixes bug #82188]
9729
9730 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9731
9732         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
9733         canceling and correct Before/AfterLabelEdit properties as layed out in bug
9734         81847.  [Fixes bug #81847]
9735
9736 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
9737
9738         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
9739         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
9740         an explicit size based on the design-time size of the text.  Since our fonts
9741         may not match this explicit size, we tend to cut off the ends of people's labels.
9742
9743 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
9744
9745         * Menu.cs: Add some missing methods to MenuItemCollection.
9746
9747 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9748
9749         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
9750         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
9751         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
9752         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
9753         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
9754         * DataGridViewElement.cs: State defaults to Visible.
9755         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
9756         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
9757
9758 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9759
9760         * Control.cs: Minor 1.1 corcompare fix.
9761
9762 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9763
9764         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
9765         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
9766
9767 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9768
9769         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
9770           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
9771           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
9772           DataGridViewSelectedColumnCollection.cs,
9773           DataGridViewSelectedRowCollection.cs: Corcompare work.
9774
9775 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
9778         it is autoset by VS2005 designer and the effect is barely noticeable.
9779
9780 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
9781
9782         * TreeView.cs: Implement HitTest.
9783
9784 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9785
9786         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
9787           manually adding and removing the control from the Controls
9788           collecftion.
9789         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
9790           EditingControlInternal property that tracks the editing control.
9791           Always keeping the scrollbars in the Controls collection, as MS
9792           testing confirms is the right behaviour.
9793
9794 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9795
9796         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
9797           according to MSDN and new test.
9798
9799 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9800
9801         * TreeNode.cs: Implement ToolTipText.
9802         * TreeView.cs: Implement tooltips, NodeMouse* events.
9803
9804 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9805
9806         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
9807
9808 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9809
9810         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
9811         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
9812
9813 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
9814
9815         * Control.cs, Form.cs, ContainerControl.cs,
9816         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
9817         for misc properties.
9818
9819 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
9820
9821         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
9822         * TreeView.cs: Implement StateImageList.
9823
9824 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9825
9826         * Form.cs: Don't check if the current form is the active form before
9827           activating it. Fixes #81904.
9828
9829 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9830
9831         * Form.cs: Don't check if the current form is the active form before
9832           activating it. Fixes #81904.
9833
9834 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9835
9836         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
9837
9838 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9839
9840         * Form.cs: Don't try to position the form after loading if the form was
9841           disposed. Fixes #81969.
9842
9843 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9844
9845         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
9846           properties. Had to change ToolBar into ToolStrip, which required a
9847           few #ifs.
9848
9849 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9850
9851         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
9852           resized, fixes part of #79829 (vertical lines in toolbar).
9853           PropertyGrid: Refactored Populate* to something that's easier to
9854           follow at least for me, as well as splitting it up into several new
9855           methods, required to update only subitems when something has
9856           changed by a popup editor or listbox. Don't use events to check
9857           when any values are changed, since the events are unreliable (we're
9858           changing the objects the events are registered with, and if the
9859           event handling requires the objects to be immutable (objects stored
9860           in hashtables for instance), the events will never be raised).
9861         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
9862           everytime we change a value, since events are unreliable.
9863           DropDownButtonClicked: For the same reason don't compare objects to
9864           check if it has changed or not, it would require all objects to
9865           derive Equals. Fix dialog location on windows, MS is doing weird
9866           things when creating parented forms.
9867         * GridEntry.cs: Add a SelectedObject setter.
9868
9869 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
9870
9871         * TreeNode.cs: Add some corcompare attributes.
9872         * TreeNodeCollection.cs: Implement 2.0 stuffs.
9873         * TreeView.cs: Implement some 2.0 stuffs.
9874
9875 2007-07-18  Andreia Gaita  <avidigal@novell.com>
9876
9877         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
9878         for moma.
9879
9880 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
9881
9882         * ListBox.cs: Implement custom tab offsets.
9883
9884 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9885
9886         * ToolStripContentPanel.cs: Support System renderer.
9887         * ToolStripControlHost.cs: Set RightToLeft to default to No.
9888
9889 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9890
9891         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
9892
9893 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9894
9895         * CheckBox.cs: Chain TextAlign to base implementation instead of
9896         maintaining another one.
9897
9898 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9899
9900         * ButtonBase.cs: Fix an incorrect string constant.
9901
9902 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9903
9904         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
9905         of creating one for measuring strings.
9906
9907 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
9908
9909         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
9910         Implement MaxItemSize.
9911
9912 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
9913
9914         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
9915         for DeviceContext.  Instead, use the static one available in Hwnd.
9916         Informal tests show this saves about 500k on formtest.exe.
9917
9918 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
9919
9920         * ContainerControl.cs: Implement 2.0 AutoScaling.
9921
9922 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9923
9924         * ComboBox.cs: Work around bug #82120 (bug in mcs).
9925
9926 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
9927
9928         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
9929         Darken the focus color.
9930
9931 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
9932
9933         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
9934         for the checkbox.
9935         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9936         X, Y instead of a rect for drawing text.
9937         - For ControlPaint.DrawCheckBox, center the check a little better when the
9938         checkbox is odd width.  When drawing a flat checkbox, use a white background
9939         when state != inactive.
9940         [Fixes bugs #82097, 82100]
9941
9942 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
9943
9944         * ListControl.cs: When changing CurrencyManager, disconnect event
9945         handlers from previous one. Fixes bug #81771. Code formatting.
9946
9947 2007-07-15  Andreia Gaita <avidigal@novell.com>
9948
9949         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9950         full preview invalidation from layout invalidation, and only invalidate
9951         the layout when setting zoom or other properties. Invalidation should
9952         always be done even when resetting properties with the same values as
9953         what is there. Fixes #81744 and #79830.
9954
9955 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9956
9957         * ListView.cs: Implement initial support for Groups. Split some of the
9958         LayoutIcons code to render a partial list of the items (needed by
9959         items contained in ListViewGroup instances). Let the
9960         ListViewItemsCollection.ListView property be modifiable (needed when
9961         using Groups, too).
9962         * ListViewGroup.cs: Use a Bounds property rather than a Location
9963         one. Also invalidate the bounds when they get changed.
9964         * ThemeWin32Classic.cs: When drawing items, also draw the group header
9965         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9966         method as well.
9967
9968 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9969
9970         * ListView.cs: When space gets pressed and CheckBoxes is true, 
9971         don't invoke the Begin and EndUpdate methods. We are generating 
9972         a redraw of the entire control without need to do so.
9973
9974 2007-07-13  William Holmes <billholmes54@gmail.com> 
9975
9976         * Control.cs: Changing logic in FindFlatForward and 
9977           FindFlatBackward to handle multiple Controls with 
9978           the same TabIndex.  
9979           This fixes bug 81687.
9980
9981 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
9982
9983         * OSFeature.cs: Enable IsPresent.
9984
9985 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9986
9987         * Control.cs: Don't do anything in WmShowWindow if the control has been
9988           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9989           control is created, put on a form, the control is disposed (the
9990           form is never shown), and then we get a MapNotify, triggering a
9991           WM_SHOWWINDOW.
9992         * Form.cs: Exclude the current form when sending Deactivate to all
9993           MdiChildren.
9994         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9995           there was a race condition because assigning the handle raises
9996           events, we can get more messages, therefore trying to assign the
9997           handle again, which would fail if any of those event handlers
9998           closed/disposed the control.
9999
10000 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10001
10002         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
10003
10004 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10005
10006         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
10007         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
10008
10009 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10010
10011         * DateTimePicker.cs: If there's no part format specifier, return an
10012           empty string.
10013
10014 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
10015
10016         * FlatButtonAppearance.cs: Throw NotSupportedException for a
10017         Transparent BorderColor.
10018
10019 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10020
10021         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
10022           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
10023           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
10024           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
10025           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
10026           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
10027           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
10028           Remove warnings.
10029         * X11Structs.cs: Remove warnings, add ToString implementations.
10030
10031 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10032
10033         * XplatUIX11.cs: Translate min/max size according to the actual min/max
10034           size, and not the current size. Fixes #81798.
10035
10036 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10037
10038         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
10039           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
10040           to the control yet).
10041
10042 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10043
10044         * PropertyGridTextBox.cs: Add a method that sends any forwarded
10045           mousedowns to the contained textbox.
10046         * X11Structs.cs: More ToString implementation.
10047         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
10048           #81791.
10049
10050 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10051
10052         * PropertyGridView.cs: Add a null-check, fixes a few tests.
10053
10054 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10055
10056         * TableLayoutPanelCellPosition.cs: TypeConverter.
10057
10058 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10059
10060         [ Fixes #79761]
10061         
10062         * PropertyGridTextBox.cs: Propagate any color changes to all contained
10063           controls.
10064         * PropertyGridView.cs: A few color fixes.
10065
10066 2007-07-10  Jackson Harper  <jackson@ximian.com>
10067
10068         * TextControl.cs: Remove some old unused text formatting stuff.
10069
10070 2007-07-10  Jackson Harper  <jackson@ximian.com>
10071
10072         * TreeView.cs: Update full row select invalidation to match the
10073         newer DrawSelection... method.
10074         - Make sure to invalidate the entire width when selecting a new
10075         node, if we have full row selection enabled.
10076
10077 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10078
10079         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
10080           display of properties again.
10081
10082 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
10083
10084         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
10085         to existing collections.
10086
10087 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10088
10089         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
10090         that changed between 1.1 and 2.0.
10091
10092 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10093
10094         * PowerStatus.cs: Added.  This is just a data class, it is filled
10095         in by SystemInformation.
10096
10097 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10098
10099         * Message.cs: Add op_Equality and op_Inequality.
10100
10101 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10102
10103         * MenuStrip.cs: Finish corcompare work.
10104
10105 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10106
10107         * LinkArea.cs: Add op_Equality and op_Inequality.
10108
10109 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10110
10111         * Application.cs: Add MessageLoopCallback delegate.
10112
10113 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10114
10115         * ListBox.cs: First set of 2.0 stuffs.
10116
10117 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
10118
10119         * Control.cs: Make an internal Height property we can override
10120         without messing up the public API.
10121         * ListBox.cs: Override HeightInternal to always return the size
10122         the user set.  [Fixes bug #80466]
10123
10124 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
10125
10126         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
10127         paint cell borders if we haven't calculated where they go yet.
10128         [Fixes bugs #82040 and #82041]
10129
10130 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10131
10132         * ListView.cs: In Details view, set the location of item_control
10133         in the (0,0) position (and the header_control is thus on the
10134         item_control). This way the Bounds of the Items are relative to the
10135         ListView control (before this, they had a Bounds value without the
10136         header_control offset, which wasn't matching .Net). Fixes #82004.
10137
10138 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10139
10140         * ListControl.cs: When DataSource is set to null, pass an empty
10141         array of object to SetItemsCore. This is done to clean the items
10142         in the ListContol children. Fixes #81788.
10143
10144 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10145
10146         * ListControl.cs: Add 2.0 stuffs.
10147
10148 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10149
10150         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
10151         Refresh is overkill for just about every repaint request.
10152
10153 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10154
10155         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
10156         so remove my custom Get method and fix the property getter.
10157
10158 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10159
10160         * Label.cs: DefaultMargin for 2.0.
10161
10162 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10163
10164         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
10165         reported issue where other controls with mnemonics would steal strokes
10166         from a selected ComboBox.
10167
10168 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
10169
10170         * ScrollOrientation.cs: Make internal for 1.1.
10171         * ScrollEventArgs.cs: Add 2.0 stuffs.
10172
10173 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
10174
10175         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10176         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
10177         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
10178
10179 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10180
10181         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
10182
10183 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10184
10185         * ListView.cs: Implement the so-incredibly broken 2.0 
10186         VirtualItemsSelectionRangeChanged event.
10187
10188 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10189
10190         * ListView.cs: When enter is pressed and selection is non empty,
10191         an OnItemActivate event must be fired.
10192
10193 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10194
10195         * ListView.cs: Store the FocusedItem information as an
10196         int instead of a ListViewItem (needed by VirtualMode).
10197         Update the calls to SetFocusedItem to pass an index instead of
10198         an item.
10199         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
10200         the Focused state from the owner ListView. 
10201
10202 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10203
10204         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
10205         property. Also, invalidate previous focused item in the mentioned
10206         property (match .Net).
10207
10208 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10209
10210         * ListView.cs: Implement 2.0 FocusedItem property setter.
10211
10212 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10213
10214         * ListView.cs: Implement 2.0 TopItem property setter.
10215
10216 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
10217
10218         * StatusStrip.cs: The default renderer is System.
10219         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
10220         if the user specifies it.
10221         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
10222         if we are ManagerRenderMode.
10223         * ToolStripMenuItem.cs: Calculate our text color better.
10224         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
10225         from Professional to the base class based off working with the System renderer.
10226         * ToolStripSystemRenderer.cs: Added.
10227
10228 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10229
10230         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
10231
10232 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
10233
10234         * ToolTip.cs: Implement 2.0 Tag property.
10235
10236 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10237
10238         * ListView.cs: Implement 2.0 HitTest methods.
10239
10240 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10241
10242         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
10243         item is under the pointer or not (sugar). Also remove the TODO
10244         regarding to the cursor changes in OneClick activation.
10245         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
10246         the subitems use the parent's HotFont if UseItemStyleForSubItems is
10247         true; otherwise don't show the underline style.
10248
10249 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10250
10251         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
10252         the code to retrieve the item at position only one time. Also
10253         change cursor when Activation is ItemActivation.OneClick as well
10254         as invalidate the item if HotTracking is true (to show/hide the
10255         underline style). Add an internal HotItemIndex property to retrieve
10256         the current hot item's index.
10257         * ListViewItem.cs: Add an internal HotFont property to cache the
10258         font used when HotTracking is true and the pointer moves within the
10259         item's borders.
10260         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
10261         HotFont depending on the hot state of the item.
10262
10263 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10264
10265         * ListView.cs: Implement 2.0 HotTracking property.
10266
10267 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10268
10269         * ToolStripControlHost.cs: If our hosted control never got created,
10270         don't try to dispose it.  [Fixes bug #81909]
10271
10272 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10273
10274         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
10275
10276 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
10277
10278         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
10279
10280 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10281
10282         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
10283         Details view.
10284         * DrawListViewColumnHeaderEventArgs.cs:
10285         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
10286         using the DrawText () methods.
10287
10288 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
10289
10290         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
10291         background which got erased in my changes yesterday.
10292
10293 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10294
10295         * ListViewItem.cs: Actually set bounds for subitems in Details view
10296         (2.0 feature).
10297         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
10298         can invoke from the owner draw routines if we need it. Also, add
10299         support for Owner draw in Details view.
10300
10301 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10302
10303         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
10304         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
10305         ShowImageMargin setting, properly align text in a ToolStripLabel
10306         hosted on a ToolStripDropDown.
10307
10308 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10309
10310         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
10311         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
10312
10313 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10314
10315         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
10316
10317 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
10318
10319         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
10320         location to match ToolStripMenuItems.
10321
10322 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10323
10324         * DrawListViewColumnHeaderEventArgs.cs:
10325         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
10326         column headers in ListView. 
10327
10328 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10329
10330         * UserControl.cs: Implement AutoSize.
10331
10332 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10333
10334         * DrawListViewItemEventArgs.cs:
10335         * ListView.cs:
10336         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
10337         ListView.
10338
10339 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
10340
10341         * ToolStripDropDownItemAccessibleObject.cs: Added.
10342         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
10343         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10344         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
10345         ToolStripTextBox.cs: corcompare work.
10346
10347 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10348
10349         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
10350         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
10351         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
10352                 corcompare.
10353
10354 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
10355
10356         * OSFeature.cs: Add IsPresent.
10357         * PrintPreviewControl.cs: Add RightToLeft.
10358         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
10359         * SplitterPanel.cs: Add AutoSizeMode.
10360
10361 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10362
10363         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
10364         * MdiClient.cs: Add 2.0 ScaleControl.
10365         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
10366         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
10367
10368 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10369
10370         * Form.cs: Implement some scaling methods, stub some RTL methods,
10371         corcompare work.
10372
10373 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10374
10375         * Control.cs: corcompare work.
10376         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
10377
10378 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
10379
10380         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
10381         ControlPaint 2.0 stuffs.
10382
10383 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10384
10385         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
10386
10387 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10388
10389         * UpDownBase.cs: Add 2.0 stuffs.
10390
10391 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10392
10393         * NumericUpDown.cs: Add 2.0 stuffs.
10394
10395 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10396
10397         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
10398
10399 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10400
10401         * ErrorProvider.cs: Implement 2.0 stuffs.
10402
10403 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * DomainUpDown.cs: Implement 2.0 stuffs.
10406
10407 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10408
10409         * CheckedListBox.cs: Fix RefreshItems signature.
10410
10411 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
10412
10413         * PictureBox.cs: Implement 2.0 stuffs.
10414
10415 2007-06-12  Andreia Gaita  <avidigal@novell.com>
10416         
10417         * TabControl.cs: Check if there are tabpages before checking
10418         the selected index - fix #81802 (font changes raise a ResizeTabs
10419         call on controls.add, which blew up nicely with no tabpages)
10420
10421 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10422
10423         * ListView.cs:
10424         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
10425
10426 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10427
10428         * ListView.cs:
10429         * ListViewItem.cs: In VirtualMode the selection information
10430         resides in the ListView, rather than in the Items. Also, throw
10431         InvalidOperationExceptions when VirtualMode is being used and
10432         CheckedItemCollection is accessed.
10433
10434 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10435
10436         * ComboBox.cs: Add ScaleControl.
10437
10438 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10439
10440         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
10441
10442 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * GroupBox.cs: Add 2.0 stuffs.
10445
10446 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
10447
10448         * Panel.cs: Add autosize properties/event.
10449
10450 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10451
10452         * Control.cs:
10453         - When we remove a control, remove it from the collection before performing the layout.
10454         - Setup an internal property for explicit_bounds.
10455         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
10456         - Perform a layout when we set a new AutoSizeMode.
10457
10458 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
10459
10460         * ScrollableControl.cs: Add 2.0 stuffs.
10461
10462 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10463
10464         * ScrollBar.cs: Add 2.0 stuffs.
10465
10466 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10467
10468         * Splitter.cs: Add 2.0 stuffs.
10469
10470 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
10473         to have BindingContext simply use base implementation.
10474
10475 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10476
10477         * ColumnHeader.cs: corcompare fix.
10478
10479 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10480
10481         * Button.cs: corcompare fixes.
10482         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
10483
10484 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
10485
10486         * Button.cs: Override GetPreferredSizeCore.
10487         * ButtonBase.cs: PerformLayout after changing properties that can affect
10488         AutoSize.  Simplify some mouse/keyboard code.
10489         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
10490         * MouseEventArgs.cs: Make Location internal for 1.1.
10491         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
10492         * Theme.cs: Add CalculateButtonAutoSize.
10493         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
10494
10495 2007-06-05  Miguel de Icaza  <miguel@novell.com>
10496
10497         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
10498
10499 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10500
10501         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
10502         since we can get different item instances every time we retrieve it.
10503
10504 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10505
10506         * ListView.cs: Work around for #81602, since an unkown an pretty
10507         infrequent condition appears only in some systems (old linux boxes, it
10508         seems).
10509
10510 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10511
10512         * Button.cs: Completely reformat and a little refactor to bring
10513         this closer to Mono circa 2007.
10514
10515 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10516
10517         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
10518         to be ButtonBase.Invalidate.
10519
10520 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10521
10522         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
10523
10524 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
10525
10526         * ButtonBase.cs: Completely reformat and a little refactor to bring
10527         this closer to Mono circa 2007.
10528
10529 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
10530
10531         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
10532         values for autosize. Fixes #80137.
10533
10534 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10535
10536         * Control.cs: Don't perform layout when AutoSize changes.
10537         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
10538         directly when autosizing, use SetBounds with BoundsSpecified.None.
10539         Fixes unit tests my last commit broke.
10540
10541 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10542
10543         * Control.cs: Perform layout when AutoSize changes.
10544         * Form.cs: Implement AutoSizing.
10545
10546 2007-06-01  Chris Toshok  <toshok@ximian.com>
10547
10548         * DataGrid.cs: remove the XXX'ed check at the top of
10549         ProcessGridKey.  fixes #80464.
10550
10551 2007-06-01  Chris Toshok  <toshok@ximian.com>
10552
10553         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
10554         adding idempotent (add/remove in Edit()), and also make sure we
10555         don't add it until after we set the text, so it's not tripped in
10556         Edit().  Fixes unit test regression.
10557
10558 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
10559
10560         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
10561         change is user explicit, not when the layout engine moves stuff.  Fixes
10562         anchoring to bottom and right.  [Fixes bug #81790]
10563
10564 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10565
10566         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
10567
10568 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10569
10570         * ContainerControl.cs: 
10571         Fire enter event for common ancestor if it is not a ContainerControl.
10572         Send focus to the active_control and not the 'value', the active 
10573         control might have been changed in one of the events fired.     
10574         Definitely fixes #80159.
10575
10576 2007-06-01  Andreia Gaita  <avidigal@novell.com>
10577
10578         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
10579
10580 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10581
10582         * PropertyGrid.cs: Anchor the help description to the bottom of the
10583           help panel and refactor SelectGridItem into a
10584           SelectGridItemInternal that can be set to null (and update it to
10585           clear the help texts when it is set to null). Set root item to null
10586           when there's no SelectedObject. Fixes #80438.
10587         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
10588           when we're recalculating after a resize (only).
10589
10590 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10591
10592         * ListView.cs: Implement 2.0 RedrawItems method.
10593
10594 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10595
10596         * ListControl.cs: Disconnect PositionChanged and ItemChanged
10597         handlers from previous data manager when DataSource is set to
10598         null. Fixes #81771.
10599
10600 2007-05-31  Jackson Harper  <jackson@ximian.com>
10601
10602         * TextBoxBase.cs: These seem to be the correct values.
10603
10604 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
10605
10606         * FileDialog.cs: When close dialog with ok set filterindex using combobox
10607         value. Fixes #81784.
10608
10609 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
10610
10611         * Control.cs: Implement 2.0 scaling methods.
10612
10613 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10614
10615         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
10616           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
10617           corcompare issues.
10618
10619 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10620
10621         * ProgressBar.cs: Implemented missing 2.0 members.
10622
10623 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10624
10625         * Control.cs: Corcompare issues.
10626         * MessageBox.cs: Implemented missing 2.0 functions.
10627
10628 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10629
10630         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
10631           Implemented more 2.0 members.
10632
10633 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10634
10635         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
10636           null (strange, but it seems to happen when running unit tests).
10637
10638 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10639
10640         * ContainerControl.cs: Set active_control even earlier, before 
10641         firing any events, and undo it if validation returns false.
10642
10643 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10644
10645         * ContainerControl.cs: Raise Validation and Enter/Leave events
10646         even if there is no Form and set active_control earlier, just
10647         before firing Enter events (toshok's patches). Fixes #80647.
10648
10649 2007-05-30  Jackson Harper  <jackson@ximian.com>
10650
10651         * TextControl.cs: Redid the pageup/pagedown a little to simplify
10652         things and fix bug #81311.
10653
10654 2007-05-30  Jackson Harper  <jackson@ximian.com>
10655
10656         * X11Dnd.cs: Now that we have our own event loop, we need to
10657         cancel when we get a mouseup but it won't be accepted.
10658
10659 2007-05-30  Chris Toshok  <toshok@ximian.com>
10660
10661         * DataGrid.cs (set_CurrentCell): guard against negative
10662         column/row.
10663
10664         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10665         array index syntax instead of looping over the property names.
10666
10667         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10668         and set IsInEditOrNavigateMode to false there.
10669
10670 2007-05-30  Jackson Harper  <jackson@ximian.com>
10671
10672         * TreeView.cs: Make sure we don't get a bad visible order when
10673         setting to the top node.  Fixes some misc crashing in
10674         ControlInspector.
10675
10676 2007-05-30  Andreia Gaita  <avidigal@novell.com>
10677
10678         * UserControl.cs: Add 2.0 AutoSizeMode
10679
10680 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10681
10682         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10683
10684 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10685
10686         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10687         lines. Fixes #80285. 
10688
10689 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10690
10691         * DataGridColumnStyle.cs: Add char trimming column header text format. 
10692
10693 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
10694
10695         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
10696         Fixes #80147.
10697
10698 2007-05-29  Jackson Harper  <jackson@ximian.com>
10699
10700         * TreeNode.cs: Fix off by one on calculating whether or not a node
10701         is visible.
10702
10703 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
10704
10705         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10706         * ScrollableControl.cs: Force an UpdateDistances when we move the
10707         scrollbars.
10708         [Fixes bug #80605]
10709
10710 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10711
10712         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10713         update the page setup screen.
10714
10715 2007-05-29  Andreia Gaita  <avidigal@novell.com>
10716
10717         * PageSetupDialog.cs: Fix landscape mode.
10718
10719 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10720
10721         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10722         IconSizeHorizontalSpacing.
10723
10724 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10725
10726         * ListView.cs: The declaration of prev_tooltip_item should be inside
10727         a NET_2_0 conditional (avoid a warning).
10728
10729 2007-05-28  Andreia Gaita  <avidigal@novell.com>
10730
10731         * PageSetupDialog.cs: Implement PrintPreview control to display
10732         the preview thumbnail. Change unit conversion to use 
10733         PrinterUnitConvert methods.
10734         
10735         Note: there is a huge bug in ms.net where the default margins are 
10736         interpreted as centimeters (?), when in fact they are set in inches. When 
10737         loading the page setup dialog initially (ms.net), the default margins 
10738         are set to 1 inch, and the dialog shows them with value 10, when in fact 
10739         it should be 25 (properly converted). Our dialog doesn't have this bug.
10740         
10741         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
10742         RectangleF.
10743         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
10744
10745 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10746
10747         * ListView.cs:
10748         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
10749         items.
10750
10751 2007-05-28  Andreia Gaita  <avidigal@novell.com>
10752
10753         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
10754         an IntPtr on csc (it builds fine on mcs, could it be a compiler
10755         bug?), convert the ptr to Int32 first.
10756
10757 2007-05-28  Jackson Harper  <jackson@ximian.com>
10758
10759         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
10760         recieved, we will exit the dnd tracking loop.
10761
10762 2007-05-28  Jackson Harper  <jackson@ximian.com>
10763
10764         * X11Dnd.cs: Keep tracking until the xdnd finished event is
10765         recieved. TODO: I should probably stick a timer on the dropped
10766         event, and finish the drag if the XDND Finished event never shows
10767         (because some apps don't seem to send it).
10768
10769 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
10770
10771         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
10772         #81733.
10773
10774 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10775
10776         * MonthCalendar.cs: Only mark the keypresses we actually handle as
10777           handled.
10778
10779 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10780
10781         * MonthCalendar.cs: Set the size after initializing all the relevant
10782           variables. Fixes #81742.
10783
10784 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10785
10786         * KeyEventArgs.cs: Fix typo.
10787
10788 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
10789
10790         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
10791         to match MS. Fixed MinDate to only accept value less than or equal
10792         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
10793         Removed TODO's that are now verified by unit tests.
10794
10795 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
10796
10797         * TreeNodeCollection.cs: Minor corrections to exceptions to match
10798         MS.
10799
10800 2007-05-25  Jackson Harper  <jackson@ximian.com>
10801
10802         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
10803         it's own message loop.
10804         * XplatUIX11.cs: Remove some of the dnd hooks
10805
10806 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
10807
10808         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
10809         instead of MinimizedWindowSize.
10810
10811 2007-05-25  Jackson Harper  <jackson@ximian.com>
10812
10813         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
10814
10815 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10816
10817         * KeyEventArgs.cs: Added SuppressKeyPress.
10818         * Control.cs: Added support for SuppressKeyPress.
10819
10820 2007-05-24  Andreia Gaita  <avidigal@novell.com>
10821
10822         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
10823         problems with PieChart. suppress_validation should not be a counter,
10824         if there are several BeginInit calls, the first EndInit will 
10825         activate validation. Fix exceptions thrown by set_Value.
10826         * UpDownBase.cs: ValidateText only if it's the user editing it.
10827
10828 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10829
10830         * ListControl.cs: FilterItemOnProperty should return the filtered
10831         item proeprty even if DataSource is null. The same applies for
10832         GetItemText. Fixes #80427.
10833
10834 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10835
10836         * Control.cs: If a control doesn't have a parent when it's Dock is
10837         set, but it has children, it needs to do a layout.  Fixes some nested
10838         controls issues.  [Fixes bug #81199]
10839
10840 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10841
10842         * ComboBox.cs: If there are few items in the drop down list, make it
10843           the exact size the items need, no bigger. Fixes #81612.
10844
10845 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10846
10847         * Application.cs: When we have captured the keyboard for a menu,
10848         check for mouse down events in case we need to close the menu.
10849         * Control.cs, Form.cs: Remove mouse down checks for menus.
10850
10851 2007-05-24  Jackson Harper  <jackson@ximian.com>
10852
10853         * TextControl.cs: Handle tabs in non multiline mode a little
10854         differently.
10855
10856 2007-05-24  Jackson Harper  <jackson@ximian.com>
10857
10858         * TextControl.cs: We need to manually break apart tabbed text and
10859         move the tabs, since the system.drawing tabbing mechanism relies
10860         on tab stops.
10861         * TextBoxBase.cs: Move the caret properly when the user enters a
10862         tab.
10863
10864 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
10865
10866         * ContainerControl.cs: Don't check CanSelect before calling
10867         ProcessMnemonic.
10868         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
10869         release a KeyboardActive on click if it's not ours.
10870
10871 2007-05-23  Andreia Gaita  <avidigal@novell.com>
10872
10873         * ColumnHeader.cs: Add TypeConverter
10874
10875 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10876
10877         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
10878
10879 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10880
10881         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
10882
10883 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10884
10885         * LinkLabel.cs: Implement public Padding property.
10886
10887 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10888
10889         * LinkLabel.cs: Implement public FlatStyle.
10890
10891 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
10892
10893         * Control.cs: Apply patch from George to call parent.PerformLayout
10894         when Visible is changed.  [Fixes bugs #81118, 81718]
10895
10896 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10897
10898         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
10899
10900 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10901
10902         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
10903
10904 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
10905
10906         * ContextMenu.cs: Implement Collapse.
10907
10908 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
10909
10910         * ToolBarButton.cs: Implement Name.
10911
10912 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
10913
10914         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
10915         use current_item, it prevents some NRE. Fixes #81675.  
10916
10917 2007-05-22  Andreia Gaita  <avidigal@novell.com>
10918
10919         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
10920         without updating the text.
10921
10922 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
10923
10924         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
10925         without calling DeleteObject.  [Should fix bug #81709]
10926
10927 2007-05-22  Jackson Harper  <jackson@ximian.com>
10928
10929         * RichTextBox.cs: Set the line endings correctly, when flushing
10930         RTF text.
10931
10932 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
10933
10934         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10935          {Width=0,Height=0}.
10936
10937 2007-05-22  Jackson Harper  <jackson@ximian.com>
10938
10939         * TreeView.cs: Setting top with a null node should set to the very
10940         top.
10941
10942 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10943
10944         * Form.cs: ShowDialog: destroy the handle when message loop is
10945           finished, matches MS behaviour. Refactor parts of WmClose into
10946           RaiseCloseEvents, that only raises events if they haven't already
10947           been raised. Fixes #81688 and #81521.
10948         * Application.cs: Don't call close on the form when exiting a modal
10949           loop, it will raise all the (Form)Closed/Closing events again if
10950           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10951           which doesn'r raise any events it they have been raised before.
10952
10953 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
10954
10955         * Control.cs: Add OnPrint.
10956         * ToolStrip.cs: Add GetChildAtPoint.
10957         * ToolStripContainer.cs: Add OnRightToLeftChanged.
10958         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10959
10960 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
10961
10962         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
10963
10964 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10965
10966         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10967           isn't visible anymore. Fixes #81651.
10968
10969 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10970
10971         * Control.cs: WmShowWindow: Update children's z-order after setting
10972           their parent. SetParent may show the window, thereby corrupting
10973           z-order, since the window will be shown on top.
10974         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10975           multiple (and redundant) WM_SHOWWINDOW messages.
10976         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10977           event has already been raised.
10978         * Form.cs: Change is_changing_visible_state to a counter, since
10979           SetVisibleCore can be called recursively. CreateHandle: when
10980           creating mdi children, send (De)Activated events.
10981         * MdiClient.cs: Update use of is_changing_visible_state.
10982         * Application.cs: OnThreadException: Surround exception handling with
10983           try/finally to ensure we always reset the error-handling state
10984           before leaving.
10985
10986 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10987
10988         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10989           (#81704).
10990
10991 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10992
10993         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10994         SmallIcon views, now that we have a standarized horizontal spacing.
10995
10996         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10997         4, just like the other views (Match .Net).
10998
10999 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
11000
11001         * Control.cs: Delay calculating anchor distances until we actually layout.
11002         Always query the WM for the actual size and location it put us at instead of
11003         only when we send negative values.
11004         [Fixes bugs #81694, 81695]
11005
11006 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11007
11008         * Application.cs: Avoid a possible stack overflow when trying to exit
11009           the application.
11010
11011 2007-05-19  Marek Safar  <marek.safar@gmail.com>
11012
11013         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
11014         enum value.
11015
11016 2007-05-19  Andreia Gaita  <avidigal@novell.com>
11017
11018         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
11019         * NumericUpDownAcceleration.cs, 
11020           NumericUpDownAccelerationCollection.cs: Added 2.0
11021           implementation.
11022
11023 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
11024
11025         * RichTextBox.cs: Recalculate the document after the ScrollBars
11026         property is changed. Fixes bug #81681.
11027
11028 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11029
11030         * DataObject.cs: Implement 2.0 methods.
11031
11032 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11033
11034         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
11035         in the center of the checkbox, not in the left-top corner. 
11036         Fixes #80037.
11037
11038 2007-05-18  Jackson Harper  <jackson@ximian.com>
11039
11040         * RichTextBox.cs: Recalculate the document after the scrollbars
11041         property is changed.
11042         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
11043         81486.
11044
11045 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11046
11047         * CreateParams.cs: Make HasWindowManager marginally faster.
11048         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
11049           into Hwnd so that other drivers can use it as well.
11050         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
11051           the default location from Hwnd. Fixes MDI client windows always
11052           showing up at (0,0) in Windows (Win32 won't set the default
11053           location since the window styles aren't correct).
11054
11055 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
11056
11057         * TreeView.cs: Modified DoubleBuffered to just use the base
11058         implementation.
11059
11060 2007-05-18  Jackson Harper  <jackson@ximian.com>
11061
11062         * TreeView.cs: Set the top node to the last child node when
11063         expanding all
11064         - When we get focus, if there is no selected node, use the top
11065         node.
11066
11067 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
11068
11069         * KeysConverter.cs: Add CanConvertTo.
11070         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
11071         * LinkConverter.cs: Added.
11072
11073 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11074
11075         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
11076         it prevents error when file dont have write access. Fixes #81669 and #81667.  
11077
11078 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11079
11080         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
11081         button text. Fixes #79640.  
11082
11083 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11084
11085         * Control.cs: According to MSDN controls created in the designer theres 
11086         keyboard accelerators visible by default. So included check for design
11087         in ShowKeyboardCuesInternal.  
11088
11089 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11090
11091         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
11092         text. Fixes #81621.  
11093
11094 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
11095
11096         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
11097         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
11098
11099 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11100
11101         * Control.cs: Finish implementation of UI State using WmChangeUIState
11102         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
11103         in some controls to check for show_keyboard_cues to draw accell keys "_".  
11104
11105 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11106
11107         * ListBox.cs: When calculating the horizontal scrollbar
11108         in single column mode, don't use values less than 0 for
11109         Maximum. Fixes #81474.
11110
11111 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11112
11113         * ListBox.cs: Throw the some missing exceptions in
11114         ListBox.ObjectCollection methods.
11115
11116 2007-05-17  Jackson Harper  <jackson@ximian.com>
11117
11118         * TextBoxBase.cs: Recalculate the document when the word wrap
11119         value has changed. This fixes 81488.
11120
11121 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11122
11123         * Clipboard.cs: Implement missing GetText overload.
11124
11125 2007-05-17  Chris Toshok  <toshok@ximian.com>
11126
11127         * Control.cs (CheckDataBindings): remove the binding_context arg
11128         to binding.Check.
11129
11130         * CurrencyManager.cs (OnItemChanged): fix this now that
11131         BindingManagerBase is fixed. also remove the comment telling where
11132         the fix should go.  We set transfering_data to true/false around
11133         the call to PushData to keep UpdateIsBinding from being called.
11134         (ListChangedHandler): remove the extra OnMetaDataChanged call for
11135         PropertyDescriptorAdded in the 1.1 case.  The extra call is
11136         actually generated by System.Data generating 2 metadata changed
11137         events of its own per column add.  The fix should go there.  Add a
11138         comment to that affect in our test's Assert.Ignore.
11139
11140         * BindingManagerBase.cs: Rework PullData and PushData slightly.
11141         we keep a boolean flag (transfering_data) that keeps us from
11142         calling UpdateIsBinding multiple times if we re-enter either of
11143         them.
11144
11145         * ControlBindingsCollection.cs (AddCore): remove the
11146         binding_context arg to binding.Check.
11147
11148         * Binding.cs (IsBinding): don't check if we're binding here, just
11149         return our cached value.  we update it in UpdateIsBinding.
11150         (Check): don't take the binding_context arg, we'll just use our
11151         control's.  Also, for some reason MS doesn't use the data member
11152         field when getting the bindingmanager for this binding.  it just
11153         uses the datasource.  Make this method callable multiple times,
11154         and only do the is_null_desc stuff if manager.Position != -1 (so
11155         we don't get an exception accessing manager.Current).
11156         (UpdateIsBinding): move the code from IsBinding here.
11157         (PositionChangedHandler): call Check here to we can initialize
11158         things that require a non- -1 position.
11159
11160 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11161
11162         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
11163         control.
11164
11165 2007-05-17  Andreia Gaita  <avidigal@novell.com>
11166
11167         * TabControl.cs: Add 2.0 methods and events, including
11168         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
11169         * TabPage.cs: Add 2.0 methods
11170
11171 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
11172
11173         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
11174         keyboard_cues is properly handled by message method.  
11175
11176 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11177
11178         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
11179
11180 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
11181
11182         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
11183
11184 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
11185
11186         * Control.cs: 
11187         - WmUpdateUIState added to handle state changes, it make call to
11188         OnChangeUICues event.
11189         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
11190         SystemInformation.
11191
11192 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
11193
11194         * ImageKeyConverter.cs: Added.
11195         * TreeViewImageKeyConverter.cs: Added.
11196
11197 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11198         
11199         * ToolTips.cs: Update Text if SetToolTip is called for a control
11200         already showing the tooltip, as well as restarting its timer; show
11201         tooltip if we are inside the control bounds by the time of calling
11202         SetToolTip. Inside ShowTooltip remove the check to not show the 
11203         tooltip again for the active control (it is allowed by .Net to 
11204         show the tooltip on the same control multiple times).
11205
11206 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11207
11208         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11209
11210 2007-05-16  Andreia Gaita <avidigal@novell.com> 
11211
11212         * ContainerControl.cs: only process tab key if there are no 
11213         modifier keys present, otherwise the control does the 
11214         tab processing, if it needs to. Fixes #81622
11215         * TabControl.cs: Fixes calculation for which tab to select on
11216         shift+ctrl+tab.
11217
11218 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11219
11220         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
11221
11222 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
11223
11224         * Control.cs: Make IsInputCharInternal to allow controls to
11225         override it and still match MS API.
11226         * TextBoxBase.cs: Override IsInputCharInternal and always
11227         return true.
11228         [Fixes bug #81616]
11229
11230 2007-05-15  Jackson Harper  <jackson@ximian.com>
11231
11232         * TextBox.cs: Disable some of the menu options when using a
11233         readonly textbox.
11234
11235 2007-05-15  Jackson Harper  <jackson@ximian.com>
11236
11237         * TextBox.cs:
11238         * TextBoxBase.cs:
11239         * RichTextBox.cs: Some new 2.0 methods
11240
11241 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
11242
11243         * FileDialog.cs: On 1.0 profile, do not support multidotted 
11244         extensions.
11245
11246 2007-05-14  Jackson Harper  <jackson@ximian.com>
11247
11248         * TextBoxBase.cs: Implement some of the new 2.0 methods.
11249         * RichTextBox.cs: We need to override these methods on 2.0.
11250         * MaskedTextBox.cs: These are implemented now
11251         * TextControl.cs: This was off by one.
11252
11253 2007-05-14  Jackson Harper  <jackson@ximian.com>
11254
11255         * TextControl.cs: Because the line endings are including in the
11256         text, we don't need to add them in anymore.
11257
11258 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11259
11260         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
11261         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
11262
11263 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11264
11265         * ToolBar.cs: Adjust size to default size when button theres no text and
11266         image, it fixes remaining issues from #81524.
11267
11268 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11269
11270         * ToolBar.cs: 
11271         - When not flat call redraw to recalculate sizes on creare handle to match
11272         win32 behavior.
11273         - Revert 77220 because it causes some regressions in toobar
11274         button.
11275
11276 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11277
11278         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
11279           now actually enters a usable state.
11280
11281 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11282
11283         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
11284         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
11285         3 buttons.
11286
11287 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11288
11289         * ToolBar.cs: Save default_size on create handle to use later for buttons
11290         without text, needed to mimic win32 behavior.
11291
11292 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
11293
11294         * ToolBar.cs: Fix button layour to best fit width or height according to
11295         vertical or not. Fixes #81524.
11296
11297 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11298
11299         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
11300         toolbar size info because different styles theres different sizes.
11301         Fixes #81522.
11302
11303 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11304
11305         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
11306         if we are using checkboxes, checked is true, and we have less
11307         than two images in StateImageList; for the 1.1 in the same scenario
11308         draw the first image if we have at least one image in StateImageList.
11309         Fixes part of #81191.
11310
11311 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11312
11313         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
11314         the owner's Items collection on merge.
11315
11316 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11317
11318         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
11319         * ToolStripItemCollection.cs: Lots of fixes to when events get called
11320         and parent/owner gets changed based on gert's unit tests.
11321
11322 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11323
11324         * MaskedTextBox.cs: Started implementing parts of it.
11325
11326 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11327
11328         * ListView.cs: When clicking the checkbox on the items
11329         take into account the double clicks even if we have only
11330         one image in StateImageList (only for 1.0/1.1). Also 
11331         generate an extra change of checked state when we receive
11332         the second click on checkbox (match .Net behaviour). 
11333         Fixes part of #81191.
11334
11335 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
11336
11337         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
11338
11339 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
11340
11341         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
11342         even if OnLoad is overriden and base.OnLoad is not called.
11343         [Fixes bug #81582]
11344
11345 2007-05-10  Andreia Gaita  <avidigal@novell.com>
11346
11347         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
11348         shame. (I blame my ever-persisting and annoying cold)
11349
11350 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11351
11352         * ListView.cs: Don't eat navigation keys.  Let them flow through to
11353         KeyDown/KeyPress routines.  [Fixes bug #81569]
11354
11355 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11356
11357         * ListView.cs: When handling keys for selecting the item based off
11358         keyboard input, do not consider keys pressed with Alt or Control.  Also,
11359         correctly handle keys when the Shift key is down. [Fixes bug #81578]
11360
11361 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11362
11363         * Control.cs: When using UseWaitCursor, we have to store the requested
11364         Cursor to use when UseWaitCursor is turned off.
11365
11366 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
11367
11368         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
11369         to false.
11370         * Application.cs: Use PreProcessControlMessage instead of
11371         PreProcessMessage.
11372         * PreProcessControlMessage.cs: Make internal for 1.1.
11373
11374 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11375
11376         * Control.cs: Add InternalContains focus property, which hast the same
11377         functionality of ContainsFocus, but also including implicit controls.
11378         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
11379         since we need to know if the focus is contained in our implicit
11380         ItemControl when calculating Layout. Fixes part of #80888.
11381
11382 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
11383
11384         * ToolTip.cs: Remove center form string alignment as it must be align to
11385         left.
11386
11387 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
11388
11389         * ToolStripItemCollection.cs: Set the new item's parent and owner
11390         in Insert like we do in Add.  [Fixes bug #81568]
11391
11392 2007-05-08  Jackson Harper  <jackson@ximian.com>
11393
11394         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
11395         - Off by one error in SetTop
11396         - Disable DoubeBuffering
11397         
11398 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11399
11400         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
11401           control as much as necessary in order to make it entirely visible,
11402           instead of centering the control in the container (matches MS
11403           behaviour). CalculateCanvasSize: we need to take the current scroll
11404           position into account when calculating the maximum canvas,
11405           otherwise the following scenario will fail: resize so that the
11406           scrollbars appear, use the scrollbars to scroll, resize again
11407           smaller, and now the canvas size is too small. Recalculate: when
11408           showing scrollbars make sure they start off at 0, and try to scroll
11409           the active control into view. Fixes #79540. HandleScrollBar: don't
11410           scroll anywhere if the scrollbar isn't visible.
11411
11412 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11413
11414         * ListView.cs: When focus changed, call Layout/Invalidate
11415         in the focused item to update the selected state (should show
11416         entire label when ListView is focused, and a part of it if is not).
11417         * ListViewItem.cs: When doing layout for LargeIcon, take into account
11418         for displaying the entire label not only the Focused state of the
11419         item, but also the Focused state of the ListView (match .Net
11420         behaviour).
11421
11422 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11423
11424         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
11425         Implement UseWaitCursor. 
11426
11427 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11428         Applying contributed patch from Sergey Volk.
11429
11430         * Clipboard.cs: Implement SetDataObject retry logic and new overload
11431         of SetDataObject.
11432         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
11433
11434 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11435
11436         * Control.cs: Implement DrawToBitmap.
11437
11438 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11439         Applying contributed patch from Stefan Noack.
11440         
11441         * Control.cs: Add [Get|Set]AutoSizeMode.
11442
11443 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11444
11445         * MdiClient.cs: Unmerge menus when the last child is closed.
11446
11447 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
11448
11449         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
11450         * ToolStripManager.cs: Call Merge on DropDowns.
11451         [Fixes bug #81477]
11452
11453 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11454
11455         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
11456           uints.
11457         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
11458           visibility. We can't create forms visible, since we have to set the
11459           owner before making the form visible (otherwise Win32 will do
11460           strange things with task bar icons). The problem is that we set the
11461           internal is_visible to true before creating the control, so
11462           is_changing_visible_state is the only way of determining if we're
11463           in the process of creating the form due to setting Visible=true -
11464           this works because SetVisibleCore explicitly makes the form
11465           visibile afterwards anyways. Fixes #80775.
11466
11467 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11468
11469         * ThemeWin32Classic.cs: When drawing ListViewItems,
11470         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
11471         or LargeIcon _and_ item is not focused (match .Net behaviour).
11472
11473 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11474
11475         * Control.cs, Form.cs: Fix some obsolete method warnings.
11476
11477 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
11478
11479         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
11480         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
11481
11482 2007-05-04  Andreia Gaita  <avidigal@novell.com>
11483
11484         * ContainerControl.cs: Fix active_control attribution when going
11485         up the parent chain so that the first parent container gets the control
11486         and the rest of the parent containers get the child containers (skips
11487         non-containers). Fixes #80729
11488
11489 2007-05-04  Randolph Chung  <tausq@debian.org>
11490
11491         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
11492         [Fixes bug #81499]
11493
11494 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11495
11496         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
11497           takes a size parameter, since the CreateParam's size isn't true for
11498           minimized forms. Fixes #81518,
11499
11500 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11501
11502         * Form.cs: Add OnDeactivateInternal.
11503         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
11504
11505 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11506
11507         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
11508           accessing the parent. Fixes #81508.
11509
11510 2007-05-03  Chris Toshok  <toshok@ximian.com>
11511
11512         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
11513         2.0 block, pass listposition + 1 to ChangeRecordState when a row
11514         was added before the current listposition.  Fixes the
11515         TestInsertRowBeforeCurrent unit test.
11516
11517 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
11518
11519         * Application.cs: Add RaiseIdle.
11520         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11521         XplatUIX11.cs: Implement RaiseIdle.
11522
11523 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
11524         corcompare work: N - Z
11525         * NotifyIcon.cs
11526         * ProgressBar.cs
11527         * RadionButton.cs
11528         * ScrollableControl.cs
11529         * SplitContainer.cs
11530         * SplitterPanel.cs
11531         * StatusBar.cs
11532         * SystemInformation.cs
11533         * TabControl.cs
11534         * TableLayoutControlCollection.cs
11535         * TableLayoutPanel.cs
11536         * TabPage.cs
11537         * ToolBar.cs
11538         * ToolBarButton.cs
11539         * ToolStrip.cs
11540         * ToolStripComboBox.cs
11541         * ToolStripContainer.cs
11542         * ToolStripContentPanel.cs
11543         * ToolStripDropDown.cs
11544         * ToolStripDropDownItem.cs
11545         * ToolStripDropDownMenu.cs
11546         * ToolStripItem.cs
11547         * ToolStripItemCollection.cs
11548         * ToolStripMenuItem.cs
11549         * ToolStripPanel.cs
11550         * ToolStripSplitButton.cs
11551         * ToolTip.cs
11552         * TreeNode.cs
11553         * TreeNodeCollection.cs
11554         * TreeNodeMouseHoverEventArgs.cs
11555         * TreeView.cs
11556
11557 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
11558
11559         * ContextMenu.cs: Add public method Show with alignment property to 2.0
11560         stuff. Thanks aatdark for the patch. 
11561
11562 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11563
11564         * GridItem.cs: Implement 2.0 Tag property.
11565
11566 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
11567
11568         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
11569         count instead of Nodes.Length.  [Fixes bug #81448]
11570
11571 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11572
11573         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
11574         [Fixes bug #81506]
11575
11576 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11577         corcompare work: A - M
11578         * BindingNavigator.cs
11579         * Button.cs
11580         * ButtonBase.cs
11581         * CheckBox.cs
11582         * Control.cs
11583         * FlowLayoutPanel.cs
11584         * Form.cs
11585         * Label.cs
11586         * LinkLabel.cs
11587         * ListView.cs
11588
11589 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
11590
11591         * Application.cs: Give toolstrips a chance to process mnemonics.
11592         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
11593         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
11594         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
11595
11596 2007-05-01  Jackson Harper  <jackson@ximian.com>
11597
11598         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
11599         wider area too.
11600         - Don't set the BoundsSpecified
11601
11602 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11603
11604         * Application.cs: When using the toolstrip shortcut mechanism, allow the
11605         message to pass through to a regular control if it hosted by a toolstrip.
11606         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
11607         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
11608
11609 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11610
11611         * TextRenderer.cs: Use the flags argument when using the MeasureString
11612         fallback algorithm.
11613
11614 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
11615
11616         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
11617         the MDI menu item.  [Fixes bug #81483]
11618
11619 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
11620
11621         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
11622         string. When setting Name to null, use zero-length string instead.
11623
11624 2007-04-29  Andreia Gaita  <avidigal@novell.com>
11625
11626         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
11627         DeselectTab). Implement missing 2.0 TabPageCollection methods
11628         (Add, ContainsKey, RemoveByKey, IndexOfKey)
11629
11630 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
11631
11632         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
11633
11634 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
11635
11636         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
11637         Fixes bug #81479. Include details of exception when LoadFile fails.
11638
11639 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
11640
11641         * DrawListViewSubItemEventArgs.cs: Added missing setter
11642
11643 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11644
11645         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
11646         Hide methods (not complete). Implement missing 2.0 OnPopup event.
11647
11648 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11649
11650         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11651         removed in ly last commit (it was breaking the Label edit feature).
11652
11653         * ThemeWin32Classic.cs: When drawing a ListViewItem use
11654         StringAlignment.Near for LineAlignment (match .Net).
11655
11656 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11657
11658         * TabControl.cs: Change SetTab so it adds the tabpage to the list
11659         of controls if it isn't already there - was blowing up when doing
11660         tabcontrol.TabPages[i]=new TabPage(). 
11661         SetTab now does a replace by removing the page at the index. 
11662         Add a new InsertTab method that inserts a page in a given index 
11663         instead of replacing. 
11664         Implements TabPageCollection.Insert(int, TabPage).
11665
11666 2007-04-27  Chris Toshok  <toshok@ximian.com>
11667
11668         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11669         internal handler that can be invoked from our subclasses.)  Also,
11670         add a comment to PushData about how we need to fix it.
11671
11672         * CurrencyManager.cs: tons of changes here.  trying to get things
11673         matching the behavior of .net wrt event orders (ItemChanged,
11674         CurrentChanged, PositionChanged.)  I've implemented a private .net
11675         symbol (ChangeRecordState) that appears in stack traces because
11676         it's actually easier to do this than to effective inline all its
11677         various behaviors at every call site.
11678
11679         * RelatedPropertyManager.cs: guard against an exception here by
11680         not using parent.Current if the position is set to -1 (if the
11681         parent datasource is cleared, for instance).
11682
11683         * Binding.cs: don't parse data in PushData (this might be wrong,
11684         but it jives with MS's behavior.)  Also, don't call PushData when
11685         we get a CurrentChanged event.
11686
11687 2007-04-27  Andreia Gaita  <avidigal@novell.com>
11688
11689         * WebBrowser.cs,
11690           WebBrowserBase.cs,
11691           WebBrowserSiteBase.cs,
11692           HtmlDocument.cs: Added stubbed out classes, no real implementations 
11693           yet.
11694
11695 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11696
11697         * MainMenu.cs: In draw method without parameters call draw method with 
11698         PaintEvent, another one (just rect) adjust rectangle and we dont need it
11699         as Rect property is already adjusted. Fixes #80694.
11700
11701 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
11702
11703         * Application.cs: Need to handle keyboard menu deselection here.
11704         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11705         navigation, allowing keyboard to work on X11.
11706         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11707
11708 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11709
11710         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11711         menu bar. It fixes some drawing issues in menu bar.
11712
11713 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
11714
11715         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
11716         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11717         when <alt> key is pressed.
11718
11719 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
11720
11721         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
11722         example just set visible to false and make this prevent from other problems.
11723         In SystrayAdd always remove pending expose. Fixes #81072.
11724
11725 2007-04-26  Marek Safar  <marek.safar@gmail.com>
11726
11727         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11728         value is set.
11729
11730 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11731
11732         * ListView.cs: Added three missing 2.0 events and corresponding
11733         EventHandlers. Added the OwnerDraw property.
11734         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
11735
11736 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11737
11738         * DrawListViewItemEventArgs.cs
11739         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
11740
11741 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
11742
11743         * TextControl.cs: Fixed typo in constructor
11744
11745 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
11746
11747         * Application.cs: Create a shortcut path so that currently selected
11748         MenuStrips can intercept keyboard events without having focus.
11749         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
11750         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
11751         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
11752         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
11753         generate WM_SYSCOMMAND message in X11 for other platforms.
11754         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
11755         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
11756         * ToolStripSplitButton.cs: Add DefaultItem property.
11757         
11758 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
11759
11760         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
11761         fixes some menu draw problem on Windows with border diferent from default
11762         it also fixes #81403.
11763
11764 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11765
11766         * Form.cs: Refactor WndProc into separate methods, just like Control is
11767           doing it.
11768
11769 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11770
11771         * Control.cs: set_Text: move the call to the driver into a seperate
11772           virtual method so that Form can override it.
11773         * MaskedTextBox.cs: Corcompare fixes.
11774         * Form.cs: Override UpdateWindowText and only update the styles if the
11775           form has been shown (fixes #81405).
11776
11777 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
11778
11779         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
11780         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
11781         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
11782         the form lost focus or another control was clicked.
11783
11784 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
11785
11786         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
11787         fixed.
11788
11789 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11790
11791         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
11792           DrawListViewItemEventHandler.cs,
11793           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
11794           Added.
11795         * X11Structs.cs: More ToString implementation.
11796
11797 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
11798
11799         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
11800         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
11801
11802 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11803
11804         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
11805           handle.
11806         * FormCollection.cs: Don't add a form if it's already in the
11807           collection.
11808         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
11809           according to behaviour and MSDN. The ownerWin32 is the active
11810           window at the moment when we call ShowDialog, not the context's
11811           main form (the context's main form may open another form that opens
11812           a form with ShowDialog, the win32 owner is the second form). Add
11813           and remove forms to the Application.OpenForms in other places to
11814           better match MS behaviour. Add an IsActive property that raises
11815           On(de)Activated only if the active state has changed (we were
11816           raising OnDeactivated before OnActivated while creating forms).
11817         * Application.cs: Refactor Enabling/Disabling of windows for modal
11818           dialog loops out to separate methods, and restore the thread
11819           context when we quit the method. Fixes #81407.
11820
11821 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11822
11823         * ListView.cs: In ItemControl.HandleClicks, also fire 
11824         2.0 MouseClick or MouseDoubleClick events on the parent,
11825         not only the Click/DoubleClick events.
11826
11827 2007-04-24  Andreia Gaita  <avidigal@novell.com>
11828
11829         * TableLayoutSettings.cs: 
11830         - Added a GetControls method and a support structure to help the 
11831         TypeConverter to enumerate the controls for     serialization. 
11832         - Added a new serialization constructor. 
11833         - Added a isSerialized flag initialized to true on the 
11834         serialization constructor so that the TableLayoutPanel.LayoutSettings 
11835         setter does not throw the designed NotSupportedOperation exception
11836         when the object is built through deserialization.
11837         - Implemented GetObjectData
11838         
11839         * TableLayoutPanel.cs: Added check on LayoutSettings.
11840
11841 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11842
11843         * ListView.cs: Report Click and DoubleClick events to the parent
11844         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
11845         from breaking the click count state when using dialog forms (Control
11846         reports the clicks in a similar fashion). In the previous behaviour
11847         the last WM_LBUTTONUP message in a  double click was sent to the
11848         ListView's form, instead of the ListView, which was breaking the click
11849         count for it. Fixes #80387.
11850
11851 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
11852
11853         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
11854
11855 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
11856
11857         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
11858         us from created dropdowns for menu items that do not have subitems.
11859         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
11860         Check HasDropDownItems before calling DropDown so a dropdown will not be
11861         created if it isn't needed.
11862
11863 2007-04-24  Jackson Harper  <jackson@ximian.com>
11864
11865         * TreeView.cs: Set the first node to the selected node when we get
11866         focus if there is no selected node.
11867
11868 2007-04-24  Andreia Gaita  <avidigal@novell.com>
11869
11870         * MimeIcon.cs: remove using blocks so that image streams are
11871         not disposed of. Fixes #80151
11872
11873 2007-04-24  Jackson Harper  <jackson@ximian.com>
11874
11875         * TextBoxBase.cs: Fixup the height of textboxes when the control
11876         is created.
11877
11878 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
11879
11880         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
11881         for each ToolStripItem when the parent's RightToLeftChanged is called.
11882
11883 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11884
11885         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
11886           Fixes #80163.
11887         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
11888           property, so that the setter can be overriden too.
11889         * TextBox.cs: Change GetContextMenuInternal() to use
11890           ContextMenuInternal.
11891
11892 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11893
11894         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11895           #81406.
11896
11897 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11898
11899         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11900           #81406.
11901
11902 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11903
11904         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
11905           avoid duplicate work. Mostily skeleton code, it's not working at
11906           all yet.
11907
11908 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
11909
11910         * NotifyIcon.cs : stub for MouseClick event
11911         * Application.cs: stub for SetUnhandledExceptionMode
11912
11913 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
11914
11915         * BindingNavigator.cs : Initial (partial) implementation
11916
11917 2007-04-23  Jackson Harper  <jackson@ximian.com>
11918
11919         * TreeView.cs: Do not create the treeview's handle when setting
11920         the scroll position.
11921         - ExpandAll needs to compute the scrollbars so it knows which
11922         position to set the bar too.
11923         * TreeNode.cs: 
11924         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
11925
11926 2007-04-23  Jackson Harper  <jackson@ximian.com>
11927
11928         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
11929         key. Fixes #81408.
11930
11931 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
11932
11933         * ToolStripItem.cs: Make GetImageSize internal.
11934         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
11935         need to draw an item.  Fixes a reported issue where images on menus
11936         that were not 16x16 were drawing incorrectly.
11937
11938 2007-04-21  Miguel de Icaza  <miguel@novell.com>
11939
11940         * Padding.cs: Use the converter, fixes the resgen2 issue with
11941         XMLNotePad. 
11942
11943 2007-04-21  Jackson Harper  <jackson@ximian.com>
11944
11945         * TreeView.cs: Dont try to unhighlight the selected node if there
11946         isn't a selected node.
11947
11948 2007-04-21  Jackson Harper  <jackson@ximian.com>
11949
11950         * UpDownBase.cs:
11951         * TextBoxBase.cs:
11952         * ListView.cs:
11953         * ListBox.cs:
11954         * TreeView.cs: Use the InternalBorderStyle property to set the
11955         initial border style, this forces the client rectangle to be sized
11956         correctly.
11957
11958 2007-04-20  Jackson Harper  <jackson@ximian.com>
11959
11960         * TreeView.cs: Simplify scrolling to the last node after expanding
11961         all.
11962         - Fix some off by ones with setting the bottom.
11963
11964 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
11965
11966         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11967         that.  We were incorrectly doing it the other way around.  Also,
11968         update ClientSize if we change the BorderStyle before the control
11969         is created.
11970
11971 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11972
11973         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11974         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11975         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11976         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11977         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11978         Caption to CaptionHeight.
11979         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11980         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11981         and FixedFrameBorderSize to return value from current XplatUI driver.
11982         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11983         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11984         and FixedFrameBorderSize using win32 API. Renamed Caption to
11985         CaptionHeight.
11986         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11987         * SystemInformation.cs: Fixed typo in BorderSize.
11988
11989 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
11990
11991         * XplatUI.cs: Added MenuAccessKeysUnderlined.
11992         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11993         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11994         returning false.
11995         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11996         value from XplatUI driver.
11997         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11998         SystemParametersInfo.
11999         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
12000         override.
12001         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
12002         returning false.
12003
12004 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12005
12006         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
12007
12008 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12009
12010         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
12011
12012 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
12013
12014         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
12015         MenuStrips that contain ToolStripSeparators.
12016
12017 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12018
12019         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
12020           DefineStdCursorBitmap.
12021         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
12022           has been created off a standard cursor. This is used to get a
12023           bitmap of the standard cursor when Draw or DrawStretched is called
12024           in order to draw the cursor.
12025         * X11Structs.cs: Added XcursorImage and XcursorImages.
12026         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
12027           DefineStdCursorBitmap.
12028         * Cursors.cs: Update all relevant creations of Cursor to use the new
12029           internal constructor.
12030
12031 2007-04-19  Jackson Harper  <jackson@ximian.com>
12032
12033         * TextBox.cs: Move the has_been_focused into the base control, so
12034         some of the text adding methods can manipulate it (probably time
12035         for a better name for this flag too).
12036         - Call a new version of selectall that doesn't scroll
12037         * TextBoxBase.cs: When we append text, if the document is empty,
12038         don't scroll.  If the document has text already, we scroll to the
12039         end of the appended text.
12040         - When the text is changed, we reset the has_been_focused, so the
12041         next time the control gets focused, all the text is selected.
12042
12043 2007-04-19  Jackson Harper  <jackson@ximian.com>
12044
12045         * TextControl.cs: Move the margins to the document, add a method
12046         so the margin sizes can be updated.
12047         * TextBoxBase.cs: When the border style is changed, update the
12048         border sizes.
12049
12050 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
12051
12052         * Control.cs: Respect DefaultPadding.
12053         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
12054         padding into account.
12055         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
12056
12057 2007-04-19  Jackson Harper  <jackson@ximian.com>
12058
12059         * TextControl.cs: Oops, we need to use the ClientRect not the
12060         bounds here.
12061
12062 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12063
12064         * ListView.cs: In ItemControl.ItemsMouseDown, take into
12065         account the double clicks when CheckBoxes are used and
12066         the pointer is inside the checkbox. Fixes part of #81191.
12067
12068 2007-04-18  Jackson Harper  <jackson@ximian.com>
12069
12070         * TextControl.cs: Pressing the end key shouldn't move the caret
12071         past the line ending.
12072         * TextBoxBase.cs: We can still delete if we are in the line
12073         ending and the combine will just kill the existing line ending.
12074
12075 2007-04-18  Jackson Harper  <jackson@ximian.com>
12076
12077         * TextControl.cs: We can't move lines, then invalidate their
12078         bounds, we need to get the old bounds and combine that with the
12079         new bounds.
12080         * TextBoxBase.cs: Before combining two lines for a delete, we need
12081         to invalidate the area of the old line, since that will be moved
12082         in the combine operation.
12083
12084 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
12085
12086         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
12087         with transparent background. Fixes #80482.
12088
12089 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
12090
12091         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
12092         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
12093         [Fixes bug #81391]
12094
12095 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12096
12097         * CreateParams.cs: Add a couple of helper methods and do a less string
12098           concatenation in ToString.
12099         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
12100           overload that takes a Control parameter, since this method may be
12101           called before a control is assigned to the hwnd (from
12102           CreateWindow), and update CreateWindow to use the new overload. In
12103           GetMenuOrigin subtract the title bar from the y position if the
12104           form has a window manager (since we're painting it and not X).
12105         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
12106           CreateParams to calculate the origin (since border sizes may vary).
12107           In ScreenToMenu only subtract the title height if we actually have
12108           a title.
12109         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
12110           mdi children never have menus of themselves.
12111         * InternalWindowManager.cs: Implement menu handling like form does.
12112           Added GetMenuOrigin to calculate the menu origin, can't use the
12113           CreateParams from the form like normally since it's lying.
12114         * Hwnd.cs: Implement GetBorderSize better (in the sense more
12115           windows-like) and add Inflate and comparison operators to the
12116           Borders type. When calculating MenuOrigin and it's a form with a
12117           window manager, use the window manager to calculate it.
12118
12119 2007-04-17  Chris Toshok  <toshok@ximian.com>
12120
12121         * Control.cs (CreateControl): turns out in 2.0 we don't need this
12122         OnBindingContextChanged thing here.  It's only generated from
12123         ContainerControl.OnCreateControl.  Fixes a newly written unit test
12124         - BindingTest.BindingContextChangedTest4.
12125         
12126 2007-04-17  Jackson Harper  <jackson@ximian.com>
12127
12128         * ScrollBar.cs: When setting values, make sure the current
12129         position stays within the new values range.
12130
12131 2007-04-17  Chris Toshok  <toshok@ximian.com>
12132
12133         * Control.cs (CreateControl): talk about a bizarre corner case.
12134         Don't emit OnBindingContextChanged here if we're a parentless
12135         control (i.e. if we're a form.).  Fixes
12136         BindingTest.BindingContextChangedTest2.
12137
12138 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12139
12140         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
12141         from win32. Fixes #81255.
12142
12143 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
12144
12145         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
12146         already present in CalculateButtonTextAndImageLayout.
12147
12148 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12149
12150         * XplatUIX11.cs: When setting min/max size for a window we need to
12151           translate the coordinates to x coordinates. Create an overload of
12152           SetWindowMinMax that takes a CreateParams handling this, and change
12153           SetWMStyles to call this function (can't use Control.FromHandle in
12154           the SetWindowMinMax to get the control/CreateParams from the handle
12155           because the handle might not have been assigned to the control
12156           yet). Fixes #81371.
12157
12158 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12159
12160         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
12161         if StateImageList is non-null and it has less than two items (match MS
12162         behaviour). Also, in HandleNavKeys handle the Space key, calling
12163         the new ToggleItemsCheckState method, which tries to change the
12164         checked state of the selected items. Fixes part of #81191.
12165
12166 2007-04-16  Jackson Harper  <jackson@ximian.com>
12167
12168         * RichTextBox.cs: namespace cleanup.
12169
12170 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12171
12172         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
12173
12174 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
12175
12176         [Fixes #79447]
12177         * Control.cs: Call invalidate in set_Region.
12178
12179         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
12180         it dont works here.
12181
12182 2007-04-16  Jackson Harper  <jackson@ximian.com>
12183
12184         * TextBoxBase.cs: When enter is pressed, we need to update all
12185         lines below the current.
12186
12187 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
12188
12189         * MdiClient.cs: Implement implicit menu merging for MDI
12190         children.  When a child form is active, if it has a menustrip
12191         and the parent form has a MainMenuStrip, automatically merge
12192         the menus.
12193
12194 2007-04-15  Andreia Gaita  <avidigal@novell.com>
12195
12196         * TabControl.cs: Refactored sizing methods to not repeat
12197         code all over the place. Tab bounds are now calculated
12198         as if alignment is top and single line, and only when 
12199         setting the bounds are the positions adjusted according
12200         to alignment. Replaced hardcoded positions, spacings and
12201         paddings by getting the values the ThemeEngine. 
12202         Fixes #79619.
12203         
12204         * Theme.cs: Change TabControl properties and methods so
12205         that all start with TabControl*. Added more properties
12206         to help remove hardcoded values on tabcontrol.
12207         Add CPDrawBorder3D declaration so the Theming classes
12208         can access it.
12209         
12210         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
12211
12212         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
12213         on the Theming namespace, and call the appropriate methods here.
12214         Change CPDrawBorder3D to public.
12215
12216 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12217
12218         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
12219         the control after firing the OnMouseUp event, instead of sending
12220         the message before the mentioned event. This is so we can match the
12221         MS behaviour. Fixes part of #80385.
12222
12223 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12224
12225         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
12226         RightToLeft property.
12227
12228 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
12229
12230         * ToolStrip.cs: Add properties and internal methods to support merging.
12231         * ToolStripItem.cs: Add MergeAction and MergeIndex.
12232         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
12233         not trigger reparenting or layouts.
12234         * ToolStripManager.cs: Add Merge and RevertMerge methods.
12235         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
12236         is hosting the overflow menu.
12237
12238 2007-04-13  Jackson Harper  <jackson@ximian.com>
12239
12240         * TextControl.cs: Set the line ending correctly for the first
12241         inserted line.
12242
12243 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
12244
12245         * Theme.cs: Update GetMethod to get the new definition for 
12246         KnownColors.Update (and fix theme color updates).
12247
12248 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
12249
12250         * MessageBox.cs: Fix some test and button position.
12251
12252 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12253
12254         * Form.cs: Consider the implicit controls in
12255         GetRealChildAtPoint. We need it since this method
12256         is called on Form when handling the some messages in
12257         WndProc, and need to consider those implicit ones too.
12258         Fixes #80385.
12259
12260 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
12261
12262         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
12263         if there are no ShortcutKeys set.
12264         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
12265         set, use it when painting.
12266
12267 2007-04-12  Jackson Harper  <jackson@ximian.com>
12268
12269         * TextControl.cs: Fix some off-by-one issues in line duplication
12270         and insertion in the undo manager. Also, overwrite the first tag
12271         of a line on insert, if it is just a zero lengthed tag. This
12272         prevents us from getting an extra stranded tag at the beginning of
12273         the first line.
12274
12275 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
12276
12277         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
12278         to calculated proper size including when handle was not created yet.
12279
12280 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12281
12282         * MdiWindowManager.cs: When moving a form, allow the form to be moved
12283           when the mouse is outside of it's parent's client rectangle. Fixes
12284           #79982 (take 3, part 2).
12285
12286 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12287
12288         * X11Structs.cs: Add a few ToString() overrides.
12289         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
12290           the window location in a window-manager independent way. Reworked
12291           FrameExtents, it now actually works. Reworked AddConfigureNotify
12292           and ReparentNotify handling to use GetTopLevelWindowLocation
12293           instead of the earlier, more hacky solution. Reworked SetWMStyles,
12294           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
12295           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
12296           for all other windows (fixes #81281 part 1), a toolwindow is hidden
12297           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
12298           and generally refactored to do as few calculations as possible
12299           inside the lock.
12300
12301 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
12302
12303         * Theme.cs: Change "reflective-contract" between MWF and SD to 
12304         minimize # of calls, avoid Color serialization and avoid updating 
12305         every "known colors" each time a single one is updated.
12306
12307 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12308
12309         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
12310         when not readonly and the text is explicitly set. Code style updates.
12311         * DataGridTableStyle.cs: Removed extra line.
12312         * DataGrid.cs: Code style updates. Removed extra whitespace.
12313         * DataGridColumnStyle.cs: Code style updates. Removed extra 
12314         whitespace.
12315
12316 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12317
12318         * XplatUIX11.cs: Added comment that "fixes" #80021.
12319
12320 2007-04-09  Jackson Harper  <jackson@ximian.com>
12321
12322         * TextControl.cs: We don't need this -1 on the line count anymore.
12323
12324 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
12325
12326         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
12327         entered value to underlying type, and convert it back to a string to
12328         apply formatting. Modified GetFormattedValue to use TypeConverter
12329         if available.
12330
12331 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
12332
12333         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
12334         Use SubItems property when we want to ensure there's at least one
12335         subitem. Modified SubItems property to ensure there's always at least
12336         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
12337         the NRE's reported by MS.
12338
12339 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
12340
12341         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
12342         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
12343         Spaces to tabs. Removed extra tabs.
12344
12345 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
12346
12347         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12348         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
12349
12350 2007-04-06  Jackson Harper  <jackson@ximian.com>
12351
12352         * TextBoxBase.cs: When a delete removes a line, recalculate all
12353         lines below that line (they need to get offsets setup correctly)
12354         and invalidate.
12355
12356 2007-04-05  Jackson Harper  <jackson@ximian.com>
12357
12358         * TextControl.cs: We need to invalidate across the width of the
12359         document when we are invalidating multiple lines.
12360         * TextBoxBase.cs: Don't delete into the line ending.
12361
12362 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12363
12364         * ListView.cs: Restore the check for the MouseHover event
12365         in ListView. It looks like the ListView fires more than one MouseHover
12366         event when HoverSelection is true  _only_ in weird-corner scenarios, but
12367         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
12368         event.
12369
12370 2007-04-05  Mike Kestner  <mkestner@novell.com>
12371
12372         * ListView.cs : raise MouseDown before updating selection.
12373         [Fixes #80373 tab 1&3]
12374
12375 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12376
12377         * ToolStripRenderer.cs: Add static method to mirror image.
12378         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
12379         and RightToLeftAutoMirrorImage.
12380         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
12381
12382 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
12383
12384         * ToolStripSplitStackLayout.cs: Support Alignment property.
12385         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
12386
12387 2007-04-05  Jackson Harper  <jackson@ximian.com>
12388
12389         * TextControl.cs: Move around the line endings when crossing line
12390         boundaries.
12391         - When combining lines, strip the ending text off the first line.
12392
12393 2007-04-05  Jackson Harper  <jackson@ximian.com>
12394
12395         * TextControl.cs:
12396         * TextBoxBase.cs: Try to never move the cursor into the line
12397         ending.
12398         
12399 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12400
12401         * ToolStripItem.cs: Make sure we aren't firing mouse events when
12402         the item is disabled.  Also add a few missing methods.
12403
12404 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12405
12406         * ListView.cs: We don't need the MouseEnter/MouseLeave check
12407         to fire just one MouseHover event when HoverSelection is true, since
12408         .Net does fire more than one MouseHover event in that scenario. Also,
12409         fix the selection in HoverSelection, by invoking UpdateMultiSelect
12410         if MultiSelect is true, instead of only setting ListViewItem.Selected.
12411         Finally, we need to reset the Hover logic in MouseMove, even when we
12412         don't have a selected item.
12413
12414 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12415
12416         * ToolStrip.cs: Add several missing methods, properties, and events.
12417
12418 2007-04-04  Chris Toshok  <toshok@ximian.com>
12419
12420         * DataGridTextBoxColumn.cs: set the bounds of the text box to
12421         (0,0,0,0) in Commit, as MS does.
12422
12423         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
12424         make sure we set CurrentRow on a row header click *before* calling
12425         Select.  This moves the current cell (and the textbox) to the new
12426         row.  The call to Select then hides the textbox, giving us the
12427         correct behavior.  Fixes #80362.
12428
12429         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
12430         (ListChangedHandler): reorder the position/current changed events,
12431         and call UpdateIsBinding in the ItemAdded case.
12432
12433         * GridColumnStylesCollection.cs: add some columns events, one of
12434         which raises the CollectionChanged event.
12435
12436 2007-04-04  Jackson Harper  <jackson@ximian.com>
12437
12438         * TextControl.cs: When we delete multiple selection lines
12439         invalidate the selection area, don't need to do that for single
12440         lines because the final update view will handle it.
12441
12442 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
12443
12444         * Control.cs: When we CreateControl, we need to also create all of the
12445         control's children.  The child's OnLoad must also fire before the parent's
12446         OnLoad.  Fixes the toolbox size in PDN.
12447
12448 2007-04-04  Jackson Harper  <jackson@ximian.com>
12449
12450         * TextBoxBase.cs: When the user presses enter, insert a line
12451         ending into the text. (Maybe this would be a good spot for
12452         Environment.NewLine).
12453         * TextControl.cs: Remove undo manager hack, line endings get
12454         inserted properly now.
12455         
12456 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12457
12458         * MenuAPI.cs: 
12459         - Remove unneeded parameters in UpdateCursor.
12460         - Fix UpdateCursor to check if menu is active.
12461         - Call UpdateCursor when menu deactivate my click.
12462         [Fixes remaining issues from #80410]
12463
12464 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
12465
12466         * Control.cs: GetRealChildAtPoint method added, it make an
12467         recursive child control search for the point. 
12468
12469         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
12470         menu.
12471
12472         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
12473
12474 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12475
12476         * Form.cs: Fix mouse position when send back mouse event after closes
12477         menu.
12478
12479 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
12480
12481         * Form.cs: Simplify the BUTTONDOWN for active tracker.
12482
12483 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12484
12485         * Control.cs: Fix an issue where if a user resized a control inside
12486         a sizing method like OnResize, we would overwrite their explicit
12487         value.  Also, only call DefaultSize once in the constructor instead
12488         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
12489         nothing actually changed.
12490
12491 2007-04-03  Jackson Harper  <jackson@ximian.com>
12492
12493         * TextControl.cs: Don't attempt to copy text for lines with no
12494         text in them (technically this shouldn't happen, but we aren't
12495         always inserting line endings when we should be).
12496
12497 2007-04-03  Jackson Harper  <jackson@ximian.com>
12498
12499         * TextBoxBase.cs: Calculate the scrollbars before calculating the
12500         document, because this sets some of the document size properties
12501         that are needed.
12502
12503 2007-04-03  Jackson Harper  <jackson@ximian.com>
12504
12505         * TextBoxBase.cs: We need to calculate maximums even if this is
12506         not a multiline control, because the maxs are used for scrolling.
12507         - Display the caret after doing a page up/down, we need to
12508         manually display it because a proper CaretMoved event isn't
12509         triggered (this is because of the way the math is done to
12510         determine how far to scroll).
12511
12512 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
12513
12514         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
12515         (ToolBar was relying on SetBoundsCore to default the values sent 
12516         base off of BoundsSpecified.)
12517
12518 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12519
12520         * DateTimePicker.cs: Change Text so that when a null value or empty
12521           string is assigned to the test we always raise ValueChanged and
12522           TextChanged (earlier implementation would only raise ValueChanged
12523           if the current date value was different from DateTime.Now).
12524
12525 2007-04-03  Andreia Gaita <avidigal@novell.com> 
12526
12527         * ButtonBase: Call update after invalidation, fixes #80194
12528
12529 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12530
12531         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
12532           #79335.
12533
12534 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12535
12536         * XplatUIX11.cs: SetWMStyles: If the control is a form with
12537           FormBorderStyle = None, don't give the window any decorations.
12538           Fixes #81276.
12539
12540 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12541
12542         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12543         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
12544           to check for is a mix of several styles (such as WS_CAPTION for
12545           instance).
12546         * Control.cs: Don't paint an area bigger than the client area when
12547           painting the background colour. Add an internal GetCreateParams.
12548           Update calls to XplatUI.CalculateWindowRect due to API change.
12549         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
12550           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
12551           the size if it hasn't been handled by any windows. When creating
12552           and moving windows, X wants the location of the entire window, but
12553           the size of the client window, so add
12554           TranslateClientRectangleToXClientRectangle,
12555           TranslateWindowSizeToXWindowSIze and
12556           TranslatedXWindowSizeToWindowSize to cope with this, and call them
12557           before every window creation and move. Update CalculateWIndowRect
12558           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
12559           In AddConfigureNotify don't do anything if the hwnd is a zombie
12560           (fixes the BadWindow we were getting while running the tests),
12561           always calculate the offsets when it's a parentless window, not
12562           only when reparented, and translate the window size, since we're
12563           getting the client size of the whole window, excluding entire
12564           window.
12565         * Theme.cs: Added BorderSizableSize.
12566         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12567           anymore. Update calls to XplatUI.CalculateWindowRect due to API
12568           chang
12569         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
12570           change. Fake the window styles here instead of in XplatUIWin32 so
12571           that all back-ends get the same window styles (and it's Form that's
12572           deciding when to use wm, not the Win32 backend anyways)
12573         * Hwnd.cs: Completely reworked GetWindowRectangle and
12574           GetClientRectangle - they are now passed a CreateParams and they
12575           only use Style and ExStyle to determine the rectangles (they should
12576           now work just like Win32AdjustWindowRectEx - though quite a few
12577           special cases are probably missing). They should also be 100%
12578           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
12579           == rect), and all numbers (borders, menu sizes) are taken from the
12580           current theme. Added a GetBorders helper function that will return
12581           the borders for any given CreateParams (including captions and
12582           menus), and GetBorderSize that returns the given border size only.
12583         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12584           Hwnd.GetClientRectangle.
12585
12586 2007-04-02  Chris Toshok  <toshok@ximian.com>
12587
12588         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
12589         logic between the values we present to the user and the values
12590         which are stored in the column's property.  Also, don't call
12591         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
12592
12593 2007-04-02  Jackson Harper  <jackson@ximian.com>
12594
12595         * TextBoxBase.cs: Scroll faster!
12596
12597 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
12598
12599         * StatusStrip.cs: Layout fixes for PDN.
12600         * ToolStrip.cs: Set item's available to true, and placement to main when
12601         added.
12602         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
12603         changing in setter before doing any work, add InternalVisible.
12604         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
12605         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
12606         infinite loop.
12607
12608 2007-04-02  Jackson Harper  <jackson@ximian.com>
12609
12610         * TextBox.cs: LBUTTON does not make the textbox select all of it's
12611         text on focus.
12612
12613 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12614
12615         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
12616           Makes ToolStripComboBoxes show up again.
12617
12618 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12619
12620         * ListView.cs: Add a hover_pending field in ListView
12621         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
12622         cycle (we are resetting the MouseHover logic in XplatUI
12623         to handle HoverSelection). Fixes #80429.
12624
12625 2007-04-02  Jackson Harper  <jackson@ximian.com>
12626
12627         * TextControl.cs: Make sure the attributes get set on the last
12628         tag.
12629         - Still have to do the end tag if we have stepped all the ways to
12630         the end.
12631
12632 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
12633
12634         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
12635         on an internal libgdiplus call when the information is already 
12636         available via the public API.
12637
12638 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12639
12640         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
12641           control is removed from a control collecftion.
12642         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
12643           Fixes FormPropertyTest (failed on rare occasions).
12644         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
12645           of Win32SetParent (when changing from no parent to a parent it
12646           might add the new parent's location in screen coordinates to this
12647           window's location).
12648         * Form.cs: Rework ChangingParent once again, now the handle is
12649           recreated whenever a FormWindowManager is added or removed (that is
12650           whenever a normal form is parented or abandoned). Also change
12651           CreateParams so that all non-toplevel windows always get the
12652           specified sice (StartupPosition is never considered for
12653           non-TopLevel forms).
12654         * ContainerControl.cs: Add ChildControlRemoved, the container control
12655           needs to be notified when a control is removed from it's
12656           collection, in the case the removed control is the active control.
12657
12658 2007-04-02  Jackson Harper  <jackson@ximian.com>
12659
12660         * RichTextBox.cs: Use the new methods for setting the font and
12661         color, these methods set the specified attribute without
12662         overriding the other attributes.
12663
12664 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
12665
12666         * ToolStripPanel.cs: Fixes for better layouts in PDN.
12667
12668 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
12669
12670         * TextBox.cs: Added internal ChangeBackColor method to special-case
12671         Color.Empty. Added check for invalid ScrollBars value.
12672         * TextBoxBase.cs: Added internal ChangeBackColor method.
12673         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12674         internal ChangeBackColor method to special-case Color.Empty. Added
12675         check for invalid ScrollBars value.
12676
12677 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
12678
12679         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12680
12681 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12682
12683         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12684         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12685         [Based on submitted patch from Olivier Duff.]
12686
12687 2007-03-30  Jackson Harper  <jackson@ximian.com>
12688
12689         * TextBox.cs: Only select all on initial focus if the user has not
12690         specified a selection area.
12691
12692 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
12693
12694         * UserControl.cs: Override CreateParams.
12695
12696 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12697
12698         [ Fixes #80995 ]
12699
12700         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12701         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12702           check for is a mix of several styles (such as WS_CAPTION for instance).
12703         * Control.cs: Don't paint an area bigger than the client area when painting
12704           the background colour. Add an internal GetCreateParams. Update calls to
12705           XplatUI.CalculateWindowRect due to API change.
12706         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12707           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12708           hasn't been handled by any windows. When creating and moving windows, X
12709           wants the location of the entire window, but the size of the client
12710           window, so add TranslateClientRectangleToXClientRectangle,
12711           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12712           to cope with this, and call them before every window creation and move.
12713           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12714           removing DeriveStyles). In AddConfigureNotify don't do anything if the
12715           hwnd is a zombie (fixes the BadWindow we were getting while running the
12716           tests), always calculate the offsets when it's a parentless window, not
12717           only when reparented, and translate the window size, since we're getting
12718           the client size of the whole window, excluding entire window.
12719         * Theme.cs: Added BorderSizableSize.
12720         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12721           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12722         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12723           Fake the window styles here instead of in XplatUIWin32 so that all
12724           back-ends get the same window styles (and it's Form that's deciding when
12725           to use wm, not the Win32 backend anyways)
12726         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12727           they are now passed a CreateParams and they only use Style and ExStyle
12728           to determine the rectangles (they should now work just like
12729           Win32AdjustWindowRectEx - though quite a few special cases are probably
12730           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
12731           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
12732           sizes) are taken from the current theme. Added a GetBorders helper
12733           function that will return the borders for any given CreateParams
12734           (including captions and menus), and GetBorderSize that returns the given
12735           border size only.
12736         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12737           Hwnd.GetClientRectangle.
12738
12739 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12740
12741         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
12742           layout of the mdi children is handled by CreateParams. Fixes
12743           #79964,
12744
12745 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12746
12747         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
12748         processed.
12749
12750         * Form.cs: When active tracker mouse down is not processed, send event 
12751         back to control inside mouse position. [Fixes #81227]
12752
12753 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
12754
12755         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
12756         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
12757         stealing focus from the active form on Windows.  (Control will be made
12758         visible in ShowWindow.)
12759
12760 2007-03-29  Mike Kestner  <mkestner@novell.com>
12761
12762         * ImageList.cs : add internal Changed event.
12763         * ListView.cs : hook up to StateImageList.Changed to perform
12764         invalidations when the the state icon list changes. [Fixes #81191]
12765
12766 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
12767
12768         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
12769         to prevent tooltips from stealing focus from the active form on Windows.
12770
12771 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12772
12773         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
12774
12775         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
12776
12777 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12778
12779         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
12780         balloons.
12781
12782 2007-03-29  Jackson Harper  <jackson@ximian.com>
12783
12784         * TextControl.cs: When deleting text from non multiline textboxes,
12785         we need to update the entire document, because line offsets will
12786         be shifting.
12787
12788 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
12789
12790         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
12791         added to theme, now we can create themes that uses diferent notify engines
12792         like notification-daemon from galago project or growl for Mac OS.
12793
12794 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12795
12796         * NotifyIcon.cs: Prevent Balloon to show in task bar.
12797
12798 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12799
12800         * XplatUIX11.cs: Prevent system to open more than one balloon.
12801
12802         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
12803         some compiler warning messages.
12804
12805 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
12806
12807         [Fixes #79149]
12808
12809         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
12810
12811         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
12812         implemented, this methods is used by NotifyIcon.BalloonWindow class.
12813
12814         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
12815         systems.
12816
12817 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12818
12819         * ListViewItem.cs: Forgot to make Invalidate internal.
12820
12821 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12822
12823         * ListView.cs: Add a InvalidateSelection method to
12824         invalidate methods which are currently selected, and call
12825         it when setting FullRowSelect and HideSelection, instead of
12826         calling Redraw.
12827
12828 2007-03-28  Chris Toshok  <toshok@ximian.com>
12829
12830         * XplatUIX11.cs (UnmapWindow): reindent this block.
12831
12832         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
12833         the selection_start if we're moving the selection (that is, not
12834         extending it). Fixes bug #80461.
12835
12836 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12837
12838         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
12839         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
12840         create private ControlCollection.
12841
12842 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12843
12844         * Control.cs: We need to call OnVisibleChanged for our implicit
12845         children as well as our normal children.  Fixes scrollbars in
12846         comboboxes not showing up.
12847
12848 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12849
12850         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
12851         the check for IsHandleCreated first.  The check in CreateHandle is not
12852         good enough because CreateHandle can be overriden, and the override 
12853         should not be called if the handle is already created.
12854
12855 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
12856
12857         * ToolStrip.cs: Remove MonoTODO for tooltips.
12858         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
12859         * ToolStripContainer.cs: Add custom ControlCollection class.
12860         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
12861         * ToolStripDropDown.cs: Add some missing properties/methods.
12862         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
12863         * ToolStripItem.cs: Remove MonoTODO for tooltips.
12864         * ToolStripManager.cs: Add IsShortcutDefined.
12865         * ToolStripOverflow.cs: Override LayoutEngine.
12866         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
12867         * ToolStripSeparator.cs: Add ImageKey.
12868
12869 2007-03-28  Jackson Harper  <jackson@ximian.com>
12870
12871         * TextControl.cs: If a char delete removes a line ending, we need
12872         to update the ending style.
12873         - Make sure the line ending calcs get called.
12874
12875 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12876
12877         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
12878           it was making the new code not work. Fixed a typo in the new code
12879           as well. Fixes #79826.
12880
12881 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12882
12883         * XplatUIWin32.cs:
12884         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
12885         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
12886         - SystrayBalloon method implemented.
12887         [Add support for notifyicon balloon on win32, #79149]
12888
12889 2007-03-27  Mike Kestner  <mkestner@novell.com>
12890
12891         * ThemeWin32Classic.cs : update StateImageList selection to mirror
12892         the ms behavior when only one image is added to the list.
12893         [Fixes #81191]
12894
12895 2007-03-27  Jackson Harper  <jackson@ximian.com>
12896
12897         * TextControl.cs: Improvements to non multiline line ending
12898         drawing/measuing.
12899
12900 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12901
12902         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
12903
12904 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12905
12906         * NotifyIcon.cs: 
12907         - Balloon message handling added.
12908         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
12909
12910         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
12911         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
12912         to SystrayBalloon to me like other Systray method, also a
12913         handle parameter added.
12914
12915 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12916
12917         * ListView.cs: Show scrollbars even when items.Count == 0
12918         but the columns Width is bigger than the ListView.Width.
12919         Also, when columns.Count == 0 set layout_wd and layout_ht
12920         to the ClientRectangle values, so we don't show any scrollbar
12921         in that case.
12922
12923 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12924
12925         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
12926
12927 2007-03-27  Jackson Harper  <jackson@ximian.com>
12928
12929         * RichTextBox.cs: The RTF library decodes the text properly for us
12930         now.
12931
12932 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12933
12934         * ListView.cs: Display HeaderControl even when columns.Count == 0.
12935         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12936         ListView header (HeaderControl), instead of Control.BackColor.
12937
12938 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12939
12940         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12941         Fixes tab control issues where controls would not show up because they
12942         never received their OnVisibleChanged call.
12943
12944 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
12945
12946         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12947         BalloonTipShown).
12948
12949 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
12950
12951         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12952         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12953         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12954         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
12955         the handle.  Fix WindowState by using the internal variable until we are 
12956         sure that we've been shown.
12957         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12958         max or min.
12959         [Fixes bug #81198]
12960
12961 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12962
12963         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12964           (at least borders). Fixes #79386 on Linux (with a small difference
12965           in behaviour: when trying to resize a caption-less window metacity
12966           shows the sysmenu. Resizing is still possible though).
12967         * XplatUIWin32.cs: When setting window styles send request an extra
12968           WM_NCCALCSIZE when it's a form without title (due to no text and no
12969           caption), since Win32 seems to calculate it wrong the first time we
12970           get the message, though the second time things work as they should.
12971         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12972           newly reparented window might show up unparented. Update
12973           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12974           there's no title text. Fixes #79386.
12975
12976 2007-03-27  Mike Kestner  <mkestner@novell.com>
12977
12978         * ListBox.cs : don't perform invalidations if the handle hasn't been
12979         created.  [Fixes #80753]
12980
12981 2007-03-27  Mike Kestner  <mkestner@novell.com>
12982
12983         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12984         [Fixes #80428]
12985
12986 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
12987
12988         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
12989         needed to implement Balloon.
12990
12991 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12992
12993         * ListViewItem.cs: In the constructors that take
12994         an array of strings, don't use ListViewSubItemCollection.AddRange
12995         method to add items, since we need to have a different behaviour (in
12996         the constructors we add an item for each null string, opposed to
12997         the behaviour of AddRange, which adds nothing).
12998
12999 2007-03-26  Andreia Gaita  <avidigal@novell.com>
13000
13001         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
13002
13003 2007-03-26  Jackson Harper  <jackson@ximian.com>
13004
13005         * TextControl.cs: Draw and measure line endings when in non
13006         multiline mode.
13007         - When searching the text, count the end of the last line as a
13008         word boundary.
13009
13010 2007-03-26  Jackson Harper  <jackson@ximian.com>
13011
13012         * RichTextBox.cs: The selection_start and selection_end don't
13013         really track the correct tags for the selection. So we'll manually
13014         compute the correct tag here.
13015
13016 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13017
13018         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
13019           and Continuous styles. Fixes #79469.
13020
13021 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13022
13023         * ToolStrip.cs: Implement Tooltips.
13024         * ToolStripItem.cs: Create internal method for determining tooltip.
13025
13026 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
13027
13028         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
13029
13030 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13031
13032         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
13033         it prevents a problem thak keeps icon visible after application 
13034         closes on win32.
13035
13036 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
13037
13038         * NotifyIcon.cs: Balloon properties and methods created.
13039
13040         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13041         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
13042
13043 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
13044
13045         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
13046
13047 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13048
13049         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
13050         parameter indicates which aspects were explicit/user-set.
13051         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
13052
13053 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
13054
13055         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
13056         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
13057         SmallChange, and Value (2.0).
13058         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
13059
13060 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13061
13062         * ListView.cs: Always set item_control.Width in LayoutDetails
13063         if View is Details. Setting it later in CalculateScrollBars
13064         in a not-so-corner scenario (the sum of columns width is
13065         not bigger than the ListView width when handle is created, and then
13066         that sum gets bigger by increasing the width of the columns)
13067         causes a very weird recursion path (which shouldn't be happening,
13068         since header_control sets it in CalculateScrollBars too). This bug
13069         appeared after Chris' fixes for handle created issues, so probably
13070         it's related to some handle-creation time.
13071
13072 2007-03-23  Chris Toshok  <toshok@ximian.com>
13073
13074         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
13075         case where there's an add row, just so we don't end up in a case
13076         where it's not displayed (this happens when the row is partially
13077         obscured).  Fixes bug #79574.
13078
13079 2007-03-23  Jackson Harper  <jackson@ximian.com>
13080
13081         * TextControl.cs:
13082         * TextBoxBase.cs:
13083         * RichTextBox.cs: Preserve line endings in the lines text buffer,
13084         also added an enum that represents the line ending type. 
13085
13086 2007-03-23  Andreia Gaita  <avidigal@novell.com>
13087
13088         * NumericUpDown.cs: Fix logic so Text and Value properties are not
13089         messed with in every method call, but only from DownButton, 
13090         UpButton, UpdateEditText() and ValidateText. Fixes #80346
13091
13092 2007-03-23  Chris Toshok  <toshok@ximian.com>
13093
13094         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
13095         format objects if the format spec is "".  Fixes bug #80889.
13096
13097 2007-03-22  Miguel de Icaza  <miguel@novell.com>
13098
13099         * ToolStripPanel.cs (Join): added stubs to build PDN3
13100
13101         * Control.cs (AutoScrollOffset): Add.
13102
13103         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
13104         property, its only implemented for Win32, on X11 it defaults to
13105         some hardcoded value.
13106
13107         * ToolStripItem.cs (AllowDrop): Add property
13108
13109 2007-03-22  Mike Kestner  <mkestner@novell.com>
13110
13111         * ListView.cs : in FullRowSelect Details mode, only enable box
13112         selection if the user clicks over the "item" column outside of the
13113         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
13114
13115 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13116
13117         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
13118           handle is not created yet.
13119         * Form.cs: Select: Don't call CreateHandle if the handle is already
13120           created, avoids a stack overflow on Windows when we are recreating
13121           controls.
13122         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
13123           they are made visible, and override AfterTopMostControl to keep
13124           them on top when other controls are brought to front.
13125           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
13126           or force_*scroll_visible is true (old implementation always shows
13127           scrollbars when needed, no matter what auto_scroll was set to).
13128         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
13129           IsHandleCreated check.
13130
13131 2007-03-22  Andreia Gaita  <avidigal@novell.com>
13132
13133         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
13134         row or col separator.
13135         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
13136
13137 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13138
13139         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
13140
13141 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13142
13143         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
13144         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
13145         every time. Fixes #80410.
13146
13147 2007-03-22  Chris Toshok  <toshok@ximian.com>
13148
13149         * BindingSource.cs (AddNew): partially implement.
13150
13151         remove a couple of NotImplementedException's
13152         to get bug #81148 closed.
13153
13154 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
13155
13156         [Fixes #80380]
13157         
13158         * Control.cs:
13159         - UpdateCursor method added to update the screen cursor.
13160         - GetAvailableCursor method added to return cursor for enabled tree,
13161         it searches for cursor on control and it's parent's for enabled control.
13162         - Call UpdateCursor method on setter of Cursor property.
13163         - On setter of Enabled call UpdateCursor when it is false, we need to
13164         change cursor to normal (or to this parent cursor) because cursor 
13165         setting theres no effect to disabled controls.
13166         - Some minor source changes to follow the coding style guidelines.
13167
13168         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
13169         controls.
13170
13171 2007-03-22  Chris Toshok  <toshok@ximian.com>
13172
13173         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
13174         generates.
13175
13176 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13177
13178         * XplatUIX11.cs: Implement default locations for forms.
13179         * Form.cs: Completely rework startup location for forms. Fixes #79964.
13180         * Hwnd.cs: Add previous_child_startup_location (to track the current
13181           startup location for any child forms of the current form) and
13182           previous_main_startup_location (to track the startup location for
13183           the current toplevel form).
13184
13185 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13186
13187         * Control.cs: Don't trigger a layout if an implicit control is added
13188         that isn't visible.  Also, don't notify the owner when an implicit control
13189         is added.  (Owners shouldn't even know about their implicit controls.)
13190
13191 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13192
13193         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
13194         to save some re-layouts.
13195
13196 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
13197
13198         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
13199         [Fixes #81203]
13200
13201 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
13202
13203         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
13204         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
13205
13206 2007-03-21  Mike Kestner  <mkestner@novell.com>
13207
13208         * ListView.cs : disable selection update for non-left button clicks
13209         with mods and over selected items.  [Fixes #80524]
13210
13211 2007-03-20  Jackson Harper  <jackson@ximian.com>
13212
13213         * TextControl.cs:
13214         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
13215         \r\r\n, \n.
13216
13217 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13218
13219         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
13220           very probably a more complicated calculation there. Update the
13221           textbox' ForeColor and BackColor when the ComboBox' colors are
13222           changed. Change the border change in LayoutComboBox to only affect
13223           the textbox, not all the calculations there. Seems to fix most of
13224           #79436.
13225
13226 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13227
13228         * ComboBox.cs: Handle Home and End keys as well as all combinations of
13229           modifiers + navigation keys as input keys, enables advanced text
13230           selection in the combobox (like Shift+Left Arrow for instance).
13231           ComboTextBox now overrides Focused and returns whatever
13232           ComboBox.Focused returns, since it really should be focused
13233           whenever the ComboBox is. Fixes #80795. Also make the border around
13234           the text box one pixel bigger, as mentioned in #79436.
13235
13236 2007-03-20  Jackson Harper  <jackson@ximian.com>
13237
13238         * TreeView.cs: Don't offset the images, this was causing some
13239         artifacts when expanding/collapsing with images that were the
13240         exact height of the treenode.
13241
13242 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13243
13244         * TrackBar.cs: Query the theme for the correct value when the mouse
13245           moves and the thumb is pressed. 
13246         * Theme.cs: Added TrackBarValueFromMousePosition
13247         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
13248           implementation was updating the trackbar value when drawing, now
13249           the drawing methods only draw. Fixes #80900. Refactored the
13250           calculations out to TrackBarValueFromMousePosition and
13251           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
13252           according to the mouse position whenever it wants to. Changed the
13253           light coloured pen when drawing the thumb from ControlLight to
13254           ControlLightLight, because the ControlLight is the same colour as
13255           the background so the 3D effect is lost. 
13256
13257 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13258
13259         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
13260         defined. Fixes #80784.
13261
13262 2007-03-20  Marek Habersack  <mhabersack@novell.com>
13263
13264         * ContextMenuStrip.cs: align with the change introduced in
13265         revision 74664.
13266
13267 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13268
13269         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
13270         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
13271         in SetTopmost.
13272
13273 2007-03-19  Chris Toshok  <toshok@ximian.com>
13274
13275         * Control.cs (WmPaint): don't make use of the Handle property
13276         after an event is emitted, as the user could have closed the
13277         form/destroyed the control.  Store the Handle in a local variable
13278         and make use of that.  Fixes bug #80768.
13279
13280 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13281
13282         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
13283         behavior in X11 environments.
13284
13285 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13286
13287         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
13288         because on setter of topmost we dont call SetTopmost when handle is not
13289         created.
13290
13291 2007-03-20  Jackson Harper  <jackson@ximian.com>
13292
13293         * TextControl.cs: Need to use SelectionLength () not
13294         selection_length, since that var is reset to -1.
13295         - Draw the caret when we don't have focus.
13296         * TextBox.cs: The selectall actually doesn't occur until the first
13297         focus.
13298         * TextBoxBase.cs: Need to update the caret position after a
13299         selectall.
13300         
13301 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13302
13303         * ListView.cs: Enable scrolling when using Tile view.
13304
13305 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
13306
13307         [Fixes #80902]
13308
13309         * XplatUIDriver.cs: Abstract SetOwner method created.
13310
13311         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
13312         must be implemented and was masked as todo.
13313
13314         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
13315         GWL_HWNDPARENT.
13316
13317         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
13318         cheking for null owner to remove transient. The SetTopmost will be change
13319         on a decond step.
13320
13321         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
13322         SetTopmost. Now owned forms will work properly in win32 and X11.
13323
13324 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13325
13326         * MdiWindowManager.cs: Update function name.
13327         * Form.cs: After closing a form MdiParent is always null.
13328         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
13329           better what it should do: necessary book-keeping when the form is
13330           closed, it should not close the form itself.
13331
13332 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13333
13334         * ListViewItem.cs: Fix back and fore color. The subitems only
13335         use their own colors if they are set, otherwise use the listview's
13336         colors. Don't set default colors on constructor for subitem.
13337         Fixes #79315.
13338
13339 2007-03-19  Mike Kestner  <mkestner@novell.com>
13340
13341         * ListView.cs : make box selection for Details views with 
13342         FullRowSelect conform to MS behavior when clicking in the "item" 
13343         column and clicking outside the defined columns.
13344         [Fixes case 5-6 of #80374]
13345
13346 2007-03-19  Chris Toshok  <toshok@ximian.com>
13347
13348         * ScrollableControl.cs: create the controls from within the ctor,
13349         but don't actually add them until our handle is created.  this
13350         fixes a NRE possibility jpobst found (if you override OnLayout in
13351         a subclass, it's called before your ctor).  Also, add a
13352         IsHandleCreated guard to UpdateSizeGripVisibility as well.
13353
13354 2007-03-19  Jackson Harper  <jackson@ximian.com>
13355
13356         * TextBox.cs: Reduce the amount of invalidation we do.
13357         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
13358         some of them are true by default on MS.
13359         - Add some functions to reduce the amount of invalidates we do.
13360         * TextControl.cs: Less invalidation.
13361
13362 2007-03-19  Chris Toshok  <toshok@ximian.com>
13363
13364         [ Fixes #81773, and *seems* to fix #81553 as well ]
13365
13366         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
13367         AccumulateDestroyedHandles.  We need to do it *after* we send
13368         WM_DESTROY, as the user's code can access Control.Handle in
13369         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
13370         move the WM_DESTROY/zombie handling to before the call to
13371         XDestroyWindow.  For some reason without this ordering
13372         FormTest.RecreateHandle hangs.  This ordering is semantically
13373         equivalent, however, as XDestroyWindow is async anyway.
13374
13375 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
13376
13377         * RichTextBox.cs: Reset backcolor_set after setting default.
13378
13379 2007-03-19  Chris Toshok  <toshok@ximian.com>
13380
13381         * ScrollableControl.cs: the scroll position should not effect the
13382         canvas size.  commit patch from georgegiolfan@yahoo.com, which
13383         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
13384         
13385 2007-03-19  Chris Toshok  <toshok@ximian.com>
13386
13387         * ScrollableControl.cs: clean this up a bit.  create the
13388         scrollbars in the ctor and just show/hide them as needed.  Also,
13389         make hscroll_visible/vscroll_visible internal to Recalculate, and
13390         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
13391         everywhere else.  This seems to fix the scrollbars appearing
13392         beneath the content for me (i have *no* idea why that is,
13393         however.)
13394
13395 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13396
13397         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
13398         some redundacy for stuff in Anchor and Dock that base will take care of.
13399         [Fixes #80762]
13400
13401 2007-03-19  Mike Kestner  <mkestner@novell.com>
13402
13403         * ListView.cs : make box selection for Details views without 
13404         FullRowSelect dependent on the text bounds, not item bounds.
13405         * ListViewItem.cs : add an internal property to obtain the TextBounds
13406         in Details view.  [Fixes case 1-4 of #80374]
13407
13408 2007-03-19  Andreia Gaita  <avidigal@novell.com>
13409
13410         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
13411         we're < 2.0. #78448 && #80316
13412
13413 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13414
13415         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
13416         have the same style available as the previously selected one.  Also,
13417         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
13418
13419 2007-03-19  Jackson Harper  <jackson@ximian.com>
13420
13421         * TextControl.cs: Add an alignment property that all new lines
13422         will be given.
13423         - Make sure to use the align shift when calculating the line's X
13424         position.
13425         * TextBox.cs: Set the alignment on the document as well as on all
13426         the document lines.
13427
13428 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13429
13430         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
13431           throw if setting the parent of an mdichild that already has an
13432           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
13433           AssemblyProductAttribute in the assembly, use the type's namespace (as
13434           MS seems to do). CreateControl: don't create the handle if the control
13435           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
13436           create handle if the control is not a form. Change FocusInternal to
13437           virtual so that it can be overriden by Form.
13438         * TextBox.cs: Update call to FocusInternal.
13439         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
13440           form is not a toplevel form when it's a mdi child, so update is_toplevel
13441           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
13442           hasn't been created. Show (IWin32Window): Don't allow this overload for
13443           toplevel windows. CenterToParent/CenterToScreen/Select: create the
13444           handle as MS does. SetVisibleCore: if called on a MdiChild and the
13445           parent isn't visible yet, save the visibility and restore it when the
13446           parent is made visible.
13447         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
13448           methods, since the visibility of the scrollbars can be changed from
13449           several places, not only from AutoScroll.
13450           [Fixes #81179]
13451
13452 2007-03-19  Jackson Harper  <jackson@ximian.com>
13453
13454         * RichTextBox.cs: Enable shortcuts by default.
13455         * TextBoxBase.cs: Add conditional shortcuts.  
13456
13457 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13458
13459         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
13460
13461 2007-03-19  Chris Toshok  <toshok@ximian.com>
13462
13463         [ Fixes bug #80604]
13464         
13465         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
13466         swallow the message we're waiting on, instead of delivering it, as
13467         this is only used for the WM_SHOWWINDOW raised from
13468         MapWindow/UnmapWindow, and the message needs to be generated
13469         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
13470         before doing the Map/Unmap.  Also make sure that the Hwnd is still
13471         alive after the message has been handled.
13472
13473         *before* the window is shown.
13474
13475         * Control.cs (CreateControl): guard a few more things inside the
13476         if (!is_created) block, as we might end up being called again -
13477         yay .net.
13478         (WmShowWindow): call CreateControl if we're showing the control.
13479
13480 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13481
13482         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
13483           controls without a handle if they have any parent with a handle. In
13484           Dispose add a check whether the handle is created or not before
13485           calling BeginInvoke, this removes the need of the extra disposing
13486           parameter (which was bogus anyway since it didn't prevent the
13487           invoke from happening, it only skipped the check for an existing
13488           handle, meaning that the invoke would call on an inexistent
13489           handle).
13490
13491 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
13492
13493         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
13494         appears in taskbar.
13495
13496 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13497
13498         * MessageBox.cs:
13499         - Fixed a problem that dont show help button for messages with 3 buttons.
13500         - Refactory button size and position calculations, now dont use fixed 
13501         values, also fixed button sizes (#80043) and form's border space.
13502         - AddButton method created, now all other AddButton methods call this one.
13503         - Some other source code cosmetic changes.
13504
13505 2007-03-18  Jackson Harper  <jackson@ximian.com>
13506
13507         * RichTextBox.cs: Don't do this all fonts must match check if
13508         there is only one char selected.
13509
13510 2007-03-18  Jackson Harper  <jackson@ximian.com>
13511
13512         * TreeView.cs: ScrollWindow works properly now, so we don't need
13513         to screw around with the scroll area.  This fixes some artifacts
13514         when expanding and collapsing.
13515
13516 2007-03-18  Jackson Harper  <jackson@ximian.com>
13517
13518         * TextBoxBase.cs: Allow updating the selection position when the
13519         cursor is outside the textarea, but we have a capture.
13520         * TextControl.cs: A special case for when the cursor is outside
13521         the bounds of the TB.
13522         
13523 2007-03-18  Jackson Harper  <jackson@ximian.com>
13524
13525         * TextBoxBase.cs: Remove image pasting code for now.  There is no
13526         way to get an image on the clipboard right now anyways.
13527         * TextControl.cs:
13528         * RichTextBox.cs: Use the new RTF Picture class for pictures.
13529
13530 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
13531
13532         * MessageBox.cs:
13533         - Set window properties in constructor intead of on CreateParams.
13534         - Remove topmost from Window ExStyle.
13535         - Set ShowInTaskbar to false.
13536         - Set form border to FixedDialog.
13537         - Some cosmetic changes and remove unneeded comments.
13538         - It fixes itens 2,3 and 4 of bug #80043.
13539
13540 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
13541
13542         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
13543         none was explicitly set. Fixes part of bug #79949.
13544
13545 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
13546
13547         * ToolStripComboBox.cs: Add AutoComplete*.
13548
13549 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
13550
13551         * ToolStripComboBox.cs: Add FlatStyle.
13552
13553 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
13554
13555         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
13556         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
13557
13558 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13559
13560         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
13561           CheckBox.cs, RadioButton.cs, BindingSource.cs,
13562           DataGridColumnStyle.cs: Remove warnings.
13563
13564 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13565
13566         * Menu.cs: MergeMenu: Check menu argument for null before looping over
13567           it.
13568         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
13569           visibility of mdi child forms. FormSizeChangedHandler: update the
13570           maximized size if size has changed while maximized.
13571         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
13572           creating the handle.
13573         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
13574           avoid creating the handle if not created.
13575         * XplatUI.cs: Update debug output.
13576         * XplatUIStructs.cs: Added ToString's for a couple of structs.
13577
13578 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
13579
13580         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
13581         ProcessCmdKey().
13582         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
13583         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
13584         Implement keyboard shortcuts.
13585
13586 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
13587
13588         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
13589         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
13590         ColorDialog and all derived classes.
13591
13592 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
13593
13594         [ Fixes bug #79828 ]
13595
13596         * ToolBar.cs:
13597         - Rename ToolBarButtonInfor to ToolBarItem.
13598         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
13599         - Maintain an array of ToolBarItem, used instead of ToolBarButton
13600         collection to be able add same button more than one time on a toolbar.
13601         - Refactory all properties and methods to use ToolBarItem. 
13602
13603         * ToolBarButton.cs: 
13604         - Remove all propeties and methods that is now in ToolBarItem.
13605         - Rectangle propery now gets the rectangle from first ToolBarItem to
13606         mimic win32 behavior.
13607         - Size calculation and layout methods also removed.
13608
13609         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
13610         ToolBarItem instead of ToolBarButton to right drawing buttons when
13611         same button/separator was added more than one time to ToolBar.
13612
13613         * ThemeNice.cs: Same as above. 
13614
13615 2007-03-15  Andreia Gaita  <avidigal@novell.com>
13616
13617         * XplatUIX11.cs: Fire extra MouseMove events right after
13618         MouseDown and MouseUp, emulating win32's <censored> behaviour
13619         for apps that rely on it.
13620
13621 2007-03-15  Jackson Harper  <jackson@ximian.com>
13622
13623         * TextControl.cs:
13624         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
13625         it is drawn on the controls client window and there is no NC
13626         area.
13627         - Set the background color to gray on 2.0 when we are readonly.
13628
13629 2007-03-15  Chris Toshok  <toshok@ximian.com>
13630
13631         [ Fixes bug #81144 ]
13632         
13633         * XplatUIX11.cs: implement VirtualScreen independently of
13634         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
13635         property.
13636
13637 2007-03-15  Chris Toshok  <toshok@ximian.com>
13638
13639         * Hwnd.cs: add an internal field for the cached_window_state.
13640
13641         * XplatUIX11.cs: cache the window state, invalidating the cache
13642         (and thus re-querying the X server) only when we see an update to
13643         the _NET_WM_STATE property.
13644
13645 2007-03-15  Chris Toshok  <toshok@ximian.com>
13646
13647         * BindingSource.cs: get a lot of the unit tests working.
13648
13649 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13650
13651         * Control.cs: Modify UpdateStyles to store distances when bounds >=
13652         0 instead of just bounds > 0.  [Fixes bug #80912]
13653
13654 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
13655
13656         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13657         and methods.
13658
13659 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
13660         
13661         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13662         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13663         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13664         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13665
13666 2007-03-15  Chris Toshok  <toshok@ximian.com>
13667
13668         [ Fixes #81101 ]
13669         
13670         * Control.cs: add Ivan's fix for 81101, with a slight modification
13671         - you can set control.Target to null.
13672
13673 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
13674
13675         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
13676         HideDropDown, use Hide instead to prevent an NRE.
13677         [Fixes bug #81147]
13678
13679 2007-03-14  Jackson Harper  <jackson@ximian.com>
13680
13681         * TextBoxBase.cs: Mess with the creation stuff a little. We need
13682         to calculate the document before the handle is created, in some
13683         cases. (Actually just one case).
13684
13685 2007-03-14  Jackson Harper  <jackson@ximian.com>
13686
13687         * TextBoxBase.cs: Need to display the caret after letting the base
13688         wndproc handle the focus methods, because the caret display
13689         methods check the focus state.
13690         - Try to display the caret after updating it's position with SelectWord.
13691         - Don't need to do an immediate update on this recalc, since there
13692         will be an invalidate anyways.
13693
13694 2007-03-14  Jackson Harper  <jackson@ximian.com>
13695
13696         * TreeView.cs: Some workarounds so that we can match event order a
13697         little better.
13698
13699 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
13700
13701         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13702         #80803. Avoid NullReferenceException when Control does not have
13703         parent. Fixed different blinkstyle issues. Only subscribe to Tick
13704         event a single time. Only draw error icon when control is created and
13705         visible. Fixes failing unit tests.
13706
13707 2007-03-14  Andreia Gaita  <avidigal@novell.com>
13708
13709         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13710         Selecting events. Fire Leave and Enter events when changing tabs.
13711
13712 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
13713
13714         * TreeView.cs: Add TreeViewNodeSorter.
13715         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13716
13717 2007-03-14  Chris Toshok  <toshok@ximian.com>
13718
13719         * Form.cs: go ahead and remove the RecreateHandles that jpobst
13720         removed earlier and I had him add back it.  It turns out metacity
13721         *does* in fact handle the MOTIF_WM_HINTS property changing, it
13722         just doesn't redraw the window titlebar until you resize the
13723         window.  This also means we aren't recreating the entire window
13724         hierarchy on X when you change this property.  And it looks better
13725         on windows, too.
13726
13727 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13728
13729         * ListViewItem.cs:
13730         * ListView.cs: Collecting selection information
13731         is now done in SelectedIndexCollection rather than in
13732         SelectedListViewItemCollection. This is done so we can
13733         have the selection information code in one single place
13734         (virtual mode selection information entirely depends on
13735         SelectedIndexCollection).
13736
13737 2007-03-13  Miguel de Icaza  <miguel@novell.com>
13738
13739         * ErrorProvider.cs: Add stubs for ISupportInitialize
13740
13741 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13742
13743         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
13744         in the right order with the right values, from the Checked property, 
13745         just as MS does (instead of triggering them from ListView).
13746
13747         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
13748
13749 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13750
13751         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
13752         the correct handler in OnItemCheck method (ItemCheckEventHandler 
13753         instead of EventHandler). This used to throw an InvalidCastException.
13754
13755 2007-03-13  Jackson Harper  <jackson@ximian.com>
13756
13757         * TextBoxBase.cs: Calculate the document before the handle is
13758         created, so there isn't an extra invalidate called.
13759
13760 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
13761
13762         * Form.cs: Don't set owner in ShowDialog until we are sure
13763         that we aren't going to throw an exception.  [Fixes bug #80773]
13764
13765 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
13766
13767         * TreeView.cs: Make it compile.
13768
13769 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13770
13771         * Control.cs: Another place we don't call SizeFromClientSize.
13772         * Form.cs: Another place we don't call SizeFromClientSize.
13773         [Fixes bug #81125]
13774
13775 2007-03-12  Jackson Harper  <jackson@ximian.com>
13776
13777         * TreeView.cs: Basically emulating some strangness here with
13778         exanding nodes and setting node positions when windows aren't
13779         created.
13780         - Also attempting to walk the node tree less than previously, and
13781         just use visible order calculations for determining offsets.
13782         - oops made scrolling backwards.
13783         * TreeNode.cs: We need to start nodes with a zero visible order,
13784         because the order calcs are based on the first nodes order.
13785
13786 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13787
13788         * Form.cs: Don't exit the program if RecreateHandle is called on
13789         the main form.
13790
13791 2007-03-12  Chris Toshok  <toshok@ximian.com>
13792
13793         * XEventQueue.cs: remove the use of PostQuitState.
13794
13795         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
13796         WM_QUIT message in GetMessage, return false (and if we're in the
13797         nested WaitForHwndMessage, repost the WM_QUIT message).
13798
13799 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13800
13801         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
13802         or the MaximizeBox properties.  [Part of bug #80640]
13803
13804 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
13805
13806         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
13807         no links.
13808
13809 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13810
13811         * ToolStripItem.cs: Fix some tests I broke by checking Visible
13812         instead of visible.
13813
13814 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
13815
13816         * FileDialog.cs: Use text of File name combobox to determine what
13817         files the user selected. Added tokenizer to parse the file names.
13818         Fixes bug #81123.
13819
13820 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
13821
13822         * Control.cs: We can't call SizeFromClientSize in the constructor,
13823         but we still need to do the same work, so make an internal version.
13824         [Fixes bug #80621]
13825
13826 2007-03-12  Jackson Harper  <jackson@ximian.com>
13827
13828         * TreeView.cs:
13829         * TreeNode.cs:
13830         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
13831         IsExpanded.
13832
13833 2007-03-12  Jackson Harper  <jackson@ximian.com>
13834
13835         * TextBoxBase.cs: Now that the handles are being created a little
13836         later, we need to make sure that the document is recalculated when
13837         the handle is created.
13838
13839 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
13840
13841         * Theme.cs: GetLinkFont abstract method added.
13842         
13843         * LinkLabel.cs: 
13844         - Remove CalcTrimRectangle, no longer needed.
13845         - Factor also remove, position issues must be fixed in libgdiplus.
13846         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
13847         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
13848         care about font used to draw links.
13849         - Set TabStop to true when control is "Selectable", control is selectable
13850         when have one or more links. Fixes #80501 (test case is also added).
13851         - Set the LinkArea values after links change, LinkArea values must be
13852         based in first link position and size, a test case was created.
13853         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
13854         the attribute must be true LinkArea.Length > 0. The same was applied to
13855         TabStop.
13856         
13857         * ThemeWin32Classic.cs: 
13858         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
13859         in draw method.
13860         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
13861         color change.
13862         - Draw focus rectangle for every parts focused, including parts that 
13863         is on another line, its because regions returns various rectangles
13864         and not only one. Needed to mimic W32 look.
13865         - Uses Graphics.Clip to delimite region painted, it mean that now 
13866         complete text is passed to DrawString, with this we solve layout
13867         issues without create another text renderer.
13868         - Uses Region.Intersect to fix some flickers problems, now only needed
13869         parts will redrawed.
13870         - This changes fixes #79614 and some other unreported issues, on Linux 
13871         some layout problems still remain, the problem is under 
13872         MeasureCharacterRanges but it is an libgdiplus bug.
13873
13874 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
13875
13876         * TextBox.cs: Set for foreground color.
13877         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
13878         this is already done in Control.
13879
13880 2007-03-10  Jackson Harper  <jackson@ximian.com>
13881
13882         * TextBox.cs: Set the background color, but reset the
13883         backcolor_set flag which is just for the user setting the
13884         background color.
13885
13886 2007-03-09  Chris Toshok  <toshok@ximian.com>
13887
13888         * Control.cs: really remove the call to XplatUI.SetVisible from
13889         CreateHandle(), like I said I did when I merged the branch.
13890
13891         * BindingSource.cs: implement some more of this stuff.
13892
13893 2007-03-09  Jackson Harper  <jackson@ximian.com>
13894
13895         * TextBox.cs: Don't explicitly set our background colors.
13896         * TextControl.cs:
13897         * TextBoxBase.cs: Draw readonly text.
13898         - Need to invalidate when backcolor or readonly are changed.
13899         
13900 2007-03-09  Jackson Harper  <jackson@ximian.com>
13901
13902         * TextBoxBase.cs: Don't set the forecolor until the handle is
13903         created.
13904         - Do not raise OnPaint, and removed some old debug code.
13905
13906 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
13907
13908         * ScrollableControl.cs: Fix mouse wheel scrolling.
13909
13910 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
13911
13912         * Control.cs: Wire up MouseDoubleClick event.
13913
13914 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
13915
13916         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
13917         top or bottom.
13918         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
13919         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
13920         item is added.  This logic was moved to ToolStrip.OnItemAdded.
13921         [Fixes bug #81090]
13922
13923 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13924
13925         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
13926
13927 2007-03-08  Jackson Harper  <jackson@ximian.com>
13928
13929         * TreeView.cs: Show the correct image for selected node (this used
13930         to work, not sure how the code got deleted). Also implemented 2.0 feature
13931         SelectedImageKey.
13932
13933 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13934
13935         * ListView.cs:
13936         * ListViewItem.cs: Cache index in items when retrieving them
13937         in VirtualMode.
13938
13939 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13940
13941         * ToolStripItem.cs: Don't return the explicit_size if we are using 
13942         AutoSize.  Fixes invalidation issue when user has explicitly set a
13943         size and has AutoSize = true.
13944
13945 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13946
13947         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13948
13949 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
13950
13951         * DataGridView.cs: Remove event handler from DataView when a
13952         DataTable is used as DataSource.
13953
13954 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
13955
13956         * Control.cs: Create internal setter for client_size to allow it to be
13957         set without triggering resizing code.
13958         * Form.cs: Calculate client_size in constructor, only change client_size
13959         in FormBorderStyle property if Handle has been created.
13960         [Fixes #80574, #80791]
13961
13962 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
13963
13964         * SystemInformation.cs: Add TerminalServerSession.
13965
13966 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13967
13968         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13969         TreeView code.
13970
13971 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
13972
13973         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13974         Handle before we were supposed to.  Now checks ActivateOnShow property
13975         in Control.
13976         * Control.cs: Add internal ActivateOnShow property.
13977         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13978         for ActivateOnShow.
13979         * Hwnd.cs Remove no longer needed no_activate field.
13980
13981 2007-03-07  Jackson Harper  <jackson@ximian.com>
13982
13983         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
13984         2.0 properties
13985         * DrawTreeNodeEventHandler.cs: Add
13986         * DrawTreeNodeEventArgs.cs: Correct default value.
13987         
13988 2007-03-07  Chris Toshok  <toshok@ximian.com>
13989
13990         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13991         to be called before NativeWindow.WndProc.  Put the HwndCreating
13992         magic there to hook up our Hwnd's to handles.
13993
13994 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
13995
13996         * DataGridView.cs: Comment out debug code.
13997
13998 2007-03-07  Chris Toshok  <toshok@ximian.com>
13999
14000         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
14001         to make the rest of the world happy]
14002
14003         * Control.cs (CreateHandle): there's no need to call
14004         XplatUI.SetVisible here, it's effectively done by
14005         XplatUI.CreateWindow on X now, and always was on windows.
14006
14007         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
14008         shortcircuit out of the loop if we have a message loop running on
14009         this thread.
14010
14011         [Changelog from merge]
14012
14013         2007-03-05  Chris Toshok  <toshok@ximian.com>
14014
14015                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
14016                 causes handle creation.
14017
14018         2007-02-28  Chris Toshok  <toshok@ximian.com>
14019
14020                 * ApplicationContext.cs: Add a flag to make sure we only raise the
14021                 ThreadExit event once (ExitThreadCore can be indirectly called
14022                 from a few places.)  I don't like the additional flag, but it
14023                 makes the event ordering/count correct.
14024
14025                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
14026                 without locking the collection.  An enumerator doesn't give us any
14027                 protection from modification anyway.  Lock the thread hash and
14028                 replace the complicated enumerator loop with a foreach.
14029                 (Application.CloseForms): make internal so it can be called from
14030                 ApplicationContext.  This should probably be moved to MWFThread.
14031                 (Application.ExitThread): don't call MWFThread.Current.Exit()
14032                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
14033                 when the runloop exits (in response to WM_QUIT.)
14034                 (Application.RunLoop): add a comment (and check) for
14035                 context.MainForm being null after setting context.MainForm.Visible
14036                 = true.  This is because you're perfectly free to dispose of a
14037                 form in VisibilityChanged.  Chalk this up to another case where we
14038                 need to synchronously generate WM_ACTIVATE from Control.Show.
14039                 Also, add handling for WM_QUIT here so we'll exit the loop.
14040                 
14041                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
14042                 fact that we don't wait if we're only unmapping the whole_window
14043                 makes me a bit nervous, but it doesn't seem to cause any problems
14044                 yet.
14045
14046                 also, add a comment about the stupid, broken and wrong resetting
14047                 of PostQuitState to false in GetMessage().
14048
14049                 In PostQuitMessage, we need to add a WM_QUIT message to the
14050                 thread's queue.  We use the FosterParent to get the right
14051                 handle/hwnd/queue.
14052
14053                 Lastly, in SetVisible, we need to unmap both windows, since the
14054                 waiting only happens when we're unmapping the client window.  So
14055                 now, the *only* time we unmap just the whole_window is in the hack
14056                 for resizing a control to 0,0.
14057                 
14058         2007-02-21  Chris Toshok  <toshok@ximian.com>
14059
14060                 * Application.cs (CloseForms): rewrite this so that we don't
14061                 modify the list while we're traversing it.
14062
14063         2007-02-20  Chris Toshok  <toshok@ximian.com>
14064
14065                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
14066                 of OnHandleCreated.
14067                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
14068                 handle is created.  otherwise we'll create it here.
14069                 (VerticalScrollEvent): same here.
14070
14071                 * Application.cs (CloseForms): call Form.Dispose, don't post
14072                 WM_CLOSE_INTERNAL.
14073
14074                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
14075                 here. Application should Dispose() of the Form's.
14076
14077                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
14078                 WM_DESTROY as well.
14079                 (MapWindow,UnmapWindow): only actually do the waiting for
14080                 SHOWWINDOW if the control we're dealing with is a Form.
14081                 (CreateWindow): if the control isn't a form, SendMessage
14082                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
14083
14084                 * Control.cs (SetVisibleCore): always use is_visible here, not
14085                 value.  If we use value, we can end up re-setting something
14086                 visible if, for instance, you do Control.Hide() in a delegate
14087                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
14088
14089         2007-02-20  Chris Toshok  <toshok@ximian.com>
14090
14091                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
14092                 the message we need.  PeekMessage returning false should not be a
14093                 condition under which we exit the loop.
14094
14095         2007-02-15  Chris Toshok  <toshok@ximian.com>
14096
14097                 * Control.cs (Refresh): only refresh if we've got a handle and are
14098                 visible.
14099                 (CreateAccessibilityInstance): CreateControl() here.
14100                 (UpdateChildrenZOrder): complicate the code loop even more by
14101                 taking into account controls that haven't had their handle
14102                 created, and those that aren't visible.  But on the flip side,
14103                 simplify the code by splitting it into two loops.  one which
14104                 builds up the list of child controls we're interested in, and the
14105                 other that sets the z order of those children.
14106
14107         2007-02-14  Chris Toshok  <toshok@ximian.com>
14108
14109                 * Control.cs: Control.AccessibilityObject causes the control to be
14110                 created, not just the handle.
14111
14112         2007-02-14  Chris Toshok  <toshok@ximian.com>
14113
14114                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
14115                 problem on X where a window might have its handle created (and be
14116                 visible) while the window is unmapped.  calling XConfigureWindow
14117                 on an unmapped window is bad, and generates X errors.
14118
14119         2007-02-13  Chris Toshok  <toshok@ximian.com>
14120
14121                 * Control.cs (CreateHandle): don't loop over our children setting
14122                 their parent here.  do it when in WndProc when we're shown.
14123                 (UpdateChildrenZOrder): make this internal so we can call it from
14124                 ScrollableControl.
14125                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
14126                 creating its handle.  Also, remove the calls to PerformLayout from
14127                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
14128                 OnVisibleChanged only seems to be called directly here for the
14129                 toplevel control.  It's propagated down the window hierarchy by
14130                 calls to child.OnParentVisibleChanged.
14131                 (OnVisibleChanged): don't do layout here - it's done (oddly
14132                 enough, according to a glance at stack traces on ms.net..) in
14133                 ScrollableControl.
14134                 
14135                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
14136                 z order of our children before calling PerformLayout.
14137
14138         2007-02-12  Chris Toshok  <toshok@ximian.com>
14139
14140                 [big change, fixes #80020]
14141                 
14142                 * AccessibleObject.cs: we need to make owner internal again to fix
14143                 some of ControlAccessibleObject.
14144
14145                 * Control.cs: lots of changes here.  add support for WM_CREATE,
14146                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
14147                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
14148                 we create child controls.  leave the MonoTODO's for the
14149                 accessibility calls, but fix the exceptions so the tests pass.
14150
14151                 Add the InvalidOperationExceptions to Invoke methods, and remove a
14152                 couple of InvokeInternal methods we aren't using.
14153                 
14154                 Also, add a couple of CreateHandle calls in places where we know
14155                 the handles are being created but our code doesn't reference
14156                 .Handle.
14157
14158                 Make SetVisibleCore call OnVisibleChange if the handle isn't
14159                 created.  If the handle is created, we rely on XplatUI.SetVisible
14160                 generating the event synchronously.
14161                 
14162                 Lastly, make sure we don't use this.Handle inside CreateHandle,
14163                 because we can call back into client (and that code can dispose of
14164                 the control).
14165
14166                 * XplatUIStructs.cs: misc/cleanup.
14167
14168                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
14169                 although we don't populate the wParam properly.
14170                 (CreateWindow): generate WM_CREATE.
14171                 (MapWindow,UnmapWindow): make these calls synchronous, at great
14172                 performance expense (particularly in the unmap case), to match
14173                 win32 behavior.
14174
14175                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
14176                 to call it.
14177                 (set_MdiParent): don't recreate the handle unless it's been
14178                 created already.
14179                 
14180                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
14181                 it's created.
14182
14183                 * NativeWindow.cs: this is probably the weirdest part of the
14184                 patch.  We need a way to link up the window being created to the
14185                 WM_CREATE message.  Since we can only be creating one window at a
14186                 time on a given thread, we keep track of a per-thread reference so
14187                 we can dispatch it properly.  We also need to keep track of the
14188                 Hwnd currently being created so that the win32 backend doesn't
14189                 have problems.
14190                 
14191                 * XplatUIWin32.cs: a similar change to the one we made in
14192                 NativeWindow.cs.
14193
14194 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
14195
14196         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
14197         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
14198         to draw the menu shortcut string.
14199
14200 2007-03-07  Jackson Harper  <jackson@ximian.com>
14201
14202         * TreeNode.cs: Add the 2.0 collapse method.
14203
14204 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14205
14206         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
14207
14208 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14209
14210         * DataGridView.cs: Change DataSource will clear column and row
14211         lists. Call Invalidate() to reflect DataSource change.
14212
14213 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14214
14215         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
14216         and a new row is added to it.
14217
14218 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
14219
14220         * DataGridView.cs: Add columns when DataSource is en empty list but
14221         is a System.Data.DataView (from a System.Data.DataTable).
14222
14223 2007-03-06  Andreia Gaita  <avidigal@novell.com>
14224
14225         * Label.cs: Implement AutoEllipsis (2.0)
14226
14227 2007-03-06  Jackson Harper  <jackson@ximian.com>
14228
14229         * TreeView.cs: Implement 2.0 TopNode setter property.
14230         - Use a local var instead of the skipped_nodes field for computing
14231         how many nodes to skip.  Otherwise we won't scroll because the
14232         valuechanged handler checks if skipped_nodes is equal to the new
14233         value.
14234         - Implement 2.0 Sort method.
14235         - Add useless 2.0 DoubleBuffer property
14236         - Implement 2.0 LineColors property.  Lets you change the color of
14237         the lines in the tree. Terribly useful for creating non cohesive
14238         desktops.
14239         - Implement 2.0 image key feature.
14240
14241 2007-03-06  Jackson Harper  <jackson@ximian.com>
14242
14243         * TreeView.cs: We can't get the bounds of the nodes before raising
14244         the AfterSelect event, because that event could change the node's
14245         bounds (scrolling, font change, etc).
14246
14247 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14248
14249         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
14250         * Form.cs: Don't recreate handle when creating FormWindowManager, just
14251           update window styles. In CreateParams us VisibleInternal instead of
14252           VIsible to get the actual visible flag set for this form.
14253         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
14254           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
14255           handle the case when the form is already maximized, in which case
14256           it should be restored. Fixes #81043.
14257
14258 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14259
14260         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
14261
14262 2007-03-05  Jackson Harper  <jackson@ximian.com>
14263
14264         * TreeViewHitTestInfo.cs: implement.
14265
14266 2007-03-05  Jackson Harper  <jackson@ximian.com>
14267
14268         * InternalWindowManager.cs: class status fix.
14269
14270 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14271
14272         * InternalWindowManager.cs: All windows that have a parent
14273         are confined to their parent when they're being moved.
14274         Fixes #80822.
14275
14276 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
14277
14278         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
14279         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
14280
14281 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14282
14283         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
14284           buttons invisible before deciding which ones should be visible
14285           (fixes minimize/maximize buttons showing up in toolwindows). Remove
14286           an unused variable.
14287         * InternalWindowManager.cs: Remove warning.
14288
14289 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14290
14291         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
14292         to throw an InvalidOperationException is virtual mode is being used.
14293
14294 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14295
14296         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
14297         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
14298         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
14299         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
14300         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
14301         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
14302
14303 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14304
14305         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
14306           driver.KeyboardDelay from XplatUI.KeyboardDelay 
14307         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
14308           (patch by Sergey Volk)
14309
14310 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14311
14312         * ToolWindowManager.cs: Added, contains logic for
14313           tool windows.
14314         * CreateParams.cs: Add a few helper methods and an
14315           internal variable to know which control the CreateParams belongs
14316           to.
14317         * Control.cs: Call Form.ChangingParent when the
14318           parent is about to be changed.
14319         * XplatUIX11.cs: DeriveStyles (): Set
14320           caption_height for all windows that have captions and are children.
14321           Update to use ToolWindowManager instead of InternalWindowManager
14322           for ToolWindows.
14323         * XplatUIWin32.cs: Set fake window styles for all
14324           windows that have window managers.
14325         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
14326           now duplicated for mdi windows when they are
14327           maximized, first for the buttons the window itself has, then for
14328           the buttons that appear in the menu bar. Makes things a little
14329           easier). Updated UpdateWindowDecorations, SetWindowState and the
14330           mouse eventhandlers accordingly.
14331         * Form.cs: Add ChangingParent (), contains the
14332           logic of what should happen when the parent changes. In MdiParent
14333           don't set things that ChangingParent () is doing. When handling
14334           WM_CLOSE, we can close the form if there are any other modal forms
14335           and the current form is a descendent of the modal form.
14336         * InternalWindowManager.cs: A lot of refactoring,
14337           the title buttons are now extracted to a separate container class
14338           that takes care of all button code (clicks, tooltips, etc). Moved
14339           Iconic|Maximized|Normal Bounds properties to this class from
14340           MdiWindowManager, so that the window state logic can succeed for
14341           other than mdi wm's. Implemented general window state change logic.
14342           Moved CreateButtons to ThemeWin32Classic, since the theme might
14343           override which buttons are available when as well as the exact
14344           location.
14345         * FormWindowManager.cs: Added, contains logic for
14346           normal forms.
14347         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
14348           which buttons go where (and if they are at all visible). 
14349           Removed special handling of maximized windows, since they aren't special. 
14350           In DrawManagedWindowDecorations don't try to draw the text if it is
14351           empty.
14352         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
14353           use whatever the wm gives us.
14354
14355 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
14356
14357         * ButtonBase.cs: Add 2.0 properties.
14358         * Button.cs: Override Draw for 2.0.
14359         * Control.cs: Add Entered and Selected properties.
14360         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
14361         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
14362         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
14363         buttons.
14364         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
14365
14366 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14367
14368         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
14369
14370 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
14371
14372         * XplatUIWin32.cs: Register a new class with Windows each time we get
14373         a new ClassStyle.  [Fixes bugs #79432, #80817]
14374         * Controls.cs: Set the correct ClassStyle in CreateParams.
14375         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
14376
14377 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
14378
14379         * ListView.cs: Add fireEvent argument to ReorderColumn since the
14380         ColumnReordered event must not be signaled when modifying DisplayIndex
14381         of a ColumnHeader. Added internal ReorderColumns method which takes
14382         care of drawing, and updating the internal DisplayIndex of the
14383         ColumnHeader. Added AddColumn method which is invoked from
14384         ColumnHeaderCollection when adding or inserting columns, and which
14385         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
14386         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
14387         Recalculated dispay indices after removing a ColumnHeader.
14388         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
14389         match MS. Allows last display index to be returned after ListView
14390         is disposed. Update actual location of ColumnHeader when DisplayIndex
14391         is modified.
14392
14393 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
14394
14395         * LinkLabel.cs: Improve CalcTrimRectangle.
14396         
14397         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
14398
14399 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14400
14401         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
14402         get rectangle as a result value.
14403
14404 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
14405
14406         * LinkLabel.cs: Theres some diferences between rectangle return from 
14407         MeasureCharacterRanges and the area used for DrawString to fix this 
14408         CalcMeasurementFactor method was created, it calcules the diferences
14409         to be use later to adjust rectangle in draw operations. Fixes #80473.
14410         
14411         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
14412         to adjust draw rectangle.
14413
14414 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14415
14416         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
14417         text and some other changes to reduce and optimize source code.
14418
14419 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14420
14421         * RadioButton.cs: Implement 2.0 event.
14422         * RelatedImageListAttribute.cs: Implement new class.
14423
14424 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
14425
14426         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
14427
14428 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
14429
14430         * CheckBox.cs: Implement 2.0 functionality.
14431
14432 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14433
14434         * ListView.cs: Refactor Add and AddRange methods of
14435         ListViewItemCollection, to not update the ListView
14436         everytime an item is added in AddRange. Also move the update
14437         code to a new CollectionChanged method, and call it
14438         from other methods that need it as well (this should also fix some
14439         bugs when Sorting is used).
14440
14441 2007-02-27  Jackson Harper  <jackson@ximian.com>
14442
14443         * TextControl.cs: Try to never let the caret stay in a non-text
14444         tag.
14445         * TextBoxBase.cs: Update the caret.
14446
14447 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
14448
14449         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
14450         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
14451         delete POINT structure, duplicate of one in XplatUIStructs.
14452         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
14453
14454 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
14455
14456         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
14457         edit box since otherwise the Label would immediately be set (even if
14458         the user did not modify the label). In OnKeyDown set Handled to true
14459         if Return or Escape was pressed. In ColumnHeaderCollection unlink
14460         columns that are to be removed. In ListViewItemCollection unlink items
14461         that are to be removed.
14462
14463 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
14464
14465         * TextRenderer.cs: If we set a GDI clip region, we need to clear
14466         it when we are done.  [Fixes bug #80949]
14467
14468 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14469
14470         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
14471
14472 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14473
14474         * ListView.cs: I forgot to commit the changes for ListView 
14475         in my previous patch.
14476
14477 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14478
14479         * Clipboard.cs: Partially implement an overload of SetDataObject.
14480         * Form.cs: Implement ShowWithoutActivation.
14481         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
14482
14483 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14484
14485         This is a first set of changes to make the Virtual mode works,
14486         by avoiding the retrieval of ListViewItem instances until
14487         draw time.
14488
14489         * ListView.cs: Store item position in the ListView instead of the
14490         ListViewItem, this way we don't request the Bounds property of
14491         ListViewItem inside the ListView calculations, as well as cache the item
14492         size in item_size field. Store indexes instead of ListViewItem
14493         instances in the matrix used by icon view. Add a ItemMatrixLocation
14494         struct to hold the row and col info of the matrix info.
14495
14496         * ListViewItem.cs: Don't store the location anymore, and only cache
14497         the rectangles for GetBounds. Use the ListView.GetItemLocation
14498         method to retrieve the actual location.
14499
14500 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14501
14502         * TextRenderer.cs: Add clipping support, thanks to George.
14503         [Fixes bug #80949]
14504
14505 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14506
14507         * ListViewItem.cs: Cancel label edit when item is removed from 
14508         ListView.
14509         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
14510         event before the edit textbox is displayed.  Added CancelEdit method
14511         which is used end to editing while ignoring the value set by the
14512         user. In EndEdit, set focus to ListView to avoid losing focus to
14513         other controls. In ListViewItemCollection.Clear, cancel editing of
14514         any of the items.  In Remove, cancel editing of item being removed.
14515         Avoid udplicate code by modifing RemoveAt to invoke Remove.
14516
14517 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14518
14519         * FileDialog.cs: Update FSEntry when move is successful. Fixes
14520         bug #80948.  
14521
14522 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14523
14524         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
14525         compatible with non X11 systems. Fixes #80901.
14526
14527 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
14528
14529         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
14530         whether the item should be unselected and reselect. We do no want this
14531         when we're starting to edit the label. Do not fire the 
14532         SelectedIndexChanged event from ListView when its already been fired
14533         by modifying ListViewItem.Selected. Fixes bug #80943.
14534
14535 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14536
14537         * TextRenderer.cs: Previos commit logic was backwards.
14538
14539 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
14540
14541         * TextRenderer.cs: Don't add padding on MeasureText if we were
14542         sent the NoPadding flag.
14543
14544 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14545
14546         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
14547         after DrawButton. To prevent image overlaps button borders SetClip and 
14548         ResetClip added before and after draw image. Fixes #79129.
14549
14550 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
14551
14552         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
14553         window size, it fix problem when you run under win32 that theres
14554         Size diferent than ClientSize. Also fix controls size and positions
14555         to mimic Win32. Fixes #80837.
14556
14557 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
14558
14559         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
14560         menu area to fix some problems for non X11 systems. Fixes #80613.
14561
14562 2007-02-22  Jackson Harper  <jackson@ximian.com>
14563
14564         * TreeNode.cs: When a node is expanded, set its is_expanded flag
14565         even if it doesn't have any children.
14566
14567 2007-02-22  Jackson Harper  <jackson@ximian.com>
14568
14569         * TreeView.cs: Calculate the top node 'on the fly', this
14570         eliminates issues where you need to click on the tree before
14571         scrolling it to get the top node computed correctly.
14572         * TreeNodeCollection.cs: We don't need to mess with the top node
14573         anymore.
14574
14575 2007-02-22  Jackson Harper  <jackson@ximian.com>
14576
14577         * DataGridViewRow.cs: Fix typo so height can actually be set.
14578         Patch by Peter Grimm.
14579
14580 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14581
14582         * FileDialog.cs: Fixed support for renaming files and directories.
14583         * ListView.cs: Do not lose focus when edit is canceled. Process
14584         Escape as regular key (to prevent closing of dialogs).
14585
14586 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14587
14588         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
14589         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
14590
14591 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
14592
14593         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
14594         did not modify label.
14595         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
14596         modified the text. Reset Label when user presses Escape in edit mode.
14597         Move focus to ListView after having cancelled or finished editing the
14598         label.
14599
14600 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
14601
14602         * ComboBox.cs: Removed unnecessary initializations. Marked items field
14603         private. Clear textbox when Text is set to null and SelectedIndex is
14604         already -1.
14605         * FileDialog.cs: Removed unnecessary initializations. Removed 
14606         workarounds for ComboBox bugs that are now fixed. Modified
14607         DefaultExt, InitialDirectory and Title property to change null to
14608         zero-length string in getters. Avoid directly accessing fields.
14609
14610 2007-02-20  Jackson Harper  <jackson@ximian.com>
14611
14612         * TextControl.cs: Remove RecalAlignments call, that was some
14613         debugging leftovers.
14614         - Don't use the line indent when we shouldn't.
14615         * RichTextBox.cs: Add support for paragraph left indents.
14616
14617 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14618
14619         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
14620         Seems like the class status pages doesn't catch params differences.
14621
14622 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
14623
14624         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
14625
14626 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
14627
14628         * ComboBox.cs: Setting Text should have no effect if item text of
14629         selected item exactly matches value. First lookup text using
14630         case-sensitive comparison, and fallback to case-insensitive comparison.
14631         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
14632         allow startIndex to be last index. Changed ArgumentOutOfRangeException
14633         paramname to match MS. Restart from first item if string is not found
14634         after startIndex. Fixed paramname of ArgumentNullException that is
14635         thrown for null value in ObjectCollection.Contains.
14636
14637 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
14638
14639         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
14640
14641 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14642
14643         * ListControl.cs: In SelectedValue use value.Equals to compare for
14644         equality instead of ==, otherwise it will fail for strings.
14645         Fixes #80794.
14646
14647 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14648         
14649         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14650         since the caret won't show up unless ShowSelection is true. 
14651         Fixes #80795.
14652
14653 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14654
14655         * Application.cs: When disabling all forms but the main form, do not
14656           disable any descendants of the main form (such as mdi children or
14657           other parented forms). Fixes #80822 on Windows.
14658         * Form.cs: If we have a parent, set the WS_CHILD style.
14659         * Control.cs: Update the window styles if the control whose parent has
14660           changed is a form (the WS_CHILD style has to be switched).
14661
14662 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
14663
14664         * XplatUIStructs.cs: MsgUIState structure added.
14665
14666 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14667
14668         * FileDialog.cs: Removed need for separate fileName field. On 2.0
14669         profile, do not check filename(s) for illegal character if filename(s)
14670         were set non-interactively but always check on 1.0 profile. Fixed NRE
14671          in DefaultExt and only strip off first leading dot. Improve exception
14672         message when invalid Filter is set. Do not ignore InitialDirectory if
14673         it does no exist. Store specified Title, and if empty use default
14674         title (depending on type of dialog). Added an internal DialogTitle 
14675         property for retrieving dialog title. Fixed logic of displayed dir to
14676         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
14677         string as its buggy.
14678         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14679         FileName is a zero-length string (it can never be null). Override 
14680         DialogTitle property to set default title of dialog box.
14681         * SaveFileDialog.cs: Override DialogTitle property to set default
14682         title of dialog box.
14683
14684 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
14685
14686         * FileDialog.cs: Modify default text of filename and filetype labels
14687         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14688         after we've updated the SelectedIndex. Fixes part of bug #80887.
14689         * SaveFileDialog.cs: Set text of filetype label.
14690
14691 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14692
14693         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14694         label field. Needed by latest Jackson's fixes for ListView.
14695
14696 2007-02-16  Andreia Gaita  <avidigal@novell.com>
14697
14698         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
14699         print preview images.
14700
14701 2007-02-16  Jackson Harper  <jackson@ximian.com>
14702
14703         * ListView.cs: Make AfterLabelEdit work correctly.
14704         * FileDialog.cs: After changing the name of the folder, we have to
14705         make sure that it is created, or that we pop up an error because
14706         it already exists.
14707
14708 2007-02-16  Jackson Harper  <jackson@ximian.com>
14709
14710         * X11Dnd.cs: Implement aliases on mime handlers, so things like
14711         System.String are mapped to text.
14712         - Handle dataobjects, getting all the possible formats out of them
14713         - We dont need the drag event args before we give feedback. This
14714         allows feedback cursors to be immediate before selections have
14715         been converted.
14716
14717 2007-02-16  Jackson Harper  <jackson@ximian.com>
14718
14719         * TextBoxBase.cs: Modified the method for inserting images to
14720         taking a line and position instead of tag and position.
14721         * RichTextBox.cs: Handle PngBlip data by inserting the png image
14722         into the RTF file.
14723         * TextControl.cs: Allow images to be inserted as the first tag of
14724         a line.
14725         - Fix some off by one issues when we assume the first tag is a
14726         text tag, not an image tag.
14727
14728 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14729
14730         * ListView.cs: Set focus to ListView when ItemControl gets a
14731         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
14732         Fixes part of #80467.
14733
14734 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14735
14736         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
14737           validate Text input (if null or empty string reset Value to default
14738           value). Fixes #80830.
14739
14740 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14741
14742         * ListView.cs: Set owner as null for columns and items when
14743         Dispose is invoked. Fixes #80607.
14744
14745 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
14746
14747         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
14748         showing DropDowns, don't show a Grip when doing Flow layout.
14749         [This fixes the toolbox in PDN 2.72.]
14750         * ToolStripItem.cs: Add Anchor property and some internal properties to
14751         reduces needed changes to FlowLayout.
14752         * ToolStripOverflow.cs: Remove unused variable.
14753         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
14754         use it in the layout calculations.
14755
14756 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14757
14758         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
14759         reported in #79640.
14760         
14761         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
14762         size calculation.
14763
14764 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14765
14766         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
14767         MeasureString format, it can make button very large in some cases, it is
14768         strange but is what win32 do.
14769
14770 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14771
14772         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
14773         size calculation.
14774
14775         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
14776         rendering, the value is based on MenuAccessKeysUnderlined.
14777
14778 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
14779
14780         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
14781         for most themes.
14782         
14783         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
14784         
14785         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
14786         and use MenuAccessKeysUnderlined instead.
14787
14788 2007-02-13  Andreia Gaita  <avidigal@novell.com>
14789
14790         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
14791         A selected control would not get a Focus call if:
14792                 - the default active control of the container is the same as
14793                   the one that was selected
14794                 - we are switching from one container to another
14795         Under these conditions, the container being selected already has
14796         an active_control, which is the same as the one being activated, 
14797         so set_ActiveControl would always return and not send the Focus
14798         call. Fix to check if the currently active control of the container
14799         is actually focused.
14800
14801 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
14802
14803         * StatusStrip.cs: Implement the spring layout.
14804         * ToolStripControlHost.cs: Make sure the hosted control's visibility
14805         always matches the host.
14806         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
14807         and TextAfterImage.
14808
14809 2007-02-13  Andreia Gaita  <avidigal@novell.com>
14810
14811         * Control.cs: Code reorganization only.
14812           - Reorganize the WndProc cases so that each case has it's own handling method, 
14813           to help with the no-line-numbering stack traces.
14814           - Formatting changes (it's vstudio's fault, really :p)
14815
14816 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14817
14818         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
14819           Thread.CurrentUICulture to match DateTimePicker's (and MS)
14820           behaviour.
14821
14822 2007-02-12  Jackson Harper  <jackson@ximian.com>
14823
14824         * RichTextBox.cs:
14825         * TextBox.cs: By default we have a non multiline document
14826         - use the multiline property instead of the internal variable
14827         * TextBoxBase.cs: Treat multiline and non multiline the same in
14828         most places.
14829         - Use the documents multiline flag instead of tracking it ourself
14830         * TextControl.cs: Attempt at getting multiline to match MS
14831         behavior.  Lines now track an offset, which is either their X or Y
14832         offset depending on whether or not we are in multiline mode.
14833         - Update all the methods to understand that lines have an X value.
14834         - Fix crash in Undo::Duplicate when empty lines are deleted.
14835
14836 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
14837
14838         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
14839         code moved to properties PreferredHeight and PreferredWidth. It solve the
14840         all problems when preferred sizes must be recalculated. Fixes #80801.
14841
14842 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
14843
14844         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
14845         font height when compatible_text_rendering is false. Partially fix #80801.
14846
14847 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14848
14849         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
14850
14851 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14852
14853         * Form.cs: Improved exception messages in ShowDialog.
14854
14855 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
14856
14857         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
14858         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
14859         if not set. Fixes bug #80764. Avoid accessing current_settings field
14860         directly.
14861
14862 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
14863
14864         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
14865         false.
14866
14867         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
14868         public in 2.0 and for easy maintenance and dont break compatibility it is 
14869         internal in 1.1.
14870         
14871 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14872
14873         * ToolStripItem.cs: Implement using images from ImageList.
14874
14875 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14876
14877         * DateTimePicker.cs: Change default date-formatting culture from
14878           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
14879           seems to be the way MS does it.
14880
14881 2007-02-08  Andreia Gaita  <avidigal@novell.com>
14882
14883         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
14884         (the 6 was cut off on the right side)
14885
14886 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14887
14888         * Form.cs: Tell MenuStrips to close when the form is clicked.
14889         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
14890         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
14891         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
14892         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
14893         support for Overflow, where items that do not fit are automatically
14894         reparented to a drop down menu.
14895         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
14896         Also: fixes bug #80747.
14897
14898 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14899
14900         * ComboBox.cs: Remove warning (unused code).
14901         * ScrollableControl.cs: Remove warning for 1.1 profile.
14902
14903 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14904
14905         * Form.cs: Remove a warning.
14906
14907 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14908
14909         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
14910           'g' specifier, not documented anywhere, but seems to always show up
14911           as a single space (might have something to do with the DateTime 'g'
14912           specifier, which is the era format, but since DateTimePicker can't
14913           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
14914           won't crash if the format has an unmatched quote. Now shows
14915           single-character formats correctly. Fixes #80744.
14916
14917 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
14918
14919         * StatusStrip.cs: Stretch property needs to call base.Stretch,
14920         not this.Stretch to fix stack overflow. [Fixes bug #80760]
14921
14922 2007-02-07  Chris Toshok  <toshok@ximian.com>
14923
14924         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
14925         background color.  it overwrites the background image we've
14926         already painted.  Fixes #80599.
14927
14928 2007-02-07  Chris Toshok  <toshok@ximian.com>
14929
14930         * DataGrid.cs: return immediately from Edit() when there are no
14931         columns.  Fixes #80662.
14932
14933 2007-02-07  Chris Toshok  <toshok@ximian.com>
14934
14935         * MessageBox.cs: fix #80625.  don't always show the Help button in
14936         2.0.  use the displayHelpButton parameter to determine if we
14937         should show it. Also, make the internal show_help field private.
14938
14939 2007-02-07  Chris Toshok  <toshok@ximian.com>
14940
14941         * Control.cs (SetVisibleCore): check in the proposed patch for
14942         80604, and set is_visible before calling CreateControl.
14943
14944 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
14945
14946         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
14947         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
14948         on it.
14949
14950 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
14951
14952         * MenuAPI.cs: hotkey_active internal field added, it is required because
14953         we need to know when hotkeys must be draw, before this change a keystate
14954         Navigating was used but we can have menu in navigating state without
14955         hotkeys. Fixes #80694.
14956         
14957         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14958
14959 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14960
14961         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14962           corresponding events and methods to be internal for 1.1 profile and
14963           public for 2.0 profile (required by SizeGrip).
14964         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14965           implicit control list). Don't set the size nor the location of the
14966           SizeGrip anymore as it's not needed.
14967         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14968           draw directly on the captured control (fixes #80656). Removed
14969           ShowGrip (it wasn't used anywhere), redraw (always true), added
14970           GetDefaultSize and GetDefaultRectangle to calculate defaults.
14971         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14972           be called from SizeGrip.
14973
14974 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14975
14976         * Timer.cs: Throw ArgumentException if Interval <= 0.
14977
14978 2007-02-05  Jackson Harper  <jackson@ximian.com>
14979
14980         * TreeView.cs: We need to check scrollbar visibility when window
14981         visibility is updated, because non visible trees don't ever add
14982         scrollbars.
14983         * Cursor.cs: We want the override cursor to be reset to NULL when
14984         we set current cursor to the default cursor.
14985
14986 2007-02-05  Jackson Harper  <jackson@ximian.com>
14987
14988         * TextControl.cs: Don't have crlfs when we are non multiline.
14989         - Consolidate the line position.
14990
14991 2007-02-05  Jackson Harper  <jackson@ximian.com>
14992
14993         * X11Keyboard.cs: BACK+CTRL gets a special char code.
14994
14995 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14996
14997         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14998           handling LeaveNotify->NotifyUngrab in order to send
14999           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
15000           after calling XUngrabPointer, so we call WindowUngrabbed directly
15001           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
15002         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
15003           MouseCaptureChanged correctly. Also create handles if changing
15004           Capture (matches MS behaviour).
15005
15006 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15007
15008         * SizeGrip.cs: Make the last change 2.0 only.
15009
15010 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15011
15012         * SizeGrip.cs: If resizing and the capture is lost, revert any size
15013           changes to initial size (fixes #80597).
15014
15015 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15016
15017         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
15018
15019 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15020
15021         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
15022           background) and only allow dragging if enabled. This way the
15023           sizegrip can be used to fill the open square that otherwise would
15024           have been shown in the bottom right corner of ScrollableControl
15025           when ScrollableControl is not suppose to support sizing.
15026         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
15027           sizegrip is shown and enabled, and hook up with necessary events.
15028
15029 2007-02-01  Chris Toshok  <toshok@ximian.com>
15030
15031         * DataGridTextBoxColumn.cs: clean up the
15032         GetFormattedString/GetColumnValueAtRow combination of functions.
15033         Also fix UpdateUI, and the initial state of
15034         IsInEditOrNavigateMode.
15035
15036         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
15037         aren't supposed to scroll the textbox here, we're supposed to
15038         scroll the datagrid.
15039
15040 2007-02-01  Chris Toshok  <toshok@ximian.com>
15041
15042         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
15043         setting the position.
15044
15045 2007-02-01  Chris Toshok  <toshok@ximian.com>
15046
15047         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
15048         here, since the most recent focus fixes keep us from generating
15049         the Leave event when our textbox gets focus.
15050         (Edit): we should be passing null for the column style's
15051         instantText parameter.
15052         
15053 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
15054
15055         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
15056         raised.  Fixes menu text/icons not showing up in PDN.
15057
15058 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15059
15060         * Control.cs: Remove code in constructor that makes every
15061         control with WS_CHILD set have initial location -1, -1.
15062
15063 2007-01-31  Jackson Harper  <jackson@ximian.com>
15064
15065         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
15066         XplatUIX11.
15067         * XplatUIX11.cs: Give teh keyboard to teh dnd.
15068
15069 2007-01-31  Jackson Harper  <jackson@ximian.com>
15070
15071         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
15072         - Remove some debug code.
15073
15074 2007-01-31  Jackson Harper  <jackson@ximian.com>
15075
15076         * XplatUIX11.cs: If you set the override cursor during a grab, it
15077         should actually override the grab cursor.  This comes into play
15078         when you are setting custom cursors in a DND feedback method.
15079
15080 2007-01-31  Jackson Harper  <jackson@ximian.com>
15081
15082         * X11Dnd.cs: Add support for handling the QueryContinue and
15083         GiveFeedback events.
15084         - Cancel drag and drop actions when the escape key is clicked.
15085         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
15086         can handle the ESCAPE key.
15087         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
15088         done when dnd events are continued after the button is released.
15089         - Add a new helper method so that dnd can translate key events.
15090
15091 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
15092
15093         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
15094         make it more obvious what is happening.
15095
15096 2007-01-30  Jackson Harper  <jackson@ximian.com>
15097
15098         * XplatUIX11.cs: Don't break when handling button release in drag
15099         and drop operations. We need that BUTTONUP message to get through
15100         so capture is released.
15101         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
15102         this is handled automatically when the mouse is down.
15103
15104 2007-01-30  Jackson Harper  <jackson@ximian.com>
15105
15106         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
15107         is closed, so we need to make sure that we aren't changing the
15108         dialog result when the OK (Open or Save) button has been clicked
15109         and we are closing the window ourselves.  Note we don't need to
15110         worry about the cache being written in this case, because it was
15111         already done in the previous FilOk call.
15112
15113 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15114         
15115         * DateTimePicker.cs: Remove a warning.
15116         * ComboBox.cs: Remove a couple of warnings.
15117
15118 2007-01-29  Chris Toshok  <toshok@ximian.com>
15119
15120         * XplatUIX11.cs: don't crash, and remove the icon if the user has
15121         set one, if SetIcon is passed a null icon.
15122
15123 2007-01-29  Andreia Gaita  <avidigal@novell.com>
15124
15125         * TextBox.cs: Redraw when the password characters changes
15126         * TextControl.cs: Check if textbox has a password char and draw 
15127         a line of password chars instead of the text in the line. LineTag gets 
15128         an extra Draw() method which allows document.Draw to override the text 
15129         that will be drawn. Removes 1024 char limitation on length of passworded 
15130         lines.
15131
15132 2007-01-29  Jackson Harper  <jackson@ximian.com>
15133
15134         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
15135         single chars is not.
15136
15137 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
15138
15139         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
15140         one pixel.  Fix a StackOverflowException caused by an overload wrongly
15141         calling itself.
15142
15143 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
15144
15145         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
15146         also remove ProcessArrowKey and put the code inside ProcessKeys.
15147
15148 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
15149
15150         * PaddingConverter.cs: Added.
15151
15152 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15153         
15154         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
15155         ShowPanels is false (fixes #80600). Only draw up to 127 characters
15156         of text (fixes #80601). For panels clip the text to draw to the
15157         panel (fixes #80603).
15158
15159 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15160
15161         * ComboBox.cs: Fixed implementation of ResetText.
15162
15163 2007-01-25  Jackson Harper  <jackson@ximian.com>
15164
15165         * TextControl.cs: For the last char of a line we need to use the
15166         line size, not that chars width, since it won't actually be
15167         computed since the right side of a char is based on the start of
15168         the left side of the next char, and the next char does not exist.
15169
15170 2007-01-25  Chris Toshok  <toshok@ximian.com>
15171
15172         * Splitter.cs: fix the new unit tests, and reindent some switch
15173         statements.
15174
15175 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15176
15177         * ComboBox.cs: Implemented 2.0 methods and events.
15178         * TextBoxBase.cs: Added OnTextUpdate, so that
15179         ComboBox.ComboTextBox can inform ComboBox of it.
15180
15181 2007-01-25  Jackson Harper  <jackson@ximian.com>
15182
15183         * TextControl.cs: Respect ShowSelection when deciding whether or
15184         not to display the caret, this allows comboboxes to have carets
15185         when the combotextbox does not have focus.
15186
15187 2007-01-25  Jackson Harper  <jackson@ximian.com>
15188
15189         * TextControl.cs: Add a Suspend/Resume for updating, basically the
15190         same as the Suspend/Resume for recalc, except this will do actual
15191         Invalidates.
15192         - New Undo manager, works much like the MS version.
15193         - Implemented Redo
15194         * TextBoxBase.cs: The Cut operation is undoable.
15195
15196 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15197         
15198         * TextBoxBase.cs: Don't antialias text. Makes it look way better
15199         on Windows (no difference on Linux).    
15200
15201 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15202
15203         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
15204         we don't want to activate any windows. Fixes #79433.
15205
15206 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
15207
15208         - ButtonBase.cs: Fix capitalization of parameter: disposing.
15209         [Fixes bug #80609]
15210
15211 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
15212
15213         * FileDialog.cs:
15214         - Move to using System.ComponentModel.EventHandlerList
15215         - Replace Refresh with Invalidate
15216         - Clear the mime filecache on closing
15217         - Some other memory reducing work. After beeing closed FD now uses
15218           only about 300 KB for the fdo mime stuff plus the memory of the
15219           cached icons.
15220         * Mime.cs: Changed coding style and removed unnecessary commented
15221         code. Some more memory memory reducing work.
15222
15223 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15224
15225         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
15226         a few other missing 2.0 properties.
15227         * Theme.cs: Added DrawFlatStyleComboBox.
15228         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
15229
15230 2007-01-24  Chris Toshok  <toshok@ximian.com>
15231
15232         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
15233         wake_waiting flag, not just when there's data to be read.  if we
15234         don't, then future wakeup's won't reach us and we'll be doomed to
15235         wait for the entire 1 second timeout forever (unless there are X
15236         events to be had).
15237
15238 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15239
15240         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
15241         until you pass Items.Count, not Items.Count - 1 like 1.1.
15242
15243 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
15244
15245         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
15246
15247 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
15248
15249         * ToolStripContainer.cs: The recent Dock fix exposed that I was
15250         adding the panels in the wrong order.
15251
15252 2007-01-24  Jackson Harper  <jackson@ximian.com>
15253
15254         * TextBoxBase.cs: When we move the caret we also need to move the
15255         selection, this fixes some random crashing after doing select
15256         text, unselect, delete a char, paste.
15257
15258 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15259
15260         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
15261
15262 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15263
15264         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
15265         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
15266         * ToolBar.cs: Force redraw in BackgroundImageChanged.
15267
15268 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15269
15270         * ToolBar.cs:
15271         - Implement support for vertical toolbars. Fixes #80539;
15272         - Call LayoutToolBar when resize, it fix some other problems in layout.
15273         - Rename requested_height to requested_size, as we can have width on it
15274         when toolbar is vertical.
15275         - Create a private property "Vertical" that uses Dock to verify when 
15276         toolbar is vertical or not.
15277         - Set ControlStyles when change Dock property.
15278         - Refactory in LayoutToolBar to have better variables names and to support
15279         vertical toolbars.
15280         - Fixes default value for ButtonSize when button count is equal zero, size
15281         must be (39, 36) test case writed.
15282
15283 2007-01-23  Chris Toshok  <toshok@ximian.com>
15284
15285         * Control.cs: fix the checks so that they work correctly for mdi
15286         parents/children.
15287
15288 2007-01-23  Chris Toshok  <toshok@ximian.com>
15289
15290         * Control.cs: ControlCollection seems to have super-secret
15291         abstraction breaking knowledge of Mdi containers.  allow MdiClient
15292         to add toplevel controls.
15293
15294 2007-01-23  Chris Toshok  <toshok@ximian.com>
15295
15296         * Control.cs: throw an ArgumentException if a toplevel control is
15297         added to our control collection from ControlCollection.Add, as
15298         well as from ControlCollection.IList.Add.  This fixes the
15299         ControlSetTopLevelTest.TestTopLevelAdd unit test.
15300
15301         Also, in ControlCollection.IList.Add, don't through an
15302         ArgumentNullException, throw an ArgumentException, when value ==
15303         null.  This matches MS.
15304
15305 2007-01-23  Chris Toshok  <toshok@ximian.com>
15306
15307         * BindingSource.cs: initial, incomplete, implementation of
15308         BindingSource.
15309
15310 2007-01-23  Jackson Harper  <jackson@ximian.com>
15311
15312         * TextControl.cs:
15313         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
15314         that I can fix a broken unit test (TextBoxTest::ClearUndo)
15315         
15316 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
15317
15318         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
15319
15320 2007-01-23  Andreia Gaita  <avidigal@novell.com>
15321
15322         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
15323         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
15324         IndexOfKey() for 2.0
15325
15326 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15327
15328         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
15329         to prevent it from changing z-order.
15330         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
15331         leave UI updates in MdiWindowManager.
15332         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
15333         1 sized (NC handling goes weird on Linux otherwise).
15334         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
15335         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
15336         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
15337         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
15338         and SetWindowState(s) to allow for changing the size of an activated child
15339         before activating it (reduces a lot of flicker).
15340
15341 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15342
15343         * Form.cs: Changing FormBorderStyle has different semantics based
15344         on whether the Form is visible or not.  If not visible, don't change
15345         the Size.  But InvalidateNC needs to be called to force the window
15346         to pick up the changes and redraw itself.  [Fixes bug #80574]
15347
15348 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
15349
15350         [Moma work]
15351         * ContainerControl.cs: ProcessCmdKey.
15352         * ErrorProvider.cs: new constructor.
15353         * Form.cs: fix AutoValidateEvent compiler warning.
15354         * Label.cs: fix OnAutoSizeChanged compiler warning.
15355         * MenuStrip.cs: fix CanOverflow compiler warning.
15356         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
15357         * TextBox.cs: Dispose.
15358         * ToolStrip.cs: CanOverflow, re-enable double buffering.
15359         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
15360         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
15361         * ToolStripItem.cs: Overflow, RightToLeft properties.
15362
15363 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15364
15365         * Form.cs: Move the layout of the main form to MdiWindowManager.
15366         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
15367         do a layout of the main window to update MdiClient's client area to
15368         the right area. Fixes #80533. Remove the calculation of nc size, 
15369         it was just wrong and the correct one is the same as for 
15370         InternalWindowManager. 
15371
15372 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
15373
15374         * Control.cs: Setting Anchor or Dock needs to reset the other
15375         to its default.  [Fixes bug #80556]
15376
15377 2007-01-20  Chris Toshok  <toshok@ximian.com>
15378
15379         * CheckedListBox.cs: class status changes.
15380
15381         * ScrollableControl.cs: same.
15382
15383         * RichTextBox.cs: same.
15384
15385         * ContainerControl.cs: same.
15386
15387         * ListView.cs: same.
15388
15389         * NotifyIcon.cs: same.
15390
15391         * MenuStrip.cs: same.
15392
15393         * RadioButton.cs: same.
15394
15395         * CheckBox.cs: same.
15396
15397         * PrintPreviewDialog.cs: same.
15398
15399         * Form.cs: same.
15400
15401 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
15402
15403         * TreeNode.cs: Apply Alan's patch for Name property.
15404
15405 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15406         
15407         * Form.cs: Implemented SizeGripStyle.
15408         * SizeGrip.cs: Check for minimum and maximum size for the
15409         control being resized and only resize if size has actually
15410         changed.
15411
15412 2007-01-19  Chris Toshok  <toshok@ximian.com>
15413
15414         * DataGridColumnStyle.cs: stop setting _readonly in the
15415         PropertyDescriptor setter.  fixes a unit test failure.
15416
15417         also, rename ParentReadOnly to TableStyleReadOnly, and have it
15418         just consult our table style (if we have one).  We don't need to
15419         consult the datagrid readonly attribute because that's passed in
15420         as the _ro arg to Edit.  this simplifies things a little.
15421         
15422         * DataGrid.cs: use CurrentColumn instead of
15423         current_cell.ColumnNumber just to simplify some of the code.
15424
15425         switch the order of some things in the CurrentCell setter to keep
15426         the previous cell from getting a textbox again -
15427         EnsureCellVisibility causes scrolling to happen, which calls Edit.
15428         So we need to set the new cell before calling it.
15429         
15430         call Edit in OnEnter, as does Microsoft.
15431         
15432         also, make sure the current table style isn't the one we create
15433         initially when checking to see if it's different than the one
15434         we're setting it to in BindColumns (this fixes #80421).
15435
15436         * GridTableStylesCollection.cs: table styles can have "" for a
15437         mapping name.  part of the fix for #80421.
15438
15439         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
15440         Edit significantly.
15441
15442 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15443
15444         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
15445         and less GDI object leaky-er.
15446
15447 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15448
15449         * LinkLabel.cs: Add opaque control style
15450
15451 2007-01-18  Jackson Harper  <jackson@ximian.com>
15452
15453         * TextControl.cs: Calculate width properly.
15454         - Don't store the tag's X offset, this can be figured out very
15455         easily.
15456         - When getting the caret tag make sure to get the last empty tag.
15457
15458 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15459
15460         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
15461         [Fixes bug #79959]
15462
15463         * Control.cs: Color.Empty shouldn't count for previous transparent
15464         redraw changes.
15465
15466 2007-01-18  Jackson Harper  <jackson@ximian.com>
15467
15468         * TextBox.cs:
15469         * RichTextBox.cs:
15470         * TextControl.cs: Starting to merge in some pieces of my older
15471         undo work.  Basically just some slight cleanup of the undo API.
15472
15473 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15474
15475         * TrackBar.cs: Fix signature of RightToLeftLayout.
15476         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
15477         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
15478         * Application.cs: Implemented UseWaitCursor.
15479
15480 2007-01-18  Jackson Harper  <jackson@ximian.com>
15481
15482         * TextControl.cs: We can't skip tags if any part of the tag is
15483         visible.
15484
15485 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15486
15487         * ContainerControl.cs: Override OnLayout.
15488
15489 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15490
15491         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
15492
15493         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
15494         everything else.
15495
15496 2007-01-18  Chris Toshok  <toshok@ximian.com>
15497
15498         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
15499         (leftover from the container_selected days, I'd wager).  fixes bug
15500         #80546.
15501
15502 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15503
15504         * Control.cs: Apply patch from George to fix the new testcase on
15505         bug #80451.  We can't just check for Color.Transparent, we need 
15506         to check if the back color's alpha channel is < 255.
15507
15508 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
15509
15510         * Form.cs: Move setting show_icon = true to before the constructor
15511         so that the base constructor has that information when it calculates
15512         the form's size.  Was causing forms to be (6, 6) bigger than they
15513         were supposed to be.  Thanks for catching this Rolf!
15514
15515 2007-01-18  Jackson Harper  <jackson@ximian.com>
15516
15517         * TextControl.cs: When replacing a selection we need to invalidate
15518         from the initial selection start, because selection start is moved
15519         to the end of the replacement.
15520
15521 2007-01-18  Andreia Gaita  <avidigal@novell.com>
15522
15523         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
15524
15525 2007-01-18  Chris Toshok  <toshok@ximian.com>
15526
15527         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
15528         I just added.
15529
15530 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
15531
15532         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
15533         layout methods and properties from ToolBarButton must be available
15534         into ToolBarButtonInfo.
15535
15536 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15537
15538         * Control.cs: If the control has a transparent background, we
15539         need to refresh it when it moves and when it's parent's background
15540         image changes.  [Fixes bug #80451]
15541
15542 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15543
15544         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
15545
15546 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
15547
15548         * XplatUIWin32.cs: Implement proper double buffering for Windows.
15549         [Fixes bug #80447, and probably speeds up things as well]
15550
15551 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15552
15553         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
15554         * XplatUIWin32.cs: We need to recalculate NC size after changing 
15555         window style to toolwindow (otherwise the client rectangle will be
15556         3 pixels to small for some reason).
15557         * MdiWindowManager.cs: Revert NC size calculations to match how
15558         they are calculated only based on window styles (to match
15559         Win32AdjustWindowRectEx, since otherwise when setting size or 
15560         location, Control will call Win32AdjustWindowRectEx to update client 
15561         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
15562         calculate a different value of client size causing another paint 
15563         (and flickering))
15564         * InternalWindowManager.cs: When moving or resizing a window only
15565         update size or location if they actually changed.
15566         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
15567         (seems to match Windows behaviour better). Cleaned up 
15568         ManagedWindowDecorations to draw what's needed and nothing else
15569         (was drawing borders and lines where they shouldn't be)
15570         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
15571         (style = 0xFFFF) and takes into account caption height when 
15572         calculating window rectangle.   
15573
15574 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
15575
15576         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
15577         can be added to toolbar multiple times, we need to maintain a list of 
15578         button information for each positions.
15579
15580 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
15581
15582         * ToolBar.cs: Some small stetic changes.
15583
15584 2007-01-16  Jackson Harper  <jackson@ximian.com>
15585
15586         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
15587         that allow us to have nested recalc = false blocks.
15588         - Add paste support for images in the RichTextBox
15589         * RichTextBox.cs: flush the text after the color is changed, so
15590         the change takes effect.
15591         - Use SuspendRecalc
15592         - Some extra debugging info
15593         * TextControl.cs: Tags no longer track their length, it is just
15594         computed from the next tags length, this makes things a little
15595         simpler and reduces places that we have to track length changes.
15596         - Refactored the linetag class a little so we could make it
15597         a base class for different kinds of tags
15598         - Created a image tag, a tag that can have a single image inserted
15599         into it
15600         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
15601         that we can call suspend multiple times.
15602         - Add some debugging methods
15603
15604 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15605
15606         * MdiClient.cs: Add ActivatePreviousChild for 
15607         mdi child window navigation.
15608         * Form.cs: Use MdiClient.ActivateNextChild/
15609         ActivatePreviousChild instead of Form.SelectNextControl
15610         to select the next/previous child since 
15611         SelectNextControl doesn't do it in the same order
15612         as mdi children should do it.
15613
15614 2007-01-16  Chris Toshok  <toshok@ximian.com>
15615
15616         * Control.cs: remove container_selected field.
15617
15618 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15619
15620         * MdiClient.cs: Update main form's ActiveChild when
15621         updating keyboard focus for the mdi child.
15622
15623 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
15624
15625         * Control.cs: PreferredSize fix.
15626
15627         * Form.cs: Add several 2.0 events, properties, and methods.
15628
15629 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
15630
15631         * Form.cs: Provide meaningful message when MdiParent is assigned a
15632         Form that is not an MdiContainer.
15633
15634 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15635
15636         * MdiClient.cs: Update main form's ActiveChild when
15637         activating a mdi child.
15638
15639 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15640
15641         * MdiWindowManager.cs: Fix NRE when merging menus and main form
15642         doesn't have a menu.
15643
15644         * Form.cs: Request NCRecalc after creating a mdi child window.
15645         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
15646         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15647         
15648         * MdiClient.cs: Add new method SendFocusToActiveChild that either
15649         sends keyboard focus to the active child, or to the MdiClient
15650         if there are no child forms.
15651         
15652 2007-01-15  Chris Toshok  <toshok@ximian.com>
15653
15654         * ListView.cs: drop the *Internal overrides, just do our work in
15655         ItemControl's WndProc instead.
15656
15657         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
15658         of the various controls, and forward the events properly (in the
15659         same manner as MS) from the textbox to the UpDown.  Also the
15660         ActiveControl of the UpDownBase gets set properly now.  Finally,
15661         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
15662
15663         * NumericUpDown.cs: set Text in the ctor.
15664
15665         * DomainUpDown.cs: call UpdateEditText in the ctor.
15666         
15667         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15668         so even a Selectable = false textbox can be focused if you click
15669         in it.  Go figure.
15670
15671         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
15672         just add their handling in their respective WndProc's.  Also add
15673         an explicit FocusInternal method that doesn't consult CanFocus
15674         before calling Select(this).
15675
15676         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15677         do our work in WndProc instead.
15678
15679         * TabControl.cs: same.
15680
15681         * ComboBox.cs: same.
15682
15683 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15684
15685         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15686         Fixes #80006.
15687
15688 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15689
15690         * ListViewItem.cs:
15691         * ThemeWin32Classic.cs: Don't draw the item text outside
15692         item bounds in Details view, as well as use trimming.
15693         Fixes bug #80376.
15694
15695 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15696
15697         * Form.cs: Implement Form.ShowIcon.
15698         
15699         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15700         null, which when combined with the DlgModalFrame window style removes
15701         the icon from the title bar.
15702
15703 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15704
15705         * Control.cs: Call OnMouseClick after OnClick. (2.0)
15706
15707 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15708
15709         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15710         menu when mdi child windows theres a menu, uses insert to get icon
15711         at first position. Partially fix #80006.
15712
15713 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
15714
15715         * Clipboard.cs: Implement 2.0 methods.
15716
15717 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
15718
15719         * Menu.cs: Implement Insert method of MenuItemCollection class
15720         to fix MenuMerge.
15721
15722 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15723
15724         * ListView.cs: Implement 2.0 FindItemWithText method.
15725
15726 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
15727
15728         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15729         to calculate menu bar size. Fixes #80290.
15730
15731 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
15732
15733         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
15734
15735 2007-01-11  Chris Toshok  <toshok@ximian.com>
15736
15737         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
15738         initial form.
15739
15740 2007-01-11  Chris Toshok  <toshok@ximian.com>
15741
15742         * LinkLabel.cs: make sure to call base.Select in our Select method
15743         if it turns out we're going to be selected (i.e. if we have a link
15744         that is going to receive focus).  That way our container's
15745         ActiveControl is updated properly.
15746
15747 2007-01-11  Chris Toshok  <toshok@ximian.com>
15748
15749         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
15750         they have 1 or more links.  this fixes the crash gert reported.
15751
15752 2007-01-11  Andreia Gaita  <avidigal@novell.com>
15753
15754         * ContainerControl.cs: Remove ContainerSelected flag, not needed
15755         anymore.
15756
15757         * Control.cs (Controls.Add): Check if control to be added to the collection
15758         is a top level control, and throw an ArgumentException if it is.
15759         Remove ContainerSelectedFlag, not needed anymore.
15760
15761         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
15762         top most control doesn't activate the form. This fixes a problem in the
15763         MessageBox, where the default button wouldn't get focus because the form
15764         was activated before being Loaded - when the Owner is set, SetTopMost is
15765         called, and it would activate it.
15766
15767 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
15768
15769         * Button.cs: When clicked and setting the parent form's DialogResult,
15770         use FindForm instead of Parent, since parent could be a container
15771         control and not the Form.  Fixes bug #80495.
15772
15773 2007-01-10  Chris Toshok  <toshok@ximian.com>
15774
15775         * Form.cs: move the call to SendControlFocus into the same
15776         is_loaded check.
15777
15778 2007-01-10  Chris Toshok  <toshok@ximian.com>
15779
15780         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
15781         It breaks in the face of the new ActiveControl stuff, and should
15782         be unnecessary.
15783
15784         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
15785         activecontrol's focus if it's not already set, after we set
15786         ActiveControl, but before we call OnActivated.  Re-fixes #79667
15787         after the previous focus/active control fixes regressed it.
15788
15789         * Control.cs: reindent some code.
15790         
15791 2007-01-10  Chris Toshok  <toshok@ximian.com>
15792
15793         * Splitter.cs: clearing some outstanding changes from my tree.
15794         Replace all accesses (not writes) to the internal dock_style field
15795         with the Dock property.
15796
15797 2007-01-10  Chris Toshok  <toshok@ximian.com>
15798
15799         * Control.cs: make FireEnter, FireLeave, FireValidating, and
15800         FireValidated virtual.
15801
15802         * Form.cs: override and don't chain up calls to FireEnter and
15803         FireLeave.
15804
15805 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15806
15807         * ListView.cs: Add more text padding space when using
15808         auto resize for columns (the previous value didn't work fine).
15809
15810         * ThemeWin32Classic.cs: Update text position inside columns,
15811         to match the appeareance of .Net.
15812
15813         * ColumnHeader.cs: When using auto resize, only the Width should
15814         depend on the sub items, not the Height. Also, set width after
15815         auto resizing (the value of Width should never remain as -1 or -2).
15816
15817 2007-01-10  Chris Toshok  <toshok@ximian.com>
15818
15819         * Application.cs: fix compilation errors when debug is enabled.
15820
15821 2007-01-10  Chris Toshok  <toshok@ximian.com>
15822
15823         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
15824         add some nice ascii art pictures and explanation of the process).
15825         (GetMostDeeplyNestedActiveControl): new utility function we need
15826         because our ActiveControl can refer to a child container with its
15827         own ActiveControl.
15828
15829         * Form.cs (OnActivated): remove the call to SelectActiveControl
15830         from here, since you can override this method and not chain up,
15831         and winforms still sets the active control.
15832         (OnCreateControl): also remove the unnecessary SelectActiveControl
15833         call from here.
15834         (WndProc): it's actually called from the WM_ACTIVATE block, just
15835         before calling OnActivated.
15836
15837         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
15838         inside the else.  the ActiveControl setter will end up setting
15839         focus on @control.  This keeps us from setting it again (and
15840         generating an extra LostFocus/GotFocus pair).
15841         (Select (bool, bool)): reindent.
15842
15843 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
15844
15845         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
15846         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
15847         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
15848         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
15849         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
15850         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
15851         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
15852         ToolStripTextBox.cs: Another wave of corcompare work.
15853
15854 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15855
15856         * ColumnHeader.cs: Implement 2.0 AutoResize method using
15857         the Width property.
15858
15859         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
15860         methods by callling Column.AutoResize method on columns.
15861
15862 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
15863
15864         * Control.cs: Provide proper implementations of PreferredSize
15865         and GetPreferredSize (2.0).
15866
15867 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
15868
15869         * Form.cs: Remove one character (!) to make my previous OnClosing
15870         stuff work for modal windows like MessageBox.
15871
15872 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15873
15874         * ListView.cs:
15875         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
15876         ListView.Columns to get the last displayed column. Fixes #80452.
15877
15878 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
15879
15880         * Label.cs, LinkLabel.cs: Source code identation fixes.
15881
15882 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
15883
15884         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
15885         we dont need to invalidate only borders because when we invalidate four
15886         border lines the invalidate's generates a complete redraw of button, 
15887         because it now invalidate a complete rect some other redraws operations
15888         are fixed. Fixes #80196.
15889         
15890         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
15891         Remove ToolBarInvalidateEntireButton as it is not used.
15892
15893 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
15894         
15895         * Form.cs: Make sure that both OnClosing and OnFormClosing are
15896         called for 2.0 profile.
15897         * CloseReason.cs: Make class internal for 1.1.
15898
15899 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
15900
15901         * ToolStripManager.cs: Implement FindToolStrip functionality.
15902         * ToolStrip.cs: Register and unregister with ToolStripManager.
15903
15904 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
15905
15906         * Control.cs: This was messy.  2.0 moves much of ControlCollection
15907         to ArrangedElementCollection.  Implemented this with as few #if's as 
15908         possible (which is still too many).
15909
15910 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
15911
15912         * Control.cs: Implement SizeFromClientSize() [2.0].
15913
15914 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
15915
15916         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
15917         use Theme.BorderSize to calculate area instead of static value 1, 
15918         by the way use new BorderStaticSize instead     Border3DSize when 
15919         border_static is true. Fixes #79537.
15920         
15921         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
15922         
15923         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
15924         it is not needed.
15925
15926 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
15927
15928         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
15929
15930 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
15931
15932         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
15933         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15934         
15935         * Hwnd.cs: 
15936         - border_static field added, it will used to define when a control 
15937         theres 3D border but it must be static (thin).
15938         - In GetWindowRectangle use Theme.BorderSize to calculate area 
15939         instead of static value 1, by the way use new BorderStaticSize instead
15940         Border3DSize when border_static is true.
15941
15942         * XplatUIX11.cs, XplatUIOSX.cs: 
15943         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15944         
15945         * Theme.cs: BorderStaticSize field added.
15946
15947 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15948
15949         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15950
15951 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
15952
15953         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
15954         mimic same behavior than win32 that set border only in CreateParams,
15955         it fix problems under CreateParams overrides. Fix #79442 and partial
15956         fix #79537.
15957         
15958         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15959         of thi control you must call recreate handle. 
15960         
15961         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15962         need to do anything as RecreateHangle will take care about borders.
15963
15964 2007-01-05  Mike Kestner  <mkestner@novell.com>
15965
15966         * ListView.cs: hack to eliminate Lost/Got focus notifications on
15967         cycles between the ItemControl and parent.  Fixes #80388.
15968
15969 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
15970
15971         * Control.cs: Lazy init layout engine. Do not directly use 
15972         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15973
15974 2007-01-05  Chris Toshok  <toshok@ximian.com>
15975
15976         * DataGrid.cs: don't forceably rebind columns in SetDataSource
15977         unless our list manager has changed (i.e. unless we have reason to
15978         believe our columns have changed).  Fixes #80422.
15979         
15980         also, disable the call do BindColumns in
15981         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
15982         1.1 the event isn't raised in response to a column addition on a
15983         table.)
15984
15985 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15986
15987         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15988         that inheritors can not call it if they choose.  Fixes bug #80456.
15989
15990 2007-01-05  Andreia Gaita  <avidigal@novell.com>
15991
15992         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
15993         doesn't blow up with a null exception on marshalling.
15994         
15995 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
15996
15997         * Control.cs: Implement several 2.0 protected properties and methods.
15998         Ensure that all necessary events are being called when properties
15999         are set.
16000
16001 2007-01-05  Mike Kestner  <mkestner@novell.com>
16002
16003         * ListView.cs: implement PgUp/PgDn for Details view.  Also
16004         fixes First/LastVisibleIndex to use the item_control.ClientRect 
16005         instead of the parent control.  Fixes #80378.
16006
16007 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
16008
16009         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
16010           determine whether to use yard-pound or not (bug #78399).
16011
16012 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16013
16014         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
16015         problems. So it is time to bring back the old popupbutton colors.
16016
16017 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16018
16019         * ColumnHeader.cs:
16020         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
16021         property by using the internal information of the
16022         columns order in ListView.
16023
16024 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
16025
16026         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
16027         Add 2.0 Tag properties.
16028
16029         * LinkArea.cs: Add 2.0 ToString method.
16030
16031 2007-01-03  Chris Toshok  <toshok@ximian.com>
16032
16033         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
16034         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
16035         when we're editing, which fixes #80047.
16036
16037 2007-01-03  Chris Toshok  <toshok@ximian.com>
16038
16039         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
16040         #80404.
16041
16042 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
16043
16044         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
16045         property and implementation.
16046
16047         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
16048         for MdiWindowListItem property.
16049
16050         * ToolStripDropDown.cs: Don't consider hidden menu items while
16051         laying out the menu.
16052
16053 2007-01-03  Andreia Gaita  <avidigal@novell.com>
16054
16055         * SendKeys.cs: window handle is not needed in win32, so just
16056         get the active window for X after parsing keys and don't use
16057         it when building the message; it is passed by parameter to the 
16058         Xplat method and used there to build the message instead. Also,
16059         wait for events to be processed on SendWait, as opposed to Send,
16060         which doesn't wait :) Playing with threads and Send() completely 
16061         hangs on ms.net, only SendWait() works.
16062         
16063         XplatUIX11.cs
16064         X11Display.cs: Check for valid window handle.
16065
16066 2007-01-03  Jackson Harper  <jackson@ximian.com>
16067
16068         * TextControl.cs: Need to prevent wrap calculations when replacing
16069         text (this was there before i removed it accidently).
16070         - Don't update the cursor during the positioning, just set it to
16071         selection_start at the end of the operaion.
16072
16073 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16074
16075         * Control.cs:
16076         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
16077         
16078 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16079
16080         * MonthCalendar.cs: Added Click and DoubleClick events again,
16081         but this time they only hide Control's Click and DoubleClick.
16082         
16083 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
16084
16085         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
16086         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
16087
16088 2007-01-02  Jackson Harper  <jackson@ximian.com>
16089
16090         * TextBoxBase.cs: We move the caret with the split now, so we
16091         don't need to explicitly move the caret after splitting.  This
16092         fixes the caret bumping down an extra line on Enter.
16093
16094 2007-01-02  Miguel de Icaza  <miguel@novell.com>
16095
16096         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
16097         2.72). 
16098
16099         * ScrollableControl.cs: Add Scroll event.
16100
16101 2007-01-02  Mike Kestner  <mkestner@novell.com>
16102
16103         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
16104         to fix all hdr height padding codepaths.  Fixes #80207.
16105
16106 2007-01-02  Chris Toshok  <toshok@ximian.com>
16107
16108         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
16109         setting it to the Control defaults anyway, and it being after the
16110         Dock set was screwing up layout.
16111         (set_Dock): don't short circuit out of setting base.Dock.  Also,
16112         no need to call UpdateStatusBar here, as it'll be re-layed out if
16113         it needs to be.
16114
16115 2007-01-02  Mike Kestner  <mkestner@novell.com>
16116
16117         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
16118         to header height for width == -1. Fixes the rest of #80207.
16119
16120 2007-01-02  Mike Kestner  <mkestner@novell.com>
16121
16122         * ListView.cs: rework the mouse event forwarding everaldo added
16123         to translate the coordinates to the parent control not
16124         raise the parent events until after we've done our work. Hover
16125         needs more work, in the case where HoverSelection is on, because
16126         the item control receives more than one MouseHover per Enter
16127         event, so we need to ensure only the "first" hover gets forwarded.
16128         Opening a minor bug for that.
16129
16130 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
16131
16132         * CheckedListBox.cs: Fixed SelectionMode to match MS.
16133         * ListControl.cs: Implemented AllowSelection property. Removed extra
16134         tabs.
16135         * ListBox.cs: Implemented AllowSelection property.
16136
16137 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16138
16139         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
16140         SelectedItem, it prevent for errors when you must disable item
16141         before perform click. Fixes #80409.
16142
16143 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16144
16145         * MenuAPI.cs: Prevent second level and beyond submenus to close
16146         until first level when move out side of popup.
16147         
16148 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16149
16150         * MenuAPI.cs:
16151         - Down submenu positin in three pixels.
16152         - Closes sub menu when mouse leaves from menu. Fixes #80402.
16153
16154 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
16155
16156         * ThemeWin32Classic.cs:
16157         - Fix popup menu size adding one pixel on the top.
16158         - Down menu item border from two to one to mimic Win32.
16159         - Some source identation fixes. 
16160
16161 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16162
16163         * ThemeWin32Classic.cs: Use float numbers to calculate size and
16164         position of menu arrows, it fix wrong arrow size.
16165
16166 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
16167
16168         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
16169         instead of line, it simplify draw operation and fix it using 3D
16170         borders to mimic Win32.
16171
16172 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
16173
16174         * StatusStrip.cs: Add implementation of the sizing grip.
16175
16176         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
16177         StatusStrip rendering.
16178
16179 2006-12-31  Chris Toshok  <toshok@ximian.com>
16180
16181         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
16182         override the layout style (anchor/dock) of the control.  assign to
16183         Dock instead.  Fixes bug #80416.
16184
16185         * ToolStrip.cs: same.
16186
16187 2006-12-31  Andreia Gaita  <avidigal@novell.com>
16188
16189         * ContainerControl.cs: Use ContainerSelected flag to check if 
16190         a Container is directly selected, or if Select is called on a 
16191         non-container. If a container is directly selected, focus events 
16192         should not be raised.
16193         Apply #80411 patch to throw exception on set_ActiveControl if 
16194         control is the same as the current one.
16195         
16196         * Control.cs: Use ContainerSelected flag (see above).
16197         Add invalidation check to raise event but not invalidate if 
16198         dimensions are 0.       
16199         Apply #80411 patch.
16200         
16201
16202 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
16203
16204         * MenuAPI.cs: After click, dont close popup menu when menu is
16205         ContextMenu. Fixes #80399.
16206
16207 2006-12-30  Chris Toshok  <toshok@ximian.com>
16208
16209         * ContainerControl.cs: make sure we throw the exception if the
16210         container control doesn't contain the control we're setting
16211         ActiveControl to.
16212
16213 2006-12-30  Chris Toshok  <toshok@ximian.com>
16214
16215         * Control.cs (SetTopLevel): fix the exception raised by
16216         SetTopLevel for child controls.
16217         (set_Anchor): call UpdateDistances when setting the anchor type.
16218         This fixes bug #80336.
16219
16220 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16221
16222         * Theme.cs: For now, revert back to 8pt font.
16223
16224 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
16225
16226         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
16227         Fixes #80395.
16228
16229 2006-12-29  Chris Toshok  <toshok@ximian.com>
16230
16231         * Control.cs: reorder the code in OnResize to give the same event
16232         ordering as MS.
16233
16234 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16235
16236         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
16237         TileHorizontally and TileVertically.
16238         
16239 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
16240
16241         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
16242         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
16243         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
16244         Corrected copyright and email adress.
16245
16246 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16247
16248         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
16249         of Exception in FullPath property if no TreeView is associated with
16250         the TreeNode.
16251
16252 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
16253
16254         * Theme.cs: Marked default_font as private, and initialize it in ctor
16255         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
16256         on 2.0 profile.
16257         * ThemeGtk.cs: Removed default_font intialization.
16258         * ThemeWin32Classic.cs: Removed default_font initialization.
16259
16260 2006-12-28  Chris Toshok  <toshok@ximian.com>
16261
16262         * Control.cs: fix a couple of place where we were creating handles
16263         more aggressively than we should be.  Fixes ControlRefresh unit
16264         tests.
16265
16266 2006-12-28  Chris Toshok  <toshok@ximian.com>
16267
16268         * Control.cs: contrary to what the comment said, Control.Dock does
16269         not supercede Control.Anchor - the last one you assign to decides
16270         the layout behavior.  so we need to keep track of which was the
16271         last set.  Also, fix some of the affected property arguments in
16272         PerformLayout calls, and remove an redundant parent.PerformLayout
16273         call in OnResized.
16274
16275         Add a VisibleInternal property, which returns is_visible.  We
16276         can/should get rid of all the usage of this field elsewhere.
16277
16278 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16279         
16280         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
16281         control style, not DoubleBuffer. Added UseDoubleBuffering property
16282         that indicates whether doublebuffering is enabled and supported.
16283         (comment from and code based on Gert Driesen's patch in #80324).
16284         Fixes #80324.
16285
16286 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16287         
16288         * Control.cs: Fixed a NRE.
16289
16290 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16291
16292         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
16293         for 2.0.
16294
16295 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16296
16297         * Control.cs: Rewrote double buffering, now a seperate
16298         class handles all the buffering, no Graphics is disposed of
16299         until the painting is finished (earlier implementation 
16300         would crash if the control was resized in the OnPaint, 
16301         since it would cause the double buffer to be recreated
16302         and the old one disposed), a separate Graphics is 
16303         created for every paint (MS behaviour and anyways the state
16304         of the Graphics would have to be saved and restored otherwise)
16305         
16306         * XplatUIDriver.cs: 
16307         * XplatUIX11.cs:
16308         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
16309         so that we can get the graphics for the back buffer without
16310         having to create a new one and remove the offscreen_dc parameter
16311         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
16312         
16313 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16314
16315         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
16316         Also make virtual all the key-related methods.
16317
16318         * ListViewItem.cs: Make virtual the key related methods for
16319         ListViewSubItemCollection.
16320
16321 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16322
16323         * ListView.cs:
16324         * ListViewItem.cs:
16325         * ThemeWin32Classic.cs:
16326         * Theme.cs: Initial support for Tile view in ListView,
16327         as well as the implementation of the required bits for it (Item
16328         and Subitem).
16329
16330 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16331
16332         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
16333         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
16334         Provide useful exception messages.
16335
16336 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16337
16338         * TrackBar.cs: Remove a warning.
16339         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
16340         when used by DateTimePicker, fixes #80287. This also requires that 
16341         MonthCalendar implements it's own drawing for the yearly updown control,
16342         otherwise the Capture tracking would be too complicated. Removed the Click 
16343         and DoubleClick events (according to comments they were hiding the base class
16344         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
16345         raise these events, not that they cannot be raised. It is possible to raise 
16346         them by calling OnClick and OnDoubleClick). Added two internal fields in 
16347         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
16348         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
16349         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
16350         event, no longer needed.
16351         
16352 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16353
16354         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
16355         true if new value differs from current value.
16356
16357 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16358
16359         * Control.cs: ControlCollection.Count must be public. Fixed build of
16360         unit tests.
16361
16362 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16363
16364         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
16365
16366 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
16367
16368         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
16369
16370 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16371
16372         * Control.cs: Invalidates control including when Width and Height is 
16373         equal zero or is not visible, only Paint event must be care about 
16374         this. Fixes #79913.
16375
16376 2006-12-26  Chris Toshok  <toshok@ximian.com>
16377
16378         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
16379         more corcompare work.
16380
16381         * DataGridView.cs: fix compiler warning.
16382
16383         * ColumnHeader.cs: some corcompare work, and also take the
16384         opportunity to make the internal fields private.
16385
16386         * ListView.cs: fix the fallout from the above field change.
16387
16388 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16389
16390         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
16391         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
16392         ToolStripTextBox.cs: Fixes to events and corcompare.
16393
16394 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
16395
16396         * ListView.cs: Call owner.OnMousexx event to propagate events from
16397         item to ListView. Fixes #80367.
16398
16399 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16400
16401         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
16402         if value is less than one. ItemHeight should not be set to a value
16403         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
16404         Removed extra tabs.
16405
16406 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
16407
16408         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
16409         * ToolStripStatusLabel.cs: Add Spring for Moma.
16410
16411 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16412
16413         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
16414         Fixed code formatting. Removed debug code.
16415         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
16416
16417 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
16418
16419         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
16420         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
16421         ArgumentOutOfRangeException if ColumnCount is negative. In 
16422         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
16423         less than 4 or higher than 32768.
16424         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
16425         Fixed FormatProvider to return CurrentCulture unless explicitly set.
16426         Fixed IsFormatProviderDefault to return true if FormatProvider has
16427         not been explicitly set.
16428
16429 2006-12-25  Chris Toshok  <toshok@ximian.com>
16430
16431         * Application.cs: add a couple of 2.0 events.
16432
16433 2006-12-25  Chris Toshok  <toshok@ximian.com>
16434
16435         * Control.cs: fix compiler warning.
16436
16437         * AxHost.cs: corcompare fixes.
16438
16439         * ApplicationContext.cs: corcompare fixes.
16440
16441 2006-12-25  Chris Toshok  <toshok@ximian.com>
16442
16443         * Control.cs: only update dist_right/dist_bottom if the
16444         width/height is > 0.  this fixes anchored controls being resized
16445         smaller until they disappear and then resized larger again.
16446
16447 2006-12-25  Chris Toshok  <toshok@ximian.com>
16448
16449         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
16450         since they're nothing more than X/Left and Y/Top, respectively.
16451
16452         Also, move back to a per-control Bitmap/Graphics for
16453         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
16454         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
16455         Height.
16456
16457 2006-12-25  Miguel de Icaza  <miguel@novell.com>
16458
16459         * MessageBox.cs: Implemented overload that takes a new "bool
16460         displayHelpButton" by adding a new internal field "show_help".
16461         When clicked this will raise the HelpRequested on the owner or the
16462         main form. 
16463
16464         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
16465         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
16466
16467         * ListView.cs: Add support ColumnWidthChanged and
16468         ColumnWidthChanging. 
16469
16470         Add support for ColumnReordered event.
16471         (ReorderColumn): Add NET_2_0 specific support for cancelling the
16472         reorder.
16473
16474         Very nice codebase!
16475
16476         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
16477
16478         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
16479
16480 2006-12-24  Chris Toshok  <toshok@ximian.com>
16481
16482         * GridTablesFactory.cs: 2.0 corcompare work.
16483
16484         * ToolStripContainer.cs: add "override" to
16485         ContextMenuStripChanged, and remove the local event object.
16486
16487         * ToolStripDropDown.cs: same with a couple properties.
16488
16489         * ToolStripPanel.cs: same with AutoSizeChanged event.
16490
16491         * TextBoxBase.cs: add "override" to AutoSizeChanged.
16492
16493         * Form.cs: add the remaining 2.0 events, and do some corcompare
16494         attribute work.
16495
16496         * DateTimePicker.cs: add "new" to padding.
16497
16498         * ButtonBase.cs: use Control's use_compatible_text_rendering.
16499
16500         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
16501
16502         * DataGridView.cs: PaddingChanged is overridden.
16503
16504 2006-12-24  Chris Toshok  <toshok@ximian.com>
16505
16506         * Control.cs: corecompare work here too.
16507
16508         * DataGridViewElement.cs, DataGridView.cs,
16509         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
16510         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
16511         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
16512         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
16513         work.
16514
16515 2006-12-24  Miguel de Icaza  <miguel@novell.com>
16516
16517         * Control.cs: Switched the error message on the console for a
16518         todo.  A review of the code will have to cope with this anyways
16519         (since its a large feature, it is in our radar) and it was
16520         producing too much output when running PDN.
16521
16522         * ToolStripComboBox.cs: Set the text when the SelectedIndex
16523         changes.  Applications depend on this (PDN 2.72)
16524
16525 2006-12-23  Chris Toshok  <toshok@ximian.com>
16526
16527         * TableLayoutSettings.cs: finish up the corcompare work for this
16528         class.
16529
16530 2006-12-23  Chris Toshok  <toshok@ximian.com>
16531
16532         * Control.cs: make SetImplicitBounds internal, do some futzing
16533         with LayoutEngine so that it's available in 1.1, and remove the
16534         entire duplicated code mess from PerformLayout.  Use
16535         System.Windows.Forms.Layout.DefaultLayout instead.
16536
16537         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
16538
16539 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
16540
16541         * Form.cs: Add MainMenuStrip property.
16542
16543 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
16544
16545         * Control.cs: Add ContextMenuStrip property and implementation.
16546         Fix ContextMenu implementation to show menu centered on control when
16547         activated using the keyboard instead of showing at screen (0,0).
16548
16549         * ToolStripDropDown.cs: Fix needed overload of Show ().
16550
16551 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16552
16553         * Menu.cs: Name property added for 2.0 profile.
16554         
16555 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16556
16557         * Menu.cs: Update information about FindMenuItem, method to be
16558         implemented soon.
16559
16560 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16561
16562         * MenuAPI.cs: When deselect items deselect also selected subitems.
16563         
16564 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
16565
16566         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
16567         FindSubItemByCoord to found itens that is not active, also an
16568         cheking added to FindSubItemByCoord to search for items only 
16569         in visible popup windows. Fixes #80274.
16570
16571 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
16572
16573         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
16574         internal property, it be care about change ExStyle. 
16575
16576 2006-12-22  Andreia Gaita  <avidigal@novell.com>
16577
16578         * ContainerControl.cs: set activeControl for parent forms up the 
16579         tree when the new activecontrol is a container.
16580         When validating the active control, if it is a container, also
16581         raise up the validation for it's active control. Fixes #80280
16582         
16583         * Control.cs: Add internal property flag and check to prevent
16584         Focus events from getting raised when Select() is called for
16585         a ContainerControl. There are still too many focus events being
16586         raised at the moment though.
16587         Cleaned up the code a bit.
16588
16589 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16590
16591         * Control.cs: Added all missing 2.0 events.and
16592         fixed a couple of corcompare issues.
16593         * TrackBar.cs: Implemented missing 2.0 bits.
16594         * MonthCalendar.cs, 
16595         * DateTimePicker.cs, 
16596         * MdiClient.cs: Fixed some corcompare issues.
16597
16598 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16599
16600         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
16601         SplitterPanel.cs: corecompare work.
16602
16603 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16604
16605         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
16606         Clean up warnings for BackgroundImageChanged and PaddingChanged
16607         events now that they are implemented in Control.cs.
16608
16609 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
16610
16611         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
16612         
16613         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
16614         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
16615         of TableLayoutPanel and supporting cast.
16616
16617 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16618
16619         * XplatUIWin32.cs: 
16620         - GrabWindow now confines the mouse pointer to the confine window.
16621         - Added Win32ClipCursor and Win32GetClipCursor.
16622
16623         * Control.cs: 
16624         - Added CaptureWithConfine to be able to capture and confine 
16625         mouse pointer.
16626         
16627         * InternalWindowManager.cs: 
16628         - Call CaptureWithConfine instead of Capture if we're an
16629         MdiChild (fixes #79982).
16630
16631 2006-12-21  Chris Toshok  <toshok@ximian.com>
16632
16633         * DataGrid.cs: guard against the initial state of selection, where
16634         selection_start == -1.  make sure we only select from index >= 0.
16635         Fixes bug #80291.
16636
16637 2006-12-21  Chris Toshok  <toshok@ximian.com>
16638
16639         * Control.cs: we don't need to be so draconian with
16640         UpdateDistances, and we thusly don't need to call it before
16641         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
16642
16643 2006-12-21  Daniel Nauck  <dna@mono-project.de>
16644
16645         * ComboBox.cs,
16646         TextBox.cs: Implemented AutoComplete properties.
16647
16648 2006-12-20  Chris Toshok  <toshok@ximian.com>
16649
16650         * DataGridView*.cs: some corecompare work.
16651
16652 2006-12-20  Jackson Harper  <jackson@ximian.com>
16653
16654         * XplatUIX11.cs: We need to hide the caret when deleting it,
16655         otherwise you get carets left lying around everywhere.
16656         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
16657         prevents getting some weird half drawn caret tracers when
16658         scrolling.
16659         * TextControl.cs: Attempt to reduce the number of times we need to
16660         recreate the caret.
16661
16662 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
16663
16664         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16665
16666 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16667
16668         * DateTimePicker.cs:
16669         - Implemented missing 2.0 bits.
16670         - Changed some default values to match MS.
16671         
16672 2006-12-20  Jackson Harper  <jackson@ximian.com>
16673
16674         * TextBoxBase.cs: When changing the font across the document we
16675         can't recalculate after changing each line, since that will cahnge
16676         the line count.
16677         - PreferredHeight is a little different than i thought.
16678         - When backspacing, move the caret before we do the actual char
16679         delete, because when that delete crosses a wrap boundary the
16680         positional information will change.
16681
16682 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16683
16684         * Control.cs: Added some missing 2.0 bits: 
16685         BackgroundImageLayout, BackgroundImageLayoutChanged, 
16686         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
16687         add IBindableComponent and IDropTarget implementation.
16688         
16689         * MonthCalendar.cs: 
16690         - Added all missing 2.0 features:
16691         BackgroundImageLayout, RightToLeftLayout, 
16692         OnHandleDestroyed, RightToLeftLayoutChanged, 
16693         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16694         PaddingChanged.
16695         - Rewrote all the BoldDate code, it was completely broken.
16696         - Fixed all the tests (the tests can now be re-enabled, the
16697         problems were not with the tests, but with the control, it was
16698         mostly broken).
16699         
16700         * DateTimePicker.cs: Changed the location where the 
16701         MonthCalendar is shown.
16702         
16703 2006-12-19  Chris Toshok  <toshok@ximian.com>
16704
16705         * DataGridView.cs: add IDropTarget implementation.
16706
16707         * ToolStripPanel.cs: add IDropTarget implementation.
16708
16709 2006-12-19  Jackson Harper  <jackson@ximian.com>
16710
16711         * TextControl.cs: soft now means something different than what it
16712         used to mean, we want to move the caret regardless of whether or
16713         not this break was soft (would we really have wanted the caret
16714         to not move with the break in the old context?)
16715         * TreeView.cs: Make sure we factor in the vert scrollbar when
16716         calculating the horizontal scrollbar's maximum.
16717
16718 2006-12-19  Andreia Gaita  <avidigal@novell.org>
16719
16720         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16721         check for keywords in alternate casing, close bug #80049.
16722
16723 2006-12-19  Chris Toshok  <toshok@ximian.com>
16724
16725         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16726         methods (which all do nothing).
16727
16728         * IDropTarget.cs: add the 4 missing methods.
16729
16730 2006-12-19  Chris Toshok  <toshok@ximian.com>
16731
16732         * TableLayoutRowStyleCollection.cs: corcompare work.
16733         
16734         * TableLayoutSettings.cs: same.
16735
16736         * TableLayoutStyle.cs: same.
16737
16738         * TableLayoutColumnStyleCollection.cs: same.
16739
16740 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
16741
16742         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
16743         TableLayoutPanel I've had in my local tree for way too long.
16744
16745 2006-12-19  Miguel de Icaza  <miguel@novell.com>
16746
16747         * TableLayoutSettings.cs: Finish the public API (still needs all
16748         the logic to update on changes). 
16749
16750         * TableLayoutPanelCellPosition.cs: new file.
16751         
16752         * TableLayoutRowStyleCollection.cs,
16753         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
16754         TableLayoutSettings.cs: Track the final 2.0 table api.
16755
16756 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16757
16758         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
16759         and Image List 2.0 members for ColummnHeader.
16760         * ListView.cs: Add key-related 2.0 methods for
16761         ColumnHeaderCollection.
16762
16763 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
16764
16765         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
16766         ArgumentNullException if items argument is null. Ignore null item in
16767         arrays. Removed extra tabs.
16768
16769 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
16770
16771         * MonthCalendar.cs: Fixed InvalidCastException.
16772
16773 2006-12-19  Jackson Harper  <jackson@ximian.com>
16774
16775         * TextControl.cs: Don't increment the position here.
16776         - When calculating char positions only add in the line break size
16777         for hard line breaks.
16778
16779 2006-12-19  Andreia Gaita  <avidigal@novell.org>
16780
16781         * SendKeys.cs: Changed some things to match ms.net behaviour
16782         when parsing shifted capital letters.
16783         
16784         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
16785         Add window handle as parameter to SendInput. X11 needs the 
16786         window handle, and the handle being passed      to it in the keys 
16787         queue is the active control handle (which windows needs), not 
16788         the window handle.
16789         
16790         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
16791         to support SendKeys on X.       
16792         
16793         * X11Keyboard: Implement helper method to lookup a linux keycode
16794         given the virtual keycode. Added table of keycode-2-virtualkey
16795         values to support this.
16796
16797 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16798
16799         * ListView.cs: Add support for SelectedIndexCollection
16800         and SelectedItemCollection 2.0 methods. Implement support
16801         for ImageKey too.
16802         * ListViewItem.cs: Add support for ListViewSubItemCollection
16803         2.0 methods. Also, fix an incorrect behavior of AddRange method
16804         (it shouldn't call Clear).
16805         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
16806
16807 2006-12-19  Jackson Harper  <jackson@ximian.com>
16808
16809         * RichTextBox.cs: 
16810         * TextBoxBase.cs: New args for FormatText
16811         * TextControl.cs: Rewrote the main drawing method, this version
16812         feels a little easier to understand and debug to me.  Hopefully it
16813         does to others also
16814         - Fix FormatText to OR in the new formating values.  Added
16815         FormatSpecified param, basically this works in the same way as
16816         BoundsSpecified in Control.
16817         - Set the caret properties when the caret is positioned.
16818         - When wrapping text make sure that we calculate the width of the
16819         last character
16820         - when calculating alignments we might have wrapped down to the
16821         next line, so don't search for an individual tag, search for the
16822         end of the line
16823         - We need to invalidate the selection area when we replace the
16824         selection.
16825         
16826 2006-12-19  Daniel Nauck  <dna@mono-project.de>
16827
16828         * Application.cs: add Restart () 2.0 support
16829
16830 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16831
16832         * MenuItem.cs: Invalidate menu item rectangle after change Enable
16833         property. Fixes #80268.
16834         
16835 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16836
16837         * MenuAPI.cs: Dont trigger select event when closes top menu
16838         item. Fixes #80270.
16839
16840 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16841
16842         * MenuAPI.cs: When you click on menuitem only trigger onselect
16843         event for top menu itens. Fixes #80271.
16844         
16845 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16846
16847         * MdiWindowManager.cs: Make IconicBounds depend on
16848         the bottom of MdiClient, not the top (fixes #80267)
16849         
16850 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16851
16852         * MdiClient.cs: Added missing 2.0 attribute
16853
16854 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16855
16856         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
16857         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
16858
16859 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
16860
16861         * MenuAPI.cs: Fix click when menuitem is not popup,
16862         this regression was caused by last commit (#80272).
16863
16864 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
16865
16866         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
16867         fire click event or close menu. Fixes #80272.
16868
16869 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16870
16871         * ListViewHitTestInfo.cs: add
16872
16873 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16874
16875         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
16876         * FlatButtonAppearance.cs: add
16877         * DockingAttribute.cs: add
16878
16879 2006-12-17  Chris Toshok  <toshok@ximian.com>
16880
16881         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
16882         and rebind our columns when it does - this way, if you make
16883         changes to the DataTable (or set the Table attribute on a DataView
16884         after setting it as the DataGrid's DataSource, the changes are
16885         made visible.)  Fixes bug #80107.
16886
16887 2006-12-17  Daniel Nauck  <dna@mono-project.de>
16888
16889         * ListViewGroup.cs: add internal Location property for layouting.
16890         * Theme.cs: add abstract ListViewGroupHeight function.
16891         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
16892
16893 2006-12-16  Andreia Gaita  <avidigal@novell.com>
16894
16895         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
16896         Added reset of selected index to 0 when adding first tab page.
16897         Fixes #80264
16898         
16899         * NumericUpDown.cs: Fix NET_2_0 check
16900
16901 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16902
16903         * ListViewGroup.cs: fixed DefaultValueAttribute value
16904
16905 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16906
16907         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
16908
16909 2006-12-15  Miguel de Icaza  <miguel@novell.com>
16910
16911         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
16912         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
16913         ScrollableControl.cs: Add a handful of methods that are
16914         overwritten in 2.0 
16915
16916 2006-12-15  Chris Toshok  <toshok@ximian.com>
16917
16918         * XplatUIWin32.cs: initial implementation of the Reversible
16919         drawing functions.  there are some problems.  DrawReversibleFrame
16920         doesn't seem to work at all for Dashed FrameStyle, and in the
16921         Thick case there are drawing errors at the corners (we probably
16922         need to bind Rectangle instead of doing moveto/lineto's.)
16923
16924 2006-12-16  Andreia Gaita  <avidigal@novell.com>
16925         
16926         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
16927         to send blocks of key messages. Send accumulates keys to send with Flush, 
16928         while SendWait sends all keys immediately.
16929                 
16930         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
16931         XplatUIX11.cs,  XplatUIX11-new.cs:
16932         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
16933         to Win32 SendInput.
16934         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16935         
16936         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
16937         testing for ms.net on this class is very tricky, as the tests run too fast 
16938         to allow the hook to release, essentially freezing the keyboard and the 
16939         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
16940         category :p
16941
16942 2006-12-16  Daniel Nauck  <dna@mono-project.de>
16943
16944         * Padding.cs: fixed serialization compability to MS ("_var" field names),
16945                         added missing attributes.
16946  
16947 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16948
16949         * ListViewGroup.cs: Added missing attributes.
16950         * ListViewGroupCollection.cs: Added missing attributes.
16951
16952 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16953
16954         * ListViewItem.cs: fixed ListViewSubItem text property.
16955
16956 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16957         
16958         * Control.cs: Added missing 2.0 attributes
16959         
16960 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16961         
16962         * MdiClient.cs: Added missing 2.0 attribute.
16963         * MonthCalendar.cs: Added some missing 2.0 attributes 
16964         and properties.
16965         
16966 2006-12-15  Daniel Nauck  <dna@mono-project.de>
16967
16968         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16969
16970 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
16971
16972         * MainMenu.cs: Add the new 2.0 constructor to help out people
16973         using the MainMenu in VS2005.
16974
16975 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16976         
16977         * MdiChildContext.cs: Removed it, no longer used.
16978         * MdiClient.cs: Added missing 2.0 attributes.
16979         
16980 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16981         
16982         * InternalWindowManager.cs: Fix a NullRef with previous 
16983         changes for toolwindows.
16984         
16985 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16986
16987         * Control.cs: 
16988         - Added AfterTopMostControl to allow for certain controls 
16989         to always stay on top when normal controls are brought to 
16990         front.
16991         
16992         * XplatUIWin32.cs: 
16993         - (DrawInversibleRectangle): Get window rectangle from Win32 
16994         in stead of from control, since Win32 doesn't calculate
16995         screen coords correctly from control's Location if it 
16996         have docked siblings.
16997         
16998         * MdiWindowManager.cs:
16999         - Correct the control menu popup location when clicked on
17000         the maximized form icon. (fixes #80223.1)
17001         - Don't show moving rectangle if mouse hasn't moved from
17002         the original clicked point.
17003         - Removed FormGotFocus handler (not used).
17004         - Calculate the control buttons location from the main
17005         window's size and not client size (fixes #79770).
17006         - Form is now closed when the form icon is double-clicked
17007         (fixes #79775). 
17008         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
17009         
17010         * InternalWindowManager.cs:
17011         - Moved some MDI-only methods to MdiWindowManager.
17012         - Removed unused properties and methods.
17013         - Unified method naming for methods handling wm messages.
17014         - Moved all message handling to seperate methods for
17015         each message.
17016         
17017         * ThemeWin32Classic.cs:
17018         - DrawManagedWindowDecorations now draws the title bar 
17019         with a gradient brush.
17020         - Add a CPDrawButtonInternal that allows us to specify
17021         light, normal and dark colors for the buttons (control 
17022         buttons for MDI children were drawn with the same light
17023         color as the background, therefore loosing the 3D effect).
17024         
17025         * SizeGrip.cs:
17026         - Add a CapturedControl property that is used to 
17027         determine the control to resize (defaults to parent). 
17028         Needed for MdiClient, since its SizeGrip's parent is
17029         MdiClient, but the control to resize is the main form.
17030         
17031         * MdiClient.cs:
17032         - Set SizeGrip's CapturedControl to the main form in order
17033         to resize the main form and not the MdiClient.
17034         - Override AfterTopMostControl to leave the scrollbars 
17035         always on top.
17036
17037 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17038
17039         * ListView.cs: fixed ListViewItemCollection AddRange and
17040                         implemented ListViewItemCollection AddRange 2.0 support.
17041
17042 2006-12-15  Daniel Nauck  <dna@mono-project.de>
17043
17044         * ListViewGroup.cs: Add.
17045         * ListViewGroupCollection.cs: Add
17046         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
17047         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
17048                                 stub for ImageKey 2.0 support.
17049
17050 2006-12-14  Mike Kestner  <mkestner@novell.com>
17051
17052         * ListView.cs: add text padding to the autocalculation for columns
17053         of width -2.  Fixes #80207.
17054  
17055 2006-12-14  Mike Kestner  <mkestner@novell.com>
17056
17057         * ListView.cs: add some index guarding for partial row navigation 
17058         logic.  Fixes #80250.
17059
17060 2006-12-14  Mike Kestner  <mkestner@novell.com>
17061
17062         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
17063         are added or inserted to the collection.  Fixes #81099.
17064
17065 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
17066
17067         * MenuAPI.cs: Closes menu when right click out side of popup
17068         it fix problem in ContextMenu and MainMenu. Fixes #80252.
17069
17070 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17071
17072         * ListViewItem.cs: Fix dumb error.
17073
17074         * ListView.cs: Add Find and ContainsKey methods in 
17075         ListViewItemCollection, and also return true for IsReadOnly
17076         and IsFixedSize (changes for 2.0). 
17077
17078 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
17079
17080         * Control.cs: Allow Region to be set to null.
17081
17082 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17083
17084         * MdiWindowManager.cs: Remove unused (commented out) code.
17085         * Form.cs: When the MdiChild is maximized, the form needs 
17086         WM_NCMOUSELEAVE, so request it.
17087         * InternalWindowManager.cs: 
17088         - Added tooltips to control buttons.
17089         - Removed duplicated control button handling code.
17090         - Removed unused (commented out) code.
17091         
17092 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
17093
17094         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
17095         was used because we must set cursor without trigger ChangeCursor event
17096         and without change Cursor control property. Fixes #79963.
17097
17098 2006-12-12  Andreia Gaita  <avidigal@novell.com>
17099         
17100         * Control.cs: Check if Region setter value is null, and ignore
17101
17102 2006-12-12  Jackson Harper  <jackson@ximian.com>
17103
17104         * TextControl.cs: We were almost always drawing one more line then
17105         needed, since the GetLineByPixel will return the last line found
17106         at that pixel. In most cases though, we were invalidating up to
17107         the junction between two lines.
17108         - Improve debug code.
17109
17110 2006-12-12  Chris Toshok  <toshok@ximian.com>
17111
17112         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
17113         and FillReversibleRectangle.
17114
17115         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
17116         and FillReversibleRectangle.
17117
17118         * XplatUIWin32.cs: add stubs which do nothing for
17119         DrawReversibleFrame, DrawReversibleLine, and
17120         FillReversibleRectangle.
17121
17122         * XplatUIOSX.cs: add stubs which raise NIE for
17123         DrawReversibleFrame, DrawReversibleLine, and
17124         FillReversibleRectangle.
17125
17126         * XplatUIX11.cs: add working implementation for
17127         DrawReversibleFrame, DrawReversibleLine, and
17128         FillReversibleRectangle.
17129         
17130         * ControlPaint.cs: implement DrawReversibleFrame,
17131         DrawReversibleLine, and FillReversibleRectangle, by calling into
17132         the appropriate XplatUI method.
17133
17134 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17135
17136         * Form.cs: Make MdiClient have the focus even if it's
17137         not selectable, since it should receive WM_KEY* and WM_MOUSE 
17138         messages. Fixes #79907.
17139         
17140 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17141
17142         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
17143         queried after the window is created.
17144         
17145         * XplatUIX11.cs: Added SendParentNotify to implement 
17146         WM_PARENTNOTIFY logic. Fixes #79965.
17147         
17148         * Control.cs: Added MakeParam.
17149         
17150 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17151
17152         * MdiClient.cs: Resume Layout before setting window
17153         states (fixes #80201).
17154
17155 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17156
17157         * MenuAPI.cs: Deselect a menu item after performing
17158         the click (fixes #80197).
17159
17160 2006-12-11  Jackson Harper  <jackson@ximian.com>
17161
17162         * TextBoxBase.cs: We need to cap this value, since Maximum -
17163         ViewPortHeight can be less than zero.
17164         - Only do selection with the left mouse button.
17165         * TextBox.cs: Don't tell the world that we have a context menu.
17166         * Control.cs: New method so that we can control whether or not the
17167         context menu is visible outside MWF.
17168
17169 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17170
17171         * ToolBarButton.cs: Fix text positon. 
17172
17173 2006-12-11  Miguel de Icaza  <miguel@novell.com>
17174
17175         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
17176
17177         * Control.cs (DoubleBuffered): Add implementation.
17178
17179         * Application.cs (OpenForms): Add.
17180
17181 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17182
17183         * Form.cs: Use opacity instead of Opactiy to determine if we need
17184         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
17185
17186 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
17187
17188         * Control.cs: Fix NRE if Control.Site was set to null.
17189
17190 2006-12-11  Chris Toshok  <toshok@ximian.com>
17191
17192         * Control.cs: ControlCollection.Remove should return if the arg is
17193         null, and ControlCollection.SetChildIndex should raise a ANE.
17194
17195 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
17196
17197         * Control.cs: Verify value set for Dock property. Code formatting
17198         updates.
17199
17200 2006-12-11  Jackson Harper  <jackson@ximian.com>
17201
17202         * TextControl.cs: Draw the caret and the selection when a flag is
17203         set on the owner.
17204         * TextBoxBase.cs: We want to draw the caret and the selection for
17205         TextBox but not for TextBoxBase.
17206         - If the window is resized and scrolling is no longer needed (the
17207         whole doc is visible) set the scroll position to zero.
17208         - The default SelectWord (the one TextBox uses) should move the
17209         caret to the end of the word.
17210         - SelectAll moves the caret to the end of the selection.
17211         * TextBox.cs: We don't selectall on focus, we just do it when the
17212         control is created.
17213         
17214 2006-12-11  Mike Kestner  <mkestner@novell.com>
17215
17216         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
17217
17218 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17219
17220         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
17221         2.0 support.
17222         * ListViewItem.cs: Add Name 2.0 property.
17223
17224 2006-12-11  Andreia Gaita  <avidigal@novell.com>
17225
17226         * TabControl.cs: Set visibility on selected or default tab 
17227         when tabcontrol handle is created, so that it's contents
17228         actually show up (duh). Fixes #80193
17229         Don't redraw the control if there is no handle created, as
17230         the selected index might be completely invalid. Added some tests
17231         to check for this.
17232
17233 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
17234
17235         * ToolBar.cs: Uses maximun width and height of all buttons as 
17236         button rectangle when ButtonSize specified, it looks strange but
17237         is what happens in Win32. Fixes #80189.
17238
17239 2006-12-11  Jackson Harper  <jackson@ximian.com>
17240
17241         * TextControl.cs: Need to track undo levels ourself, since
17242         compound actions will mess them up.
17243
17244 2006-12-10  Andreia Gaita  <avidigal@novell.com>
17245
17246         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
17247         SelectedIndex value is changed (even if it's not valid).
17248         Reset SelectedIndex to 0 when the handle is created and if
17249         the current index is invalid.
17250         Fixes SelectdeIndex unit tests and #80128
17251
17252 2006-12-08  Chris Toshok  <toshok@ximian.com>
17253
17254         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
17255         calls EndEdit, it needs to be called before we set current_cell to
17256         its new value.  Otherwise, we end up committing the value in the
17257         textbox to the new cell as well.  Fixes bug #80160.
17258
17259 2006-12-08  Chris Toshok  <toshok@ximian.com>
17260
17261         * Form.cs (set_CancelButton): if the button's DialogResult is
17262         None, set it to Cancel.  Fixes bug 80180.
17263
17264 2006-12-08  Jackson Harper  <jackson@ximian.com>
17265
17266         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
17267         to watch ourselves when setting the canvas size and setting the
17268         scrollbar values.
17269
17270 2006-12-08  Chris Toshok  <toshok@ximian.com>
17271
17272         * DataGrid.cs: comment out the two MakeTransparent calls for the
17273         time being so people using trunk (and not 1.2.2) on windows can
17274         actually use the datagrid.  This deals with bug #80151.
17275
17276 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17277
17278         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
17279         Graphics.DrawImage (image, int, int, int, int) overload instead
17280         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
17281         the dpi difference and was blurring images it drew.
17282         [Fixes bug #79960]
17283
17284 2006-12-08  Chris Toshok  <toshok@ximian.com>
17285
17286         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
17287         rowcnt is 0 (such as with an empty datasource), and make sure we
17288         initialize not_usedarea.Y to cells.Y, so we don't draw over the
17289         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
17290
17291 2006-12-08  Chris Toshok  <toshok@ximian.com>
17292
17293         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
17294         grid.
17295
17296 2006-12-08  Chris Toshok  <toshok@ximian.com>
17297
17298         [ Fixes bug #80167 ]
17299         
17300         * ThemeWin32Classic.cs: don't draw the image if the button's flat
17301         style is FlatStyle.System.
17302
17303         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
17304         ButtonBase.flat_style private, and switch uses of it to the public
17305         property.
17306         
17307 2006-12-08  Chris Toshok  <toshok@ximian.com>
17308
17309         [ Fixes bug #80121 ]
17310         
17311         * ThemeWin32Classic.cs: center the caption text in the datagrid
17312         when we draw it.
17313
17314         * DataGrid.cs: lessen the amount we add to the caption height from
17315         6 to 2.  6 was making it huge.
17316
17317 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17318
17319         * UpDownBase: Handle MouseWheel call directly instead of capturing
17320         the inner textbox's OnMouseWheel. Fixes #80166
17321
17322 2006-12-08  Jackson Harper  <jackson@ximian.com>
17323
17324         * TextControl.cs: We need to invalidate the textbox when we empty
17325         it (how had this not been discovered before?)
17326
17327 2006-12-08  Jackson Harper  <jackson@ximian.com>
17328
17329         * TextBoxBase.cs: Reworked the mouse down code so I could get it
17330         to behave like MS, we now ignore the eventargs.Click and just
17331         track state ourself, which we were already doing anyways.
17332         - Constrain the double click handler to the double click size.
17333         
17334 2006-12-08  Chris Toshok  <toshok@ximian.com>
17335
17336         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
17337         direction if that scrollbar isn't shown.  fixes bug #80158.
17338
17339 2006-12-08  Andreia Gaita  <avidigal@novell.com>
17340
17341         * NumericUpDown.cs: Update value on getter. Fixes #79950
17342
17343 2006-12-08  Chris Toshok  <toshok@ximian.com>
17344
17345         * MenuItem.cs: add back in the event cloning code.  I didn't know
17346         how to do it in the face of the EventHandlerList work i'd done
17347         last week.  Fixes bug #80183.
17348
17349 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
17350
17351         * Control.cs: Add an invalidate to the BackgroundImage setter.
17352         [Fixes 80184]
17353
17354 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17355
17356         * ToolStrip*: Add some small properties reported by MoMA, fix event
17357         firing and default properties based off of unit tests, and add some
17358         attributes based off of the class status page.
17359
17360 2006-12-07  Jackson Harper  <jackson@ximian.com>
17361
17362         * TextBoxBase.cs: Take HideSelection into account when determining
17363         whether or not to show the selection.
17364         * RichTextBox.cs: After inserting the RTF into the document move
17365         the cursor to the beginning of the document.
17366
17367 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
17368
17369         * Control.cs: Remove static ArrayList "controls" which maintained
17370         a reference to every control created.
17371         * Application.cs: Create a static FormCollection to maintain a reference
17372         to every form created.  Use it in places that formerly enumerated through
17373         the controls one looking for forms.
17374         * Form.cs: Add and remove self from above FormCollection.
17375
17376 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
17377
17378         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
17379           not libgdk (though it makes me wonder why I didn't have any
17380           problems)
17381
17382 2006-12-07  Chris Toshok  <toshok@ximian.com>
17383
17384         [ you had to know this was coming after that last commit...]
17385         
17386         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
17387         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
17388         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
17389         XCopyArea).
17390
17391 2006-12-07  Chris Toshok  <toshok@ximian.com>
17392
17393         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
17394         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
17395         all the behavior we need for double buffering.
17396
17397         * XplatUIDriver.cs: implement the 3 double buffer methods using a
17398         client side Bitmap, just like the old Control-based double buffer
17399         code did.  The methods are virtual, so each XplatUI driver
17400         subclass can replace the implementation to use a faster, platform
17401         specific approach.
17402
17403         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
17404         double buffer code, and clean things up a bit in the process.
17405
17406 2006-12-06  Chris Toshok  <toshok@ximian.com>
17407
17408         * Control.cs: reindent WndProc.
17409
17410 2006-12-06  Chris Toshok  <toshok@ximian.com>
17411
17412         [ I wanna be like BenM when I grow up ]
17413         
17414         * Hwnd.cs: create a single static Graphics object on the static
17415         Bitmap we create.  use this for our text measurements.
17416
17417         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
17418         This was causing us to allocate a backbuffer for every control,
17419         even when it wasn't flagged as double buffered.  Instead use the
17420         single graphics instance.  This might have implications for
17421         multithreaded applications.  If we run into problems we can switch
17422         to creating 1 Graphics per control, on the static Hwnd bitmap.
17423
17424         this change nets us a 7M savings in private dirty mappings when
17425         running FormsTest.exe.
17426
17427 2006-12-06  Chris Toshok  <toshok@ximian.com>
17428
17429         * ListView.cs: the BackgroundImage override is just to set
17430         attributes.  chain up to base.BackgroundImage.
17431
17432         * RichTextBox.cs: same.
17433
17434         * ToolBar.cs: same, but we need to also redraw the toolbar when it
17435         changes, so instead a handler for BackgroundImageChanged.
17436         
17437         * Control.cs: make background_image private.
17438
17439 2006-12-06  Chris Toshok  <toshok@ximian.com>
17440
17441         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
17442         sure we even need this assignment, but roll with it for now.
17443
17444         * Control.cs: make the cursor field private.
17445
17446 2006-12-06  Chris Toshok  <toshok@ximian.com>
17447
17448         * Form.cs: we don't need to explicitly set ImeMode to
17449         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
17450         behavior in the face of ImeMode.Inherit.
17451
17452         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
17453         change the ctor's assignment to use ImeMode instead of ime_mode.
17454
17455         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
17456         ImeModeInherit.  Only check for the parent's imemode (and return
17457         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
17458         This fixes the button unit test, which sets both ImeMode and
17459         DefaultImeMode to ImeMode.Disable.
17460
17461         also make the ime_mode field private.
17462
17463 2006-12-06  Chris Toshok  <toshok@ximian.com>
17464
17465         * Control.cs: make control_style private.
17466
17467         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
17468         setting the styles to true, then setting them to false instead of
17469         reverting to their previous values.
17470
17471         also, call SetStyle on the scrollbars instead of using
17472         control_style directly.
17473
17474 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
17475
17476         * FormCollection.cs: Implement. [2.0]
17477
17478 2006-12-06  Chris Toshok  <toshok@ximian.com>
17479
17480         * Control.cs: make tab_stop private.
17481
17482         * Label.cs: set TabStop, not tab_stop.  reformat some event
17483         add/remove methods to make them more compact.
17484
17485 2006-12-06  Chris Toshok  <toshok@ximian.com>
17486
17487         * RadioButton.cs: fix TabStop handling.
17488
17489 2006-12-06  Chris Toshok  <toshok@ximian.com>
17490
17491         * TextBox.cs: remove the explicit assignments to has_focus.
17492         Control does that.
17493
17494         * ButtonBase.cs: remove the assignment to has_focus.  Control will
17495         manage that.
17496         
17497 2006-12-06  Chris Toshok  <toshok@ximian.com>
17498
17499         * ButtonBase.cs: remove all uses of is_enabled from this code.
17500         it's always true when any of the code containing the checks is
17501         executed.
17502
17503 2006-12-06  Chris Toshok  <toshok@ximian.com>
17504
17505         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
17506         with different semantics (some are present in both 1.1 and 2.0
17507         profiles) so that we match MS's behavior in our unit tests.
17508
17509 2006-12-06  Jackson Harper  <jackson@ximian.com>
17510
17511         * TextControl.cs: Make this operation undoable.
17512         * TextBoxBase.cs: Factor the border width into the preferred
17513         height.
17514         - implement Modified as per the spec.
17515
17516 2006-12-06  Chris Toshok  <toshok@ximian.com>
17517
17518         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
17519
17520 2006-12-06  Chris Toshok  <toshok@ximian.com>
17521
17522         * Control.cs: make right_to_left and context_menu fields private.
17523
17524 2006-12-06  Chris Toshok  <toshok@ximian.com>
17525
17526         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
17527         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
17528         Control.child_controls private.  switch all uses over to
17529         Control.Controls.
17530
17531 2006-12-06  Chris Toshok  <toshok@ximian.com>
17532
17533         * System.Windows.Forms/GroupBox.cs,
17534         System.Windows.Forms/AccessibleObject.cs,
17535         System.Windows.Forms/ErrorProvider.cs,
17536         System.Windows.Forms/Control.cs,
17537         System.Windows.Forms/UpDownBase.cs,
17538         System.Windows.Forms/ScrollBar.cs,
17539         System.Windows.Forms/DateTimePicker.cs,
17540         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
17541         System.Windows.Forms/ToolTip.cs,
17542         System.Windows.Forms/RadioButton.cs,
17543         System.Windows.Forms/LinkLabel.cs,
17544         System.Windows.Forms/Splitter.cs,
17545         System.Windows.Forms/TextBoxBase.cs,
17546         System.Windows.Forms/ToolStripTextBox.cs,
17547         System.Windows.Forms/ContainerControl.cs,
17548         System.Windows.Forms/ThemeWin32Classic.cs,
17549         System.Windows.Forms/SizeGrip.cs,
17550         System.Windows.Forms/ToolStripDropDown.cs,
17551         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
17552         private.  switch all uses over to Control.Parent.
17553
17554 2006-12-06  Chris Toshok  <toshok@ximian.com>
17555
17556         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
17557         Control does this before calling emitting these events.
17558
17559         * TabControl.cs: same.
17560
17561         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
17562         Control.client_rect.
17563
17564         * ButtonBase.cs: use the ClientSize property instead of the
17565         client_size field.
17566
17567         * ScrollableControl.cs: same.
17568
17569         * Control.cs: another pass at making properties private.  also,
17570         move the initialization of tab_stop to the ctor.
17571
17572 2006-12-05  Andreia Gaita <avidigal@novell.com>
17573
17574         * TabControl.cs: Let the selected index be set freely if the 
17575         control handle is not yet created.
17576
17577 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
17578
17579         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
17580         internal until I can rewrite DefaultLayout.
17581         * ToolStrip.cs: Fix build error and some general cleaning.
17582         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
17583         Fix build errors caused by making some of Control's fields private.
17584
17585 2006-12-05  Jackson Harper  <jackson@ximian.com>
17586
17587         * TextControl.cs: Redo Insert a little so that it use IndexOf
17588         instead of Split, this prevents it from messing up on things like
17589         \n\n\n. Also more effecient since the split array doesn't need to
17590         be created.
17591         * TextBoxBase.cs: AppendText doesnt handle multiline and non
17592         multiline text differently, this is the first of many fixes that
17593         will make multiline/non-multiline the same thing as far as the
17594         TextBoxBase is concerned.
17595         - Don't split the text and insert lines, this can lose some line
17596         endings (like is the last line a soft or hard break). Instead use
17597         the new Insert.
17598         - Fix an off by one when combining all the lines in the Text
17599         getter.
17600         - Remove separate multiline handling from the Text getter/setter.
17601
17602 2006-12-05  Chris Toshok  <toshok@ximian.com>
17603
17604         * ButtonBase.cs: a few changes:
17605
17606         - don't reinitialize internal Control fields in the ctor when they
17607         have the same values as Control sets them.
17608
17609         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
17610         this before calling those methods.
17611
17612         - we don't need to call Refresh for anything.  use Invalidate
17613         instead.
17614
17615         - OnEnabledChanged doesn't need to redraw at all - Control.cs
17616         calls Refresh in its OnEnabledChanged.
17617         
17618         - several of the events we were registered for in the ctor to
17619         redraw ourselves already include calls to Invalidate in the
17620         property setters that raise the events.  remove the extra
17621         invalidation.
17622
17623         - reformat a switch statement that was 83274658 columns wide.
17624         
17625 2006-12-05  Mike Kestner  <mkestner@novell.com>
17626
17627         * ComboBox.cs: fix a unit test regression from a TextBox
17628         SelectionLength return of -1 when there's no selection.  
17629
17630 2006-12-05  Chris Toshok  <toshok@ximian.com>
17631
17632         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
17633         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
17634         cleaning up some of the internal Control fields being used by
17635         subclasses.
17636
17637 2006-12-05  Mike Kestner  <mkestner@novell.com>
17638
17639         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
17640         listbox after AddImplicit calls since it defaults to hidden. Add a 
17641         hack to preserve requested heights across DropDownStyle changes.
17642
17643 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
17644
17645         * PropertyGrid.cs: Hide FindFirstItem method from public API.
17646
17647 2006-12-05  Chris Toshok  <toshok@ximian.com>
17648
17649         * DataGridView.cs: fix compiler warnings.
17650
17651         * PrintControllerWithStatusDialog.cs: same.
17652
17653         * ToolBar.cs: same.
17654
17655         * FolderBrowserDialog.cs: same.
17656
17657         * Splitter.cs: same.
17658
17659         * DataGridViewComboBoxCell.cs: same.
17660
17661         * XplatUIWin32.cs: same.
17662
17663         * PictureBox.cs: same.
17664
17665         * Win32DnD.cs: same.
17666
17667         * PageSetupDialog.cs: same.
17668
17669         * FileDialog.cs: same.
17670
17671         * PrintDialog.cs: same.
17672
17673         * DataGridTextBoxColumn.cs: same.
17674
17675         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17676
17677 2006-12-05  Chris Toshok  <toshok@ximian.com>
17678
17679         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17680         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17681         System.ComponentModel.EventHandlerList work.
17682
17683 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
17684
17685         * DrawTreeNodeEventArgs.cs: Added.
17686
17687 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17688         
17689         * InternalWindowManager.cs: Remove an unused field.
17690         
17691 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17692
17693         * InternalWindowManager.cs:
17694         - Save the point where the title bar is clicked.
17695         
17696         * MdiWindowManager.cs:
17697         - Only allow moving of the window as long as the 
17698         clicked point on the title bar does not get out of
17699         MdiClient's rectangle. Fixes #79982.
17700         
17701         * MdiClient.cs:
17702         - Added Horizontal/VerticalScrollbarVisible.
17703         - Simplified the scrollbar sizing algorithm.
17704         - Cache the difference in scrolled value in
17705         H/VBarValueChanged and move the calculation out
17706         of the for loop.
17707
17708 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17709
17710         * Control.cs: Make the Console.WriteLine in WndProc 
17711         write more info.
17712
17713 2006-12-05  Chris Toshok  <toshok@ximian.com>
17714
17715         * ToolStripManager.cs, ToolStripButton.cs,
17716         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17717         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17718         ToolStripSplitButton.cs, ToolStripSeparator.cs,
17719         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17720         ToolStripProgressBar.cs, ToolStripContainer.cs,
17721         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17722         to using System.ComponentModel.EventHandlerList.
17723
17724 2006-12-04  Chris Toshok  <toshok@ximian.com>
17725
17726         * LinkLabel.cs: fix up compiler warnings.
17727
17728         * TableLayoutSettings.cs: same.
17729
17730         * TreeView.cs: same.
17731
17732         * ToolBar.cs: same.
17733
17734         * TabControl.cs: same.
17735
17736         * RichTextBox.cs: same.
17737
17738         * ListViewItem.cs: same.
17739
17740         * PropertyGrid.cs: same.
17741
17742         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
17743
17744         * ToolTip.cs same.
17745
17746         * TextRenderer.cs: fix up compiler warnings.
17747
17748         * Label.cs: same.
17749
17750         * Form.cs: corcompare fixes.
17751
17752         * PictureBox.cs: fix up compiler warnings.
17753
17754         * ImageListStreamer.cs: same.
17755
17756         * TrackBar.cs: corcompare fix.
17757
17758         * Control.cs: fix up compiler warnings.
17759
17760         * SplitterPanel.cs: same.
17761
17762         * NumericTextBox.cs: same.
17763
17764         * ImageList.cs: same.
17765
17766         * StatusStrip.cs: same.
17767
17768         * ProgressBar.cs: corcompare fix.
17769
17770         * ToolStripButton.cs: fix up compiler warnings.
17771
17772         * ToolStripStatusLabel.cs: same.
17773
17774         * ToolStripSplitButton.cs: same.
17775
17776         * ToolStripSeparator.cs: same.
17777
17778         * ToolStripProgressBar.cs: same.
17779
17780         * ToolStripDropDownMenu.cs: same
17781
17782         * ToolStripDropDown.cs: same.
17783
17784         * ToolStripDropDownButton.cs: same.
17785
17786         * ToolStrip.cs: same.
17787
17788         * ToolStripControlHost.cs: same.
17789
17790         * ToolStripContentPanel.cs: same.
17791
17792         * ToolStripDropDown.cs: same.
17793
17794         * ToolStripContainer.cs: same.
17795
17796         * ToolStripPanel.cs: same, and add "new" where we need it to work
17797         with the new ArrangedElementCollection.
17798
17799         * ToolStripItemCollection.cs: add "new" where we need it to work
17800         with the new ArrangedElementCollection.
17801
17802 2006-12-04  Andreia Gaita <avidigal@novell.com>
17803
17804         * TabControl.cs: Fix default tab selection to after TabControl
17805         gets focus and not before. Fixes #80128
17806
17807 2006-12-04  Chris Toshok  <toshok@ximian.com>
17808
17809         * DataGridTableStyle.cs: remove the gross calling of
17810         datagrid.Refresh from here.  It's a broken idea and it doesn't
17811         work anyway.
17812
17813         * DataGrid.cs: instead, just register/unregister from the
17814         DataGridTableStyle events in CurrentTableStyle.  we play it
17815         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
17816         even though some would most likely not require it.  Fixes bug
17817         #80115 (and one portion of #80117 as a side effect).
17818
17819 2006-12-04  Chris Toshok  <toshok@ximian.com>
17820
17821         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
17822         so the textbox (if any) goes away.  Fixes bug #80117.
17823
17824 2006-12-04  Chris Toshok  <toshok@ximian.com>
17825
17826         * DataGridColumnStyle.cs: set the column's readonly property
17827         initially based on the property descriptor's IsReadOnly.  Fixes
17828         bug #80044.
17829
17830 2006-12-04  Chris Toshok  <toshok@ximian.com>
17831
17832         * ComboBox.cs: wrap the dropdown style changing work in
17833         SuspendLayout/ResumeLayout.  Fixes bug #79968.
17834
17835 2006-12-04  Jackson Harper  <jackson@ximian.com>
17836
17837         * TextBoxBase.cs: Fix off by one, since these are one-based.
17838         * TextBox.cs: Select all the text when we get focus.  The TextBox
17839         does this but the RTB does not.
17840
17841 2006-12-04  Chris Toshok  <toshok@ximian.com>
17842
17843         * DataGridTextBoxColumn.cs: remove some spew.
17844
17845         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
17846         but some part of me is saying "it shouldn't be here.."  At any
17847         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
17848         setting the value.
17849
17850 2006-12-04  Chris Toshok  <toshok@ximian.com>
17851
17852         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
17853         to reassign the propertydescriptor.
17854
17855 2006-12-04  Jackson Harper  <jackson@ximian.com>
17856
17857         * TextBoxBase.cs:
17858         * TextControl.cs: Remove some unused variables.  Maybe this will
17859         patch things up between mike and I.
17860         - don't split lines less then one char wide, if the viewport is
17861         that small text won't be visible anyways.
17862         
17863 2006-12-04  Jackson Harper  <jackson@ximian.com>
17864
17865         * TextBoxBase.cs: Default selection length is -1, need to do some
17866         more testing on windows to see when this is used for the property.
17867         - Redid the Lines [] property to that we properly remove soft line
17868         breaks
17869         - added support for preserving carriage returns
17870         -  CanUndo is not a variable like 'is undo enabled' it just returns
17871         true if there is undo operations available.
17872         - AppendText doesn't need to grab the last tag itself anymore,
17873         this happens automatically when we move the cursor.
17874         * TextControl.cs: Add CompoundActions to the undo class. This
17875         allows combining the other operations into one big option.  ie a
17876         paste will combine { delete old, insert new, move cursor }
17877         - Add InsertString undo operation
17878         - New method for deleting multiline text
17879         - Add carriage returns to lines. So we can preserve carriage
17880         returns when text is 'roundtripped'
17881
17882 2006-12-04  Chris Toshok  <toshok@ximian.com>
17883
17884         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
17885         minimum 0.  Fixes the scrollbar exception in bug #80136.
17886
17887 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17888
17889         * MdiClient.cs: 
17890         * MdiWindowManager: Removed unused fields and methods.
17891         
17892 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17893         
17894         * StatusBar.cs: Update all panels when a AutoSize=Contents
17895         panel needs updating.
17896         
17897         * StatusBarPanel.cs: Remove twidth and only use initialize.
17898         Fixes #80031.
17899                 
17900 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17901
17902         * Form.cs: When a form's MdiParent is set add it directly
17903         on top of the z-order in stead of relying on MdiClient's
17904         ActivateChild to do it. Fixes #80135.
17905         
17906         * MdiClient.cs: 
17907         - Remove original_order, mdi_child_list is already doing
17908         the same thing.
17909         - Create mdi_child_list on construction in
17910         stead of first use (avoids a few null checks).
17911
17912         * MenuItem.cs: Use an already existing list of mdi children
17913         to get the correct order of children and remove the other
17914         redundant list.
17915
17916 2006-12-04  Chris Toshok  <toshok@ximian.com>
17917
17918         * PropertyGridView.cs: cached_splitter_location is only used in
17919         !DOUBLEBUFFER code.
17920
17921         * PropertyGrid.cs: implement the ComComponentNameChanged event
17922         using Events, hoping that would fix the warning.  Looks like a
17923         compiler bug instead (#80144).
17924
17925         * PropertyManager.cs: remove unused method.
17926
17927 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
17928
17929         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
17930         include parentesis to fix expression evaluation. Fixes #79634.
17931
17932 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
17933         
17934         * MenuAPI.cs:
17935         - Changes to fix behavior in Menu control, some reported in #80097
17936         and other detected during behavior refactory like a select event
17937         problems.
17938         - Remove unneded "if's" conditions.
17939         - Created an internal to flag when popup is active in control, we need 
17940         it because in .NET you can have menu active but without popup active
17941         when you active menu using popup without visible items.
17942         - Mimic win32 behavior for Select and Popup events.  
17943         - Dont open popup menu when you dont have visible subitems.
17944         - Do nothing when click on disabled menu item.
17945         - Some small changes to follow the coding style guidelines.
17946         - Unselect menu only when another control gives focus. Fixes #80097.
17947         - Remove unused code.
17948         
17949         * MenuItem.cs: internal VisibleItems method to check if menu
17950         theres visible subitems, it will be usefull to fix some 
17951         behavior in Menu control.
17952         
17953 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
17954         
17955         * Timer.cs: Tag property for 2.0 profile.
17956         
17957 2006-12-01  Chris Toshok  <toshok@ximian.com>
17958
17959         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17960         
17961         * Win32DnD.cs: comment out some unused fields.
17962
17963         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17964         some unused properties/methods.
17965
17966         * XplatUIX11.cs: fix MousePosition so we override the base class's
17967         property instead of conflicting with it.
17968
17969         * PictureBox.cs: comment out some unused fields
17970
17971         * OSXStructs.cs: make some struct fields public.
17972
17973         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17974         MousePosition so we override the base class's property instead of
17975         conflicting with it.
17976
17977         * X11Dnd.cs: comment out some unused fields
17978
17979         * X11DesktopColors.cs: fix some struct field visibility to quiet
17980         the compiler.
17981
17982         * X11Dnd.cs: remove some debug code.
17983
17984         * ThemeClearlooks.cs: comment out unused field.
17985
17986         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17987
17988         * ThemeGtk.cs: comment out some unused pinvokes.
17989
17990         * Timer.cs: remove some unused fields.
17991
17992         * ThemeClearlooks.cs: comment out unused field.
17993
17994         * UpDownBase.cs: comment out unused field.
17995
17996         * DataObject.cs: comment out unused field.
17997
17998         * DataGridBoolColumn.cs: reomve unused field.
17999
18000         * DataGrid.cs: remove unused field.
18001
18002         * Cursor.cs: remove old ToBitmap code.
18003
18004         * ControlPaint.cs: remove unused method.
18005
18006         * ScrollBar.cs: remove unused fields.
18007
18008         * ComboBox.cs: remove unused field, and chain up to
18009         AccessibleObject ctor.
18010
18011         * ListBox.cs: remove unused field.
18012
18013         * ButtonBase.cs: wrap a couple fields in NET_2_0.
18014
18015         * GridEntry.cs: remove unused fields.
18016
18017         * Binding.cs: remove unused fields.
18018
18019         * AxHost.cs: remove unused method.
18020
18021         * ContainerControl.cs: remove unused field.
18022
18023         * ScrollableControl.cs: remove unused fields.
18024
18025 2006-12-01  Chris Toshok  <toshok@ximian.com>
18026
18027         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
18028         the Where/WhereString stuff.  it's easy enough to CWL
18029         Environment.StackTrace.
18030
18031         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
18032         unused private fields.
18033
18034 2006-12-01  Jackson Harper  <jackson@ximian.com>
18035
18036         * TextControl.cs: Do not update the view while inserting multiline
18037         text. If we update the view we might wrap lines, before entering
18038         the new lines, which causes the new line insertion calculations to
18039         be totally fubared.
18040         - Remove an old TODO
18041         - Make debug output a little nicer
18042         
18043 2006-12-01  Chris Toshok  <toshok@ximian.com>
18044
18045         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
18046
18047 2006-12-01  Chris Toshok  <toshok@ximian.com>
18048
18049         [ fix the majority of the CS0108 warnings we've been suppressing ]
18050         
18051         * TreeView.cs: mark BackgroundImageChanged as 'new'.
18052
18053         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
18054         to "LayoutToolBar" to quiet mcs.
18055         
18056         * TabControl.cs: mark our ControlCollection class as 'new'.
18057
18058         * TextBoxBase.cs: mark some events as 'new'.
18059
18060         * Splitter.cs: TabStop is 'new'.
18061
18062         * ControlBindingsCollection.cs: mark a few methods as new since
18063         they change the visibility from protected to public.
18064
18065         * RadioButton.cs: DoubleClick -> base class, and remove unused
18066         HaveDoubleClick.
18067
18068         * MonthCalendar.cs: ImeMode property -> base class, and mark many
18069         events as new.
18070
18071         * NumericUpDown.cs: TextChanged -> base class.
18072
18073         * CheckedListBox.cs: mark our ObjectCollection class as new to
18074         quiet mcs.
18075
18076         * FolderBrowserDialog.cs: make HelpRequest event new and have it
18077         muck with the base class.
18078
18079         * StatusBar.cs: fix some mcs warnings about Update being the same
18080         name as a base class method.
18081
18082         * RichTextBox.cs: mark some events as new, and make them do things
18083         to the base class impl.
18084
18085         * UserControl.cs: mark TextChanged as new, and have it manipulate
18086         base.TextChanged.
18087
18088         * UpDownBase.cs: mark some things new.
18089
18090         * CheckBox.cs: mark DoubleClick "new", and add some text about
18091         what we need to look at.
18092
18093         * Panel.cs: make the events "new", and manipulate the base
18094         version.  these are just here for attributes.
18095
18096         * AccessibleObject.cs: make owner private.
18097
18098         * Control.cs: deal with AccessibleObject.owner being private.
18099         cache our own copy if we need it.
18100
18101         * Button.cs: add "new" to the DoubleClickEvent.
18102
18103         * ListBox.cs: no need to track our own has_focus here.  let
18104         Control.has_focus do it for us.  Also some other work to clear up
18105         warnings about not overriding base class methods of the same name.
18106         
18107         * ComboBox.cs: clear up some warnings about not override base
18108         class methods of the same name.
18109
18110 2006-12-01  Chris Toshok  <toshok@ximian.com>
18111
18112         * Form.cs: flag a few things as "new" to quiet some of the mcs
18113         warnings.
18114
18115         * AxHost.cs: same.
18116
18117         * PrintPreviewDialog.cs: same.
18118
18119         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
18120         now DGV isn't so horrible on the class status page.  also, move
18121         all events to using System.ComponentModel.EventHandlerList.  my
18122         wrists hurt.
18123
18124 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18125
18126         * MdiWindowManager.cs:
18127         - Set form to active mdi child if shown,
18128         and update the active mdi child to the next 
18129         remaining child in the z-order if the form is hidden.
18130
18131         * Form.cs: 
18132         - Track if the form has been visible and if its 
18133         visibility is beeing changed, so that the MdiClient
18134         can properly decide the ActiveMdiChild. The MdiClient 
18135         cannot track this since the form can change visibility 
18136         before MdiClient is created.
18137
18138         * MdiClient.cs:
18139         - Don't activate anything of the parent form is changing
18140         its visibility.
18141         - Rework ActiveMdiChild to only return visible mdi 
18142         children and take into account several other corner 
18143         cases.
18144
18145 2006-12-01  Chris Toshok  <toshok@ximian.com>
18146
18147         * IBindableComponent.cs: new 2.0 interface.
18148
18149 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
18150
18151         * DataGrid.cs: Font for caption area is bold by default.
18152
18153 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
18154
18155         * Menu.cs: Tag property for 2.0.
18156         
18157 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
18158
18159         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
18160         
18161 2006-12-01  Chris Toshok  <toshok@ximian.com>
18162
18163         * TreeView.cs: doh, the Begin* events should be
18164         TreeViewCancelEventHandler.
18165
18166 2006-12-01  Chris Toshok  <toshok@ximian.com>
18167
18168         * Form.cs: Form.ControlCollection already stores off the
18169         form_owner field.  don't access the base class's internal "owner"
18170         field.
18171
18172         * Control.cs: make all the fields in Control.ControlCollection
18173         private.  there's no need for any internal fields here.
18174
18175 2006-12-01  Chris Toshok  <toshok@ximian.com>
18176
18177         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18178         OnHandleCreated.  Fixes bug #80109.
18179
18180 2006-12-01  Chris Toshok  <toshok@ximian.com>
18181
18182         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
18183         SplitContainer.cs, Control.cs, StatusStrip.cs,
18184         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
18185         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
18186         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
18187         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
18188         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
18189         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
18190         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
18191         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
18192         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
18193         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
18194
18195         do most of the work to convert our code over to use
18196         System.ComponentModel.Component.Events for
18197         adding/removing/dispatching events.
18198
18199
18200 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18201
18202         * DataGridView.cs: Fix an ArgumentNullException reported 
18203         twice today in IRC.
18204
18205 2006-11-30  Mike Kestner  <mkestner@novell.com>
18206
18207         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
18208         grabbed listbox.  Fixes #80036 and #80101.
18209
18210 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18211
18212         * Message.cs: Changed ToString() to match MS.
18213         
18214 2006-11-30  Jackson Harper  <jackson@ximian.com>
18215
18216         * TextBoxBase.cs: You can still change the selected text on a read
18217         only textbox.
18218         * TextControl.cs: Lower magic number for wrap calculations. This
18219         lets text get closer to the right (far) edge.
18220
18221 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
18222
18223         * Control.cs: Tweak 2.0 layout properties.
18224         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
18225         * TextRenderer.cs: Add a new overload.
18226         * ToolStrip*: Huge amount of changes and new features.
18227
18228 2006-11-30  Mike Kestner  <mkestner@novell.com>
18229
18230         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
18231         scroll range correct.  Fixes #79994.
18232
18233 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
18234
18235         * MdiWindowManager.cs: Update main form's text when
18236         a form is closed. (fixes #80038)
18237         
18238 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
18239
18240         * ToolBar.cs:
18241         - Fix an regression in ButtonSize.
18242         - Get ImeMode default value change to "Disable".
18243         - Get ShowTooltips default value change to true, default value is 
18244         "false" but after make a test in .NET we get "true" result as default.
18245         
18246 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
18247
18248         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
18249
18250 2006-11-29  Chris Toshok  <toshok@ximian.com>
18251
18252         * XplatUIWin32.cs (GetWindowTransparency): check return value of
18253         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
18254         SetWindowTransparency hasn't been called.
18255
18256 2006-11-29  Chris Toshok  <toshok@ximian.com>
18257
18258         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
18259         if it's supported.
18260         (set_AllowTransparency): reorder things a little so that the
18261         WS_EX_LAYERED style is removed properly.
18262
18263 2006-11-29  Chris Toshok  <toshok@ximian.com>
18264
18265         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
18266         
18267         * Form.cs: only call the XplatUI transparency method (get/set) if
18268         SupportsTransparency says it's supported. Otherwise fallback to
18269         doing nothing (in the set case) or returning the instance field we
18270         cache (in the get case).
18271
18272         * XplatUIStructs.cs: add TransparencySupport flag enum.
18273         
18274         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
18275         change to SupportsTransparency.
18276
18277         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
18278         TransparencySupport.None from SupportsTransparency.
18279
18280         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
18281         TransparencySupport.Set from SupportsTransparency.
18282
18283         * XplatUIWin32.cs: implement GetWindowTransparency calling
18284         GetLayeredWindowAttributes, and implement SupportsTransparency by
18285         checking whether or not both
18286         GetWindowTransparency/SetWindowTransparency are available
18287         entrypoints.  We need to do this since SetWindowTransparency is
18288         available as of win2k, but GetWindowTransparency requires winxp.
18289         yay win32 api.
18290
18291         * XplatUI.cs: Add GetWindowTransparency, and change
18292         SupportsTransparency to allow for either/both Get/Set.
18293
18294 2006-11-29  Chris Toshok  <toshok@ximian.com>
18295
18296         * DataGrid.cs: keep from going into an infinite loop redrawing a
18297         datagrid that has no datasource.  Fixes bug #80033.
18298
18299 2006-11-29  Chris Toshok  <toshok@ximian.com>
18300
18301         * MenuItem.cs: fix the NRE when we assign text (and therefore call
18302         Invalidate) before the mainmenu has been assigned to a control.
18303
18304 2006-11-29  Chris Toshok  <toshok@ximian.com>
18305
18306         * DataGrid.cs: detect when we should be double the double click
18307         row/column autosize stuff, although that codepath has yet to be
18308         written.  part of the work for bug #79891.
18309
18310 2006-11-29  Chris Toshok  <toshok@ximian.com>
18311
18312         * Binding.cs (SetControl): fix unit test.
18313
18314 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18315
18316         * PageSetupDialog.cs: Validate the margins and set them in
18317         PageSettings. 
18318         * NumericTextBox.cs: New class to mimic the behavior of the
18319         textboxes used in the printing dialogs.
18320
18321 2006-11-29  Andreia Gaita  <avidigal@novell.com>
18322         
18323         * Form.cs: Revert previous change (remove call UpdateBounds
18324         from form constructor), because it messes with the handle creation
18325         order, and that one needs lots and lots of love.
18326         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
18327         for valid printer and throw InvalidPrinterException if document
18328         is set but printer not valid), adding a MonoTODO. Once 
18329         handle creation is done properly, we can put this back in.
18330
18331 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18332
18333         * MenuItem.cs: Create a invalidate method for menu item, to be
18334         calling from set text, it make text changes to imadiate update
18335         on screen. Fixes #80013. 
18336         
18337 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18338
18339         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
18340         fixes bug #80070 and some other problem on toolbar buttons
18341         layout.
18342
18343 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
18344
18345         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
18346         with dotted brush.      Fixes #79564
18347         
18348 2006-11-28  Andreia Gaita  <avidigal@novell.com>
18349
18350         * Form.cs: Removed call to UpdateBounds on Form
18351         constructor, it was causing a call to CreateHandle
18352         before it was supposed to.
18353         * PrintControllerWithStatusDialog: Applied patch
18354         by Chris Toshok to hide controller when there are
18355         no printers available.
18356         PrintDialog.cs: initialize printer settings to 
18357         null - correct DefaultValues test #5
18358         * PrintPreviewControl.cs: Move PrintController
18359         initialization to GeneratePreview
18360         * PrintPreviewDialog.cs: 
18361         - Remove Preview generation     from Document_set(). It is 
18362         called on OnPaint
18363         - Throw InvalidPrinterException on CreateHandle if
18364         a Document is set but there are no printers or 
18365         printer is not valid.
18366         * ThemeWin32Classic: don't paint PrintPreviewControl
18367         if there is nothing to paint    
18368
18369 2006-11-28  Miguel de Icaza  <miguel@novell.com>
18370
18371         * Form.cs: Add another popular method.
18372
18373         * TabPage.cs: ditto.
18374
18375 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18376
18377         * MenuItem.cs: Fixed a warning.
18378         * InternalWindowManager: Fixed a warning.
18379
18380 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18381
18382         * MenuItem.cs:
18383         - When cloning a menu also clone MdiList and clone the 
18384           window menu items properly (as the forms and menuitems
18385           are kept in an internal hashtable, these need updating 
18386           as well)
18387         - Rewrote the window menu code, menu items are added in the
18388           order the forms were added to their parent, and they are
18389           updated every time the window menu is shown (before the
18390           list was only generated once, in the current order of the
18391           forms, and would never be updated). A checkmark is shown
18392           next to the item corresponding to the active mdi child.
18393
18394 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18395
18396         * XplatUIStructs.cs: 
18397         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
18398         
18399         * XplatUIWin32.cs: 
18400         - Added TME_NONCLIENT to TMEFlags.
18401         - Handles WM_NCMOUSEMOVE in GetMessage to 
18402           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
18403
18404         * MdiWindowManager:
18405         - Now merges mdi child menu to parent menu when maximized.
18406         - Recalculate NC areas of both mdi child and mdi parent. 
18407           Fixes #79757 (4).
18408           on window state and size changes.Fixes #79844 (3).
18409         - Handle WM_NCCALCSIZE to properly calculate borders.
18410
18411         * Form.cs:
18412         - Add/remove to the mdi containers list of mdi children 
18413           in the order they are added.
18414         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
18415           to the maximized mdi child.
18416         
18417         * InternalWindowManager.cs:
18418         - Only execute a click on the control buttons on the mouse up,
18419           not on the mouse down. Show the state of the button 
18420           (was only showing Normal state, never Pressed state). The
18421           pressed button now follows the mouse (if you click the Close 
18422           button and move the mouse over the Maximize button, the 
18423           Maximize button will be shown as pressed). Since Win32 does
18424           not generate WM_NCLBUTTONUP if you release the button outside
18425           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
18426           it as a mouse up.
18427         
18428         * ThemeWin32Classic.cs:
18429         - Draw a missing border around mdi child forms. Fixes #79844 (2).
18430
18431         * MdiClient.cs:
18432         - Added a list of forms which contains the order the forms are
18433           added to the mdi parent.
18434         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
18435         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
18436         - If the active form changes set the scrollbars to the top
18437           of the Z order, otherwise the form could hide them.
18438         - Scrollbars are now sized according to ClientSize, not 
18439           to Size, and they take into account the other scrollbar
18440           to determine maximum.
18441         
18442 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
18443         
18444         * XplatUI.cs:
18445         * XplatUIDriver.cs:
18446         * XplatUIX11.cs:
18447         * XplatUIWin32.cs:
18448         * XplatUIOSX.cs:
18449         - Added RequestAdditionalWM_NCMessages for windows to 
18450           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
18451           Currently only implemented in XplatUIWin32.
18452
18453 2006-11-27  Chris Toshok  <toshok@ximian.com>
18454
18455         * Hwnd.cs: only add the hwnd to the windows hash in
18456         set_WholeWindow and set_ClientWindow if whole_window/client_window
18457         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
18458
18459 2006-11-27  Mike Kestner  <mkestner@novell.com>
18460
18461         * ComboBox.cs: remove redundant OnDropDown call.  It is called
18462         from the ComboListBox.ShowWindow code. Fixes #79969.
18463
18464 2006-11-27  Chris Toshok  <toshok@ximian.com>
18465
18466         * Hwnd.cs: remove the setters for ExposePending and
18467         NCExposePending - noone uses them.
18468
18469 2006-11-27  Jackson Harper  <jackson@ximian.com>
18470
18471         * TextControl.cs: new param for ReplaceSelection which determines
18472         whether we select the new selection, or set the cursor to the end
18473         of the new selection.
18474         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
18475         pasting, select the new text.
18476         * RichTextBox.cs: Use new param for ReplaceSelection.
18477
18478 2006-11-27  Jackson Harper  <jackson@ximian.com>
18479
18480         * TextBoxBase.cs: Set the selection to the caret after the caret
18481         is moved, otherwise they get out of sync.
18482
18483 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18484
18485         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
18486         it fixes #80015
18487
18488 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
18489
18490         * ThemeWin32Classic.cs: 
18491         - Fix toolbar drop down arrow position.
18492         - Fix drop down appearance when ToolBar.Appearance is normal,
18493         it fixes #80018.
18494         
18495 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
18496
18497         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
18498         * Control.cs: Same.
18499         * UpDownBase.cs: Same.
18500         * ButtonBase.cs: Same.
18501         * ScrollBar.cs: Same.
18502         * TrackBar.cs: Same.
18503         * PictureBox.cs: Same.
18504         * UserControl.cs: Same.
18505         * Label.cs: Same.
18506         * ListControl.cs: Same.
18507         * TextBoxBase.cs: Same.
18508         * ListView.cs: Same.
18509         * RichTextBox.cs: Same.
18510         * TreeView.cs: Same.
18511
18512 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
18513
18514         * PrintDialog.cs:
18515         - Text label for where 
18516         - Text label comment was not shown
18517
18518 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
18519
18520         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
18521
18522 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18523
18524         * InternalWindowManager.cs: 
18525         - Handle WM_PARENTNOTIFY to activate the form
18526         if any child control is clicked.
18527         - The form is only sizable if not minimized.
18528
18529         * MdiWindowManager.cs:
18530         - Save the IconicBounds if the form is moved.
18531         - Rework SetWindowState, now the window bounds 
18532         are stored only if the old window state is Normal.
18533         
18534         * MdiClient.cs:
18535         - In SetWindowStates store the old window state if 
18536         the window is maximized and restore window state if
18537         the window looses focus.
18538         - Don't handle any scrollbar value changes if 
18539         initializing the scroll bars. Fixes #79771.
18540         - Reworked ArrangeIconicWindows. Current algorithm
18541         tests bounds agains all other minimized windows, if
18542         any intersections create new bounds (going left to 
18543         right, bottom to top) and then test again. When 
18544         successful the bounds are saved and never computed
18545         again. Fixes #79774.
18546
18547 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18548
18549         * InternalWindowManager.cs: Added HandleTitleBarUp.
18550
18551 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18552
18553         * NumericUpDown.cs: In .NET 1.1, user entered text is still
18554         hexadecimal in ParseUserEdit.
18555
18556         
18557 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
18558
18559         * MdiWindowManager.cs: 
18560         - Handle a click on the form's icon to show the 
18561         system menu (when maximized). Fixes #79775.
18562         - Change the existing click handler for the form's
18563         icon when not maximized to show on MouseUp.
18564         Fixes #79776.
18565
18566         * Form.cs: In OnResize only layout the mdi child's
18567         parent if it actually has a parent. Might not if
18568         the window is closing.
18569
18570
18571 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18572
18573         * MdiClient.cs: Ignore active MDI client for text of parent, if
18574         child has no text set.
18575
18576 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
18577
18578         * ToolBar.cs: Fixed ToString to match MS.
18579
18580 2006-11-22  Andreia Gaita  <avidigal@novell.com>
18581
18582         * NumericUpDown: 
18583         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
18584         update inner values on set. Fixes #79966.
18585         - Override OnLostFocus to update value on NET 2. Fixes #79950.
18586         - Fix hexadecimal parsing.
18587         
18588         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
18589         parent. Fixes #79957
18590
18591 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18592
18593         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
18594         the actual size has to be queried, since if height /
18595         width is negative Win32 changes it to 0. 
18596         Fixes #79999 on Windows.
18597         
18598         * XplatUIX11.cs: Set height / width to 0 if negative
18599         in SetWindowPos. Fixes #79999 on Linux.
18600         
18601 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
18602
18603         * ThemeWin32Classic.cs: Fix text redenring when button is
18604         pressed.
18605
18606 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
18607
18608         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
18609         and later navigate by mouse. Fixes #79528.
18610
18611 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
18612
18613         * ToolBar.cs: Set default value for TabStop to false in
18614         constructor, it fixes remaining behavior of bug #79863.
18615
18616 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18617
18618         * MdiWindowManager.cs:
18619         * InternalWindowManager.cs:
18620         - Moved a few methods specific to Mdi from 
18621         InternalWindowManager to MdiWindowManager.
18622         Fixes #79996.
18623         
18624 2006-11-21  Chris Toshok  <toshok@ximian.com>
18625
18626         * XplatUIOSX.cs: stub out InvalidateNC.
18627
18628         * XplatUIWin32.cs: implement InvalidateNC using the call I found
18629         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
18630
18631         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
18632
18633         * XplatUIDriver.cs: add InvalidateNC abstract method.
18634
18635         * XplatUI.cs: add InvalidateNC.
18636
18637 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
18638
18639         * ToolBar.cs: Invalidate complete button area when pressed status 
18640         was changed.
18641         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
18642         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
18643         by 1 when button is pressed.
18644
18645 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18646
18647         * ToolButton.cs: Invalidate middle of DropDown button when
18648         ToolBar theres DropDownArrows.
18649         * ThemeWin32Classic.cs: Change position of DropDown arrow and
18650         fix DropDown drawing operations.
18651
18652 2006-11-20  Chris Toshok  <toshok@ximian.com>
18653
18654         * NativeWindow.cs: fix the formatting of functions ('{' on the
18655         following line), and enable the thread exception dialog.
18656
18657         * Application.cs: remove the duplicate exception catching from
18658         here.
18659
18660 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18661
18662         * Toolbar.cs: Triggers button click event when click on icon
18663         of dropdown ToolBarButton. Fixes #79912.
18664         
18665 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18666
18667         * Theme.cs:
18668         * ThemeWin32Classic.cs:
18669         - Added a property WindowBorderFont to enable themeing
18670           of mdi child windows' Text.
18671           
18672 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18673
18674         * InternalWindowManager.cs:
18675         * Form.cs:
18676         * MdiClient.cs:
18677         * MdiWindowManager.cs: 
18678         - If mdi child is maximized, set mdi parent's
18679           text to "Parent - [Child]". Fixes #79770.
18680         - If there is any maximized mdi child windows, only the active 
18681           window (and any new windows) is maximized, the rest are normal.
18682         - On a WindowState change only save mdi child's window bounds 
18683           if the old window state was normal. Fixes #79774.
18684         - The scroll bars are now calculated on hopefully all
18685           necessary events. Fixed #79771 / #79844->6 / #79906.
18686         - MdiClient.SizeScrollBars() now takes into account docked 
18687           controls in the parent when calculating available space.
18688         - InternalWindowManager now always repaints the entire title
18689           area. Fixes #79844->1/4/5.
18690         - Added RequestNCRecalc on mdi child windowstate changes.
18691           Fixes #79772.
18692
18693 2006-11-20  Mike Kestner  <mkestner@novell.com>
18694
18695         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18696         in the MouseUp handler of the listbox and move the return handling
18697         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
18698
18699 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
18700
18701         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
18702
18703 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18704
18705         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18706           working in 1.2.x anymore. So, updated.
18707
18708 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
18709
18710         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18711         NumberGroupSeparator of current culture instead of assuming en-US.
18712         Fixed bug #79967.
18713
18714 2006-11-17  Mike Kestner  <mkestner@novell.com>
18715
18716         * Control.cs: Add the concept of implicit bounds setting so that
18717         dock/undock round trips preserve explicitly set size/locations.
18718         Fixes #79313.
18719
18720 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
18721
18722         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18723           can't handle those filters. (Fixes bug #79961)
18724
18725 2006-11-17  Chris Toshok  <toshok@ximian.com>
18726
18727         [ fixes the exit/crashes associated with #79835.  it's clearly
18728         suboptimal though, we need to figure out a better way to solve
18729         this. ]
18730         
18731         * PrintPreviewControl.cs: deal with the new invalid printer
18732         exceptions.
18733
18734         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
18735         and return false (so CommonDialog.ShowDialog doesn't actually show
18736         the form.)
18737
18738         * PrintDialog.cs: enable/disable the Ok button depending on
18739         whether or not the printer is valid.
18740
18741         * CommonDialog.cs (ShowDialog): only actually show the form if
18742         RunDialog returns true.
18743
18744 2006-11-17  Jackson Harper  <jackson@ximian.com>
18745
18746         * TextControl.cs: When soft splitting a line, mark it as a soft
18747         split line. Also carry over the current line break to the next
18748         line.
18749
18750 2006-11-17  Chris Toshok  <toshok@ximian.com>
18751
18752         * XplatUIX11.cs: when scrolling a window with an invalid area, we
18753         only want to shift the part of the invalid area that overlaps the
18754         area we're scrolling.  we also don't want to clear the invalid
18755         area unless the invalid area was entirely contained within the
18756         scrolling area.
18757
18758 2006-11-16  Chris Toshok  <toshok@ximian.com>
18759
18760         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
18761         also make sure to free the memory returned by XGetWindowProperty
18762         in GetText().
18763
18764         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
18765
18766 2006-11-16  Chris Toshok  <toshok@ximian.com>
18767
18768         * XplatUI.cs: add a new super secret way to get at the totally
18769         unsupported X11 backend.
18770
18771 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
18772
18773         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
18774
18775 2006-11-16  Jackson Harper  <jackson@ximian.com>
18776
18777         * TreeView.cs: Allow more explicit setting of top node position
18778         for scrollbars. Slower algo, but more accurate.
18779         - CollapseAll should maintain the current top node.
18780         * TextBoxBase.cs: When positioning the caret, use the line, pos
18781         method, since the x, y method does not grab the correct tag, and
18782         the caret height never gets set correctly. (Maybe I should just do
18783         away with the caret having its own height, and always use the
18784         carets current tag for height).
18785
18786 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
18787
18788         [Fixes 79778, 79923]
18789
18790         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
18791         Parent to the FosterParent instead.
18792
18793 2006-11-16  Jackson Harper  <jackson@ximian.com>
18794
18795         * TreeView.cs: Need to recalc the topnode when we expand or
18796         collapse. The scrolling methods can't handle this on their own,
18797         since they use differences between the last scroll position, and
18798         those difference get completely messed up since we are expanding
18799         nodes.  This problem should probably be fixed in the scrolling
18800         methods, so they can figure out exactly where they are, but this
18801         will slow things down a little.
18802         * ThemeWin32Classic.cs: Special case for groupboxes with empty
18803         strings, makes nunit-gui look a lot nicer.
18804
18805 2006-11-16  Chris Toshok  <toshok@ximian.com>
18806
18807         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
18808         the broken multithreaded event handling we have in here.  File
18809         this entry under "Why we should move to the new X11 backend".
18810
18811         Any thread can make it into UpdateMessageQueue, which gets events
18812         from the X socket - some of which could belong to hwnds being
18813         managed by a different thread.  We can also have multiple threads
18814         in UpdateMessageQueue at the same time, with each one reading from
18815         the X socket.  This leads to many problems, with the following
18816         solutions:
18817
18818         We can't use hwnd.Queue.Enqueue anywhere in here and must use
18819         EnqueueLocked.
18820
18821         The MotionNotify compression we do can't work across threads
18822         (without locking the entire queue, perhaps) since we call
18823         hwnd.Queue.Peek, so we just punt and don't compress motion events
18824         unless the owning thread is the one which got the X event.
18825
18826         ConfigureNotify is another fun one, since it modifies the hwnd's
18827         bounds and then enqueues the event.  We add a lock to Hwnd which
18828         is held when setting configure_pending to true (and enqueuing the
18829         event).
18830
18831         There is a race wrt the wake socket.  we need to make sure that
18832         only 1 thread is waiting on that socket, or else a thread could
18833         sleep waiting for data that never comes.  It's difficult (but not
18834         impossible) to make happen, because it seems to require something
18835         like the following:
18836
18837             1. Thread 1 polls on wake_receive
18838         
18839             2. poll returns saying there's data to be read on
18840                wake_receive.
18841         
18842             3. Thread 2 polls on wake_receive and immediately returns
18843                saying there's data to be read.
18844
18845             4. Thread 2 reads the wakeup byte from wake_receive
18846
18847             5. Thread 1 attempts to read the wakeup byte from
18848                wake_receive.
18849
18850             6. Thread 2 exits (due to a form closing, perhaps).
18851
18852             7. Thread 1 blocks forever.
18853         
18854         Fun, eh?
18855
18856         Fixing the Expose handling isn't done yet, and the races inherent
18857         in that piece of code are responsible for the drawing mistakes you
18858         see when generating expose events in a MT app (like NPlot).  This
18859         one is the likely to be the hardest to bandaid, and it doesn't
18860         appear to cause anything but drawing problems.  The other issues
18861         caused apps to exit or hang.
18862
18863         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
18864         called from a different thread than the one that should be calling
18865         these functions.
18866
18867         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
18868
18869 2006-11-15  Chris Toshok  <toshok@ximian.com>
18870
18871         * Application.cs: null out the context's MainForm when we exit
18872         RunLoop.  Fixes a newly checked in unit test as well as the last
18873         ODE from bug #79933.
18874
18875 2006-11-15  Chris Toshok  <toshok@ximian.com>
18876
18877         * Form.cs (set_Owner): allow a null value so we can clear the
18878         form's owner.
18879         (Dispose): set all our owned_form's Owner properties to null, and
18880         clear the owned_forms collection.
18881         (WM_CLOSE): clean up this a little bit.. still not right though.
18882
18883         * ApplicationContext.cs: OnMainFormClosed should only call
18884         ExitThreadCore if the main form isn't recreating.  Fixes unit
18885         test.
18886
18887 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18888
18889         [Fixes 78346]
18890
18891         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
18892
18893 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18894
18895         [Fixes 79433]
18896
18897         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
18898         keep popup window types from stealing focus from the main form
18899         on Windows.
18900
18901         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
18902
18903         * MenuAPI.cs: Set above flag to true.
18904
18905 2006-11-15  Chris Toshok  <toshok@ximian.com>
18906
18907         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
18908         the button being released is not in wParam.
18909
18910 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
18911
18912         * Form.cs: Add the released button to MouseEventArgs.Button
18913         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
18914         on Win32.
18915
18916 2006-11-15  Chris Toshok  <toshok@ximian.com>
18917
18918         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
18919         GetText().  untested because it's unused in our implementation.
18920         Control.Text always caches the text, even if
18921         ControlStyles.CacheText is not set.
18922
18923         fixes bug #79939.
18924
18925 2006-11-15  Chris Toshok  <toshok@ximian.com>
18926
18927         [ fixes #79933 ]
18928         
18929         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
18930         message.  no hiding, no disposing.
18931
18932         in the WM_CLOSE handler, hide the form if it's modal.
18933
18934 2006-11-15  Chris Toshok  <toshok@ximian.com>
18935
18936         * XplatUIX11.cs: use AddExpose instead of sending a message.
18937         fixes textbox border drawing.
18938
18939 2006-11-15  Chris Toshok  <toshok@ximian.com>
18940
18941         * PropertyGridView.cs: keep from crashing on mouse move/down when
18942         the property grid is empty.
18943
18944 2006-11-14  Jackson Harper  <jackson@ximian.com>
18945
18946         * TextControl.cs: Make PageUp and PageDown more like the MS
18947         versions.
18948         * TextBoxBase.cs: When we set the text property position the
18949         cursor at the beginning of the document.
18950
18951 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18952
18953         * Form.cs: if a mdi child's WindowState has changed
18954         before it's creation, it would display wrong control
18955         buttons.
18956         
18957 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
18958
18959         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18960           (Fixes bug #79927)
18961
18962 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
18963
18964         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
18965         the window gets to paint its borders even if the window is
18966         getting smaller.
18967         
18968         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
18969         otherwise the old control buttons would still be painted 
18970         if the window gets bigger.
18971         
18972         * PaintEventArgs.cs: add an internal method so that the clip 
18973         rectangle can be changed.
18974         
18975 2006-11-13  Chris Toshok  <toshok@ximian.com>
18976
18977         [ fixes bug #79745 ]
18978         
18979         * NotifyIcon.cs: lots of cleanup.
18980
18981         * X11Structs.cs: add an enum for XEMBED messages.
18982
18983         * XplatUIX11.cs: reindent one of the giant switch statements, it
18984         was taking up an additional tab stop, and this file is already way
18985         too wide for my laptop's screen.
18986
18987         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
18988         we get it, resize the hwnd to the WMNormalHints max_width/height.
18989
18990 2006-11-13  Jackson Harper  <jackson@ximian.com>
18991
18992         * TextBoxBase.cs: Compute the value changes for the mouse wheel
18993         teh simple way.
18994
18995 2006-11-13  Chris Toshok  <toshok@ximian.com>
18996
18997         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18998         #79898.  force a reference to the Region to stick around so the
18999         unmanaged object isn't collected (rendering our handle in the MSG
19000         stale).
19001
19002 2006-11-13  Chris Toshok  <toshok@ximian.com>
19003
19004         * XplatUIX11.cs: fix #79917 for window managers which support
19005
19006         using XStoreName on the raw utf8, and we need to convert to
19007         COMPOUND_TEXT if it's non-latin1.
19008
19009 2006-11-13  Chris Toshok  <toshok@ximian.com>
19010
19011         * Form.cs (set_DialogResult): we need to set closing to false if
19012         we're setting our result to None.  fixes bug #79908.
19013
19014 2006-11-13  Jackson Harper  <jackson@ximian.com>
19015
19016         * TextControl.cs: When formatting text, compute the adjusted tag
19017         lengths correctly, using FindTag for the end tag instead of trying
19018         to figure it out outselves.
19019         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
19020         the item, ItemHeight doesn't work, because trees with large
19021         imagelists use those for their height
19022         * TreeView.cs: ActualItemHeight factors in the image height
19023         - compute left edge of checkboxes correctly
19024         - when expanding/collapsing move the bottom down one pixel, so we
19025         aren't moving part of the node
19026
19027 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19028
19029         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
19030         stack in PaintEventStart so that it won't get disposed by the gc
19031         before reaching PaintEventEnd.
19032
19033 2006-11-13  Jackson Harper  <jackson@ximian.com>
19034
19035         * TextBoxBase.cs: Don't select the word if we are on a line with
19036         no text.
19037         - We don't need to position the caret on mouse up, since the mouse
19038         move handler should be doing this
19039         - When double clicking a blank line, the caret is advanced to the
19040         next line.
19041
19042 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
19043
19044         * TreeNodeCollection.cs: Avoid duplicating indexer code.
19045
19046 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
19047
19048         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
19049         Fixes part of bug #79910.
19050
19051 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
19052
19053         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
19054           (bug #79903). Some minor string updates to match ms.
19055
19056 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19057
19058         * FileDialog.cs: Don't add an extension if the filename
19059           already ends with that extension.
19060
19061 2006-11-10  Jackson Harper  <jackson@ximian.com>
19062
19063         * TreeView.cs: Use the currently highlighted node for the
19064         BeforeSelect event.
19065         * TextBoxBase.cs: There is no need to expand selection on
19066         MouseMove.
19067         - CanUndo means 'is there any undo operations', not 'is undo
19068         allowed on this textcontrol. Fixed ClearUndo unit test.
19069
19070 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
19071
19072         * Button.cs: only perform click when button is Selectable (so as 
19073         not to activate default buttons when they're disabled)
19074         
19075         * Control.cs: Rewrite of the SelectNextControl and related 
19076         methods. HandleClick now selects next control if the current one
19077         is being disabled.
19078         
19079         * Form.cs: OnActivated selects next active control only if Load 
19080         has already occurred. If Load hasn't run, there's no point in 
19081         selecting here, Load might change the state of controls.
19082         
19083         * FocusTest.cs: Tests marked as working again for these fixes
19084
19085 2006-11-10  Chris Toshok  <toshok@ximian.com>
19086
19087         * XplatUIX11.cs: a couple of fixes.
19088
19089         - use XInternAtoms with almost all the atoms we need to register,
19090         instead of many, many calls to XInternAtom.  should help a bit on
19091         startup time, at the expense of making the code look a little
19092         worse.
19093
19094         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
19095         isn't reparented (which seems to be a clue that we're running fon
19096         compiz) and they have an Owner form.  This fixes the tool windows
19097         in paint.net when running under compiz.
19098
19099         - when setting the opacity of a window, support both the case
19100         where the window has been reparented and also when it hasn't been.
19101         Since compiz/beryl doesn't seem to reparent windows, and these are
19102         the only window managers which support translucency, I'm not sure
19103         why we need the hwnd.reparented case at all.. but leave it in.
19104         now we get translucent windows in paint.net under compiz/beryl.
19105
19106 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19107
19108         * FileDialog.cs: Always return the value for FilterIndex that
19109           was set. Internally convert it to values that make sense.
19110
19111 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19112         
19113         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
19114
19115 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
19116
19117         * Toolbar.cs: Change default value of DropDownArrows to true, the 
19118         signature still using false to make it compatible with MS but the 
19119         initial value is true. Fixes #79855.
19120
19121 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
19122
19123         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
19124           only available on Linux.
19125
19126 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
19127
19128         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
19129         reduce number of calls to redraw method during toolbar creation.
19130
19131 2006-11-09  Mike Kestner  <mkestner@novell.com>
19132
19133         * ListView.cs : raise SelectedIndexChanged when an item is selected
19134         programmatically via the Item.Selected property.  Gert's nice 
19135         ListViewSelectedIndexChanged test fixture now runs clean.
19136
19137 2006-11-09  Mike Kestner  <mkestner@novell.com>
19138
19139         * ListView.cs : raise SelectedIndexChanged when a selected item is
19140         removed from the item collection using Remove or RemoveAt.
19141
19142 2006-11-09  Mike Kestner  <mkestner@novell.com>
19143
19144         * ListView.cs : raise SelectedIndexChanged once per selected item
19145         for compat with MS.  Fixes #79849+.
19146
19147 2006-11-09  Chris Toshok  <toshok@ximian.com>
19148
19149         * TabControl.cs: initialize row_count to 0, and set it to 1 when
19150         we need to (if we have any tab pages).  Fixes unit test.
19151
19152 2006-11-09  Chris Toshok  <toshok@ximian.com>
19153
19154         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
19155         width is 0, not 3.  Fixes a unit test.
19156
19157 2006-11-09  Mike Kestner  <mkestner@novell.com>
19158
19159         * ListView.cs : use Implicit scrollbars so that focus isn't 
19160         stolen from the listview when they are clicked. Fixes #79850.
19161
19162 2006-11-09  Chris Toshok  <toshok@ximian.com>
19163
19164         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
19165         have a root item.  Fixes #79879.
19166
19167 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
19168
19169         * FileDialog.cs:
19170           - Fix ToString ()
19171           - An ArgumentException is now thrown if a wrong filter
19172             is applied (matches ms). The previous filter doesn't change
19173             anymore if an exception is thrown.
19174           - Changing the FileName property also affects FileNames
19175         * ColorDialog.cs: The length of the CustomColors array is always
19176           16. It doesn't matter if we use a smaller array or null to update
19177           or change the custom colors property.
19178         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
19179           for RootFolder if we get a undefined value.
19180
19181 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19182
19183         * StatusBarPanel.cs: 
19184         - Width is set to MinWidth if Width is smaller than
19185         MinWidth. Fixes #79842.
19186         - MinWidth now always overrides Width (MSDN says MinWidth
19187         is set to Width when AutoSize = None, but they do not 
19188         behave like that).
19189         - Style has now the the correct default value.
19190         
19191 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19192  
19193         * TrackBar.cs: 
19194         - The control is completely invalidated on 
19195         Got/LostFocus to draw the focus rectangle correctly.
19196         - When AutoSize then height is always 45 (width for 
19197         vertical controls).
19198         
19199         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
19200         on the mouse when moved and it doesn't move when grabbed
19201         until the mouse moves as well. Also fixed some wrong 
19202         calculations when clicking on the thumb (control thought
19203         click was outside of thumb and didn't grab it).
19204         Fixes some of the issues in #79718.
19205
19206 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
19207
19208         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
19209
19210 2006-11-08  Chris Toshok  <toshok@ximian.com>
19211
19212         * PropertyGridView.cs: only call ToggleValue if the item is not
19213         readonly.
19214
19215 2006-11-08  Jackson Harper  <jackson@ximian.com>
19216
19217         * TextBoxBase.cs: The RichTextBox and textbox have very different
19218         word selection methods.  Implement the textbox's simple word
19219         selection here, and let the RichTextBox override and provide it's
19220         own.
19221         - Don't do extra selection on mouseup
19222         * RichTextBox.cs: Use the documents word selection algorithm, I
19223         think ideally, this function will be pulled into the
19224         RichTextBox.cs code someday.
19225
19226 2006-11-08  Chris Toshok  <toshok@ximian.com>
19227
19228         * RootGridEntry.cs: new class to represent GridItemType.Root.
19229
19230         * CategoryGridEntry.cs: reformat, and add boilerplate.
19231         
19232         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
19233         returns the UI parent anyway, and we need special handling to
19234         implement the GetTarget method in the face of it.  Also, implement
19235         Select().
19236
19237         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
19238         a root grid item, and use that instead of PropertyGrid.grid_items.
19239         Also, make use of TypeConverters (and add limitted support for
19240         ICustomTypeDescriptors) when initially populating the grid.
19241         Arrays now show up more or less properly.
19242
19243 2006-11-08  Chris Toshok  <toshok@ximian.com>
19244
19245         * Application.cs: set the modal dialog to non modal after we close
19246         it.  Fixes bug #79866.
19247
19248 2006-11-08  Jackson Harper  <jackson@ximian.com>
19249
19250         * TextControl.cs: When combining lines carry over the line end
19251         style from the end line.
19252         - Invalidate the selected area when setting it, if it is visible.
19253         * TextBoxBase.cs: Only rich text box can do full line selects.
19254         - Make sure to set the cursor position when there is a click,
19255         otherwise two clicks in separate areas could cause a large chunk
19256         to be selected.
19257
19258 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19259
19260         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
19261         Fixes #79863.
19262
19263 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19264
19265         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
19266         time. Remove tooltips when ToolButton click events.  Fixes #79856.
19267
19268 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19269
19270         * MenuAPI.cs: Ignore right click for menu actions and fixes
19271         menu border when clicked.  Fixes #79846.
19272
19273 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19274
19275         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
19276         MouseState after create wParam for message, this fixes mouse button 
19277         equal none in mouse up events.
19278         
19279 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
19280
19281         * Control.cs : Focus() now calls Select to set the Container's
19282         Active Control and to give it focus. To avoid infinite recursion
19283         (because ActiveControl also calls Focus at one point), a check 
19284         is made in Focus with the help of a new internal variable
19285         is_focusing.
19286
19287 2006-11-07  Mike Kestner  <mkestner@novell.com>
19288
19289         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
19290         if there's a selection.  Fixes #79849.
19291
19292 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
19293
19294         * PropertyGrid.cs: Avoid fixed height of help description label.
19295         Fixes part of bug #79829.
19296
19297 2006-11-07  Chris Toshok  <toshok@ximian.com>
19298
19299         * XplatUIX11.cs: fix #79790 again, by using the
19300         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
19301
19302 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19303
19304         * ToolBar.cs: Fix left click checking.
19305
19306 2006-11-07  Chris Toshok  <toshok@ximian.com>
19307
19308         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
19309
19310 2006-11-07  Chris Toshok  <toshok@ximian.com>
19311
19312         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
19313         PropertyManager unit tests.
19314
19315         * PropertyManager.cs: make property_name internal.
19316
19317 2006-11-07  Chris Toshok  <toshok@ximian.com>
19318
19319         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
19320         pass a unit test.  Also, don't set image_index to anything in
19321         response to setting the ImageList property.
19322
19323 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
19324
19325         * ToolBar.cs: Ignore click events when mouse button is not a
19326         left button, only accepts other button for dropdown menus.  
19327         Fixes #79854.
19328
19329 2006-11-07  Chris Toshok  <toshok@ximian.com>
19330
19331         * DataGrid.cs: make the back and parent row buttons a little less
19332         ugly.
19333
19334 2006-11-07  Jackson Harper  <jackson@ximian.com>
19335
19336         * TextBoxBase.cs: When converting to Text don't put line breaks in
19337         for soft line breaks.
19338         * TextControl.cs: There is an initial "fake" line in the document,
19339         this is now a soft break line, so that an extra line feed doesn't
19340         get added to the end of documents.
19341
19342 2006-11-07  Chris Toshok  <toshok@ximian.com>
19343
19344         [ fix bug #79778 ]
19345         
19346         * CurrencyManager.cs: if the list is readonly, don't bother
19347         checking if IBindingList.AllowNew is true.
19348
19349         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
19350         for non-DataRowView datasources..  or rather, make it not crash.
19351         (DataGridPaintRelationRow): make sure we limit the row painting to
19352         the area not covered by the row header, and make our cell width at
19353         least large enough to cover the relation area.  This allows grids
19354         that have relations but no rows to render correctly.
19355         (DataGridPaintRowContents): same type of changes here.
19356         (SetDataSource): move back to always calling
19357         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
19358         navigating back through relations.
19359         (HitTest): handle the case where we have no cells but have
19360         relations.  Right now we generate a hit in cell 0 of whatever the
19361         row is, not sure if this is strictly correct, but it works for our
19362         purposes.
19363         
19364         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
19365         bother doing anything.
19366
19367 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
19368
19369         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
19370         early version of StatusStrip.  Not responsible for eaten
19371         application or firstborn children.
19372
19373 2006-11-06  Chris Toshok  <toshok@ximian.com>
19374
19375         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
19376         call GetTabRect with a -1 index.  Fixes #79847.
19377
19378 2006-11-06  Jackson Harper  <jackson@ximian.com>
19379
19380         * TreeNodeCollection.cs: Update scrollbars after clearing.
19381
19382 2006-11-06  Chris Toshok  <toshok@ximian.com>
19383
19384         * NumericUpDown.cs: fix the ToString method for some unit test
19385         love.
19386
19387 2006-11-06  Chris Toshok  <toshok@ximian.com>
19388
19389         * PropertyGrid.cs:
19390         - set the initial SelectedGridItem if we can.
19391
19392         - Exclude non-mergable properties only if we're merging > 1
19393         object.  Merging 1 object isn't really merging, obviously.
19394
19395         - Handle PropertySort.NoSort just like Alphabetical, which is
19396         wrong of course, but at least gets things on the screen.
19397         
19398         * PropertyGridView.cs:
19399         - Add method "FindFirstItem" which finds the first property grid
19400         item, so we can select it by default.
19401
19402         - make use of GridEntry.CanResetValue.
19403
19404         - Don't call RedrawBelowItemOnExpansion here anymore, the
19405         individual GridEntry's will do that.
19406
19407         - Remove the ITypeDescriptorContextImpl internal class.
19408         
19409         * GridEntry.cs:
19410         - this class needs to implement ITypeDescriptorContext, as it's
19411         what MS's PropertyDescriptorGridEntry does, which means we can
19412         remove the ITypeDescriptorContextImpl internal class from
19413         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
19414
19415         - keep a reference to our PropertyGridView, and move the call to
19416         RedrawBelowItemOnExpansion here from PGV.  This means
19417         programmaticly setting Expanded actually does something visible.
19418
19419         - add a CanResetValue() function which takes into account our
19420         possibly multiple "selected_objects" in the merged case.  Shifting
19421         PropertyGridView to use this method fixes another unreported
19422         crasher found running the test for #79829.
19423
19424         - when Top or Bounds is updated, make sure the PropertyGridTextBox
19425         is updated to reflect this.
19426
19427         * CategoryGridEntry.cs: the ctor takes the PGV now.
19428         
19429 2006-11-06  Jackson Harper  <jackson@ximian.com>
19430
19431         * TextControl.cs: These are 1 based.
19432         * TextBoxBase.cs: When setting the selected text, don't change the
19433         selected text tags, this is done by ReplaceText, just position the
19434         cursor at the end of the new text.
19435
19436 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19437
19438         * ListView.cs: Allow label edit only when, when LabelEdit is
19439           set to true.
19440
19441 2006-11-06  Jackson Harper  <jackson@ximian.com>
19442
19443         * TextControl.cs: If a suitable wrapping position isn't found,
19444         just wrap right in the middle of a word.
19445
19446 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
19447
19448         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
19449           bug #79820.
19450
19451 2006-11-06  Jackson Harper  <jackson@ximian.com>
19452
19453         * TreeView.cs: Can't use the VisibleCount property when setting
19454         scrollbar heights, because this doesn't take into account whether
19455         or not the horz scrollbar just came visible.
19456
19457 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
19458
19459         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
19460         activated.  Fixes #79369, #79832.
19461
19462 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
19463
19464         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
19465           had to remove support for links that point to a directory. FileInfo
19466           returns no usefull information (means, the directory they point to)
19467           for such links. Replaced some empty string ("") with String.Empty.
19468
19469 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19470
19471         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
19472         NullReferenceException when attempting to remove node that is not in
19473         collection. Throw NullReferenceException when null is passed to 
19474         Remove. Allow first element of the collection to be removed. Fixes
19475         bug #79831.  In GetEnumerator ().Current return null if positioned 
19476         before the first element of the collection. In GetEnumerator ().Reset,
19477         position before first element of the collection.
19478
19479 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
19480
19481         * PropertyGrid.cs: To match MS, remove default title and description
19482         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
19483         buttons.
19484
19485 2006-11-04  Chris Toshok  <toshok@ximian.com>
19486
19487         * Theme.cs: add a Clamp method, just for kicks.
19488
19489         * ThemeWin32Classic.cs: clamp all color components to [0..255].
19490
19491 2006-11-04  Chris Toshok  <toshok@ximian.com>
19492
19493         * Form.cs: if the form isn't visible, Close() does nothing.
19494
19495 2006-11-03  Chris Toshok  <toshok@ximian.com>
19496
19497         * Form.cs (Close): if the form is modal, don't Dispose of it, only
19498         Hide it.
19499         (WndProc): don't Dispose after handling the WM_CLOSE message.
19500
19501         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
19502         them as such, instead of using casts from Control to Form.  Also,
19503         don't Dispose of the modal dialog when we fall out of the loop -
19504         Close() it instead.
19505
19506         fixes bug #79813.
19507
19508 2006-11-03  Chris Toshok  <toshok@ximian.com>
19509
19510         * Control.cs (Dispose): only go through the dispose thing if we're
19511         @disposing, and we haven't already been disposed.  Fixes bug
19512         #79814.
19513
19514         * Form.cs: no reason to call "base.Dispose()" here instead of
19515         "Dispose()".
19516
19517 2006-11-03  Mike Kestner  <mkestner@novell.com>
19518
19519         * ComboBox.cs : use ToString instead of casts in AddItem for
19520         sorting functionality.  Fixes #79812.
19521
19522 2006-11-03  Chris Toshok  <toshok@ximian.com>
19523
19524         * Application.cs: pave the way for actually using the thread
19525         exception dialog.  it's ifdefed out at the moment.
19526
19527 2006-11-03  Chris Toshok  <toshok@ximian.com>
19528
19529         * ThreadExceptionDialog.cs: until we get a better layout, actually
19530         hide the details textbox and label when we shouldn't see them.
19531
19532 2006-11-03  Jackson Harper  <jackson@ximian.com>
19533
19534         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
19535         multiline textboxes anymore.  This method also determines the
19536         width/height of a textboxes canvas area.
19537         - Sorta a revert of the last patch.  For multiline just position
19538         the controls, then bail.  This way the scrollbar width won't be
19539         altered.
19540
19541 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
19542
19543         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
19544         it dont need.  Fixes #79537.
19545
19546 2006-11-02  Jackson Harper  <jackson@ximian.com>
19547
19548         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
19549         send the status after firing the DndOver event.
19550
19551 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19552
19553         * TrackBar.cs: Now orientation only switches height / width if
19554         the control's handle is created (Win32 does it like this). Also 
19555         fixed a typo in ToString() for a test to pass, changed the 
19556         exception thrown in set_LargeChange and set_SmallChange to 
19557         match Win32 behaviour, and added TrackBar tests to the unit 
19558         tests.
19559
19560 2006-11-02  Chris Toshok  <toshok@ximian.com>
19561
19562         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
19563         not _NET_WM_STATE_NO_TASKBAR.
19564
19565 2006-11-02  Jackson Harper  <jackson@ximian.com>
19566
19567         * TextControl.cs: Increment count by one, since in the update view
19568         count - 1 is used.
19569
19570 2006-11-02  Jackson Harper  <jackson@ximian.com>
19571
19572         * TextBoxBase.cs: Use client rectangle not bounds for checking if
19573         the mouse is in the client rectangle (duh).
19574
19575 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19576         
19577         * TrackBar.cs: Fixed trackbar jumping around when clicking
19578         on it - the trackbar was not detecting correctly at which
19579         side of the thumb the click was done. (fixes #79718)
19580
19581 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
19582
19583         * ListBox.cs: scroll visible area when change SelectedIndex to
19584         a non visible area.  Fixes #79481.
19585
19586 2006-11-01  Jackson Harper  <jackson@ximian.com>
19587
19588         * TextControl.cs: When replacing the selection move the selection
19589         start/end/anchor to the end of the new text.
19590
19591 2006-11-01  Jackson Harper  <jackson@ximian.com>
19592
19593         * XplatUIWin32.cs: When setting the parent change the controls
19594         visibility to it's visibility flag, not to it's old parents
19595         visibility (.Visible walks the parent chain).
19596
19597 2006-11-01  Chris Toshok  <toshok@ximian.com>
19598
19599         * XplatUIX11.cs: revert the #79790 fix, as the simple.
19600         XSetTransientForHint fix breaks paint .net's tool windows.  more
19601         work needed for that one.
19602
19603 2006-11-01  Chris Toshok  <toshok@ximian.com>
19604
19605         * ScrollBar.cs: throw ArgumentException instead of Exception in
19606         LargeChange/SmallChange setters.  fixes unit tests.
19607
19608 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
19609
19610         * ContainerControl.cs: reverted rev.67183 (which was itself
19611         a reversion of rev.66853... eh).
19612         
19613         * Control.cs: Fixes Reflector hang by changing Focus() call
19614         to what it was before rev.66643 (calling Select() here sets 
19615         ActiveControl, which in some situations calls back Focus and 
19616         eventually does a stack overflow). Temp fix.    
19617         Changes to GetNextControl() to not look for children to select when
19618         parent cannot be selectable (so it looks for siblings instead)  
19619         
19620 2006-10-31  Mike Kestner  <mkestner@novell.com>
19621
19622         * CheckedListBox.cs : off by one error in returned index from
19623         ObjectCollection.Add.  Fixes #79758.
19624
19625 2006-10-31  Chris Toshok  <toshok@ximian.com>
19626
19627         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
19628         calls for the textbox/spinner, to keep from recursing to the point
19629         where we crash.  Fixes #79760.
19630
19631 2006-10-31  Chris Toshok  <toshok@ximian.com>
19632
19633         * ListControl.cs (set_SelectedValue): don't throw exceptions on
19634         null/"" value, just return.  matches ms's behavior and fixes some
19635         failing tests.
19636
19637 2006-10-31  Chris Toshok  <toshok@ximian.com>
19638
19639         * Control.cs (set_Capture): make a logic a little easier to
19640         follow.
19641
19642         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
19643         if it's being destroyed.  A necessary fix surely, but a bandaid
19644         also, to fix the stuck capture problem in bug #78413.
19645
19646 2006-10-31  Chris Toshok  <toshok@ximian.com>
19647
19648         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19649         convention of clearing hwnd.ClientRect when we set the
19650         width/height (so it'll be recalculated by Hwnd).
19651
19652 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
19653
19654         * ContainerControl.cs: reversed Contains check from
19655         ActiveControl due to hanging problems. This fix
19656         partly regresses #79667 (button does not have
19657         initial focus), so this might be a symptom for 
19658         a larger parenting problem (set_ActiveControl
19659         is being called but the child control does
19660         not have the parent set yet?)   
19661         
19662 2006-10-31  Mike Kestner  <mkestner@novell.com>
19663
19664         * MenuAPI.cs : fix keynav when menu is click activated.
19665
19666 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
19667
19668         * ToolStrip*: Version 0.2.
19669
19670         * MenuStrip.cs: Version 0.1.
19671
19672         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19673
19674 2006-10-30  Chris Toshok  <toshok@ximian.com>
19675
19676         [ fixes the oversized notify icon issue in bug #79745 ]
19677         
19678         * NotifyIcon.cs: scale the icon down to the size we're given by
19679         the XplatUI layer (this would be faster if we did it once instead
19680         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
19681         since it's never invoked.
19682
19683         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19684         pixels high by default, so let's hardcode our systray icon to that
19685         size.  The SYSTEM_TRAY protocol should really have a way for
19686         client apps to query for the correct icon size.. but oh well.  A
19687         couple of patches to deal with the screwy client_window ==
19688         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19689         instance, and also make sure we don't XSelectInput twice).
19690
19691 2006-10-30  Chris Toshok  <toshok@ximian.com>
19692
19693         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19694         recreating forms.  Control recreation is the bane of my existence.
19695         Fix it in a way that keeps everyone happy.
19696
19697 2006-10-30  Chris Toshok  <toshok@ximian.com>
19698
19699         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19700         just non-CHILD ones.  otherwise sometimes scrollbars end up with
19701         client_windows not being resized to the proper size (ReportBuilder
19702         shows this extremely well).
19703
19704 2006-10-30  Chris Toshok  <toshok@ximian.com>
19705
19706         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19707         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
19708         showing up in the gnome taskbar.  Fixes bug #79790.
19709
19710 2006-10-30  Chris Toshok  <toshok@ximian.com>
19711
19712         * ApplicationContext.cs: guard against a NRE.
19713
19714         * Application.cs: null out the old MainForm for the context, so we
19715         don't try to use it again once it's disposed.  Fixes bug #79783.
19716
19717 2006-10-30  Chris Toshok  <toshok@ximian.com>
19718
19719         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19720         BindingContext, set the data source directly, otherwise do the
19721         lazy approach - the actual ListManager will be created when we get
19722         a BindingContext. Fixes bug #79700.
19723
19724 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
19725
19726         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19727           XplatUIX11.cs: Remove old 2 parameter SetVisible.
19728
19729         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
19730
19731 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
19732
19733         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
19734         of SetVisible that allows a window to be shown, but not activated.
19735         This is needed on Windows for MenuStrip, and can probably be used
19736         with MainMenu and ComboBox to fix the focus stealing issues on
19737         Windows.
19738
19739         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
19740
19741 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
19742
19743         * PictureBox.cs: Fix the output of the ToString method.
19744
19745 2006-10-29  Chris Toshok  <toshok@ximian.com>
19746
19747         * Control.cs (get_TopLevelControl): fix bug #79781.
19748
19749 2006-10-29  Chris Toshok  <toshok@ximian.com>
19750
19751         * ListControl.cs (set_DataSource): throw Exception here, not
19752         ArgumentException, to match MS behavior.
19753
19754 2006-10-29  Chris Toshok  <toshok@ximian.com>
19755
19756         * Form.cs: remove the try-catch's around calls to GetWindowState.
19757         We can just check the return value.
19758
19759         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
19760         Instead return -1.
19761
19762         * XplatUI.cs: Add note about additional return value for
19763         GetWindowState.
19764
19765 2006-10-29  Chris Toshok  <toshok@ximian.com>
19766
19767         * Control.cs (CreateHandle): when we create our handle, we also
19768         create the handles of our child controls.  Fixes one of the
19769         Control unit tests (CH11).
19770
19771 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
19772
19773         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
19774
19775 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
19776
19777         * ThemeClearlooks.cs: A little speedup.
19778
19779 2006-10-27  Chris Toshok  <toshok@ximian.com>
19780
19781         * Control.cs: implement Control.FromChildHandle in a way that
19782         matches the docs (and fixes the failed test.)
19783
19784 2006-10-27  Chris Toshok  <toshok@ximian.com>
19785
19786         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
19787         comments).
19788
19789         * DataGrid.cs: implement ResetForeColor such that the tests
19790         succeed.
19791         
19792 2006-10-27  Chris Toshok  <toshok@ximian.com>
19793
19794         * ToolBarButton.cs: setting text/tooltiptext to null results in it
19795         being set to "".  Fixes bug #79759.
19796
19797 2006-10-27  Jackson Harper  <jackson@ximian.com>
19798
19799         * TextControl.cs: We need to clear the entire selection area when
19800         setting the start, otherwise multiline selections are still
19801         visible.
19802
19803 2006-10-26  Chris Toshok  <toshok@ximian.com>
19804
19805         * PropertyGridView.cs: 
19806
19807         - ifdef all the code specific to the double
19808         buffer case, and provide some alternatives in the non-doublebuffer
19809         code, which makes heavy use of XplatUI.ScrollWindow to move things
19810         around without having to invalidate (and cause flicker).  There
19811         are still some drawing problems in the non-doublebuffered case, so
19812         DOUBLEBUFFER is defined by default.
19813
19814         - Fix the way dropdowns are handled.  now we explicitly watch for
19815         the events which might cause the dropdown to close, and break out
19816         of the nested event loop there.  This gets rid of all Capture
19817         code, at the expense of the Msg special casing.  Seems to work,
19818         though, and fixes bug #79743.
19819
19820 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
19821         * Control.cs: SetIsRecreating now recreates implicitly added
19822         child controls as well. Finally fixes #79629. The flag passed to 
19823         SetIsRecreating has also been removed since it wasn't used.
19824         
19825 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19826
19827         * PageSetupDialog.cs: Clean some code, fix some bits, 
19828         add some checks, and add a printer sub-dialog.
19829
19830 2006-10-26  Chris Toshok  <toshok@ximian.com>
19831
19832         * PropertyGrid.cs: make set_SelectedObject call
19833         set_SelectedObjects, and move the duplicate logic to the
19834         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
19835
19836         * PropertyGridView.cs: hide the textbox when we get a
19837         SelectedObjectsChanged event.
19838
19839         Fixes bug #79748.
19840
19841 2006-10-26  Chris Toshok  <toshok@ximian.com>
19842
19843         * PropertyGridView.cs: deal with the type converter not supporting
19844         GetStandardValues() or GetStandardValues() returning null, which
19845         is does in the default case.  Fixes #79742.
19846
19847 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
19848
19849         * CheckedListBox.cs: nunit no longer crashes when selecting 
19850         Project/Edit menu option
19851         
19852 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
19853
19854         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
19855         is no menu selected. fixes #79739
19856
19857 2006-10-25  Chris Toshok  <toshok@ximian.com>
19858
19859         * PropertyGridView.cs: factor out the splitter invalidation code
19860         into the SplitterPercent setter, and for kicks implement the
19861         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
19862         amount in either direction.
19863
19864 2006-10-25  Chris Toshok  <toshok@ximian.com>
19865
19866         * PropertyGridView.cs: do some cleanup of the brush used to draw
19867         text - read only fields should be grayed out.  not sure how to do
19868         this with the textbox, though.  but the textbox's should also be
19869         readonly now at least.  Also, hide/show the textbox when resizing
19870         the control.
19871         
19872         * CursorConverter.cs: use System.Reflection when getting the
19873         properties of Cursors, as TypeDescriptor.GetProperties isn't
19874         returning static properties.
19875
19876 2006-10-25  Chris Toshok  <toshok@ximian.com>
19877
19878         * PropertyGridView.cs: factor out the up/down handling, and reuse
19879         it for page up/down.  also add End/Home support.
19880
19881 2006-10-25  Chris Toshok  <toshok@ximian.com>
19882
19883         * PropertyGridView.cs:
19884
19885         - ensure the selected grid item is visible in the scrolled area,
19886         fixes bug #79572.
19887
19888         - fix Keys.Down handling when you're on the last item in the
19889         propertygrid.
19890
19891 2006-10-25  Mike Kestner  <mkestner@novell.com>
19892
19893         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
19894         clicks too.  Fixes #79725.
19895
19896 2006-10-24  Chris Toshok  <toshok@ximian.com>
19897
19898         * PropertyGrid.cs: use property.Converter instead of
19899         TypeDescriptor.GetConverter(property.PropertyType), so we catch
19900         TypeConverters declared on the property as well as on the
19901         PropertyType.  Fixes bug #79678.
19902
19903 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
19904
19905         * MimeIcon.cs, Mime.cs:
19906           Fallback to the default platform handler if no shared mime info
19907           stuff exists (fixes #79693).
19908
19909 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19910         * ContainerControl.cs: Incorrect contains check in ActiveControl 
19911         from previous fix (duh).
19912
19913 2006-10-20  Chris Toshok  <toshok@ximian.com>
19914
19915         * PropertyGridView.cs: the dropdown should be MIN(number of items
19916         in list, 15).  Fixes #79551.
19917
19918 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19919         Fixes #79384, #79394, #79652, #79667
19920         * Application.cs: 
19921         
19922         - Modal windows are now destroyed in the proper order for windows
19923         
19924         * ContainerControl.cs:
19925         
19926         - ActiveControl setter has more conditions on when to return:
19927                 - if we're reselecting the active control, but it actually
19928                 didn't have focus (window hidden or some such), it runs
19929                 - if the active control being selected doesn't actually 
19930                 exist in the container, it returns
19931         
19932         * Form.cs
19933         
19934         - The ShowDialog now gets the current form as the owner when
19935         invoking without parameters, and correctly activates the owner 
19936         when returning
19937         
19938         * MessageBox.cs
19939         
19940         - MessageBox now catches the Escape key to exit
19941
19942 2006-10-20  Chris Toshok  <toshok@ximian.com>
19943
19944         * PropertyGridView.cs: fix a number of issues (bug #78565, and
19945         most of bug #79676):
19946
19947         - you can navigate around the property grid with the arrow keys.
19948
19949         - the dropdown is sized properly when the pg has a vertical
19950         scrollbar.
19951
19952         - fix the indentation for subentries, and properly select the
19953         entire label rect.
19954
19955         - fix the gray bar's drawing (only draw it to the last element,
19956         not for the height of the control.  Also make sure we draw that
19957         last horizontal grid line.
19958
19959         - use the same mechanism the datagrid uses wrt the editing textbox
19960         when scrolling/resizing/etc.  Namely, we hide it first, do the
19961         operation, then show it again (if it's still visible).
19962         
19963         - aggressively remove a lot of unnecessary refreshes (and also
19964         calls to Invalidate(). call more limited variants, and only redraw
19965         what we need.)
19966         
19967         * PropertyGrid.cs:
19968
19969         - when we're populating the merged collection, fill in the UI
19970         parent with either the passed in item, or the category item we
19971         create.
19972
19973         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19974
19975         * GridItem.cs: drop some fully qualified names.
19976         
19977         * GridEntry.cs: add a "UIParent", which is basically the parent
19978         treenode.
19979
19980         * GridItemCollection.cs: add an IndexOf method.
19981
19982 2006-10-20  Mike Kestner  <mkestner@novell.com>
19983
19984         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
19985         a working win32 NC invalidation mechanism, we can't invalidate
19986         menus.  [Fixes #79705]
19987
19988 2006-10-20  Mike Kestner  <mkestner@novell.com>
19989
19990         * ListBox.cs : don't update the VScrollbar if the list is empty,
19991         just hide it.  [Fixes #79692]
19992
19993 2006-10-20  Jackson Harper  <jackson@ximian.com>
19994
19995         * RichTextBox.cs: Handle some special chars better, and don't skip
19996         the entire group when we encounter a special char that we don't
19997         handle correctly.
19998
19999 2006-10-18  Chris Toshok  <toshok@ximian.com>
20000
20001         * PropertyGridView.cs: address a number of issues from bug #79676,
20002         mostly of the cosmetic variety.
20003
20004         - The highlight rectangle for indented items not extends all the
20005         way to the left.
20006
20007         - Indented items aren't indented so much.
20008
20009         - the dropdown is properly sized width-wise if the pg has a
20010         vertical scrollbar.
20011
20012 2006-10-18  Chris Toshok  <toshok@ximian.com>
20013
20014         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
20015         systray stuff is rather convoluted to begin with.
20016
20017         systray icons are a single window for some reason (that I haven't
20018         figured out yet), and for them, client_window == whole_window.
20019         Given the way the tests are structured elsewhere to determine
20020         which paints are pending (client vs. nc), that situation will
20021         always yield PAINT, not NCPAINT.  So, if we have a pending
20022         nc_expose and no pending expose, remove the hwnd from the paint
20023         queue, and also set nc_expose_pending to false, to keep us from
20024         blocking further expose's adding the hwnd to the paint queue.
20025
20026         phew.  like i said, a rather convoluted change.  Fixes the
20027         notifyicon repaint issues in bug #79645.
20028
20029 2006-10-18  Chris Toshok  <toshok@ximian.com>
20030
20031         * Form.cs: when getting the backcolor of the form, don't get
20032         base.BackColor, as this allows parents to influence the background
20033         color.  This breaks mdi forms.  Instead, if the background_color
20034         is empty, return the default.
20035
20036 2006-10-18  Chris Toshok  <toshok@ximian.com>
20037
20038         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
20039         to being private instead of internal static.
20040
20041         * Control.cs: remove all the stupid ParentWaitingOnRecreation
20042         crap, it wasn't working for more deeply nested controls anyway,
20043         and we already have the is_recreating flag - use that instead.
20044         Before calling DestroyHandle in RecreateHandle, recurse through
20045         the control tree setting it to true.  this returns the recreate
20046         code to much of its original simplicity, while now guaranteeing we
20047         actually recreate everything we're supposed to.  This change gets
20048         fyireporting actually showing mdi children.
20049
20050 2006-10-17  Chris Toshok  <toshok@ximian.com>
20051
20052         * Form.cs: remove some debug spew, and collapse some duplicate
20053         code at the end of SetClientSizeCore.
20054
20055         * XplatUIX11.cs: 
20056         - add some more debug spew here too wrt Destroy handling.
20057         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
20058         in Control's handling of WM_DESTROY.
20059         - Remove the handling of zombie window DestroyNotifies from the
20060         event loop - we don't need it.  Now the only DestroyNotifies we
20061         actually handle are ones generated by X.
20062         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
20063         match gtk's (functioning) handling of this. This keep metacity
20064         from leaving droppings in the form of wm borders with no window
20065         contents all over the place.
20066
20067         * Control.cs:
20068         - add a bunch of debug spew wrt control recreation.
20069         - fix a bug where we weren't tracking Visible properly on
20070         recreated hwnds.
20071         - fixed the WM_PAINT double buffer handling to support re-entrant
20072         calls (yes, i know it's gross, but it's happening to us).
20073
20074 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20075         * ThemeWin32Classic.cs: changed drawing of selected days
20076         to make them look better.
20077
20078 2006-10-16  Chris Toshok  <toshok@ximian.com>
20079
20080         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
20081         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
20082
20083         * XplatUIX11.cs: move away from using hwnd.client_dc and
20084         hwnd.non_client_dc and on to a stack of dc's (and in window's
20085         case, PAINTSTRUCT's), so we can deal with nested Paint calls
20086         without puking or not disposing of Graphics objects.
20087
20088         * XplatUIOSX.cs: same.
20089
20090         * XplatUIWin32.cs: same.
20091
20092 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20093
20094         * FileDialog.cs: Don't call on_directory_changed inside
20095           OnSelectedIndexChanged (it changes the SelectedIndex too).
20096           Instead move it to OnSelectionChangeCommitted.
20097
20098 2006-10-13  Chris Toshok  <toshok@ximian.com>
20099
20100         * XplatUIX11.cs: more Destroy work.  the current code does the
20101         following things, in order:
20102
20103         1. Enumerates all handles of all controls at or below the one
20104         being destroyed, in pre-order.  As it is doing this, it marks the
20105         handles as zombie and clears all references to them.
20106         
20107         2. calls XDestroyWindow on the window passed in.
20108
20109         3. SendMessage's WM_DESTROY to all he handles in the accumulated
20110         list.
20111
20112 2006-10-13  Chris Toshok  <toshok@ximian.com>
20113
20114         * XplatUIX11.cs: set hwnd.zombie to true before calling
20115         SendMessage (WM_DESTROY).  this keeps us from marking the new
20116         window a zombie, and also keeps us from calling sendmessage at
20117         all.
20118
20119 2006-10-13  Jackson Harper  <jackson@ximian.com>
20120
20121         * TextControl.cs: Do not show the caret and selection at the same
20122         time.  Reduces ugliness by 35%.
20123
20124 2006-10-13  Chris Toshok  <toshok@ximian.com>
20125
20126         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
20127         zombie after we do the recursive call, so we actually do call
20128         SendMessage on the children controls.
20129         (GetMessage): if we find a pending paint event for a zombie hwnd,
20130         remove the hwnd from the paint queue, or else it will always be
20131         there (and we'll effectively loop infinitely)
20132
20133 2006-10-13  Mike Kestner  <mkestner@novell.com>
20134
20135         * MenuItem.cs : add Selected format under keynav too.
20136         Fixes #79528.
20137
20138 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
20139
20140         * PropertyGrid.cs: Fixed some NRE's and small difference between our
20141         implementation and that of MS.
20142
20143 2006-10-13  Chris Toshok  <toshok@ximian.com>
20144
20145         * Control.cs (OnInvalidated) only futz with the invalid_region if
20146         the control is double buffered.  this fixes the apparent hang in
20147         the ListView unit tests.  Someone needs to make the
20148         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
20149
20150 2006-10-13  Chris Toshok  <toshok@ximian.com>
20151
20152         * PropertyGridView.cs:
20153
20154         - do a little refactoring so that only one place calls
20155         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
20156         else call that.  Also make it Refresh, since there are redraw bugs
20157         otherwise (we should take a look at that...)
20158
20159         - do a little more refactoring work to share the body of code
20160         involved with the drop down.  it was duplicated in the code
20161         dealing with the listbox handling and in the code dealing with the
20162         UITypeEditors.
20163
20164         - add a Capture to the dropdown form's control once it's
20165         displayed, and add a MouseDown handler that checks to make sure
20166         the position is inside the control.  If it's not, close the
20167         dropdown.  This fixes #78190.
20168
20169         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
20170         if the value is different than the initial value.
20171         
20172 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
20173
20174         * Control.cs: see #78650
20175         - Fixed GetNextControl for several cases:
20176                 - Changed FindFlatForward to return 
20177                 correct sibling control when more than one
20178                 control has same TabIndex as the currently 
20179                 focused one.
20180                 - Changed FindFlatBackward to loop children
20181                 from last to first and apply same logic as in
20182                 FindFlatForward
20183                 - Changed FindControlForward to search for
20184                 children when control is not a container
20185                 but has children, or search for siblings if
20186                 control is a container...
20187                 - Changed FindControlBackward   to continue
20188                 searching for child controls when hitting 
20189                 Panel-like parents
20190                 
20191         - Fixed Focus method to update ActiveControl
20192         (FocusTest.FocusSetsActive failure)
20193         
20194         * TabControl.cs:
20195         - Focus rectangle now refreshes when gaining
20196         or losing focus
20197         - Removed grab for Tab key on IsInputKey that 
20198         was keeping tab navigation from working (#78650)
20199
20200 2006-10-13  Chris Toshok  <toshok@ximian.com>
20201
20202         * PropertyGridView.cs:
20203         - Rewrite SetPropertyValue to loop over SelectedGridItem's
20204         SelectedObjects.
20205
20206         - Deal with GridItem.Value == null a few places.
20207
20208         * PropertyGrid.cs: 
20209         - replace the PopulateGridItemCollection with a pair of methods
20210         which compute the intersection of all the properties in the
20211         SelectedObjects array.  Fixes #79615.
20212
20213         - Throw ArgumentException from set_SelectedObjects if there's a
20214         null in the array.
20215
20216         - Add GetTarget method which can be used to traverse up the
20217         GridItem.Parent chain.  It depends on the assumption that
20218         selected_objects for different GridEntries are always in the same
20219         order (a safe assumption).  Use this method and loop over all the
20220         selected objects in the entry when calling RemoveValueChanged and
20221         AddValueChanged.
20222         
20223         * GridEntry.cs: Make this handle multiple selected objects.
20224         .Value returns null if not all the selected objects share the same
20225         value.
20226
20227 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
20228         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
20229           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
20230           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
20231           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
20232           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
20233         add additional functionality.
20234
20235 2006-10-12  Mike Kestner  <mkestner@novell.com>
20236
20237         * ErrorProvider.cs : new ToolTipWindow ctor sig.
20238         * HelpProvider.cs : new ToolTipWindow ctor sig.
20239         * ToolTip.cs : remove ToolTip param from Window sig since it is
20240         not used.
20241         * ToolBar.cs : add tooltip support.  Fixes #79565.
20242
20243 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20244
20245         * ComboBox.cs: move the events in set_SelectedIndex to 
20246         after the call to HighlightIndex in order to avoid 
20247         possible recursion and subsequent problems with the call
20248         to HighlightIndex and include a range check in 
20249         set_HighlightIndex. Fixes #79588
20250         
20251 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20252
20253         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
20254         to ui thread's settings instead of sunday. 
20255         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
20256
20257 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
20258
20259         * DateTimePicker.cs
20260         * MonthCalendar.cs
20261         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
20262         and implement missing functionality (selecting different parts 
20263         of the date and edit them individually with the keyboard).
20264         
20265 2006-10-11  Chris Toshok  <toshok@ximian.com>
20266
20267         * Control.cs (OnInvalidated): fix NRE relating to last change.
20268
20269 2006-10-11  Chris Toshok  <toshok@ximian.com>
20270
20271         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
20272         atoms in _NET_WM_STATE here if the window is maximized.  We need
20273         to do this because we're *replacing* the existing _NET_WM_STATE
20274         property, so those atoms will be lost otherwise, and any further
20275         call to GetWindowState will return Normal for a window which is
20276         actually maximized.  Fixes #79338.
20277
20278 2006-10-11  Jackson Harper  <jackson@ximian.com>
20279
20280         * TextControl.cs: Special case for setting selection end to
20281         selection start, we basically kill the anchor.
20282         - some todo comments.
20283
20284 2006-10-11  Chris Toshok  <toshok@ximian.com>
20285
20286         * Control.cs: switch to using an "invalid_region" to track which
20287         parts of the image buffer need updating.  This is more code than
20288         the simple fix from r66532.  That version just attempted to always
20289         fill the entire buffer on redraw, which turns out to be
20290         inefficient when invalidating small rectangles.  This version
20291         simply adds the invalid rectangle to the invalid region.  When we
20292         get any WM_PAINT message we see if it can be filled using the
20293         image buffer, and if it can't (if the paint event's clip rectangle
20294         is visible in the invalid region) we first fill the image buffer.
20295         So, the image buffer is still a cache, we just fill it lazily.
20296
20297         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
20298         need it any longer.
20299
20300 2006-10-11  Chris Toshok  <toshok@ximian.com>
20301
20302         * XplatUIX11.cs (SetWindowPos): we need to update both position as
20303         well as size after calling XMoveResizeWindow.  This keeps us from
20304         ignoring future SetWindowPos calls.  Fixes the disappearing
20305         DateTimePicker in the ToolBarDockExample from bug #72499.
20306
20307 2006-10-11  Chris Toshok  <toshok@ximian.com>
20308
20309         * TextBoxBase.cs: reorder things a bit when it comes to
20310         resizing-causing-recalculation.  we were recalculating the
20311         document when our position was changed, which shouldn't happen.
20312         We only care about size changes.  Clear up some more redundant
20313         recalculation calls while I'm at it.  This makes the toolbar dock
20314         example snappy when you're just dragging toolbars around (since it
20315         causes a relayout whenever you move one.)
20316
20317 2006-10-11  Chris Toshok  <toshok@ximian.com>
20318
20319         * ToolBarButton.cs (get_Rectangle): this only returns
20320         Rectangle.Empty if Visible == false, or Parent == null.
20321         Parent.Visible doesn't matter.
20322
20323 2006-10-10  Chris Toshok  <toshok@ximian.com>
20324
20325         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
20326         by .net 1.1, so switch to an internal method instead.
20327
20328 2006-10-10  Chris Toshok  <toshok@ximian.com>
20329
20330         * Control.cs (WM_PAINT): when a control is double buffered we draw
20331         initially to the ImageBuffer and then copy from there.  But when a
20332         parent control which has child controls is double buffered, the
20333         initial drawing doesn't encompass the entire ClientRectangle of
20334         the parent control, so we end up with uninitialized bits (this is
20335         easily seen by dragging the top toolbar in
20336         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
20337         manually set the ClipRectangle of the paint_event (only the one we
20338         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
20339         of the nastiness in bug #72499.
20340
20341         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
20342         which we use in Control.cs's WM_PAINT handling.
20343
20344 2006-10-10  Jackson Harper  <jackson@ximian.com>
20345
20346         * TextBoxBase.cs: Finish off the autoscrolling stuff.
20347
20348 2006-10-10  Chris Toshok  <toshok@ximian.com>
20349
20350         * Cursor.cs: Apply a slightly different patch to the one suggested
20351         in #79609.
20352
20353 2006-10-10  Jackson Harper  <jackson@ximian.com>
20354
20355         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
20356         not the parent form.
20357         * TextControl.cs: use difference in old line count vs new count to
20358         calculate how many lines were added, this takes into account soft
20359         line breaks properly.
20360
20361 2006-10-10  Chris Toshok  <toshok@ximian.com>
20362
20363         * LinkLabel.cs: don't call MeasureCharacterRanges against a
20364         rectangle located at 0,0 and the size of the text.  Use
20365         ClientRectangle instead.  This fixes rendering of non-left aligned
20366         link labels.
20367
20368 2006-10-10  Jackson Harper  <jackson@ximian.com>
20369
20370         * TextBoxBase.cs: When we set the selection start position the
20371         caret.
20372         * TextControl.cs: Need to update the caret when we decrement it to
20373         zero.
20374         - Make sure that the selection_visible flag gets reset to false if
20375         the selection isn't visible.  Before this you could get it set to
20376         visible by changing the selection start, then changing the end to
20377         equal the start.
20378
20379 2006-10-09  Jackson Harper  <jackson@ximian.com>
20380
20381         * TreeView.cs: Don't update scrollbars when we aren't visible.
20382         * TreeNodeCollection.cs: Only need to update scrollbars if being
20383         added to an expanded visible node or the root node.
20384
20385 2006-10-09  Chris Toshok  <toshok@ximian.com>
20386
20387         * XplatUIX11.cs (SendMessage): fix NRE.
20388
20389 2006-10-09  Jackson Harper  <jackson@ximian.com>
20390
20391         * TextBoxBase.cs: Implement horizontal autoscrolling.
20392         * TextControl.cs: Add a movement types that allows moving forward
20393         and backwards without wrapping.
20394
20395 2006-10-09  Mike Kestner  <mkestner@novell.com>
20396
20397         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
20398         with focus "expansion" of labels.  Fixes #79532 and then some.
20399         * ThemeWin32Classic.cs : add LineLimit to ListView label format
20400         when wrapping.
20401
20402 2006-10-09  Jackson Harper  <jackson@ximian.com>
20403
20404         * TextBoxBase.cs: Set the default max values to MaxValue since
20405         we use the scrollbar for autoscrolling and the default value is
20406         100.  If we don't do this the caret won't keep up with typing
20407         after about 18 characters.
20408         * TextControl.cs: Make sure the selection is offset by the
20409         viewport x.  This fixes selection when using auto scrolling.
20410
20411 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
20412         
20413         * Form.cs: The active control should be selected after the 
20414         OnLoad so that any child control initialization that affects
20415         the selection is done. Fixes #79406
20416
20417 2006-10-06  Chris Toshok  <toshok@ximian.com>
20418
20419         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
20420         to have no evil effects.
20421
20422         - Stop selecting StructureNotifyMask on non-toplevel windows.
20423
20424           The only way children should be resized is by using the SWF api,
20425           and we already send WM_WINDOWPOSCHANGED messages in those cases.
20426           Toplevel windows can be interacted with via the window manager,
20427           and so we keep the input mask there.
20428
20429           The other event StructureNotifyMask gives us (that we care
20430           about) is DestroyNotify.  The code is already structured such
20431           that it assumes we won't be getting a DestroyNotify event for
20432           the window we pass to XDestroyWindow (which is what
20433           StructureNotifyMask is supposed to guarantee.)  So, that code
20434           shouldn't be affected by this either.
20435
20436         - Stop selecting VisibilityChangeMask altogether.
20437
20438           We weren't doing anything with the resulting events anyway.
20439         
20440         This vastly reduces the number of X requests and events we see
20441         when resizing/laying out a large ui.
20442
20443 2006-10-06  Chris Toshok  <toshok@ximian.com>
20444
20445         * ScrollableControl.cs (DisplayRectangle): we need to take into
20446         account the DockPadding regardless of whether or not auto_scroll
20447         == true.  rework this slightly to this effect, and fix bug #79606,
20448         and part of #72499 (you can now see the drag handles and drag
20449         toolbars around).
20450
20451 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
20452
20453         * ListViewItem.cs: Collections of selected and checked items are now
20454         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
20455         we mark the collection "dirty".
20456         * ListView.cs: Marked collections readonly. Modified UpdateSelection
20457         to only clear SelectedItems when a new item is selected and MultiSelect
20458         is enabled. CheckedItems and SelectedItems now subscribe to Changed
20459         event of ListViewItemCollection, and mark its list dirty whenever
20460         that event is fire. This allows us to return selected/checked items 
20461         in the same order as they are in the Items collection. This matches
20462         the MS behavior.
20463
20464 2006-10-06  Chris Toshok  <toshok@ximian.com>
20465
20466         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
20467         right mouse clicks.  Fixes bug #79593.
20468
20469 2006-10-06  Chris Toshok  <toshok@ximian.com>
20470
20471         * Splitter.cs: doh, fix splitters that don't want to cancel the
20472         movement when you drag them.  Also, impose the limits on the
20473         values we send to the SplitterMovingEvent.  Fixes #79598.
20474
20475 2006-10-06  Jackson Harper  <jackson@ximian.com>
20476
20477         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
20478         since we use this for auto scrolling also.
20479
20480 2006-10-05  Chris Toshok  <toshok@ximian.com>
20481
20482         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
20483         beginning to think that most datagrid column types don't need this
20484         method.  Fixes bug #79392.
20485
20486 2006-10-05  Chris Toshok  <toshok@ximian.com>
20487
20488         * DataGrid.cs: move back to a more lazy scheme for creating the
20489         CurrencyManager, so we aren't updating it every time you set
20490         either DataSource or DataMember.  Also, don't call
20491         RecreateDataGridRows if the currency manager hasn't changed.
20492
20493 2006-10-05  Chris Toshok  <toshok@ximian.com>
20494
20495         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
20496         emitted, SelectedIndex should already be updated.  Fixes bug
20497         #78929.
20498
20499 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
20500
20501         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
20502           ToolStripTextBox.cs: Initial commit.
20503         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
20504
20505 2006-10-05  Jackson Harper  <jackson@ximian.com>
20506
20507         * TabControl.cs: We need to invalidate the tab control area when
20508         new ones are added (duh).
20509
20510 2006-10-03  Chris Toshok  <toshok@ximian.com>
20511
20512         * Form.cs (ProcessDialogKey): if the focused control is in this
20513         form and is a button, call its PerformClick method here.  Fixes
20514         #79534.
20515
20516 2006-10-04  Jackson Harper  <jackson@ximian.com>
20517
20518         * TabPage.cs: Ignore setting of Visible, and add an internal
20519         method for setting the controls visibility.  TabPage's Visible
20520         property is a little strange on MS, this seems to make us
20521         compatible, and fixes cases where people set all the tab pages to
20522         visible.
20523         * TabControl.cs: Use the new internal setting on tab pages
20524         visibility.
20525
20526 2006-10-03  Mike Kestner  <mkestner@novell.com>
20527
20528         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
20529
20530 2006-10-03  Mike Kestner  <mkestner@novell.com>
20531
20532         * ListView.cs : use is_visible instead of Visible to check if 
20533         scrollbars should be placed/sized.  Also some max_wrap_width
20534         love for LargeIcon view.  [Fixes #79533]
20535
20536 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
20537
20538         * TextControl.cs :
20539           Make set_TextAlign() do actually update the align. Fixed #78403.
20540
20541 2006-10-03  Chris Toshok  <toshok@ximian.com>
20542
20543         * DataGrid.cs: fix a crash when switching datasources if the
20544         vertical scrollbar is at someplace other than Value = 0.  Also,
20545         reduce the number of recalculation passes we do in SetDataSource
20546         from 2 to 1.
20547
20548 2006-10-03  Jackson Harper  <jackson@ximian.com>
20549
20550         * TextBoxBase.cs: Move the if value the same bail check up, we
20551         don't want to empty the document if it is already empty, this
20552         seems to severly mess up the caret.  TODO: I should probably fix
20553         the empty statement to update teh caret somehow.
20554
20555 2006-10-03  Chris Toshok  <toshok@ximian.com>
20556
20557         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
20558         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
20559         reflection, an internal row type, properties on said type, etc.)
20560         will work with our datagrid.  Fixes #79531.
20561
20562 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
20563
20564         * FileDialog.cs: Don't crash if a path is not accessible
20565           (System.UnauthorizedAccessException). Fixes #79569.
20566         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
20567           a ':' too. Return unknown icon for those paths/files.
20568
20569 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
20570
20571         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
20572         GetContainerControl returns null.
20573
20574 2006-10-02  Chris Toshok  <toshok@ximian.com>
20575
20576         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
20577         call to XGetWindowAttributes instead of "handle".  fixes an X
20578         error using notifyicon after the NotifyIconWindow to Form base
20579         class switch.
20580
20581 2006-10-02  Chris Toshok  <toshok@ximian.com>
20582
20583         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
20584         server grab and looping we need to do to get down to the most
20585         deeply nested child window.
20586         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
20587         QueryPointer again after the WarpPointer so we can generate a
20588         proper (fake) MotionNotify event to be enqueued in the destination
20589         window's queue.
20590         (GetCursorPos): call QueryPointer.
20591
20592         Fixes #79556.
20593
20594 2006-10-02  Jackson Harper  <jackson@ximian.com>
20595
20596         * NotifyIcon.cs: Derive the notify icon from a form, so things
20597         like FindForm work on it.
20598         - Swallow the WM_CONTEXTMENU message, since that is generated on
20599         mouse down, and context menu is a mouse up kinda guy.  I believe
20600         the correct fix here is probably to make the notify icon entirely
20601         NC area, but this seems to work fine for anyone not manipulating
20602         WndProc.
20603
20604 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
20605
20606         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
20607           ToolStripItemCollection.cs, ToolStripLabel.cs,
20608           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
20609           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
20610           Initial implementation.
20611         * TextRenderer.cs: Provide padding to MeasureText.
20612
20613 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
20614
20615         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
20616         of ButtonBaseAccessibleObject. Fix bug #79552.
20617
20618 2006-10-02  Jackson Harper  <jackson@ximian.com>
20619
20620         * MdiWindowManager.cs: When maximizing use the containers client
20621         rect, not it's bounds, so nc area is accounted correctly.
20622         - Use the parent form's size for the menu position, since the
20623         client isn't always the full form size.
20624
20625 2006-10-01  Chris Toshok  <toshok@ximian.com>
20626
20627         * ScrollableControl.cs: make sure neither right_edge or
20628         bottom_edge are < 0, since they're used as LargeChange for the
20629         horiz/vert scrollbars respectively.  Fixes #79539.
20630
20631 2006-10-01  Chris Toshok  <toshok@ximian.com>
20632
20633         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
20634         the xplatuix11 code can cause us to destroy/recreate our handle.
20635
20636         * XplatUIX11.cs
20637         (SystrayAdd):
20638         - this code can be invoked many times for the same Hwnd.  Make
20639           sure we only destroy the client window once (the first time this
20640           method is called).  This fixes bug #79544.
20641         - Remove the call to the improperly bound XSync.  why we had two
20642           bindings to this, I will never know, but this call resulted in
20643           events being discarded from the queue(!).
20644         - correct a misunderstanding of _XEMBED_INFO - the second atom is
20645           not our current state but the state we wish to be in.  So, 0 if
20646           we don't want to be mapped.  Change it to 1.
20647         (SystrayRemove): The XEMBED spec makes mention of the fact that
20648         gtk doesn't support the reparent of client windows away from the
20649         embedder.  Looking at gtksocket-x11.c seems to agree with this.
20650         The only avenue we have for removing systray icons is to destroy
20651         them.  We don't want the handle to go away for good, though, so
20652         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
20653         #79545.
20654         
20655 2006-10-01  Chris Toshok  <toshok@ximian.com>
20656
20657         * Form.cs (WndProc): inline the native_enabled variable usage into
20658         the cases in which it's used.  Fixes #79536.
20659
20660 2006-09-29  Mike Kestner  <mkestner@novell.com>
20661
20662         * ListView.cs : toggle the selection state for ctrl clicks in 
20663         multiselect mode. [Fixes #79417]
20664
20665 2006-09-29  Mike Kestner  <mkestner@novell.com>
20666
20667         * ListView.cs : kill CanMultiSelect and refactor the selection
20668         code to support multiselection in the absence of mod keys. Steal
20669         arrow/home/end keys by overriding InternalPreProcessMessage to
20670         restore regressed keynav behavior.
20671         [Fixes #79416]
20672
20673 2006-09-29  Jackson Harper  <jackson@ximian.com>
20674
20675         * MdiClient.cs: Repaint the titlebars when the active window is
20676         changed.
20677
20678 2006-09-29  Chris Toshok  <toshok@ximian.com>
20679
20680         * Application.cs: when entering a runloop with a modal, make sure
20681         the hwnd is enabled.  Fixes #79480.
20682
20683 2006-09-29  Chris Toshok  <toshok@ximian.com>
20684
20685         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20686         when ListManager.CanAddRows == false, bump us back one.
20687
20688         * DataGridColumnStyle.cs (ParentReadOnly): remove the
20689         listmanager.CanAddRows check.  This makes ArrayLists uneditable
20690         using a datagrid, which is not right.
20691         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20692         is an IEditable, but call property_descriptor.SetValue regardless.
20693         fixes #79435.
20694
20695 2006-09-29  Chris Toshok  <toshok@ximian.com>
20696
20697         * DataGridBoolColumn.cs: we need to test equality in the face of
20698         possible null values (as is the case with the default NullValue).
20699         This patch keeps us from crashing in that case.
20700
20701 2006-09-29  Jackson Harper  <jackson@ximian.com>
20702
20703         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20704         here, since it will get called for every node collection in the
20705         tree. This is now done in the treeview once the sorting is
20706         finished.
20707         * TreeView.cs: Recalculate the visible order, and update the
20708         scrollbars after sorting, set the top nope to the root so that the
20709         recalc actually works.
20710
20711 2006-09-29  Chris Toshok  <toshok@ximian.com>
20712
20713         * LinkLabel.cs: more handling of the default link collection in
20714         the face of LinkArea manipulation.  The default link collection
20715         contains 1 element (start=0,length=-1).  If the user sets LinkArea
20716         to anything and the links collection is the default, clear it.
20717         Then only add the link if its nonempty.  Fixes #79518.
20718
20719 2006-09-29  Chris Toshok  <toshok@ximian.com>
20720
20721         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20722         piece correctly when we hit a '\n'.  Fixes #79517.
20723
20724 2006-09-29  Chris Toshok  <toshok@ximian.com>
20725
20726         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20727         change the binding of gdk_init_check to take two IntPtr's, and
20728         pass IntPtr.Zero for both of them.  Fixes #79520.
20729
20730 2006-09-29  Mike Kestner  <mkestner@novell.com>
20731
20732         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
20733         [Fixes #78779]
20734
20735 2006-09-28  Jackson Harper  <jackson@ximian.com>
20736
20737         * XplatUIX11.cs: When translating NC messages make sure we go from
20738         whole window to screen, not client window to screen.
20739         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
20740         method doesn't exist
20741         - Skip over controls that aren't forms when arranging.
20742
20743 2006-09-28  Jackson Harper  <jackson@ximian.com>
20744
20745         * XplatUIWin32.cs: Clip the rect to the parent window.
20746         * XplatUIStructs.cs: Add clipping modes struct.
20747         * InternalWindowManager.cs: New private method that factors title
20748         bar heights in when calculating the pos of an NC mouse message.
20749         - Use SendMessage to force a paint when the form's size is changed
20750         instead of painting the decorations immediately.
20751         - Don't let the NC button click messages get to DefWndProc,
20752         because they will attempt to handle windowing themself, and this
20753         messes up z-order (it will put them in front of the scrollbars).
20754         * XplatUIX11.cs: Make sure that we don't reset window managers if
20755         we already have one (ie the window is an MDI window).
20756
20757 2006-09-28  Chris Toshok  <toshok@ximian.com>
20758
20759         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
20760         menu code really needs going over.
20761
20762 2006-09-27  Chris Toshok  <toshok@ximian.com>
20763
20764         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
20765         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
20766         window is maximizable.  So, we need to make sure that even if we
20767         clear the border/wm frame of those functions, they're still
20768         available (basically, we remove the decoration without removing
20769         the function).  Half the fix for #79338.
20770
20771 2006-09-27  Chris Toshok  <toshok@ximian.com>
20772
20773         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
20774         Fixes bug #79515.
20775
20776 2006-09-27  Chris Toshok  <toshok@ximian.com>
20777
20778         * Splitter.cs: reorder things a bit so that we don't actually
20779         draw/move the splitter until after calling OnSplitterMoving.  This
20780         lets users cancel/disallow the movement by explicitly setting
20781         event.SplitX/SplitY.  Fixes #79372.
20782
20783 2006-09-27  Jackson Harper  <jackson@ximian.com>
20784
20785         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
20786         because it is most likely on a window being destroyed, and that
20787         will give us an X11 error.
20788
20789 2006-09-27  Chris Toshok  <toshok@ximian.com>
20790
20791         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
20792         the dropdown button now toggles between showing and hiding the
20793         dropdown.  Also, get rid of dropdown_form_showing and just use
20794         dropdown_form.Visible.  We still don't do a grab, but I'll leave
20795         that part to someone who has handled Capture-fu before.
20796
20797 2006-09-27  Chris Toshok  <toshok@ximian.com>
20798
20799         * DataGrid.cs: return false if alt isn't pressed when '0' is
20800         pressed.  this keeps the '0' key from being swallowed, and fixes
20801         bug #79350.
20802
20803 2006-09-27  Chris Toshok  <toshok@ximian.com>
20804
20805         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
20806         Calling Refresh (in response to a scrollbar event) screws up the
20807         scrollbar painting.  Fixes bug #78923.
20808
20809 2006-09-27  Chris Toshok  <toshok@ximian.com>
20810
20811         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
20812         then insert into hashtable" blocks threadsafe.
20813
20814 2006-09-27  Chris Toshok  <toshok@ximian.com>
20815
20816         * MessageBox.cs (CreateParams): the styles should be |'ed with our
20817         baseclass's, since otherwise the
20818         ControlBox/MinimizeBox/MaximizeBox assignments above have no
20819         effect.  This gets the close button back in messageboxes.
20820
20821 2006-09-27  Chris Toshok  <toshok@ximian.com>
20822
20823         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
20824         flag, not just != 0.  this makes flags that are actually multiple
20825         bits (like WS_CAPTION) work.  fixes bug #79508.
20826
20827 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
20828
20829         * PageSetupDialog.cs: add support for getting and settings the 
20830         paper size, source and orientation.
20831
20832 2006-09-26  Chris Toshok  <toshok@ximian.com>
20833
20834         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
20835         and caption == "", we need to remove the resize handles as well as
20836         the title bar.
20837
20838         * Control.cs (set_Text): turns out that setting Text on a form
20839         should change the WM styles on the window, since if ControlBox ==
20840         false, the only way to get a window border is to have a non-""
20841         Text property.  check winforms/forms/text.cs for an example.  so,
20842         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
20843         update both window styles and title.  This fixes a lot of dialogs
20844         (including the preferences dialog in MonoCalendar.)
20845
20846 2006-09-26  Chris Toshok  <toshok@ximian.com>
20847
20848         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
20849         control isn't a Form), call Win32ShowWindow to hide the window,
20850         but don't update the control Visible property.  When we reparent
20851         back to a parent control, call SetVisible in order for the
20852         window's visibility to be reinstated.
20853
20854         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
20855         the FosterParent.
20856
20857         * Control.cs (ControlCollection.Remove): remove that value.Hide()
20858         call for good, since it breaks MonoCalendar (and other things I'm
20859         sure.) Also, set all_controls to null *after* the owner calls,
20860         which end up regenerating it.
20861         (ChangeParent): allow new_parent to be == null, passing
20862         IntPtr.Zero down to XplatUI.
20863
20864         this fixes #79294 the right way.
20865
20866 2006-09-26  Mike Kestner  <mkestner@novell.com>
20867
20868         * GridEntry.cs : internal SetParent method.
20869         * PropertyGrid.cs : attach to property changed on the proper
20870         target if we have a hierarchical grid with subobjects. Setup
20871         GridItem.Parent for hierarchical items.
20872         * PropertyGridView.cs : Set value on the correct target for
20873         hierarchical grids. [Fixes #78903]
20874
20875 2006-09-26  Chris Toshok  <toshok@ximian.com>
20876
20877         * Control.cs (ChildNeedsRecreating): this should return true if
20878         either we're being recreated and the child is in our list, or our
20879         parent is waiting for our recreation.
20880
20881 2006-09-26  Chris Toshok  <toshok@ximian.com>
20882
20883         * Control.cs (ControlCollection.Remove): reinstate the
20884         value.Hide() call as suggested in bug #79294.
20885
20886 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
20887
20888         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
20889         coordinates (versus a relative move).
20890
20891 2006-09-26  Chris Toshok  <toshok@ximian.com>
20892
20893         * Control.cs: rework child recreation a little bit.  It turns out
20894         that we race between the DestroyNotify the WM_DESTROY message.  If
20895         the parent gets its DestroyNotify before the child gets the
20896         WM_DESTROY message, the child ends up not recreating (since the
20897         parent finishes its recreation on DestroyNotify, and the child
20898         checks ParentIsRecreating.)
20899
20900         So, instead we store off a list of all the child controls which
20901         need to be recreated when the parent control starts to recreate
20902         itself.  Then, when child controls get their WM_DESTROY message we
20903         check to see if they're in the parent's pending recreation list,
20904         and if so, we recreate.  This removes all dependency on ordering
20905         from the code and fixes the initial MonoCalendar upgrade dialog.
20906         
20907 2006-09-26  Jackson Harper  <jackson@ximian.com>
20908
20909         * TextControl.cs: Use the Line to get the length of the line,
20910         since soft line breaks can change the end line.
20911
20912 2006-09-26  Chris Toshok  <toshok@ximian.com>
20913
20914         * Control.cs (ControlCollection.AddImplicit): don't add the
20915         control again if it's already in one of our lists.  This keeps us
20916         from adding controls over and over again for comboboxes when their
20917         handle gets recreated (as the combobox adds implicit controls in
20918         OnHandleCreated).  Fixes the X11 errors in bug #79480.
20919
20920 2006-09-26  Jackson Harper  <jackson@ximian.com>
20921
20922         * TextControl.cs: When deleting characters make sure that any
20923         orphaned zero lengthed tags get deleted.
20924         - Fix ToString for zero lengthed tags.
20925
20926 2006-09-25  Jackson Harper  <jackson@ximian.com>
20927
20928         * TextControl.cs: When getting a tag at the location there can be
20929         multiple tags at the same spot, these are 0-lengthed tags that
20930         appear when extra formatting has been stuck in a location.  We
20931         need to pull out the last of these 0 lengthed tags.
20932
20933 2006-09-25  Jackson Harper  <jackson@ximian.com>
20934
20935         * TextControl.cs: Fix print out in debug method.
20936         * TextBoxBase.cs: When text is set bail if we are setting to the
20937         previous value.
20938         
20939 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
20940
20941         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20942           It is now possible to change the selected index in a FontXXXListBox
20943           with the up and down arrow keys from the FontXXXTextBoxes.
20944           Also, send the FontXXXTextBox mouse wheel event to the corresponding
20945           FontXXXListBoxes to match ms.
20946
20947 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
20948
20949         * SystemInformation.cs: Return a clone of the theme's MenuFont because
20950         anyone can dispose it, anytime. All other properties returns enums, 
20951         structs or basic types so they don't need such tricks.
20952
20953 2006-09-22  Jackson Harper  <jackson@ximian.com>
20954
20955         * XplatUI.cs:
20956         * XplatUIWin32.cs:
20957         * Clipboard.cs:
20958         * DataFormats.cs:
20959         * XplatUIOSX.cs:
20960         * XplatUIDriver.cs: Update interface to add a primary selection
20961         flag, so the driver can use the primary selection buffer if
20962         needed.
20963         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20964
20965         * RichTextBox.cs: We need to supply the data object to paste now
20966         (so we can choose to supply CLIPBOARD or PRIMARY).
20967         * TextBoxBase.cs: Supply data object to paste (see above).
20968         - Middle click uses the primary selection data object.
20969         
20970 2006-09-21  Chris Toshok  <toshok@ximian.com>
20971
20972         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20973         of SetWMStyles.  It's still a rat's nest and is largely
20974         order-dependent which I dislike immensely.  This also fixes the X
20975         button disappearing from toplevel forms.
20976
20977 2006-09-21  Mike Kestner <mkestner@novell.com>
20978
20979         * ListBox.cs: move Jordi's click/dblclick raising code to the
20980         mouse up handler.
20981
20982 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
20983
20984         * ListBox.cs: Fixes 79450
20985
20986 2006-09-21  Mike Kestner <mkestner@novell.com>
20987
20988         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20989         to deal with people updating the TreeNodeCollection after the tree
20990         is disposed.  "Fixes" 79330.
20991
20992 2006-09-20  Jackson Harper <jackson@ximian.com>
20993
20994         * TextControl.cs: Push the cursor record onto the undo stack
20995         before the delete action. This fixes 78651.
20996
20997 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
20998
20999         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
21000         CreateParams. Fixes 79329.
21001
21002 2006-09-19  Chris Toshok  <toshok@ximian.com>
21003
21004         * XplatUIX11.cs: a couple of blanket code massage passes to clean
21005         things up a bit.  First, get rid of the NetAtoms array (and the NA
21006         enum), and just embed the atoms as static fields.  Also, add a
21007         couple of functions (StyleSet and ExStyleSet) to clean up all the
21008         bitmask testing of styles.
21009
21010         * X11Structs.cs: remove the NA enum, not needed anymore.
21011         
21012 2006-09-19  Chris Toshok  <toshok@ximian.com>
21013
21014         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
21015         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
21016         added cleanup to get MessageBox titles appearing again, which were
21017         broken by my earlier fix for caption-less/ControlBox-less windows.
21018
21019 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
21020
21021         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
21022           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
21023           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
21024           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
21025           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
21026           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
21027           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
21028           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
21029           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
21030           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
21031           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
21032             Inital import.
21033         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
21034           ToolStripButton.cs: Stubs needed for above.
21035         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
21036
21037 2006-09-15  Chris Toshok  <toshok@ximian.com>
21038
21039         * XplatUIX11.cs:
21040         - make the MessageQueues hashtable Synchronized.
21041         
21042         - SendMessage: if the Hwnd is owned by a different thread, use the
21043         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
21044         thread.  Fixes bug #79201.
21045
21046 2006-09-15  Chris Toshok  <toshok@ximian.com>
21047
21048         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
21049         ControlBox == false, we disallow maximize/minimize/close.  If the
21050         form Caption is "" we also disallow move (and get rid of the Title
21051         decoration).  Unfortunately, regardless of how things are set,
21052         we're stuck with the Title and WM menu.
21053
21054 2006-09-15  Chris Toshok  <toshok@ximian.com>
21055
21056         * Application.cs: add locking around the static message_filters
21057         ArrayList, part of #79196.
21058
21059 2006-09-15  Chris Toshok  <toshok@ximian.com>
21060
21061         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
21062         Form.ControlBox == false, the window has no titlebar nor resize
21063         handles.  fixes bug #79368.
21064
21065 2006-09-15  Chris Toshok  <toshok@ximian.com>
21066
21067         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
21068         >= 0.  Fixes bug #79370.
21069
21070 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
21071         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
21072         * Control.cs:
21073             Add properties: LayoutEngine, Margin, DefaultMargin.
21074             Add method: GetPreferredSize.
21075             Move layout logic from PerformLayout to layout engines. 
21076
21077 2006-09-13  Chris Toshok  <toshok@ximian.com>
21078
21079         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
21080         fix for #79326 broke #78718, so this change addresses that.
21081
21082         - in SendWMDestroyMessages remove the call to
21083         CleanupCachedWindows, since we might be recreating the control and
21084         need to maintain the references to right Hwnd handles.  Also, set
21085         the zombie flag to true for each of the children in the hierarchy
21086         instead of calling hwnd.Dispose.  This will cause GetMessage to
21087         ignore all events for the window except for DestroyNotify.
21088
21089         - In GetMessage, ignore messages except for DestroyNotify for
21090         zombie hwnds.
21091         
21092         * Control.cs: revert the is_recreating fix from the last
21093         ChangeLog.  It's definitely "right", but it breaks switching from
21094         an MDI form to a non-MDI form.  Will need to revisit that.
21095
21096         * Hwnd.cs: add a zombie flag, which means "the
21097         client_window/whole_window handles are invalid, but we're waiting
21098         for the DestroyNotify event to come in for them".  Set the flag to
21099         false explicitly if setting WholeWindow/ClientWindow, and also
21100         when Disposing.
21101         
21102 2006-09-13  Chris Toshok  <toshok@ximian.com>
21103
21104         * XplatUIX11.cs: rework window destruction slightly.
21105
21106         - when destroying the windows associated with a control, we don't
21107         need 2 separate XDestroyWindow calls.  Just the one for the
21108         whole_window (or for client_window if whole_window is somehow
21109         IntPtr.Zero -- can this happen?) is enough.
21110
21111         - reworked SendWMDestroyMessages slightly, so we always dispose
21112         the child control hwnd's after sending the messages.
21113         
21114         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
21115         the two places it was used (one was even using hwnd.Handle and the
21116         other hwnd.client_window.  ugh), adding another call in
21117         SendWMDestroyMessages.  We need this new call because now the
21118         DestroyNotify events in the queue will be ignored for the child
21119         controls (as their hwnd's were disposed, and the window id's
21120         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
21121
21122         - this fixes bug #79326.
21123
21124 2006-09-13  Chris Toshok  <toshok@ximian.com>
21125
21126         * Control.cs: don't always set is_recreating to false at the end
21127         of RecreateHandle, since sometimes we're not done (and won't be
21128         until WndProc handles the WM_DESTROY message).  Also, set
21129         is_recreating to false in the WM_DESTROY handling code.  Part of
21130         the fix for bug #79326.
21131
21132 2006-09-13  Miguel de Icaza  <miguel@novell.com>
21133
21134         * X11DesktopColors.cs: Start the droppage of debugging messages.
21135
21136         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
21137
21138 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
21139
21140         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
21141
21142 2006-09-12  Chris Toshok  <toshok@ximian.com>
21143
21144         * DataGrid.cs (get_ListManager): if the list_manager is null, try
21145         to create it using SetDataSource.  Fixes bug #79151.
21146
21147 2006-09-11  Chris Toshok  <toshok@ximian.com>
21148
21149         * XEventQueue.cs: add a DispatchIdle property.
21150
21151         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
21152         either the queue is null, or the queue has DispatchIdle set to
21153         true.
21154         (DoEvents): set queue.DispatchIdle to false around the
21155         peek/translate/dispatch message loop in this method.  This keeps
21156         Application.Doevents from emitting idle events.  Part of the fix
21157         for #78823.
21158
21159 2006-09-11  Chris Toshok  <toshok@ximian.com>
21160
21161         * DataGrid.cs (set_DataSource): make this work for both the
21162         winforms/datagrid test and ReportBuilder.  It seems as though when
21163         we've created a ListManager (or maybe it's if we have a
21164         BindingContext?), when we set the DataSource it clears the
21165         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
21166         #79333.
21167
21168 2006-09-11  Chris Toshok  <toshok@ximian.com>
21169
21170         * XplatUIX11.cs: deal with queue being null, which happens in all
21171         the Clipboard functions.  Fixes one of the two problems mentioned
21172         in #78612.
21173
21174 2006-09-11  Chris Toshok  <toshok@ximian.com>
21175
21176         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
21177         button on various spots (including outside the menu) works closer
21178         to MS, and doesn't crash.  Fixes #79343.
21179
21180 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
21181
21182         * ListView.cs: Do not initialize item_sorter in init. To match MS,
21183         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
21184         and the internal comparer is set. When a new ListViewItemSorter is set,
21185         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
21186         was specified. No further processing is necessary if SortOrder is set
21187         to it's current value. If Sorting is modified to None, and View is
21188         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
21189         (either custom or our internal ItemComparer) to null, on 1.0 profile
21190         only set item_sorter to null if its our internal IComparer. If Sorting
21191         is modified to Ascending or Descending, then use our internal IComparer
21192         if none is set, and if the current IComparer is our internal one then:
21193         on 2.0 profile always replace it with one for new Sorting, and on 1.0
21194         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
21195         Enum.IsDefined to verify whether a valid View value is specified in
21196         its setter. Automatically sort listview items when listview is
21197         created. In Sort, do nothing if ListView is not yet created, or if
21198         no item_sorter is set (no Sorting was set, Sorting was explicitly set
21199         to None or ListViewItemSorter was set to null). Added Sort overload
21200         taking a bool to indicate whether the ListView should be redrawn when
21201         items are sorted (we use this in ListViewItemCollection to avoid double
21202         redraws). Modified our internal IComparer to take the sort order into
21203         account. In Add and AddRange methods of ListViewItemCollection, also
21204         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
21205         view), but use overload with noredraw option to avoid double redraw.
21206         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
21207         true when View is Tile, and do the same when attempting to set View to
21208         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
21209         for selected/checked indices, as it involves overhead when sorting is
21210         done while these collections are not used all that often. Instead
21211         we'll build the indices on demand. Modified IList implementation of
21212         CheckedIndexCollection to use public methods if object is int.
21213         Modified CheckedListViewItemCollection to hide checked items if
21214         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
21215         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
21216         IList implementation in SelectedIndexCollection to use public methods
21217         if object is int. Modified SelectedListViewItemCollection to hide
21218         selected items if listview is not yet created.
21219         * ListViewItem.cs: CheckedIndices list no longer needs to be
21220         maintained separately (see ListView changes). Also clone font, fixes
21221         test failure.
21222
21223 2006-09-11  Mike Kestner  <mkestner@novell.com>
21224
21225         * ComboBox.cs: if we are updating the contents of the currently
21226         selected index, refresh the control or the textbox selection.
21227         [Fixes #79066]
21228
21229 2006-09-11  Mike Kestner  <mkestner@novell.com>
21230
21231         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
21232         the 'specified' logic has been moved there.  This seems like a bug 
21233         in Control.cs, since our current SetBoundsCore completely ignores 
21234         the specified parameter.  Peter's commit seems to indicate that is 
21235         the way the MS control implementation works.  [Fixes #79325]
21236
21237 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
21238
21239         * XplatUI.cs: Set default_class_name to be composed
21240         of current domain id. This allows MWF to be loaded in multiple
21241         domains on Win32.
21242
21243 2006-09-09  Miguel de Icaza  <miguel@novell.com>
21244
21245         * X11Keyboard.cs: If we are unable to obtain the input method, do
21246         not call CreateXic to create the input context.   Should fix
21247         #78944/79276.
21248
21249 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
21250
21251         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
21252           Simplified gnome support by adding more pinvokes to get the
21253           icon for a file or mime type.
21254
21255 2006-09-08  Jackson Harper  <jackson@ximian.com>
21256
21257         * MenuAPI.cs: Deslect popup context menu items before closing the
21258         window, so that you don't see the previously selected item
21259         selected when you reopen the menu.
21260         * TextControl.cs: Update the cursor position even if we don't have
21261         focus.  This fixes typing in things like the ComboBox.  I'm not
21262         totally sure we should always set the visibility if we don't have
21263         focus, but couldn't find any corner cases where the cursor showed
21264         up when it shouldn't.
21265
21266 2006-09-08  Chris Toshok  <toshok@ximian.com>
21267
21268         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
21269         our arrays are length 256.  & 0xff before indexing.  Fixes the
21270         crash in bug #78077.
21271         
21272 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21273
21274         * ThemeWin32Classic.cs: 
21275         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
21276         is true. Handle that check box too.
21277
21278 2006-09-07  Chris Toshok  <toshok@ximian.com>
21279
21280         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
21281         79244.
21282
21283 2006-09-07  Chris Toshok  <toshok@ximian.com>
21284
21285         * Control.cs: in set_BackColor only do the work if
21286         background_color != value.
21287
21288         * XplatUIX11.cs: move the clearing of invalid areas (both client
21289         and nc) to the same block of code where we set (nc_)expose_pending
21290         to false.  That is, move it from PaintEventEnd to PaintEventStart,
21291         so things that cause invalidates from within OnPaint will trigger
21292         another call to OnPaint.  Fixes bug #79262.
21293
21294 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
21295
21296         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
21297         * FileDialog.cs: Fix typo
21298
21299 2006-09-07  Jackson Harper  <jackson@ximian.com>
21300
21301         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
21302         for tab pages if they have any.
21303
21304 2006-09-06  Mike Kestner  <mkestner@novell.com>
21305
21306         * Splitter.cs: use the "current" rect when finishing drag handle
21307         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
21308
21309 2006-09-06  Mike Kestner  <mkestner@novell.com>
21310
21311         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
21312         support offset splitters. [Fixes #79298]
21313
21314 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
21315
21316         * Mime.cs: Fixed a bug that could override the global mime type
21317           result.
21318
21319 2006-09-05  Jackson Harper  <jackson@ximian.com>
21320
21321         * TabControl.cs: Better calculation method for setting the slider
21322         pos. Prevents crashes on really wide tabs.
21323         - Draw Image on tab pages if an image list is used.
21324
21325 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21326
21327         * MonthCalendar.cs: When Font changes, the Size should be
21328         updated to fit the new font's space requirements.
21329
21330 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
21331
21332         * ListBox.cs: If the items are cleared with Items.Clear set
21333           top_index to 0.
21334
21335 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21336
21337         * MonthCalendar.cs: Handle arrow keys as input keys. Also
21338         fire DateChanged event instead of DateSelected event when
21339         the date was changed by keyboard interaction.
21340
21341 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21342
21343         * DateTimePicker.cs: Handle DateChanged for the associated
21344         month_calendar control, and set month_calendar.Font from 
21345         OnFontChanged method, as well as resize the height of the
21346         control when needed. Make PreferredHeight proportional.
21347
21348 2006-09-01  Chris Toshok  <toshok@ximian.com>
21349
21350         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
21351         properties.
21352
21353         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
21354
21355 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
21356
21357         * FileDialog.cs: Set ClientSize instead of window size, to allow space
21358           for decorations (Fixes #79219)
21359
21360 2006-09-01  Mike Kestner  <mkestner@novell.com>
21361
21362         * ComboBox.cs: first stab at sorting plus some selection handling
21363         fixes to bring us more in line with MS behavior.  Also switches back
21364         to index based selection.  Alternative patches for index-based 
21365         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
21366         and latency@gmx.de on bug 78848.  I assume they were similar to this
21367         code I've had simmering in my tree forever.
21368         [Fixes #78848]
21369
21370 2006-09-01  Chris Toshok  <toshok@ximian.com>
21371
21372         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
21373         when setting list position guard against ending up with a -1 index
21374         (the other part of the fix for #78812).  Should probably make sure
21375         we don't need the analogous fix in the ItemDeleted case.
21376
21377         * DataGrid.cs:
21378         - in SetDataSource, work around the fact that the way
21379         OnBindingContextChanged is invoked will cause us to re-enter this
21380         method.  I'll remove the hack once I investigate
21381         OnBindingContextChanged.
21382
21383         - fix the logic in set_DataSource and set_DataMember (basically
21384         what to do if the other of the two is null.)
21385         
21386         - in OnListManagerItemChanged, we need to take into account the
21387         edit row when deciding whether or not to call RecreateDataGridRows
21388         (part of the fix for #78812).
21389
21390 2006-09-01  Jackson Harper  <jackson@ximian.com>
21391
21392         * Splitter.cs: Don't do anything if there is no control to affect
21393         (prevents us from crashing in weird tet cases).
21394         * TreeView.cs: Bounding box for the mouse movement reverting
21395         focus/selection back to previously selected node.  This matches
21396         MS, and makes the tree a lot more useable.
21397         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
21398         use clipping so they are not drawn.  This fixes when the control
21399         is set to have a transparent background, or if it was over an
21400         image.
21401
21402 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
21403
21404         * MimeIcon.cs: Improved handling for reading default icons when
21405           using gnome (2.16 made it necessary). Check and read svg icons
21406           first, then 48x48 and then 32x32 icons.
21407
21408 2006-08-31  Chris Toshok  <toshok@ximian.com>
21409
21410         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
21411         visible.
21412
21413         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
21414         ProcessKeyPreview.  Fixes part of #77806.
21415
21416         * DataGrid.cs: big patch.
21417
21418         - revert the queueing up of DataSource/DataMember if inside
21419         BeginInit/EndInit calls.  That's not the way the datagrid achieves
21420         its delayed databinding.  Instead, call SetDataSource in
21421         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
21422         #78811.
21423
21424         - Also, it wasn't mentioned in #78811, but the test case exhibits
21425         behavior that was lacking in our datagrid implementation - Columns
21426         that have mapping names that don't exist in the datasource's
21427         properties aren't shown.  Yuck.  To fix this I added the bound
21428         field to the column style, and basically any calculation to figure
21429         out anything about columns uses a loop to find the bound columns.
21430         still need to investigate if I can cache an array of the bound
21431         columns or if the indices must be the same.
21432
21433         - When setting CurrentCell, we no longer abort if the cell being
21434         edited was in the add row.  This fixes the other part of #77806.
21435
21436         - The new code also fixes #78807.
21437         
21438         * ThemeWin32Classic.cs: perpetrate the same disgusting
21439         column.bound field hack, and only render bound fields.
21440
21441 2006-08-31  Chris Toshok  <toshok@ximian.com>
21442
21443         * DataGridColumnStyle.cs: add bound field.  this field is true if
21444         the datasource has a property corresponding to the mapping name.
21445
21446         * DataGridTableStyle.cs: set the bound field on the column styles
21447         depending on whether or not we have a column for that property.
21448
21449 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
21450
21451         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
21452           splitter control (fixes #79228)
21453
21454 2006-08-31  Chris Toshok  <toshok@ximian.com>
21455
21456         * DataGridColumnStyle.cs: we need to delay the assignment of
21457         property descriptor until the last possible moment due to the lazy
21458         databinding stuff in the datagrid.  Also, fix the exceptions
21459         thrown by CheckValidDataSource to match MS.
21460
21461 2006-08-31  Jackson Harper  <jackson@ximian.com>
21462
21463         * Form.cs: When activated select the active control, if there is
21464         no active control, we select the first control.
21465         * XplatUIX11.cs: If there is no focus control when we get a
21466         FocusIn event, find the toplevel form and activate it.  This
21467         occurs when you popup a window, it becomes the focus window, then
21468         you close that window, giving focus back to the main window.
21469
21470 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21471
21472         * MonthCalendar.cs: 
21473         * ThemeWin32Classic.cs: Cache Font in bold style, as well
21474         as StringFormat with Center alignments in MonthCalendar,
21475         instead of creating new ones when drawing the control. 
21476         Also, draw the month name in bold style.
21477
21478 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
21479
21480         * Control.cs:
21481           - PerformLayout(): It would seem MS performs the fill even if the 
21482             control is not visible (part of #79218 fix)
21483           - ResetBackColor(): Use the setter to reset the color, to allow
21484             overriders to catch the change.
21485         * Form.cs:
21486           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
21487           - CreateHandle(): dito (part of $79218 fix)
21488           - Don't set an icon if we have a dialog
21489         * ScrollableControl.cs:
21490           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
21491           - ScrollIntoView(): No need to scroll if control is already visible
21492             (resolves fixme and fixes #79218)
21493
21494 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21495
21496         * MonthCalendar.cs: Change proportions in SingleMonthSize
21497         to match the aspect of the original control.
21498
21499 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
21500
21501         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
21502           get updated when they get maximized.
21503
21504 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
21505
21506         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
21507
21508 2006-08-29  Chris Toshok  <toshok@ximian.com>
21509
21510         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
21511
21512 2006-08-29  Jackson Harper  <jackson@ximian.com>
21513
21514         * TreeView.cs: Need to track selected node and highlighted node,
21515         they aren't always the same thing, when the mouse is down on a
21516         node it is hilighted, but not selected yet.
21517         - Do the HideSelection stuff right
21518         - Need to focus on rbutton mouse down. And redraw selection when
21519         right click is mouse upped.
21520
21521 2006-08-29  Mike Kestner  <mkestner@novell.com>
21522
21523         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
21524         when SubItems.Count < Columns.Count.  [Fixes #79167]
21525
21526 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
21527
21528         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
21529
21530 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
21531
21532         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
21533           from X. Only send based on ConfigureNotify if we don't have the
21534           correct location in hwnd (if the window manager moved us)
21535
21536 2006-08-28  Mike Kestner  <mkestner@novell.com>
21537
21538         * ListView.cs: remove a TODO. 
21539         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
21540         [Fixes ListView part of #79166]
21541
21542 2006-08-28  Mike Kestner  <mkestner@novell.com>
21543
21544         * ListView.cs: move wheel handler to parent since it is focused
21545         instead of the item_control now.  [Fixes #79177]
21546
21547 2006-08-28  Mike Kestner  <mkestner@novell.com>
21548
21549         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
21550         when the control is focused. [Fixes #79171]
21551
21552 2006-08-28  Mike Kestner  <mkestner@novell.com>
21553
21554         * ListView.cs: size the item and header controls for empty and
21555         unscrollable views.
21556         * ThemeWin32Classic.cs: draw disabled backgrounds.
21557         [Fixes #79187]
21558
21559 2006-08-28  Chris Toshok  <toshok@ximian.com>
21560
21561         * Form.cs: remove unused "active_form" static field.
21562
21563         * Hwnd.cs: lock around accesses to static windows collection.
21564
21565         * Application.cs: lock threads in Exit ().
21566
21567 2006-08-28  Chris Toshok  <toshok@ximian.com>
21568
21569         * NativeWindow.cs: lock around accesses to window_collection.
21570         
21571 2006-08-28  Chris Toshok  <toshok@ximian.com>
21572
21573         * Control.cs: err, fix this the right way, by locking on controls
21574         when using it.  not by making it synchronized.
21575
21576 2006-08-28  Chris Toshok  <toshok@ximian.com>
21577
21578         * Control.cs: make the static "controls" field synchronized, as it
21579         gets updated from multiple threads.
21580
21581 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
21582
21583         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
21584           Prevent other threads from exiting when calling thread sets quit state.
21585         * XEventQueue.cs: Added PostQuitState property
21586
21587 2006-08-27  Chris Toshok  <toshok@ximian.com>
21588
21589         * AsyncMethodData.cs: add a slot for the window handle.
21590
21591         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
21592         window (the destination control's window, not the foster window).
21593
21594         * Control.cs (BeginInvokeInternal): store the window's handle in
21595         the AsyncMethodData.
21596         
21597
21598 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
21599
21600         * XplatUIX11.cs:
21601           - PostQuitMessage: Removed resetting S.D display handle, we might have
21602             another loop started after calling PostQuitMessage (Fixes #79119)
21603           - Created destructor to reset S.D handle
21604
21605 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
21606
21607         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
21608
21609 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21610
21611         * TextControl.cs (Insert): Update the caret position even if we don't
21612           have a handle yet, just don't call the driver in that case.
21613         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
21614           to the end of the new selection text (Fixes #79184)
21615
21616 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21617
21618         * Form.cs (Activate): Only activate if the handle is created)
21619         * Control.c:
21620           - Mark window as invisible when it's disposed
21621           - Check if window handle is created when setting window visible, 
21622             instead of relying just on the is_created variable
21623           - Check if object is disposed when creating the control (Fixes #79155)
21624
21625 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21626
21627         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
21628           when allowing layout again. Otherwise we re-generate the anchoring 
21629           distance to the border again and actually alter what the user wanted
21630           This is ugly, it'd be better if we used DisplayRectangle instead of
21631           ClientRectangle for Control.UpdateDistances, but that causes us to
21632           have other problems (initial anchoring positons would be wrong)
21633           (Fixes #78835)
21634
21635 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21636
21637         * Control.cs:
21638           - The size and location setters shouldn't go directly to 
21639             SetBoundsCore, but to SetBounds, which triggers layout on the
21640             parent, then calls SetBoundsCore. (Related to fix for #78835)
21641           - SetBounds: Moved actual location update code into this function
21642             from SetBoundsCore, to match MS. Added call to PerformLayout if
21643             we have a parent (to trigger resizing of anchored parents if the 
21644             child size has changed (see testcase for #78835) 
21645         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
21646           new control code
21647         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21648
21649 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21650
21651         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21652           System.Drawing when a toplevel window gets closed; there might
21653           be other toplevel windows belonging to the same app (Fixes #78052)
21654
21655 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
21656
21657         * FileDialog.cs: After reading FileDialog settings from mwf_config
21658           use Desktop prefix only if a real folder doesn't exist anymore.
21659         * FontDialog.cs: Added char sets.
21660           It is now possible to select the font, size or style with the
21661           textboxes.
21662
21663 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
21664
21665         * PrintPreviewDialog.cs: Use assembly name constants.
21666
21667 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21668
21669         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21670           scrollbar from whacking it's buttons)
21671
21672 2006-08-24  Chris Toshok  <toshok@ximian.com>
21673
21674         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
21675         in this patch (aggregating setting Left/Top/Width/Height to
21676         setting Bounds on the scrollbars), but the crux of the fix is in
21677         Recalculate, where we scroll by the remaining scroll_position if
21678         we're hiding a scrollbar.  The 2*$5 reward in the comment is
21679         serious.
21680
21681 2006-08-24  Jackson Harper  <jackson@ximian.com>
21682
21683         * MdiClient.cs:
21684         * MdiWindowManager.cs: If the form is made a non-mdi window we
21685         need to remove the form closed event so that closing forms works
21686         correctly.
21687
21688 2006-08-24  Jackson Harper  <jackson@ximian.com>
21689
21690         * Control.cs: Make IsRecreating internal so that the driver can
21691         check it
21692         - Temporarily remove the Hide when controls are removed, its
21693         making a whole bunch of things not work because visibility isn't
21694         getting reset elsewhere correctly
21695         * Form.cs: Need to do a full handle recreation when the mdi parent
21696         is set.
21697         * XplatUIX11.cs: If we are recreating handles don't dispose the
21698         HWNDs.  What was happening is the handles were being recreated in
21699         SendWMDestroyMessages, but then flow continued on in that method
21700         and destroyed the new handles.
21701
21702 2006-08-23  Jackson Harper  <jackson@ximian.com>
21703
21704         * Form.cs: MdiClient is always at the back of the bus
21705         * Control.cs: When the order of items in the collection is changed
21706         we need to reset the all_controls array
21707         - do the same sorta setup thats done when adding a control when a
21708         control is set on the collection.
21709
21710 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
21711
21712         * TextBoxBase.cs (get_Text): Return an empty array if our document
21713           is empty (fixes #79052)
21714
21715 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21716
21717         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21718           on WM_SYSCHAR messages (fixes #79053)
21719
21720 2006-08-23  Chris Toshok  <toshok@ximian.com>
21721
21722         * DataGrid.cs: fix flickering when scrolling vertically.
21723
21724 2006-08-23  Chris Toshok  <toshok@ximian.com>
21725
21726         * DataGrid.cs (EndEdit): only invalidate the row header when we
21727         need to.
21728
21729 2006-08-23  Chris Toshok  <toshok@ximian.com>
21730
21731         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
21732         methods.  fixes the flicker when scrolling around.
21733
21734 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21735
21736         * FileDialog.cs: Making sure the control is created before we get a 
21737           chance to use it with BeginInvoke (Fixes #79096)
21738
21739 2006-08-23  Chris Toshok  <toshok@ximian.com>
21740
21741         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
21742         width to use when painting the rows.
21743
21744 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
21745
21746         * TextBoxBase.cs:
21747           - Throw ArgumentException if a negative value is passed to SelectionLength
21748           - Update the selection end if start is moved. end needs to be always
21749             after start. (Fixes #79095)
21750           - Track selection length; MS keeps the selection length even if start
21751             is changed; reset on all other operations affection selection
21752
21753 2006-08-22  Jackson Harper  <jackson@ximian.com>
21754
21755         * TreeView.cs: Make sure both scrollbars get displayed and sized
21756         correctly when the other bar is visible.
21757         - Use the original clip rectangle for checking if the area between
21758         the two scrollbars is visible, not the viewport adjusted clipping
21759         rectangle.
21760
21761 2006-08-22  Jackson Harper  <jackson@ximian.com>
21762
21763         * Binding.cs: We don't use IsBinding because it requires the
21764         control to be created, which really shouldn't be necessary just to
21765         set a property on the control.
21766
21767 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21768
21769         * ComboBox.cs: Some CB.ObjectCollection methods must throw
21770         ArgumentNullReferenceException when the argument is null.
21771
21772 2006-08-21  Jackson Harper  <jackson@ximian.com>
21773
21774         * Timer.cs: Track the thread that the timer is started in (NOT
21775         CREATED), this way messages for it will only be triggered on its
21776         queue.
21777         * XEventQueue.cs: Track the timers here, this makes timers per
21778         thread, like MS.
21779         * XplatUIX11.cs: The timers are moved to the XEventQueue.
21780
21781 2006-08-19  Chris Toshok  <toshok@ximian.com>
21782
21783         * XplatUIX11.cs: after further communication with pdb, we get the
21784         best of both worlds.  SetZOrder working for un-Mapped windows, and
21785         no X errors for un-mapped windows.
21786
21787 2006-08-19  Chris Toshok  <toshok@ximian.com>
21788
21789         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
21790         as it was causing pdn toolbars to not have the correct stacking.
21791
21792 2006-08-18  Mike Kestner  <mkestner@novell.com> 
21793
21794         * ListView.cs : guard against negative ClientArea.Width in scrollbar
21795         calculation.  Not sure why control should ever be setting a negative
21796         width though.  Fixes #78931.
21797
21798 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21799
21800         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
21801         null items in ObjectCollection class.
21802         * ListBox.cs.: Likewise.
21803
21804 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
21805
21806         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
21807           as the base method in ThemeWin32Classic should work fine.
21808           Fixed bug #78607.
21809
21810 2006-08-18  Jackson Harper  <jackson@ximian.com>
21811
21812         * Binding.cs: When validating if the value entered doesn't convert
21813         properly reset to the old value.
21814         * RadioButton.cs: Don't fire click when we get focus.
21815
21816 2006-08-18  Jackson Harper  <jackson@ximian.com>
21817
21818         * FileDialog.cs: Paint the selection on the directory combobox the
21819         same way as on MS. 
21820
21821 2006-08-17  Jackson Harper  <jackson@ximian.com>
21822
21823         * ErrorProvider.cs: Don't allow the error control to be selected.
21824         * Control.cs: Don't send the SetFocus messages, the control
21825         activation will do this, and if we do it blindly here validation
21826         does not work.
21827
21828 2006-08-17  Jackson Harper  <jackson@ximian.com>
21829
21830         * Control.cs:
21831         * ContainerControl.cs: Make validation events fire in the correct
21832         order.  TODO: For some reason the first validation event is not
21833         getting fired.
21834
21835 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21836
21837         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
21838
21839 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21840
21841         * ComboBox.cs : implement scroll wheel support for popped-down
21842         state. Fixes #78945. 
21843
21844 2006-08-17  Jackson Harper  <jackson@ximian.com>
21845
21846         * TreeView.cs: Specify treeview actions (old patch that didn't get
21847         committed for some reason).
21848         - Don't let the mouse wheel scroll us too far.  Just want to make
21849         the bottom node visible, not scroll it all the ways to the top.
21850
21851 2006-08-17  Jackson Harper  <jackson@ximian.com>
21852
21853         * XplatUIX11.cs: Mouse wheel events go to the focused window.
21854
21855 2006-08-17  Mike Kestner  <mkestner@novell.com> 
21856
21857         * ComboBox.cs : don't do mouseover selection in simple mode.
21858
21859 2006-08-16  Jackson Harper  <jackson@ximian.com>
21860
21861         * Form.cs: Fire the closing events for all the mdi child windows
21862         when a window is closed.  If the cancel args are set to true, the
21863         main window still gets the event fired, but it doesn't not close.
21864         * MdiWindowManager.cs: Do this closing cleanup in a Closed
21865         handler, instead of when the button is clicked, so cancelling the
21866         close works correctly.
21867         * ComboBox.cs: Send the mouse down to the scrollbar.
21868
21869 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21870
21871         * ListBox.cs: When passing 'null' to SelectedItem,
21872         set SelectedIndex to -1, to unselect items. This is the
21873         observed behaviour in .Net.
21874
21875 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
21876
21877         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
21878           MS flags saying there won't be any. (fixes #78800)
21879         * Control.cs (HandleClick): Made virtual
21880
21881 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
21882
21883         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
21884           cultures. Fixed bug #78399.
21885
21886 2006-08-16  Jackson Harper  <jackson@ximian.com>
21887
21888         * Form.cs: Use the MdiClients MdiChildren property to access
21889         MdiChildren instead of creating the array from the child controls.
21890         * MdiClient.cs: Maintain a separate array of the mdi children, so
21891         that insertion order is maintained when the Z-order is changed.
21892
21893 2006-08-16  Mike Kestner  <mkestner@novell.com> 
21894
21895         * ListView.cs : add an ItemComparer and default to it for sorting.
21896         Fixes #79076, but sorting needs a complete overhaul to be compat with
21897         MS.
21898
21899 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
21900
21901         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
21902
21903 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21904
21905         * Hwnd.cs (Mapped): Properly traverse the tree
21906
21907 2006-08-15  Chris Toshok  <toshok@ximian.com>
21908
21909         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
21910         pass manager.Current.GetType() to ParseData.  It has to be the
21911         property type.  So, hold off doing the ParseData until we're in
21912         SetPropertyValue where we know the type.  This fixes the crash in
21913         #78821 but the textbox is still empty.
21914
21915 2006-08-15  Chris Toshok  <toshok@ximian.com>
21916
21917         * DataGrid.cs:
21918         - when we're scrolling, only call Edit() again if the
21919         current cell is still unobscured. Fixes bug #78927.
21920         - when handling mousedown on a cell, ensure the cell is visible
21921         before calling Edit.
21922         - remove the properties from DataGridRow, and remove the
21923         DataGridParentRow class altogether.
21924         
21925
21926 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21927
21928         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
21929           fire OnTextChanged by ourselves. There's no point calling base,
21930           we don't set the base value anywhere else. Fixes #78773.
21931
21932 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21933
21934         * ListBox.cs: Call CollectionChanged when modifying
21935         an item from Items indexer, to update the actual items
21936         in the list box.
21937
21938 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21939
21940         * PrintDialog.cs: Small fixes for focus and a pair of checks,
21941         to match .Net behaviour.
21942
21943 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21944
21945         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21946
21947 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
21948
21949         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21950
21951 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
21952
21953         * MessageBox.cs: Prevent potential NRE exception.
21954         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21955
21956 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21957
21958         * MessageBox.cs: Calculate the owner of a messagebox, also make
21959           it topmost. Fixes #78753
21960
21961 2006-08-14  Chris Toshok  <toshok@ximian.com>
21962
21963         * XplatUIX11.cs: A couple of fixes so that metacity will let us
21964         programmatically move windows.  first, set the PPosition hint as
21965         well as the USPosition hint.  Second include some code from pdb
21966         that sets the window type to NORMAL when we set the transient for
21967         hint.  This is because, in the absence of a window type, metacity
21968         thinks any window with TransientFor set is a dialog, and refuses
21969         to let us move it programmatically.  fascists.
21970
21971 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
21972
21973         * XplatUIX11.cs: When setting normal hints, take into consideration
21974           an different hints previously set so we don't delete them (fixes #78866)
21975
21976 2006-08-12  Chris Toshok  <toshok@ximian.com>
21977
21978         * ToolBarButton.cs: make Layout return a boolean, if something to
21979         do with the button's layout changed.
21980
21981         * ToolBar.cs:
21982         - add another parameter to Redraw, @force, which all existing
21983           calls set to true.
21984         - make the Layout function return a boolean which is true if the
21985           layout has actually changed.  Redraw now uses this (and @force)
21986           to determine when to invalidate.  At present the only place
21987           where @force can be false is the call from OnResize, when
21988           background_image == null.  So, resizing a toolbar when the
21989           layout doesn't change results in no drawing.
21990
21991 2006-08-12  Chris Toshok  <toshok@ximian.com>
21992
21993         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
21994         the VScrollBar and HScrollbar reversed.  oops.
21995
21996         * DataGrid.cs: fix the logic that assigns sizes to the implicit
21997         scrollbars.  we were assigning them twice (once in
21998         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21999         therefore causing two scrollbar resizes (and redraws?) to happen
22000         per grid resize.
22001
22002 2006-08-12  Chris Toshok  <toshok@ximian.com>
22003
22004         * ToolBarButton.cs: redraw the entire button if the theme tells us
22005         to.
22006
22007         * Theme.cs: add ToolBarInvalidateEntireButton.
22008
22009         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
22010         buttons, just the border.
22011
22012         * ThemeNice.cs: redraw the entire toolbar button since we need to
22013         draw the highlight image.
22014
22015         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
22016         we need to redraw the entire button (not just the border).
22017
22018 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22019
22020         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
22021           for vertical bars. Fixes the mismatches shown by #78513
22022
22023 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
22024
22025         * FileDialog.cs: If a saved/remembered path doesn't exist
22026           anymore, fall back to "Desktop".
22027
22028 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
22029
22030         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
22031           parent. It's apparently legal to not have one
22032         * XplatUIX11.cs:
22033           - SetZOrder: Don't try to set Z-Order on an unmapped window
22034           - CreateWindow: 0,0 are legal coordinates for a window. don't move
22035             it unless the coordinates are negative
22036
22037 2006-08-10  Mike Kestner  <mkestner@novell.com>
22038
22039         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
22040         when setting to null per msdn docs.  Fixes #78854.
22041
22042 2006-08-10  Chris Toshok  <toshok@ximian.com>
22043
22044         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
22045         flickering by setting a clip rectangle on the Graphics when we
22046         need to redraw just a particular menuitem.  Also, rename "OnClick"
22047         to "OnMouseDown" to reflect what it actually is.
22048         
22049         * Form.cs: track the OnMouseDown change.
22050
22051 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
22052
22053         * CommonDialog.cs: Properly inherit the CreateParams from the form
22054           and only change what we need. Fixes #78865
22055
22056 2006-08-10  Chris Toshok  <toshok@ximian.com>
22057
22058         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
22059         flickering in flat mode (and most of the flickering in general) by
22060         only invalidating the button border (and not the entire rectangle)
22061         when the state changes.  A couple of cases still flicker:
22062         ToggleButtons, and the dropdown arrow case when the user mouse
22063         ups.
22064
22065 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
22066
22067         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
22068           for german keyboards. Numlock state shouldn't affect the behaviour
22069           of the Del key. Fixes bug #78291.
22070
22071 2006-08-10  Chris Toshok  <toshok@ximian.com>
22072
22073         * ListControl.cs: remove the items.Clear line from BindDataItems,
22074         as this is the first thing done by both subclasses in their
22075         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
22076         passed -1, refresh the list.  This gets databinding working when
22077         the datasource is set on the list before the datasource is
22078         populated (as in wf-apps/ReportBuilder.)
22079
22080         * ComboBox.cs: remove the argument to BindDataItems.  This call
22081         should really go away, and be initiated by the ListControl code.
22082
22083         * ListBox.cs: same.
22084
22085 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22086
22087         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
22088           if no data is in the document when the control is displayed
22089
22090 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
22091
22092         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
22093           yes (fixes #78806)
22094         * TextControl.cs: 
22095           - PositionCaret: Allow positioning of caret but don't call methods 
22096             requiring a handle if the window isn't created yet
22097           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
22098           - owner_HandleCreated: Don't position the caret, just update it's 
22099             location. User might have already set a different position
22100
22101 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
22102
22103         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
22104           windows. Screws up the returned coordinates for child windows. 
22105           Fixes #78825. I'm hoping this doesn't break something, since the
22106           code was explicitly put in 8 months ago, but no bug was attached.
22107           Menus still seem to work properly.
22108
22109 2006-08-08  Chris Toshok  <toshok@ximian.com>
22110
22111         * DataGrid.cs: make BeginInit/EndInit actually do what they're
22112         supposed to do - delay data binding until the EndInit call.  Also,
22113         make the table style collection's CollectionChangeAction.Refresh
22114         work properly.
22115
22116         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
22117         (with action = Refresh) when a consituent table's MappingName is
22118         changed.
22119
22120 2006-08-08  Chris Toshok  <toshok@ximian.com>
22121
22122         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
22123         Invalidate, since changing the text can change the size of the all
22124         toolbar buttons.
22125
22126 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22127
22128         * Form.cs (AddOwnedForm): Still need to add the form to our listif
22129           we don't have it yet
22130
22131 2006-08-08  Chris Toshok  <toshok@ximian.com>
22132
22133         * PrintControllerWithStatusDialog.cs: don't .Close() the status
22134         dialog, as this causes X errors later on, since we actually
22135         destroy the window.  Instead, .Hide() it.
22136
22137 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
22138
22139         * ComboBox.cs: Added focus reflection for popup window
22140         * XplatUIX11.cs: 
22141           - Removed transient setting for non-app windows for now, not sure it
22142             was needed
22143           - Fixed logic checking if we have captions when deciding 
22144             override_redirect, WS_CAPTION is two bits and a 0 check was not
22145             sufficient
22146           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
22147             complicated
22148         * Form.cs: 
22149           - AddOwnedForm: Don't just add the form to the list, call the property
22150             to ensure the driver is informed about the ownership as well
22151           - CreateHandle: Set the TopMost status in the driver if we have an owner
22152         * XplatUI.cs: Fixed debug statement
22153
22154 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
22155         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22156           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
22157           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
22158           TrackBarRenderer.cs: Make constructor private.
22159         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
22160         * ProfessionalColorTable.cs: Make properties virtual.
22161
22162 2006-08-06  Duncan Mak  <duncan@novell.com>
22163
22164         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
22165         is not changing.
22166
22167 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22168         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
22169           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
22170           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
22171           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
22172           Initial import of new 2.0 classes.
22173
22174 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22175         * Application.cs: Add 2.0 VisualStyles properties.
22176
22177 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
22178         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22179           XplatUIX11.cs: Create property to allow access to existing private
22180           variable "themes_enabled"
22181
22182 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22183
22184         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
22185         file size, as otherwise our class libraries fail using windows. Fixes
22186         bug #78759.
22187
22188 2006-08-04  Jackson Harper  <jackson@ximian.com>
22189
22190         * Form.cs:
22191         * XplatUIX11.cs: Move the toolwindow window manager creation into
22192         the X11 driver, this way on win32 we can let windows create/handle
22193         the toolwindows.
22194
22195 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22196
22197         * PrintDialog.cs: Remove some redundant checks, add some others,
22198         clean some code, and move the focus to the text boxes when the
22199         values are incorrect.
22200
22201 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
22202
22203         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
22204
22205 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22206
22207         * NumericUpDown.cs: Setting the Minimum and Maximum is now
22208           handled correctly. Fixes bug #79001.
22209
22210 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22211
22212         * PrintDialog.cs: The "Copies" numeric up down must have
22213         set the Minimum property to 1; only if the value is bigger
22214         than 1, activate "Collate" check box. This is the behaviour of .Net.
22215         Also modify the Document elements only if it is not null.
22216
22217 2006-08-03  Jackson Harper  <jackson@ximian.com>
22218
22219         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
22220         length. (We have a larger array then actual node count).
22221                 
22222 2006-08-03  Jackson Harper  <jackson@ximian.com>
22223
22224         * ComboBox.cs: Don't show selection by default.
22225         - The SelectAll isn't needed here, since the focus code should do
22226         that
22227         - DDL style lists to manual selection drawing, so when they
22228         get/lose focus they have to invalidate.
22229
22230 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
22231
22232         * TextBoxBase.cs: Don't always show all selections by default.
22233
22234 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
22235         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
22236           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
22237           Fixed various typos.
22238
22239 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
22240
22241         * Control.cs: Removing the controls in a ControlCollection with
22242           Clear now hides the controls as expected. Fixes bug #78804. 
22243
22244 2006-08-03  Jackson Harper  <jackson@ximian.com>
22245
22246         * Control.cs: Revert previous focus patch, it breaks reflector.
22247
22248 2006-08-03  Jackson Harper  <jackson@ximian.com>
22249
22250         * ComboBox.cs: Cleanup selection and focus with the combobox.
22251         This also eliminates some duplicated keyboard code, since now
22252         everything is handled by the main class.
22253         - Make list selection work on mouse up instead of down, to match
22254         MS.
22255
22256 2006-08-02  Jackson Harper  <jackson@ximian.com>
22257
22258         * Control.cs: Setting focus needs to go through the whole
22259         selection mechanism.
22260
22261 2006-08-02  Chris Toshok  <toshok@ximian.com>
22262
22263         * PrintPreviewDialog.cs: change MinimumSize to use
22264         base.MinimumSize so it works.
22265
22266 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
22267
22268         * TextControl.cs:
22269           - UpdateCaret: Added sanity check in case caret isn't defined yet
22270           - Line.Delete: Now updating selection and caret markers if we're
22271             transfering a node (Properly fixes #78323)
22272           - SetSelectionEnd: Added sanity check
22273         * TextBoxBase.cs: Removed broken attempt to fix #78323
22274
22275 2006-08-01  Chris Toshok  <toshok@ximian.com>
22276
22277         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
22278         Close() call is handled in Form, not here.
22279
22280 2006-08-01  Chris Toshok  <toshok@ximian.com>
22281
22282         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
22283         layout/rendering.
22284
22285         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
22286         for sizes < 100% zoom.  The code now aggressively attempts to keep
22287         from calling document.Print (), and tries not to use the scaling
22288         g.DrawImage whenever possible (it still does if you scale to >
22289         100%, since usually that involves huge images).
22290
22291         * PrintPreviewControl.cs: hook up the close button.
22292
22293 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
22294         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
22295           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
22296           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
22297           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
22298           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
22299           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
22300           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
22301           Removed [Serializable] for 2.0 Event Handlers.
22302
22303 2006-07-31  Jackson Harper  <jackson@ximian.com>
22304
22305         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
22306         * TextControl.cs: Uncomment out the body of this method.
22307
22308 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
22309
22310         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
22311           standard cursors.
22312
22313 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22314
22315         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
22316           that embed TextBox and need selections visible even if textbox is not
22317           focused to enforce that behaviour.
22318         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
22319           selection drawing
22320
22321 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22322
22323         * TextControl.cs:
22324           - Added new SetSelectionStart/SetSelectionEnd overloads
22325           - Fixed viewport width assignment to be accurate
22326           - Adjusted alignment line shift calculations to allow cursor on right
22327             aligned lines to be always visible at the right border (like MS)
22328         * TextBoxBase.cs:
22329           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
22330           - TextBoxBase_SizeChanged: recalculating canvas on size changes
22331           - CalculateScrollBars: Use ViewPort size instead of window size, to
22332             properly consider space occupied by the border and scrollbars 
22333             (Fixes #78661)
22334           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
22335             calculations; no longer leaves artifacts
22336           - CaretMoved: Adjusted window scrolling to match MS and fixed several
22337             calculation bugs (Still missing right/center align calculations)
22338
22339 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
22340
22341         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
22342           use of both scroll rect and clip rect, as they do the same.
22343
22344 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
22345
22346         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
22347           in the event handler (fixes #78912)
22348
22349 2006-07-31  Chris Toshok  <toshok@ximian.com>
22350
22351         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
22352         grid.ListManager.Count, since grid.ListManager might be null.
22353         This of course begs the question "why are we drawing rows for a
22354         grid with no list manager (and therefor no rows)?"  Fixes the
22355         crash in bug #78929.
22356
22357 2006-07-31  Chris Toshok  <toshok@ximian.com>
22358
22359         * RelatedPropertyManager.cs: Don't always chain up to the parent
22360         ctor.  instead, call SetDataSource if the parent's position is !=
22361         -1.  Fixes the crash in #78822.
22362
22363 2006-07-31  Chris Toshok  <toshok@ximian.com>
22364
22365         * DataGrid.cs (get_ListManager): use field instead of property
22366         accessors for datasource and datamember.
22367         (RowsCount): make internal again.
22368         (OnMouseDown): end edits before resizing columns/rows.
22369         (OnMouseUp): restart edits after resizing columns/rows.
22370
22371 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
22372
22373         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
22374           This fixes the situation where the last set cursor is displayed
22375           whenever the mouse is over scrollbars.
22376
22377 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22378
22379         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
22380         Document properties, as well as initial values.
22381
22382 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
22383
22384         * XplatUIWin32.cs (SetBorderStyle): Setting both border
22385           and ClientEdge results in a 3-pixel border, which is
22386           wrong.
22387
22388 2006-07-28  Jackson Harper  <jackson@ximian.com>
22389
22390         * TreeNodeCollection.cs: Fix the clear method.
22391         - Fix the Shrink also
22392
22393 2006-07-27  Jackson Harper  <jackson@ximian.com>
22394
22395         * TreeView.cs: Make sure the visible order is computed when we
22396         attempt to size the scrollbars (for trees that mess with the
22397         scrolling when they shouldn't.
22398         - Make sure to give the scrollbars valid values.
22399
22400 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22401
22402         * XplatUIX11.cs: Move motion compression code to where it
22403           has less performance impact
22404
22405 2006-07-26  Jackson Harper  <jackson@ximian.com>
22406
22407         * UpDownBase.cs: When the control is selected make the child
22408         controls non selectable, so that a click on them won't do a
22409         focus/unfocus cycle.
22410         - Don't give focus to the text box when the spinner is selected.
22411         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
22412
22413 2006-07-26  Chris Toshok  <toshok@ximian.com>
22414
22415         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
22416         satisfied with this solution.  If the bitmaps are small, we should
22417         just cache them in the PrintPreviewDialog and draw them here.
22418         Also, the layout is broken for the 2-up and 3-up cases.
22419
22420         * Theme.cs: add PrintPReviewControlPaint.
22421
22422         * PrintPreviewDialog.cs: first pass implementation.
22423
22424         * PrintPreviewControl.cs: first pass implementation.  No
22425         scrollbars yet.
22426
22427         * PrintDialog.cs: only validate fields if that particular portion
22428         of the UI is enabled.  Also, set the document's controller to a
22429         PrintControllerWithStatusDialog wrapping the document's print
22430         controller.
22431
22432         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
22433         bring up a SaveFileDialog (i hope we don't want to match the
22434         behavior of the crappy windows file entry) and set the
22435         PrinterSettings.PrintFileName accordingly.
22436
22437 2006-07-26  Jackson Harper  <jackson@ximian.com>
22438
22439         * ContainerControl.cs: Add a field that disables auto selecting
22440         the next control in a container when the container is activated.
22441         * UpDownBase.cs: Don't select the text box when the up down is
22442         selected.
22443
22444 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
22445
22446         * XEventQueue.cs: Added methods for peeking (used for compression
22447           of successive events)
22448         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
22449           mouse move events (fixes #78732)
22450
22451 2006-07-25  Jackson Harper  <jackson@ximian.com>
22452
22453         * UpDownBase.cs: Use an internal class for the textbox so that we
22454         can control focus.  the updown control should always have focus,
22455         if either the text area or the buttons are clicked.
22456         - Send the key messages to the textbox, since it never actually
22457         has focus
22458         - Activate and decativate the textbox caret.
22459
22460 2006-07-24  Jackson Harper  <jackson@ximian.com>
22461
22462         * Control.cs: Use the directed select when selecting a control,
22463         this way the container controls override will get called and the
22464         whole ActiveControl chain will get triggered.  TODO: probably need
22465         to make sure this gets done everywhere instead of the old
22466         Select(Control).
22467         * ContainerControl.cs: Implement the directed Select method to
22468         find and activate the correct child control.    
22469         
22470 2006-07-22  Mike Kestner  <mkestner@novell.com>
22471
22472         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
22473         menu handling code so that clicks without a grab work too.
22474         [Fixes #78914]
22475
22476 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
22477
22478         * FileDialog.cs: Enable the BackButton when dirstack has one element.
22479           Added some small optimizations.
22480
22481 2006-07-21  Matt Hargett  <matt@use.net>
22482
22483         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
22484
22485 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
22486
22487         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
22488           tests pass and match MS in some strange border cases.
22489
22490 2006-07-21  Chris Toshok  <toshok@ximian.com>
22491
22492         * ThemeWin32Classic.cs: handle drawing of the relation links and
22493         parent row buttons.
22494
22495         * Theme.cs: change args to DataGridPaintParentRow.
22496
22497         * DataGrid.cs: Don't use controls for the relation links and
22498         parent buttons, so we have to handle all their interactions in
22499         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
22500         when we're navigating through child tables, so we can reinstate
22501         selection, expanded state, current cell, etc.
22502
22503 2006-07-20  Chris Toshok  <toshok@ximian.com>
22504
22505         * ToolBar.cs: When we redraw a button, for whatever reason,
22506         there's no reason to redraw the entire toolbar.  Also, don't call
22507         Control.Refresh from within Redraw, as it's much heavier than
22508         Invalidate (which is really what we want).
22509
22510 2006-07-20  Chris Toshok  <toshok@ximian.com>
22511
22512         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
22513         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
22514         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
22515         traces from within a debug IBindingList datasource
22516         (in mono/winforms/datagrid) for *days*, I've finally gotten things
22517         to work in a similar fashion.
22518
22519 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22520
22521         * ListBox.cs: Don't call Sort () when setting 
22522         the Sorted property to false (avoid an unnecessary sort).
22523
22524 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22525
22526         * ListControl.cs: DataSource should throw an ArgumentException
22527         instead of a normal exception when the argument is not of the 
22528         correct type.
22529
22530 2006-07-20  Mike Kestner  <mkestner@novell.com>
22531
22532         * Control.cs: add InternalPreProcessMessage to allow us to steal
22533         key events before MWF gets its paws on them.  Adapted from a
22534         suggestion by eno.
22535         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
22536         up/down/left/right navigation. Override the new internal control
22537         method to steal the events since they never make it to WndProc.
22538         * ToolBarButton.cs: don't worry about pushed when setting hilight
22539         since the drawing code prefers pushed to hilight. Invalidate on 
22540         Hilight changes. Fixes #78547 and #78525.
22541
22542 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
22543
22544         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
22545           the canvas size. Fixes #78868
22546
22547 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
22548
22549         * Splitter.cs: Track requested split position until first layout
22550           is performed. Fixes #78871
22551
22552 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
22553
22554         * Application.cs: Removed code that forces 1.x for the version
22555           number if the version started with 0. Not sure why that code was
22556           there and I couldn't find any bugs that indicated we needed it.
22557           Fixes #78869
22558
22559 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
22560
22561         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
22562           ResetDefaults(), just write some output to the console until it's
22563           implemented. Fixes bug #78907 for now. Eliminated two warnings.
22564
22565 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
22566
22567         * PropertyGridView.cs: set StartPosition of drop down forms
22568         so they appear in correct initial spot.  Fixes #78190.
22569
22570 2006-07-19  Mike Kestner  <mkestner@novell.com>
22571
22572         * ThemeWin32Classic.cs: use parent background color when drawing
22573         flat toolbars.  Restructure the conditionals to make sure non-flat
22574         non-Divider toolbars are filled too.  Fixes #78837.
22575
22576 2006-07-19  Mike Kestner  <mkestner@novell.com>
22577
22578         * ListBox.cs: Sort on collection changes even if the handle
22579         isn't created yet.  Fixes #78813.
22580
22581 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22582
22583         * ListControl.cs: DisplayMember should never be null,
22584         and now we assign String.Empty when null is passed to it (this
22585         is the .Net way).
22586
22587 2006-07-17  Mike Kestner  <mkestner@novell.com>
22588
22589         * ListViewItem.cs: restructure Font and subitem Font handling 
22590         to hold a specific font and refer back to owner on null.
22591         Fixes #78761.
22592
22593 2006-07-17  Mike Kestner  <mkestner@novell.com>
22594
22595         * ToolBar.cs: bandaid for side-effect of previous patch which was
22596         discarding explicit heights for non-AutoSize toolbars.  Need to
22597         extend my format tester to deal with AutoSize=false. Fixes #78864.
22598
22599 2006-07-15  Jackson Harper  <jackson@ximian.com>
22600
22601         * LabelEditTextBox.cs:
22602         * TreeView.cs: Use a new LabelEdit class for node editing, this
22603         class automatically 'closes' itself when it gets the enter key or
22604         loses focus.
22605         - Use the client rectangle when setting the trees scrollbars, so
22606         border style is taken into account.
22607         
22608 2006-07-14  Jackson Harper  <jackson@ximian.com>
22609
22610         * TreeNode.cs:
22611         * TreeView.cs: Make the editing work similar to MSs, firing the
22612         events correctly and ending edits correctly.
22613
22614 2006-07-14  Mike Kestner  <mkestner@novell.com>
22615
22616         * ToolBarButton.cs:
22617         * ToolBar.cs: layout restructuring and redraw enhancements to support
22618         formatting changes gracefully, like setting TextAlign, ImageList, 
22619         ButtonSize, and Appearance.  Handles explicit button sizing quirks
22620         of the MS controls.  Things like flat toolbars ignoring button size
22621         but becoming constant sized at the largest button's size.  Normal
22622         toolbars with an image set cannot be shrunk smaller than the image,
22623         but text can be clipped/ignored.
22624         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
22625         is zero.  Seems like DrawString should be smart enough to not put
22626         anything on screen though. Also trim labels and ellipsize at the char
22627         boundary, not word.
22628         Fixes #78711 and #78483.
22629
22630 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22631
22632         * FolderBrowserDialog.cs: Disable "New Folder" button and
22633           "New Folder" contextmenu menuitem if a folder like "My Computer"
22634           is selected.
22635
22636 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22637
22638         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
22639         * FolderBrowserDialog.cs:
22640           - Use MWFConfig to store and read size and position settings
22641           - Added code to create a new folder (button or context menu).
22642             Use TreeView labeledit to change the name of the new folder.
22643
22644 2006-07-14  Jackson Harper  <jackson@ximian.com>
22645
22646         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
22647         when the tree is scrolled we end editing.
22648
22649 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
22650
22651         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22652           Down arrows
22653
22654 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
22655
22656         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22657         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22658         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22659         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22660         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22661         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22662         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22663         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22664         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22665         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22666         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22667         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22668         ListViewItemSelectionChangedEventHandler.cs,
22669         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22670         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22671         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22672         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22673         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22674         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22675         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22676         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
22677         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
22678         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22679         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22680         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22681         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22682         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22683         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22684         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22685         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22686         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22687         WebBrowserNavigatingEventHandler.cs, 
22688         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22689
22690 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
22691
22692         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22693         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22694         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22695         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22696         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22697         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22698         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22699         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22700         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22701         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22702         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22703         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22704         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22705         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22706         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22707         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22708         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22709         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22710         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22711         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22712         ListViewItemStates.cs, MaskFormat.cs: Added
22713
22714 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
22715
22716         * PropertyGridView.cs: Fix keyboard navigation of drop down.
22717         Patch from eno for bug 78558.
22718         
22719 2006-07-13  Jackson Harper  <jackson@ximian.com>
22720
22721         * TreeView.cs: When an edit is finished make sure that the
22722         selected node is visible.
22723         - When setting the top/bottom use the scrollbars is_visible, so
22724         everything will be set correctly even if the tree isn't visible
22725         yet.
22726
22727 2006-07-13  Jackson Harper  <jackson@ximian.com>
22728
22729         * ComboBox.cs: Revert the item->index part of my previous patch.
22730         * TreeView.cs: Use LostFocus instead of Leave for detecting when
22731         the edit box has lost focus (duh).
22732         - Just make the edit box not visible when we get return, that will
22733         take the focus, which will call EndEdit
22734         * TreeNode.cs When we start editing, notify the treeview.
22735
22736 2006-07-12  Jackson Harper  <jackson@ximian.com>
22737
22738         * ComboBox.cs: Clear out old items before setting the item list.
22739         This prevents databound controls from having their items added
22740         twice.
22741         - Switch the combobox to use indices whereever possible instead of
22742         using Item's.  This allows usto navigate through lists that have
22743         more then one item with the same string value (ie a, b, b, a).
22744         - Scroll the listboxes scrollbar when a non visible item is
22745         highlighted
22746         - Allow keypress to cycle through all the possible values. For
22747         example if you have b1, b2, b3 and hold down the B key all the
22748         values will be cycled through.
22749         
22750 2006-07-12  Jackson Harper  <jackson@ximian.com>
22751
22752         * TextBoxBase.cs:
22753         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
22754         this using the internal methods.
22755         * Control.cs: Add OnGotFocusInternal.  A new method that allows
22756         controls to "override" OnGotFocus and change focus behavior if
22757         needed.
22758         - Same thing for LostFocus
22759         * ComboBox.cs: Pass off focus to the text control properly.
22760
22761 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
22762
22763         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
22764         * FolderBrowserDialog.cs: Almost a complete rewrite.
22765           - Better support for Environment.Specialfolders
22766           - Added support for MWFVFS
22767           - Made setting SelectedPath work
22768
22769 2006-07-12  Jackson Harper  <jackson@ximian.com>
22770
22771         * Control.cs: Optimze getting all the controls.
22772
22773 2006-07-11  Jackson Harper  <jackson@ximian.com>
22774
22775         * ContainerControl.cs: Override SETFOCUS in the container control,
22776         so that it is not selected on mouse click.
22777
22778 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
22779
22780         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
22781           Hopefully we will have a better way once all of focus is complete.
22782
22783 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
22784
22785         * ThemeWin32Classic.cs: Commented out some debug code and fixed
22786           a compile error with csc.
22787
22788 2006-07-11  Jackson Harper  <jackson@ximian.com>
22789
22790         * Control.cs: When hiding a control only select the next control
22791         if the current control was focused.
22792         - Don't handle enter/leave when setting/killing focus, this is
22793         done by the container control.
22794         - Remove is_selected, it's not needed anymore.
22795         - Add utility methods for selecting a child control, and for
22796         firing the Enter/Leave events.
22797         * ContainerControl.cs: When a control is activated fire the
22798         enter/leave events.
22799         - Don't wrap when processing the tab key, so that focus can be
22800         moved outside of the container.
22801         - Use the correct active control
22802
22803 2006-07-11  Jackson Harper  <jackson@ximian.com>
22804
22805         * ComboBox.cs: Remove some debug code that was blinding me.
22806         * UpDownBase.cs: These controls actually aren't implicit, they are
22807         visible to the user.
22808
22809 2006-07-10  Chris Toshok  <toshok@ximian.com>
22810
22811         * DataGrid.cs: move back to the is_adding boolean field.  god i
22812         hate this is_editing/is_adding/is_changing stuff.
22813
22814 2006-07-10  Chris Toshok  <toshok@ximian.com>
22815
22816         * DataGridTableStyle.cs: just check if the property type is bool.
22817         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
22818         Don't use CanRenderType.
22819
22820         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
22821         if our text == NullText.  Remove CanRenderType.
22822
22823         * DataGridBoolColumn.cs: nuke CanRenderType.
22824
22825         * DataGrid.cs: reenable some code to end the current edit inside
22826         of set_CurrentCell.  This fixes the other 1.1.16 regression.
22827         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
22828         Also, remove the visible_row_count arg from CalcRowHeaders, since
22829         we don't need to worry about the actual height of the area.
22830
22831 2006-07-10  Chris Toshok  <toshok@ximian.com>
22832
22833         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
22834         mode, just return.
22835
22836         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
22837         the real sense of the IsInEditOrNavigateMode property (true =
22838         navigate, false = edit).  Also, update OnKeyPress to reflect this.
22839
22840         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
22841         column style exists, we still need to set its property descriptor
22842         to match up with our list manager.
22843
22844 2006-07-10  Chris Toshok  <toshok@ximian.com>
22845
22846         * ThemeWin32Classic.cs: implement the new row/header painting
22847         approach.  The parent row painting will likely go away and
22848         replaced with label controls, but the rest seems to work ok (and
22849         efficiently).
22850
22851         * Theme.cs: change the way we draw datagrid rows.  we don't draw
22852         the row headers as a block now.  Instead we draw them in the
22853         normal draw-row loop.  Add some calls for drawing parent rows and
22854         relation rows.
22855
22856         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
22857         a default table style.  Set the defaults from ThemeEngine.Current,
22858         not SystemColors.  Fix lots of misc issues with property setters.
22859
22860         * DataGrid.cs: move loads of style information out of this class
22861         as it's being duplicated with DataGridTableStyle.  keep track of a
22862         special DataGridTableStyle for the properties we used to mirror
22863         here.  Switch all the style properties to access this table style
22864         instead of instance fields of this class.  Also add a internal
22865         class to represent parent rows (more needs to be stored here, like
22866         the selection state from the parent table, as well as the
22867         expansion state.)  Also, for datasources with relations, do the
22868         right thing for collapse/expand, and add support for the
22869         navigation/parent row buttons.
22870
22871         Lastly, fix the crash in the 1.1.16 build.
22872
22873         * GridTableStylesCollection.cs: make the explicit interface
22874         implementations call the class's methods as opposed to duplicating
22875         them.
22876
22877         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
22878         0 so the text doesn't jump around when we move the cursor.
22879
22880 2006-07-10  Jackson Harper  <jackson@ximian.com>
22881
22882         * TextBoxBase.cs:
22883         * ListBox.cs: Match MS's ToString (this makes debugging focus
22884         stuff infinitely easier).
22885
22886 2006-07-10  Jackson Harper  <jackson@ximian.com>
22887
22888         * Control.cs (SelectNextControl): When checking the control's
22889         parent use this instead of ctrl.parent so that null can be passed
22890         to SelectNextControl. (I have unit tests for this).
22891         - Remove unused var.
22892
22893 2006-07-10  Chris Toshok  <toshok@ximian.com>
22894
22895         * CurrencyManager.cs: correct one regression, the removal of the
22896         finalType field.  Also, add a MonoTODO on CanAddRows, implement
22897         Refresh() correctly, and fix some event emission in
22898         ListChangedHandler.
22899
22900 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
22901
22902         * FileDialog.cs: Don't use brackets for new folders if they exist
22903           under *nix. Instead use -(number of existing folders +1).
22904
22905 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
22906
22907         * FileDialog.cs:
22908           - Fixed really nasty bug #78771
22909           - Don't block the whole GUI when reading directories with a lot of
22910             entries. Use an other thread instead and call BeginInvoke to
22911             update the ListView in MWFFileView
22912
22913 2006-07-07  Chris Toshok  <toshok@ximian.com>
22914
22915         * Control.cs (Dispose): release any Capture when disposing.
22916
22917 2006-07-07  Chris Toshok  <toshok@ximian.com>
22918
22919         * LinkLabel.cs (Select): if we chain up to the parent, set
22920         focused_index to -1 so we'll search for the first available link
22921         the next time the user tabs into us.  Also, if the direction is
22922         backward and focused_index == -1, start the search from the last
22923         element.
22924
22925 2006-07-07  Chris Toshok  <toshok@ximian.com>
22926
22927         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
22928         is beyond the end of the text, don't do anything.
22929         (CreateLinkPieces): set our ControlStyles.Selectable based on
22930         whether or not we have any links.
22931         (Link.Invalidate): use a loop instead of foreach.
22932         (Link.set_Start): null out owner.sorted_links so it'll be
22933         recreated by CreateLinkPieces.
22934
22935 2006-07-06  Chris Toshok  <toshok@ximian.com>
22936
22937         * LinkLabel.cs: revert the SetStyle change.
22938
22939 2006-07-06  Chris Toshok  <toshok@ximian.com>
22940
22941         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22942         (OnEnableChanged): s/Refresh/Invalidate
22943         (OnGotFocus): if we have a focused index already, refocus it (so
22944         if we mouse out/in to the window it'll focus the right link).
22945         (OnKeyDown): move the tab handling out of here.
22946         (OnLostFocus): don't set focused_index to -1, so we can refocus it
22947         when we lose focus.
22948         (OnMouseDown): don't Capture here - Control handles it.  Also,
22949         focus the active link.
22950         (OnMouseUp): don't deal with Capture.
22951         (OnPaintBackgroundInternal): remove.
22952         (OnTextAlignChanged): CreateLinkPieces before calling the
22953         superclass's method.
22954         (OnTextChanged): call CreateLinkPieces before calling superclass's
22955         method.
22956         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22957         move around.
22958         (Select): implement this, moving the selection between different
22959         links, and call parent.SelectNextControl if we don't have another
22960         link to focus in the given direction.
22961         (CreateLinkPieces): call Invalidate instead of Refresh.
22962         
22963 2006-07-06  Chris Toshok  <toshok@ximian.com>
22964
22965         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22966         new LinkLabel internals.
22967
22968         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
22969         over pieces looking for active/focused/etc links.  also, deal with
22970         runs of text (and links) with embedded \n's in them, and use
22971         MeasureCharacterRanges instead of MeasureString to figure out the
22972         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
22973         two-step.
22974
22975 2006-07-04  Jackson Harper  <jackson@ximian.com>
22976
22977         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22978         XKB or key auto repeat, do it manually.  Without key auto repeat,
22979         when a key is held down we get key press, key release, key press,
22980         key release, ... with auto repeat we get key press, key press, key
22981         press ..., and then a release when the key is actually released.
22982
22983 2006-07-03  Jackson Harper  <jackson@ximian.com>
22984
22985         * TabControl.cs:
22986         * ThemeWin32Classic.cs: Tabs do not obey normal background color
22987         rules, they are always control color regardless of the background
22988         color.
22989
22990 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
22991
22992         * FileDialog.cs: Added internal class MWFConfig.
22993           Removed Registry support and replaced it with support for the new
22994           MWFConfig class. See MWFConfig comments for more information.
22995
22996 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
22997
22998         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22999           rectangle. Added some patches from eno from bug #78490 and fixed
23000           the arrow position for small up and down CPDrawScrollButtons.
23001
23002 2006-06-30  Jackson Harper  <jackson@ximian.com>
23003
23004         * InternalWindowManager.cs: Remove some debug code.
23005         * Form.cs: When an MdiParent is set to null, the window is
23006         "detatched" and becomes a normal window.
23007         * MdiClient.cs: Don't bring the new child form to the front until
23008         it is activated (setting it as active does this), this makes the
23009         previously active forms titlebar get redrawn as inactive.
23010
23011 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
23012
23013         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
23014           with later controls
23015
23016 2006-06-29  Mike Kestner  <mkestner@novell.com>
23017
23018         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
23019         arrow in keynav state.  Fixes #78682.
23020
23021 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23022
23023         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
23024           order (fixes #78393)
23025
23026 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
23027
23028         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
23029           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
23030           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
23031           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
23032           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
23033           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
23034           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
23035           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
23036           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
23037           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
23038           enumerations (FlagsAttribute, SerializableAttribute, added/removed
23039           values)
23040
23041 2006-06-28  Mike Kestner  <mkestner@novell.com>
23042
23043         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
23044
23045 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
23046
23047         * PropertyGrid.cs,
23048           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
23049           item lines from other area (It also makes BackColor consistent and
23050           compatible with .NET). Fixed bug #78564.
23051
23052 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
23053
23054         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
23055         Patch from Eno for #78555.
23056
23057 2006-06-27  Chris Toshok  <toshok@ximian.com>
23058
23059         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
23060
23061         * DataGridColumnStyle.cs: same.
23062
23063         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
23064         
23065         * DataGridDrawingLogic.cs: nuke.
23066
23067 2006-06-27  Chris Toshok  <toshok@ximian.com>
23068
23069         * DataGridTableStyle.cs: clean up the constructors, and build the
23070         list of child relations for this table.  I have no idea if this is
23071         where we should be doing it (it probably isn't), but since we're
23072         already iterating over the properties..
23073
23074         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
23075         struct and array for keeping track of row information, similar to
23076         what's shown in a hack on
23077         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
23078
23079         * Theme.cs: be consistent about the naming of DataGrid methods,
23080         prefering ColumnWidths and RowHeights over columnsWidths and
23081         RowsHeights.
23082
23083         * ThemeWin32Classic.cs: same, and also add support for variable
23084         sized rows (and the +/- expansion icons for related rows).
23085
23086 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23087
23088         * TextBoxBase.cs: Applied Eno's patch from #78660
23089
23090 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23091
23092         * Form.cs (ScaleCore): We don't want to scale our form if it's
23093           state is minimized or maximized, but we still need to scale our
23094           child windows. Also, added try/finally block to ensure layout
23095           gets reset (Fixes #78697)
23096
23097 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
23098
23099         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
23100
23101 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
23102
23103         * Form.cs: Fixed c+p error and added check to resize form if minimum
23104           size is bigger than current size (Fixes #78709)
23105
23106 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
23107
23108         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
23109
23110 2006-06-26  Mike Kestner  <mkestner@novell.com>
23111
23112         * ComboBox.cs: only do Keypress handling in the combo when there  
23113         are items in the collection. Fixes #78710.
23114
23115 2006-06-26  Chris Toshok  <toshok@ximian.com>
23116
23117         * Binding.cs: make this work bi-directionally.  also, clear up
23118         other mixups between Push/Pull Data (e.g. we're supposed to pull
23119         data when validating).
23120
23121         * BindingManagerBase.cs: trim some fully qualified collection
23122         types.
23123
23124         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
23125
23126 2006-06-23  Chris Toshok  <toshok@ximian.com>
23127
23128         * PropertyManager.cs: It appears (according to the unit tests)
23129         that PropertyManager doesn't use
23130         PropertyDescriptor.AddValueChanged to track propery value changes
23131         in its datasource, but uses the same scheme as Binding, where it
23132         looks for a <Property>Changed event and binds to it.
23133
23134         Also, according to the docs, IsSuspended always returns false for
23135         a property manager with a non-null datasource.
23136
23137 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
23138
23139         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
23140           need to update the actual DialogResult. (Fixes #78613)
23141
23142 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
23143
23144         * Form.cs (ShowDialog): Release any captures before running the
23145           new message pump (fixes #78680)
23146
23147 2006-06-22  Mike Kestner  <mkestner@novell.com>
23148
23149         * ListView.cs: Layout column widths properly in details mode even 
23150         if HeaderStyle.None is set.  Fixes #78691.
23151
23152 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
23153
23154         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
23155
23156 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
23157
23158         * Control.cs (ContainsFocus): Using new driver method to get focused
23159           window, instead of trying to use internal tracking var, which can
23160           recursion issues (Fixes #78685)
23161         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
23162           XplatUIWin32.cs: Added GetFocus method to return focused window
23163
23164 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23165
23166         * ColorDialog.cs: when the mouse button is pressed inside the color
23167         matrix, don't let the cursor move out of it until the button is
23168         released, which is the behavior on windows. Changed 'colours' by
23169         'colors' to use the same word consistently.
23170
23171 2006-06-21  Chris Toshok  <toshok@ximian.com>
23172
23173         * DataGrid.cs: add in some basic navigation stuff (navigating to a
23174         child relation and back, using a stack).  Also, remove
23175         GetDataSource and the code that calls it - it's not needed.  Also,
23176         track CurrencyManager.ListName's removal.
23177
23178 2006-06-21  Chris Toshok  <toshok@ximian.com>
23179
23180         * CurrencyManager.cs: push some of the original type checking from
23181         BindingContext.CreateBindingManager to here, and remove some of
23182         the finalType stuff.  Need more tests to make sure I've got the
23183         ListName part right, and we might need more in SetDataSource.
23184
23185         * PropertyManager.cs: add a ctor that takes just the datasource,
23186         and no property name.  Make SetDataSource work with a null
23187         property_name, and make Current return the data_source if the
23188         property descriptor is null.  this makes 'string foo = "hi";
23189         BindingContext[foo].Current' return "hi" as it should.
23190
23191         * RelatedCurrencyManager.cs: make this code more generic - there's
23192         no reason the parent manager has to be CurrencyManager, and
23193         there's no reason to pass the DataRelation.  It suffices to use a
23194         BindingManagerBase and PropetyDescriptor.
23195
23196         * RelatedPropertyManager.cs: make a similar change here.
23197         
23198         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
23199         flower I knew it could be.
23200
23201 2006-06-20  Chris Toshok  <toshok@ximian.com>
23202
23203         * PropertyManager.cs: the PropertyChangedHandler is invoked when
23204         data in the source has changed and we need to update the control,
23205         so s/PullData/PushData.
23206
23207         * CurrencyManager.cs: Refresh is meant to update the control from
23208         data in the datasource.  So, s/PullData/PushData.
23209
23210         * BindingContext.cs: add more ugliness (we weren't handling the
23211         case where data_source = DataTable and data_member = column_name).
23212
23213         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
23214         from the perspective of the datasource.  PullData pulls from the
23215         control, PushData pushes to the control.
23216
23217 2006-06-20  Chris Toshok  <toshok@ximian.com>
23218
23219         * BindingContext.cs: rewrite the CreateBindingManager code to
23220         handle navigation paths more or less properly.  This could
23221         definitely stand some more work, in particular to push the
23222         recursion up to the toplevel.  But that relies on fixes in other
23223         places (System.Data comes to mind).
23224
23225         Also, move to a flat hashtable (and encode the twolevel nature of
23226         the dictionary into the hash key).  This lets us implement the
23227         IEnumerable.GetEnumerator method.
23228
23229         * RelatedCurrencyManager.cs: new class.  Update our view based on
23230         our relation and our parent CurrencyManager's position.
23231
23232         * CurrencyManager.cs: split out some logic from the ctor into
23233         SetView, so it can be called from the new RelatedCurrencyManager
23234         subclass.
23235
23236         * RelatedPropertyManager.cs: new class.  Update our datasource
23237         based on the position of our parent CurrencyManager.
23238
23239         * PropertyManager.cs: split out some logic from the ctor into
23240         SetDataSource, so it can be called from the new RelatedDataSource
23241         subclass.  Also, make the Current getter return the value
23242         of the PropertyDescriptor, not the data_source.
23243
23244         * Binding.cs: no need to duplicate the string splitting code here.
23245
23246 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23247
23248         * Control.cs:
23249           - set_Enabled: OnEnabledChanged is not called if the inherited state 
23250             of the control is not altered, even though  we might be changing the
23251             internal state of the control (#78458)
23252           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
23253             OnEnabledChanged, to allow easy altering of any child window state
23254           - OnEnabledChanged: Added code to enable/disable driver window state
23255           - OnParentEnabledChanged: Instead of firing the event, call 
23256             OnEnabledChanged, which will fire the event and also a) set driver
23257             window state and pass the enabled state to any grandchildren (#78458)
23258
23259 2006-06-19  Jackson Harper  <jackson@ximian.com>
23260
23261         * InternalWindowManager.cs: We don't set the cursor explicitly
23262         thats done via the response to NCHITTESTs.
23263         - Don't need to adjust for titlebar heights anymore, the
23264         coordinates are coming in the correct coordinates now (see peters
23265         last patch).
23266
23267
23268 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
23269
23270         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
23271           being translated relative to whole window, instead of client window.
23272           That caused broken offsets on mouseclick (and caused gas for our
23273           InternalWindowManager)
23274
23275 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23276
23277         * TextControl.cs:
23278           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
23279           - Undo(): Added replay of cursor move on DeleteChars action; added
23280             calling Undo() again if a recorded cursor move is invalid (to
23281             ensure that some action is performed on Undo)
23282         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
23283
23284 2006-06-16  Jackson Harper  <jackson@ximian.com>
23285
23286         * MdiClient.cs: Instead of just sizing maximized windows when
23287         there is a resize we also have to adjust the Y of minimized
23288         windows, so they stay pinned to the bottom of the mdi container.
23289         - Eliminate separate tracking of the active control, we can just
23290         get this from the controls collection.
23291         - Paint the decorations for the newly activated titlebar so we get
23292         a pretty blue bar.
23293         * InternalWindowManager.cs:
23294         * ThemeWin32Classic.cs: Minimized windows get all three buttons
23295         even if they are a tool window.
23296         
23297 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
23298
23299         * TextControl.cs (Undo): Handle non-existent cursor locations in the
23300           undo buffer, these can happen when text was deleted and the cursor
23301           was recorded first. Since we will also have a recorded cursor
23302           after the delete this is not an issue. (Fixes #78651)
23303
23304 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
23305
23306         * AccessibleObject.cs: Remove dependence on Control.is_selected;
23307           instead properly track control states internally (allows us to
23308           remove is_selected from Control)
23309
23310 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23311
23312         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
23313         whose width is not a multiple of 8.
23314
23315 2006-06-13  Jackson Harper  <jackson@ximian.com>
23316
23317         * MdiClient.cs:  Only maximize the next child if the current one
23318         is maximized.
23319
23320 2006-06-13  Chris Toshok  <toshok@ximian.com>
23321
23322         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
23323         modified.  Also, guard against grid or grid_drawing being null in
23324         Invalidate.
23325
23326         * DataGrid.cs: Reformat tons of getters/setters.  In the
23327         DataMember setter, just call SetNewDataSource instead of
23328         duplicating some of its functionality.  In SetNewDataSource, don't
23329         check ListManager for null, since the property getter creates the
23330         object if needed.
23331
23332         * DataGridTableStyle.cs: don't set TableStyle or call
23333         SetDataGridInternal on the column here, it's done in
23334         GridColumnStylesCollection.Add.
23335
23336         * GridColumnStylesCollection.cs: fix all the explicit interface
23337         implementations to just call our methods.  Nuke AddInternal() and
23338         move the body of it to Add().  Also, add a call to
23339         column.SetDataGridInternal to Add().
23340
23341         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
23342         base()+duplicate code.  Also, use the Format property instead of
23343         format to generate an Invalidate ala MS.  Lastly, create the
23344         textbox here, unconditionally.
23345         (set_Format): call Invalidate.
23346         (get_TextBox): no need to call EnsureTextBox.
23347         (Commit): remove the message box.
23348         (Edit) remove the call to EnsureTextBox.
23349         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
23350         (EnterNullValue): no need to check textbox for null.
23351         (HideEditBox): no need to check textbox for null.
23352         (SetDataGridInColumn): add the textbox to the grid's controls.
23353         (EnsureTextBox): nuke.
23354         
23355 2006-06-13  Jackson Harper  <jackson@ximian.com>
23356
23357         * MdiWindowManager.cs: Hook up to the maximized menus paint event
23358         and redraw the buttons when needed. Unhook when the window is
23359         unmaximized.
23360         * MainMenu.cs: Add an internal Paint event, the mdi window manager
23361         needs this so that it can redraw its buttons when the menu is
23362         repainted.
23363         * InternalWindowManager.cs:
23364         * Form.cs: The method order has changed for DrawMaximizedButtons,
23365         so that it can be a PaintEventHandler.
23366         
23367 2006-06-13  Jackson Harper  <jackson@ximian.com>
23368
23369         * MdiClient.cs: When we close a maximized mdi window, the next mdi
23370         window is activated and maximized, even if it wasn't before.
23371         - When  a new window is activated repaint the decorations of the
23372         old one, so that it no longer has the Active "look" (the blue
23373         titlebar).
23374         * InternalWindowManager.cs: Open up CreateButtons to base classes
23375         so they can recreate the buttons on state changes.
23376         - If a window is maximized give it all three buttons
23377         * MdiWindowManager.cs: Create the titlebar buttons when the state
23378         is changed, this is needed because a toolwindow will not have all
23379         three buttons until it is maximized.
23380
23381 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
23382
23383         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
23384           Fixed bug #78609.
23385
23386 2006-06-12  Jackson Harper  <jackson@ximian.com>
23387
23388         * KeysConverter.cs: Make sure we handle the Ctrl special case
23389         if its the only key.
23390         
23391 2006-06-12  Jackson Harper  <jackson@ximian.com>
23392
23393         * Theme.cs: Add a method to get the size of a managed window
23394         toolbar button.
23395         * InternalWindowManager.cs: Remove the ButtonSize property, this
23396         should be retrieved from the theme.
23397         * MdiWindowManager.cs: Get the button size from the theme
23398         * ThemeWin32Classic.cs: Make the method to get the managed window
23399         titlebar button size public.
23400         - Handle the different button sizes of maximized toolwindows
23401         (should match any maximized window).
23402         - Get the titlebar height from the theme, not the WM (which gets
23403         it from the theme).
23404
23405 2006-06-12  Jackson Harper  <jackson@ximian.com>
23406
23407         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
23408         event down to the mdi window manager.
23409         - Expose some extra stuff to base classes
23410         - Make sure to end the Capture on an NC Mouse up, so that we can
23411         get double clicks properly, and the sizing doens't stick.
23412         - When doing PointToClient contain it in the workable desktop
23413         area, this prevents windows from changing size when the cursor is
23414         pulled outside of the working area while sizing.
23415         * MdiWindowManager.cs: When we get a double click maximize the
23416         window.
23417         - Reset the cursor after handling mode changes.
23418
23419 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
23420
23421         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
23422           current desktop, instead of just assuming a 0, 0 origin. This
23423           is needed for our internal window manager, to know the top
23424           margin of the desktop
23425
23426 2006-06-12  Chris Toshok  <toshok@ximian.com>
23427
23428         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
23429         we need this to get rid of the selected background in the bool
23430         column.
23431         (CancelEditing): move the ConcedeFocus call to above the Abort
23432         call.  Also, set is_changing to false and invalidate the row
23433         header if we were changing before.
23434         (ProcessKeyPreviewInternal): remove, since noone outside this
23435         class calls it anymore.  Roll the code into ProcessKeyPreview.
23436         (EndEdit): remove the internal version.
23437         (InvalidateCurrentRowHeader): make private.
23438
23439         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
23440         Keys.Escape handling (and with it the last call to
23441         DataGrid.EndEdit from outside the class.)
23442
23443
23444 2006-06-12  Chris Toshok  <toshok@ximian.com>
23445
23446         * DataGridTextBox.cs (.ctor): isedit defaults to false.
23447         (OnKeyPress): set isedit to true.
23448         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
23449         already handled by the grid.
23450
23451         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
23452         right.  ugh.
23453         (set_DataSource): SetDataSource always returns true, so stop
23454         putting it in an if statement.
23455         (EndEdit): get rid of some {}'s
23456         (ProcessGridKey): return true in case Keys.Escape.
23457         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
23458         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
23459         PositionChanged, stopped connecting to CurrentChanged.
23460         (GetDataSource): simplify this a bunch.
23461         (SetDataSource): change return type from bool to void.
23462         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
23463         to this, and make sure we don't set ListManager.Position inside
23464         set_CurrentCell.
23465         (OnListManagerItemChanged): if we're passed an actual index,
23466         redraw that row.
23467
23468         * CurrencyManager.cs (set_Position): don't call PullData here.
23469
23470 2006-06-09  Jackson Harper  <jackson@ximian.com>
23471
23472         * TreeNode.cs:  Recalculate the visible order before doing the
23473         Expand/Collapse Below calls, because those calls generate an
23474         expose.
23475         - Reduce calls to the TreeView property, which is mildly expensive
23476         by using a local var.
23477         * Form.cs: Layout the MDI child windows when creating the parent
23478         form.
23479         - Don't use the internal constructor anymore
23480         * MdiClient.cs: use the parent form width/height (if available)
23481         when laying out the child windows, we do this because the
23482         mdiclient isn't docked yet when the initial layout is done.
23483         - Don't need an internal constructor anymore.
23484
23485 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23486
23487         * FileDialog.cs: handle access errors when trying to create a folder
23488         or changing to a directory. No need to initialize out parameters.
23489
23490 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23491
23492         * FileDialog.cs: Append a number when creating a new folder if the
23493           folder already exists (use parenthesis instead of square brackets)
23494
23495 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23496
23497         * FileDialog.cs:
23498           - Disabled registry support for windows and added better registry
23499             error checking for other systems (need to investigate why it
23500             works perfectly on my system)
23501           - If a folder already exist show an error MessageBox instead of
23502             trying to create an indexed name.
23503           - Fixed a non intentional typo.
23504
23505 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23506
23507         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
23508
23509 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23510
23511         * FileDialog.cs: When creating a new folder don't crash if the
23512           folder already exists.
23513
23514 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23515
23516         * FileDialog.cs: Allmost a complete rewrite.
23517           - added a "virtual" file system that handles the differences
23518             between unix and windows file systems (especially the directory
23519             structure). Moved most of the directory and file handling code
23520             into the vfs.
23521             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
23522             UnixFileSystem and FSEntry.
23523           - Recently used folder/directory, size, location and used file names
23524             (file name ComboBox) are now stored in the registry and get read
23525             before the dialog shows up (fixes part 6 of bug #78446).
23526           - Creation of new folders/directories is now possible (context menu
23527             or ToolBar). Added TextEntryDialog for this that fills in the gap
23528             until ListView.LabelEdit works.
23529           - Fixed cursor handling (bug #78527) and focus handling for
23530             PopupButtonPanel
23531           - Various "Search in" ComboBox enhancements. The content of the
23532             dropdown listbox now almost matches ms.
23533           - Changed the behaviour when the user switches to SpecialFolder
23534             Recent to show the ListView in View.Details.
23535           - Beside using the ToolBar to change the View property of the
23536             file ListView it is now possible to use the context menu too.
23537
23538 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
23539
23540         * ComboBox.cs: Don't create a new ObjectCollection when an item
23541           gets inserted. Just insert the item in the existing object_items
23542           ArrayList.
23543
23544 2006-06-08  Jackson Harper  <jackson@ximian.com>
23545
23546         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
23547         that the treeview and root node checks are done also, this fixes a
23548         regression i caused in the unit tests.
23549
23550 2006-06-07  Wade Berrier <wberrier@novell.com> 
23551
23552         * RichTextBox.cs: More ISO8859-1 -> unicode
23553
23554 2006-06-07  Mike Kestner  <mkestner@novell.com>
23555
23556         * ComboBox.cs : use items to hold highlight/selection so that
23557         collection insertions don't require synchronization.
23558
23559 2006-06-07  Jackson Harper  <jackson@ximian.com>
23560
23561         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
23562         routine.  We now always keep the sized edge at the cursor instead
23563         of computing movement and adjusting rects.  There is one buglet
23564         with this method though when the cursor is moved over area that
23565         the window can not expand too (such as the toolbars on the desktop).
23566
23567 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23568
23569         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
23570         here. Fixes crash on startup in AlbumSurfer.
23571
23572 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
23573
23574         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
23575           values
23576
23577 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23578
23579         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
23580         statement to avoid calling XNextEvent which will block if another thread
23581         took the event that we were expecting. Fixes bug #78605.
23582
23583 2006-06-07  Mike Kestner  <mkestner@novell.com>
23584
23585         * ListView.cs : isolated checkbox clicking from the selection logic.
23586         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
23587
23588 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23589
23590         * Form.cs: Check that the value passed to Form.DialogResult
23591         is a valid enum value.
23592
23593 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23594
23595         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
23596         Computer'. Clicking it in the network view goes to 'My Computer'.
23597         Added CIFS filesystem type. Display the mount point of filesystems.
23598         Avoid duplicate mount points (happens for me with CIFS);
23599
23600 2006-06-06  Jackson Harper  <jackson@ximian.com>
23601
23602         * InternalWindowManager.cs: Draw the maximized windows buttons
23603         when resizing.
23604
23605 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23606
23607         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
23608         all other dialogs. Fixes bug #78585.
23609
23610 2006-06-06  Mike Kestner  <mkestner@novell.com>
23611
23612         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
23613         Only invalidate checkbox on checkstate changes to avoid flicker.
23614         * ListBox.cs : avoid unselect/select when clicking selected item.
23615         avoid reselection flicker for already multiselected items.
23616         Fixes #78382.
23617
23618 2006-06-06  Jackson Harper  <jackson@ximian.com>
23619
23620         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
23621         the parent form so that the menu is removed if needed.
23622
23623 2006-06-06  Mike Kestner  <mkestner@novell.com>
23624
23625         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
23626         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
23627
23628 2006-06-06  Mike Kestner  <mkestner@novell.com>
23629
23630         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
23631
23632
23633 2006-06-06  Jackson Harper  <jackson@ximian.com>
23634
23635         * Control.cs: Use the property (instead of the field) to get the
23636         default cursor so it is instantiated correctly.
23637         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
23638         resizes so we need to manually repaint the window decorations here.
23639         - Set the titlebar button locations as soon as they are created,
23640         otherwise they are not set correctly on win32.
23641         
23642 2006-06-06  Chris Toshok  <toshok@ximian.com>
23643
23644         * CurrencyManager.cs (set_Position): call PullData before
23645         OnCurrentChanged.
23646         (AddNew): after calling IBindingList.AddNew, update our
23647         listposition, and call OnCurrentChanged/OnPositionChanged (without
23648         calling PullData).
23649         (OnCurrentChanged): remove the call to PullData from here.
23650         (OnItemChanged): remove the call to PushData from here.
23651         (OnPositionChanged): change the test from == null to != null to
23652         match the other methods.
23653         (ListChangedHandler): the grossest part of the patch.  Implement
23654         this such that it passes the unit tests in CurrencyManagerTest and
23655         the output more or less matches that of MS's implementation.
23656  
23657 2006-06-06  Mike Kestner  <mkestner@novell.com>
23658
23659         * ListView.cs : only update check state on single click.
23660         * ThemeWin32Classic.cs : fix focus drawing for details view without
23661         fullrowselect.  Fixes #78454.
23662         * XplatUIX11.cs : fix for double click emission.
23663
23664 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
23665
23666         * PropertyGridView.cs : Applied Atsushi's patch to fix
23667         font dialog bug  (#78197).
23668
23669 2006-06-05  Jackson Harper  <jackson@ximian.com>
23670
23671         * TreeNode.cs: Compute the next node for expanding/collapsing
23672         correctly. We now factor in nodes without a NextNode
23673         correctly. (Fixes somes cases in nunit-gui).
23674         * InternalWindowManager.cs: Set the bounds when updating the
23675         virtual position of a tool window.
23676         
23677 2006-06-05  Chris Toshok  <toshok@ximian.com>
23678
23679         * DataGrid.cs: rename cached_currencymgr to list_manager.
23680         (set_CurrentCell): move SetCurrentCell code here, and clean it up
23681         some.
23682         (CurrentRow, CurrentColumn): single accessors so we can make the
23683         cursor movement code a lot easier to understand.
23684         (CurrentRowIndex): implement this in terms of CurrentRow.
23685         (BeginEdit): clean this up a bit.
23686         (CancelEditing): sort out the is_editing/is_changing/is_adding
23687         stuff a little.
23688         (EndEdit): minor changes.
23689         (OnKeyDown): add a comment about a (most likely) unnecessary
23690         check.
23691         (OnMouseDown): cancel editing when we click on a row header.  And
23692         use the CurrentRow setter, not CurrentCell.
23693         (ProcessDialogKey): directly call ProcessGridKey.
23694         (UpdateSelectionAfterCursorMove): factor out this common block of
23695         code (it's used everywhere that we move the cursor by updating row
23696         or column).
23697         (ProcessGridKey): pretty substantial overhaul.  Use the
23698         CurrentRow/CurrentColumn properties to make the code a lot more
23699         readable.  Only use the CurrentCell property when we have to
23700         modify both row and column at once.  Tab behavior is still broken,
23701         and Delete is untested.
23702         (Select): if we have no selected rows, set selection_start to
23703         @row.
23704         (EditCurrentCell): rename EditCell this.  It was only ever invoked
23705         with CurrentCell as the arg, so drop the arg and rename it.
23706
23707         * DataGridColumnStyle.cs: clean up the constructors a little, and
23708         drop CommonConstructor().
23709
23710         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23711         actually get notified when the user hits it.
23712         (ProcessKeyMessage): *substantially* simplify this method.
23713         There's no reason (that I can see) for the textbox to be making
23714         calls into the datagrid at all.  Remove all of them but the ones
23715         for Enter handling.  those will take some more work.
23716
23717         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23718         calling HideEditBox.
23719         (HideEditBox): if we have an active textbox, render it invisible
23720         without causing a re-layout of the datagrid.
23721
23722 2006-06-05  Mike Kestner  <mkestner@novell.com>
23723
23724         * ListView.cs : fix NRE crasher when focuseditem is cleared by
23725         collection changes by resetting it to Items[0].  Fixes #78587.
23726
23727 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23728
23729         * MessageBox.cs: if the height of the text is larger than the icon_size,
23730         use that. Fixes bug #78575.
23731
23732 2006-06-05  Jackson Harper  <jackson@ximian.com>
23733
23734         * TreeView.cs: Fix line drawing when scrolling.  To do this each
23735         node is basically responsible for drawing its entire horizontal
23736         area.  When drawing a node it draws its parent node lines if
23737         needed.
23738         - Adjust the clip area to the viewport rectangle
23739         - Fix Left/Right key handling to match MS. (It expand/collapses
23740         and moves to parents/first child but does not move selection to
23741         sibling nodes).
23742         - Fix SetTop to work with new bound calculation code
23743         - When scrollbars are no longer needed we need to reset scrolling
23744         vars and recalculate the visible order so the redraw is correct
23745         * TreeNode.cs: We can't expand/collapse nodes with no children.
23746
23747 2006-06-03  John Luke  <john.luke@gmail.com> 
23748
23749         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
23750         so the colors work without dev packages
23751         
23752 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
23753
23754         * Control.cs 
23755           - Select: Implemented to just use activate. Seems to match MS 
23756             behaviour closest. Documented to only do actual control walking 
23757             based on it's parameters if in a container control so I moved 
23758             the code there.
23759           - Removed selection check logic from our internal Select() method
23760         * ContainerControl.cs:
23761           - Select: Moved selection logic from Control here, since MS documents
23762             that containers obey the bool arguments. No longer calling base
23763
23764 2006-06-02  Jackson Harper  <jackson@ximian.com>
23765
23766         * TreeView.cs: If the selected node isn't changed when we get
23767         focus update the previously selected node so that we see the
23768         selection box.
23769
23770 2006-06-02  Mike Kestner  <mkestner@novell.com>
23771
23772         * ComboBox.cs: restructure grab and general mouse event handling.
23773         Make the composite control raise mouse events like it was a single
23774         control for leaves/enters/motion/up/down events.  fix dropdown list
23775         coordinate mangling and refactor it into the scrollbar subclass to
23776         reduce code duplication.  Fixes #78282 #78361 and #78457.
23777
23778 2006-06-02  Mike Kestner  <mkestner@novell.com>
23779
23780         * ScrollBar.cs: remove Capture setting/clearing, as it happens
23781         automatically in the Control.WndProc.
23782
23783 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23784
23785         * FileDialog.cs: fix crash when running SharpChess, which sets the
23786         FilterIndex to 2 with only one Filter.
23787
23788 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23789
23790         * ToolBar.cs: add SizeSpecified property.
23791         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
23792         try to figure out our real size, otherwise fallback to what the
23793         container says.
23794
23795 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
23796
23797         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
23798         * Control.cs (WndProc): MS always calls the DefWndProc to pass
23799           up the event
23800
23801 2006-06-01  Mike Kestner  <mkestner@novell.com>
23802
23803         * ListView.cs: revamp the focus management in ListView.  It still
23804         causes churn of LostFocus/GotFocus emissions on clicks, but it's
23805         better than not handling focus at all.  Will revisit when pdb feels
23806         the general focus handling is solid.  Fixes #78526.
23807
23808 2006-06-01  Jackson Harper  <jackson@ximian.com>
23809
23810         * TreeView.cs: Set the default border style in the constructor.
23811         - Move painting to use OnPaintInternal instead of capturing
23812         WM_PAINT, this is the correct way of doing things
23813         - UpdateBelow shouldn't invalidate the scrollbar area
23814         - Cap the top on update below in case the node was above the top
23815         of the viewport rectangle.
23816         - ExpandBelow and Collapse below need to obey Begin/End Update.
23817         * TreeNode.cs: Make is_expanded internal so the treenode
23818         collection can change it without firing the whole event chain.
23819         * TreeNodeCollection.cs: When clearing all the child nodes make
23820         sure to recalc the visible order.
23821         - Improve algo for remove the top node
23822
23823 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
23824
23825         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
23826           SendMessage directly calling window procedures, which in turn might
23827           call SetFocus()
23828
23829 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
23830
23831         * Control.cs: Don't handle WM_SETFOCUS if the same window already
23832           has focus (works around X11 sending a FocusIn after our SetFocus)
23833         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
23834
23835 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
23836
23837         * Mime.cs: Fix for the NET_2_0 build.
23838           NameValueCollection needs StringComparer now.
23839
23840 2006-05-31  Chris Toshok  <toshok@ximian.com>
23841
23842         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
23843         return (via an out parameter) the starting X of the column.
23844         (UpdateVisibleColumn): track change to FromPixelToColumn.
23845         (HitTest): add a ColumnResize case here.
23846         (DrawResizeLine): new function, probably poorly named.
23847
23848         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
23849         only need to keep one reference.
23850         (set_ListManager): same.
23851         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
23852         Also, add support for HitTestType.ColumnResize.
23853         (OnMouseMove): add column resize behavior here, and change the
23854         cursor to the correct one as we move around the datagrid.
23855         (OnMouseUp): terminate the column resize if we're resizing.
23856         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
23857         for the current cell.
23858         (ConnectListManagerEvents): use cached_currencymgr.
23859         (DisconnectListManagerEvents): fill this in, using
23860         cached_currencymgr.
23861         (SetCurrentCell): remove cached_currencymgr_events handling.
23862         (SetDataMember): only call DisconnectListManagerEvents if
23863         cached_currencymgr is != null.
23864         (SetDataSource): same.
23865         (OnListManagerCurrentChanged): cached_currencymgr_events ->
23866         cached_currencymgr.
23867
23868 2006-05-31  Jackson Harper  <jackson@ximian.com>
23869
23870         * BindingManagerBase.cs: Remove somedebug code that creeped into
23871         SVN.
23872         * TreeNode.cs: We get the indent level dynamically right now, so
23873         don't track it as a member.
23874         * TreeNodeCollection.cs: Make sure all nodes added to the list
23875         have parents, treeviews/topnodes setup properly.
23876         - Don't attempt to track indent level.
23877
23878 2006-05-30  Jackson Harper  <jackson@ximian.com>
23879
23880         * BindingContext.cs: Create the currency manager tables here.
23881         This allows us to more easily create null tables (when bad data
23882         members are used), and more easily create related currency
23883         managers.
23884         * CurrencyManager.cs: All the table creation stuff is done by the
23885         binding context now.
23886         - Current should throw an exception if listposition is -1.
23887         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
23888         been bound yet.
23889
23890 2006-05-30  Mike Kestner  <mkestner@novell.com>
23891
23892         * ListView.cs: allow reexpansion of zero-width column headers.
23893         Fixes #78528.
23894
23895 2006-05-28  Chris Toshok  <toshok@ximian.com>
23896
23897         * CurrencyManager.cs (get_Current): after the late binding
23898         listposition = -1 fix, we need to guard against it here and return
23899         null, otherwise we raise an exception (which is swallowed
23900         elsewhere, and breaks datagrid databinding.)
23901
23902 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
23903
23904         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
23905           than WM_SYSKEY, don't throw if get something unexpected (#78507)
23906
23907 2006-05-26  Jackson Harper  <jackson@ximian.com>
23908
23909         * ControlPaint.cs:
23910         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
23911         values, it's faster and it's all we care about (we don't care if
23912         the names aren't equal).
23913         * KeyboardLayouts.cs: Eliminate some dead code.
23914         - Lazy init things
23915         * X11Keyboard.cs: Lazy init keyboard detection.
23916         - Cleanup access modifiers a little.
23917
23918 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
23919
23920         * XplatUIX11.cs: Once again, attempting to get layout just right.
23921
23922 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
23923
23924         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
23925           the sizes of each link section, that will result in sizes that
23926           match DrawString's layout (Fixes #78391)
23927
23928 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
23929
23930         * FileDialog.cs: If AddExtension property is true autocomplete the
23931           extensions in SaveFileDialog correctly. Fixes bug #78453.
23932           Set MyNetwork and MyComputer to "C:\" for windows. This should
23933           fix part 8 of bug #78446 for now.
23934
23935 2006-05-26  Chris Toshok  <toshok@ximian.com>
23936
23937         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
23938         invalidate the current row header if we need to, but presumably
23939         we'll invalidate the row corrsponding to the bounds or
23940         editingControl.
23941         (GridHScrolled): switch back to this method, as it's part of the
23942         public api.  *sigh*.
23943         (GridVScrolled): same.
23944         (OnMouseWheel): hack up something that more or less works.  Call
23945         GridHScrolled/GridVScrolled directly, instead of duplicating much
23946         of their code here.
23947         (EnsureCellVisibility): reinstate a bunch of this code, since we
23948         can't just set the scrollbar Value and expect to do all the work
23949         in the ValueChanged handler.  Also, Call Update() after scrolling
23950         in one direction so the other XplatX11.ScrollWindow call has the
23951         proper stuff in the proper places.
23952         (EditCell): set is_editing to true before calling .Edit.
23953
23954         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23955         don't bother comparing first.
23956         (OnKeyPress): call grid.ColumnStartedEditing before calling
23957         base.OnKeyPress.  this will set is_changing and invalidate the row
23958         header if necessary.
23959         (ProcessKeyMessage): for WM_CHAR messages, call
23960         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
23961         and WM_KEYDOWN.
23962         
23963         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23964         it's done in the DataGrid.
23965         (NextState): call grid.ColumnStartedEditing, which takes care of
23966         invalidating the row header (and setting is_changing).
23967
23968         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23969         here.  it's done in the DataGrid.
23970
23971 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23972
23973         * Control.cs: allow changing the cursor when the mouse position is
23974         out of bounds but Capture is set.
23975         * LinkLabel.cs: handle the case when the mouse button is pressed on the
23976         linklabel but released somewhere else.
23977
23978 2006-05-25  Jackson Harper  <jackson@ximian.com>
23979
23980         * TreeView.cs: When we get focus if there is no selected node make
23981         it the top node
23982         - Remove some uneeded setup code from Draw.
23983         * TreeNodeCollection.cs: If the tree doesn't have a top node when
23984         a new node is inserted make the new node the top.
23985         * XplatUIX11.cs:
23986         * Timer.cs: Use Utc time so that no local time zone stuff needs to
23987         be used (should be faster).
23988         
23989 2006-05-25  Chris Toshok  <toshok@ximian.com>
23990
23991         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23992         problem with the last commit.
23993
23994 2006-05-25  Chris Toshok  <toshok@ximian.com>
23995
23996         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23997         need the invalidate call here, while scrolling right-to-left via
23998         the left arrow key (i.e. moving the editing cell while scrolling).
23999
24000         * DataGrid.cs (.ctor): remove the initialization of
24001         ctrl_pressed/shift_pressed.  We no longer track them using key
24002         up/down handlers, but by using Control.ModifierKeys.  Also, switch
24003         to using ValueChanged handlers on the scrollbars instead of
24004         Scrolled event handlers.  This simplifies a bunch of the scrolling
24005         code.
24006         (GridHValueChanged): rename from GridHScrolled, and change it to
24007         work with the new event args.
24008         (GridVValueChanged): same.
24009         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
24010         (OnMouseWheel): actually scroll the datagrid.  Don't change the
24011         selected cell.
24012         (ProcessGridKey): correct all the keyboard navigation stuff I
24013         could find.  Ctrl up/down/left/right/home/end work now.
24014         (EnsureCellVisibility): correct method name spelling.  Also,
24015         simplify this a touch by not explicitly calling the
24016         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
24017         scrollbar value.
24018         (OnKeyUpDG): no need for this method now.
24019         
24020 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24021
24022         * LinkLabel.cs: display the OverrideCursor when hovering the label.
24023         Fixes bug #78392.
24024
24025 2006-05-25  Chris Toshok  <toshok@ximian.com>
24026
24027         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
24028         r61019.
24029
24030 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24031
24032         * Application.cs: Moved setting of is_modal and closing to before
24033           we create the control, to allow the event handlers called as a
24034           result of creation affect closing. Also removed Gonzalo's previous
24035           change to setting DialogResult, the behaviour has been moved to 
24036           Form.ShowDialog()
24037         * Form.cs: 
24038           - ShowDialog(): Removed explicit creation of the form, let RunLoop
24039             handle it instead
24040           - ShowDialog(): If no dialog result is set, we need to return Cancel
24041           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
24042             the close is cancelled
24043
24044 2006-05-25  Jackson Harper  <jackson@ximian.com>
24045
24046         * StatusBar.cs: We only need to update the sizes of the other
24047         panels when we have auto size contents.  Also we are only updating
24048         the contents of the panel, not the borders, so compensate for the
24049         border width (TODO: get this width from the theme somehow).
24050         * TreeView.cs: Scrollable is true by default
24051         - Use invalidate instead of refresh where needed
24052         - Factor the scrollable value into scrollbar updating
24053         - Update the scrollbars if the Scrollable property is altered
24054         - Update the selected node if its ImageIndex is changed
24055         - Handle null nodes in UpdateNode (mainly so we don't have to
24056         check if selected is null when updating it
24057         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
24058         are factored into the visible count
24059         - Use VisibleCount for clarity in the code
24060         - When the font is changed we need to recurse through all the
24061         nodes and invalidate their sizes
24062         
24063 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24064
24065         * Application.cs: set the DialogResult to fixed when the main form is
24066         hidden or destroyed while being modal.
24067
24068 2006-05-25  Miguel de Icaza  <miguel@novell.com>
24069
24070         * Theme.cs: Use Tangoified messagebox icons. 
24071
24072         (GetSizedResourceImage): Also cope with width = 0 and do not
24073         trigger a warning in that case (0 means "give me your icon from
24074         the resouce, no special size needed).
24075
24076 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
24077
24078         * Application.cs: Leave runloop if the the main modal form is 
24079           hidden (fixes #78484)
24080
24081 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
24082
24083         * BindingContext.cs : reject null datasource in Contains() and
24084           Item[].
24085         * CurrencyManager.cs : check data_member validity when data_source
24086           is dataset. When it is late binding, the initial position is -1.
24087
24088 2006-05-24  Jackson Harper  <jackson@ximian.com>
24089
24090         * TreeNodeCollection.cs: Dont't recalculate the visible order on
24091         inserted nodes that aren't visible.  This changes the
24092         max_visible_order which confuses scrollbar settings.
24093         - Use the enumerator to get the prev node instead of duplicating
24094         code.
24095         * TreeView.cs: Use new method for setting scrollbar values
24096         - Don't set the bounds every time the scrollbar is updated
24097         - When updating below the root node use an invalidate instead of a
24098         refresh to prevent the child controls (scrollbars) from being
24099         refreshed. (UpdateBelow still needs to be reworked anyways).
24100         - Reenable SetBottom now that visible orders are set correctly,
24101         added some debug code incase we ever get bad values there again.
24102         - Set the scrollbar max to 2 less then the max value, this
24103         compensates for the max value being one above the node count, and
24104         for scrollbars adding one extra "notch".
24105         - When drawing image nodes if there is an imagelist we draw the
24106         first image in the list if the supplied image index is out of the
24107         image list's bounds.
24108         
24109 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24110
24111         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
24112           we receive a size change from the WM (Fixes #78503)
24113
24114 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
24115
24116         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
24117           rectangle (Fixes #78501)
24118
24119 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
24120
24121         * ButtonBase.cs: 
24122           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
24123             as a bitfield.
24124           - Fixed MouseMove to no longer switch pressed state unless the left
24125             mouse button is pressed. Atsushi provided the original patch (#78485)
24126           
24127 2006-05-24  Jackson Harper  <jackson@ximian.com>
24128
24129         * ScrollBar.cs: New internal methods that allow us to change a
24130         couple values on the scrollbar (the most common case is maximum
24131         and large change) without getting multiple invalidates.
24132
24133 2006-05-24  Chris Toshok  <toshok@ximian.com>
24134
24135         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
24136         (Edit): save off the original state in oldState, and set
24137         grid.is_editing to true.
24138         (OnKeyDown): abort editing if escape is pressed.  also, call
24139         NextState if space is pressed.
24140         (OnMouseDown): call NextState.
24141         (NextState): factor out shared code from OnKeyDown and OnMouseDown
24142         here.  Also, only invalidate the row header once (on the initial
24143         is_changing switch) to save on redraws.
24144
24145 2006-05-24  Chris Toshok  <toshok@ximian.com>
24146
24147         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
24148         if the value in the cell is different than it was before.  This
24149         keeps us from triggering a layout when we move around a datarid
24150         with a highlighted cell.
24151         (Edit): suspend layout when creating/positining the text box, and
24152         resume passing false so we don't ever actually re-layout.
24153         (ReleaseHostedControl): same.
24154         (EnsureTextBox): reformat slightly, and set WordWrap to false.
24155
24156         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
24157         control-key sequences should go to the datagrid - remove that
24158         lock.  Also, modify the conditions under which we move between
24159         cells when moving the cursor within a cell, and remove the "this"
24160         and "base" from field accesses.  We weren't even consistent, given
24161         they all were in the base class.
24162
24163 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
24164
24165         * Binding.cs : (.ctor)
24166           An obvious NRE fix for BindingTest.CtorNullTest().
24167
24168 2006-05-23  Chris Toshok  <toshok@ximian.com>
24169
24170         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
24171         them between lines.  This fixes some quirks editing cells in the
24172         datagrid.
24173
24174 2006-05-23  Jackson Harper  <jackson@ximian.com>
24175
24176         * TreeView.cs: Use begin/end update when doing expand/collapse all
24177         so that we don't get flicker on the scrollbar.
24178
24179 2006-05-23  Jackson Harper  <jackson@ximian.com>
24180
24181         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
24182         treenode calculations to be independant of the painting code. To
24183         do this nodes track a visible order which is calculated by the
24184         treeview.
24185         - Call new methods for expanding/collapsing nodes.  These methods
24186         use scrollwindow so we don't have to update everything below the
24187         node.
24188         * TreeView.cs: Refactored drawing and scrolling code.  We don't
24189         need to update nodes when drawing anymore or calculate scrollbar
24190         stuff.
24191         - Added new methods for expanding/collapsing nodes. These methods
24192         use ScrollWindow so as to not have to redraw all the nodes below.
24193         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
24194         we add/remove nodes or sort.
24195         - Handle removing the selected and the top node properly.
24196
24197 2006-05-23  Chris Toshok  <toshok@ximian.com>
24198
24199         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
24200         maybe this should actually happen in the datagrid code?
24201         (EndEdit): no need to invalidate anything, given that
24202         ReleaseHostedControl causes the datagrid to relayout, which
24203         invalidates everything anyway.
24204
24205         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
24206         in SetCurrentCell).
24207         (set_SelectionBackColor): call InvalidateSelection instead of
24208         Refresh.
24209         (set_SelectionForeColor): same.
24210         (BeginEdit): Flesh this out a bit.
24211         (CancelEditing): only do any of this if we're editing/adding.
24212         (EndEdit): same.
24213         (OnMouseDown): there's no need to cancel editing here, it's done
24214         in SetCurrentCell.
24215         (SetCurrentCell): only invalidate the current row header if it's a
24216         different row than the new one.
24217         (ShiftSelection): fix this to work like MS does.
24218         (ResetSelection): factor out the invalidation of selected_rows to
24219         InvalidateSelection.
24220         (SetDataSource): cancel any editing that's going on.
24221
24222         * DataGridColumnStyle.cs
24223         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
24224         call the non-interface version.
24225
24226         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
24227         header rectangle with the clip rectangle so we don't redraw the
24228         entire header for just a small area.  Gets rid of the last flicker
24229         when horizontally scrolling.
24230         (DataGridPaintRow): same.
24231
24232 2006-05-23  Mike Kestner  <mkestner@novell.com>
24233
24234         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
24235         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
24236         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
24237         Critical bug report.
24238
24239 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24240
24241         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
24242           and this fixes #78493
24243
24244 2006-05-23  Miguel de Icaza  <miguel@novell.com>
24245
24246         * Theme.cs (GetSizedResourceImage): Scale images if the proper
24247         size is not found.  
24248         
24249         * FileDialog.cs: Do not change the background for the side bar as
24250         it wont work nicely with the theme, and also reduces the artifacts
24251         in rendering the icons (which I want to fix too).
24252
24253         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
24254         resources, not resgen resources. 
24255
24256         (PlatformDefaultHandler): Pull images using the new API.
24257
24258 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
24259
24260         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
24261           a reference to the hwnd and will not remove it unless there are
24262           no pending exposures (fixes #78341)
24263         * XplatUI.cs: Improved debug
24264
24265 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
24266
24267         * MenuAPI.cs : don't handle OnClick event when it was not the left
24268           button. Fixed bug #78487.
24269
24270 2006-05-23  Mike Kestner  <mkestner@novell.com>
24271
24272         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
24273         prefer submenus to the top menu for item lookup, to avoid popping down
24274         top-row items.
24275
24276 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
24277
24278         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
24279           Graphics.FillRectangle as the visual results are really bad (even
24280           on win). We now draw perfect arrows (and perfect shadows when the
24281           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
24282           Pen.DashPattern to draw the dots of each line.
24283
24284 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
24285
24286         * FileDialog.cs: Update the filename combobox when navigating through
24287           the ListView with the cursor keys. Fixes part 7 of bug #78446.
24288
24289 2006-05-22  Mike Kestner  <mkestner@novell.com>
24290
24291         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
24292         Fixes #78463.
24293
24294 2006-05-22  Mike Kestner  <mkestner@novell.com>
24295
24296         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
24297         requests. Fix a misspelled parameter and a copy paste exception error
24298         in Select.
24299
24300 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
24301
24302         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
24303           to get the same width/height (5/13) on X11 as the default font has on
24304           win32. This means that our DefaultFont emSize is smaller than the 
24305           the MS SWF equivalent (even thought the width/height stays the same)
24306
24307 2006-05-20  Jackson Harper  <jackson@ximian.com>
24308
24309         * MdiClient.cs:
24310         * MdiWindowManager.cs:
24311         * InternalWindowManager.cs: Make sure to use the border width from
24312         the theme.
24313
24314 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
24315
24316         * PrintDialog.cs: Implements printer details
24317
24318 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
24319
24320         * FileDialog.cs: Added focus handling for PopupButtonPanel.
24321           Fixes part 1 and 2 of bug #78446
24322
24323 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
24324
24325         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
24326           instead of sticking to the first ever calculated value
24327
24328 2006-05-19  Mike Kestner  <mkestner@novell.com>
24329
24330         * ComboBox.cs: fix mouse motion selection to use MousePosition and
24331         PointToClient, since Capture is set. Fixes #78344.
24332
24333 2006-05-19  Mike Kestner  <mkestner@novell.com>
24334
24335         * ListView.cs: match MS behavior in Details view where items are not
24336         drawn if Columns.Count == 0. 
24337         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
24338         Use a separate pen to draw the check, since changing the width affects
24339         the box as well.  Fixes #78454.
24340
24341 2006-05-18  Miguel de Icaza  <miguel@novell.com>
24342
24343         * ListView.cs: ArgumentOutOfRangeException, single versions of the
24344         exception should throw the name of the invalid argument.
24345
24346         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
24347         there are no files listed. 
24348
24349 2006-05-18  Jackson Harper  <jackson@ximian.com>
24350
24351         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
24352         up.
24353
24354 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24355
24356         * Control.cs: Brought back our old UpdateZOrder method as a private
24357           function and switched our calls from UpdateZOrder to the new one.
24358           This fixes the Paint.Net canvas disappearing bug.
24359
24360 2006-05-18  Jackson Harper  <jackson@ximian.com>
24361
24362         * Theme.cs:
24363         * ThemeWin32Classic.cs:
24364         * InternalWindowManager.cs: Move the drawing into the theme,
24365         expose everything the theme should need from the window manager.
24366
24367 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24368
24369         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
24370           from the call to NativeWindow to avoid walking up the parent chain
24371           further than needed (speeds up setting cursors and avoids setting
24372           the wrong cursor if a parent has another cursor defined)
24373         * Cursor.cs: When loading an icon as cursor, MS uses the center of
24374           the icon as hotspot, not what's contained as hotspot in the icon
24375           file. This fixes the perceived drawing offset seen with Paint.Net
24376         
24377 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
24378
24379         * XplatUIX11.cs: 
24380           - Store the calculated rectangle in Hwnd object and use it when 
24381             setting the client size
24382           - Force Toolwindows to always be type Dock, to ensure they're on top
24383
24384 2006-05-18  Mike Kestner  <mkestner@novell.com>
24385
24386         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
24387         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
24388         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
24389         Substantial refactoring to remove confusing nested classes. Coding
24390         standard and Get+Set->property refactorings.  Shift to index based
24391         highlighting in ComboListBox instead of constantly using IndexOf and
24392         Items[]. Add invalidations on resize for DropDownList to fix ugliness
24393         in FileDialog growth.  Draw borders manually since Simple mode needs
24394         to look like two independent controls.  Make listbox border
24395         conditional to DropDownStyle.  Improved OwnerDraw support.
24396
24397 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
24398
24399         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
24400         Don't set the disposed graphics to null, so we can throw the "right"
24401         exception if the graphics is reused later (added a flag to avoid 
24402         double disposing). Some behaviours are different under 2.0 and are
24403         filled under bug #78448.
24404
24405 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
24406
24407         * Control.cs: When double-buffering is enabled, we need to reset
24408           our graphics context between paint calls. Otherwise, any 
24409           transformations and other alterations on the context will 
24410           become cumulative (#77734)
24411
24412 2006-05-18  Mike Kestner  <mkestner@novell.com>
24413
24414         * ListView.cs: do focused item selection like MS on clicks. 
24415         Rework focus handling for ItemControl so LostFocus invalidates as
24416         well.
24417         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
24418         the ListView ItemControl has focus.
24419
24420 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
24421
24422         * XplatUIX11.cs: If client_window ends up being width or height zero
24423           due to border settings, move it off window inside whole_window (#78433)
24424
24425 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24426
24427         * Mime.cs: Shrink the mime file cache correctly.
24428
24429 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
24430
24431         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
24432
24433 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24434
24435         * XplatUIX11.cs (AddExpose): More sanity checks
24436
24437 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24438
24439         * XplatUIX11.cs:
24440           - AddExpose: Don't add expose ranges outside the size of our
24441             window
24442           - Cast opacity values to Int32 to avoid crashes with certain
24443             values
24444           - Added disabled code paths that protect against illegal cross-
24445             thread painting (Developers.exe)
24446
24447 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24448
24449         * ProgressBar.cs: Invalidate the control when it's resized
24450           since block size is based on control size. (#78388)
24451
24452 2006-05-16  Miguel de Icaza  <miguel@novell.com>
24453
24454         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
24455         of setting the incoming argument to the "reset" value, we set the
24456         this.datamember to string.empty (before we were invalidating the
24457         incoming data).   
24458
24459         Fixes 78420
24460
24461 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24462
24463         * Form.cs: Only apply transparency settings after the form
24464           is created. (Fixes #77800)
24465
24466 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
24467
24468         * ApplicationContext.cs: Grab the HandleDestroyed event so
24469           we know when to fire OnMainFormClosed 
24470
24471 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24472
24473         * Application.cs: Introduced sub-class to allow tracking of
24474           threads and centralized triggering of the event mess for
24475           ThreadExit, AppExit, etc..  (#76156)
24476
24477 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
24478
24479         * MimeIcon.cs:
24480           - Do not return a null icon index value for a mime subclass.
24481             Instead try the main mime type class too.
24482           - Seems that some newer distributions don't have a link to some
24483             gnome default icons anymore. So check the default gnome dir too.
24484           
24485
24486 2006-05-16  Jackson Harper  <jackson@ximian.com>
24487
24488         * MdiClient.cs: Don't paint the parent background image if we have
24489         our own background image.
24490
24491 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
24492
24493         * Control.cs:
24494           - PerformLayout: Do not shrink space filled by DockStyle.Fill
24495             controls, all filled controls are supposed to overlap (#78080)
24496           - UpdateZOrder is supposed to update the control's z-order in the
24497             parent's z-order chain. Fixed to behave like that
24498           - BringToFront: Removed obsolete code
24499           - SendToBack: Simplyfied
24500           - SetChildIndex: Trigger layout calculations when Z-order changes
24501             since layout is done by z-order
24502
24503 2006-05-16  Chris Toshok  <toshok@ximian.com>
24504
24505         [ fixes bug #78410 ]
24506         * DataGrid.cs (set_AlternatingBackColor): use
24507         grid_drawing.InvalidateCells instead of Refresh().
24508         (set_BackColor): call grid_drawing.InvalidateCells.
24509         (set_BackgroundColor): use Invalidate instead of Refresh.
24510
24511         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
24512         invalidate the cell area.
24513
24514 2006-05-15  Chris Toshok  <toshok@ximian.com>
24515
24516         [ fixes bug #78011 ]
24517         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
24518         on to DataGridPaintRow.
24519         (DataGridPaintRow): take a clip argument, and only draw the cells
24520         which intersect it.  same with the not_usedarea.
24521
24522         * Theme.cs (DataGridPaintRow) add @clip parameter.
24523
24524         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
24525         XplatUI.ScrollWindow.
24526         (ScrollToRow): same.
24527
24528         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
24529         with last column which was causing a gray swath to appear with the
24530         XplatUI.ScrollWindow code.
24531
24532 2006-05-15  Chris Toshok  <toshok@ximian.com>
24533
24534         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
24535         use XplatUI.ScrollWindow.
24536         (VerticalScrollEvent): use XplatUI.ScrollWindow.
24537
24538 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
24539
24540         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
24541
24542 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
24543
24544         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
24545           file since there are no equivalent X11 cursors
24546
24547 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
24548
24549         * MonthCalendar.cs : DateTimePicker should reflect selected date
24550           on mouse*up*, not mouse*down*. Fixed originally reported part of
24551           bug #76474.
24552
24553 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
24554
24555         * TabControl.cs : When argument index is equal or more than tab
24556           count, just ignore. Fixed bug #78395.
24557
24558 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
24559
24560         * Control.cs: Dispose all child controls when control is diposed (#78394)
24561
24562 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24563
24564         * ColorDialog.cs: Finally it is possible to select the color with
24565           the text boxes
24566
24567 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24568
24569         * PrintDialog.cs: Fix typo
24570
24571 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
24572
24573         * PrintDialog.cs: PrintDialog is not resizable
24574         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
24575           color. Made some ToolBar drawing methods protected virtual.
24576
24577 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
24578
24579         * PrintDialog.cs: Implementation of the PrintDialog
24580
24581 2006-05-12  Chris Toshok  <toshok@ximian.com>
24582
24583         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
24584         thumb, instead use MoveThumb.  This has the side effect of making
24585         most of the other thumb moving machinery use MoveThumb as well.
24586         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
24587         need to actually invalidate the rectangle where the new thumb will
24588         go.
24589         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
24590         We force an Update() after, so it's not as fast as it could be,
24591         but at least there's zero flicker and no droppings.
24592         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
24593         (UpdateThumbPos): add another argument (dirty), which says whether
24594         or not to calculate/add dirty regions which we later invalidate.
24595         For cases where we know we're going to use MoveThumb, we pass
24596         false for this.  Otherwise, pass true.
24597
24598 2006-05-12  Jackson Harper  <jackson@ximian.com>
24599
24600         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
24601         the status bar.
24602         
24603 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
24604
24605         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
24606           and GetClipRegion methods and UserClipWontExposeParent property.
24607         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
24608           overriding UserClipWontExposeParent property, setting to false, since
24609           Win32 handles the required expose messages to draw our clipped parent
24610           areas internally
24611         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
24612           PaintEventStart to set the user clip region if set.
24613         * Control.cs: 
24614           - Now internally tracking the Region for the control since we need to
24615             store it if the handle is not yet created and only set it when it
24616             becomes created. Before setting the region forced handle creation
24617           - Added code to draw the parents underneath a user-clipped region
24618         * Hwnd.cs: Added UserClip property
24619
24620 2006-05-12  Chris Toshok  <toshok@ximian.com>
24621
24622         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
24623         (set_Maximum): same.
24624         (set_Minimum): same.
24625         (set_SmallChange): same.
24626         (OnMouseUpSB): remove the call to refresh when releasing the
24627         thumb.  We shouldn't need it.
24628         
24629 2006-05-12  Miguel de Icaza  <miguel@novell.com>
24630
24631         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
24632         AutoSize set to None, we do not need to relayout everything, we
24633         just need to invalidate the current region.
24634
24635         (Draw): Do not draw the entire ClientArea, just redraw the
24636         clip area being passed.
24637
24638         * MdiClient.cs: Make MdiClient constructor with the Form argument
24639         internal. 
24640
24641 2006-05-12  Jackson Harper  <jackson@ximian.com>
24642
24643         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
24644         parents background image,  but strangely not their own.
24645         - (DrawStatusBarPanel): Take into account horizontal alignment
24646         when drawing the strings and icons.
24647
24648 2006-05-12  Mike Kestner  <mkestner@novell.com>
24649
24650         * ListBox.cs: avoid invalidations for focus when the collection is
24651         empty. 
24652
24653 2006-05-12  Chris Toshok  <toshok@ximian.com>
24654
24655         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24656         invalidate the entire thumb area.  Call InvalidateDirty which
24657         limits the redraw to the thumb itself and surrounding pixels.
24658
24659         * XplatUIX11.cs (ScrollWindow): optimize copying.
24660         
24661 2006-05-12  Chris Toshok  <toshok@ximian.com>
24662
24663         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24664         Figure out the positioning/layout in a single pass instead of
24665         multiple recursive invocations.  Speeds up the initial display of
24666         the data grid.  Also, make many things private that were
24667         originally public but unused outside this class.
24668
24669 2006-05-11  Jackson Harper  <jackson@ximian.com>
24670
24671         * MdiClient.cs: Improved layout code.
24672
24673 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
24674
24675         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24676           not SelectedObject.
24677
24678 2006-05-11  Chris Toshok  <toshok@ximian.com>
24679
24680         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24681         union of that will always be {0,0,width,height}.
24682
24683 2006-05-11  Jackson Harper  <jackson@ximian.com>
24684
24685         * Form.cs: Match MS's DefaultSize for forms (they must have
24686         changed the size in sp2).
24687
24688 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24689
24690         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24691
24692 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
24693
24694         * TextControl.cs : Fixed bug #78109. This incorrect position
24695           comparison caused crash on automatic line split.
24696         * TextBoxBase.cs : reduce duplicate code.
24697
24698 2006-05-10  Jackson Harper  <jackson@ximian.com>
24699
24700         * MdiClient.cs: Active form is only sent to the back when using
24701         the Next form functionality, when a form is clicked the current
24702         active shouldn't be sent to the back.
24703         - Layout the mdi windows when the container is first made visible.
24704         * Form.cs: Give the MdiClient a ref to the containing form when we
24705         create it.
24706         
24707 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24708
24709         * LinkLabel.cs : link_font could be uninitialized, so populate one
24710           before actual use. Fixed bug #78340.
24711
24712 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
24713
24714         * XplatUIX11.cs : clipboard format native value is IntPtr.
24715           Fixed bug #78283.
24716
24717 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24718
24719         * Control.cs: 
24720           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
24721             which is passed up the parent chain by DefWndProc
24722           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
24723             to DefWndProc (#77956)
24724         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24725
24726 2006-05-10  Jackson Harper  <jackson@ximian.com>
24727
24728         * MdiClient.cs: We need to remove the controls from the mdi
24729         collection, when we close the window.
24730         * MdiWindowManager.cs: Special handling of closing mdi windows.
24731         * InternalWindowManager.cs: Make the close method virtual so the
24732         mdi window manager can handle it specially.
24733
24734 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
24735
24736         * DataGrid.cs:
24737           - Recalculate grid when the data source has changed
24738           - Matches styles provided by user from all data sources types
24739         * DataGridTableStyle.cs: For columns that provided by the user set the
24740         with the preferred value is there was unassigned.
24741         * CurrencyManager.cs: throw OnItemChanged event
24742
24743 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
24744
24745         * PictureBox.cs: Don't animate until handle is created. Start animation
24746           when handle is created.
24747
24748 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24749
24750         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
24751           current codebase.
24752         * XEventQueue.cs: We don't need to provide the extra info
24753
24754 2006-05-10  Jackson Harper  <jackson@ximian.com>
24755
24756         * MdiClient.cs: If the mdi clients parent form has a background
24757         image set, we draw that background image for the mdi area's
24758         background.
24759
24760 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
24761
24762         * TextBoxBase.cs: Set IBeam cursor (#78347)
24763
24764 2006-05-10  Mike Kestner  <mkestner@novell.com>
24765
24766         * ToolBar.cs: fix some text padding issues with ButtonSize
24767         calculation. Update the default size to match MS documentation.
24768         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
24769         button size. Fixes #78296.
24770
24771 2006-05-10  Mike Kestner  <mkestner@novell.com>
24772
24773         * ListBox.cs: use is_visible for scrollbar positioning in case the
24774         control isn't on screen yet.  Fix off by one with Right vs Width
24775         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
24776         
24777 2006-05-10  Jackson Harper  <jackson@ximian.com>
24778
24779         * X11Dnd.cs: Drop to a control with another control on top of it.
24780         * ToolBar.cs: Work on a copy of the buttons list, so that it can
24781         be modified in click handlers. TODO: Look for similar problems in
24782         other controls.
24783
24784 2006-05-09  Jackson Harper  <jackson@ximian.com>
24785
24786         * Form.cs: Window managers need the old window state when setting
24787         window state now.
24788         * InternalWindowManager.cs: Allow the base mdi window manager to
24789         handle more of the MDI only stuff (like maximize buttons).
24790         * MdiWindowManager.cs: Fix some snafus in changing the window
24791         state.  Add all the menu functionality, for both popup and
24792         maximized menus.
24793         * MdiClient.cs: When a new form is selected the currently
24794         activated form is sent to the back, this matches MS.
24795         - Implement a new method to activate the next mdi child window.
24796
24797 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
24798
24799         * Control.cs: 
24800           - Added new InternalCapture method to allow controls to prevent
24801             the capture behaviour on the click handlers
24802           - Switched to use InternalCapture
24803         * ComboBox.cs:
24804           - Using InternalCapture to prevent mouse captures from being released
24805             on mouse button release (Fixes #78100)
24806         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
24807           returns Form borders if a caption is present. (Fixes #78310)
24808
24809 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
24810
24811         * TreeNode.cs: Changed serialization .ctor to not require every field
24812           to be present. (#78265)
24813         * OwnerDrawPropertyBag.cs: Added serialization .ctor
24814
24815 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
24816
24817         * MimeIcon.cs: for is faster than foreach for strings.
24818
24819 2006-05-05  Mike Kestner  <mkestner@novell.com>
24820
24821         * CheckedListBox.cs: update check handling code to not use selected.
24822         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
24823         behavior for visual feedback, motion response, shift/ctrl handling,
24824         and properly deal with all 4 selection modes. Updates to bounds
24825         handling logic.  Add scroll wheel support. [Fixes #77842]
24826
24827 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
24828
24829         * ListView.cs:
24830           - Moved adding of Implicit controls into .ctor. That way, subsequent
24831             creation of the controls will not cause them to think they are 
24832             toplevel windows (fixes #78200 header problem)
24833           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
24834           - Switched visibility setting of header control to use internal field
24835             to avoid triggering handle creation
24836           - Now checking if handle is created before causing a refresh when items
24837             are added (This makes us now match handle creation time with MS)
24838         * Splitter.cs: Removed loading of private splitter cursor, switched to
24839           Cursors version now that that is loading the right ones
24840         * Cursors.cs: Load proper splitter cursors from resources
24841         * Cursor.cs: Added second method of loading resource cursors for the 
24842           VS.Net users amongst us
24843
24844 2006-05-05  Mike Kestner  <mkestner@novell.com>
24845
24846         * ListView.cs: give header_control a minimum size based on the
24847         ListView size.
24848
24849 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
24850
24851         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
24852           window seems to do that with metacity, so set that type. (#78120)
24853
24854 2006-05-05  Mike Kestner  <mkestner@novell.com>
24855
24856         * ListViewItem.cs: fix Details mode checkbox layout bug.
24857         * ThemeWin32Classic.cs: draw a ListView column header for unused space
24858         at the end of the header, if it exists. [Fixes for #78200]
24859
24860 2006-05-04  Jackson Harper  <jackson@ximian.com>
24861
24862         * MdiClient.cs: Add a helper property to get the container form.
24863         * MdiWindowManager.cs: We have to make sure to use the menu origin
24864         when drawing the icons and buttons, this fixes maximized window
24865         icons/buttons on win32.
24866         * InternalWindowManager.cs: Reset the restore captions when a
24867         window goes from Maximized to Minimized and vice versa. Move the
24868         DrawMaximizedButtons into the MdiWindowManager source, tool
24869         windows can't be maximized. NOTE: This could use a little
24870         refactoring if time ever permits.
24871         
24872 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
24873
24874         * TextBox.cs: Add MWFCategoryAttributes
24875         * TextBoxBase.cs: Add MWFCategoryAttributes
24876         * Form.cs: Add MWFCategoryAttributes
24877
24878 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
24879
24880         * Control.cs: Add MWFCategoryAttributes
24881         * ScrollableControl.cs: Add MWFCategoryAttributes
24882
24883 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
24884
24885         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
24886           Divider is true. Fix a little glitch in PropertyToolBar
24887           drawing code
24888
24889 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
24890
24891         * Control.cs:
24892           - Dispose: Call base.Dispose, this causes the disposed event
24893             to be fired (and probably other, more important stuff)
24894           - SetVisibleCore: Set is_visible to true after creating the
24895             window so that the window still gets created invisible (if
24896             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
24897             to generate a WM_ACTIVE message
24898         * Form.cs: Call Dispose when we want to destroy the window, instead of
24899           just destroying the handle (Dispose will do that for us)
24900         * XplatUIX11.cs:
24901           - RootWindow also needs a queue, so we can properly process the
24902             property change events from RootWindow (like Activate)
24903           - Generatic synthetic WM_ACTIVE message when the active window is
24904             being destroyed
24905
24906 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
24907
24908         * LinkLabel.cs: Trigger a recalc of our label dimensions when
24909           bounds are changed
24910
24911 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
24912
24913         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
24914           for determining width and height (image might not be assigned if
24915           we're drawing an imagelist)
24916
24917 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
24918
24919         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
24920         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
24921           height from system
24922         * Theme.cs: No longer returns hardcoded menu height, instead calls
24923           new driver method
24924         * Form.cs (OnLoad): Scaling happens before triggering Load events 
24925           on MS (# 78257)
24926
24927 2006-05-01  Mike Kestner  <mkestner@novell.com>
24928
24929         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
24930
24931 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
24932
24933         * TextBoxBase.cs: Removed Fixme
24934         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24935
24936 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
24937
24938         * XplatUIX11.cs:
24939           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24940             the rectangle relative to the parent, considering borders. We
24941             don't really want that.
24942           - ScrollWindow: Fixed warning to be more understandable
24943         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24944           scrollbars and scroll only the visible area
24945         * RichTextBox.cs: Removed debug output
24946
24947 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24948
24949         * NumericUpDown.cs (Text): Just use base
24950         * UpDownBase.cs: Ensure txtView is created before using it
24951
24952 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24953
24954         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24955           casting to IntPtr to avoid 64bit overflow errors
24956
24957 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24958
24959         * Control.cs:
24960           - AllowDrop: Don't force handle creation.
24961           - CreateHandle: Added call to tell driver if we're allowed to drop
24962
24963 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
24964
24965         * FileDialog.cs: Remember the last directory not only for the
24966           current instance but also for new FileDialog instances.
24967
24968 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
24969         
24970         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24971           broke sending async messages
24972
24973 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
24974
24975         * XplatUIX11.cs:
24976           - ScrollWindow: Fixed method. We finally generate expose events again
24977             for scrolled areas. This was causing 'garbage' when scrolling
24978             textbox and other controls that used ScrollWindow
24979           - Switched from using the regular queue for paint events to the MS 
24980             model of 'generating' paint events when the queue is empty.
24981             We use the new XQueueEvent.Paint subclass to store which windows
24982             need painting.
24983           - AddExpose now takes the x/y/width/height of the exposed area
24984             and inserts the window into the paint queue if not already there
24985           - InvalidateWholeWindow: Switched to use new AddExpose method
24986           - UpdateMessageQueue: Added which queue to monitor for paint events
24987           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24988             the unlikely case nothing above handles it. We reset the expose
24989             pending states to get them off the queue.
24990           - GetMessage: Now pulls a paint event if no other events are in the
24991             queue
24992           - Invalidate: Switched to new AddExpose method
24993           - PeekMessage: Updated to understand pending paint events
24994           - UpdateWindow: Fixed logic bug. We were only updating if the window
24995             didn't need updating. Also switched to sending WM_PAINT directly,
24996             like MS does.
24997         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24998           and random access Remove(). The random access is needed to handle
24999           UpdateWindow() where a WM_PAINT is sent directly without accessing
25000           the queue.
25001         * ScrollBar.cs: Added Update() calls to cause immediate updates to
25002           allow for better feedback when scrolling. Scrollbars are small and
25003           the immediate update should make it 'feel' more responsive without
25004           slowing things down. ScrollBar still needs it's invaliate logic
25005           updated to not always invalidate the whole bar on certain changes.
25006
25007 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25008
25009         * Control.cs:
25010         (BackColor): if the control does not support a transparent background,
25011         return the default backcolor when the parent backcolor is transparent.
25012
25013 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
25014
25015         * Application.cs: Updated to new StartLoop/GetMessage API
25016         * RichTextBox.cs: Provide some output on RTF parsing errors
25017         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
25018           new queue_id argument to GetMessage and PeekMessage to allow faster
25019           handling of per-thread queues in drivers.
25020         * Hwnd.cs: Added Queue tracking and property
25021         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
25022         * XEventQueue.cs: Added thread trackingA
25023         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
25024         * XplatUIX11.cs:
25025           - Implemented new per-thread queue
25026           - GetMessage: Fixed return/break behaviour on several cases. We were
25027             returning stale messages in some cases, instead of just processing
25028             the next message
25029
25030 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25031
25032         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
25033
25034 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
25035
25036         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
25037           fixed off-by-one comparisons between Width/Height and Right/Bottom.
25038
25039 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
25040
25041         * PropertyGridView.cs: Fix drop down width.
25042
25043 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25044
25045         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
25046           a mess in DrawToolBar, so I removed one of them.
25047
25048 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
25049
25050         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
25051           needed (clip). Otherwise we get artifacts.
25052
25053 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25054
25055         * FixedSizeTextBox.cs: Added constructor to allow specifying which
25056           dimension is fixed
25057         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
25058           and switched FixedSizeTextBox to only be fixed vertical (#78116)
25059         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
25060           if it matches the scale base font (avoids unneeded scaling)
25061
25062 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25063
25064         * X11DesktopColors.cs: One gtk_init_check should be enough
25065
25066 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
25067
25068         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
25069           match MS behaviour
25070
25071 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
25072
25073         * TextBoxBase.cs: 
25074           - Generate OnTextChanged for Backspace even if we're only deleting
25075             the current selection
25076           - When setting the Text property, only select all text if the
25077             control does not have focus when it is being set. Otherwise
25078             just place the cursor at the beginning of the control
25079
25080 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
25081
25082         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
25083           Added a little helper to draw PropertyGrid ToolBar with a different
25084           border and a different BackColor.
25085         * PropertyGrid.cs: Some background parts didn't get painted with the
25086           correct background color. Added a class that helps us to draw the
25087           correct border for PropertyGridView and a class that helps us to
25088           draw ToolBars with a different backcolor
25089         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
25090
25091 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
25092
25093         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
25094         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
25095
25096 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25097
25098         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
25099           into the palette entries. Also, since we're working on a copy
25100           we needed to copy the palette back onto the bitmap.
25101         * Cursor.cs: Same fix as XplatUIWin32.cs.
25102
25103 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
25104
25105         * ImageListStreamer.cs: Need to read the var (or we're off)
25106
25107 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
25108
25109         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
25110           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
25111           TextBoxBase.cs: Unused var fixes
25112         * AxHost.cs: Small 2.0 fix
25113         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
25114           as it seems that is what at least Metacity expects. This will make
25115           icons show up on 64bit platforms. We still have some 64bit size
25116           issues, though, since the startup app window size still won't match.
25117
25118 2006-04-25  Mike Kestner  <mkestner@novell.com>
25119
25120         * *.cs: cleanup newly reported exception var unused warnings.
25121
25122 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25123
25124         * ThemeWin32Classic.cs: Button image alignment now matches exactly
25125           ms
25126
25127 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25128
25129         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
25130           image. The image position is always the same, no matter if the
25131           button is pressed or not.
25132
25133 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
25134
25135         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
25136           selection and set the correct filename for SaveFileDialog.
25137           Patch by Emery Conrad.
25138
25139 2006-04-24  Mike Kestner  <mkestner@novell.com>
25140
25141         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
25142         check for item.X outside the ClientRect instead of item.Y. Fixes
25143         #78151.
25144
25145 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25146
25147         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
25148         trust that value blindly and do some sanity check. Fixes bug #77814.
25149
25150 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25151
25152         * ImageListStreamer.cs: save the mask as a 1bpp image.
25153
25154 2006-04-21  Mike Kestner  <mkestner@novell.com>
25155
25156         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
25157         pass Checked and Indeterminate to the Theme Engine. Improve
25158         encapsulation with ListBox.
25159         * ListBox.cs: Keep a StringFormat instead of calculating it every item
25160         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
25161         nested types.  Move all CheckState functionality to CheckedListBox.
25162         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
25163         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
25164         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
25165         single base list. Fix scrollbar sizing and placement to mirror MS.
25166         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
25167         used.
25168         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
25169         for CheckedListBox by using new DrawItemState info.  Center the
25170         checkboxes on the items. Use new StringFormat property.
25171
25172 2006-04-18  Jackson Harper  <jackson@ximian.com>
25173
25174         * Form.cs: MdiChildren don't do default locations the same way as
25175         regular forms.  This prevents a crash when trying to position the
25176         mdi windows.
25177
25178 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
25179
25180         * PropertyGridTextBox.cs: Formatting, copyright
25181         * PropertiesTab.cs: Formatting
25182         * PropertyGrid.cs: Formatting
25183         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
25184           click toggling of values
25185           
25186 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
25187
25188         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
25189         * Control.cs (.ctor): verify_thread_handle is static, don't reset
25190           every time a control is created
25191         * Application.cs: Removed obsolete EnableRTLMirroring method
25192
25193 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
25194
25195         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
25196         SelectedIndex to -1. Fixes bug #78121.
25197
25198 2006-04-17  Jackson Harper  <jackson@ximian.com>
25199
25200         * Binding.cs: Handle null values for Current and BindingContext.
25201         This occurs when binding is a little delayed.
25202         * CurrencyManager.cs: return null for Current when there are no
25203         items in the list.
25204         - Hookup to the listchanged event on the DataView and update
25205         bindings when the list is changed.  This fixes late binding of
25206         controls.
25207
25208 2006-04-17  Jackson Harper  <jackson@ximian.com>
25209
25210         * X11Dnd.cs:
25211         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
25212         Ringenbach.
25213
25214 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
25215
25216         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
25217           place
25218         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
25219           with the correct ButtonState
25220
25221 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
25222
25223         * XplatUIX11.cs: Improved distinguishing between window types to
25224           tell the WM a type closer to what the app wants (Fixes #78107)
25225
25226 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25227
25228         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
25229           GrabHandle
25230
25231 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
25232
25233         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
25234           drawing code to reflect the size grip changes
25235
25236 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25237
25238         * ImageListStreamer.cs: fix handling of the mask that follows the main
25239         bitmap when deserializing and serialize it properly. The generated mask
25240         should better be a 1bpp image, but I'll do that later.
25241
25242 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25243
25244         * FileDialog.cs: Show something in the DirComboBox on *nix if the
25245           path doesn't fit into some of our Current.Places
25246
25247 2006-04-13  Jackson Harper  <jackson@ximian.com>
25248
25249         * ComboBox.cs: Use borders instead of drawing our own decorations,
25250         try to obey correct rules for heights.
25251         * Theme.cs:
25252         * ThemeNice.cs:
25253         * ThemeClearLooks.cs:
25254         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
25255         this is now handled by borders.
25256         - Remove unused DrawListBoxDecorationSize method.
25257         
25258 2006-04-13  Mike Kestner  <mkestner@novell.com>
25259
25260         * MenuAPI.cs: null guarding for the disbled click check fixes crash
25261         reported by Alex.
25262
25263 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
25264
25265         * ThemeWin32Classic.cs: 
25266           - Fixed CPDrawStringDisabled
25267           - Corrected drawing of disabled menu items
25268           - Fixed drawing of disabled radio buttons (bug #78095)
25269           - Draw check in a disabled CheckBox with color ControlDark 
25270
25271 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25272
25273         * Form.cs: Use the provided width when calculating the menu size;
25274           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
25275           and ClientSize.Width won't be updated yet
25276         * Application.cs: Use Visible instead of Show() to make form visible,
25277           this way we create the handle later and menusize is considered
25278
25279 2006-04-12  Mike Kestner  <mkestner@novell.com>
25280
25281         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
25282         reporting.
25283
25284 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25285
25286         * TextBox.cs: Implemented context menu
25287
25288 2006-04-12  Mike Kestner  <mkestner@novell.com>
25289
25290         * ListView.cs: implement box selection. fixes #77838.
25291         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
25292
25293 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25294
25295         * XplatUIX11.cs: Added setting of window type when transient window
25296           is created (metacity would move it otherwise)
25297         * X11Structs.cs: Added WINDOW_TYPE atoms
25298         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
25299           background (the control is Opaque but still wants transparent
25300           backgrounds)
25301
25302 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25303
25304         * Control.cs: Added OnPaintBackgroundInternal to allow controls
25305           that set Opaque but don't mean it (like all ButtonBase-derived
25306           controls) to still draw their background
25307         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
25308           the background
25309
25310 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
25311
25312         * Control.cs (PaintControlBackground): Set the graphics object
25313           on our PaintEvent to null to prevent it from being disposed
25314           when the PaintEvent gets disposed
25315
25316 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
25317
25318         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
25319         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
25320
25321 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
25322
25323         * Control.cs: 
25324           - Added transparency check to BackColor property. Transparent
25325             backgrounds are only allowed if the control styles permit it
25326           - Added recursive painting of parent control background and
25327             foreground if a control with a transparent backcolor is drawn
25328             (Thanks to Tim Ringenback for providing his 'hack' as a base
25329              for this patch) Fixes #77985 and #78026.
25330           - Added Opaque style check before calling OnPaintBackground, no
25331             need to draw the background if the control is opaque
25332           - Removed ControlAccessibleObject owner variable (inherited from
25333             base, no need to define again)
25334           - Added some documentation links explaining the drawing events
25335             and styles
25336
25337 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25338
25339         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
25340           that the affected control is the located at the left border of our
25341           parent (Fixes #77936)
25342
25343 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25344
25345         * TextBoxBase.cs: When rendering disabled or readonly controls,
25346           draw the background with 'Control' instead of 'Window' color as
25347           long as the user hasn't specifically set a color
25348
25349 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
25350
25351         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
25352           since that won't be updated if the user types text (only if it's
25353           programatically set)
25354
25355 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25356
25357         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
25358           layout changes do to app-triggered resizes will have the proper
25359           display rectangle for layout
25360
25361 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
25362
25363         * ThemeWin32Classic.cs:
25364           - Make use of the SystemBrushes and SystemPens wherever possible
25365           - Corrected some highlight colors
25366           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
25367             drawing
25368         * Theme.cs: Added Empty field to CPColor struct
25369
25370 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
25371
25372         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
25373           is displayed when calculating the display rectangle. Thanks to Mike
25374           for teaching me the err of my ways.
25375
25376 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
25377
25378         * ScrollableControl.cs:
25379           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
25380             (instead of 0,0) and we now return the real width/height instead of
25381             just the clientrectangle, adjusted for padding. The rectangle is
25382             now cached and created by the new CalculateDisplayRectangle method.
25383           - Created new CalculateDisplayRectange method, which basically does
25384             what get_DisplayRectangle() did originally, but now using the 
25385             right edge instead of DisplayRectangle to determine the size of
25386             our scrollbars
25387           - get_Canvas(): Fixed it to properly calculate canvas for 
25388             right/bottom controls which seem to be placed to the right/bottom
25389             of any controls that have a fixed location
25390           - Removed TODO that's taken care of
25391           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
25392             and SetDisplayRectLocation according to new MSDN2 docs
25393           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
25394             event when that is called, this is added for compatibility
25395           - ScrollControlIntoView(): Implemented.
25396           - Switched scrollbars to be implicit, they shouldn't be selectable
25397         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
25398           call it when the active control is set/changed
25399         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25400         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
25401           implicit_control variable (used for native Win32 message generation)
25402         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
25403           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
25404         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
25405         * XplatUIStructs.cs: Added ScrollBarCommands enum
25406
25407 2006-04-10  Jackson Harper  <jackson@ximian.com>
25408
25409         * ButtonBase.cs:
25410         * CheckedListBox.cs:
25411         * ComboBox.cs:
25412         * DataGrid.cs:
25413         * DataGridView.cs:
25414         * Form.cs:
25415         * GroupBox.cs:
25416         * ListBox.cs:
25417         * PrintPreviewControl.cs:
25418         * ProgressBar.cs:
25419         * PropertyGrid.cs:
25420         * Splitter.cs:
25421         * StatusBar.cs:
25422         * TrackBar.cs:
25423         * UpDownBase.cs: Fixup base event overrides.
25424         
25425 2006-04-06  Mike Kestner  <mkestner@novell.com>
25426
25427         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
25428         all user-initiated value changes to min <= value <= max-thumbsz+1.
25429         (set_Value): check for vert/horiz when calculating new thumb position.
25430         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
25431         like MS does.
25432         (OnMouseMoveSB): refactor the thumb dragging code and refine
25433         invalidation logic to reduce flicker.
25434         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
25435         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
25436         (UpdateThumbPosition): small code readability cleanup
25437
25438 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
25439
25440         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
25441           different
25442
25443 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25444
25445         * ThemeNice.cs: Use a better graphics effect when a button is pressed
25446
25447 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
25448
25449         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
25450         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
25451           This dramatically reduces the number of Pen.Dispose calls. 
25452           Where possible call ResPool methods only once instead of calling it
25453           over and over again (for example for the same color).
25454
25455 2006-04-06  Mike Kestner  <mkestner@novell.com>
25456
25457         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
25458         Also remove an unused private field on the collection. Fixes #77972.
25459
25460 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25461
25462         * ThemeNice.cs: Added ToolBar drawing code
25463
25464 2006-04-06  Mike Kestner  <mkestner@novell.com>
25465
25466         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
25467         I'm assuming that means we need to look up the toplevel for the
25468         provided control. Fixes the crash trace in #77911 but exposes another
25469         crash in some strange reflection usage in NDocGui.
25470
25471 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
25472
25473         * ThemeNice.cs: Gave it a little silver touch and added Images
25474           method
25475         * FontDialog.cs: FontDialog is not resizable
25476         * FileDialg.cs: Added SizeGripStyle.Show
25477
25478 2006-04-05  Jackson Harper  <jackson@ximian.com>
25479
25480         * KeyboardLayouts.cs: Remove warning.
25481
25482 2006-04-05  Jackson Harper  <jackson@ximian.com>
25483
25484         * Control.cs: Enable OnPaintInternal so we can use it for drawing
25485         all of our controls instead of Paint +=.
25486         * ListBox.cs:
25487         * ListView.cs:
25488         * MenuAPI.cs:
25489         * MessageBox.cs:
25490         * NotifyIcon.cs:
25491         * ProgressBar.cs:
25492         * ScrollBar.cs:
25493         * Splitter.cs:
25494         * StatusBar.cs:
25495         * TabControl.cs:
25496         * TextBoxBase.cs:
25497         * ToolBar.cs:
25498         * TrackBar.cs:
25499         * UpDownBase.cs:
25500         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
25501         use OnPaintInternal. Remove Width/Height and Visible checks in
25502         paint handler, this is done at a higher level now.
25503         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
25504         * PaintEventArgs.cs: Add a handled flag so controls that don't
25505         want anymore painting after OnPaintInternal can make sure OnPaint
25506         isn't called.
25507
25508 2006-04-05  Mike Kestner  <mkestner@novell.com>
25509
25510         * Form.cs: fix the menu WndProc hacks to respect the native enabled
25511         state of the form, so that we don't process events when Modal dialogs
25512         are up. Fixes #77922.
25513
25514 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
25515
25516         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
25517           checking is done.
25518
25519 2006-04-05  Mike Kestner  <mkestner@novell.com>
25520
25521         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
25522
25523 2006-04-05  Mike Kestner  <mkestner@novell.com>
25524
25525         * ListView.cs (HeaderMouseMove): null guarding for the over column
25526         when setting up the drag_to_index.  Fixes #78015.
25527
25528 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
25529
25530         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
25531           in the taskbar. Transient windows seem to accomplish that.
25532
25533 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
25534
25535         * Form.cs:
25536           - Re-enabled CreateParams.X/Y code for FormStartPosition
25537           - Added code for manual placement when creating the Control
25538           - Incomplete patch to treat MDI forms differently when
25539             setting the ClientSizeCore. (Still need to figure out handling
25540             x/y coords there)
25541         * XplatUIX11.cs:
25542           - When we're explicitly setting the X/Y position of a non-Child
25543             window, let the WM know. Metacity really wants this.
25544
25545 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25546
25547         * ThemeNice.cs: Added CPDrawButton
25548
25549 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25550
25551         * ThemeNice.cs: Changed the color for focused buttons and activated
25552           the arrows for small scroll buttons.
25553
25554 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
25555
25556         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
25557           anymore. Changed some method modifiers to protected (virtual)
25558         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
25559           changes
25560         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
25561           Updated drawing of menus, buttons and progressbars; added
25562           CPDrawBorder3D 
25563
25564 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25565
25566         * ImageListStreamer.cs: implemented serialization/deserialization
25567         of the images.
25568
25569 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
25570
25571         * ThemeWin32Classic.cs:
25572           - Removed all the DrawFrameControl stuff; CPDrawButton,
25573             CPDrawCheckBox and CPDrawRadioButton are now handled directly
25574             inside the methods
25575           - Updated and corrected the drawing code of CPDrawButton,
25576             CPDrawCheckBox and CPDrawRadioButton to better match ms
25577           - Updated theme checkbox and radiobutton code to use the CP*
25578             methods
25579
25580 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
25581
25582         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
25583           bug is fixed
25584
25585 2006-03-31  Jackson Harper  <jackson@ximian.com>
25586
25587         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
25588         sometimes.
25589         * UpDownBase.cs: Don't CreateGraphics manually, use a
25590         Refresh. Ideally we would invalidate the correct areas here.
25591
25592 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
25593
25594         * XplatUIX11.cs: 
25595           - We now track the mapping state of windows. If a window (or 
25596             one of it's parents) is not mapped we no longer permit
25597             WM_PAINT messages to be generated since we'd otherwise get 
25598             lots of BadMatch X errors. Jackson did all the work figuring
25599             out the problem.
25600           - Destroying the caret if the window it's contained in is 
25601             destroyed. Can't use regular DestroyCaret method since it
25602             might fall into a drawing function (trying to remove the
25603             caret) and with that generate new BadMatch errors. Again,
25604             Jackson tracked this down.
25605           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
25606             make sure we send the messages to all windows. (The old code
25607             would send the WM_DESTROY to the window, and then all child
25608             windows would be 'gone' because the WM_DESTROY handle lookup
25609             would no longer find the destroyed window)
25610         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
25611         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
25612
25613 2006-03-31  Jackson Harper  <jackson@ximian.com>
25614
25615         * ScrollableControl.cs: Dont recalc if we are not visible.
25616
25617 2006-03-31  Mike Kestner  <mkestner@novell.com>
25618
25619         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
25620         the visibility branch.
25621
25622 2006-03-31  Jackson Harper  <jackson@ximian.com>
25623
25624         * ScrollBar.cs: Cap values when incrementing/decrementing.
25625
25626 2006-03-31  Mike Kestner  <mkestner@novell.com>
25627
25628         * MenuAPI.cs: setup menu.tracker for popup/context menus.
25629         * ToolTip.cs: guard against timer expirations with no active control.
25630         Not sure why it happened.
25631
25632 2006-03-31  Mike Kestner  <mkestner@novell.com>
25633
25634         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
25635         text.
25636         * ToolTip.cs: Position the tooltip based on where the cursor is at
25637         popup time, not at MouseEnter time.  Add a Down state so that we don't
25638         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
25639         positioning offset. Lookup DisplaySize at positioning time, since it
25640         can theoretically change during invocation.
25641         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
25642         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
25643
25644 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25645
25646         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25647           Fixes behaviour when the Text property of the box is String.Empty
25648
25649 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
25650
25651         * XplatUIX11.cs: Only send mouseleave for our client windows, not
25652           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25653           a window)
25654
25655 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25656
25657         * FileDialog.cs: Visual enhancement for the popup buttons in 
25658           PopupButtonPanel
25659
25660 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
25661
25662         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25663           code
25664
25665 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
25666
25667         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25668           highlighted menu items to match ms
25669
25670 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
25671
25672         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25673
25674 2006-03-30  Mike Kestner  <mkestner@novell.com>
25675
25676         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25677         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25678         go active to account for HotLight to Selected transition.
25679         * MenuItem.cs: add internal Selected prop. Fill out the Status
25680         property by calculating it from item info. Add HotLight,
25681         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25682
25683 2006-03-30  Mike Kestner  <mkestner@novell.com>
25684
25685         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25686
25687 2006-03-29  Jackson Harper  <jackson@ximian.com>
25688
25689         * Form.cs: Implement TODO.
25690
25691 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
25692
25693         * PrintPreviewDialog.cs: Implemented missing methods and events; still
25694           missing proper dialog setup in the constructor
25695
25696 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
25697
25698         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25699         * Control.cs:
25700           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25701           - Fixed ResetBindings and removed TODO
25702           - Added check for cross-thread calls to get_Handle()
25703           - Added Marshaller attribute for set_Font to satisfy class status
25704         * FontDialog.cs: Removed TODOs that seemed implemented
25705         * UpDownBase.cs: Removed unneeded TODO and Fixme
25706         * MessageBox.cs: Implemented support for Default button and removed TODO
25707         * FileDialog.cs: Removed obsolete TODO
25708         * DomainUpDown.cs: Removed obsolete TODO
25709         * ButtonBase.cs: Removed obsolete TODO
25710         * XplatUIWin32.cs: Removed obsolete TODO
25711         * Form.cs:
25712           - Removed obsolete TODO
25713           - Calling CheckAcceptButton when the acceptbutton is changed to allow
25714             internal status updates
25715           - Making sure the active control is selected when the control is created
25716         * CurrencyManager.cs: Removed obsolete TODO
25717
25718 2006-03-29  Mike Kestner  <mkestner@novell.com>
25719
25720         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25721         of PrintPreviewDialog and RichTextBox.
25722
25723 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
25724
25725         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25726           DarkDark, Light and LightLight colors for a specific color
25727         * ThemeWin32Classic.cs:
25728           - Use Button drawing code to draw RadioButtons and CheckBoxes with
25729             Appearance = Button 
25730           - Make use of the new ResPool helper CPColor
25731           - Draw ProgressBar and StatusBar with correct 3D borders
25732
25733 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
25734
25735         * ColorDialog.cs: Return selected color. Fixes bug #77940.
25736
25737 2006-03-28  Mike Kestner  <mkestner@novell.com>
25738
25739         * ListView.cs: fix Icon layout to plan for scrollbar widths when
25740         calculating col/row counts.
25741
25742 2006-03-28  Mike Kestner  <mkestner@novell.com>
25743
25744         * ColumnHeader.cs:
25745         * ListView.cs:
25746         * ListViewItem.cs:
25747         * Menu.cs: 
25748         switch to explicit interface method implementation for some methods
25749         corcompare identifies as inconsistent with MS.
25750
25751 2006-03-28  Mike Kestner  <mkestner@novell.com>
25752
25753         * MainMenu.cs: 
25754         * Menu.cs:
25755         add a few missing methods from the class status output.
25756
25757 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
25758
25759         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
25760           correct.
25761
25762 2006-03-28  Mike Kestner  <mkestner@novell.com>
25763
25764         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
25765
25766 2006-03-27  Mike Kestner  <mkestner@novell.com>
25767
25768         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
25769         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
25770
25771 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
25772
25773         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
25774
25775 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25776
25777         * ThemeWin32Classic.cs:
25778           - GroupBox: Inserted a little gap between the text and the lines
25779             on the right side
25780           - Made the code in CPDrawBorder3D more readable
25781           - Corrected the drawing location of the up and down arrows in 
25782             CPDrawScrollButton
25783
25784 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25785
25786         * ControlPaint.cs: Corrected line widths in DrawBorder for
25787           ButtonBorderStyle Inset and Outset
25788
25789 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25790
25791         * ThemeWin32Classic.cs:
25792           - Rewrote the totally broken CPDrawBorder3D method. That was
25793             one of the main problems for the terrific ThemeWin32Classic
25794             look
25795           - Updated and corrected Button drawing
25796           - Correct the dimensions of the SizeGrip to match ms ones
25797           - Removed a small drawing glitch in DrawComboBoxEditDecorations
25798         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
25799           Border3DStyle.Sunken to match ms.
25800
25801 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
25802
25803         * ThemeWin32Classic.cs: First small part of the "de-uglify
25804           ThemeWin32Classic" effort, SizeGrip
25805
25806 2006-03-24  Jackson Harper  <jackson@ximian.com>
25807
25808         * XplatUIX11.cs: Give a max idle time of one second, this matches
25809         MS and forces an Idle event every second when there are no other
25810         events in the queue.
25811
25812 2006-03-24  Mike Kestner  <mkestner@novell.com>
25813
25814         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
25815         * ListView.Item.cs: fix layout issues with null image lists and images
25816         smaller than checkbox size.
25817         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
25818         mode like MS does.  It's weird, but consistent.  ;-)
25819         Fixes #77890.
25820
25821 2006-03-24  Mike Kestner  <mkestner@novell.com>
25822
25823         * ListView.cs: Scroll wheel support for the item control.  Fixes
25824         #77839.
25825
25826 2006-03-23  Jackson Harper  <jackson@ximian.com>
25827
25828         * ScrollableControl.cs: Special case negative sized areas, not
25829         zero.
25830         * MonthCalendar.cs: Save the rect of the clicked date so we can
25831         use it for invalidation.
25832         - Try to cut down on the number of invalidates
25833         - Invalidate the rect the mouse is over and was over when moving
25834         the mouse, so we get the focus box following the cursor.
25835
25836 2006-03-23  Mike Kestner  <mkestner@novell.com>
25837
25838         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
25839         focus rectangle drawing. Fixes #77835.
25840
25841 2006-03-23  Mike Kestner  <mkestner@novell.com>
25842
25843         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
25844         the if and else if and reverting back to the original == check on the
25845         None conditional.
25846
25847 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
25848
25849         * FontDialog.cs: Update the example panel if the selected index of
25850           the fontListBox changes.
25851
25852 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
25853
25854         * FileDialog.cs: Make FileDialog remember which directory it was in
25855           last in the same execution.
25856
25857 2006-03-22  Mike Kestner  <mkestner@novell.com>
25858
25859         * FileDialog.cs: make the DropDownMenu on the toolbar display
25860         RadioChecks since they are mutually exclusive and that's what MS does.
25861
25862 2006-03-22  Mike Kestner  <mkestner@novell.com>
25863
25864         * Theme.cs: add Color param to CPDrawMenuGlyph.
25865         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
25866         checks and radio marks and arrows are visible on highlighted items.
25867         * ControlPaint.cs: update to use new Theme signature.
25868
25869 2006-03-22  Mike Kestner  <mkestner@novell.com>
25870
25871         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
25872         is active. Fixes #77870.
25873
25874 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
25875
25876         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
25877           to be focused/selected after startup
25878
25879 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
25880
25881         * ColorDialog.cs: 
25882           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
25883             CustomColors and ShowHelp properties
25884           - Some internal rewrites to get better results when using the
25885             ColorMatrix
25886
25887 2006-03-22  Mike Kestner  <mkestner@novell.com>
25888
25889         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
25890         HoverSelection.  Fixes #77836.
25891
25892 2006-03-22  Mike Kestner  <mkestner@novell.com>
25893
25894         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
25895         ToggleButtons.  (De)Sensitize the Back button around a stack count of
25896         1, not 0.  Update ButtonSize based on a pixel count of the win32
25897         control.  Adjust the toolbar size/location for new button size.
25898
25899 2006-03-22  Jackson Harper  <jackson@ximian.com>
25900
25901         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
25902         true.
25903         * ScrollBar.cs: When doing increments and decrements we need to
25904         set the Value property so that ValueChanged gets raised. A
25905         possible optimization here would be to make an internal SetValue
25906         that doesn't invalidate immediately.
25907         * ToolTip.cs: Tooltips get added to their container (when
25908         supplied) so they get disposed when the container is disposed.
25909         - Don't create tooltips for String.Empty. This prevents all these
25910         little 2-3 pixel windows from showing up when running nunit-gui
25911         and driving me mad.
25912         * Form.cs: Don't set topmost when setting the owner if the handles
25913         haven't been created yet.  The topmost set will happen when the
25914         handles are created.
25915
25916 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
25917
25918         * XplatUIX11.cs:
25919           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
25920           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
25921             visible (to allow them to recalculate their sizes)
25922
25923 2006-03-21  Mike Kestner  <mkestner@novell.com>
25924
25925         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
25926         methods. Removed a ton of redundant code.  Still not really happy with
25927         the border rendering, but I think that's mainly because of the
25928         ControlDarkDark being black instead of a dark grey. Depending on how 
25929         close we want to be, we might want to revisit those color choices.
25930         Among the new features added during the refactor were DropDownArrow
25931         pressed rendering, Disabled image rendering.  Proper flat appearance
25932         boundary rendering.  Removed the Divider and Wrapping dividers since I
25933         can't figure out any combination of themes and conditions to make the
25934         MS control draw a horizontal line on a toolbar despite what the
25935         Divider property docs indicate.
25936         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25937         conditions and incorrect layout.  Updated to coding standard.
25938         * ToolBarButton.cs: refactored layout and positioning code from
25939         ToolBar to here.  Invalidate wherever possible instead of forcing
25940         redraws of the whole toolbar. 
25941         (Known remaining issues: explicit ButtonSize smaller than provided
25942         images.)
25943
25944 2006-03-21  Mike Kestner  <mkestner@novell.com>
25945
25946         * ContextMenu.cs (Show): use the position parameter instead of just
25947         showing at the MousePosition.
25948
25949 2006-03-21  Jackson Harper  <jackson@ximian.com>
25950
25951         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25952         control handle this.
25953         * TreeNodeCollection.cs: If we are clearing the root node we need
25954         to reset top_node so calcs can still happen.
25955         * ThemeWin32Classic.cs: This is a Flags so we need to check
25956         properly.
25957         
25958 2006-03-21  Jackson Harper  <jackson@ximian.com>
25959
25960         * DataGrid.cs: Create columns when the binding context has been
25961         changed.
25962         * X11Structs.cs: Keysyms are uints.
25963         - Add size to fix build.
25964
25965 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
25966
25967         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
25968           XplatUIOSX.cs: 
25969           - Added ResetMouseHover method to allow controls to retrigger
25970             hovering if they need it more than once
25971           - Implemented MouseHoverTime and MouseHoverSize properties
25972         * Timer.cs: Start() must reset the interval
25973         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25974           properties
25975
25976 2006-03-21  Jackson Harper  <jackson@ximian.com>
25977
25978         * X11Keyboard.cs: improved layout detection. Move the nonchar
25979         tables into this file.
25980         * KeyboardLayouts.cs: Move the tables into resource files.
25981
25982 2006-03-21  Mike Kestner  <mkestner@novell.com>
25983
25984         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25985
25986 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
25987
25988         * Mime.cs: Various speed optimizations. Looking up mime types
25989           is now 2 times faster than before
25990
25991 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
25992
25993         * CreateParams.cs: Added internal menu field
25994         * Control.cs: 
25995           - Switched call order for UpdateBounds; now we always call
25996             the one that also takes ClientSize, and we're calculating the 
25997             client size via driver method in the others. The previous
25998             method of tracking client size by difference wasn't working
25999             for forms where even the starting client size wouldn't match
26000             the overall form size (due to borders) (Part of fix for #77729)
26001           - CreateParams(): Do not use parent.Handle unless the handle is
26002             already created. Causes havoc with Nexxia and throws off our
26003             creation of controls
26004         * XplatUIX11.cs:
26005           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
26006           - Switched handling of ConfigureNotify over to new PerformNCCalc 
26007             method (consolidates code)
26008           - Changed RequestNCRecalc to use new PerformNCCalc method
26009           - Added calls to RequestNCRecalc when menus and borders are changed
26010             to allow app to set NC size. (Part of fix for #77729) This matches
26011             when MS send a WM_NCRECALC on Win32 windows.
26012           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
26013             (Part of fix for #77729). This matches what MS does, they also
26014             send that message when the form is made visible.
26015           - XException.GetMessage: Improved usability of X errors by including
26016             a translation of the window into Hwnd and Control class
26017           - Improved debug info for window creation, reparenting and destruction
26018           - Created helper method WindowIsMapped() [Currently not used]
26019         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
26020         * Form.cs:
26021           - CreateParams: Now setting our menu on the new internal menu field
26022           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
26023             avoid calculating the same property twice
26024         * Hwnd.cs:
26025           - Improved usability of ToString() for debugging purposes
26026           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
26027             determine the height of the menu, instead of just the font. This
26028             required to also create a graphics context and to keep a bmp 
26029             around (for performance reasons)
26030
26031 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
26032
26033         * MenuAPI.cs: Added OnMouseUp method
26034         * Form.cs:
26035           - Now remembering the requested client size, avoids size errors
26036           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
26037             instead of base if the menu is active. This is required due to
26038             control now capturing and releasing on down/up and it would
26039             prematurely release our menu capture
26040
26041 2006-03-17  Jackson Harper  <jackson@ximian.com>
26042
26043         * KeyboardLayouts.cs: Add the czech layouts.
26044
26045 2006-03-16  Jackson Harper  <jackson@ximian.com>
26046
26047         * Control.cs: Use the viewport space when sizing not the controls
26048         client size, so things like ScrollableControl that effect the
26049         viewport size (when scrollbars are added) are computed correctly.
26050         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
26051         of ManagerEntrys.
26052         - Handle creating BindingManagers for null data sources.
26053         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
26054         source, otherwise when rows are added they are added to the 'fake'
26055         datasource and we will crash when trying to set the position in
26056         those rows.
26057         - Use Implicit scrollbars on the datagrid so they arent
26058         selectable.
26059         
26060 2006-03-16  Jackson Harper  <jackson@ximian.com>
26061
26062         * Binding.cs:
26063         * InternalWindowManager.cs:
26064         * MdiWindowManager.cs:
26065         * X11Keyboard.cs: I really want Mike to love me again (fix
26066         compiler warnings).
26067
26068 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
26069
26070         * DataGrid.cs:
26071           - OnMouseDown: Switch to editing mode when clicking on the cell
26072                          even if we're clicking on the cell that's currently 
26073                          selected
26074           - ProcessGridKey: Left/Right now wrap like MS.Net does
26075           - ProcessGridKey: Tab now knows to add a new row when tab is
26076                             pressed in the cell of the last column of the 
26077                             last row
26078           - ProcessGridKey: Enter now adds another row  if pressed in the last
26079                             row and selectes the new row, same column cell
26080           - ProcessGridKey: Home/End navigate columns, not rows, like 
26081                             originally implemented
26082           - Broke ProcessKeyPreview code out into an extra Internal method
26083             so it can be called from the edit code
26084         * DataGridTextBox.cs (ProcessKeyMessage):
26085           - Switched to accept Tab keypresses
26086           - Added F2 handling to allow jumping to the end of the edited cell
26087           - Added logic to allow moving caret left/right inside edited cell
26088             and making the edited cell jump when the caret hits cell borders
26089           - Tab and Enter are now passed to the datagrid after being handled
26090         * TextBoxBase.cs:
26091           - Removed capture code now that Control handles it
26092           - set_SelectionStart now ensures caret is visible
26093
26094 2006-03-16  Jackson Harper  <jackson@ximian.com>
26095
26096         * TrackBar.cs: Debackwards the increment/decrement for handling
26097         mouse clicks on the bar with vertical trackbars.
26098         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
26099         bottom to match MS.
26100
26101 2006-03-16  Mike Kestner  <mkestner@novell.com>
26102
26103         * ListView.cs: make shift/ctrl keyboard and mouse selection 
26104         consistent with the MS control. Fix a bug in
26105         SelectedListViewItemCollection.Clear that was pissing me off for the
26106         better part of a day because the collection was being altered
26107         underneath us as we walked the list.
26108
26109 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
26110
26111         * Control.cs: Not sure how we could miss this so long, but it seems
26112           that MS.Net has Capture set all the way from before calling 
26113           OnMouseDown through sending the mouse events until after
26114           OnMouseUp. This will fix DataGrid's selection being set to end
26115           at the location of the MouseUp.
26116
26117 2006-03-15  Jackson Harper  <jackson@ximian.com>
26118
26119         * BindingContext.cs: Check the binding after its added so that it
26120           can initialize the binding managers and hookup to events.
26121         * Binding.cs: Data members seem to sometimes include rows/cols in
26122           the format Row.Column we now take this into account.
26123           - Hookup to the position changed event so we can update the
26124           control when the position has changed in the data set.
26125         * CurrencyManager.cs: Take into account the row/col naming
26126           convention when creating dataset tables.
26127         * BindingContext.cs: Using a newer better way of storing
26128           datasource/datamember pairs.  Hopefully this better matches MS for
26129           looking up binding managers.
26130
26131
26132 2006-03-15  Jackson Harper  <jackson@ximian.com>
26133
26134         * BindingContext.cs: The currency manager needs the data member
26135         name, if the member is a data set we use the name to find the
26136         correct table.
26137         * CurrencyManager.cs: When creating the list prefer an IList over
26138         an IListSource.
26139         - Attempt to create a DataTable from a DataSet (TODO: might need
26140         some better error checking here, although MS doesn't seem to have much)
26141         - If we have a DataTable create a view and use it as our list.
26142
26143 2006-03-15  Mike Kestner  <mkestner@novell.com>
26144
26145         * ListView.cs: keep a matrix of the icon mode layout to facilitate
26146         keyboard navigation. Support Up/Down/Left/Right selection correctly
26147         for all 4 View modes.
26148         * ListViewItem.cs: add internal row/col fields for icon layouts.
26149
26150 2006-03-15  Jackson Harper  <jackson@ximian.com>
26151
26152         * TabControl.cs: Redraw the tabs when we resize so their newly
26153         calculated sizes are drawn on screen.
26154         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
26155         composite characters.
26156         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
26157         - filter events so that composite characters can be created
26158         patches by peter
26159         * X11Structs.cs: Add XIMProperties enum.
26160
26161 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26162
26163         * Control.cs (BringToFront, SendToBack): Don't use window or handle
26164           unless it's created
26165
26166 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26167
26168         * Control.cs (PerformLayout): We don't need to consider visiblity
26169           for anchoring, only for docking. This fixes 'whacky' alignment
26170           in listbox and other controls that use implicit scrollbars after
26171           the previous PerformLayout patch
26172         * ListBox.cs: Switched to use implicit scrollbars
26173           
26174 2006-03-14  Mike Kestner  <mkestner@novell.com>
26175
26176         * ToolBar.cs: 
26177         * VScrollBar.cs:
26178         - chain up the "new event" overrides to base and use
26179         OnEvent to raise them.  Part of fix for bug #76509.
26180
26181 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
26182
26183         * FileDialog.cs: Do not select an item in the parent directory
26184           on backspace
26185
26186 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
26187
26188         * Control.cs (PerformLayout): It would seem that we considered
26189           invisible windows for our layout. Not quite the right thing
26190           to do. Now we don't any longer, thereby fixing bug #76889.
26191
26192 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
26193
26194         * Control.cs (CanFocus): I goofed. A control can have focus 
26195           even though it's not selectable. Made it match MS docs.
26196
26197 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26198
26199         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
26200           center by default (fixes #76895)
26201         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
26202           all uses of Border3DSides.All with the explicit ORd together
26203           Left|Right|Top|Bottom because I assume that nobody was aware 
26204           that All also implies a center fill. Most places I checked had
26205           a fill right above.
26206         * ProgressBarStyle.cs: Added
26207
26208 2006-03-13  Mike Kestner  <mkestner@novell.com>
26209
26210         * ListView.cs: fix breakage in drag shadow header positioning 
26211         from Peter's csc compilation fix.
26212
26213 2006-03-13  Mike Kestner  <mkestner@novell.com>
26214
26215         * ListView.cs: fix NRE produced by backspacing twice in a focused
26216         FileDialog.
26217
26218 2006-03-13  Mike Kestner  <mkestner@novell.com>
26219
26220         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
26221
26222 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26223
26224         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
26225           be changed
26226         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
26227           the allowed size before making programmatic size changes
26228
26229 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
26230
26231         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
26232           set, metacity is broken and will still use the emty sizes in 
26233           the struct. (Fix for #77089)
26234
26235 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
26236
26237         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
26238           WindowExStyles and marked both enums as Flags
26239         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
26240           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
26241           to match WindowStyles split
26242         * XplatUIX11.cs:
26243           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
26244           - Updated to match WindowStyles split
26245         * XplatUIWin32.cs:
26246           - Fixed FosterParent creation, was using ExStyle on the Style field
26247             (This should help with Popup focus issues)
26248           - Updated to match WindowStyles split
26249
26250 2006-03-13  Jackson Harper  <jackson@ximian.com>
26251
26252         * MdiWindowManager.cs: Use the system menu height. Fixes some
26253         strange sizing issues.
26254
26255 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26256
26257         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
26258         * TextBoxBase.cs:
26259           - Scroll to caret after inserting text (#77672)
26260           - Make scroll range one pixel higher, fixes off-by-one error (and
26261             makes underlines visible on the last line)
26262
26263 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
26264
26265         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
26266           the keyboard state from being stuck with keys in 'pressed' state when
26267           focus is switched away via keyboard
26268         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
26269           reset the keyboard if no X11 KeyUp events are expected to come
26270         * X11Structs.cs: Switched type of Visible to bool to match driver
26271
26272 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
26273
26274         * TextControl.cs:
26275           - Switched caret to be just 1 pixel wide, matches MS and looks less
26276             clunky
26277           - Moved caret display 1 pixel down from the top of the control
26278             to improve view
26279           - InsertCharAtCharet: Update the selection start if moving the caret
26280             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
26281           - No longer always creating the caret when the caret methods are
26282             called. Only the actual ShowCaret/HideCaret will do that now
26283           - Only setting caret visible if the owner control has focus
26284           - UpdateView: Added invalidation-shortcut logic for center and right 
26285             aligned text. Previously we'd update all according to the left
26286             logic which caused drawing errors. Also fixed height of invalidated
26287             areas, now properly invalidating the whole area (was off-by-one)
26288           - owner_HandleCreated: Always generate the document when the
26289             handle is created; this ensures that 
26290         * TextBoxBase.cs:
26291           - Fixed situation where caret would disappear under the right
26292             window border, also improved scrolling behaviour on left-
26293             aligned textboxes
26294           - Fixed right-aligned textboxes to have a border to the
26295             right instead of the caret being under the right border
26296         * XplatUIX11.cs:
26297           - Switched from 'nested' to simple visible/not visible tracking 
26298             for caret (part of fix for #77671)
26299           - No longer passing through translated FocusIn/FocusOut messages
26300             since we were notifying too often and the wrong windows. Instead
26301             we just notify our focussed window of receiving or loosing focus
26302         * XplatUIWin32.cs: Switched from 'nested' show/hide 
26303           counting for caret to simple visible yes/no behaviour (part of 
26304           fix for #77671)
26305
26306 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26307
26308         * Mime.cs: Remove debug code...
26309
26310 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
26311
26312         * MimeGenerated.cs: Removed
26313         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
26314           and subclasses) from /usr/(local/)share/mime and
26315           $HOME/.local/share/mime.
26316
26317 2006-03-10  Jackson Harper  <jackson@ximian.com>
26318
26319         * MdiWindowManager.cs: Recalc the NC area when a window is
26320         maximized/restored so that the menu area is drawn on forms that
26321         don't have a menu.
26322
26323 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26324
26325         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26326           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
26327           us to force a WM_NCCALCRESIZE message being sent. This is needed
26328           for MDI maximizing.
26329
26330 2006-03-10  Jackson Harper  <jackson@ximian.com>
26331
26332         * Form.cs: We need to use the ActiveMenu when calculating menu
26333         height.
26334         - Fix nullref when the window manager hasn't been created yet.
26335         * Control.cs: Fix nullref when we try to bring a control to the
26336         front that has no parent.
26337         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
26338         height.
26339         - Add a dummy item to the maximized menu so it always has the
26340         correct height. Otherwise when there are no menus we don't get our
26341         icon and buttons.
26342         
26343
26344 2006-03-10  Jackson Harper  <jackson@ximian.com>
26345
26346         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
26347         stuff.
26348         * Form.cs: Make the window_state internal so the window managers
26349         can track it.
26350         - When an MDI child is maximized let its window manager create the
26351         main menu (so it can add its icon).
26352         - Notify the window managers of state changes
26353         - Let the window manager paint its buttons and handle button
26354         clicks on the menu when it is maximized.
26355         * InternalWindowManager.cs: Move the prev_bounds into the mdi
26356         window manager, since tool windows don't use it, only mdi windows.
26357         - Tell the main form that we don't want it to handle NCPAINT
26358         itself to avoid extra painting.
26359         - Handle clicks on a maximized windows menu.
26360         - Handle window state changes
26361         - Handle minimize/maximize clicks correctly by setting the window state.
26362         * MdiWindowManager.cs: Add an icon menu that (the menu you get
26363         when clicking on the forms icon).
26364         - New method to create a forms maximized menu. This is its normal
26365         menu + an icon.
26366         - Handle window state changes.
26367         - Handle sizing of maximized windows.  Maximized windows are just
26368         drawn bigger then the parent visible area. All controls are still
26369         there, they are just outside the visible area (this matches windows).
26370         * MdiClient.cs: No scrollbars when a child window is maximized.
26371         - Let the children windows figure out how big they should be when
26372         sizing maximized windows.
26373         - Implement a version of ArrangeIconicWindows somewhat similar to
26374         Windows version.  There are some little differences, but I don't
26375         think any app will rely on the layout of minimized mdi windows.
26376
26377 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26378
26379         * Padding.cs: Several fixes to allow compiling with csc 2.0
26380
26381 2006-03-09  Jackson Harper  <jackson@ximian.com>
26382
26383         * Menu.cs:
26384         * MenuItem.cs: Cheap hack so we can add items to the list without
26385         the events being raised.  This allows adding mdi items during
26386         drawing. TODO: Should probably find a better time to add the items.
26387
26388 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26389
26390         * ThemeWin32Classic.cs:
26391           - CheckBox_DrawText: Added logic to not wrap if not enough space
26392             is available (Fix for bug #77727)
26393           - RadioButton_DrawText: Added logic not to wrap if not enough
26394             space is available (Fix for bug #77727). Also removed some
26395             duplicate code, DrawString always drawing the regular text
26396             before hitting the if statement.
26397
26398 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
26399
26400         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
26401
26402 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
26403
26404         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
26405         * ContainerControl.cs: Partial implementation of some 2.0 scaling
26406           methods. Moved the new 2.0 properties into alphabetical order with
26407           other properties and added MonoTODO tags
26408
26409 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26410
26411         * AutoScaleMode.cs: Added. Fix build.
26412
26413 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26414
26415         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
26416           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
26417           and was requiring premature handle creation for calls from above
26418         * Form.cs, Control.cs: Removed handle arguments from calls to
26419           CalculateClientRect()
26420
26421 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26422
26423         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
26424           drag_column.column_rect is MarshalByRef and can't be used that way
26425
26426 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26427
26428         * AxHost.cs: Added deserialization constructor for 
26429           AxHost+State (fixes 77743)
26430
26431 2006-03-09  Mike Kestner  <mkestner@novell.com>
26432
26433         * ListView.cs: 
26434         - Added column drag reordering for details view.
26435         - fixed behavior when mouse is dragged off column and
26436         AllowColumnReorder is false.
26437         * ColumnHeader.cs: clone the format too in Clone.
26438         * Theme.cs: add DrawListViewHeaderDragDetails method.
26439         * ThemeWin32Classic.cs:
26440         - impl new method for drawing drag column shadows and targets.
26441         - support column offset for details mode in DrawListViewItem.
26442
26443 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26444
26445         * TextControl.cs: Reset the char_count when the document is cleared
26446           (Fixes bug reported on mono-winforms mailing list)
26447
26448 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
26449
26450         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
26451           of calling base we simply process the key ourselves, since both
26452           DefWindowProc and the handled method would set m.Result. 
26453           (Fixes #77732)
26454
26455 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
26456
26457         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
26458           method also moves the window; instead implemented a copy of
26459           Control.ScaleCore (Part of fix for #77456)
26460         * TextBoxBase.cs: 
26461           - Created new CreateGraphicsInternal method to allow providing
26462             a graphics context when no handle is created without triggering
26463             handle creation. (Part of fix for #77456)
26464           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26465         * TextControl.cs: 
26466           - Switched Constructor to require TextBoxBase instead of Control (to
26467             allow uncast access to CreateGraphicsInternal)
26468           - Safeguarded use of owner.Handle property. No longer accessing it
26469             unless the handle is already created.
26470           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
26471           - Now triggering a recalc when owning control becomes visible
26472         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
26473           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
26474           premature handle creation (Part of fix for #77456)
26475         * Control.cs:
26476           - We now only destroy our double-buffering buffers when the
26477             control is resized or disposed, but not when visibility
26478             changes. (The code even re-created them twice every time)
26479           - Now requiring a redraw of the buffer on visibility changes
26480             (fixes bug 77654 part 2)
26481           - Not passing OnParentVisibleChanged up unless the control
26482             is visible
26483           - CanFocus: Fixed to match MS documentation
26484           - Focus: Fixed to return actual focus state and to check if
26485             setting focus is legal before setting it
26486
26487 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
26488
26489         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
26490           when to draw focus rectangle by looking at parent focus and
26491           selected state instead. This fixes TabPages on Linux sometimes
26492           having none or multiple focus rectangles.
26493         * XplatUIX11.cs (SetFocus): 
26494           - Don't set the focus if the same window already has focus
26495           - Use SendMessage instead of PostMessage (like it's Win32
26496             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
26497             to match MS behaviour
26498         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
26499           are not selectable.
26500
26501 2006-03-07  Jackson Harper  <jackson@ximian.com>
26502
26503         * PictureBox.cs: Revert line I accidently committed last week.
26504
26505 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
26506
26507         * Control.cs: 
26508           - Added new IsRecreating and ParentIsRecreating properties to
26509             allow testing if RecreateHandle has been called on ourselves
26510             or one of our parents
26511           - WndProc(WM_DESTROY): If our control handle is being recreated
26512             we immediately need to create the handle when receiving the
26513             destroy, that way our child windows find a valid parent handle
26514             when they themselves are being recreated upon WM_DESTROY receipt
26515             (fix for bug #77654 part 1)
26516         * XplatUIX11.cs:
26517           - DestroyWindow: WM_DESTROY must be sent to our own window before
26518             notifying any child windows. MS documents that child windows
26519             are still valid when WM_DESTROY is received. (Control now relies on
26520             this behaviour)
26521           - Added some fine-grain debug options
26522
26523 2006-03-06  Jackson Harper  <jackson@ximian.com>
26524
26525         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
26526         box and base calculations off this.
26527         * MdiChildContext.cs:
26528         * MdiWindowManager.cs: Don't need to ensure scrollbars here
26529         anymore.
26530         
26531 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
26532
26533         * Splitter.cs: In situations where the affected control is added
26534           to the parent's control list after the splitter, we would not
26535           populate affected. Now we try populating it on mousedown, if
26536           it's not already set, and force it to be re-set whenever our
26537           parent changes.
26538
26539 2006-03-03  Matt Hargett  <matt@use.net>
26540
26541         * Control.cs: implement Control.Padding
26542         * Padding.cs: -Padding.All returns -1 when constructing with the
26543         implicit default ctor
26544         -Padding.ToString() matches MS.NET
26545         * ContainerControl.cs: implement
26546         ContainerControl.AutoScaleDimensions
26547         * ListControl.cs: implement ListControl.FormattingEnabled
26548         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
26549         * ButtonBase.cs:
26550         * TabPage.cs: Implement UseVisualStyleBackColor.
26551         * PictureBox.cs: Implement PictureBox.InitialImage.
26552
26553 2006-03-03  Mike Kestner  <mkestner@novell.com>
26554
26555         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
26556         event declarations to proxy to base event.
26557         * ListViewItem.cs: update to use ItemControl.
26558         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
26559         * ThemeWin32Classic.cs: update to new ListView theme API and fix
26560         column header label rendering for 0 width columns.
26561
26562 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
26563
26564         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
26565           that causes the control to be created. Fixes #77476.
26566
26567 2006-03-02  Jackson Harper  <jackson@ximian.com>
26568
26569         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
26570         expose_pending.
26571
26572 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
26573
26574         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
26575           passed in for the EventArgs (fixes #77690)
26576
26577 2006-03-01  Jackson Harper  <jackson@ximian.com>
26578
26579         * ScrollBar.cs: Refresh afterbeing resized.
26580
26581 2006-02-28  Mike Kestner  <mkestner@novell.com>
26582
26583         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
26584         Clean up a tracker compile warning.
26585         * MenuItem.cs: add internal PerformPopup method.
26586         [Fixes #77457]
26587
26588 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
26589
26590         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
26591           implicit expose) when the text is set to null
26592
26593 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
26594
26595         * RichTextBox.cs (FlushText): When newline is true, we always
26596           need to split the line, even if no text is on it and we may
26597           never eat newlines. (Fixes #77669)
26598
26599 2006-02-28  Mike Kestner  <mkestner@novell.com>
26600
26601         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
26602         and set Selected instead.
26603         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
26604         collections.
26605
26606 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
26607
26608         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
26609
26610 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
26611
26612         * FontDialog.cs:
26613           - Got rid of the panel. All controls are now directly added to
26614             the dialog form
26615           - It is now possible to set a font with the Font property
26616           - MinSize and MaxSize property do now what they should
26617           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
26618           - Searching and selecting a font with the font textbox works now,
26619             the same applies to the style and size textbox
26620           - Draw the correct 3D border in the example panel
26621           - Fixed a little mem leak (unused fonts didn't get disposed)
26622           - Many other internal updates/rewrites...
26623           - Fix typo
26624
26625 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
26626
26627         * TextControl.cs: 
26628           - InsertRTFFromStream: Added 'number of characters inserted' argument
26629           - set_SelectedRTF: Now using the number of characters to calculate
26630             the new location for the selection and cursor (x/y cannot be used
26631             due to potentially already wrapped text)
26632
26633 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
26634
26635         * TextControl.cs: Added property and implemented means to allow 
26636           disabling recalculation of a document (can be used to speed up
26637           multiple inserts and is needed to make RTF inserts predictable, see
26638           bug #77659)
26639         * RichTextBox.cs: Using the new NoRecalc property of Document to
26640           keep x/y insert locations predictable. Also makes it faster inserting
26641           large chunks of RTF
26642
26643 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
26644
26645         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26646           it's easier for a child control to handle the other messages without
26647           having to duplicate the special functionality
26648         * TextBoxBase.cs
26649           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
26650             code to handle processing the key ourselves, in order to get 
26651             access to the result of KeyEventArgs.Handled. We now only call 
26652             ProcessKey if they key hasn't been handled already. Fixes #77526.
26653           - set_Text: If null or empty string is given, just clear the 
26654             document. Fixes part of #77526
26655
26656 2006-02-27  Jackson Harper  <jackson@ximian.com>
26657
26658         * SizeGrip.cs: Paint the background color before painting the grip
26659         so things look right.
26660         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26661
26662 2006-02-27  Mike Kestner  <mkestner@novell.com>
26663
26664         * ListView.cs:
26665           - Restructure layout and invalidation model to remove a ton of
26666           flicker from the control and speed up performance in general.
26667           - Add manual column resize, flickers like crazy, but I already have
26668           some ideas on how I'll fix that. (#76822)
26669           - Merge the three Icon-based views into a single layout method.
26670           - Move item selection interaction logic from the item since 
26671           interaction with the collections is more appropriate to the view.
26672           - Deselection on non-item clicks.
26673         * ListViewItem.cs:
26674           - Encapsulate most of the layout. Add some internal props to trigger
26675           layout.  Move to a model where Items invalidate themselves instead
26676           of just invalidating the whole control every time something changes.
26677           - Invalidate on Text/Caption changes.
26678           - switch to an offset based layout model to avoid having to absolute
26679           position every element on item moves.
26680           - correct checkbox layout to conform to MS layout.
26681         * ThemeWin32Classic.cs:
26682           - refactor some column header drawing code.
26683           - fix string justification for column headers (#76821)
26684           - make SmallIcon labels top justified for compat with MS impl.
26685         * ThemeClearlooks.cs:
26686           - adjust to new ListViewItem internal checkbox bounds api.
26687
26688 2006-02-27  Jackson Harper  <jackson@ximian.com>
26689
26690         * Control.cs:  Change where implicit controls fall in the zorder.
26691         They are now on top of all children.
26692         - Synced AddImplicit code with Add
26693         - Removed unused enumerator.
26694         * SizeGrip.cs: Remove the TODO as its been TODONE.
26695
26696 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
26697
26698         * TextControl.cs(Insert): Combine the last lines unless the insertion
26699           string ends with \n\n, otherwise we leave one line too many (Fixes
26700           something I noticed with the testapp for #77526; the bug itself was
26701           already fixed in the previous checkin)
26702
26703 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
26704
26705         * RichTextBox.cs:
26706           - SelectionColor and SelectionFont methods no longer set absolute
26707             styles. Instead, the keep font or color respectively (This 
26708             resolves a long-standing FIXME in the code)
26709           - When flushing RTF text, the insert code now considers text trailing
26710             behind the insertion point (Fixes the bug where when replacing
26711             the selected text via SelectedRTF the remainder of the line behind 
26712             the selection would stay on the first insertion line)
26713         * TextBoxBase.cs:
26714           - AppendText now updates the selection points after inserting text
26715           - AppendText now ensures that the last tag (sometimes 0-length) of
26716             the document is used for the style information (Fixes part of 
26717             bug #77220)
26718         * TextControl.cs:
26719           - Created new FontDefiniton class to allow describing partial style
26720             changes
26721           - StreamLine() now takes a lines argument, to allow it to decide
26722             whether an encountered zero-length tag is the last in the document
26723             (which must be kept to not loose the font/color contained in it,
26724             for later appends)
26725           - Created Combine() and Split() methods for Marker structs, to 
26726             support marker updates due to reformatted documents (soft line
26727             wraps)
26728           - Implemented Document.CaretTag setter
26729           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26730             of the last line (Not the cause, but also exposed by bug #77220)
26731           - Added LineTag argument to InsertString method, to allow callers
26732             to force a certain tag to be used (required to force use of the
26733             trailing zero-length tag of a document)
26734           - Now updating markers in Combine(), to avoid stale tag markers
26735           - Added some method descriptions to aid maintenance
26736           - Implemented new FormatText concept, allowing additive/subtractive
26737             formatting by only specifying the components that are to be 
26738             changed. This was needed for resolving the RTB.SelectedColor/
26739             RTB.SelectedFont fixmes
26740           - Added Break() support method to allow breaking up linetags (used
26741             for partial formatting)
26742           - Added GenerateTextFormat() method. It is used for partial 
26743             formatting and allows to generate a full font/color from given
26744             attributes and an existing tag.
26745
26746 2006-02-26  Jackson Harper  <jackson@ximian.com>
26747
26748         * XplatUIX11.cs:  Use the correct caption height.
26749         - Translate hittest coordinates to screen coords to match MS.
26750         * XplatUIWin32.cs: When we create MDI windows we need to reset
26751         some of the style flags, so we get a nice blank window, and can
26752         draw all the decorations ourselves.
26753         - Set a clipping rectangle on the non client paint event, the
26754         window manager drawing code needs one.
26755         * Form.cs: The window manager needs to know when the window state
26756         has been updated.
26757         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
26758         don't need to factor in border and title sizes in these
26759         methods. TODO: Remove the args and fix the call points.
26760         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
26761         properly.
26762         - Let the driver set the cursors.
26763         - Improve active window handling
26764         - Correct sizes for title bars and buttons.
26765         - Match MS drawing better
26766         * MdiWindowManager.cs: We don't need to handle border style
26767         updates specially anymore.
26768         - Check for scrollbars when windows are done moving
26769         - Handle Active properly.
26770         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
26771         correctly. I am spewing the exception though, so we don't hide the
26772         bugs.
26773         
26774 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
26775
26776         * DataGridViewRowPostPaintEventArgs.cs,
26777           DataGridViewCellPaintingEventArgs.cs,
26778           DataGridViewRowCollection.cs,
26779           DataGridViewRowPrePaintEventArgs.cs,
26780           DataGridViewCell.cs: Clear a few warnings and implement a few
26781           exceptions that should be thrown.
26782
26783 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
26784
26785         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
26786           'inheriting' our parent's (non-default) cursor. (Part of
26787            the fix for #77479)
26788
26789 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
26790
26791         * XplatUIX11.cs: Fixed cast to make csc happy
26792
26793 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
26794
26795         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
26796           it's for the client area (part of fix for #77479 and needed
26797           for MDI window cursor handling)
26798         * XplatUIX11.cs
26799           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
26800             the appropriate default cursors and also passing the message
26801             up the parent chain 
26802           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
26803             for non-client areas
26804
26805 2006-02-15  Jackson Harper  <jackson@ximian.com>
26806
26807         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
26808         is a real MDI window
26809
26810 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
26811
26812         * X11DesktopColors.cs: Instead of checking the desktop session
26813           string for "KDE" check if it starts with "KDE"
26814
26815 2006-02-10  Jackson Harper  <jackson@ximian.com>
26816
26817         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
26818         systems).
26819
26820 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
26821
26822         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
26823           errors
26824         * ColorDialog.cs:
26825           - Got rid of the panel. All controls are now directly added to
26826             the dialog form
26827           - Changed to mono coding style
26828
26829 2006-02-10  Jackson Harper  <jackson@ximian.com>
26830
26831         * InternalWindowManager.cs: We don't need the set visibility to
26832         false hack anymore now that peter has written beautiful shutdown
26833         code.
26834
26835 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
26836
26837         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
26838           where already explicitly destroyed
26839
26840 2006-02-10  Jackson Harper  <jackson@ximian.com>
26841
26842         * MdiClient.cs: Handle the case where windows are too high or to
26843         the left and we need scrollbars.
26844
26845 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
26846
26847         * MimeIcon.cs: Added some icons
26848         * FileDialog.cs:
26849           - Fixed bug #77477
26850           - Got rid of the panel. All controls are now directly added to
26851             the dialog form
26852           - Changed to mono coding style
26853           - On Linux "My Computer" and "My Network" will now show some
26854             more usefull information. A new class, MasterMount, gathers
26855             this information from /proc/mount. Updated MWFFileView to make
26856             use of this information
26857           - Fixed a bug that caused FileDialog to crash when
26858             ".recently_used" file had a zero size
26859           - FilterIndex does now what it should
26860           - Some Refactoring
26861         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
26862             FileDialog changes
26863
26864 2006-02-09  Jackson Harper  <jackson@ximian.com>
26865
26866         * ComboBox.cs: Don't touch if null.
26867
26868 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
26869
26870         * Cursor.cs: 64bit safeness fix
26871         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
26872
26873 2006-02-09  Jackson Harper  <jackson@ximian.com>
26874
26875         * Form.cs: If a form is made into an MDI form update the styles so
26876         all the props can get set correctly.
26877         - Kill the mdi_container when we dont need it anymore.
26878         * InternalWindowManager.cs: Add missing NOT
26879
26880 2006-02-08  Jackson Harper  <jackson@ximian.com>
26881
26882         * InternalWindowManager.cs: Respek clipping when drawing MDi
26883         decorations.
26884
26885 2006-02-08  Jackson Harper  <jackson@ximian.com>
26886
26887         * Hwnd.cs: Add bits to track non client expose events.
26888         * XplatUIX11.cs: Track non client expose events on the hwnd. This
26889         gives us a proper invalid rect and will allow for some nice
26890         optimizations with NC client drawing
26891         - MDI windows are children windows, so move their style handling
26892         into the child window block.
26893         * InternalWindowManager.cs: Remove a state reset that was
26894         getting invoked at the wrong time. Fixes managed windows getting
26895         into a 'stuck' captured state.
26896
26897 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
26898
26899         * TextControl.cs (Document.ctor): Now initializing 
26900           selection_anchor. Fixes #77493
26901
26902 2006-02-07  Jackson Harper  <jackson@ximian.com>
26903
26904         * TrackBar.cs: The increment/decrements were backwards.
26905
26906 2006-02-07  Mike Kestner  <mkestner@novell.com>
26907
26908         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
26909         to the instance itself.
26910
26911 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
26912
26913         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
26914           on ulongs and pointers, the size differs between 32bit and 64bit
26915           systems. 
26916
26917 2006-02-07  Mike Kestner  <mkestner@novell.com>
26918
26919         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
26920         for 64 bit platforms to work around a metacity bug. 
26921
26922 2006-02-07  Jackson Harper  <jackson@ximian.com>
26923
26924         * TrackBar.cs: Process the input keys we need, and hookup to
26925         KeyDown instead of using WndProc, so we get key messages.
26926
26927 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
26928
26929         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
26930           machine we're on. 
26931         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
26932           we need to translate the XdndVersion atoms array before sending it
26933
26934 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
26935
26936         * XplatUIX11.cs: 
26937           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26938             number of bits for the property, not the number of bytes. The
26939             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26940             but would not crash since it specified 8 bits instead of 4 bits)
26941           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26942             defined as XID -> long in the C headers)
26943           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
26944             references since those are now IntPtr to begin with
26945           - Switched all Atom.XXX 'int' casts to IntPtr casts
26946           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26947           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26948           - Added XChangeActivePointerGrab DllImport (for X11DnD)
26949         * X11Structs.cs:
26950           - Changed 'int' type for Atoms in XEvent structures to IntPtr
26951           - Changed atom in HoverStruct to be IntPtr
26952         * X11DnD.cs:
26953           - Removed local DllImports, switched code to use those from XplatUIX11
26954           - Removed/fixed casts related to the switch of Atom to be a IntPtr
26955
26956 2006-02-06  Mike Kestner  <mkestner@novell.com>
26957
26958         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
26959         method signatures in the import region.  There may still be some
26960         lingering struct marshaling issues, as I didn't drill down into those.
26961         Yet.
26962
26963 2006-02-06  Jackson Harper  <jackson@ximian.com>
26964
26965         * ComboBox.cs: Dont manually set the top_item, this is computed
26966         when the scrollbar position is set.
26967
26968 2006-02-06  Mike Kestner  <mkestner@novell.com>
26969
26970         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26971         startup crashes on amd64.  There's other fixes needed.  All pinvoke
26972         usage of Atom needs to be mapped to IntPtr for example.  And there are
26973         likely other int/long issues to be addressed.
26974
26975 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
26976
26977         * FileDialog.cs: One more...
26978
26979 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26980
26981         * FileDialog.cs: Next try
26982
26983 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26984
26985         * FileDialog.cs: First part of fix for #77464
26986
26987 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
26988
26989         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26990           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26991           AcceptButton border drawing.
26992
26993 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
26994
26995         * Form.cs: Moved positioning of form after auto scaling is applied,
26996           otherwise it would possibly use wrong form size.
26997
26998 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
26999
27000         * Control.cs (RecreateHandle): No need to re-create any child
27001           controls, the child windows will get destroyed automatically by
27002           the windowing system or driver, and re-created when the handle
27003           is being accessed the first time. Fixes #77456
27004         * Form.cs: No longer setting the form to closing if the handle is 
27005           being recreated. This seems like the right thing to do, don't
27006           have a bug or testcase for this, though.
27007
27008 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27009
27010         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
27011           controls to avoid unwanted side effects
27012
27013 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
27014
27015         * Control.cs: 
27016           - ScaleCore needs to scale the bounds, not the ClientSize of the 
27017             control. Fixes #77416.
27018           - DefaultSize is 0,0 for control
27019         * TextBoxBase.cs: 
27020           - DefaultSize is 100, 20
27021           - SetBoundsCore: Now enforcing the height, no matter if the provided
27022             height is more or less than the preferred one, as long as AutoSize
27023             is on
27024         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
27025
27026 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
27027
27028         * Control.cs:
27029           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
27030             call unless both performLayout is true *and* we have a pending
27031             layout change
27032           - ResumeLayout: MS does not completely nest Suspend and Resume,
27033             they bottom out at 0, fixed our code to match that.
27034           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
27035             SetBoundsCore, we were updating even when we shouldn't. This fixes
27036             swf-anchors mis-anchoring when resizing the app fast and lots.
27037           - UpdateDistances: Now only setting the left and top distance if 
27038             we have a parent and are not suspended, this is based on
27039             a suggestion by Don Edvaldson in bug #77355.
27040           - OnVisibleChanged: Fixed logic when to create the control. We may
27041             not create the control if we have no parent or if it's not visible;
27042             switched to using Visible property instead of is_visible field 
27043             since the property also considers parent states. This fixes a bug
27044             when starting Paint.Net
27045
27046 2006-02-02  Jackson Harper  <jackson@ximian.com>
27047
27048         * Form.cs: If the forms handle hasn't been created yet don't call
27049         into xplatui to make it top most, just set the topmost flag on the
27050         form in CreateParams
27051         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
27052
27053 2006-02-01  Jackson Harper  <jackson@ximian.com>
27054
27055         * ScrollableControl.cs: Refactored the Recalculate method a
27056         little, this wasn't handling all the variants of bottom and right
27057         bars needed to be added and added/removed based on their
27058         counterparts being added/removed (which changes the drawable
27059         size). Also we special case client widths and heights of 0 and
27060         don't add the scrollbar for those.
27061
27062 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
27063
27064         * XplatUIX11.cs: 
27065           - Added method to get AbsoluteGeometry(); currently unused, but might
27066             be used in the future, if we try again to figure out toplevel
27067             coordinates with some more crappy window managers
27068           - Added FrameExtents() method to retrieve the WM set decoration size
27069           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
27070             to deal with at least KDE, FVWM and metacity (Fixes #77092)
27071         * Hwnd.cs: 
27072           - Added whacky_wm tracking var for metacity
27073           - Added logic to have default menu height if the actual menu height
27074             has not yet been calculated (part of fix for #77426)
27075         * Form.cs: Keep track whether client size has been set and re-set 
27076           it if a menu is added/removed afterwards (Fixes #77426)
27077
27078 2006-01-31  Jackson Harper  <jackson@ximian.com>
27079
27080         * Control.cs: When a new Site is set on the component attempt to
27081         pull the AmbientProperties from it.
27082
27083 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
27084
27085         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
27086           in the background of the owning form. Fixes #77332
27087
27088 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27089
27090         * MimeIcon.cs: Fix for #77409
27091
27092 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
27093
27094         * XplatUIX11GTK.cs: Initial import
27095
27096 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
27097
27098         * FixedSizeTextBox: fixes class signature
27099
27100 2006-01-30  Jackson Harper  <jackson@ximian.com>
27101
27102         * FixedSizeTextBox.cs: New internal class that represents a
27103         textBox that will not be scaled.
27104         * TreeView.cs:
27105         * ComboBox.cs:
27106         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
27107         standard TextBox.
27108                 
27109 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
27110
27111         * XplatUIX11.cs: Retrieve default screen number instead of
27112           assuming 0. Attempted fix for #77318
27113
27114 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
27115
27116         * XplatUIWin32.cs: 
27117           - GetWindowPos: When a window is parented by FosterParent, use 
27118             the desktop instead of FosterParent as the base to get coordinates
27119           - CreateWindow: Don't make FosterParent the parent window for Popups
27120             if we don't want a taskbar entry, Popups automatically don't get one
27121         * Hwnd.cs: Need to call remove to actually remove the key from the
27122           hash table
27123
27124 2006-01-30  Mike Kestner  <mkestner@novell.com>
27125
27126         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
27127
27128 2006-01-30  Jackson Harper  <jackson@ximian.com>
27129
27130         * TreeView.cs:
27131         * TreeNode.cs: Raise events no matter how the treenode is
27132         checked. Patch by Don Edvalson.
27133
27134 2006-01-30  Jackson Harper  <jackson@ximian.com>
27135
27136         * TreeNode.cs: Signature fix.
27137
27138 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
27139
27140         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
27141
27142 2006-01-20  Mike Kestner  <mkestner@novell.com>
27143
27144         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
27145         event forwarding when menus are active.
27146         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
27147         Most of the patch is pdb's with a little rework.
27148
27149 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27150
27151         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
27152           Removed GetMenuDC and ReleaseMenuDC methods; replaced
27153           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
27154         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
27155         * InternalWindowManager.cs: Added use of PaintEventStart/End to
27156           handling of WM_NCPAINT message, now passing the PaintEventArgs to
27157           the PaintWindowDecorations method
27158         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
27159         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
27160         * MenuAPI.cs: Made tracker window invisible
27161         * XplatUIWin32.cs:
27162           - Removed GetMenuDC and ReleaseMenuDC methods
27163           - Implemented the client=false path for PaintEventStart and
27164             PaintEventEnd
27165
27166 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27167
27168         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
27169         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
27170           styles
27171         * Form.cs: 
27172           - MaximizeBox, MinimizeBox: Recreate the handle when setting
27173             the style
27174           - CreateParams: Reworked the styles to match MS look'n'feel,
27175             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
27176             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
27177
27178 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
27179
27180         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
27181           window is not mapped, since otherwise every form that's being 
27182           created is considered minimized, which is wrong.
27183         * Form.cs: Catching the exception and returning our internal value
27184           instead
27185
27186 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
27187
27188         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
27189           SetWindowMinMax() to have means to tell the driver about the minimum,
27190           maximum and maximized state window sizes. (Part of the fix for #76485)
27191         * Form.cs:
27192           - Implemented tracking of minimum and maximum window size, now calling
27193             new SetWindowMinMax() driver method to tell the driver (Part of the
27194             fix for #76485)
27195           - Finished handling of WM_GETMINMAXINFO method, now setting all values
27196             (Completes fix for #76485)
27197           - Calling new SetWindowMinMax driver method when the handle for a 
27198             form is created, to make sure the driver knows about it even if
27199             the values have been set before the window was created
27200           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
27201             to avoid messing up our anchoring calculations (partial fix
27202             for #77355)
27203         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
27204         * XplatUIX11.cs:
27205           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
27206           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
27207             (and presumably other freedesktop.org compliant WMs). Left the
27208             assumption unmapped=minimized, needed for SetVisible to work.
27209           - Now setting the window state when creating windows
27210           - Fixed SetVisible to consider/set the window state when mapping
27211             a Form. We cannot set the state before it's mapped, and we cannot
27212             use Form.WindowState once it's mapped (since it would ask the
27213             driver and get 'normal'. Therefore, we grab the state before
27214             mapping, map, and then set state.
27215           - Implmemented SetWindowMinMax method; Metacity does not seem to
27216             honor the ZoomHints, though.
27217         * XplatUIWin32.cs:
27218           - Removed MINMAXINFO (moved to XplatUIStructs)
27219           - Added SetWindowMinMax stub (on Win32 the only way to set that
27220             information is in response to the WM_GETMINMAXINFO message, which
27221             is handled in Form.cs)
27222           - Added logic to SetVisible to set the proper window state when a 
27223             form is made visible (fixes #75720)
27224
27225 2006-01-26  Jackson Harper  <jackson@ximian.com>
27226
27227         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
27228         same way we handle them with Invoke.
27229
27230 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
27231
27232         * Form.cs:
27233           - Added tracking of window state so CreateParams can return
27234             the appropriate style
27235           - Moved setting of WS_CAPTION style in CreateParams to allow
27236             styles without caption
27237         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
27238           control if the TextBox property is accessed. Fixes #77345
27239         * Control.cs:
27240           - get_Created: now uses is_disposed and is_created to determine
27241             return value (suggested by Jackson)
27242           - CreateHandle: No longer exits if the handle is being recreated
27243           - RecreateHandle: If the handle is not yet created call the 
27244             appropriate method to create either control or handle. If the
27245             control is already created CreateHandle will simply exit instead
27246             of just creating the handle
27247         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
27248           now SendMessage WM_DESTROY directly to the control when DestroyWindow
27249           is called.
27250         * XplatUIX11.cs: 
27251           - When DestroyWindow is called, instead of waiting for the 
27252             DestroyNotification from X11, we directly post it to the WndProc
27253             and immediately dispose the hwnd object.
27254             Same applies to DestroyChildWindows, and this obsoletes the
27255             expose_pending tracking. Contrary to Win32 behaviour we destroy our
27256             child windows before our own, to avoid X11 errors.
27257           - Removed the direct sending of WM_PAINT on UpdateWindow
27258         * XplatUIWin32.cs:
27259           - Reworked DoEvents and GetMessage to allow access to internal queue
27260             even when trying non-blocking access to the queue.  Fixes #77335. 
27261             Based on a patch suggestion by Don Edvalson. The new private
27262             GetMessage can now also be used as a backend for a PeekMessage
27263             frontend version.
27264         * XplatUI.cs: Improved debug output for CreateWindow
27265
27266 2006-01-25  Jackson Harper  <jackson@ximian.com>
27267
27268         * Help.cs: Allow param to be null. Patch by Don Edvalson.
27269
27270 2006-01-24  Jackson Harper  <jackson@ximian.com>
27271
27272         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
27273         when we have a MaxDropItems lower then the selected index.
27274
27275 2006-01-24  Jackson Harper  <jackson@ximian.com>
27276
27277         * Control.cs: Don't allow selection of non visible controls, allow
27278         selection of controls without parents.
27279
27280 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27281
27282         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
27283         * DataGridDrawingLogic.cs: Add editing row only when is necessary
27284
27285 2006-01-23  Jackson Harper  <jackson@ximian.com>
27286
27287         * UpDownBase.cs: Make the textbox handle all the selection and
27288         tabbing. This fixes tabing to updown controls.
27289
27290 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
27291
27292         * TextBoxBase.cs: fixes exception thown the object was null
27293
27294 2006-01-23  Jackson Harper  <jackson@ximian.com>
27295
27296         * ButtonBase.cs: Just use the base CreateParams. They set
27297         visibility and enabled correctly.
27298         * ComboBox.cs:
27299         * TrackBar.cs:
27300         * MonthCalendar.cs: Lets let the base set as much of the
27301         createparams as possible so we don't have duplicate code all over
27302         the place.
27303
27304 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
27305
27306         * ThemeGtk.cs: Added TrackBar and some experimental code to
27307           get double buffering back
27308
27309 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
27310
27311         * DataGrid.cs: Allows row number set internally higher than the last
27312         when creating a new row. Restores the editing functionality.
27313
27314 2006-01-20  Mike Kestner  <mkestner@novell.com>
27315
27316         * MimeIcon.cs: delay Image creation until the icons are accessed
27317         instead of creating 190 scaled images on GnomeHandler startup.
27318
27319 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
27320
27321         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
27322           first call base before processing the event. Fixes #77279
27323
27324 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
27325
27326         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
27327           that the stride for the GDI bitmap would match the stride of
27328           a DIB or a Cursor.
27329
27330 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
27331
27332         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
27333
27334 2006-01-19  Jackson Harper  <jackson@ximian.com>
27335
27336         * ComboBox.cs: Hookup the text controls keydown event so we get
27337         those when the text control has the focus.
27338
27339 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27340
27341         * Label.cs: Now using the base events instead of defining new ones;
27342           this allows us to just call the base properties without having to
27343           duplicate all base property logic 
27344
27345 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27346
27347         * Label.cs: A label by default is not a tabstop (Fixes one of our
27348           failing nunit tests)
27349
27350 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
27351
27352         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
27353         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
27354
27355 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
27356
27357         * Cursor.cs: Reimplemented creating cursor bitmaps without using
27358           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
27359           This fixes #77218
27360         * XplatUIWin32.cs: 
27361           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
27362             constructor creates images that can't be saved. Part of the fix
27363             for #76103
27364           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
27365           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
27366             bug fix for handling window state in forms properly)
27367
27368 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27369
27370         * ThemeGtk.cs: Simplify ScrollBar drawing
27371
27372 2006-01-18  Jackson Harper  <jackson@ximian.com>
27373
27374         * Splitter.cs: Set the default dock style for the splitter control
27375         in the constructor.
27376
27377 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27378
27379         * ThemeGtk.cs: Corrected StateType and ShadowType for
27380           gtk_paint_box
27381
27382 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27383
27384         * Control.cs: Make use of Theme.DoubleBufferingSupported
27385         * ThemeGtk.cs:
27386           - Added drawing for flat style buttons
27387           - Added ScrollBar drawing
27388
27389 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
27390
27391         * ThemeClearlooks.cs: Removed some unneeded code.
27392         * ThemeGtk.cs: First part of ThemeGtk enhancements.
27393
27394 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27395
27396         * LinkLabel.cs: We need to update the hover drawing when
27397           leaving the control as well.
27398
27399 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
27400
27401         * DataGrid.cs: Clicking on non empty areas in the columns
27402            area was giving an exception
27403
27404 2006-01-17  Jackson Harper  <jackson@ximian.com>
27405
27406         * ThemeWin32Classic.cs:
27407         * ListView.cs: Do not draw/clip the headers when the header style
27408         is None.
27409
27410 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27411
27412         * DataGrid.cs: Fixes 77260
27413         
27414 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
27415
27416         * DataGrid.cs: Clicking on a column on a empty grid was giving
27417           an exception
27418
27419 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
27420
27421         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
27422           or any keypress will crash the grid.
27423
27424 2006-01-17  Mike Kestner  <mkestner@novell.com>
27425
27426         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
27427         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
27428         invisible/previously-visible items.
27429         [Fixes #76909]
27430
27431 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
27432
27433         * ThemeClearlooks.cs:
27434         - Added CL_Draw_Button method; now other theme controls that are 
27435           not derived from button or do not have a button can draw buttons
27436           too
27437         - Updated ComboBox drawing
27438         - Beautified RadioButton drawing
27439         - Corrected drawing of bottom and left tabs
27440         - Beautified DateTimePicker and MonthCalendar
27441         - Added CPDrawButton and CPDrawRadioButton
27442
27443 2006-01-16  Jackson Harper  <jackson@ximian.com>
27444
27445         * ComboBox.cs: Set the initial value of the scrollbar to the
27446         current index. Reduce the numbers of refreshs and IndexOfs called.
27447
27448 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
27449
27450         * FileDialog.cs: When the file listview is focused hitting the
27451           backspace key moves the fileview to the parent directory
27452
27453 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27454
27455         * Form.cs: 
27456           - Added RecreateHandle call when changing taskbar visibility to 
27457             trigger reparenting in Win32 driver (Fixes #75719)
27458           - If a window has minimize or maximize buttons, it cannot have
27459             a help button
27460         * XplatUIWin32.cs:
27461           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
27462             the toplevel form with FosterParent (A toolwindow not on the
27463             taskbar) (Fixes #75719)
27464           - Made FosterParent a toolwindow
27465
27466 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27467
27468         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
27469
27470 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27471
27472         * ToolTip.cs: If SetToolTip is called from a control and the mouse
27473           is currently over that control, make sure that tooltip_window.Text
27474           gets updated
27475
27476 2006-01-13  Mike Kestner  <mkestner@novell.com>
27477
27478         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
27479
27480 2006-01-13  Jackson Harper  <jackson@ximian.com>
27481
27482         * TreeView.cs: On MS GetNodeAt never actually factors in the X
27483         value passed.  Also redraw the selected node when we recieve
27484         focus, so tabbing between trees works correctly.
27485
27486 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
27487
27488         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
27489           ~/.gconf/%gconf-tree.xml, so use
27490           .gconf/desktop/gnome/interface/%gconf.xml
27491
27492 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27493
27494         * TextControl.cs: Draw text in gray if control is disabled
27495
27496 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
27497
27498         * TreeView.cs: Draw the focus rectangle outside the highlight, to
27499           make sure it's always visible. Fixes #76680.
27500
27501 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
27502
27503         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
27504
27505 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
27506
27507         * PageSetupDialog.cs: Added.
27508         * PrintDialog.cs: Attributes.
27509         * PrintPreviewControl.cs: Updates.
27510         * PrintPreviewDialog.cs: Updates.
27511         
27512 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27513
27514         * Control.cs: Undid my selection check fix, since it's not needed
27515         * TextBoxBase.cs:
27516           - Now considering the presence of hscroll/vscroll when sizing
27517             vscroll/hscroll respectively. Fixed bug #77077
27518           - Added Left/Up/Down/Right to IsInputKey list to prevent
27519             ContainerControl from stealing them. This fixes what I broke
27520             with my last checkin.
27521
27522 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
27523
27524         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
27525           I finally understand how the property can be set without a setter :-)
27526
27527 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27528
27529         * Application.cs:
27530           - Switched RunLoop to use static Message.Create to create a 
27531             Message object
27532           - Added PreProcessMessage call in runloop for keyboard events; this
27533             is part of the fix for #77219, I overlooked this originally in the
27534             MSDN doc for PreProcessMessage
27535         * Control.cs:
27536           - Removed call to PreProcessMessage from handling of keyboard 
27537             messages; it's supposed to be done in the message pump
27538           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
27539             per MSDN documentation.
27540           - IsInputChar: All chars are input chars by default; removed the 
27541             parent calling chain, MS does not document that
27542           - PreProcessMessage: If IsInputChar is true, we want to return false
27543             to allow dispatching of the message
27544           - When selecting the next control, now also check that we're not
27545             selecting ourselves again and therefore return a false positive.
27546         * TextBoxBase.cs:
27547           - Tried to match return values for IsInputKey and ProcessDialogKey
27548             to what MS returns; moved processing of our special keys outside
27549             ProcessDialogKey since MS does not seem to return true on those.
27550           - Moved code that previously was in ProcessDialogKey into new private
27551             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
27552           - Reworked handling of WM_CHAR to not have to duplicate code from
27553             Control.cs anymore, instead we simply call down to base.
27554            
27555 2006-01-12  Jackson Harper  <jackson@ximian.com>
27556
27557         * ComboBox.cs: We always need to refresh the text area when
27558         EndUpdate is called. Fixes the combobox in the file dialog.
27559         * Control.cs: Don't create the creator_thread until the controls
27560         handle is created.  Also in InvokeRequired we check if the
27561         creator_thread is null. This gives the effect of InvokeRequired
27562         returning true if the controls handle is not created yet, and
27563         matches MS.
27564
27565 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27566
27567         * XplatUI.cs:
27568           - Added StartLoop() driver method. This is used to allow drivers to
27569             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
27570             loop for a particular thread
27571           - Added EndLoop() driver method. This is called once the message
27572             pump for the thread is shut down
27573           - Added SupportsTransparency method to allow the driver to indicate
27574             opacity support for windows
27575         * Form.cs:
27576           - Removed TODO attribute, completed AllowTransparency property
27577           - Added documented logic to Opacity
27578         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
27579           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
27580           versions of CompatibleTextRendering
27581         * X11Structs.cs: Added opacity atom to our atom enumeration
27582         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
27583           of a form might be set before it's reparented by the WM, and we need
27584           the opacity value without calling up to Form)
27585         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
27586           SupportsTransparency() driver methods
27587         * Application.cs: Now calling StartLoop and EndLoop driver methods
27588         * XplatUIX11.cs:
27589           - Added opacity atom registration
27590           - Added StartLoop()/EndLoop() methods. They're empty right now but
27591             will need to get implemented when we switch to a per-thread queue
27592           - Implemented SupportsTransparency() method
27593           - Implemented SetWindowTransparency() method
27594           - Added support for setting the opacity value when a window is
27595             reparented (since the opacity needs to be set on the WM frame)
27596         * XplatUIOSX.cs, XplatUIWin32.cs:
27597           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
27598
27599 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
27600
27601         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
27602
27603 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
27604
27605         * FileDialog.cs: Added ToolTip for MWFFileView
27606         * MimeIcon.cs: Rewrote GnomeHandler.
27607           - Get currently used gnome icon theme from
27608             ($HOME)/.gconf/%gconf-tree.xml
27609           - Make use of inherited icon themes
27610           - Support SVG icon themes like Tango via librsvg
27611
27612 2006-01-12  Miguel de Icaza  <miguel@novell.com>
27613
27614         Revert's Jackson's revert which broke 2.0 builds.   Fix both
27615         builds. 
27616         
27617         * Application.cs: Move the use_compatible_text_rendering outside
27618         the NET_2_0 define.  If we ever need to use the
27619         use_compatible_text_rendering on the individual controls they will
27620         access the variable from the common shared code paths.
27621
27622 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
27623
27624         * XplatUI.cs:
27625           - Added more granular debug options
27626           - Added method to print both window text and id
27627           - Switched debug output to use new Window() debug method
27628           - Added IsEnabled() driver method
27629           - Added EnableWindow() driver method
27630         * Form.cs:
27631           - Removed end_modal; no longer needed, new loop handles termination
27632             via 'closing' variable
27633           - If form is modal, setting DialogResult will now initiate loop
27634             termination via 'closing' variable
27635           - Added support for is_enabled/WS_DISABLED to CreateParams
27636           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
27637             does all the work
27638           - Removed code that's now in RunLoop from ShowDialog()
27639           - Added various documented sanity checks to ShowDialog()
27640           - Added handling of WM_DESTROY message; we set 'closing' on getting
27641             the message to indicate the message pump to terminate
27642           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
27643             send by the Application.ExitThread method. (We send the message
27644             to destroy the window after all other events have been
27645             processed through the queue, instead of destroying the handle 
27646             directly)
27647           - Moved code from Close() method to WM_CLOSE handler; added logic
27648             to only send close-related events if the form is not displayed
27649             modal
27650         * Splitter.cs (..ctor): Fixed typo in resource name
27651         * Control.cs:
27652           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27653             brush now
27654           - set_Cursor: Now only setting calling into XplatUI if the handle for
27655             the control is already created; this avoids implict handle creation
27656             or crashes if it's not created
27657           - set_Enabled: Now setting the enabled state via the new driver method
27658             instead of just tracking it
27659           - CreateParams: Added logic to set WS_DISABLED based on enabled state
27660           - CreateControl: Reordered event firing and method calls to more
27661             closely fire events in the order MS does. Now setting the
27662             enabled state in the driver when creating the control.
27663           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27664             match MS order
27665         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27666           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
27667         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27668         * Hwnd.cs:
27669           - Added tracking of window enabled state (get_Enabled/set_Enabled)
27670           - Added EnabledHwnd property to easily allow a driver to find the
27671             handle of the first enabled window in the parent chain (this is
27672             used by drivers to pass up input events of disabled windows)
27673         * XplatUIDriver.cs: Added IsEnabled() method
27674         * Application.cs:
27675           - Removed crude and obsolete exiting tracking variable
27676           - Removed internal ModalRun(); replaced by RunLoop()
27677           - Implemented private CloseForms() method to allow closing all 
27678             windows owned by a particular (or all) threads
27679           - Exit() now properly closes all windows without forcing the message
27680             pump to quit
27681           - Removed obsolete InternalExit() method
27682           - Changed Run() methods to use new RunLoop() message pump
27683           - Implemented new RunLoop() method for both modal and non-modal forms
27684         * CommonDialog.cs:
27685           - get_CreateParams: Added setting of WS_DISABLED
27686           - Simplified ShowDialog(); now all the work is done in RunLoop(),
27687             invoked via Form.ShowDialog()
27688         * NativeWindow.cs: We don't remove the window from the collection when
27689           the handle is destroyed; there might still be messages for it in the
27690           queue (mainly the resulting WM_DESTROY); instead it will be removed
27691           when Control calls InvalidateHandle in the WM_DESTROY handler
27692         * XplatUIX11.cs:
27693           - CreateWindow: Added logic to handle the WS_DISABLED window style
27694           - EnableWindow: Implemented based on Hwnd.Enabled
27695           - GetMessage: Reset PostQuitState so the method can be called again
27696           - Implemented support for disabled windows (passing messages to the
27697             first enabled parent) in handling all input messages
27698           - Added optimizations for handling Expose events
27699           - Implemeted new driver method IsEnabled()
27700           - Now always resetting paint pending tracking vars when we start paint
27701           - Re-implemented UpdateWindow via just sending a WM_PAINT message
27702         * XplatUIOSX.cs: Added IsEnabled method stub
27703         * XplatUIWin32.cs: Implemented new IsEnabled() method
27704
27705 2006-01-11  Jackson Harper  <jackson@ximian.com>
27706
27707         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27708         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27709         variables a little.
27710         * ColorDialog.cs: Clear out the old form before adding the new
27711         panel.  
27712
27713 2006-01-11  Jackson Harper  <jackson@ximian.com>
27714
27715         * X11Dnd.cs: Make sure to add all the text formats when adding
27716         strings to the data object.
27717         * TreeNodeCollection.cs: When adding to a sorted tree we need to
27718         do some redrawing too.  Also change the UpdateNode to an
27719         UpdateBelow so the newly added node gets painted.
27720         
27721 2006-01-11  Miguel de Icaza  <miguel@novell.com>
27722
27723         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27724         LinkLabel.cs, PropertyGrid.cs: Implement the
27725         UseCompatibleTextRendering property for 2.x
27726
27727         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
27728
27729 2006-01-11  Jackson Harper  <jackson@ximian.com>
27730
27731         * TreeView.cs: Use the property for setting the selected node so
27732         the correct events get raised.
27733         * TreeNode.cs: Update the tree when the fore/back colours of a
27734         node are set.
27735
27736 2006-01-10  Jackson Harper  <jackson@ximian.com>
27737
27738         * TreeView.cs: Allow setting SelectedNode to null.
27739
27740 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27741
27742         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
27743
27744 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27745
27746         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
27747
27748 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27749
27750         * PrintDialog.cs: Added attributes and set default property values.
27751
27752 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27753
27754         * PrintControllerWithStatusDialog.cs: 
27755         Added PrintControllerWithStatusDialog.
27756
27757 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27758
27759         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
27760         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
27761
27762 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
27763
27764         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
27765
27766 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27767
27768         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
27769         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
27770
27771 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
27772
27773         * MimeIcon.cs: Added internal class SVGUtil.
27774
27775 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
27776
27777         * FileDialog.cs: Don't crash if there are two files with the
27778           same name but different locations.
27779
27780 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
27781
27782         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
27783         dates across multiple month grids. Used to not highlight entire 
27784         month, but does now.
27785         
27786 2006-01-06  Jackson Harper  <jackson@ximian.com>
27787
27788         * MonthCalendar.cs: Removed DoEvents call to prevent a running
27789         message loop. Change timer intervals to numbers that seem more
27790         natural.
27791
27792 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
27793
27794         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
27795           object for location info since screen object is now implemented.
27796
27797 2006-01-05  Jackson Harper  <jackson@ximian.com>
27798
27799         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
27800         * AsyncMethodResult.cs: We no longer use a WeakReference for the
27801         AsyncMethodResult, this is because we ALWAYS want the
27802         ManualResetEvent to get set.
27803         * Control.cs: When disposing use an async invoke to call shutdown
27804         code, so that thigns don't block on the finalizer thread.  Also
27805         check if we even have a message loop before trying to send
27806         messages, if we don't then don't bother sending messages.
27807         - No more weak references for async methods
27808         * XplatUIDriver.cs: No more weak references for async methods.
27809
27810 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27811
27812         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
27813           returns two FontFamily with the same name
27814
27815 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
27816
27817         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
27818           drawing disabled text. Instead using the ColorGrayText color
27819
27820 2006-01-04  Jackson Harper  <jackson@ximian.com>
27821
27822         * TreeNode.cs: redraw the node when its image index is changed.
27823
27824 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
27825
27826         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
27827           time I checked there are no others like it.
27828
27829 2006-01-04  Jackson Harper  <jackson@ximian.com>
27830
27831         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
27832         this gives the behavoir I was looking for.
27833         * Control.cs: Special case Invoking EventHandlers, this matches MS
27834         and fixes part of bug #76326.
27835
27836 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27837
27838         * ThemeClearlooks.cs, FileDialog.cs:
27839           - Reflect the latest Theme class changes
27840           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
27841             with DateTime
27842             
27843 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
27844
27845         * Theme.cs: Cache UI resource images and resize them if needed
27846
27847 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
27848
27849         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
27850           is called. This fixes the crash in Nexxia when setting the font
27851           attributes in the chat. [However, RTF needs a look-over to make sure
27852           that all SelectionXXX methods handle the special case that selection
27853           is empty and therefore the change must be applied to all text starting
27854           at the cursor/selection start]
27855
27856 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
27857
27858         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27859           XplatUIOSX.cs: Added SendMessage and PostMessage methods
27860         * X11Keyboard.cs: Switched to new way of calling PostMessage
27861
27862 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
27863
27864         * Theme.cs: Added theme interface for images to allow the theme to
27865           control what images are used for things like FileDialog, MessageBox
27866           icons, etc.
27867         * MessageBox.cs: Now uses the new Theme icon/image interfaces
27868
27869 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
27870
27871         * FileDialog.cs:
27872           - Removed some dead code
27873           - Opening a recently used file does work now
27874           - Small UI enhancements
27875           - Refactoring
27876
27877 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
27878
27879         * FileDialog.cs: Forgot too add __MonoCS__
27880
27881 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
27882
27883         * FileDialog.cs: We are able to read recently used files now let's
27884           go on and write them.
27885
27886 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
27887
27888         * FileDialog.cs: Breathe some life into "last open"/"recently used"
27889           button
27890         * MimeIcon.cs: Do a check for the top level media type also
27891
27892 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
27893
27894         * ThemeClearlooks.cs:
27895           - Added CPDrawStringDisabled
27896           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
27897             some chars if the text doesn't fit into text_rect
27898           - DrawListViewItem: If View = View.LargeIcon center the image;
27899             rewrote the drawing of ListViewItem.Text if View = 
27900             View.LargeIcon
27901
27902 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
27903
27904         * MimeIcon.cs: Use default KDE icon theme if there is no
27905           "48x48" directory for the current icon theme, fixes #77114
27906         * Mime.cs: Disable not working and actually not used code. 
27907         * ThemeWin32Classic.cs:
27908           - Replace "new SolidBrush" in GetControlBackBrush and
27909             GetControlForeBrush with ResPool.GetSolidBrush
27910           - Changed DrawListViewItem from private to protected virtual
27911         * FileDialog.cs:
27912           - Added form.MaximizeBox = true
27913           - Don't throw an exception if there is a broken symbolic link
27914
27915 2005-12-23  Jackson Harper  <jackson@ximian.com>
27916
27917         * TabControl.cs: Give the panels focus, keyboard navigation is
27918         fixed so this works correctly now.
27919         - We need these key events also.
27920         * ToolBar.cs: Remove some of the poor mans double buffering.
27921         
27922 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
27923
27924         * ComboBox.cs: The internal TextBox now returns the focus.
27925
27926 2005-12-23  Jackson Harper  <jackson@ximian.com>
27927
27928         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
27929
27930 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
27931
27932         * Control.cs: Removed debug code
27933         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27934           implicit children
27935
27936 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
27937
27938         * Control.cs: When creating the control, update the Z-order after
27939           all it's children are created, too. (Fixes nexxia not showing
27940           picturebox bug)
27941
27942 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
27943
27944         * Control.cs: Do not update the anchoring distances if layout is
27945           suspended, instead do it once layout is resumed
27946
27947 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
27948
27949         * Control.cs: 
27950           - After many hours of debugging, for both Jackson and
27951             myself, it turns out that it helps to set the parent of a control
27952             if you want to actually see it onscreen. In the spirit of that
27953             discovery, we're now setting the parent of the control and
27954             it's children when the control's handle is created. This fix
27955             will make Lutz Roeder's Reflector run happily. 
27956           - now just creating the handle instead of the whole control when
27957             getting a graphics context for the control.
27958
27959 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27960
27961         * ScrollableControl.cs: When calculating the canvas, don't consider
27962           the scrollbar widths. Instead, predict if horizontal scrollbar
27963           will affect canvas when deciding on vertical display and vice versa.
27964
27965 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
27966
27967         * RichTextBox.cs: Set default RTF font for documents that don't
27968           have a font table (Fixes #77076)
27969
27970 2005-12-22  Jackson Harper  <jackson@ximian.com>
27971
27972         * TextBoxBase.cs: It's difficult to do, but you can have an empty
27973         clipboard. This prevents a NullRef in that case.
27974         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27975         clipboard. PRIMARY is for the currently selected text only. (We
27976         should implement PRIMARY at some point.
27977
27978 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
27979
27980         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27981           a Unicode function with a structure that was defined in Ansi way.
27982           This fixes #76942.
27983
27984 2005-12-21  Jackson Harper  <jackson@ximian.com>
27985
27986         * StatusBar.cs: Statusbar handles its fore/back colours on it's
27987         on. Because thats how it rolls. (and this avoids it using ambient
27988         colours).
27989         * ThemeWin32Classic.cs: Use the proper back color for filling.
27990         * Menu.cs: Use the system menu bar color for drawing menu
27991         bars. Using the window back color will bring ambient colours into
27992         the picture.
27993
27994 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
27995
27996         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27997           Bitmaps were created and not disposed.
27998
27999 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28000
28001         * Control.cs (CreateControl): Don't do anything if the control is
28002           already created, otherwise we'd fire the OnCreated event more than
28003           once
28004
28005 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28006
28007         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
28008           will always match. Instead return -1. Fixes #76464.
28009
28010 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
28011
28012         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
28013           neither the beginning nor the end of the line (Fixes bug #76479)
28014
28015 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
28016
28017         * Control.cs:
28018           - ControlNativeWindow.ControlFromHandle(): Now handling situation
28019             where handle is invalid
28020           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
28021             instead of slower linear search
28022         * NativeWindow.cs: Don't remove the window from the hashtable until
28023           after the driver has destroyed it (since the driver might use
28024           Control.FromHandle to lookup the control object
28025         * Hwnd.cs: Added DestroyPending property to track if a window is 
28026           already destroyed as far as the driver is concerned and only hasn't
28027           yet notified the control
28028         * XplatUIX11.cs:
28029           - Activate(): Check if the window is still valid before using the 
28030             handle
28031           - Implemented DestroyChildWindow() method to mark child windows as
28032             destroyed when a window is destroyed. This prevents situations 
28033             where we might call an X method based on queued events for a
28034             window that already has been destroyed but we haven't yet pulled
28035             the destroy method from the queue.
28036           - Added a call to the new DestroyChildWindow() method to the drivers
28037             DestroyWindow code. Also now marking the destroyed window itself
28038             as pending
28039
28040 2005-12-20  Jackson Harper  <jackson@ximian.com>
28041
28042         * StatusBar.cs:
28043         * StatusBarPanel.cs: Don't calculate panel sizes on draw
28044         anymore. Just do them when needed, also track the rects of panels
28045         so that we can optimize refreshing more in the future.
28046
28047 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
28048
28049         * ColorDialog.cs: Fixed focus drawing in small color controls
28050
28051 2005-12-19  Jackson Harper  <jackson@ximian.com>
28052
28053         * InternalWindowManager.cs:
28054         * MdiWindowManager.cs: Cleanup some coordinate system changes so
28055         moving windows works properly.
28056
28057 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
28058
28059         * Control.cs: 
28060           - Removed call to InitLayout() from SetBoundsCore(); doc says
28061             it's only called when a control is added to a container
28062           - Split InitLayout logic, moved to separate UpdateDistances() method
28063             since we need to perform those calculations more often than just
28064             when adding the control to a container. (Needed to fix #77022)
28065           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
28066           - Reduced the OnBindingContextChanged events count, don't send them
28067             unless the control is created, we still aren't totally matching
28068             MS, but I can't quite figure out some of their rules
28069
28070 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28071
28072         * ThemeClearlooks.cs: Corrected distance between ProgressBar
28073           stripes
28074
28075 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28076
28077         * ThemeClearlooks.cs:
28078           - Updated ProgressBar drawing
28079           - Corrected drawing of ScrollBars and scroll buttons
28080           - Some temporary fixes for minor pixel artefacts
28081
28082 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
28083
28084         * Control.cs:
28085           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
28086             cause events to be sent in the same order as MS does.
28087           - Added ChangeParent() method to trigger various OnXXXChanged events
28088             that need to be fired when a parent changes (This is a reworking
28089             of the patch from r54254, with the X11 errors fixed)
28090           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
28091             since on MS we get OnLayoutChanged events when calling Clear()
28092           - Changed Enabled property to consider parent state as well, if a
28093             parent is not enabled, the control will not be either
28094           - Changed Parent property to simply call Controls.Add() since that
28095             now does all the work required, this way we avoid code duplication
28096           - Threw in a few OnBindingsContextChanged calls to try and match
28097             when MS sends them. We seem to send a few too many, though.
28098           - Added call to CreateControl when adding the control to a parent.
28099             We were never calling CreateControl. Still needs some work, in
28100             some places we treat HandleCreated and ControlCreated as equal, 
28101             which is wrong
28102           - Removed obsolete commented out code from UpdateZOrder()
28103
28104 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
28105
28106         * ThemeClearlooks.cs: Updated TrackBar drawing.
28107
28108 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28109
28110         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
28111
28112 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
28113
28114         * FileDialog.cs: Add the Help button and the open readonly
28115           checkbox only if needed
28116
28117 2005-12-16  Jackson Harper  <jackson@ximian.com>
28118
28119         * Control.cs: Make sure we have an active menu before trying to
28120         process commands on it. Prevents menu-less forms from crashing
28121         when Alt is pressed.
28122         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
28123         Dieter Bremes.
28124         * RichTextBox.cs: Expand statement to help out gmcs and fix the
28125         2.0 build.
28126
28127 2005-12-16  Jackson Harper  <jackson@ximian.com>
28128
28129         * InternalWindowManager.cs: Don't translate tool windows screen
28130         coordinates. This fixes windows 'bouncing' around when being moved.
28131
28132 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28133
28134         * TextBoxBase.cs:
28135           - MaxLength now treats 2^31-1 equal to unlimited length (this is
28136             not quite MS compatible, MS uses that number only for single line
28137             and 2^32-1 for multi-line, but I figure it won't hurt keeping
28138             the limit at 2GB)
28139           - Now enforcing the MaxLength limit when entering characters
28140           - Added argument to internal Paste() method to track if it's called
28141             from programatically or via keyboard, since keyboard driven pastes
28142             need to enforce max-length
28143           - Added logic to Paste to only paste as many chars as MaxLength 
28144             allows
28145         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
28146         * TextControl.cs:
28147           - Added Length property to return number of characters in document
28148           - Added private CharCount property which only tracks actual chars
28149             in the document (no linefeeds) and fires event when CharCount
28150             changes
28151           - Added tracking of character count to all methods that alter it
28152           - Added LengthChanged event to allow applications to subscribe
28153             to any changes to the document
28154
28155 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
28156
28157         * TextBox.cs: 
28158           - Removed local password_char field (moved to TextBoxBase)
28159           - Now setting the document's password var when password is
28160             set
28161         * TextBoxBase.cs:
28162           - Added password_char field (needed here so MultiLine can
28163             access it)
28164           - Added logic to MultiLine property setter to set the document's
28165             variable when password display is allowed
28166           - Removed debug code and made some debug code conditional
28167         * TextControl.cs:
28168           - Added RecalculatePasswordLine() method to handle special password
28169             char only lines
28170           - Added PasswordChar property, also added related tracking vars
28171           - Draw() method now uses local text var for grabbing text to draw,
28172             this var is set to line.text unless we're doing password display,
28173             then it is set to the pre-generated all-password-chars line
28174           - Added calling RecalculatePasswordLine() method for password lines
28175
28176 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28177
28178         * Hwnd.cs: 
28179           - Added Reparented property to allow tracking of Window Manager
28180             reparenting actions (which affect X/Y calculations of toplevel 
28181             windows)
28182           - Made ToString() print window handles in hex
28183         * XplatUIX11.cs:
28184           - AddConfigureNotify(): Now uses reparented state off Hwnd to
28185             determine if X/Y needs offsetting
28186           - AddConfigureNotify(): Fixed offset calculations
28187           - Now adds ReparentNotify messages into the queue
28188           - Now processes ReparentNotify messages and causes a 
28189             WM_WINDOWPOSCHANGED message to be sent upstream if a window
28190             is reparented (as most likely it's X/Y coordinates are changed
28191             due to that)
28192
28193 2005-12-14  Jackson Harper  <jackson@ximian.com>
28194
28195         * XplatUIX11.cs: Tool windows still need to respek focus.
28196
28197 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
28198
28199         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
28200           have a working release
28201
28202 2005-12-13  Jackson Harper  <jackson@ximian.com>
28203
28204         * Form.cs: Update styles after setting the border style regardless
28205         of whether or not the window is using a window manager.
28206
28207 2005-12-13  Jackson Harper  <jackson@ximian.com>
28208
28209         * Form.cs: We now hook into an internal window manager instead of just an
28210         MDI subsystem, this is so we can have properly behaving tool windows.
28211         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
28212         * InternalWindowManager.cs: New internal class that acts as a
28213         window manager for tool windows and as a base for mdi windows.
28214         * MdiWindowManager.cs: New class that acts as a window manager for
28215         mdi windows.
28216
28217 2005-12-12  Jackson Harper  <jackson@ximian.com>
28218
28219         * Control.cs: Updates so we match behavoir for for implicit
28220         controls. Fixes explosions in MDI.
28221
28222 2005-12-12  Jackson Harper  <jackson@ximian.com>
28223
28224         * Control.cs: Implement Invalidate (Region).
28225
28226 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
28227
28228         * Control.cs: 
28229           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
28230             the same events as MS does. MS fires events for each property 
28231             except, for unknown reasons, Cursor, when the control is reparented. 
28232             I can't seem to totally match add/remove since MS also fires some 
28233             VisibleChanged events, which makes no sense. Consolidated the
28234             parenting code into a separate method so it can be called from
28235             both Add and Remove. set_Parent no longer needs any special logic
28236             as it calls the parent's add method which implicitly fires
28237             all events
28238           - Removed some obsolete code and debug output
28239           - Enabled state is inherited from parents, if this is enabled
28240
28241 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
28242
28243         * Form.cs: Removed commented out code
28244
28245 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
28246
28247         * Control.cs:
28248           - Added internal version of Invoke, with additional argument 
28249             indicating if we're calling it from a Dispose() handler. That
28250             way we can avoid BeginInvoke throwing an exception if we're
28251             calling for an already destroyed window.
28252           - Added a dispose argument to BeginInvokeInternal, and made the
28253             check if a valid window handle chain exists conditional on
28254             it not being a dispose call
28255           - Removed code in DestroyHandle to destroy our children. Since we
28256             now handle the WM_DESTROY message we will catch all our children
28257             being destroyed.
28258           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
28259         * Form.cs:
28260           - Added a field to track the application context of the form.
28261           - No need to set closing variable as response to WM_CLOSE, instead
28262             we destroy the window. We also call PostQuitMessage if the form
28263             has an application context (which makes it the main app form,
28264             which, when closed terminates the app)
28265         * XplatUI.cs:
28266           - Dropped Exit() method, it's naming was confusing
28267           - Added PostQuitMessage() which causes GetMessage to return false
28268             once the message queue is empty
28269         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
28270           PostQuitMessage()
28271         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
28272           no longer a valid XplatUI method, but left it in since it's used
28273           internally. Added empty PostQuitMessage() method.
28274         * MenuAPI.cs: Replaced call to Exit() with call to
28275           PostQuitMessage, even though this is probably no longer needed.
28276         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
28277         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
28278         * Application.cs:
28279           - Replaced call to XplatUI.Exit() with PostQuitMessage()
28280           - Removed old debug code that would call XplatUI for exception
28281             display, enabled standard exception handling (Still not enabled
28282             though, until NativeWindow's ExternalExceptionHandler define
28283             is removed
28284         * NativeWindow.cs:
28285           - Added internal method to allow control to update NativeWindow
28286             after a window has been destroyed
28287           - Added handling of already destroyed windows when calling i
28288             DestroyWindow
28289           - Added removal of handle from list on ReleaseHandle
28290         * XplatUIX11.cs:
28291           - Dropped GetMessageResult var and related code
28292           - Added PostQuitState to field to track if PostQuitMessage has been
28293             called
28294           - Dropped Exit() method
28295           - Added PostQuitMessage() method
28296           - GetMessage now will return false if PostQuitState is set and no
28297             more messages are in the queue.
28298           - Expose handler will no longer generate WM_PAINT messages if we are
28299             in PostQuitState since it's very likely any windows have already
28300             been destroyed, and since Hwnd won't get updated until we have
28301             processed the DestroyNotify we'd be causing X errors.
28302         
28303 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28304
28305         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
28306           Thanks to Mike for pointing out the err of my ways.
28307
28308 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28309
28310         * Control.cs(PreProcessMessage): Moved menu handling back, but
28311           after all other key handling, to match MS (who handles Menu in
28312           DefWndProc)
28313         * Menu.cs (WndProc): Removed my brainfart
28314
28315 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28316
28317         * Control.cs(PreProcessMessage): Removed special menu handling 
28318         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
28319
28320 2005-12-07  Mike Kestner  <mkestner@novell.com>
28321
28322         * Control.cs : special case SYSKEYUP so that we can adjust keynav
28323         state according in tracker.
28324         * Menu.cs : promote tracker field to base class and provide a tracker
28325         lookup capability.  Add/Remove shortcuts dynamically if the top menu
28326         has a tracker. Unparent items that are removed from the collection.
28327         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
28328         * Theme*.cs: add always_show_hotkeys field to support configurability
28329         of mnemonic display.  win32 doesn't show mnemonics until Alt is
28330         pressed.
28331
28332 2005-12-07  Jackson Harper  <jackson@ximian.com>
28333
28334         * MdiChildContext.cs: Use Control.ResetCursor.
28335         * Control.cs: ResetCursor needs to set the property so that the
28336         correct XplatUI call gets made.
28337
28338 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28339
28340         * Control.cs: More fixes to make our key events match MS. We
28341           were not setting the modifier state on KeyData, and we were
28342           not generating any events when Alt was pressed with a key
28343           since handling of WM_SYSxxx was missing for the OnKey methods.
28344
28345 2005-12-07  Jackson Harper  <jackson@ximian.com>
28346
28347         * MdiChildContext.cs: reenable the sizing code.
28348         - When the mouse leaves a window reset its cursor.
28349
28350 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28351
28352         * ThemeClearlooks.cs: Reflect latest Hwnd changes
28353
28354 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
28355
28356         * Hwnd.cs: Now using the theme 3d bordersize to calculate
28357           widths of Fixed3D borders
28358
28359 2005-12-07  Jackson Harper  <jackson@ximian.com>
28360
28361         * MdiClient.cs: Fix warnings. Earn Mike's love.
28362
28363 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
28364
28365         * ThemeClearlooks.cs:
28366           - Adjusted mouse over button color
28367           - Added first parts of CheckBox drawing
28368           - Added correct color for selected text background
28369           - Fixed ComboBox drawing
28370           - Added CPDrawBorder3D and CPDrawBorder
28371
28372 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28373
28374         * XplatUIX11.cs: Added call to XBell for AudibleAlert
28375
28376 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
28377
28378         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
28379           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
28380           alert users via sound. We could add an enum arg with different
28381           types of alerts in the future
28382
28383 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
28384
28385         * Control.cs: Fix behaviour problems pointed out by Mike
28386
28387 2005-12-05  Mike Kestner  <mkestner@novell.com>
28388
28389         * StatusBarPanel.cs: add Invalidate method and hook it into all the
28390         prop setters.  Calls parent.Refresh for now, but could be maybe be
28391         optimized with an internal method on StatusBar at some point.
28392         [Fixes #76513]
28393
28394 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
28395
28396         * RichTextBox.cs: Implemented get_SelectionColor
28397
28398 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
28399
28400         * ThemeClearlooks.cs:
28401           - Removed dead code
28402           - Draw black button border only if button is Form.AcceptButton
28403           - Draw correct button color for pressed RadioButton if the mouse 
28404             has entered the button
28405           - Updated ProgressBar drawing!
28406           - Updated CPDrawSizeGrip drawing
28407           - Updated StatusBarPanel drawing
28408
28409 2005-12-05  Mike Kestner  <mkestner@novell.com>
28410
28411         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
28412         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
28413
28414 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
28415
28416         * ThemeClearlooks.cs: Initial check-in, activate with
28417           export MONO_THEME=clearlooks
28418         * ThemeEngine.cs: Added ThemeClearlooks
28419
28420 2005-12-03  Mike Kestner  <mkestner@novell.com>
28421
28422         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
28423         [Fixes #76897]
28424
28425 2005-12-02  Jackson Harper  <jackson@ximian.com>
28426
28427         * Form.cs: If the child form has no menu the default main menu is
28428         used as the active menu.
28429
28430 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
28431
28432         * ListBox.cs: Check if any items exist before trying to resolve 
28433           coordinates into items
28434
28435 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28436
28437         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
28438           as the second color for the background hatch
28439
28440 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
28441
28442         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
28443         * RichTextBox.cs: FormatText position arguments are 1-based, now making
28444           sure that what we pass to FormatText is always 1-based. Fixes #76885
28445
28446 2005-11-29  Miguel de Icaza  <miguel@novell.com>
28447
28448         * NumericUpDown.cs (EndInit): When we are done initializing,
28449         reflect any updates on the UI.
28450
28451 2005-12-02  Jackson Harper  <jackson@ximian.com>
28452
28453         * ImplicitHScrollBar.cs:
28454         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
28455         their container controls.
28456         * TreeView.cs: Use the new implicit scrollbars.
28457
28458 2005-12-02  Jackson Harper  <jackson@ximian.com>
28459
28460         * TreeView.cs: Make top_node internal so the TreeNodeCollections
28461         can play with it.
28462         * TreeNodeCollection.cs: If we remove the topnode we need to
28463         update topnode to the next node in line.
28464         - When clearing nodes go through the same process as removing
28465         them, so they get depareneted and checked if they are top node.
28466
28467 2005-12-01  Jackson Harper  <jackson@ximian.com>
28468
28469         * TreeView.cs: When imagelists are used the image area is
28470         selectable as well as the text.
28471         - If there are no selected nodes select the first one.
28472         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
28473         so don't do it more then we need to.
28474
28475 2005-12-01  Jackson Harper  <jackson@ximian.com>
28476
28477         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
28478         that arrows can be scaled.
28479
28480 2005-12-01  Jackson Harper  <jackson@ximian.com>
28481
28482         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
28483         fail. Patch by Dieter Bremes
28484
28485 2005-11-30  Jackson Harper  <jackson@ximian.com>
28486
28487         * Form.cs: Property is 2.0 only
28488         * PrintDialog.cs: Signature fix.
28489
28490 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28491
28492         * TextControl.cs: 
28493           - No longer artificially moves text 2 pixels down (now that we have
28494             borders this is no longer needed)
28495           - Added calcs for left, hanging and right indent
28496
28497 2005-11-23  Mike Kestner  <mkestner@novell.com>
28498
28499         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
28500
28501 2005-11-30  Jackson Harper  <jackson@ximian.com>
28502
28503         * MdiChildContext.cs: Set the cloned menus forms, as these don't
28504         get cloned as part of CloneMenu ().
28505         * Menu.cs: Make sure the parent of the items get set correctly
28506         when they are added.  And the owners are notified of the changes.
28507         * Form.cs: Create an ActiveMenu property, so that when MDI is used
28508         we can change the menu being displayed/handled by the form without
28509         changing the menu assosciated with the form.
28510         - Don't let Mdi children draw/handle menus.
28511         
28512 2005-11-30  Jackson Harper  <jackson@ximian.com>
28513
28514         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
28515         a MenuChanged event. Just to make the API a little more
28516         consistent.
28517         * MainMenu.cs:
28518         * MenuItem.cs: Use the new OnMenuChanged
28519         * MdiChildContext.cs: Handle menu merging.
28520         * Form.cs: Implement MergedMenu.
28521         
28522 2005-11-30  Jackson Harper  <jackson@ximian.com>
28523
28524         * Menu.cs: We were misusing Add. Add goes behind the specified
28525         index according to the docs, and does not replace the specified
28526         index. So I added an Insert method.
28527
28528 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
28529
28530         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
28531           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
28532           is for Jackson
28533         * RichTextBox.cs: Added calls to base for DnD events
28534
28535 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
28536
28537         * TextControl.cs:
28538           - Fixed drag-selection related crash; style fixes
28539           - Implemented undo class
28540             o Implemented method to capture document state for specified
28541               range in document tree
28542             o Implemented method to restore captured document state
28543             o Implemented cursor tracking
28544             o Implemented basic undo stack
28545           - Added undo cursor tracking to methods altering cursor location
28546           - Added undo tracking to selection deletion (still missing
28547             other text-altering hookups)
28548         * RichTextBox.cs:
28549           - Added SelectionLength property
28550           - Implemented CanPaste()
28551           - Implemented Paste()
28552           - Added missing protected methods
28553           - Fixed RTF->Document conversion; now uses font index 0 and color 
28554             index 0 as the default font for the parsed text
28555           - Fixed RTF<->Document font size translation
28556           - Fixed RTF generation, now properly handles cross-tag boundaries
28557             for single line selection
28558           - No longer always appends blank line to generated RTF
28559           - Removed TODOs
28560           - Added missing attributes
28561           - Hooked up undo-related methods
28562         * TextBoxBase.cs:
28563           - Implemented Copy()
28564           - Implemented Paste()
28565           - Implemented Cut()
28566           - Fixed caret mis-behaviour on backspace across line-boundaries
28567
28568 2005-11-29  Jackson Harper  <jackson@ximian.com>
28569
28570         * MdiClient.cs: Add a method for activating mdi children. Very
28571         basic right now. I imagine someday it might need more girth.
28572         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
28573         children windows names are added to the menu item.
28574         * ThemeWin32Classic.cs: Draw the arrow if the item is an
28575         mdilist. This happens regardless of whether or not there are any
28576         mdi windows to see in the list, and according to my tests happens
28577         before the items are even added. Also happens if there isn't even
28578         an mdi client to get windows from.
28579
28580 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
28581
28582         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
28583         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
28584
28585 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
28586
28587         * DataGridTableStyle.cs:
28588           - Create always the styles for the missing columns even if they are
28589             provided by the user (not default table style)
28590         * DataGrid.cs:
28591           - Fixes bug 76770
28592           - Fixes SetDataBinding (always re-attach source)
28593           - Fixes SetNewDataSource (only clear styles if they are not for 
28594             this source)
28595          -  Expands OnTableStylesCollectionChanged to handle style refresh 
28596             and remove properly
28597
28598 2005-11-29  Jackson Harper  <jackson@ximian.com>
28599
28600         * FileDialog.cs: Implement missing bits, remove some dead
28601         code.
28602         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
28603         creation of the panel so that the options set on the dialog are
28604         seen when the panel is created.
28605         * TreeView.cs: raise a click when items are clicked.
28606         
28607 2005-11-29  Jackson Harper  <jackson@ximian.com>
28608
28609         * MdiClient.cs: Pass some signature methods through to base.
28610
28611 2005-11-28  Jackson Harper  <jackson@ximian.com>
28612
28613         * ListView.cs: Raise the click event when items are clicked.
28614
28615 2005-11-28  Jackson Harper  <jackson@ximian.com>
28616
28617         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
28618         a nullref.
28619
28620 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
28621
28622         * ThemeNice.cs: - Removed 1 pixel bitmaps
28623           - Use SmoothingMode.AntiAlias where it makes sense
28624             (ScrollButton arrow for example)
28625           - Enhanced Button focus drawing
28626           - Fixed ComboBox drawing (no artefacts anymore, focus
28627             rectangle is back again, reduced size of ComboButton, etc.)
28628           - Fixed RadioButton focus drawing for Appearence.Button
28629           - Slight ScrollButton redesign
28630           - Some LinearGradientBrush size fixes
28631           - GroupBoxes have now rounded edges
28632           - Fixed StatusBar drawing
28633
28634 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
28635
28636         * ThemeNice.cs: - Remove dead code
28637           - use correct background colors for menus, etc.
28638           - Fake pixel drawing with 1 pixel bitmaps
28639
28640 2005-11-24  Jackson Harper  <jackson@ximian.com>
28641
28642         * MdiClient.cs: Size the scrollbars when resizing the window.
28643         - Resize the maximized windows when the client is resized
28644         * Form.cs: Make the child context available
28645         
28646 2005-11-23  Jackson Harper  <jackson@ximian.com>
28647
28648         * MdiChildContext.cs: Don't size windows if they are maximized.
28649
28650 2005-11-23  Mike Kestner  <mkestner@novell.com>
28651
28652         * ContextMenu.cs: use MenuTracker.
28653         * Control.cs: remove menu handle usage.
28654         * Form.cs: remove menu handle usage.
28655         * Hwnd.cs: remove menu handle usage.
28656         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28657         motion and clicks to the new Tracker handlers.
28658         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28659         and handle usage.
28660         * MenuAPI.cs: refactored to combine popup and menubar event handling.
28661         Killed the MENU and MENUITEM data types and associated collections
28662         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28663         MenuTracker class that exposes the leftovers from the old MenuAPI
28664         static methods. Restructured Capture handling so that only one grab is
28665         done for the entire menu hierarchy instead of handing off grabs to
28666         submenus. Tracker now has an invisible control to Capture when active.
28667         * MenuItem.cs: add sizing accessors, kill Create
28668         and handle usage.
28669         * Theme.cs: remove menu handle and MENU(ITEM) usage.
28670         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28671         MENU(ITEM). remove menu handle usage, use Menu directly.
28672         * XplatUIDriver.cs: remove menu handle usage.
28673         * XplatUIOSX.cs: remove menu handle usage.
28674         * XplatUIWin32.cs: remove menu handle usage.
28675         * XplatUIX11.cs: remove menu handle usage.
28676
28677 2005-11-22  Jackson Harper  <jackson@ximian.com>
28678
28679         * Hwnd.cs: Don't compute the menu size for
28680         DefaultClientRectangle.
28681         - Reenable menu sizes being computed for GetClienRectangle.
28682         * Form.cs: Remove comment of trechery
28683         
28684 2005-11-22  Jackson Harper  <jackson@ximian.com>
28685
28686         * Hwnd.cs: The adjustments for the menu bar are made when it is
28687         attached to the form.
28688
28689 2005-11-19  Jackson Harper  <jackson@ximian.com>
28690
28691         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28692         (just like on windows).
28693
28694 2005-11-19  Jackson Harper  <jackson@ximian.com>
28695
28696         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28697         use real buttons anymore because they are in non client area. The
28698         one TODO here is that I need to somehow invalidate a section of
28699         the non client area.
28700
28701 2005-11-18  Jackson Harper  <jackson@ximian.com>
28702
28703         * Control.cs: Put the enum check back in now that MDI doesnt have
28704         to use this to set border styles.
28705         * Form.cs: Only set mdi child windows borders if the handle has
28706         been created.
28707         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28708         this directly on to the driver.
28709         - Get the move start position before adjusting for the titlebar
28710         height, this fixes the windows "skipping" when they are first
28711         moved.
28712
28713 2005-11-18  Jackson Harper  <jackson@ximian.com>
28714
28715         * XplatUIX11.cs: Just compute the mdi borders separately as they
28716         don't totally match up with normal form borders.
28717
28718 2005-11-18  Jackson Harper  <jackson@ximian.com>
28719
28720         * Control.cs: Set WS_ styles for borders, so that the driver does
28721         not have to retrieve the control instance to figure out what kind
28722         of borders it should have.
28723         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28724         driver can know its an mdi child easily.
28725         * XplatUIX11.cs: Get the border styles and whether the window is
28726         MDI from the Styles and ExStyles params instead of having to get a
28727         control. This prevents a chicken and egg problem.       
28728
28729 2005-11-18  Jackson Harper  <jackson@ximian.com>
28730
28731         * MdiClient.cs: Fix typo so scrollbars show up correctly.
28732
28733 2005-11-18  Jackson Harper  <jackson@ximian.com>
28734
28735         * MdiClient.cs: Calculate when to add and remove scrollbars
28736         correctly.
28737         * MdiChildContext.cs: Adjust the y position to take the titlebar
28738         into account.
28739         - No height for FormBorderStyle.None
28740
28741 2005-11-18  Jackson Harper  <jackson@ximian.com>
28742
28743         * Control.cs: Allow non enum values to be used for
28744         InternalBorderStyle.  MDI does this to set a special border style.
28745         - New utility methods for converting points to/from client coords
28746         - Add the newly created control to the Controls collection before
28747         updating its style. This way UpdateStyle can walk the control
28748         heirarchy to find the control if needed.
28749         so I don't need to create a new Point object all the time.
28750         * Form.cs: Let MDI windows handle their border styles.
28751         - Set styles on MDI windows so the correct title style is derived.
28752         * MdiChildContext.cs: Move all the painting and window handling
28753         into the non client area.
28754         - Use correct sizing and put correct buttons on frames based on
28755         the FormBorderStyle.
28756         - Notify the mdi client about scrolling
28757         - Need to handle the buttons ourselves now, because they are all
28758         in non client areas and we can't add controls there.
28759         * MdiClient.cs: Halfway to scrolling, this implementation is
28760         somewhat broken though, we need to check to make sure other
28761         windows aren't causing scrolling before removing the bars. Also
28762         the bars need to be drawn on top, maybe I can switch implicit
28763         controls to be on top.
28764         * Hwnd.cs: caption_height and tool_caption_height are now
28765         properties of an hwnd, this way they can be set by the driver
28766         based on the type of window they are.  In X11 the window manager
28767         handles the decorations so caption_height is zero unless its an
28768         MDI window.
28769         - Add 3 pixel borders for MDI windows (0xFFFF).
28770         - Get rid of some code duplication, have DefaultClientRectanle
28771         just call GetClientRectangle.
28772         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
28773         Hwnd now.
28774         - Set border styles differently for mdi windows.
28775         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
28776         Hwnd now.
28777         
28778 2005-11-15  Mike Kestner  <mkestner@novell.com>
28779
28780         * Menu.cs: when adding an item to the collection, if item is already 
28781         parented, remove it from the parent.
28782
28783 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
28784
28785         * X11DesktopColors.cs: Added KDE support
28786
28787 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
28788
28789         * XplatUIWin32.cs: 
28790           - Clipboard methods now can translate Rtf format
28791           - No longer removes clipboard contents whenever a new format is added
28792             to allow placing multiple formats on the clipboard
28793         * Clipboard.cs: Clipboard now supports getting a IDataObject and
28794           will place all formats contained in it onto the clipboard. Also
28795           now cleans the clipboard before placing a new object onto it
28796         * RichTextBox.cs:
28797           - Implemented set_Rtf
28798           - Implemented set_SelectedRtf
28799           - Created InsertRTFFromStream() method to allow single code base
28800             for all properties and methods that insert RTF into document
28801           - Removed debug output
28802         * TextControl.cs:
28803           - Fixed Delete(int) to fix up line numbers
28804           - Fixed ReplaceSelection to combine start and end line
28805           - Fixed serious DeleteChars bug that would leave the document tree
28806             broken
28807           - Improved DumpTree with several logic checks to detect broken
28808             document trees
28809           - Removed debug lines
28810           - Fixed Caret.WordForward/WordBack moving code, now always also 
28811             updates caret.tag (fixes crash when word-selecting across tag
28812             boundaries via keyboard)
28813           - Added Insert() method for inserting multiline text into documents
28814           - Fixed DeleteChars() calculation errors that would cause a broken
28815             tag chain with multiple tag lines
28816           - DeleteChars() no longer crashes on multi-tag lines if not all tags
28817           - Split() no longer moves caret if split is at caret location
28818           - ReplaceSelection() now updates the cursor and re-displays it
28819           - ReplaceSelection() now uses new Insert() method to avoid code
28820             duplication
28821           - FormatText() can now handle formatting partial lines
28822         * TextBoxBase.cs:
28823           - Append now uses new TextControl.Insert() method (this avoids 
28824             duplicate code)
28825           - Implemented Ctrl-X (Cut) (
28826           - Implemented Ctrl-C (Copy)
28827           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
28828             regeneration when pasting text; roundtripping Copy&Paste within
28829             edit control still fails due to some calculation bugs in GenerateRTF)
28830           - The Delete key will now remove the current selection if it is visible
28831         * TextBox.cs: Removed debug lines
28832         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
28833           driver to be initialized and can't therefore be done via a static ctor)
28834
28835 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
28836
28837         * TextControl.cs: Added backend code for finding char arrays and strings
28838         * TextBoxBase.cs:
28839           - Added mouse wheel scroll support
28840           - Added support for VScroll and HScroll events
28841         * RichTextBox.cs:
28842           - Implemented all seven Find() variants
28843           - Implemented GetCharFromPosition()
28844           - Implemented GetCharIndexFromPosition()
28845           - Implemented GetLineFromIndex()
28846           - Implemented GetPositionFromCharIndex();
28847           - Implemented SaveFile for PlainText and UnicodeText
28848           - Fixed set_Font, now setting a new font applies that font to
28849             the whole document
28850           - Implemented generic Document to RTF converter
28851           - Implemented SaveFile for RichText format (still missing unicode
28852             conversion for non-ansi chars)
28853           - Implemented get_Rtf
28854           - Implemented get_SelectedRtf
28855
28856 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
28857
28858         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
28859           to allow any captures to be released before triggering OnClick. This
28860           way a click handler may capture the mouse without interference.
28861         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
28862           This way we send them even though X may not allow a grab (if the window
28863           isn't visible, for example)
28864
28865 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
28866
28867         * DataGridViewRowEventArgs.cs: DataGridView implementation
28868         * DataGridViewElement.cs: DataGridView implementation
28869         * DataGridViewComboBoxCell.cs: DataGridView implementation
28870         * DataGridViewDataErrorContexts.cs: DataGridView implementation
28871         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
28872         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
28873         * ImageLayout.cs: DataGridView implementation
28874         * DataGridViewComboBoxColumn.cs: DataGridView implementation
28875         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
28876         * DataGridViewSelectionMode.cs: DataGridView implementation
28877         * IDataGridViewEditingControl.cs: DataGridView implementation
28878         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
28879         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
28880         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
28881         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
28882         * DataGridViewColumnSortMode.cs: DataGridView implementation
28883         * DataGridView.cs: DataGridView implementation
28884         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
28885         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
28886         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
28887         * Padding.cs: DataGridView implementation
28888         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
28889         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
28890         * DataGridViewRowEventHandler.cs: DataGridView implementation
28891         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
28892         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
28893         * DataGridViewButtonCell.cs: DataGridView implementation
28894         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
28895         * DataGridViewEditMode.cs: DataGridView implementation
28896         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
28897         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
28898         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
28899         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
28900         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
28901         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
28902         * DataGridViewCellEventHandler.cs: DataGridView implementation
28903         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
28904         * DataGridViewCellStyleConverter.cs: DataGridView implementation
28905         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
28906         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
28907         * DataGridViewColumnEventArgs.cs: DataGridView implementation
28908         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
28909         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
28910         * QuestionEventArgs.cs: DataGridView implementation
28911         * IDataGridViewEditingCell.cs: DataGridView implementation
28912         * DataGridViewTriState.cs: DataGridView implementation
28913         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
28914         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
28915         * DataGridViewColumnCollection.cs: DataGridView implementation
28916         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
28917         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
28918         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
28919         * DataGridViewColumn.cs: DataGridView implementation
28920         * DataGridViewCellBorderStyle.cs: DataGridView implementation
28921         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
28922         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
28923         * DataGridViewRow.cs: DataGridView implementation
28924         * DataGridViewImageCellLayout.cs: DataGridView implementation
28925         * DataGridViewImageCell.cs: DataGridView implementation
28926         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
28927         * DataGridViewCheckBoxCell.cs: DataGridView implementation
28928         * DataGridViewHeaderCell.cs: DataGridView implementation
28929         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
28930         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
28931         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
28932         * DataGridViewTextBoxColumn.cs: DataGridView implementation
28933         * QuestionEventHandler.cs: DataGridView implementation
28934         * DataGridViewCellStyleScopes.cs: DataGridView implementation
28935         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28936         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28937         * DataGridViewCell.cs: DataGridView implementation
28938         * DataGridViewCellEventArgs.cs: DataGridView implementation
28939         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28940         * DataGridViewCellStyle.cs: DataGridView implementation
28941         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28942         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28943         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28944         * TextFormatFlags.cs: DataGridView implementation
28945         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28946         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28947         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28948         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28949         * DataGridViewButtonColumn.cs: DataGridView implementation
28950         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28951         * HandledMouseEventArgs.cs: DataGridView implementation
28952         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28953         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28954         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28955         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28956         * DataGridViewRowCollection.cs: DataGridView implementation
28957         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28958         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28959         * DataGridViewHitTestType.cs: DataGridView implementation
28960         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28961         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28962         * DataGridViewColumnEventHandler.cs: DataGridView implementation
28963         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28964         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28965         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28966         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28967         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28968         * DataGridViewContentAlignment.cs: DataGridView implementation
28969         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28970         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28971         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28972         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28973         * DataGridViewPaintParts.cs: DataGridView implementation
28974         * DataGridViewCellCollection.cs: DataGridView implementation
28975         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28976         * DataGridViewImageColumn.cs: DataGridView implementation
28977         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28978         * DataGridViewElementStates.cs: DataGridView implementation
28979         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28980         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28981         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28982         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28983         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28984         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28985         * DataGridViewRowHeaderCell.cs: DataGridView implementation
28986         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28987         * DataGridViewTextBoxCell.cs: DataGridView implementation
28988         * DataGridViewBand.cs: DataGridView implementation
28989         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28990         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28991         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28992         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28993         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28994         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28995         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28996         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28997         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28998         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28999         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
29000
29001 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
29002
29003         * ThemeWin32Classic.cs: 
29004           - Draw the outside focus rectangle around buttons
29005           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
29006             doesn't use end caps for every dash of a line anymore. This
29007             workaround ignores the forecolor.
29008
29009 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
29010
29011         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
29012           endian safe.
29013
29014 2005-11-07  Jackson Harper  <jackson@ximian.com>
29015
29016         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
29017
29018 2005-11-07  Jackson Harper  <jackson@ximian.com>
29019
29020         * ScrollableControl.cs: Calculate the maximum and change vars
29021         (more) correctly so that scrollbars appear as a sensible size.
29022
29023 2005-11-04  Jackson Harper  <jackson@ximian.com>
29024
29025         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
29026         collection.
29027         * TreeView.cs: When the tree is sorted null out the top_node so
29028         that it is recalculated.
29029         - Use dotted lines instead of dashed lines to match MS better.
29030
29031 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
29032
29033         * ListView.cs: 
29034           - Implements key search for items. Useful when browsing files with FileDialog
29035           - When changing view mode or when clear the items reset scrollbar positions
29036
29037 2005-11-04  Jackson Harper  <jackson@ximian.com>
29038
29039         * CurrencyManager.cs: Implement the MetaDataChanged event, the
29040         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
29041         as to what the method may do as there is no real way of creating a
29042         derived CurrencyManager and calling the method. 
29043
29044 2005-11-03  Jackson Harper  <jackson@ximian.com>
29045
29046         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
29047         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
29048         method which seems to just be used internally to refresh the tabs.
29049
29050 2005-11-03  Jackson Harper  <jackson@ximian.com>
29051
29052         * TabControl.cs: Implement the remove method. Fix some broken
29053         comments.
29054
29055 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29056
29057         * DateTimePicker.cs:
29058           - Added missing DateTimePickerAccessibleObject class
29059           - Added missing events
29060           - Added OnFontChanged method
29061         * Form.cs: Added missing attributes
29062         * TreeView.cs: Added missing attributes
29063
29064 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
29065
29066         * GridItemCollection.cs: Fix signatures
29067
29068 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29069
29070         * XplatUI.cs: Updated build rev/date
29071         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
29072           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
29073         * Application.cs: Trigger context-specific ExitThread events
29074
29075 2005-11-03  Jackson Harper  <jackson@ximian.com>
29076
29077         * Menu.cs:
29078         * MainMenu.cs:
29079         * GridTableStylesCollection.cs:
29080         * Timer.cs:
29081         * TabPage.cs:
29082         * HelpProvider.cs:
29083         * StatusBar.cs:
29084         * MonthCalendar.cs: Signature fixes
29085
29086 2005-11-03  Jackson Harper  <jackson@ximian.com>
29087
29088         * TreeNodeCollection.cs: Remove should not be virtual.
29089         * TreeView.cs: Implement the last of the missing methods.
29090
29091 2005-11-03  Jackson Harper  <jackson@ximian.com>
29092
29093         * TreeNodeConverter.cs: Implement to get off my class-status back.
29094
29095 2005-11-03  Jackson Harper  <jackson@ximian.com>
29096
29097         * TreeView.cs: Hookup the bits for drag and drop.
29098         * TreeNode.cs: Don't cache the tree_view or index anymore, now
29099         that nodes can be moved from tree to tree easily this just causes
29100         all sorts of problems.
29101         * TreeNodeCollection: Don't need to give treenodes an index and
29102         treeview anymore when they are added, these are computed on the
29103         fly. Also make sure to remove a node before its added.
29104
29105 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
29106
29107         * TextControl.cs:
29108           - Added CaretSelection enum
29109           - Added comparison methods to Marker struct, makes selection code
29110             more readable
29111           - Added SelectionStart and SelectionEnd as 'moveable' location for
29112             the CaretDirection enum and handler
29113           - Added selection_prev variable to track optimized invalidation for
29114             word and line selection
29115           - Added SelectionVisible property (returns true if there is a valid 
29116             selection)
29117           - Switched CaretHasFocus to only display the caret if there is no
29118             visible selection
29119           - Avoiding StringBuilder.ToString to retrieve a single char, instead
29120             using the direct character index; should be much faster
29121           - Added various conditional debug statements
29122           - Fixed invalidation calculation for selection ranges
29123           - Added ExpandSelection() method to support word and line selection
29124           - Switched SetSelectionToCaret to use new Marker compare overloads
29125           - Added central IsWordSeparator() method to determine word 
29126             separators/whitespace and FindWordSeparator() to streamline common
29127             usage of IsWordSeparator()
29128         * TextBoxBase.cs:
29129           - Removed unneeded grabbed variable, it was just mirroring
29130             Control.Capture
29131           - No longer firing OnTextChanged event when Text setter is called,
29132             since the base will fire the event for us
29133           - Added handling of Ctrl-Up/Down selection
29134           - Added handling of Shift-Cursorkey selection
29135           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
29136             words
29137           - Added handling of Shift and Ctrl-Shift-Home/End selection
29138           - Removed some debug output
29139           - Added handling for single/double/tripple-click to place caret/
29140             select word/select line respectively (Fixes bug #76031)
29141           - Added support for drag expansion of word/line selection
29142         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
29143           current selection
29144
29145 2005-11-02  Jackson Harper  <jackson@ximian.com>
29146
29147         * X11Dnd.cs: If the drag is going to and from a MWF window just
29148         copy the data instead of sending it out through the X Selection
29149         mechanism.
29150
29151 2005-11-02  Jackson Harper  <jackson@ximian.com>
29152
29153         * X11Dnd.cs:
29154         * XplatUIX11.cs: When in a drag we don't want motion notify
29155         messages to get passed on to the other controls. This prevents
29156         mouse move messages from showing up in the drag source.
29157
29158 2005-11-02  Jackson Harper  <jackson@ximian.com>
29159
29160         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
29161         the correct button is release to end a drag.
29162         * XplatUIX11.cs: Make the button state internal so the drag system
29163         can access it.  Dragging needs to know about all button releases,
29164         not just left button.
29165
29166 2005-11-02  Miguel de Icaza  <miguel@novell.com>
29167
29168         * Form.cs (Icon): If the icon is null, reset the icon to the
29169         default value. 
29170
29171         * Cursor.cs: When writing the AND-mask bitmap do not include the
29172         number of colors, but hardcode those to two (black and white),
29173         fixes the loading of color cursors (Paint Dot Net).
29174
29175         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
29176         turn off autoscaling.
29177
29178         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
29179
29180 2005-11-02  Jackson Harper  <jackson@ximian.com>
29181
29182         * X11Dnd.cs: Make sure to send a status message if the pointer
29183         enters a control that can not accept a drop, otherwise the cursor
29184         isn't updated correctly. Also tried to compress the lines of code
29185         a bit.
29186
29187 2005-11-02  Jackson Harper  <jackson@ximian.com>
29188
29189         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
29190         set actions correctly.  This isn't perfect as XDND and win32 have
29191         some differences on how you allow actions. I'll clear this up by
29192         adding a path for drag from MWF to MWF windows.
29193         * XplatUIX11.cs: Hook into the dnd system.
29194
29195 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
29196
29197         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
29198         previously shown but they are no longer need it. Very obvious when 
29199         browsing files with FileDialog.
29200
29201 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
29202
29203         * Control.cs: We always need to call OnPaintBackground. We pretty much
29204           ignore AllPaintingInWmPaint and always do the painting there, whether 
29205           it's set or not, since we always ignore the WM_ERASEBKGND message 
29206           (which we don't generate on X11). This fixes #76616.
29207         * Panel.cs: Removed unneeded background painting. This happens properly
29208           in Control.cs already
29209
29210 2005-10-31  Mike Kestner  <mkestner@novell.com>
29211
29212         * Menu.cs: Add items to collection before setting their index.
29213         * MenuItem.cs : add range checking with ArgumentException like MS.
29214         [Fixes #76510]
29215
29216 2005-10-31  Jackson Harper  <jackson@ximian.com>
29217
29218         * ListBox.cs: Invalidate if the area is visible at all not just
29219         contained in the visible rect. Fixes unselection of semi visible
29220         items.
29221
29222 2005-10-31  Jackson Harper  <jackson@ximian.com>
29223
29224         * Control.cs: Consistently name the dnd methods. Make them
29225         internal so we can override them to match some MS behavoir
29226         internally.
29227         * Win32DnD.cs: Use the new consistent names.
29228
29229 2005-10-31  Jackson Harper  <jackson@ximian.com>
29230
29231         * TreeView.cs: Don't draw the selected node when we lose focus.
29232
29233 2005-10-31  Jackson Harper  <jackson@ximian.com>
29234
29235         * X11Dnd.cs: We still need to reset the state even though a full
29236         reset isn't being done, otherwise status's still get sent all over
29237         the place.
29238
29239 2005-10-31  Jackson Harper  <jackson@ximian.com>
29240
29241         * Control.cs: Make the dnd_aware flag internal so the dnd
29242         subsystem can check it. Catch exceptions thrown in dnd handlers to
29243         match MS behavoir.
29244         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
29245         * X11Dnd.cs: Handle null data in the converters. Set the XDND
29246         version when sending a XdndEnter. Use the control/hwnd dnd_aware
29247         flags to reduce the number of dnd enters/status's sent.
29248
29249 2005-10-31  Jackson Harper  <jackson@ximian.com>
29250
29251         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
29252
29253 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
29254
29255         * PictureBox.cs: Fixes 76512
29256
29257 2005-10-28  Jackson Harper  <jackson@ximian.com>
29258
29259         * X11Dnd.cs: Early implementation to support winforms being a drag
29260         source for data on X11. Also restructured the converters so they
29261         can go both ways now.
29262         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
29263         
29264 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
29265
29266         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
29267           clipboard requests
29268
29269 2005-10-27  Jackson Harper  <jackson@ximian.com>
29270
29271         * TreeNode.cs: Implement serialization so my DnD examples will work.
29272
29273 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
29274
29275         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
29276           TreeView.cs: Don't dispose objects that are not owned.
29277           
29278 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
29279
29280         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
29281           should retrieve the current cursor and report that, but XplatUI
29282           doesn't (yet) have an interface for that (and I'm not sure I even
29283           can, on X11)
29284         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
29285           until any message loop processing is done (and the WM_SETCURSOR
29286           replaces the cursor to the proper one)
29287         * XplatUIX11.cs: 
29288           - Fixed override behaviour, we can't set the cursor globally on X11, 
29289             just for our windows.
29290           - Invalidating the System.Drawing X11 display handle when we are
29291             shutting down
29292         * Control.cs: Fix to make csc happy
29293
29294 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
29295
29296         * TextBoxBase.cs: 
29297           - get_Text: Add last line (without trailing newline) to returned
29298             value (Fixes 76212)
29299           - get_TextLength: Count last line in returned length
29300           - ToString: Call Text property instead of duplicating code
29301
29302 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
29303
29304         * ImageList.cs: Dispose ImageAttributes objects.
29305
29306 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
29307
29308         * ImageList.cs: Use attribute constructors with less arguments where
29309           possible.
29310
29311 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
29312
29313         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
29314           Use typeof instead of strings when assembly is referenced. Added
29315           some more comments.
29316
29317 2005-10-21  Jackson Harper  <jackson@ximian.com>
29318
29319         * ListView.cs: Raise a double click event. Also tried to somewhat
29320         fix when the selectedindexchanged event is raised. Its still
29321         broken though.
29322
29323 2005-10-21  Jackson Harper  <jackson@ximian.com>
29324
29325         * TreeView.cs: New method to invalidate the plus minus area of a
29326         node without invalidating the whole node (maybe this can be used
29327         in some more places).
29328         * TreeNodeCollection.cs: When adding to an empty node we need to
29329         invalidate its plus minus area so the little block shows up.
29330         
29331 2005-10-21  Jackson Harper  <jackson@ximian.com>
29332
29333         * TreeView.cs: Make sure that when we invalidate a node the bounds
29334         are big enough to cover the selected box and the focus
29335         rectangle. Use a different colour for the lines connecting nodes
29336         so they show up with all themes.
29337
29338 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29339
29340         * NativeWindow.cs: Don't call anything that could call into the driver,
29341           we might be on a different thread.
29342
29343 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
29344
29345         * Control.cs(Dispose): Since Dispose might run on a different thread,
29346           make sure that we call methods that could call into the driver via
29347           invoke, to avoid thread issues
29348
29349 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
29350
29351         * XplatUI.cs: Removed finalizer
29352         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
29353           not allowing to be called on the finalizer thread.
29354
29355 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
29356
29357         * ImageList.cs:
29358           - Reverted r51889 and r51891.
29359           - Added ImageListItem class that stores unmodified image items and image
29360             properties required to create list images until handle is created.
29361           - Added AddItem and moved image creation logic to AddItemInternal.
29362           - Added CreateHandle method that creates images based on unmodified items.
29363           - Added DestroyHandle that changes state to store unmodified items.
29364           - Add and AddStrip methods no more create handle.
29365           - ReduceColorDepth has no return value.
29366           - Dispose destroys handle.
29367           - Modified other methods to reflect the above changes.
29368           - Implemented key support.
29369           - Added profile 2.0 members and attributes.
29370           - Added private Reset and ShouldSerialize methods that provide the same
29371             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
29372             them as they are private.
29373           - Added some more comments about implementation details.
29374
29375 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29376
29377         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
29378
29379 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29380
29381         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
29382
29383 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
29384
29385         * DataGridDrawingLogic.cs: Fixes column hit calcultation
29386         * DataGridColumnStyle.cs: Remove debug message
29387
29388 2005-10-20  Jackson Harper  <jackson@ximian.com>
29389
29390         * TreeView.cs: We can always get input keys regardless of whether
29391         or not editing is enabled. They are used for navigation.
29392
29393 2005-10-20  Jackson Harper  <jackson@ximian.com>
29394
29395         * TreeNode.cs: Use the viewport rect for determining if a node
29396         needs to be moved for visibility. Don't use Begin/End edit. This
29397         calls a full refresh when its done.
29398         * TreeView.cs: New SetBottom works correctly.  Make the viewport
29399         rect property internal so the treenodes can see it. When clicking
29400         on a node we need to ensure that its visible because it might just
29401         be partly visible when clicked.
29402
29403 2005-10-20  Jackson Harper  <jackson@ximian.com>
29404
29405         * TreeNodeCollection.cs: Remove debug code.
29406
29407 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29408
29409         * Datagrid.cs: Implements column sorting in Datagrid
29410         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
29411
29412 2005-10-20  Jackson Harper  <jackson@ximian.com>
29413
29414         * TreeNodeCollection.cs: Remove items properly. Update the correct
29415         area after removing them.
29416
29417 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
29418
29419         * Datagrid.cs: Should not call base.OnPaintBackground
29420
29421 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29422
29423         * XplatUIX11.cs (GetMessage):
29424           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
29425             window instead of client window
29426           - Now properly calculates NC_xBUTTONUP message coordinates
29427           - ScreenToMenu now properly calculates it's coordinates of whole 
29428             window, since menus are in the whole window, not in the client
29429             window
29430           - Added WholeToScreen coordinate translation method
29431
29432 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
29433
29434         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
29435           want to return a message, loop back to the beginning of the function
29436           and grab the next real message to process instead.
29437
29438 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
29439
29440         * Splitter.cs: Properly set limits if no filler control is used
29441
29442 2005-10-19  Jackson Harper  <jackson@ximian.com>
29443
29444         * ColorDialog.cs: Don't show the help button if it is not enabled
29445         instead of disabling it (this is what MS does). Don't create the
29446         panel until the dialog is run, otherwise the vars (such as
29447         ShowHelp) are not set yet.
29448
29449 2005-10-19  Jackson Harper  <jackson@ximian.com>
29450
29451         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
29452         are reduced when adding nodes.
29453         * TreeNode.cs:
29454         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
29455         tree.
29456         
29457 2005-10-19  Jackson Harper  <jackson@ximian.com>
29458
29459         * FolderBrowserDialog.cs: End editing our treeview so the window
29460         actually gets refreshed.
29461
29462 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29463
29464         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
29465           Obsoleted handling of WM_ERASEBKGND, now always draws our background
29466           inside of WM_PAINT
29467
29468 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29469
29470         * MenuAPI.cs: Returns after Hidding window
29471         * XplatUIX11.cs: Added TODO found while debugging menu issues
29472
29473 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
29474
29475         * XplatUIX11.cs: Do not re-map the whole window when it's size
29476           becomes non-zero unless it's supposed to be actually visible
29477
29478 2005-10-18  Jackson Harper  <jackson@ximian.com>
29479
29480         * TreeView.cs: We don't need to keep a count anymore.
29481         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
29482         use the Grow method.
29483
29484 2005-10-18  Jackson Harper  <jackson@ximian.com>
29485
29486         * TreeNodeCollection.cs: Insert is not supported on arrays, so
29487         implement it manually here.
29488
29489 2005-10-18  Jackson Harper  <jackson@ximian.com>
29490
29491         * ImageList.cs: Dont kill the list when the colour depth is
29492         changed, just change the colour depth of all the images.
29493         - Same goes for setting the image size. Just resize them all
29494         instead of killing the list softly.
29495
29496 2005-10-18  Jackson Harper  <jackson@ximian.com>
29497
29498         * Control.cs: Don't invalidate empty rectangles.
29499
29500 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29501
29502         * ListViewItem.cs:
29503           - Adds checked item to the Checked/Item lists (where empty before)
29504           - Do not add items to the Selected lists if they are already present
29505         * ListView.cs:
29506           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
29507           - When deleting items make sure that we delete them for the Selected
29508           and Checked list also.
29509
29510 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
29511
29512         * Label.cs: Dispose objects no longer used
29513         * ThemeWin32Classic.cs: Dispose objects no longer used
29514
29515 2005-10-18  Jackson Harper  <jackson@ximian.com>
29516
29517         * TabControl.cs: Don't refresh the whole control when the tabs are
29518         scrolled, we just need to refresh the tab area.
29519
29520 2005-10-17  Jackson Harper  <jackson@ximian.com>
29521
29522         * XplatUIX11.cs: Compress code a little bit. Only calculate the
29523         after handle when we need it.
29524
29525 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29526
29527         * Control.cs: When the parent size changes, recalculate anchor 
29528           positions. Partial fix for #76462
29529
29530 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
29531
29532         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
29533           drawn. Fixes #76462
29534
29535 2005-10-17  Jackson Harper  <jackson@ximian.com>
29536
29537         * MonthCalendar.cs: Don't create the numeric up down until our
29538         handle is created. Otherwise our handle is created in the
29539         constructor and we don't know if we are a WS_CHILD or WS_POPUP
29540         yet.
29541
29542 2005-10-17  Jackson Harper  <jackson@ximian.com>
29543
29544         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
29545         correctly.
29546
29547 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
29548         * TreeNode.cs : small logical fix (was using local var instead of field)
29549         
29550 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
29551
29552         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
29553
29554 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
29555
29556         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
29557
29558 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
29559
29560         * Control.cs: 
29561           - Re-implemented anchoring code. My first version was really broken.
29562             This fixes bug #76033. Unlike the previous implementation we will
29563             no longer have round errors since all numbers are calculated from
29564             scratch every time. Removed various anchor-related obsolete vars.
29565           - InitLayout no longer causes layout event firing and layout to be 
29566             performed
29567
29568 2005-10-16  Jackson Harper  <jackson@ximian.com>
29569
29570         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
29571         which was broken).
29572
29573 2005-10-16  Jackson Harper  <jackson@ximian.com>
29574
29575         * TabControl.cs: Remove debug code.
29576
29577 2005-10-16  Jackson Harper  <jackson@ximian.com>
29578
29579         * XEventQueue.cs: Increase the default queue size (very simple
29580         apps needed to grow the queue).
29581         * Hwnd.cs: No finalizer so we don't need to suppress
29582         finalization. Compute the invalid area manually so a new rectangle
29583         does not newto be created.
29584         * ScrollableControl.cs: Don't set any params (otherwise visibility
29585         isn't set correctly).
29586         * MdiChildContext.cs: New constructor takes the mdi parent so it
29587         doesn't have to be computed and avoids a crash on windows. Draw
29588         the window icon properly, and allow the text to be seen.
29589         * Form.cs: Use new MdiChildContext constructor. Make sure the
29590         child context isn't null in wndproc.
29591         * TabControl.cs: Don't set focus, this is muddling keyboard
29592         behavoir. Expand the tab rows when a window size increase will
29593         allow extra tabs to be seen. Don't allow tabs smaller than the
29594         width of a window to be scrolled out of view.
29595         * TreeNode.cs:
29596         * TreeView.cs: Use measure string to calculate a nodes width, the
29597         width is cached and only updated when the text or the font is
29598         changed. Don't check for expand/collapse clicks on the first level
29599         nodes if root lines are disabled.
29600         
29601 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
29602
29603         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
29604
29605 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
29606
29607         * DataGridBoolColumn.cs: fixes warning
29608
29609 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
29610
29611         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
29612         to match more to match more precisely the MS Net behavior
29613
29614 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
29615
29616         * Hwnd.cs: Added field to track if window is mapped
29617         * XplatUIX11.cs: 
29618           - Unmap windows if they become 0-size, re-map when 
29619             they are >0 again; fixes #76035
29620           - Re-set our error handler after initializing X11Desktop
29621             to override any error handlers Gtk or whatever was called
29622             may have set.
29623
29624 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
29625
29626         * CheckedListBox.cs: Removed unused vars
29627         * ListView.cs: Fixed signatures
29628         * RichTextBox.cs: Removed unused vars
29629         * TextBoxBase.cs: Removed unused vars
29630         * XplatUIWin32.cs: Removed unused vars
29631         * XplatUIX11.cs: Removed unused vars
29632         * XplatUI.cs: Updated version and date to latest published
29633
29634 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
29635
29636         * Cursor.cs: Added private .ctor to work around a bug in
29637           resourceset (Thanks to Geoff Norton for the help on this)
29638         * SplitterEventArgs.cs: Made fields accessible so we don't
29639           waste boatloads of objects and can reuse the same one
29640           in Splitter
29641         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
29642           any captions and borders when generating screen coordinates
29643         * Splitter.cs: Reimplemented control, now fully complete, uses
29644           rubberband drawing, supports and obeys all properties, has
29645           proper cursors
29646
29647 2005-10-13  Miguel de Icaza  <miguel@novell.com>
29648
29649         * Form.cs (Form): Setup default values for autoscale and
29650         autoscale_base_size;  Make these instance variables, not static
29651         variables. 
29652
29653         (OnLoad): on the first load, adjust the size of the form.
29654
29655 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
29656
29657         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
29658           width argument to DrawReversibleRectangle()
29659         * XplatUIWin32.cs, XplatUIX11.cs: 
29660           - Implemented width for DrawReversibleRectangle()
29661           - Added logic to DrawReversibleRectangle that recognizes a zero
29662             width or height and only draws a line in that situation
29663         
29664 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
29665
29666         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29667         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29668         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29669           method (it uses our FosterParent window to get a graphics context)
29670
29671 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
29672
29673         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
29674           and SetWindowBackground methods
29675         * Control.cs:
29676           - Setting proper ControlStyles
29677           - We no longer call XplatUI.SetWindowBackground and XplatUI.
29678             EraseWindowBackground, instead we draw the window background
29679             ourselves in PaintControlBackground. This behaviour is
29680             required to match MS, where, when OnPaintBackground is not
29681             called, the background is not drawn.
29682           - Removed unneeded Refresh() in set_Text
29683         * Hwnd.cs: Dropped the ErasePending support. No longer needed
29684         * XplatUIX11.cs:
29685           - Created DeriveStyles method to translate from CreateParams to
29686             FormBorderStyle and TitleStyle, also handles BorderStyle (which
29687             matches FormBorderStyle enum values)
29688           - Consolidated SetHwndStyles and CalculateWindowRect border/title
29689             style calculations into single DeriveStyles method
29690           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29691             from redrawing the whole window on any resize or expose.
29692           - Fixed CreateWindow usage of SetWindowValuemask. Before not
29693             all styles were applied to our whole/client window appropriately
29694           - Removed EraseWindowBackground() and SetWindowBackground() methods
29695           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29696             no longer clear/redraw the background through X
29697           - Removed handling of erase_pending bit, we have no use for it (or
29698             so it seems)
29699         * XplatUIOSX.cs:
29700           - Removed generation and handling of WM_ERASEBKGND message
29701           - Removed EraseWindowBackground() and SetWindowBackground() methods
29702           - Removed handling of hwnd.ErasePending flag
29703         * XplatUIWin32.cs:
29704           - Removed EraseWindowBackground() and SetWindowBackground() methods
29705           - We no longer call EraseWindowBackground on PaintEventStart, we 
29706             ignore the fErase flag, erasing is handled in Control in the
29707             background handler
29708         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29709           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29710           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
29711           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
29712           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
29713           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29714           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29715
29716 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
29717
29718         * PropertyGrids.cs: Get sub properties
29719         * PropertyGridView.cs: Fix drawing code
29720
29721 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29722
29723         * ListBox.cs: Fixes 76383
29724
29725 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29726
29727         * DataGridTextBoxColumn.cs: Sets location and size before attachment
29728         * ThemeWin32Classic.cs: Fixes border drawing and calculations
29729         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
29730
29731
29732 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29733
29734         * ComboBox.cs: Fixes border drawing
29735
29736 2005-10-10  Miguel de Icaza  <miguel@novell.com>
29737
29738         * MimeIcon.cs: Ignore errors if the file can not be read.
29739
29740 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
29741
29742         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
29743          - Fixed border calculations
29744          - Fixed horizontal scrolling in single column listboxes
29745          - Fixed drawing issues
29746
29747 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
29748
29749         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
29750           FormBorderStyle enum
29751         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
29752           code to determine FormBorderStyles from CreateParams
29753         * Form.cs:
29754           - Fixed bug where we'd set the wrong window styles if we were
29755             not creating an MDI window
29756           - Added call to XplatUI.SetBorderStyle when form borders are set
29757         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
29758         * Hwnd.cs:
29759           - Removed obsolete edge style
29760           - Switched from BorderStyle to FormBorderStyle
29761         
29762 2005-10-10  Jackson Harper  <jackson@ximian.com>
29763
29764         * Form.cs: Use the property to get the window handle instead of
29765         accessing it directly. Prevents a null reference exception.
29766
29767 2005-10-10  Jackson Harper  <jackson@ximian.com>
29768
29769         * TreeView.cs: Don't adjust the rect given to DrawString now that
29770         our libgdiplus draws correctly.
29771
29772 2005-10-08  Jackson Harper  <jackson@ximian.com>
29773
29774         * TreeView.cs: Don't try to find the clicked on node if there are
29775         no nodes in the tree.
29776
29777 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
29778
29779         * RichTextBox.cs:
29780
29781           restore
29782
29783 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
29784
29785         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
29786           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
29787           ErrorProvider.cs:
29788           Use ResPool for brushes and dispose System.Drawing objects that
29789           are not used anymore.
29790
29791 2005-10-07  Jackson Harper  <jackson@ximian.com>
29792
29793         * MdiChildContext.cs: Use the new borders instead of drawing them
29794         ourselves.
29795
29796 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
29797
29798         * Calling UpdateBounds after changing the window's BorderStyle 
29799         since the style can change the ClientSize
29800
29801 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29802
29803         * Control.cs: Made PaintControlBackground virtual
29804         * Panel.cs: Overriding PaintControlBackground instead of using paint
29805           event; paint event method was interfering with 'real' users of the
29806           event.
29807
29808 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
29809
29810         * ThemeWin32Classic.cs: remove border drawing since it is handled
29811         by the base control class now and was causing double border drawing.
29812
29813 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29814
29815         * Panel.cs: Redraw our background on paint. Not a pretty solution,
29816           but it does seem to match MS behaviour. This fixes bug #75324
29817
29818 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29819
29820         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
29821           somewhat hackish looking
29822
29823 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29824
29825         * TextBoxBase.cs:
29826           - We now accept Enter even if AcceptEnter is false, if the containing
29827             form does not have an AcceptButton configured (fixes bug #76355)
29828           - Calculations are now fixed to no longer use Width/Height, but
29829             ClientSize.Width/Height, since we now support borders (this was
29830             a result of fixing borders and therefore bug #76166)
29831           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
29832             true (fixes bug #76354)
29833         
29834 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29835
29836         * Control.cs: 
29837           - Defaulting BorderStyle and setting it in XplatUI when our window 
29838             is created
29839           - Added enum check to InternalBorderStyle setter
29840         * XplatUIX11.cs: 
29841           - Added drawing of window borders
29842           - Now properly calculates WM decorations offset for toplevel 
29843             windows (fixes bug #74763)
29844         * XplatUIWin32.cs: 
29845           - Implemented BorderStyles for windows (we're letting win32 draw 
29846             the border for us)
29847           - Fixed the signature for SetWindowLong
29848         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
29849           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
29850           setting borders
29851         * UpDownBase.cs: Remove drawing of borders, this is handled by
29852           the driver, outside the client area
29853         * ListView.cs: Removed bogus border calculations. The control should
29854           be oblivious to borders, since those are not part of the client
29855           area. 
29856         * X11DesktopColors.cs: Commented out (currently) unneeded variables
29857         * ThemeWin32Classic.cs: Removed border calculations from ListView 
29858           drawing code
29859
29860 2005-10-06  Jackson Harper  <jackson@ximian.com>
29861
29862         * MdiChildContext.cs: Clear out the old virtual position remove
29863         all the unneeded calls to CreateGraphics.
29864
29865 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29866
29867         * TextControl.cs: Use proper color for highlighted text; fixes #76350
29868
29869 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
29870
29871         * Form.cs: 
29872           - Added loading and setting of our new default icon
29873           - Only set icon if window is already created
29874
29875 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
29876
29877         * Label.cs:
29878           - Do not explicitly set the foreground and background colors, to
29879             allow inheriting from parents (fixes #76302)
29880           - Use Control's InternalBorderStyle property to deal with borders
29881
29882 2005-10-06  Jackson Harper  <jackson@ximian.com>
29883
29884         * MdiChildContext.cs: Use the new xplatui function to draw a
29885         reversible rect.
29886
29887 2005-10-06  Jackson Harper  <jackson@ximian.com>
29888
29889         * Form.cs: Add the parent before creating the child context cause
29890         we need the parent when setting up the child.
29891
29892 2005-10-06  Jackson Harper  <jackson@ximian.com>
29893
29894         * FolderBrowserDialog.cs: redo the tree population code so a
29895         second thread isn't used. Should be a lot faster and more stable
29896         now.
29897
29898 2005-10-05  Jackson Harper  <jackson@ximian.com>
29899
29900         * TreeView.cs: There are no expand/collapse boxes if the node has
29901         no children.
29902
29903 2005-10-05  Jackson Harper  <jackson@ximian.com>
29904
29905         * X11DesktopColors.cs: Get menu colours for the gtk theme.
29906
29907 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
29908
29909         * FileDialog.cs: Fix InitialDirectory
29910
29911 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
29912
29913         * ComboBox.cs:
29914                 - Fixes changing between styles
29915                 - Fixes simple mode
29916                 - Fixes last item crashing when navigating with keyboard
29917
29918 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
29919
29920         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
29921
29922 2005-10-05  Jackson Harper  <jackson@ximian.com>
29923
29924         * TreeView.cs: If updating the root node do a full refresh.
29925         * TreeNode.cs: The root node should be expanded by default. Also
29926         added a utility prop to tell if we are the root node.
29927         * TreeNodeCollection.cs: Only refresh if the node we are being
29928         added to is expanded. Also added a comment on a potential
29929         optimization.
29930         
29931 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
29932
29933         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
29934           in dispose method. Fixes #76330
29935
29936 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
29937
29938         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29939
29940                 - Implements vertical and horizontal scrolling using XplatUI
29941                 - Fixes keyboard navagation
29942                 - Fixes EnsureVisible
29943                 - Drawing fixes
29944                 - Handles and draws focus properly
29945
29946
29947 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
29948
29949         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29950           Create handle. NET_2_0: Destroy handle when value is null.
29951
29952 2005-10-03  Jackson Harper  <jackson@ximian.com>
29953
29954         * ScrollBar.cs: My last scrollbar patch was broken. This is a
29955         revert and a new patch to prevent the thumb from refreshing so
29956         much.
29957
29958 2005-10-02  Jackson Harper  <jackson@ximian.com>
29959
29960         * ScrollBar.cs: Don't update position if it hasn't actually
29961         changed. This occurs when you hold down the increment/decrement
29962         buttons and the thumb gets to the max/min.
29963
29964 2005-10-01  Jackson Harper  <jackson@ximian.com>
29965
29966         * Form.cs:
29967         * MdiChildContext.cs:
29968         * MdiClient.cs: Implement ActiveMdiChild in Form.
29969
29970 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
29971
29972         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29973
29974 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
29975
29976         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29977           be found
29978
29979 2005-09-30  Jackson Harper  <jackson@ximian.com>
29980
29981         * ListBox.cs: Don't do a full refresh unless some data has
29982         actually changed.
29983
29984 2005-09-30  Jackson Harper  <jackson@ximian.com>
29985
29986         * TreeView.cs: Make sure that the checkboxes size is factored in
29987         even when not visible.
29988
29989 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
29990
29991         * FileDialog.cs: Fix Jordi's build break
29992
29993 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
29994
29995         * FileDialog.cs: 
29996                 - Use standard the Windows colours for the combobox as espected
29997                 - Dispose objects that use resouces when no longer need them
29998
29999 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
30000
30001         * X11DesktopColors.cs: Initial incomplete implementation
30002         * XplatUIX11.cs: Added call to initialize X11DesktopColors
30003
30004 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
30005
30006         * Theme.cs: 
30007           - Switched Theme color names to match the names defined in 
30008             System.Drawing.KnownColors. Life's hard enough, no need to make 
30009             it harder.
30010           - Added setters to all theme color properties so themes can set
30011             their color schemes. The setters also propagate the color changes
30012             to System.Drawing.KnownColors via reflection
30013         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
30014           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
30015           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
30016           use the new, more logical theme color names
30017         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
30018           post-NT colors
30019         * ThemeWin32Classic.cs:
30020           - Removed code to set the old classic Windows colors. Instead it
30021             now relies on the colors returned by System.Drawing.KnownColors
30022             which will be either modern static colors (Unix) or colors
30023             read from the user's configuration (Win32)
30024           - Updated to use the new, more logical theme color names
30025           - Switched DataGrid drawing code to use only Theme colors instead of
30026             a mix of System.Drawing.KnownColors and Theme colors
30027           - DrawFrameControl(): Removed code that fills the button area, the
30028             fill would overwrite any previous fill done by a control. This
30029             fixes bug #75338 
30030           - Added DrawReversibleRectangle() stub
30031         * ScrollableControl.cs: Set visible state to false when scrollbars
30032           are removed (pdn fix)
30033         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
30034           DrawReversibleRectangle() method to allow drawing primitive 
30035           'rubber bands'
30036         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
30037
30038 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30039
30040         * ImageList.cs: Add(Icon): Create handle.
30041
30042 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
30043
30044         * ListView.cs:
30045         * ThemeWin32Classic.cs:
30046                 - Fixes detail mode
30047                 - Sets clippings
30048                 - Issues with drawing
30049
30050 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30051
30052         * ImageList.cs: Moved RecreateHandle back to ImageList as event
30053           source has to be the ImageList.
30054
30055 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30056
30057         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
30058
30059 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30060
30061         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
30062
30063 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30064
30065         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
30066
30067 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
30068         * GridItem.cs: Fixed TODOs
30069         * GridItemCollection.cs: Added ICollection interface
30070
30071 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
30072
30073         * ImageList.cs: Resize icons when needed.
30074
30075 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
30076
30077         * ListViewItem.cs
30078                 - Fixes GetBounds and returns on screen rects
30079         * ListView.cs:
30080                 - Fixes vertical and horzintal scrolling of items
30081         * ThemeWin32Classic.cs:
30082                 - Fixes drawing
30083                 
30084 2005-09-29  Raja R Harinath  <harinath@gmail.com>
30085
30086         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
30087
30088 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
30089
30090         * ImageList.cs: Added comments about handle creation. Moved Handle,
30091           HandleCreated and OnRecreateHandle implementations to ImageCollection.
30092           Handle is created in Add methods.
30093
30094 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30095          
30096         * DataGridDrawingLogic.cs: 
30097                 - Takes rows into account on Colum calculations
30098                 - Returns the column when clickig
30099         * DataGrid.cs:
30100                 - Fixes default HitTestInfo values
30101                 - Fixes HitTestInfo.ToString
30102                 - Fixes ResetBackColor          
30103         
30104 2005-09-28  Jackson Harper  <jackson@ximian.com>
30105
30106         * MdiChildContext.cs: Obey rules for fixed sized windows (no
30107         sizing or cursor changes). Also added some temp code to draw the
30108         titlebars text (Makes dev a little easier).
30109
30110 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30111
30112         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
30113
30114 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
30115          
30116         * ListBox.cs: Fixes bug 76253
30117
30118 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
30119
30120         * ImageList.cs: Added comments about the current implementation. Added
30121           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
30122           Format32bppArgb to preserve transparency and can use Graphics.FromImage
30123           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
30124           with Bitmap.LockBits for better performance. Revised the whole file to
30125           match MS.NET behaviour and provide better performance. Non-public
30126           interface members are calling public members even when they throw
30127           NotSupportedException for better maintainability. Moved ColorDepth,
30128           ImageSize, ImageStream and TransparentColor implementations to
30129           ImageCollection for better performance as these properties are not used
30130           by ImageList.
30131         * ImageListStreamer.cs: Added a new internal constructor that takes an
30132           ImageList.ImageCollection and serializes Images based on
30133           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
30134           match ImageList property name.
30135
30136 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
30137
30138         * ListBox.cs: Fixes IndexFromPoint for last item
30139
30140 2005-09-27  Jackson Harper  <jackson@ximian.com>
30141
30142         * Form.cs: Set the position of new mdi children correctly.
30143
30144 2005-09-27  Jackson Harper  <jackson@ximian.com>
30145
30146         * MdiClient.cs: New mdi children need to be added to the back of
30147         the controls collection so the zorder is set correctly. Also add a
30148         count of all the child windows that have been created.
30149
30150 2005-09-27  Jackson Harper  <jackson@ximian.com>
30151
30152         * Form.cs (CreateParams): Setup MDI forms correctly.
30153
30154 2005-09-27  Jackson Harper  <jackson@ximian.com>
30155
30156         * MdiChildContext.cs:
30157         * MonthCalendar.cs:
30158         * UpDownBase.cs:
30159         * ListBox.cs:
30160         * ListView.cs:
30161         * TextBoxBase.cs:
30162         * TreeView.cs:
30163         * ScrollableControl.cs:
30164         * ComboBox.cs: Add implicit controls using the new implict control
30165         functionality in ControlCollection. Also try to block multiple
30166         control add in a suspend/resume layout to save some cycles.
30167         
30168 2005-09-27  Jackson Harper  <jackson@ximian.com>
30169
30170         * Control.cs: Add functionality to the controls collection to add
30171         'implicit controls' these are controls that are created by the
30172         containing control but should not be exposed to the user. Such as
30173         scrollbars in the treeview.
30174         * Form.cs: The list var of the ControlsCollection is no longer
30175         available because of the potential of implicit controls getting
30176         ignored by someone accessing the list directly.
30177
30178 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
30179
30180         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
30181           loose it's parent. (Fixed bug introduced in r49103 when we added
30182           setting the child parent to null on Remove)
30183
30184 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
30185
30186         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
30187         * Splitter.cs: Added missing attributes for BorderStyle property.
30188         * TextBoxBase.cs: Marked Calculate* methods internal.
30189         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
30190         MS.NET.
30191
30192 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
30193          
30194         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
30195
30196 2005-09-25  Jackson Harper  <jackson@ximian.com>
30197
30198         * TreeView.cs: Update the node bounds correctly regardless of
30199         whether the node is visible.
30200
30201 2005-09-25  Jackson Harper  <jackson@ximian.com>
30202
30203         * ImageList.cs: Don't dispose the image after it is added to the
30204         image list. Only reformat images that need to be resized.
30205
30206 2005-09-25  Jackson Harper  <jackson@ximian.com>
30207
30208         * ImageList.cs: Don't set the format when changing the image.
30209
30210 2005-09-25  Jackson Harper  <jackson@ximian.com>
30211
30212         * TreeView.cs: We can't just assume the node has a font. Use the
30213         treeviews font if no node font is available.
30214
30215 2005-09-25  Jackson Harper  <jackson@ximian.com>
30216
30217         * TreeView.cs: Allow the scrollbars to be reset with negative
30218         values.
30219         - Don't add scrollbars to negative sized windows.
30220
30221 2005-09-23  Jackson Harper  <jackson@ximian.com>
30222
30223         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
30224         old Mono.Posix. Also remove some stray code that shouldn't have
30225         been committed.
30226
30227 2005-09-23  Jackson Harper  <jackson@ximian.com>
30228
30229         * TreeView.cs: Attempt at proper sizing of the horizontal
30230         scrollbar. Also don't resize the scrollbars unless they are
30231         visible.
30232
30233 2005-09-23  Jackson Harper  <jackson@ximian.com>
30234
30235         * TreeView.cs: We don't need to expand the invalid area when the
30236         selection changes, as this is all drawn in the node's bounding
30237         box. The area needs to be expanded (previous typo was contracting
30238         it) when the focus rect moves.
30239
30240 2005-09-23  Jackson Harper  <jackson@ximian.com>
30241
30242         * TreeView.cs: Display the selection box under the correct
30243         circumstances. We were rendering white text with no selection box
30244         before.
30245
30246 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
30247
30248         * TextControl.cs(Split): Now updates selection start/end if it points 
30249           into a line that's being split. Fixes a FIXME and bug #75258
30250
30251 2005-09-23  Jackson Harper  <jackson@ximian.com>
30252
30253         * Binding.cs:
30254         * ListControl.cs: Don't use the path when retrieving binding
30255         managers from the binding context. My bat sense tells me that the
30256         path is only used on insertion.
30257
30258 2005-09-22  Jackson Harper  <jackson@ximian.com>
30259
30260         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
30261
30262 2005-09-22  Jackson Harper  <jackson@ximian.com>
30263
30264         * Splitter.cs: There are special cursors used for splitting.
30265         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
30266
30267 2005-09-22  Jackson Harper  <jackson@ximian.com>
30268
30269         * Splitter.cs: Change the cursor appropriately when the splitter
30270         is moused over, so the user actually knows there is a splitter
30271         there.
30272
30273 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30274
30275        * Label.cs : Fix ToString method to give same output as MS.NET
30276
30277 2005-09-22  Jackson Harper  <jackson@ximian.com>
30278
30279         * TreeView.cs: Create the scrollbars when the handle is created
30280         and add them right away, just make them invisble. Also account for
30281         the window being shrunk vertically to the point that the vert
30282         scrollbar needs to be added.
30283         - Remove some 0.5 adjustments to get around anti aliasing issues.
30284         
30285 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
30286          
30287         * MainMenu.cs: Fixes default value
30288         * MenuItem.cs: Fixes default value
30289
30290 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
30291
30292         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
30293
30294 2005-09-21  Jackson Harper  <jackson@ximian.com>
30295
30296         * Control.cs: Don't try to set the border style on the window if
30297         it hasn't been created. When the window is created the border
30298         style will be used.
30299
30300 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30301
30302         * Control.cs (Update): Don't call XplatUI if we don't have a
30303           window handle yet
30304
30305 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30306
30307         * ContainerControl.cs: Instead of throwing an exception, print
30308           a one-time warning about Validate not being implemented
30309         * XplatUIWin32.cs: Removed debug output
30310
30311 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
30312
30313         * Control.cs: Only set XplatUI background if we expect the windowing
30314           system to handle the background. This stops controls that draw their
30315           own background from flickering
30316
30317         * XplatUIX11.cs: Support custom visuals and colormaps for window 
30318           creation. This allows, amongst other things, using MWF X11 windows 
30319           with OpenGL.
30320
30321 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
30322
30323         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
30324           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
30325           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
30326           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
30327           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
30328           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
30329           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
30330           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
30331           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
30332           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
30333           GridColumnStylesCollection.cs, 
30334           IDataGridColumnStyleEditingNotificationService.cs,
30335           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
30336           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
30337           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
30338           TreeNodeCollection.cs, AmbientProperties.cs, 
30339           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
30340           DataObject.cs, ErrorProvider.cs, Splitter.cs,
30341           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
30342           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
30343           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
30344           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
30345           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
30346           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
30347           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
30348           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
30349           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
30350           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
30351           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
30352           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
30353           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
30354           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
30355           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
30356           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
30357           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
30358           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
30359           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
30360           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
30361           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
30362           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
30363           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
30364           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
30365           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
30366           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
30367           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
30368           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
30369           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
30370           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
30371           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
30372           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
30373           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
30374           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
30375           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
30376
30377 2005-09-21  Jackson Harper  <jackson@ximian.com>
30378
30379         * TreeNode.cs: Call Before/After Expand not Collapse when
30380         expanding.
30381
30382 2005-09-20  Jackson Harper  <jackson@ximian.com>
30383         
30384         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
30385
30386 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30387          
30388         * ListViewItem.cs:
30389                 - Fixes bug 76120
30390                 - Fixes proper storing of subitems
30391                 - Fixes not updated items
30392
30393 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
30394
30395         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
30396           things if our window handle isn't created yet. Also disabled 
30397           debug for TextBoxBase
30398
30399 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
30400
30401         * MenuAPI.cs: Remove filtering of events to allow menu usage
30402
30403 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30404
30405         * Cursor.cs: Allow null to be passed to Cursor.Current.
30406
30407 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
30408
30409         * ThemeWin32Classic.cs:
30410           - Change some private methods/fields to protected virtual so that 
30411             they can be accessed and overriden in derived classes
30412           - First refactoring of some methods. Derived themes now don't 
30413             need to duplicate the complete code from ThemeWin32Classic
30414         * ThemeNice.cs:
30415           - Added nice StatusBar
30416           - Derive from ThemeWin32Classic and not Theme
30417           - Removed duplicate ThemeWin32Classic code
30418
30419 2005-09-20  Miguel de Icaza  <miguel@novell.com>
30420
30421         * Control.cs (ControlCollection.Add): If the value null is passed
30422         the control is ignored. 
30423
30424         Optimize this loop.
30425
30426 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
30427
30428         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
30429           PostQuitMessage state.
30430         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
30431
30432 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
30433
30434         * Application.cs: Our constructor will never get called, move 
30435           initialization to fields; fixes bug #75933
30436
30437 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
30438
30439         * FileDialog.cs :
30440                 - Allow files to be selected properly using file name
30441                 combo box.
30442                 - Add ability to change diretory (absolute / relative)
30443                 using file name combo box.
30444
30445 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
30446          
30447         * ListBox.cs: 
30448                 - Fixes Multicolumn listboxes item wrong calculations
30449                 - Allows to click when only one item is in the listbox
30450                 - Fixes crash when no items using keyboard navigation
30451
30452 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
30453
30454         * ComboBox.cs: Reverted almost everything from the latest patch which
30455           broke ComboBox
30456
30457 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
30458         
30459         * ToolTip.cs:
30460                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
30461         * ComboBox.cs:
30462                 - When DropDownStyle is Simple, it does not show scrollbar 
30463                 to the last item of the list.
30464                 - When DropDownStyle is Simple, it crashed when the list was 
30465                 scrolled down with the down cursor key.
30466                 - Fixed a bug that when DropDownStyle is DropDownList, the 
30467                 selected item was not shown.
30468                 - The position of the selected item was not preserved when 
30469                 the next dropdown happened.
30470         * ThemeWin32Classic.cs:
30471                 - Items were wrapped at the right end.
30472         * CheckedListBox.cs:
30473                 - Fixed Add method
30474         * ListBox.cs:
30475                 - Items should be fully shown.
30476                 - When resizing and vertical scrollbar disappeared, the item 
30477                 of index 0 should be on the top of the list.
30478                 - GetItemRectangle should consider the size of ver. scrollbar
30479         * StatusBar.cs:
30480                 - SizingGrip area should not be allocated when it is not 
30481                 displayed.
30482                 - Now it reflects MinWidth of the containing panel and 
30483                 fixed a crash that happens when its width becomes so small.
30484
30485 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30486
30487         * CheckedListBox.cs: Fixes bug 76028
30488         * ListBox.cs: Fixes bug 76028
30489
30490 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
30491
30492         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
30493         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
30494
30495 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
30496
30497         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
30498
30499 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30500
30501         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
30502
30503 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30504
30505         * IRootGridEntry.cs: Added
30506         * PropertyGridCommands.cs: Added
30507         * PropertiesTab.cs: Added missing methods and property
30508         * PropertyGridView.cs: Made class internal
30509         * PropertyGridTextBox.cs: Made class internal
30510
30511 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30512
30513         * MimeIcon.cs: Try to check some other environment variables
30514           if "DESKTOP_SESSION" returns "default"
30515
30516 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30517
30518         * ThemeNice.cs: Corrected background colors (e.g. menus)
30519         * ColorDialog.cs: Use correct background colors for controls
30520
30521 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
30522
30523         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
30524
30525 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
30526
30527         * RichTextBox.cs: Added initial implementation
30528         * lang.cs: Removed. Was accidentally checked in long time ago
30529         * TODO: Removed. Contents were obsolete
30530
30531 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
30532                                                                                 
30533         * PropertiesTab.cs : Added
30534
30535 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
30536                                                                                 
30537         * PropertyGrid.cs : Update
30538         * PropertyGridView.cs : Update
30539         * System.Windows.Forms.resx : Added images and strings
30540
30541 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
30542
30543         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
30544  
30545 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
30546
30547         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
30548           a busy loop right after the Ungrab the X11 display is otherwise 
30549           blocked
30550
30551 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
30552
30553         * ThemeWin32Classic.cs: Optimise the use of clipping
30554
30555 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
30556
30557         * DataGrid.cs: fixes recursion bug
30558
30559 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
30560
30561         * ThemeNice.cs: 
30562           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
30563           - Cleanup
30564
30565 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
30566
30567         * ThemeNice.cs: Draw nice ProgressBars
30568
30569 2005-09-01  Miguel de Icaza  <miguel@novell.com>
30570
30571         * VScrollBar.cs: Another buglet found by Aaron's tool. 
30572
30573         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
30574         bug finder.
30575
30576 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
30577
30578         * ThemeNice.cs:
30579           - Added nicer menu drawing
30580           - Updated DrawTab
30581           - some refactoring
30582
30583 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
30584
30585         * CreateParams.cs (ToString): Made output match MS
30586         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
30587             handle is already created (to avoid forcing window creation)
30588         * XplatUIX11.cs: Set window text to caption after creating window,
30589           in case Text was set before window was created
30590         * Form.cs: Use this.Text instead of a static string as caption
30591
30592 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
30593
30594         * NotifyIcon.cs: Don't set the window to visible; this screws
30595           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
30596           OnPaint without a bitmap)
30597         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
30598           happen very often anyway; we could add the check to the WM_PAINT 
30599           event generation code
30600
30601 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
30602
30603         * NotifyIcon.cs: Fill the icon area with a background color, to 
30604           avoid 'residue' when transparent icons are drawn
30605         * XplatUIX11.cs:
30606           - Handle whole_window == client_window when destroying windows
30607           - SystrayAdd(): Set client_window to whole_window value to
30608             get mouse and other events passed to NotifyIcon
30609
30610 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
30611
30612         * Form.cs: Set proper default for Opacity property
30613         * NotifyIcon.cs:
30614           - ShowSystray(): Don't bother creating telling the OS
30615             about the systray item if no icon is provided
30616           - Now handles WM_NCPAINT message to deal with whole/client window
30617             split
30618           - Create window as visible to not get caught by Expose optimization
30619         * Hwnd.cs: Removed debug message
30620         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
30621           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
30622             PaintEventStart/End to use new client argument
30623         * TextBoxBase.cs:
30624           - Commented out debug messages
30625           - Switched PaintEventStart/End to use new client argument
30626         * XplatUI.cs: Added client window bool to PaintEventStart()/
30627           PaintEventEnd() calls, to support drawing in non-client areas
30628         * XplatUIDriver.cs: 
30629           - Added client window bool to PaintEventStart()/PaintEventEnd() 
30630             calls, to support drawing in non-client areas
30631           - Added conditional compile to allow using MWF BeginInvoke 
30632             on MS runtime
30633         * XplatUIX11.cs:
30634           - Added some conditional debug output
30635           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
30636             whole/client window split
30637           - Implemented handling of client argument to PaintEventStart()/End()
30638         * Control.cs:
30639           - Throw exception if BeginInvoke() is called and the window handle
30640             or one of the window's parent handles is not created
30641           - Added conditional compile to allow using MWF BeginInvoke on
30642             MS runtime
30643           - get_Parent(): Only sets parent if handle is created. This avoids
30644             forcing window handle creation when parent is set.
30645           - Now fires Layout and Parent changed events in proper order
30646           - Switched to use Handle instead of window.Handle for Z-Order setting,
30647             the get_Parent() patch above causes us to possibly get null for 'window'
30648           - Implemented handling of client argument to PaintEventStart()/End()
30649           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30650             default handling)
30651           - Now sends a Refresh() to all child windows when Refresh() is called
30652
30653 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
30654
30655         * Form.cs: Added (non-functional) Opacity property
30656         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30657
30658 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
30659         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30660           use export MONO_THEME=nice to activate it.
30661           Currently supported controls:
30662           - Button
30663           - ComboBox
30664           - ScrollBar
30665           - TabControl (TabAlignment.Top only, other will follow)
30666         * ThemeEngine.cs: Add theme nice
30667         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30668           if enabled
30669
30670 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
30671
30672         * Splitter.cs: Resize docked control and its neighbor.
30673
30674 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30675         -- Making Windows with Menus layout correctly --
30676         * Form.cs : The first leg of the fix
30677                 Menu setter - adjust Client Size as needed to make space for the menu
30678                 SetClientSizeCore - doesn't call base version to be able to pass the 
30679                         menu handle to XplatUI.CalculateWindowRect
30680         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30681         * XplatUIX11.cs: The critical second leg of the fix
30682                 GetWindowPos needs to use a recalculated client_rect
30683                 so that resizing the window doesn't break layout of child controls. 
30684                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30685                 Lots of \t\n killed
30686
30687 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
30688
30689         * Label.cs: Now properly recalculates width and height on Font and Text
30690           changes if AutoSize is set
30691
30692 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
30693         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30694
30695 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
30696
30697         * ImageList.cs: Makes ToString method compatible with MS
30698
30699 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
30700
30701         * MenuAPI.cs: fixes bug 75716
30702
30703 2005-08-11 Umadevi S <sumadevi@novell.com>
30704         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30705
30706 2005-08-11 Umadevi S <sumadevi@novell.com>
30707         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30708
30709 2005-08-10  Umadevi S <sumadevi@novell.com>
30710         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30711
30712 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
30713
30714         * Menu.cs: fixes bug 75700
30715         * MenuAPI.cs: fixes navigation issues
30716
30717 2005-08-09  Umadevi S <sumadevi@novell.com>
30718         * CheckedListBox.cs - simple fix for GetItemChecked.
30719
30720 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
30721
30722         * ComboBox.cs: Serveral fixes
30723         * ListBox.cs: Serveral fixes
30724
30725 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
30726
30727         * ComboBox.cs: Fixes FindString methods and GetItemHeight
30728         * ListBox.cs: Fixes FindString methods
30729
30730 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
30731
30732         * DataGrid.cs: fixes bugs exposed by new tests
30733
30734 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
30735
30736         * Mime.cs: Compile Mono assembly references only if compiling
30737           with Mono (Allows to build with VS.Net again)
30738
30739 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
30740
30741         * Control.cs (PaintControlBackground): Draw background image
30742         corrrectly.
30743         (CheckForIllegalCrossThreadCalls): Stubbed.
30744         
30745         * Form.cs (OnCreateControl): Center when should be centered.
30746         
30747         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
30748
30749 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
30750
30751         * Binding.cs: Binding to properties should be case unsensitive
30752
30753 2005-07-18 vlindos@nucleusys.com
30754
30755         * DataGrid.cs: fixes setmember order
30756
30757 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
30758
30759         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
30760         * FileDialog.cs: FileDialog is now resizable and uses the new
30761           MimeIconEngine
30762
30763 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
30764
30765         * DataGridTextBoxColumn.cs: default value
30766         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
30767         * GridTableStylesCollection.cs: fixes checking MappingName
30768         * DataGridDrawingLogic.cs: fixes drawing logic issues
30769         * DataSourceHelper.cs: rewritten to make compatible with more data sources
30770         * DataGrid.cs: fixes    
30771
30772 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
30773
30774         * MimeGenerated.cs: Use case sensitive comparer for
30775           NameValueCollections
30776
30777 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
30778
30779         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
30780         * ThemeWin32Classic.cs: bug fixes, code refactoring
30781         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
30782         * DataGrid.cs: bug fixes, code refactoring
30783         * DataGridTextBox.cs: bug fixes, code refactoring
30784         * DataGridColumnStyle.cs:  bug fixes, code refactoring
30785         * Theme.cs:  bug fixes, code refactoring
30786
30787 2005-07-01  Peter Bartok  <pbartok@novell.com> 
30788
30789         * TextControl.cs: Quick fix for the reported crash on ColorDialog
30790           and other text box usage
30791
30792 2005-07-01  Jackson Harper  <jackson@ximian.com>
30793
30794         * TabControl.cs: Make sure the bottom of the tab covers the pages
30795         border.
30796
30797 2005-06-30  Peter Bartok  <pbartok@novell.com> 
30798
30799         * Form.cs (ShowDialog): Assign owner of the dialog
30800         * TextBoxBase.cs: Always refresh caret size when deleting, caret
30801           might have been moved to a tag with different height
30802
30803 2005-06-30  Jackson Harper  <jackson@ximian.com>
30804
30805         * Form.cs: Don't create an infinite loop when setting focus
30806         * MenuItem.cs: Don't dirty the parents if we don't have any
30807
30808 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
30809
30810         * LibSupport.cs: Rename
30811
30812 2005-06-29  Peter Bartok  <pbartok@novell.com>
30813
30814         * TextBoxBase.cs: Re-align caret after deleting a character
30815         * TextControl.cs:
30816           - DeleteChars(): Ensure that tag covers the provided position
30817           - StreamLine(): Drop reference for dropped tag
30818
30819 2005-06-29  Peter Bartok  <pbartok@novell.com> 
30820
30821         * TextControl.cs: 
30822           - Selections now work properly, anchoring at the initial location
30823             and properly extending in either direction (SetSelectionToCaret(),
30824             SetSelectionStart() and SetSelectionEnd())
30825           - No longer redraws the whole control on selection change, now
30826             calculates delta between previous and new selection and only
30827             invalidates/redraws that area
30828           - Fixed FindPos() math off-by-one errors
30829           - Changed DeleteChars() to verify the provided tag covers the
30830             provided position, selections may have a tag that doesn't cover
30831             the position if the selection is at a tag border
30832           - Fixed off-by-one errors in DeleteChars()
30833           - Added missing streamlining check in DeleteChars() to remove
30834             zero-length tags
30835           - Implemented Invalidate() method, now properly calculates exposures
30836             between two given lines/positions
30837           - Implemented SetSelection()
30838           - Obsoleted and removed FixupSelection()
30839           - Improved RecalculateDocument() logic, removing code duplication
30840
30841 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30842
30843         * LibSupport.cs: changes to match different input/output arguments.
30844
30845 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30846
30847         * LibSupport.cs: added libsupport.so init routine.
30848
30849 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
30850         
30851         * ControlBindingsCollection.cs
30852                 - Throws an exception on null datasource when adding
30853                 - Checks for duplicated bindings when adding
30854
30855 2005-06-28  Jackson Harper  <jackson@ximian.com>
30856
30857         * TreeView.cs (OnKeyDown): Support left and right properly
30858         (navigates as well as expanding and collapsing.
30859         - Add support for Multiply, this expands all the selected nodes
30860         children.
30861         - Fix some tabbing.
30862
30863 2005-06-28  Jackson Harper  <jackson@ximian.com>
30864
30865         * TreeView.cs: Implement keyboard navigation, currently supports,
30866         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
30867         support for toggling checkboxes with the space bar.
30868
30869 2005-06-28  Jackson Harper  <jackson@ximian.com>
30870
30871         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
30872         tree.
30873
30874 2005-06-28  Jackson Harper  <jackson@ximian.com>
30875
30876         * TreeView.cs: Add missing event.
30877
30878 2005-06-27  Peter Bartok  <pbartok@novell.com> 
30879
30880         * TextControl.cs:
30881           - Made line ending size configurable (now allows for counting 
30882             lineendings as \n or \r\n)
30883           - Added margin to viewport to keep caret visible on right side
30884           - Fixed translation routines for line/pos to documentpos to consider
30885             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
30886           - Fixed some line-endings to be unix style
30887           - Fixed Document.FormatText to perform it's calculations 1-based
30888           - Added descriptions for a few methods that might otherwise get 
30889             used wrong
30890           - Added NOTE section with some basic conventions to remember at 
30891             the top of the file
30892           - Major fixup for RichTextBox selection drawing:
30893             * Fixed crashes when multiple tags on a single line were selected
30894             * fixed selection box drawing not overlaying text
30895             * fixed bogus offset calculation for tags not starting at index 1
30896             * Switched behaviour from using multiple Substrings of a 
30897               StringBuilder.ToString() to using multiple 
30898               StringBuilder.ToString(start, length) statements, hoping this is
30899               faster (kept original version commented out in the code, in case
30900               original version was faster)
30901         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
30902           alignment != Left
30903         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
30904           call it as well
30905
30906 2005-06-27  Jackson Harper  <jackson@ximian.com>
30907
30908         * TabControl.cs: Move to the left and right with the arrow
30909         keys. These keys don't cycle beyond first and last like
30910         tab. Refresh all the tabs when scrolling them to the left or
30911         right.
30912
30913 2005-06-27  Jackson Harper  <jackson@ximian.com>
30914
30915         * TabControl.cs:
30916           - ToString: Added method
30917           - CreateParams: Remove TODO and comment
30918           - OnKeyDown: Cycle through bounds properly.
30919           - SelectedIndex: Scroll to the right or left if we need to
30920           display the newly selected tab.
30921
30922 2005-06-23  Jackson Harper  <jackson@ximian.com>
30923
30924         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
30925         set.
30926
30927 2005-06-23  Jackson Harper  <jackson@ximian.com>
30928
30929         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
30930         CTRL-SHIFT-TAB, and HOME, END are there any others?
30931
30932 2005-06-23  Jackson Harper  <jackson@ximian.com>
30933
30934         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30935
30936 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30937         
30938         * DataGridTextBoxColumn.cs: fixes and enhancements
30939         * ThemeWin32Classic.cs: fixes and enhancements
30940         * DataGridBoolColumn.cs:  fixes and enhancements
30941         * DataGridDrawingLogic.cs:  fixes and enhancements
30942         * CurrencyManager.cs: fixes and enhancements
30943         * DataGrid.cs: fixes and enhancements
30944         * DataGridColumnStyle.cs:  fixes and enhancements
30945
30946 2005-06-22  Jackson Harper  <jackson@ximian.com>
30947
30948         * TabControl.cs: Add some missing methods that just call into the
30949         base. Make the TabPageCollection's IList interface behave in the
30950         same manner as the MS implementation.
30951
30952 2005-06-22  Peter Bartok  <pbartok@novell.com> 
30953
30954         * TextControl.cs: Added sanity check
30955         * TextBoxBase.cs: 
30956           - Fixed wrapping behaviour, don't set wrap on single line controls
30957             (this fixes the breakage of colordialog introduced in an earlier
30958              checkin)
30959           - Added rudimentary support for autoscrolling right-aligned controls
30960             (still needs fixing, also, center alignment scroll is missing)
30961
30962 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
30963         
30964         * ScrollBar.cs: Fixes thumbpos on Maximum values
30965
30966 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
30967         
30968         * PropertyGridView.cs: Pass context information to UITypeEditors 
30969
30970 2005-06-21  Peter Bartok  <pbartok@novell.com> 
30971
30972         * TextBoxBase.cs:
30973           - Now calling PositionCaret with absolute space coordinates
30974           - Enabled vertical scrolling
30975           - Better tracking of scrollbar changes, tied into WidthChange
30976             event
30977           - Improved cursor tracking
30978           - Removed debug output
30979         * TextControl.cs:
30980           - PositionCaret coordinates are now works in absolute space, not 
30981             the canvas
30982           - Improved tracking of document size
30983           - Added events for width and height changes
30984
30985 2005-06-21  Peter Bartok  <pbartok@novell.com>
30986
30987         * Form.cs: Set focus to active control when form is activated
30988         * TextControl.cs: 
30989           - Added word-wrap functionality to RecalculateLine() 
30990           - Added some short function descriptions for VS.Net to aid in
30991             writing dependent controls
30992           - Added Caret property, returning the current coords of the caret
30993           - Added ViewPortWidth and ViewPortHeight properties
30994           - Added Wrap property
30995           - Added CaretMoved event
30996           - Removed some old debug code
30997           - Split() can now create soft splits
30998           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30999           - Added method to format existing text
31000           - Fixed size/alignment calculations to use viewport
31001           - RecalculateDocument now can handle changing line-numbers while
31002             calculating lines
31003
31004         * TextBox.cs:
31005           - Added some wrap logic, we don't wrap if alignment is not left
31006           - Added casts for scrollbar var, base class switched types to
31007             also support RichTextBoxA
31008           - Implemented handling of scrollbar visibility flags
31009
31010         * TextBoxBase.cs:
31011           - Switched scrollbars type to RichTextBoxScrollBars to support
31012             RichTextBox
31013           - Added tracking of canvas width/height
31014           - Switched scrollbars to be not selectable (to keep focus on text)
31015           - Added central CalculateDocument() method to handle all redraw
31016             requirements
31017           - Added ReadOnly support
31018           - Added WordWrap support
31019           - Fixed handling of Enter key (we now treat it as a DialogKey)
31020           - Fixed caret positioning when h or v scroll is not zero
31021           - Fixed placing/generation of vertical scrollbar
31022           - Added CalculateScrollBars() method to allow updating scrollbar
31023             limits and visibility
31024           - Fixed handling of horizontal scroll
31025           - Added handling of vertical scroll
31026           - Implemented auto-'jump' when caret moves to close to a left or
31027             right border and there is text to be scrolled into view (currently
31028             there's the potential for a stack overflow, until a bug in
31029             scrollbar is fixed)
31030
31031 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
31032         
31033         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
31034
31035 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
31036
31037         * Mime.cs:
31038         - added inodes.
31039         - return application/x-zerosize for files with size zero
31040           (if no extension pattern matches).
31041         - check matches collection for strings too.
31042         - return only the first mime type if the name value
31043           collection has more than one mime type.
31044
31045 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
31046         
31047         * PropertyGrid.cs: Cleaned up some TODOs
31048         * PropertyGridView.cs: Added support for UITypeEditors
31049
31050 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31051         
31052         * DataGrid.cs: clears cached value
31053
31054 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
31055
31056         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
31057         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
31058         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
31059         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
31060         
31061 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
31062
31063         * ThemeWin32Classic.cs: fixes colour
31064
31065 2005-06-15  Peter Bartok  <pbartok@novell.com>
31066
31067         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
31068         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
31069         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
31070         * Control.cs: Added some MWFCategory and MWFDescription attributes
31071         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
31072
31073 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
31074
31075         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
31076         usage
31077
31078 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
31079
31080         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
31081         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
31082         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
31083         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
31084         * DataGrid.cs: default datagrid settings for Default Styles, fixes
31085         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
31086
31087 2005-06-13  Jackson Harper  <jackson@ximian.com>
31088
31089         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
31090         isn't printed when the user enables dropping. (X11 does accept
31091         drops).
31092         
31093 2005-06-13  Jackson Harper  <jackson@ximian.com>
31094
31095         * TreeView.cs: Remove some TODOS.
31096
31097 2005-06-13  Jackson Harper  <jackson@ximian.com>
31098
31099         * Form.cs: Hook into the mdi framework.
31100         * MdiClient.cs: Use the base control collections add method so
31101         parents get setup correctly. Set the default back colour and dock
31102         style.
31103         * MdiChildContext.cs: New class, this bad actor handles an
31104         instance of an MDI window. Right now there is only basic
31105         support. You can drag, close, and resize windows. Minimize and
31106         Maximize are partially implemented.
31107
31108 2005-06-13  Jackson Harper  <jackson@ximian.com>
31109
31110         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
31111         freaky when both vals are negative. NOTE: There are probably other
31112         places in XplatUIX11 that this needs to be done.
31113
31114 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
31115
31116         * DataGrid.cs: implement missing methods, move KeyboardNavigation
31117         * DataGridColumnStyle.cs: fixes signature
31118
31119 2005-06-12  Jackson Harper  <jackson@ximian.com>
31120
31121         * XplatUIX11.cs: Use sizing cursors similar to the ones on
31122         windows.
31123
31124 2005-06-11  Jackson Harper  <jackson@ximian.com>
31125
31126         * StatusBarPanel.cs: Signature cleanups. Implement
31127         BeginInit/EndInit.
31128
31129 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
31130
31131         * DataGridTextBoxColumn.cs: Honors aligment
31132         * GridColumnStylesCollection.cs: Contains is case unsensitive
31133         * GridTableStylesCollection.cs: several fixes
31134         * DataGridTableStyle.cs: default column creation
31135         * DataGridDrawingLogic.cs: fixes
31136         * CurrencyManager.cs: ListName property
31137         * DataGrid.cs: multiple styles support
31138         * DataGridColumnStyle.cs: fixes
31139         
31140
31141 2005-06-10  Peter Bartok  <pbartok@novell.com>
31142
31143         * Control.cs(Select): Moved SetFocus call to avoid potential
31144           loops if controls change the active control when getting focus
31145         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
31146           the up/down buttons
31147
31148 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
31149
31150         * ImageListConverter.cs: Implemented
31151
31152 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31153
31154         * MonthCalendar.cs: Wired in NumericUpDown control for year
31155
31156 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
31157
31158         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
31159           DoubleClick events, since they are not meant to be fired.
31160
31161 2005-06-09  Peter Bartok  <pbartok@novell.com>
31162
31163         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
31164           Jonathan's standalone controls into MWF, implemented missing
31165           events, attributes and methods; added xxxAccessible classes
31166         * AccessibleObject.cs: Made fields internal so other classes
31167           can change them if needed
31168
31169 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
31170
31171         * UpDownBase.cs: Complete implementation
31172         * NumericUpDown.cs: Complete implementation
31173         * DomainUpDown.cs: Complete implementation
31174
31175 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
31176
31177         * DataGridTextBoxColumn.cs: drawing fixes
31178         * DataGridCell.cs: fixes ToString method to match MSNet
31179         * DataGridTableStyle.cs: fixes
31180         * DataGridBoolColumn.cs: fixes, drawing
31181         * DataGridDrawingLogic.cs: fixes, new methods
31182         * DataGridTextBox.cs: Keyboard and fixes
31183         * DataGrid.cs:
31184                 - Keyboard navigation
31185                 - Scrolling fixes
31186                 - Row selection (single, multiple, deletion, etc)
31187                 - Lots of fixes
31188         
31189 2005-06-07  Jackson Harper  <jackson@ximian.com>
31190
31191         * ThemeWin32Classic.cs: Clear the background area when drawing
31192         buttons.
31193
31194 2005-06-06  Peter Bartok  <pbartok@novell.com>
31195
31196         * ImageListStreamer.cs: Fixed signature for GetData
31197         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
31198         * ComboBox.cs:
31199           - Added missing ChildAccessibleObject class
31200           - Added missing OnXXXFocus overrides, switched to using those
31201             instead of the event handler
31202         * Control.cs:
31203           - Added Parent property for ControlAccessibleObject
31204           - Fixed signatures
31205           - Fixed attributes
31206           - Added ResetBindings()
31207         * ListBindingConverter.cs: Implemented some methods
31208         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
31209         * ImageList.cs: Implemented basic handle scheme, removed TODOs
31210         * ContainerControl.cs: Fixed signature, now subscribing to the
31211           ControlRemoved event instead of overriding the handler, LAMESPEC
31212         * CurrencyManager.cs: Added missing attribute
31213         * MonthCalendar.cs: Added missing properties
31214
31215 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31216
31217         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
31218         
31219 2005-06-06  Gaurav Vaish and Ankit Jain
31220
31221         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
31222         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
31223         
31224 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
31225
31226         * Control.cs: fixes CreateParams Width / Height.
31227
31228 2005-06-05  Peter Bartok  <pbartok@novell.com>
31229
31230         * Win32DnD.cs: Removed compilation warnings
31231
31232 2005-06-05  Peter Bartok  <pbartok@novell.com>
31233
31234         * Control.cs (CreateParams): Since we don't know if one of the
31235           properties we use is overridden, lets make sure if we fail accessing
31236           we continue with a backup plan
31237
31238 2005-06-05  Peter Bartok  <pbartok@novell.com>
31239
31240         * Win32DnD.cs:
31241           - Removed debug output
31242           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
31243             struct
31244           - Plugged resource leak
31245         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
31246           MS size
31247
31248 2005-06-05  Peter Bartok  <pbartok@novell.com>
31249
31250         * XplatUIWin32.cs: Removed DnD code
31251         * Win32DnD.cs: Implemented drop source and drop target functionality
31252
31253 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
31254
31255         * UpDownBase.cs: remove duplicate addition of event, enable some code
31256         that was commented out.
31257         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
31258         Validate input when a key is pressed. It works fine now for every
31259         combination of Hexadecimal. Only missing some drawing love when sharing
31260         space with other controls.
31261
31262 2005-06-04  Peter Bartok  <pbartok@novell.com>
31263
31264         * Control.cs:
31265           - We need to pass a window for DragDrop, so enable callback events
31266           - Added DnD callback events when being a DragSource
31267         * XplatUI.cs (StartDrag): Added window handle argument
31268         * XplatUIDriver.cs (StartDrag): Added window handle argument
31269         * QueryContinueDragEventArgs: Made fields internally accessible so
31270           drivers can set them
31271         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
31272           can set them
31273
31274 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
31275
31276         * DataGridTextBoxColumn.cs: column text editing
31277         * DataGridTableStyle.cs: Respect columns styles created by the user
31278         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
31279         * DataGridBoolColumn.cs: bool column editing
31280         * DataGrid.cs: fixes to scrolling, properties, etc
31281         * DataGridTextBox.cs: handle keyboard
31282         * DataGridColumnStyle.cs: fixes
31283
31284 2005-06-02  Jackson Harper  <jackson@ximian.com>
31285
31286         * ImageListStreamer.cs: Somewhat broken implementation of
31287         GetObjectData. The RLE needs some work to match MS properly.
31288
31289 2005-06-02  Jackson Harper  <jackson@ximian.com>
31290
31291         * X11Dnd.cs: Attempting to keep at least one file in MWF
31292         monostyled.
31293
31294 2005-06-02  Peter Bartok  <pbartok@novell.com>
31295
31296         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
31297           that way
31298
31299 2005-06-02  Peter Bartok  <pbartok@novell.com>
31300
31301         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
31302         * XplatUI.cs: Added DoDragDrop() method
31303         * XplatUIDriver.cs: Added DoDragDrop() method
31304
31305 2005-06-02  Jackson Harper  <jackson@ximian.com>
31306
31307         * Splitter.cs: Implement BorderStyle.
31308
31309 2005-06-02  Jackson Harper  <jackson@ximian.com>
31310
31311         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
31312         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
31313         X11 using XDND.
31314
31315 2005-06-02  Peter Bartok  <pbartok@novell.com>
31316
31317         * DataObject.cs:
31318           - Added Data setter
31319           - Fixed broken insertion code for SetData, now also
31320             overwrites any existing entry of the same format name
31321         * Hwnd.cs: Added list of pointers that automatically gets
31322           freed when the window is disposed
31323         * XplatUI.cs: Call driver initialization method when loading
31324           a driver
31325         * Control.cs:
31326           - OnDragLeave takes EventArgs, not DragEventArgs
31327           - Added setting of WS_EX_ACCEPTFILES style when dropping is
31328             supported
31329           - Forces style update when drop state changes
31330         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
31331           not perfect since we cannot (yet) call the IDataObject.GetData()
31332           method, we keep getting 0x80004005 error, dunno why)
31333
31334 2005-06-02  Peter Bartok  <pbartok@novell.com>
31335
31336         * DragEventArgs.cs: Make fields internal so we can cache the
31337           object and re-set the fields from XplatUI
31338
31339 2005-06-02  Jackson Harper  <jackson@ximian.com>
31340
31341         * Control.cs: Add some internal methods so the DnD subsystem can
31342         raise DnD events. Also call into the driver when AllowDrop is set.
31343         * XplatUI.cs:
31344         * XplatUIDriver.cs: New method for setting whether or not a window
31345         is allowed to accept drag and drop messages.
31346                 
31347 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
31348         
31349         * ScrollBar.cs: Make sure that values sent in Scroll events
31350         are always between Maximum and Minimum.
31351
31352 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
31353
31354         * Menu.cs: Call MenuChanged when menuitem visibility has been
31355         changed.
31356         * MenuItem.cs: Rebuild menu when item is (not) visible.
31357         * MainMenu.cs: MainMenu has special MenuChanged.
31358         * Theme.cs: Caption and FrameBorderSize are not fixed.
31359         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
31360         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
31361         * XplatUIX11.cs,
31362         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
31363         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
31364
31365 2005-05-30  Jackson Harper  <jackson@ximian.com>
31366
31367         * DataFormat.cs: We can't statically initialize this stuff because
31368         it calls into the xplatui and could create a loop. So we lazy init
31369         it.
31370
31371 2005-05-28  Jackson Harper  <jackson@ximian.com>
31372
31373         * Control.cs: Proper implementation of Product(Name/Version).
31374
31375 2005-05-27  Jackson Harper  <jackson@ximian.com>
31376
31377         * DataObject.cs: Dont crash if no data is found.
31378
31379 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
31380         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
31381                 as per status page, guessing it should be set to true
31382
31383 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
31384
31385         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
31386         * DataGridTableStyle.cs: set proper formatting text, def header text
31387         * ThemeWin32Classic.cs: new themable paramaters
31388         * DataGridBoolColumn.cs: paint check box, get data, fixes
31389         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
31390         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
31391         * DataGridColumnStyle.cs: fixes
31392         * Theme.cs: new themable paramaters
31393                 
31394 2005-05-26  Peter Bartok  <pbartok@novell.com>
31395
31396         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
31397
31398 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31399         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
31400
31401 2005-05-24  Peter Bartok  <pbartok@novell.com>
31402
31403         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
31404           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
31405           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
31406           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
31407           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
31408           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
31409           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
31410           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
31411           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
31412           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
31413           missing attributes, etc
31414         * DataGridPreferredColumnWidthTypeConverter.cs: Added
31415
31416 2005-05-24  Peter Bartok  <pbartok@novell.com>
31417
31418         * Help.cs: Added, implemented trivial functions, throws up MessageBox
31419           when user tries to get help
31420         * DataObject.cs, DataFormats.cs, LinkArea.cs,
31421           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
31422           to suppress warnings
31423         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
31424           avoid unreachable code warning
31425
31426 2005-05-20  Peter Bartok  <pbartok@novell.com>
31427
31428         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
31429
31430 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31431
31432         * DataGridTextBoxColumn.cs: Basic painting methods
31433         * DataGridTableStyle.cs: Set table style in the column
31434         * ThemeWin32Classic.cs: Use Theme for colors
31435         * DataGridDrawingLogic.cs: Implement more drawing
31436         * DataGrid.cs: drawing, theming, enhacements, fixes
31437         * DataGridColumnStyle.cs: fixes, drawing
31438         * Theme.cs: theming for Datagrid
31439
31440 2005-05-20  Peter Bartok  <pbartok@novell.com>
31441
31442         * Cursor.cs: Implemented GetObjectData() method
31443
31444 2005-05-20  Peter Bartok  <pbartok@novell.com>
31445
31446         * Cursors.cs: Added setting of cursor name
31447         * Cursor.cs:
31448           - Implemented constructors
31449           - Implemented Draw and DrawStretched
31450           - Implemented Current property
31451           - Implemented == and != operators
31452           - Implemented Dispose()
31453           - Implemented ToString
31454           - Added missing attributes
31455         * XplatUIX11.cs:
31456           - Added missing reset for OverrideCursor when DoEvents is called
31457           - Fixed creation of cursor, logic was wrong
31458         * XplatUIWin32.cs:
31459           - Added missing reset for OverrideCursor when DoEvents is called
31460           - Fixed creation of cursor, bit arrays were swapped
31461         * Clipboard.cs: Removed obsolete MonoTODO attribute
31462
31463 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31464
31465         * ComboBox.cs: fixes OnSelectedItemChanged
31466         * ControlBindingsCollection.cs: fixes item range check
31467
31468 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
31469
31470         * UpDownBase.cs:
31471                 - Calc preferred height properly
31472                 - Implement missing properties
31473                 
31474         * NumericUpDown.cs: Implement missing events
31475
31476 2005-05-19  Jackson Harper  <jackson@ximian.com>
31477
31478         * TabControl.cs: New method that resizes the tab pages before
31479         redrawing them. This as needed as the control is double buffered
31480         and sizing will not be recalculated unless ResizeTabPages is
31481         called.
31482         * TabPage.cs: Set base.Text instead of Text in the constructor so
31483         that UpdateOwner does not get called. Use the new Redraw method of
31484         TabControl instead of Refresh so the sizing is recalculated.
31485         * ThemeWin32Classic.cs: Draw the text for button tabs.
31486
31487 2005-05-19  Jackson Harper  <jackson@ximian.com>
31488
31489         * Control.cs: Paint control background images. Fix typo where
31490         PaintControlBackground was not getting called correctly.
31491
31492 2005-05-19  Peter Bartok  <pbartok@novell.com>
31493
31494         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
31495           I can investigate, apparently I broke FileDialog
31496
31497 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
31498
31499         * AxHost.cs: Some simple properties.
31500         * Control.cs: window must be accessible after ctor.
31501         * Form.cs: Added TransparencyKey property.
31502         * TextBoxBase.cs: Implemented Clear. Text property can be null.
31503         * XplatUIWin32.cs: SetBorderStyle implemented.
31504
31505 2005-05-18  Peter Bartok  <pbartok@novell.com>
31506
31507         * DataObject.cs: Entries are not global but particular to the
31508           DataObject, now it behaves that way
31509         * XplatUIWin32.cs: Implemented Clipboard methods
31510         * Clipboard.cs: Implemented
31511         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
31512         * XplatUIOSX.cs: Updated to final clipboard prototypes
31513         * XplatUIX11.cs: Implemented Clipboard methods
31514         * XplatUIDriver.cs: Updated to final clipboard prototypes
31515         * XplatUIStructs.cs:
31516           - Added BITMAPINFOHEADER struct
31517           - Added ClipboardFormats enum
31518         * X11Structs.cs:
31519           - Added ClipboardStruct
31520           - Added Atom enum items for clipboard types
31521           - Fixed atom types for Selection event structures
31522         * DataFormats.cs:
31523           - Added internal properties and methods for drivers to enumerate
31524             all known formats
31525           - Switched initialization method to allow drivers to assign their
31526             own IDs even for the MS predefined clipboard IDs
31527         * XplatUI.cs: Updated to final clipboard interface
31528
31529 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31530         * PropertyGridView.cs: Fixed compiler warnings.
31531
31532 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
31533         * PropertyGrid.cs: Added some event calls
31534         * PropertyGridView.cs: Change drawing code to use double buffering
31535         * PropertyGridTextBox.cs: Changed Text property name
31536         * GridItem.cs: Added Bounds property.
31537         * GridEntry.cs: Added Bounds property.
31538
31539 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
31540
31541         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
31542         since GetType() may not return the correct type if the object is
31543         a remoting proxy.
31544
31545 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
31546
31547         * TreeNodeCollection.cs: fixes get/set item ranges
31548         
31549 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
31550
31551         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
31552                 
31553 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
31554
31555         * ComboBox.cs: Fix item range comparation
31556         * ListView.cs: Fix item range comparation
31557
31558 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
31559
31560         * FontDialog.cs:
31561           - Clear example panel when OnPaint is called
31562           - Better solution for displaying the example panel text
31563           - Select default indexes in the ListBoxes
31564
31565 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
31566
31567         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
31568
31569 2005-05-11  Peter Bartok  <pbartok@novell.com>
31570
31571         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
31572         * SelectionRangeConverter.cs: Implemented
31573         * PropertyGrid.cs: Fixed attribute value
31574         * Control.cs:
31575           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
31576           - Added Sebastien Pouliot's CAS Stack Propagation fixes
31577         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
31578           that's common to all drivers. First methods to go there are
31579           Sebastien Pouliot's CAS Stack Propagation helper methods
31580         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
31581           Sebastien Pouliot for CAS Stack Propagation
31582
31583 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
31584
31585         * OSXStructs.cs:
31586           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
31587
31588 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
31589
31590         * DataGridTextBoxColumn.cs: fixed some members
31591         * GridColumnStylesCollection.cs: indexed column is case insensitive
31592         * DataGridTableStyle.cs: fixes
31593         * ThemeWin32Classic.cs: add new theme parameter
31594         * Theme.cs: add new theme parameter
31595         * DataGridDrawingLogic.cs: Datagrid's drawing logic
31596         * DataGrid.cs: fixes, new internal properties, etc.
31597         * DataGridColumnStyle.cs: allows to set grid value
31598         *
31599
31600 2005-05-10  Peter Bartok  <pbartok@novell.com>
31601
31602         * AccessibleObject.cs:
31603           - Removed MonoTODO attribute on help, method is correct
31604           - Fixed Bounds property
31605         * AxHost.cs: Moved MonoTODO
31606         * ButtonBase.cs: Now setting AccessibleObject properties
31607         * RadioButton.cs: Setting proper AccessibleObject role
31608         * CheckBox.cs: Setting proper AccessibleObject role
31609         * ControlBindingsCollection.cs: Added properties, methods and attributes
31610         * DataFormats.cs: Fixed awkward internal API, and changed to enable
31611           userdefined DataFormats.Format items as well
31612         * ListControl.cs: Removed data_member from the public eye
31613         * OpenFileDialog.cs:
31614           - Made class sealed
31615           - Added missing attributes
31616         * SaveFileDialog.cs: Added missing attributes
31617         * ImageListStreamer.cs: Fixed code that caused warnings
31618         * LinkLabel.cs: Removed unreachable code
31619         * TreeView.cs: Fixed code that caused warnings
31620         * PropertyGridView.cs: Fixed code that caused warnings
31621         * GridColumnStylesCollection.cs: Added missing attributes
31622         * GridTableStylesCollection: Added missing attribute
31623         * PropertyManager: Added .ctor
31624         * SecurityIDType: Added
31625         * DataObject.cs: Implemented class
31626         * LinkArea.cs: Added missing attribute
31627
31628 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
31629
31630         * RadioButton.cs: call base method to allow to fire OnClick event
31631         * UpDownBase.cs: OnMouseUp call base method
31632         * CheckedListBox.cs: call base method before returning
31633         * TrackBar.cs: call base method before returning
31634         
31635
31636 2005-05-10  Peter Bartok  <pbartok@novell.com>
31637
31638         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
31639           for messages
31640
31641 2005-05-10  Peter Bartok  <pbartok@novell.com>
31642
31643         * DataFormats.cs: Implemented
31644         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
31645           XplatUIX11.cs: Added Clipboard APIs
31646         * XplatUIWin32.cs: Implemented Clipboard APIs
31647         * FolderBrowserDialog.cs: Added missing event, attributes
31648
31649 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
31650
31651         * CheckBox.cs: call base method to allow to fire OnClick event
31652
31653 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
31654
31655         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31656
31657 2005-05-06  Peter Bartok  <pbartok@novell.com>
31658
31659         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31660         * Screen.cs: Implemented
31661         * HelpNavigator.cs: Added
31662         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31663           property
31664         * HelpProvider.cs: Implemented all we can do until we have a CHM
31665           help library (which means that "What's This" does work now)
31666
31667 2005-05-06  Jackson Harper  <jackson@ximian.com>
31668
31669         * XplatUIX11.cs: Fix waking up the main loop.
31670                 
31671 2005-05-05  Peter Bartok  <pbartok@novell.com>
31672
31673         * XplatUI.cs: Updated revision
31674         * Form.cs: Removed enless loop
31675         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31676         * Label.cs (OnPaint): Added call to base.OnPaint()
31677         * ToolTip.cs: Made ToolTipWindow reusable for other controls
31678         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31679         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31680         * AxHost.cs: Added
31681         * ButtonBase.cs: Moved base.OnPaint() call to end of method
31682         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31683           to ToolTip.ToolTipWindow for drawing and size methods; this allows
31684           reuse of ToolTipWindow by other controls
31685         * SizeGrip.cs: Moved base.OnPaint() call to end of method
31686         * XplatUIX11.cs: Now clipping drawing area (experimental)
31687         * PictureBox.cs: Moved base.OnPaint() call to end of method
31688         * Theme.cs: Fixed ToolTip abstracts to match new format
31689         * ErrorProvider.cs: Implemented
31690
31691 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
31692
31693         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31694         * LinkLabel.cs:
31695                 - Adds cursors
31696                 - Handles focus
31697                 - Implements LinkBehavior
31698                 - Fixes many issues
31699
31700 2005-05-03  Jackson Harper  <jackson@ximian.com>
31701
31702         * ListView.cs: Calculate the scrollbar positioning on resize and
31703         paint, so they get put in the correct place.
31704
31705 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
31706
31707         * ColorDialogs.cs: The small color panels are now handled by
31708           SmallColorControl. This fixes drawing of the focus rectangle
31709           and adds a 3D border.
31710
31711 2005-05-03  Peter Bartok  <pbartok@novell.com>
31712
31713         * Control.cs: Modified version of Jonathan Chamber's fix for
31714           double-buffering
31715
31716 2005-05-03  Jackson Harper  <jackson@ximian.com>
31717
31718         * ListView.cs: Remove redraw variable. Control now handles whether
31719         or not a redraw needs to be done, and will only raise the paint
31720         event if redrawing is needed.
31721
31722 2005-05-03  Jackson Harper  <jackson@ximian.com>
31723
31724         * Splitter.cs: No decorations for the splitter form. Cache the
31725         hatch brush.
31726
31727 2005-05-03  Jackson Harper  <jackson@ximian.com>
31728
31729         * TreeView.cs: Use dashed lines to connect nodes. Use the
31730         ControlPaint method for drawing the focus rect instead of doing
31731         that in treeview.
31732
31733 2005-05-02  Peter Bartok  <pbartok@novell.com>
31734
31735         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
31736
31737 2005-04-29  Jackson Harper  <jackson@ximian.com>
31738
31739         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
31740         entire image buffer. Just clear the clipping rectangle.
31741
31742 2005-04-29  Jackson Harper  <jackson@ximian.com>
31743
31744         * ThemeWin32Classic.cs: Don't draw list view items that are
31745         outside the clipping rectangle.
31746
31747 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
31748
31749         * ListBox.cs: added horizontal item scroll
31750
31751 2005-04-29  Jackson Harper  <jackson@ximian.com>
31752
31753         * ThemeWin32Classic.cs: Remove some old debug code that was
31754         causing flicker with the new double buffering code.
31755
31756 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
31757
31758         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
31759         behave like combobox and comboboxlist (still not sure if this is
31760         correct though).
31761
31762 2005-04-28  Jackson Harper  <jackson@ximian.com>
31763
31764         * ThemeWin32Classic.cs: Don't fill the middle of progress
31765         bars. This fills areas outside of the clip bounds that don't need
31766         to be filled.
31767
31768 2005-04-28  Jackson Harper  <jackson@ximian.com>
31769
31770         * Control.cs: Don't expose functionality to touch the image buffers.
31771         * ProgressBar.cs:
31772         * ListView.cs: We do not need to (and no longer can) manipulate
31773         the image buffers directly. All of this is handled by Control.
31774
31775 2005-04-28  Peter Bartok  <pbartok@novell.com>
31776
31777         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31778           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
31779           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
31780
31781 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
31782
31783         * Combobox:
31784                 - Adjust control's height for non-simple comboboxes (bug fix)
31785                 - Remove dead code
31786         * MenuAPI.cs: remove unused var
31787         * ScrollBar.cs: remove unsed var
31788                  
31789         * ListBox.cs: unselect items when clearing
31790
31791 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
31792
31793         * ListControl.cs: honors OnPositionChanged and default Selected Item
31794         * ListBox.cs: unselect items when clearing
31795
31796 2005-04-27  Jackson Harper  <jackson@ximian.com>
31797
31798         * X11Keyboard.cs: Initialize a default keyboard and give a warning
31799         if a "correct" keyboard is not found. This will make us not crash,
31800         but might give some users bad keyboard layouts...seems to be the
31801         same thing rewind does.
31802
31803 2005-04-27  Jackson Harper  <jackson@ximian.com>
31804
31805         * BindingManagerBase.cs: Attach the current/position changed
31806         handlers to their respective events.
31807
31808 2005-04-27  Jackson Harper  <jackson@ximian.com>
31809
31810         * Control.cs: Make sure that the first WM_PAINT does a full draw,
31811         not just a blit.
31812         * ThemeWin32Classic.cs: Don't fill the background for picture
31813         boxes. This could overright user drawing.
31814         * ComboBox.cs: Just fill the clipping rect not the entire client
31815         rect when drawing the background. This prevents pieces of the
31816         image buffer from getting overwritten and is theoretically faster.
31817
31818 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
31819
31820         * ComboBox.cs: Databinding support fixes, fire missing events
31821         * ListControl.cs: implement missing methods and properties, fixes
31822         * ThemeWin32Classic.cs: Databiding support on Drawing
31823         * CheckedListBox.cs: Databinding support fixes, fire missing events
31824         * ListBox.cs: Databinding support fixes, fire missing events
31825         
31826 2005-04-25  Peter Bartok  <pbartok@novell.com>
31827
31828         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
31829
31830 2005-04-25  Jackson Harper  <jackson@ximian.com>
31831
31832         * TreeView.cs: Use the horizontal scrollbars height not width when
31833         determining how much of the client area is available.
31834
31835 2005-04-25  Jackson Harper  <jackson@ximian.com>
31836
31837         * Control.cs: Double buffering is handled differently now. As per
31838         the spec, the extra buffer is created in the WM_PAINT message and
31839         passed down to the control's drawing code.
31840         * GroupBox.cs:
31841         * Label.cs:
31842         * CheckBox.cs:
31843         * ProgressBar.cs:
31844         * RadioButton.cs:
31845         * ColorDialog.cs:
31846         * ComboBox.cs:
31847         * PropertyGridView.cs:
31848         * UpDownBase.cs:
31849         * MessageBox.cs:
31850         * MenuAPI.cs:
31851         * ListView.cs:
31852         * ButtonBase.cs:
31853         * SizeGrip.cs:
31854         * ScrollBar.cs:
31855         * ListBox.cs:
31856         * TrackBar.cs:
31857         * ToolBar.cs:
31858         * PictureBox.cs:
31859         * DateTimePicker.cs:
31860         * StatusBar.cs:
31861         * TreeView.cs: Update to new double buffering system.
31862         * MonthCalendar.cs: Uncomment block, as Capture is now
31863         working. Update to new double buffering
31864         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
31865         * PaintEventArgs.cs: New internal method allows us to set the
31866         graphics object. This is used for double buffering.
31867         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
31868         rectangle. The internal paint_area var has been removed from
31869         StatusBar. The clipping rect should be used instead.
31870         * Theme.cs: Give the PictureBox drawing method a clipping rect.
31871         * TabPage.cs: The RefreshTabs method was removed, so just call the
31872         tab controls Refresh method now.
31873         * TabControl.cs: Update to new double buffering. Make sure the
31874         handle is created before sizing the tab pages, otherwise we will
31875         get stuck in a loop.
31876
31877 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
31878
31879         * LinkLabel.cs: Fix typo, bug #74719; patch
31880           from Borja Sanchez Zamorano
31881
31882 2005-04-22  Jackson Harper  <jackson@ximian.com>
31883
31884         * TreeNode.cs: Implement Handle stuff.
31885         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
31886
31887 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
31888
31889         * DataGridTextBoxColumn.cs: call base constructors, fixes
31890         * GridColumnStylesCollection.cs: missing events, methods, and functionality
31891         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
31892         * DataGridTableStyle.cs: implements create default column styles
31893         * DataGridBoolColumn.cs: which types can handle
31894         * DataGrid.cs: missing methods, fixes, new functionality
31895         * DataGridColumnStyle.cs: fixes
31896
31897 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
31898         * FolderBrowserDialog.cs:
31899         - Use a thread to fill the TreeView
31900         - Adjusted some sizes
31901
31902 2005-04-19  Peter Bartok  <pbartok@novell.com>
31903
31904         * LinkLabel.cs: (Re-)create the pieces when setting the Text
31905           property. Fixes #74360.
31906
31907 2005-04-19  Jackson Harper  <jackson@ximian.com>
31908
31909         * XEventQueue.cs: Lock when getting the lockqueue size.
31910         * PictureBox.cs: Call base OnPaint
31911         
31912 2005-04-19  Peter Bartok  <pbartok@novell.com>
31913
31914         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
31915           messages were no longer being processed (this broke BeginInvoke)
31916
31917           
31918 2005-04-18  Jackson Harper  <jackson@ximian.com>
31919
31920         * TreeView.cs: buglet that caused node images to get drawn
31921         regardless of whether or not they were in the clipping rectangle.
31922
31923 2005-04-18  Jackson Harper  <jackson@ximian.com>
31924
31925         * CurrencyManager.cs: There are four rules for GetItemProperties:
31926         - If the type is an array use the element type of the array
31927         - If the type is a typed list, use the type
31928         - If the list contains an Item property that is not an object, use
31929         that property
31930         - use the first element of the list if there are any elements in
31931         the list.
31932         
31933 2005-04-17  Jackson Harper  <jackson@ximian.oom>
31934
31935         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31936         click. This handles offsets for scrolling properly and reduces
31937         memory. Also fixed GetNode to not offset now that TopNode works
31938         properly.
31939         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31940         
31941 2005-04-17  Jackson Harper  <jackson@ximian.com>
31942
31943         * CursorConverter.cs: Initial implementation.
31944
31945 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31946
31947         * ListControl.cs: work towards complex data binding support on ListControl
31948         * CurrencyManager.cs: work towards complex data binding support on ListControl
31949         * ListBox.cs: work towards complex data binding support on ListControl
31950
31951
31952 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
31953
31954         * GridTableStylesCollection.cs: fixes name and constructor
31955         * DataGridTableStyle.cs: fixes
31956         * DataGridBoolColumn.cs: fixes names and constructors
31957         * DataGrid.cs: define methods and properties. Some init implementations
31958         * DataGridCell.cs: define methods and properties. Some init implementations
31959         * GridTablesFactory.cs: Define methods and properties
31960
31961 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
31962
31963         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
31964         graphics port changes.  We still want the coordinates in global screen
31965         coordinates.
31966
31967 2005-04-14  Jackson Harper  <jackson@ximian.com>
31968
31969         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31970         check plus minus or checkbox clicks unless those features are enabled.
31971
31972 2005-04-14  Jackson Harper  <jackson@ximian.com>
31973
31974         * TreeView.cs: Add methods for setting the top and bottom visible
31975         nodes. TreeNode::EnsureVisible uses these methods.
31976         * TreeNode.cs: Implement EnsureVisible
31977
31978 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
31979
31980         * Form.cs: Pospone menu assignation if the window has not been created yet
31981         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31982         size and position
31983
31984 2005-04-12  Jackson Harper  <jackson@ximian.com>
31985
31986         * TreeView.cs: Set the TopNode properly when scrolling
31987         occurs. This has the added benifit of reducing the amount of
31988         walking that needs to be done when drawing. Also removed an old
31989         misleading TODO.
31990         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31991         
31992 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
31993
31994         * Timer.cs: fixes interval setting when the timer is already enabled
31995         
31996 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
31997
31998         * FolderBrowserDialog.cs: First approach
31999
32000 2005-04-09  Peter Bartok  <pbartok@novell.com>
32001
32002         * FolderBrowserDialog: Added
32003
32004 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
32005
32006         * LinkLabel.cs: move drawing code into the theme
32007         * ThemeWin32Classic.cs: drawing code and painting background bugfix
32008         * Theme.cs: define DrawLinkLabel method
32009
32010 2005-04-05  Jackson Harper  <jackson@ximian.com>
32011
32012         * BindingContext.cs: Use weak references so these bad actors don't
32013         stay alive longer then they need to.
32014
32015 2005-04-05  Jackson Harper  <jackson@ximian.com>
32016
32017         * ListControl.cs: Basic implementation of complex databinding.
32018         * ComboBox.cs:
32019         * ListBox.cs: Add calls to ListControl databinding methods.
32020
32021 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
32022
32023         * FileDialog.cs:
32024           - Don't change PopupButtonState to Normal when the
32025             PopupButton gets pressed several times.
32026           - Renamed ButtonPanel to PopupButtonPanel
32027
32028 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
32029
32030         * ColorDialog.cs: Use cached objects instead of creating them
32031         * LinkLabel.cs: Use cached objects instead of creating them
32032         * Splitter.cs: Use cached objects instead of creating them
32033         * FontDialog.cs: Use cached objects instead of creating them
32034         * PropertyGridView.cs: Use cached objects instead of creating them
32035         * MessageBox.cs: Use cached objects instead of creating them
32036         * FileDialog.cs: Use cached objects instead of creating them
32037         * ThemeWin32Classic.cs: Use cached objects instead of creating them
32038         * TreeView.cs: Use cached objects instead of creating them
32039         
32040 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
32041
32042         * Control.cs: use Equals to compare the font since no == op
32043         * ScrollBar.cs: use Equals to compare the font since no == op
32044
32045 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
32046
32047         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
32048
32049 2005-04-01  Jackson Harper  <jackson@ximian.com>
32050
32051         * Binding.cs: Implement IsBinding.
32052         * BindingManagerBase.cs:
32053         * PropertyManager.cs:
32054         * CurrencyManager.cs: Add IsSuspended property.
32055
32056 2005-04-01  Jackson Harper  <jackson@ximian.com>
32057
32058         * Binding.cs: Had some IsAssignableFrom calls backwards.
32059
32060 2005-04-01  Jackson Harper  <jackson@ximian.com>
32061
32062         * Binding.cs: Handle null data members when pulling data.
32063         * PropertyManager.cs: Handle the data member being a property that
32064         does not exist.
32065
32066 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32067
32068         * DataGridTextBoxColumn.cs: fixes signature
32069         * DataGrid.cs: calls right constructor
32070
32071 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
32072
32073         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
32074         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
32075         * GridTableStylesCollection.cs: implements GridTableStylesCollection
32076         * DataGridTableStyle.cs: implements DataGridTableStyle
32077         * DataGridBoolColumn.cs: implements DataGridBoolColumn
32078         * DataGridTextBox.cs: implements DataGridTextBox
32079         * DataGridColumnStyle.cs: implements DataGridColumnStyle
32080
32081 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
32082
32083         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
32084
32085 2005-03-29  Peter Bartok  <pbartok@novell.com>
32086
32087         * Application.cs:
32088           - Properly implemented CompanyName property
32089           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
32090             returns a path that includes CompanyName, ProductName and
32091             Version (fixes bug #70330)
32092
32093 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
32094
32095         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
32096           fixes bug #72588.
32097
32098 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32099
32100         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
32101         
32102           - Added ReadOnly CheckBox
32103           - Further refactoring: moved some code from Open-/SaveFileDialog
32104             to FileDialog
32105
32106 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
32107
32108         * OpenFileDialog.cs: Fixed CheckFileExists
32109         * FileDialog.cs:
32110           Moved FileView and DirComboBox outside FileDialog class.
32111           They can now be used outside FileDialog
32112
32113 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32114
32115         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
32116         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
32117
32118 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
32119
32120         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32121           - Added missing CreatePrompt property in SaveDialog
32122           - Overall SaveDialog handling should be better now
32123           - Added non standard ShowHiddenFiles property
32124           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
32125           - Added InitialDirectory and RestoreDirectory support
32126
32127 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
32128
32129         * FileDialog.cs: Made dirComboBox usable
32130
32131 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
32132
32133         * FileDialog.cs: Added Filter support (case sensitiv)
32134
32135 2005-03-24  Jackson Harper  <jackson@ximian.com>
32136
32137         * TabControl.cs: Need a couple more pixels for the lines.
32138
32139 2005-03-23  Jackson Harper  <jackson@ximian.com>
32140
32141         * TabControl.cs: Give the tab page focus when it is selected.
32142
32143 2005-03-23  Jackson Harper  <jackson@ximian.com>
32144
32145         * TabControl.cs: Account for the drawing of tabs borders when
32146         invalidating. If the slider was clicked dont do click detection on
32147         the tabs.
32148
32149 2005-03-23  Jackson Harper  <jackson@ximian.com>
32150
32151         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
32152
32153 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
32154
32155         * CategoryGridEntry.cs: Added
32156         * GridItem.cs: Added helper properties
32157         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
32158         * GridEntry.cs: Updated code for collection
32159         * PropertyGrid.cs: Cleaned up some formatting
32160         * PropertyGridView.cs: Added drop down functionality for enums.
32161         * GridItemCollection.cs: Added enumerator logic
32162         * PropertyGridEntry.cs: Added
32163
32164 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32165
32166         * FileDialog.cs:
32167           - Removed unnecessary commented code
32168           - Fixed handling for entering the filename manually in the combobox
32169
32170 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
32171
32172         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
32173
32174 2005-03-18  Peter Bartok  <pbartok@novell.com>
32175
32176         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
32177           them being touching the border
32178
32179 2005-03-18  Peter Bartok  <pbartok@novell.com>
32180
32181         * TextControl.cs: Quick hack to center text better
32182
32183 2005-03-18  Peter Bartok  <pbartok@novell.com>
32184
32185         * ControlPaint.cs:
32186           - Don't throw NotImplemented exceptions, just print a notice once
32187             instead (requested by Miguel). This makes running existing SWF
32188             apps a bit easier
32189         * Control.cs:
32190           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
32191           - Added context menu trigger on right click
32192         * Panel.cs: Trigger invalidate on resize
32193         * StatusBar.cs:
32194           - Removed old double-buffer drawing
32195           - Added ResizeRedraw style to force proper update of statusbar
32196         * ListView.cs:
32197           - Removed debug output
32198         * ThemeWin32Classic.cs:
32199           - Fixed drawing of status bar, now draws Text property if there
32200             are no defined panels
32201
32202 2005-03-18  Jackson Harper  <jackson@ximian.com>
32203
32204         * ImageList.cs: When the image stream is set pull all the images
32205         from it.
32206         * ImageListStreamer.cs: Implement reading image list streams.
32207
32208 2005-03-18  Peter Bartok  <pbartok@novell.com>
32209
32210         * ThemeWin32Classic.cs (DrawPictureBox):
32211           - Fixed calculations for centered drawing
32212           - Fixed drawing for normal mode, not scaling the image on normal
32213
32214 2005-03-18  Peter Bartok  <pbartok@novell.com>
32215
32216         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
32217           textbox
32218         * FileDialog.cs:
32219           - Made Open/Save button the accept button for FileDialog
32220           - Tied the cancel button to the IButtonControl cancel button
32221           - Save/Open now properly builds the pathname
32222           - Now handles user-entered text
32223           - Preventing crash on right-click if no item is selected
32224           - Fixed Text property, now uses contents of textbox
32225           - Fixed SelectedText property, now just returns the text part that
32226             is selected in the text box
32227
32228 2005-03-18  Jackson Harper  <jackson@ximian.com>
32229
32230         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
32231         rect, make sure to de-adjust the interior rect after drawing the
32232         tab text.
32233
32234 2005-03-18  Peter Bartok  <pbartok@novell.com>
32235
32236         * MenuAPI.cs: Remove menu *before* executing selected action to
32237           prevent the menu from 'hanging around'
32238           
32239 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
32240
32241         * XplatUIOSX.cs: Implemented WorkingArea property
32242
32243 2005-03-17  Peter Bartok  <pbartok@novell.com>
32244
32245         * XplatUIX11.cs: Fixed menu coord calculations
32246         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
32247           for calculating offsets
32248
32249 2005-03-17  Peter Bartok  <pbartok@novell.com>
32250
32251         * Hwnd.cs: Do not consider menu presence for default client
32252           rectangle location/size
32253         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
32254           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
32255           translation functions
32256         * FileDialog.cs: Fixed (what I presume is a) typo
32257
32258 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
32259
32260         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
32261           X access (avoids X-Async errors)
32262
32263 2005-03-16  Jackson Harper  <jackson@ximian.com>
32264
32265         * TabControl.cs: Raise the SelectedIndexChanged event.
32266
32267 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
32268
32269         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
32270           - Removed vertical ToolBar and replaced it with a custom panel
32271             (desktop and home button already work)
32272           - Added Help button (some controls get resized or relocated then)
32273           - Draw correct text depending on Open or Save.
32274           - Fixed some typos...
32275
32276 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
32277
32278         * ScrollBar.cs:
32279           - Only change Maximum and Minimum when need it (bug fix)
32280
32281 2005-03-15  Peter Bartok  <pbartok@novell.com>
32282
32283         * Form.cs: Use Handle for icon, to trigger creation if
32284           the window does not yet exist
32285         * Control.cs:
32286           - CanSelect: Slight performance improvement
32287           - Focus(): Preventing possible recursion
32288           - Invalidate(): Removed ControlStyle based clear flag setting
32289           - WM_PAINT: fixed logic for calling OnPaintBackground
32290           - WM_ERASEBKGND: Fixed logic, added call to new driver method
32291             EraseWindowBackground if the control doesn't paint background
32292         * XplatUIWin32.cs:
32293           - Moved EraseWindowBackground() method to internal methods
32294           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
32295             is sent via SendMessage on BeginPaint call on Win32
32296         * XplatUIX11.cs:
32297           - Added EraseWindowBackground() method
32298           - No longer sends WM_ERASEBKGND on .Expose, but on call to
32299             PaintEventStart, which more closely matches Win32 behaviour
32300           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
32301           - Fixed SetFocus() to properly deal with client and whole windows
32302         * Hwnd.cs: Added ErasePending property
32303         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
32304         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
32305
32306 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
32307
32308         * XplatUIOSX.cs:
32309           - Fix hard loop when timers exist.
32310           - Fix bugs with middle and right click for 3 button mice.
32311
32312 2005-03-11  Peter Bartok  <pbartok@novell.com>
32313
32314         * XplatUIX11.cs:
32315           - get_WorkingArea: Need to call X directly, GetWindowPos only
32316             returns cached data now
32317           - Added sanity check to GetWindowPos hwnd usage
32318
32319 2005-03-11  Jackson Harper  <jackson@ximian.com>
32320
32321         * BindingManagerBase.cs: This method isn't used anymore as
32322         PullData now updates the data in the control.
32323
32324 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
32325
32326         * Form.cs: fixes menu drawing on X11
32327         * MenuAPI.cs:  fixes menu drawing on X11
32328
32329 2005-03-11  Peter Bartok  <pbartok@novell.com>
32330
32331         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
32332           from Jonathan Gilbert; should fix bug #73606
32333         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
32334           in Screen coordinates. Thanks, Jordi.
32335         * Form.cs: Added missing attribute
32336
32337 2005-03-11  Peter Bartok  <pbartok@novell.com>
32338
32339         * Form.cs:
32340           - Rudimentary Mdi support
32341           - Removed outdated FormParent code
32342           - Implemented lots of missing properties and methods, still missing
32343             transparency support
32344           - Added missing attributes
32345           - Implemented support for MaximumBounds
32346           - Added firing of various events
32347         * XplatUI.cs: Added SetIcon() method
32348         * XplatUIDriver.cs: Added SetIcon() abstract
32349         * XplatUIOSX.cs: Stubbed out SetIcon() method
32350         * XplatUIX11.cs:
32351           - Implemented SetIcon() support
32352           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
32353           - Switched to unix line endings
32354         * XplatUIWin32.cs:
32355           - Made POINT internal so for can access it as part of MINMAX
32356           - Implemented SetIcon() support
32357           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
32358             native Mdi support again, might have to go managed)
32359         * Control.cs: Now fires the StyleChanged event
32360         * MdiClient.cs: Added; still mostly empty
32361
32362 2005-03-10  Peter Bartok  <pbartok@novell.com>
32363
32364         * SaveFileDialog.cs: Added emtpy file
32365
32366 2005-03-08  Peter Bartok  <pbartok@novell.com>
32367
32368         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
32369           in turn triggers OnCreateContro) when creating a handle for the
32370           first time.
32371         * TextControl.cs: Fixed endless loop in certain cases when
32372           replacing the current selection
32373
32374 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
32375
32376         * ScrollBar.cs:
32377           - Honors NewValue changes in Scroll events allowing apps to change it
32378           - Adds First and Last Scroll events
32379           - Fixes Thumb events
32380
32381 2005-03-07  Peter Bartok  <pbartok@novell.com>
32382
32383         * Hwnd.cs: Added DefaultClientRectangle property
32384         * XplatUI.cs: Now using the X11 driver Where() method, which provides
32385           more detailed debug information
32386         * XplatUIX11.cs:
32387           - Fixed size-change feedback loop, where we would pull an old size
32388             off the queue and mistakenly change our window's size to an
32389             earlier value
32390           - Now compressing ConfigureNotify events, to reduce looping and
32391             redraw issues
32392         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
32393           is called
32394
32395 2005-03-07  Jackson Harper  <jackson@ximian.com>
32396
32397         * Binding.cs: Push data pushes from data -> property. Check if the
32398         property is readonly when attempting to set it.
32399
32400 2005-03-07  Jackson Harper  <jackson@ximian.com>
32401
32402         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
32403         instead of IsSubclassOf. Pulling data now sets the value on the
32404         control.
32405         * PropertyManager.cs:
32406         * CurrencyManager.cs: Just need to pull data when updating now,
32407         because PullData will set the value on the control.
32408
32409 2005-03-04  Jackson Harper  <jackson@ximian.com>
32410
32411         * Binding.cs: Implement data type parsing and converting on pulled
32412         data. TODO: Are there more ways the data can be converted?
32413
32414 2005-03-04  Jackson Harper  <jackson@ximian.com>
32415
32416         * Binding.cs: Support <Property>IsNull checks. Also bind to the
32417         controls Validating method so we can repull the data when the
32418         control loses focus.
32419
32420 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
32421
32422         * ColumnHeader.cs:
32423           - Fixes null string format
32424           
32425         * ListView.cs:
32426           - Adds enum type checks
32427           - Fixes redrawing and recalc need after changing some properties
32428           - Fixes on focus_item set after the event
32429           - Fixes adding columns after the control has been created
32430           
32431         * ThemeWin32Classic.cs:
32432           - Fixes CheckBox focus rectangle
32433           - Fixes ColumnHeader drawing
32434
32435
32436 2005-03-03  Jackson Harper  <jackson@ximian.com>
32437
32438         * Binding.cs: Bind to <Property>Changed events so we can detect
32439         when properties are changed and update the data.
32440
32441 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
32442
32443         * ImageList.cs:
32444           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
32445           - Fixes ImageList constructor with ImageList container
32446           - Fixes image scaling (wrong parameters at DrawImage)
32447
32448 2005-02-02  Jackson Harper  <jackson@ximian.com>
32449
32450         * Binding.cs: Make property searches case-insensitive. Eliminate
32451         some duplicated code.
32452
32453 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
32454
32455         * ComboBox.cs:
32456                 - Handle focus event
32457                 - Fix scrollbar events
32458                 - Discard highlighted item if remove it
32459                 - Fixes SelectedItem with strings
32460
32461 2005-03-01  Peter Bartok  <pbartok@novell.com>
32462
32463         * Control.cs:
32464           - Fixed Visible property, now follows (once again) parent chain
32465             to return false if any control in the chain is visible=false
32466           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
32467           - Fixed several places where is_visible instead of Visible was used
32468           - Implemented FIXME related to focus selection when setting focused
32469             control to be invisible
32470
32471         * XplatUIWin32.cs: Now using proper method to find out if window is
32472           visible. Thanks to Jordi for pointing it out
32473
32474 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
32475
32476         * ComboBox.cs: show/hide scrollbar instead of creating it
32477
32478 2005-02-27  Jackson Harper  <jackson@ximian.com>
32479
32480         * CurrencyManager.cs: Add PositionChanged stuff.
32481
32482 2005-02-27  Peter Bartok  <pbartok@novell.com>
32483
32484         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
32485         * XplatUIOSX.cs: Added GetMenuOrigin() stub
32486         * XplatUIWin32.cs: Implemented GetMenuOrigin()
32487         * XplatUIX11.cs:
32488           - Implemented GetMenuDC()
32489           - Implemented GetMenuOrigin()
32490           - Implemented ReleaseMenuDC()
32491           - Implemented generation of WM_NCPAINT message
32492           - Implemented generation and handling of WM_NCCALCSIZE message
32493         * Form.cs: Added debug helper message for Jordi's menu work
32494         * Hwnd.cs:
32495           - Modified ClientRect property; added setter, fixed getter to handle
32496             setting of ClientRect
32497           - Added MenuOrigin property
32498
32499 2005-02-26  Peter Bartok  <pbartok@novell.com>
32500
32501         * XplatUIX11.cs:
32502           - Destroys the caret if a window that's being destroyed contains it
32503           - Ignores expose events coming from the X11 queue for windows that
32504             already are destroyed
32505           - Now uses the proper variable for handling DestroyNotify, before we
32506             marked the wrong window as destroyed
32507           - Improved/added some debug output
32508
32509 2005-02-26  Peter Bartok  <pbartok@novell.com>
32510
32511         * X11Keyboard.cs: Fixes to work on 64bit systems
32512
32513 2005-02-26  Peter Bartok  <pbartok@novell.com>
32514
32515         * Control.cs:
32516           - Now calling OnHandleDestroyed from DestroyHandle()
32517             instead of Dispose()
32518           - Removed bogus call to controls.Remove() from DestroyHandle()
32519
32520 2005-02-26  Peter Bartok  <pbartok@novell.com>
32521
32522         * Control.cs: Properly destroy child windows when our handle is
32523           destroyed
32524
32525 2005-02-25  Peter Bartok  <pbartok@novell.com>
32526
32527         * XplatUI.cs:
32528           - Added 'DriverDebug' define to allow tracing XplatUI API calls
32529           - Alphabetized Static Methods and Subclasses
32530
32531         * XplatUIX11.cs:
32532           - Added XException class to allow custom handling of X11 exceptions
32533           - Created custom X11 error handler, tied into XException class
32534           - Added support for MONO_XEXCEPTIONS env var to allow the user
32535             to either throw an exception on X errors or continue running
32536             after displaying the error
32537           - Added handling of DestroyNotify message
32538           - Added handler for CreateNotify message (still disabled)
32539           - Improved (tried to at least) Where method to provide file and lineno
32540         * X11Structs.cs:
32541           - Added XErrorHandler delegate
32542           - Added XRequest enumeration (to suppor translation of errors)
32543
32544 2005-02-25  Jackson Harper  <jackson@ximian.com>
32545
32546         * PropertyManager.cs: Implement editing features
32547         * CurrencyManager.cs:
32548         * Binding.cs: First attempt at UpdateIsBinding
32549         * BindingManagerBase.cs: Call UpdateIsBinding before
32550         pushing/pulling data.
32551
32552 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
32553
32554         * MenuAPI.cs: Respect disabled items
32555         * ThemeWin32Classic.cs
32556                 - Caches ImageAttributes creation for DrawImageDisabled
32557                 - Fixes vertical menu line drawing
32558                 - Draws disabled arrows in disable menu items
32559
32560 2005-02-24  Peter Bartok  <pbartok@novell.com>
32561
32562         * Hwnd.cs:
32563           - Added UserData property to allow associating arbitrary objects
32564             with the handle
32565           - Fixed leak; now removing Hwnd references from static windows array
32566         * XplatUIWin32.cs:
32567           - Fixed Graphics leak in PaintEventEnd
32568           - Removed usage of HandleData, switched over to Hwnd class
32569         * HandleData.cs: Removed, obsoleted by Hwnd.cs
32570
32571 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
32572
32573         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
32574         * ScrollBar.cs: Fixes bug
32575         * TrackBar.cs: removes death code, clipping, mimize refreshes,
32576          keyboard navigation enhancements
32577
32578 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
32579
32580         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
32581         * GroupBox.cs: Add control styles
32582         * Label.cs: Add control styles
32583         * UpDownBase.cs: Add control styles
32584         * ListBox.cs: Add control styles
32585         * XplatUIWin32.cs: Fixes wrong parameter order
32586
32587
32588 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
32589
32590         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
32591
32592 2005-02-23  Jackson Harper  <jackson@ximian.com>
32593
32594         * PropertyManager.cs: Implement property binding. This doesn't
32595         seem to work yet though as (I think) there are some bugs in
32596         System.ComponentModel.PropertyDescriptor.
32597         * BindingContext.cs: Use new PropertyManager constructor.
32598
32599 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
32600
32601         * ProgressBar.cs: use clip region in ProgressBar
32602         * ThemeWin32Classic.cs: use clip region in ProgressBar
32603
32604 2004-02-22  Jackson Harper  <jackson@ximian.com>
32605
32606         * BindingsCollection.cs: Remove some debug code.
32607
32608 2005-02-22  Jackson Harper  <jackson@ximian.com>
32609
32610         * BindingContext.cs:
32611         * ControlBindingsCollection.cs:
32612         * CurrencyManager.cs:
32613         * Binding.cs:
32614         * BindingManagerBase.cs: Initial implementation
32615         * BindingsCollection.cs: Add an internal contains method that the
32616         BindingManagerBase uses to ensure bindings aren't added twice to
32617         the collection.
32618         * PropertyManager.cs: Stubbed out.
32619         * Control.cs:
32620         * ContainerControl.cs: Hook up databinding
32621         
32622 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
32623
32624         * XplatUIOSX.cs:
32625           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
32626           Fixed Invalidate/Update chain.
32627           Fixed tons of other minor bugs (this is almost a complete rewrite).
32628
32629 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
32630
32631         * ComboBox.cs: do subcontrol creation when the control is created
32632
32633 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32634
32635         * Label.cs: fixes image drawing (image and imagelist)
32636         * ThemeWin32Classic.cs: cache brushes
32637         
32638 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32639
32640         * Form.cs: Move menu drawing code to Theme class
32641         * ComboBox.cs: Move ComboBox drawing code to Theme class
32642         * MenuItem.cs: Move menu drawing code to Theme class
32643         * MenuAPI.cs: Move menu drawing code to Theme class
32644         * ThemeWin32Classic.cs: New methods
32645         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32646         * ListBox.cs: Move Listbox drawing code to Theme class
32647         * Theme.cs: New methods
32648
32649 2005-02-20  Peter Bartok  <pbartok@novell.com>
32650
32651         * Control.cs:
32652           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32653             only process mnemonics on those)
32654           - Fixed event sequence for key handling; first calling
32655             ProcessKeyEventArgs now
32656         * TextBoxBase.cs:
32657           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32658             for processing non-character keys
32659           - Fixed WM_CHAR to generate proper event sequence before processing
32660         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32661           generation
32662
32663 2005-02-19  Peter Bartok  <pbartok@novell.com>
32664
32665         * UserControl.cs: Added TextChanged event; added attributes
32666         * SizeGrip.cs: Implemented resizing and optional display of grip
32667         * Form.cs: Fixed attribute
32668         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32669           Changed meaning of ScrollWindow bool argument; instead of the
32670           clear attribute (which will be true usually anyway), it gives the
32671           option of moving child controls as well.
32672         * XplatUIX11.cs:
32673           - Changed to match new ScrollWindow argument
32674           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32675             now handles the implicit parent window a WM puts around us
32676         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32677           to work)
32678         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32679         * TreeView.cs: Adjusted to new ScrollWindow arguments
32680
32681 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
32682
32683         * Form.cs: Menu integration with non-client area
32684         * MenuItem.cs: Menu integration with non-client area
32685         * MenuAPI.cs: Menu integration with non-client area
32686
32687 2005-02-18  Peter Bartok  <pbartok@novell.com>
32688
32689         * MethodInvoker.cs: Added
32690         * MdiLayout.cs: Added
32691         * SendKeys.cs: Started implementation
32692         * ErrorIconAlignment.cs: Added
32693
32694 2005-02-18  Peter Bartok  <pbartok@novell.com>
32695
32696         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32697         * Form.cs: Added handling for Menu-related Non-client messages
32698
32699 2005-02-17  Peter Bartok  <pbartok@novell.com>
32700
32701         * UpDownBase.cs: Fixed typo, compilation errors
32702         * DomainUpDown.cs: Fixed attribute value
32703
32704 2005-02-16  Miguel de Icaza  <miguel@novell.com>
32705
32706         * UpDownBase.cs: Attach entry events.
32707         Propagate events.
32708         Add ForeColor property, Focused, InterceptArrowKeys (interception
32709         does not work yet).
32710
32711 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
32712
32713         * Form.cs:
32714                 - Redraw non client are on Setmenu
32715                 - Calc proper menu starting point
32716
32717 2005-02-17  Peter Bartok  <pbartok@novell.com>
32718
32719         * Application.cs: Fixed message_filter check
32720
32721 2005-02-17  Peter Bartok  <pbartok@novell.com>
32722
32723         * Application.cs: Now calls registered message filters
32724         * DockStyle.cs: Fixed attribute
32725         * Form.cs: Fixed attribute
32726         * Menu.cs: Fixed attribute
32727         * ToolTip.cs: Fixed attribute
32728         * TreeNode.cs: Added missing attributes and arranged in regions
32729         * PropertyGrid.cs: Fixed signatures
32730         * TreeNodeCollection.cs: Added attributes
32731         * Splitter.cs: Added missing attributes; arranged into regions
32732         * TabPage.cs: Added missing attributes; arranged into regions
32733         * TextBoxBase.cs: Added missing attributes
32734         * TextBox.cs: Added missing attributes
32735         * ArrangeDirection.cs: Added missing attributes
32736         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
32737         * ToolBarButton.cs: Fixed attributes
32738         * AnchorStyles.cs: Fixed attribute
32739         * TrackBar.cs: Fixed attributes
32740         * TabControl.cs: Added missing attributes and arranged into regions
32741         * ToolBar.cs: Fixed attribute
32742         * StatusBar.cs: Fixed signature, organized into regions and added
32743           attributes
32744         * StatusBarPanel.cs: Fixed attributes
32745         * ContentsResizedEventArgs.cs: Implemented
32746         * ContentsResizedEventHandler.cs: Implemented
32747         * DateBoldEventArgs.cs: Implemented
32748         * DateBoldEventHandler.cs: Implemented
32749         * UpDownEventArgs.cs: Implemented
32750         * UpDownEventHandler.cs: Implemented
32751         
32752 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
32753
32754         * Form.cs: first Menu NC refactoring
32755         * MenuAPI.cs: first Menu NC refactoring
32756         
32757 2005-02-16  Peter Bartok  <pbartok@novell.com>
32758
32759         * ImeMode.cs: Added missing attributes
32760         * Menu.cs: Fixed attribute
32761         * GroupBox.cs: Fixed attribute
32762         * Label.cs: Fixed attribute
32763         * ColorDialog.cs (RunDialog): Removed TODO attribute
32764         * ComboBox.cs: Fixed attributes
32765         * ListControl.cs: Added missing attributes
32766         * PropertyGrid.cs: Fixed attributes
32767         * Control.cs: Fixed attributes
32768         * ListViewItem.cs: Added TypeConverter attribute
32769         * NotifyIcon.cs: Fixed attributes
32770         * ListView.cs: Fixed attributes
32771         * ButtonBase.cs: Fixed attribute
32772         * ImageList.cs: Added missing attributes
32773         * ContainerControl.cs: Fixed signature
32774         * CheckedListBox.cs: Fixed attribute; added missing attributes
32775         * Panel.cs: Fixed attributes
32776         * PropertyTabChangedEventArgs.cs: Added missing attribute
32777         * PropertyValueChangedEventArgs.cs: Added missing attribute
32778         * Binding.cs: Fixed attribute
32779         * ListViewItemConverter: Implemented ListViewSubItemConverter class
32780         * ListBox.cs: Fixed attribute; added missing attributes;
32781         * ScrollableControl.cs: Added missing attributes
32782         * PictureBox.cs: Added missing attributes; implemented missing property
32783         * DateTimePicker.cs: Added missing attributes
32784         * Theme.cs (ToolWindowCaptionHeight): Fixed type
32785         * MonthCalendar.cs: Fixed attributes
32786         * StatusBarPanel.cs: Added missing attributes
32787         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
32788
32789 2005-02-16  Peter Bartok  <pbartok@novell.com>
32790
32791         * TextBoxBase.cs: The previous method to enforce height yet remember
32792           the requested high was less than ideal, this is an attempt to do
32793           it better.
32794         * Control.cs: Added comment about possible problem
32795         * Copyright: Updated format
32796         * GridItemType.cs: Fixed swapped values
32797
32798 2005-02-15  Jackson Harper  <jackson@ximian.com>
32799
32800         * BaseCollection.cs: Use property so we never access an
32801         uninitialized list. Also initialize the list in the property.
32802
32803 2005-02-15  Peter Bartok  <pbartok@novell.com>
32804
32805         * GroupBox.cs (ProcessMnemonic): Implemented
32806         * Label.cs (ProcessMnemonic): Implemented
32807         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
32808           hotkeys
32809
32810 2005-02-15  Peter Bartok  <pbartok@novell.com>
32811
32812         * RadioButton.cs (ProcessMnemonic): Implemented
32813         * CheckBox.cs (ProcessMnemonic): Implemented
32814         * Control.cs:
32815           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
32816             handling
32817           - Added internal method to allow calling ProcessMnemonic from other
32818             controls
32819         * ContainerControl.cs:
32820           - Started support for handling validation chain handling
32821           - Implemented ProcessMnemonic support
32822           - Added Select() call to Active, to make sure the active control
32823             receives focus
32824         * Form.cs: Setting toplevel flag for Forms (this was lost in the
32825           FormParent rewrite)
32826         * ThemeWin32Classic.cs:
32827           - DrawCheckBox(): Fixed stringformat to show hotkeys
32828           - DrawRadioButton(): Fixed stringformat to show hotkeys
32829         * CommonDialog.cs: Removed WndProc override, not needed
32830
32831 2005-02-14  Peter Bartok  <pbartok@novell.com>
32832
32833         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
32834           missed those in the rewrite
32835
32836 2005-02-14  Miguel de Icaza  <miguel@novell.com>
32837
32838         * NumericUpDown.cs (Increment, ToString): Add.
32839         (DecimalPlaces): implement.
32840         
32841         Add attributes.
32842         
32843         * UpDownBase.cs: Add the designer attributes.
32844
32845 2005-02-13  Peter Bartok  <pbartok@novell.com>
32846
32847         * Panel.cs: Removed border_style, now in Control
32848         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
32849           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
32850
32851 2005-02-13  Peter Bartok  <pbartok@novell.com>
32852
32853         * MouseButtons.cs: Added missing attributes
32854         * XplatUIStructs.cs: Added enumeration for title styles
32855         * LeftRightAlignment.cs: Added missing attributes
32856         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
32857           it compatible with Graphics.FromHwnd()
32858         * SelectedGridItemChangedEventArgs.cs: Fixed property type
32859         * Keys.cs: Added missing attributes
32860         * SelectionRange.cs: Added missing attributes
32861         * SelectionRangeConverter.cs: Added
32862         * XplatUI.cs:
32863           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
32864             ReleaseMenuDC methods
32865           - Renamed ReleaseWindow to UngrabWindow
32866           - Added proper startup notice to allow version identification
32867         * Form.cs:
32868           - Added missing attributes
32869           - Removed FormParent concept
32870         * Label.cs: Removed border_style field, now in Control
32871         * RadioButton.cs: Now properly selects RadioButton when focus is
32872           received
32873         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
32874         * Control.cs:
32875           - Added missing attributes
32876           - Added borderstyle handling
32877           - Removed FormParent concept support
32878           - Fixed calls to XplatUI to match changed APIs
32879           - Fixed bug that would case us to use disposed Graphics objects
32880           - Removed unneeded internal methods
32881           - PerformLayout(): Fixed to handle DockStyle.Fill properly
32882           - SelectNextControl(): Fixed to properly check common parents
32883         * TextBoxBase.cs: Removed border_style field (now in Control)
32884         * MessageBox.cs:
32885           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
32886             fixed calculations for form size
32887           - Added support for localized strings and icons
32888           - Improved form size calculations, added border
32889         * ListView.cs: Removed border_style field (now in Control)
32890         * X11Structs.cs: Moved several structs from X11 driver here
32891         * X11Keyboard.cs: Changed debug message
32892         * Application.cs: Removed FormParent concept support
32893         * CommonDialog.cs:
32894           - Resetting end_modal flag
32895           - Removed FormParent concept support
32896         * NativeWindow.cs: Removed FormParent concept support
32897         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
32898           Client area and Non-Client whole window to allow support for WM_NC
32899           messages
32900         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
32901           prevent using it until it supports Hwnd as per Geoff Norton's request
32902         * ToolBar.cs: Fixed drawing, was not doing proper drawing
32903         * PictureBox.cs: Removed border_style field, now in Control
32904         * XplatUIWin32.cs: Added new driver methods
32905
32906 2005-02-12  Peter Bartok  <pbartok@novell.com>
32907
32908         * OpacityConverter.cs: Implemented
32909         * Hwnd.cs: Internal class to support drivers that need to emulate
32910           client area/non-client area window behaviour
32911
32912 2005-02-11  Peter Bartok  <pbartok@novell.com>
32913
32914         * KeysConverter.cs: Implemented
32915
32916 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
32917
32918         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
32919         * LinkLabel: Added missing attributes
32920         * MainMenu.cs: fixes ToString
32921         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
32922         * ListBox.cs: fixes event position
32923         * TrackBar.cs: adds missing attributes and events
32924         
32925 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
32926
32927         * MenuItem.cs: Use SystemInformation and bug fixes
32928         * MenuAPI.cs: Use SystemInformation and bug fixes
32929
32930 2005-02-09  Jackson Harper  <jackson@ximian.com>
32931
32932         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
32933         their keystate otherwise things like VK_MENU get stuck "on".
32934
32935 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
32936
32937         * ListBox.cs: Fixes AddRange bug
32938         
32939 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
32940
32941         * ProgressBar.cs
32942                 - Add missing attributes
32943                 - Add missing method
32944                 
32945         * CheckedListBox.cs: Added missing attributes
32946                 - Add missing attributes
32947                 - Remove extra method
32948         
32949         * ComboBox.cs: Added missing attributes
32950         * VScrollBar.cs: Added missing attributes
32951         * ScrollBar.cs:  Added missing attributes
32952         * ListBox.cs: Fixes signature, add missing consts
32953         * LinkArea.cs:   Added missing attributes
32954         
32955
32956 2005-02-08  Peter Bartok  <pbartok@novell.com>
32957
32958         * Menu.cs: Added missing attributes
32959         * MainMenu.cs: Added missing attributes
32960         * GroupBox.cs: Added missing attributes
32961         * Label.cs: Added missing attributes
32962         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32963         * ColorDialog.cs:
32964           - Added Instance and Options properties
32965           - Added missing attributes
32966         * Cursor.cs: Made Serializable
32967         * NotifyIcon: Added missing attributes
32968         * MenuItem.cs: Added missing attributes
32969         * TextBoxBase.cs: Implemented AppendText() and Select() methods
32970         * Panel.cs: Added Missing attributes
32971         * MonthCalendar.cs: Fixed CreateParams
32972
32973 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32974         
32975         * LinkLabel.cs:
32976                 - Fixes signature
32977                 - Fixes issues with links
32978                 - Adds the class attributes
32979
32980 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
32981         
32982         * ComboBox.cs:
32983                 - Fixes button when no items available in dropdown
32984                 - Fixes repainting problems
32985                 - Adds the class attributes
32986                 
32987 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32988
32989         * XplatUIOSX.cs: Detect the menu bar and title bar height from
32990         the current theme.  Cache these on startup.
32991
32992 2005-02-07  Jackson Harper  <jackson@ximian.com>
32993
32994         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32995         the scrollbar buttons when they are depressed.
32996
32997 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
32998
32999         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
33000         Get the display size from the main displayid.  We currently dont
33001         support multiple display configurations.
33002
33003 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
33004
33005         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
33006
33007 2005-02-07  Miguel de Icaza  <miguel@novell.com>
33008
33009         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
33010
33011 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
33012
33013         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
33014
33015 2005-02-04  Jackson Harper  <jackson@ximian.com>
33016
33017         * ThemeWin32Classic.cs: Respect the clipping rect when
33018         drawing. Only fill the intersection of clips and rects so there
33019         isn't a lot of large fills.
33020         * ScrollBar.cs: Pass the correct clipping rect to the theme
33021         engine. Remove some debug code.
33022
33023 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
33024         
33025         * DateTimePicker.cs:
33026                 - Fixed crash on DateTime.Parse, use Constructor instead
33027
33028 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33029         
33030         * MenuItem.cs:
33031         * MenuAPI.cs:
33032                 - Owner draw support (MeasureItem and DrawItem)
33033
33034 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
33035         
33036         *  Menu.cs:
33037                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
33038                 - Fixes MenuItems.Add range
33039         * MenuItem.cs:
33040                 - MergeMenu and Clone and CloneMenu functions
33041
33042 2005-02-03  Jackson Harper  <jackson@ximian.com>
33043
33044         * ScrollBar.cs: Make abstract
33045         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
33046         is abstract.
33047
33048 2005-02-03  Jackson Harper  <jackson@ximian.com>
33049
33050         * ScrollBar.cs: First part of my scrollbar fixups. This removes
33051         all the unneeded refreshes and uses invalidates with properly
33052         computed rects.
33053
33054 2005-02-03  Peter Bartok  <pbartok@novell.com>
33055
33056         * ComponentModel.cs: Added
33057         * IDataGridEditingService.cs: Added
33058         * Timer.cs: Added missing attributes
33059         * ToolTip.cs: Added missing attributes
33060
33061 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
33062
33063         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
33064
33065 2005-02-03  Peter Bartok  <pbartok@novell.com>
33066
33067         * ListBox.cs: Added missing attributes
33068
33069 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
33070         
33071         * ListBox.cs:
33072                 - Fixes font height after font change
33073                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
33074                 
33075 2005-02-02  Peter Bartok  <pbartok@novell.com>
33076
33077         * HandleData.cs: Introduced static methods to allow class
33078           to be more self-contained and track it's own HandleData objects
33079         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
33080           HandleData to use new static methods
33081
33082 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
33083
33084         * Combobox.cs:
33085                 - Fixes default size and PreferredHeight
33086                 - Missing events
33087                 - ObjectCollection.Insert implementation
33088                 
33089         * ListControl.cs
33090                 - Fixes signature
33091         * ListBox.cs:
33092                 - Several fixes
33093                 - ObjectCollection.Insert implementation
33094                 - No selection after clean
33095                 - Small fixes
33096
33097 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33098
33099         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
33100
33101 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
33102
33103         * Combobox.cs:
33104                 - Caches ItemHeight calculation for OwnerDrawVariable
33105                 - Handles dropdown properly
33106                 - Fixes several minor bugs
33107
33108 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33109
33110         * ListBox.cs:
33111                 - Fixes 71946 and 71950
33112                 - Fixes changing Multicolumn on the fly
33113                 - Fixes keyboard navigation on Multicolumn listboxes
33114
33115 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33116         
33117         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
33118         crash reporter log.
33119
33120 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33121
33122         * XplatUIOSX.cs: Allow applications to actually exit.
33123
33124 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
33125
33126         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
33127         their parent at creation time rather than lazily later.  Fixes a major
33128         regression we were experiencing.
33129
33130 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
33131
33132         * ThemeWin32Classic.cs: more date time picker painting fixes
33133         * DateTimePicker.cs: more monthcalendar drop down fixes
33134         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
33135
33136 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
33137
33138         * ScrollBar.cs:
33139                 - When moving the thumb going outside the control should stop the moving
33140                 - Adds the firing of missing events
33141                 - Fixes no button show if Size is not specified
33142                 - End / Home keys for keyboard navigation
33143
33144 2005-01-30  Peter Bartok  <pbartok@novell.com>
33145
33146         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
33147           sanity check to prevent theoretical loop
33148         * XplatUIWin32.cs (SetVisible): Removed debug output
33149         * XplatUIX11.cs (SystrayChange): Added sanity check
33150         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
33151         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
33152           behaviour, valid until the X11 client window rewrite is done
33153         * TextBox.cs (ctor): Setting proper default foreground and background
33154           colors
33155
33156 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
33157
33158         * Theme: Added DrawDateTimePicker to interface
33159         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
33160         * DateTimePicker.cs: Created (still needs keys and painting code)
33161         * DateTimePickerFormat.cs: added
33162         * MonthCalendar.cs: fixed CreateParams for popup window mode
33163           
33164 2005-01-29  Peter Bartok  <pbartok@novell.com>
33165
33166         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
33167           this should also the calculations for ligher/darker
33168         * Theme.cs: Fixed defaults for ScrollBar widths/heights
33169
33170 2005-01-29  Peter Bartok  <pbartok@novell.com>
33171
33172         * ArrangeDirection.cs: Added
33173         * ArrangeStartingPositon.cs: Added
33174         * SystemInformation.cs: Implemented
33175         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33176           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
33177           used by SystemInformation class
33178         * X11Strucs.cs: Added XSizeHints structure
33179         * MenuAPI.cs:
33180           - Fixed CreateParams to make sure the menu window is always visible
33181           - TrackPopupMenu: Added check to make sure we don't draw the
33182             menu offscreen
33183
33184 2005-01-29  Peter Bartok  <pbartok@novell.com>
33185
33186         * HandleData.cs: Added method for altering invalid area
33187         * TextBoxBase.cs: Implemented TextLength
33188
33189 2005-01-28  Peter Bartok  <pbartok@novell.com>
33190
33191         * XplatUIX11.cs: Improvement over last patch, not sending
33192           the WM_PAINT directly anymore, instead we scroll any pending
33193           exposed areas and let the system pick out the WM_PAINT later
33194
33195 2005-01-28  Peter Bartok  <pbartok@novell.com>
33196
33197         * SWF.csproj: Deleted, no longer used. Instead,
33198           Managed.Windows.Forms/SWF.csproj should be used
33199         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
33200           directly, to avoid a potential race condition with the next
33201           scroll
33202
33203 2005-01-28  Peter Bartok  <pbartok@novell.com>
33204
33205         * XplatUI.cs: Made class internal
33206
33207 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
33208
33209         * CheckedListBox.cs:
33210                 - Draw focus
33211                 - Fixed Drawing
33212                 - Missing methods and events
33213
33214 2005-01-27  Peter Bartok  <pbartok@novell.com>
33215
33216         * Application.cs (Run): Don't use form if we don't have one
33217
33218 2005-01-27  Peter Bartok  <pbartok@novell.com>
33219
33220         * TextBoxBase.cs (get_Lines): Fixed index off by one error
33221
33222 2005-01-27  Peter Bartok  <pbartok@novell.com>
33223
33224         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
33225         * GridItem.cs: Added; Patch by Jonathan S. Chambers
33226         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
33227         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
33228         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
33229         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
33230         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33231         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33232         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33233         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33234         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
33235         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
33236
33237 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33238
33239         * Combobox.cs:
33240                 - Draw focus on Simple Combobox
33241                 - Fixes drawing issues
33242                 - fixes 71834
33243
33244 2005-01-27  Peter Bartok  <pbartok@novell.com>
33245
33246         * Form.cs:
33247           - Place window in default location, instead of hardcoded 0/0
33248           - Send initial LocationChanged event
33249         * Control.cs:
33250           - UpdateBounds after creation to find out where the WM placed us
33251           - Make sure that if the ParentForm changes location the Form
33252             is notified
33253         * XplatUIX11.cs: XGetGeometry will not return the coords relative
33254             to the root, but to whatever the WM placed around us.
33255             Translate to root coordinates before returning toplevel
33256             coordinates
33257         * XplatUIWin32.cs: Removed debug output
33258         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
33259           flag to GetWindowPos, to allow translation of coordinates on X11
33260
33261 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
33262
33263         * ListBox.cs: connect LostFocus Event
33264
33265 2005-01-27  Peter Bartok  <pbartok@novell.com>
33266
33267         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33268           XplatUIX11.cs: Extended the Systray API
33269         * Form.cs: Removed debug output
33270         * Application.cs: Fixed focus assignment, always need to call
33271           XplatUI.Activate() since Form.Activate() has rules that may
33272           prevent activation
33273         * NotifyIcon.cs: Should be complete now
33274         * ToolTip.cs: Worked around possible timer bug
33275
33276 2005-01-27  Jackson Harper  <jackson@ximian.com>
33277
33278         * TabControl.cs:
33279         - Only invalidate the effected tabs when the
33280         selected index changes. This reduces drawing and gets rid of some
33281         flicker.
33282         - Only refresh if the tabs need to be shifted, otherwise only
33283         invalidate the slider button.
33284         - On windows the tabs are not filled to right if the slider is
33285         visible.
33286         
33287 2005-01-27  Jackson Harper  <jackson@ximian.com>
33288
33289         * TabControl.cs: Only refresh on mouseup if we are showing the
33290         slider. Also only invalidate the button whose state has changed.
33291
33292 2005-01-26  Peter Bartok  <pbartok@novell.com>
33293
33294         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
33295         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
33296           and SystrayRemove() methods
33297         * XplatUIOSX.cs: Stubbed Systray methods
33298         * XplatUIX11.cs:
33299           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
33300             methods
33301           - Fixed broken XChangeProperty calls (marshalling messed up things)
33302         * X11Structs.cs: Added enums and structs required for Size hinting
33303         * NotifyIcon.cs: Added & implemented
33304
33305 2005-01-26  Jackson Harper  <jackson@ximian.com>
33306
33307         * TabControl.cs: Space vertically layed out tabs properly.
33308
33309 2005-01-26  Peter Bartok  <pbartok@novell.com>
33310
33311         * Form.cs (CreateClientParams): Always set the location to 0,0
33312           since we're a child window.
33313
33314         * Control.cs (SetVisibleCore): Always explicitly setting the location
33315           of a toplevel window, apparently X11 doesn't like to move windows
33316           while they're not mapped.
33317
33318 2005-01-26  Jackson Harper  <jackson@ximian.com>
33319
33320         * TabControl.cs: Implement FillToRight size mode with vertically
33321         rendered tabs.
33322
33323 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33324
33325         * ControlPaint.cs, ThemeWin32Classic.cs
33326                 - Fixes DrawFocusRectangle
33327
33328 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
33329
33330         * MenuAPI.cs:
33331                 - MenuBar tracking only starts when item is first clicked
33332                 - Fixes menu hidding for multiple subitems
33333                 - Unselect item in MenuBar when item Executed
33334                 - Fixes bug 71495
33335
33336 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
33337
33338         * ListControl.cs:
33339                 - IsInputKey for ListBox
33340         * ListBox.cs:
33341                 - Focus item
33342                 - Shift and Control item selection
33343                 - Implement SelectionMode.MultiExtended
33344                 - Fixes RightToLeft
33345         * ComboBox.cs:
33346                 - IsInputKey implemented
33347                 - Do not generate OnTextChangedEdit on internal txt changes
33348                 
33349 2005-01-23  Peter Bartok  <pbartok@novell.com>
33350
33351         * AccessibleObject.cs: Partially implemented Select()
33352         * MonthCalendar.cs: Added missing attributes and events
33353         * Form.cs: Fixed CreateParams behaviour, now controls derived from
33354           form can properly override CreateParams.
33355         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
33356           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
33357           Control performs Invalidate & Update
33358         * NativeWindow (CreateHandle): Added special handling for Form
33359           and Form.FormParent classes to allow overriding of From.CreateParams
33360         * Control.cs:
33361           - ControlNativeWindow: Renamed 'control' variable to more intuitive
33362             name 'owner'
33363           - ControlNativeWindow: Added Owner property
33364           - Removed usage of Refresh() on property changes, changed into
33365             Invalidate(), we need to wait until the queue is processed for
33366             updates, direct calls might cause problems if not all vars for
33367             Paint are initialized
33368           - Added call to UpdateStyles() when creating the window, to set any
33369             styles that CreateWindow might have ignored.
33370           - Added support for Form CreateParent overrides to UpdateStyles()
33371         * MessageBox.cs: Removed no longer needed FormParent override stuff,
33372           CreateParams are now properly overridable
33373         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
33374           CreateParams are now properly overridable
33375
33376 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
33377
33378         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
33379         OnTextBoxChanged.
33380
33381         Capture LostFocus and OnTextBoxChanged.  The later introduces a
33382         recursive invocation that I have not figured out yet.
33383
33384         Reset the timer when not using (it was accumulating).
33385
33386
33387         (OnTextBoxChanged): Set UserEdit to true here to track whether the
33388         user has made changes that require validation.
33389
33390         Reset changing to avoid loops.
33391
33392 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
33393
33394         * NumericUpDown.cs: Display value at startup.
33395
33396         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
33397         ValidateEditText.
33398
33399         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
33400         filled in.  Added some basic parsing of text.
33401
33402         Still missing the OnXXX method overrides, and figuring out the
33403         events that must be emitted.
33404
33405         * UpDownBase.cs: Handle UserEdit on the Text property.
33406         
33407 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
33408
33409         * ComboBox.cs:
33410           - Fixes IntegralHeight
33411           - ToString method
33412
33413 2005-01-21  Jackson Harper  <jackson@ximian.com>
33414
33415         * TabControl.cs: Set the SelectedIndex property when SelectedTab
33416         is set so that the page visibility is updated and the tabs are
33417         sized correctly.
33418
33419 2005-01-21  Jackson Harper  <jackson@ximian.com>
33420
33421         * TabControl.cs: Use cliping rectangle for blitting. Give the
33422         theme the clipping rect so we can do clipping while
33423         drawing. Remove some debug code.
33424
33425 2005-01-21  Jackson Harper  <jackson@ximian.com>
33426
33427         * TabPage.cs: Add a new method so tab pages can force the tab
33428         control to recalculate the tab page sizes.
33429         * TabControl.cs: UpdateOwner needs to make the tab control recalc
33430         sizes.
33431
33432 2005-01-20  Jackson Harper  <jackson@ximian.com>
33433
33434         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
33435
33436 2005-01-20  Jackson Harper  <jackson@ximian.com>
33437
33438         * TreeView.cs: Set the bounds for nodes properly. They were
33439         getting screwed up when checkboxes were not enabled, but images
33440         were.
33441
33442 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
33443
33444         * ListBox.cs:
33445                 - Owner draw support
33446                 - Fixes
33447                 
33448 2005-01-20  Jackson Harper  <jackson@ximian.com>
33449
33450         * XplatUIStructs.cs: More misc keys
33451         * X11Keyboard.cs: Ignore some control keys.
33452
33453 2005-01-20  Jackson Harper  <jackson@ximian.com>
33454
33455         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
33456         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
33457
33458 2005-01-19  Peter Bartok  <pbartok@novell.com>
33459
33460         * Control.cs: Un-selecting the control when it is loosing focus
33461
33462 2005-01-19  Jackson Harper  <jackson@ximian.com>
33463
33464         * TreeView.cs: Hook up to the text controls leave event so we can
33465         end editing when the users clicks outside the text box.
33466         
33467 2005-01-19  Jackson Harper  <jackson@ximian.com>
33468
33469         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
33470         get set in the conversion array.
33471
33472 2005-01-19  Peter Bartok  <pbartok@novell.com>
33473
33474         * Application.cs (ModalRun): Added a call to CreateControl to ensure
33475           focus is properly set
33476         * Button.cs:
33477           - Added missing attributes
33478           - removed styles, those are already set in the base class
33479         * ButtonBase.cs:
33480           - Added missing attributes
33481           - Added clip window styles
33482         * CheckBox.cs: Added missing attributes
33483         * CommonDialog.cs:
33484           - FormParentWindow.CreateParams: Added required clip styles
33485         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
33486           also filters modifier keys
33487         * MessageBox.cs:
33488           - Added assignment of Accept and Cancel button to enable Enter
33489             and Esc keys in MessageBox dialogs
33490           - FormParentWindow.CreateParams: Added required clip styles
33491         * RadioButton.cs: Added missing attributes
33492         * TextControl.cs: No longer draws selection if control does not
33493           have focus
33494         * TextBoxBase.cs:
33495           - Now draws simple rectangle around test area to make it obvious
33496             there's a control. This is a hack until we properly support borders
33497           - A few simple fixes to support selections better, now erases selected
33498             text when typing, and resets selection when using movement keys
33499
33500 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
33501
33502         * UpDownBase.cs: Added some new properties.
33503
33504         * DomainUpDown.cs: Implement a lot to get my test working.
33505
33506 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33507
33508         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
33509
33510 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33511
33512         * OSXStructs (WindowAttributes): Fixed csc complaints
33513
33514 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33515
33516         * XplayUIOSX.cs:
33517           OSXStructs.cs: Initial refactor to move enums and consts into
33518           OSXStructs and use them in the driver for greater readability.
33519
33520 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
33521
33522         * XplatUIOSX.cs: Initial support for Standard Cursors.
33523         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
33524
33525 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
33526
33527         * ComboBox.cs: ability to change style when the ctrl is already
33528         created, missing methods and events, bug fixes, signature fixes
33529
33530 2005-01-19  Peter Bartok  <pbartok@novell.com>
33531
33532         * Cursors.cs (ctor): Added ctor to fix signature
33533
33534 2005-01-18  Peter Bartok  <pbartok@novell.com>
33535
33536         * Button.cs: Implemented DoubleClick event
33537         * ButtonBase.cs:
33538           - Fixed keyboard handling to behave like MS, where the press of
33539             Spacebar is equivalent to a mousedown, and the key release is
33540             equivalent to mouseup. Now a spacebar push will give the same
33541             visual feedback like a mouse click.
33542           - Added missing attributes
33543           - Added ImeModeChanged event
33544           - Added support for generating DoubleClick event for derived classes
33545         * CheckBox.cs:
33546           - Implemented DoubleClick event
33547           - Added missing attributes
33548         * CommonDialog.cs: Added missing attribute
33549         * ContextMenu.cs: Added missing attributes
33550         * RadioButton.cs:
33551           - AutoChecked buttons do not allow to be unselected when clicked
33552             (otherwise we might end up with no selected buttons in a group)
33553           - Added missing attributes
33554           - Implemented DoubleClickEvent
33555         * ThreadExceptionDialog.cs: Enabled TextBox code
33556
33557 2005-01-18  Peter Bartok  <pbartok@novell.com>
33558
33559         * Form.cs: Removed debug output
33560         * Button.cs: Added support for DoubleClick method
33561
33562 2005-01-18  Peter Bartok  <pbartok@novell.com>
33563
33564         * Form.cs:
33565           - Added method to parent window that allows triggering size
33566             calculations when a menu is added/removed
33567           - set_Menu: Cleaned up mess from early days of Form and Control,
33568             now properly triggers a recalc when a menu is added/removed
33569           - Added case to select form itself as focused form if no child
33570             controls exist
33571           - Added PerformLayout call when showing dialog, to ensure properly
33572             placed controls
33573         * Control.cs:
33574           - Select(): Made internal so Form can access it
33575           - Focus(): Only call Xplat layer if required (avoids loop), and sets
33576             status
33577         * Application.cs (Run): Removed hack and calls PerformLayout instead
33578           to trigger calculation when Form becomes visible
33579
33580 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
33581
33582         * ComboBox.cs: fixes for ownerdraw
33583
33584 2005-01-18  Peter Bartok  <pbartok@novell.com>
33585
33586         * TextControl.cs:
33587           - Sentinel is no longer static, each Document gets it's own, this
33588             avoids locking or alternatively overwrite problems when more
33589             than one text control is used simultaneously.
33590           - Switched to use Hilight and HilightText brushes for text selection
33591
33592         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
33593
33594 2005-01-18  Peter Bartok  <pbartok@novell.com>
33595
33596         * Control.cs:
33597           - Hooked up the following events:
33598                 o ControlAdded
33599                 o ControlRemoved
33600                 o HandleDestroyed
33601                 o ImeModeChanged
33602                 o ParentChanged
33603                 o TabStopChanged
33604                 o Invalidated
33605                 o SystemColorsChanged
33606                 o ParentFontChanged
33607                 o Move
33608           - Removed debug output
33609           - Added a call to the current theme's ResetDefaults when a color change
33610             is detected
33611         * Form.cs: Now setting the proper ImeMode
33612         * Theme.cs: Defined a method to force recreation of cached resources
33613           and rereading of system defaults (ResetDefaults())
33614         * ThemeWin32Classic.cs: Added ResetDefaults() stub
33615
33616 2005-01-17  Peter Bartok  <pbartok@novell.com>
33617
33618         * Control.cs: Added missing attributes
33619
33620 2005-01-17  Jackson Harper  <jackson@ximian.com>
33621
33622         * TreeNode.cs: Implement editing. Add missing properties selected
33623         and visible.
33624         * TreeView.cs: Implement node editing. Also some fixes to use
33625         Invalidate (invalid area) instead of Refresh when selecting.
33626
33627 2005-01-17  Peter Bartok  <pbartok@novell.com>
33628
33629         * Control.cs:
33630           - Implemented InvokeGotFocus() method
33631           - Implemented InvokeLostFocus() method
33632           - Implemented InvokePaint() method
33633           - Implemented InvokePaintBackground() method
33634           - Implemented InvokeClick() method
33635           - Implemented FindForm() method
33636           - Implemented RectangleToClient() method
33637           - Implemented ClientToRectangle() method
33638           - Implemented ResetBackColor() method
33639           - Implemented ResetCursor() method
33640           - Implemented ResetFont() method
33641           - Implemented ResteForeColor() method
33642           - Implemented ResetImeMode() method
33643           - Implemented ResetLeftToRight() method
33644           - Implemented ResetText() method
33645           - Implemented Scale() methods
33646           - Implemented ScaleCore() method
33647           - Implemented Update() method
33648           - Removed unused variables
33649           - Stubbed AccessibilityNotifyClients and
33650             ControlAccessibleObject.NotifyClients() methods (dunno what to do
33651             with those yet)
33652           - Now setting proper default for RightToLeft property
33653           - Fixed bug in SetClientSizeCore that would cause windows to get
33654             really big
33655           - Now sending Click/DoubleClick events
33656           - Now selecting controls when left mouse button is clicked on
33657             selectable control
33658         * AccessibleEvents.cs: Added
33659         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33660         * XplatUIOSX.cs: Stubbed UpdateWindow() method
33661         * XplatUIWin32.cs: Implemented UpdateWindow() method
33662         * XplatUIX11.cs: Implemented UpdateWindow() method
33663         * Form.cs: Removed stray semicolon causing CS0162 warning
33664         * ThemeWin32Classic.cs: Fixed unused variable warnings
33665         * ScrollableControl.cs: Now calls base method for ScaleCore
33666         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33667           style to avoid interference with internal click handler (which is
33668           different than standard Control click handling)
33669         * RadioButton.cs:
33670           - Now unchecks all sibling radio buttons when control is
33671             selected (Fixes #68756)
33672           - Removed internal tabstop variable, using the one inherited from
33673             Control
33674
33675 2005-01-17  Jackson Harper  <jackson@ximian.com>
33676
33677         * NavigateEventArgs.cs: Fix base type.
33678         * LinkLabel.cs: Sig fix
33679         
33680 2005-01-17  Jackson Harper  <jackson@ximian.com>
33681
33682         * TreeView.cs: Only invalidate the effected nodes bounds when
33683         selecting nodes.
33684
33685 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33686
33687         * XplatUIWin32.cs: fixes Win32 marshaling
33688         * XplatUIX11.cs: fixes method signature
33689
33690 2005-01-17  Peter Bartok  <pbartok@novell.com>
33691
33692         * XplatUIX11.cs: Clean up resources when we no longer need them
33693
33694 2005-01-17  Peter Bartok  <pbartok@novell.com>
33695
33696         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33697           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33698           and DestroyCursor() methods.
33699         * Cursor.cs: Partially implemented, now supports standard cursors;
33700           still contains some debug code
33701         * Cursors.cs: Implemented class
33702         * Control.cs:
33703           - WndProc(): Added handling of WM_SETCURSOR message, setting the
33704             appropriate cursor
33705           - Implemented Cursor property
33706           - Replaced break; with return; more straightforwar and possibly
33707             faster
33708           - Now properly setting the result for WM_HELP
33709         * X11Structs.cs: Added CursorFontShape enum
33710         * XplatUIStructs.cs:
33711           - Added StdCursor enum (to support DefineStdCursor() method)
33712           - Added HitTest enum (to support sending WM_SETCURSOR message)
33713         * XplatUIX11.cs:
33714           - Now sends the WM_SETCURSOR message
33715           - Implemented new cursor methods
33716         * XplatUIOSX.cs: Stubbed new cursor methods
33717         * XplatUIWin32.cs:
33718           - Implemented new cursor methods
33719           - Added GetSystemMetrics function and associated enumeration
33720
33721 2005-01-15  Peter Bartok  <pbartok@novell.com>
33722
33723         * Control.cs:
33724           - WndProc(): Now handles EnableNotifyMessage
33725           - SelectNextControl(): Fixed bug where if no child or sibling
33726             controls exist we looped endlessly
33727
33728 2005-01-14  Jackson Harper  <jackson@ximian.com>
33729
33730         * TreeView.cs: Recalculate the tab pages when a new one is added
33731         so that the proper bounding rects are created.
33732
33733 2005-01-14  Jackson Harper  <jackson@ximian.com>
33734
33735         * TreeView.cs: Draw a gray box instead of a grip in the lower
33736         right hand corner when there are both horizontal and vertical
33737         scroll bars.
33738
33739 2005-01-14  Jackson Harper  <jackson@ximian.com>
33740
33741         * Control.cs: When erasing backgrounds use FromHwnd instead of
33742         FromHdc when there is a NULL wparam. This occurs on the X driver.
33743         * XplatUIX11.cs: Set the wparam to NULL.
33744
33745 2005-01-13  Jackson Harper  <jackson@ximian.com>
33746
33747         * PictureBox.cs: Implement missing methods (except ToString, need
33748         to test that on windows) and events. When visibility is changed we
33749         need to redraw the image because the buffers are killed. When size
33750         is changed refresh if the sizemode needs it.
33751
33752 2005-01-13  Peter Bartok  <pbartok@novell.com>
33753
33754         * Control.cs (SelectNextControl): Was using wrong method to select
33755           a control
33756
33757 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33758
33759         * ComboBox.cs: fixes dropstyle
33760
33761 2005-01-13  Peter Bartok  <pbartok@novell.com>
33762
33763         * Form.cs:
33764           - Implemented Select() override
33765           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
33766           - Now sets keyboard focus on startup
33767         * Control.cs (SelectNextControl): Now properly handles directed=true
33768         * TextBoxBase.cs:
33769           - WndProc: Now passes tab key on to base if AcceptTabChar=false
33770           - Added (really bad) focus rectangle (mostly for testing)
33771         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
33772           to enforce redraw on focus changes
33773         * ContainerControl.cs:
33774           - Fixed detection of Shift-Tab key presses
33775           - Fixed traversal with arrow keys
33776         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
33777           gonna keep this or if it's complete yet
33778         
33779 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
33780
33781         * ComboBox.cs: missing properties, fixes
33782
33783 2005-01-13  Peter Bartok  <pbartok@novell.com>
33784
33785         * Panel.cs (ctor): Setting Selectable window style to off
33786         * Splitter.cs (ctor): Setting Selectable window style to off
33787         * GroupBox.cs (ctor): Setting Selectable window style to off
33788         * Label.cs (ctor): Setting Selectable window style to off
33789
33790 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
33791
33792         * UpDownBase.cs (InitTimer): If the timer has been already
33793         created, enable it.
33794
33795         Use a TextBox instead of a Label.
33796
33797 2005-01-12  Jackson Harper  <jackson@ximian.com>
33798
33799         * TreeView.cs: Refresh the tree after sorting the nodes. Always
33800         draw the connecting node lines (when ShowLines is true).
33801         * TreeNode.cs: The nodes index can now be updated. This is used
33802         when a node collection is sorted.
33803         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
33804         insert or an existing unsorted node collection can be sorted.
33805         
33806 2005-01-12  Peter Bartok  <pbartok@novell.com>
33807
33808         * ContainerControl.cs: Implemented ProcessDialogKeys()
33809
33810 2005-01-12  Peter Bartok  <pbartok@novell.com>
33811
33812         * Control.cs:
33813           - Implemented SelectNextControl() method
33814           - Several focus related bug fixes
33815           - Fixed Docking calculations to match MS documentation and
33816             behaviour
33817
33818 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
33819
33820         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
33821         bug fixes
33822
33823 2005-01-12  Peter Bartok  <pbartok@novell.com>
33824
33825         * Control.cs:
33826           - Fixed broken Contains() method
33827           - Implemented GetNextControl() method. Finally. This is the pre-
33828             requisite for focus handling.
33829
33830 2005-01-12  Peter Bartok  <pbartok@novell.com>
33831
33832         * OSXStrucs.cs: Added
33833
33834 2005-01-12  Peter Bartok  <pbartok@novell.com>
33835
33836         * XplatUIWin32.cs:
33837           - Removed PeekMessageFlags
33838           - Implemented SetWindowStyle() method
33839         * XplatUIStructs.cs: Added PeekMessageFlags
33840         * X11Structs: Added missing border_width field to XWindowChanges struct
33841         * XplatUIX11.cs:
33842           - PeekMessage: Now throws exception if flags which are not yet
33843             supported are passed
33844           - Implemented SetWindowStyle() method
33845           - Fixed SetZOrder to handle AfterHwnd properly
33846         * XplatUI.cs: Added SetWindowStyle() method
33847         * XplatUIDriver.cs: Added SetWindowStyle() abstract
33848         * Control.cs:
33849           - Implemented UpdateStyles() method
33850           - Implemented UpdateZOrder() method
33851         * XplatUIOSX.cs: Added SetWindowStyle() stub
33852
33853 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
33854
33855         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
33856         button mouse).
33857
33858
33859 2005-01-11  Jackson Harper  <jackson@ximian.com>
33860
33861         * TreeView.cs: Still need to draw lines to siblings even if out of
33862         the current node is out of the clip.
33863
33864 2005-01-11  Jackson Harper  <jackson@ximian.com>
33865
33866         * TreeView.cs: When setting the hbar/vbar/grip position use
33867         SetBounds so that perform layout is only called once. Also suspend
33868         and resume layout so layout is only done once for all controls.
33869         - Removed some debug fluff
33870         * SizeGrip.cs: Call base implmentation in overriding methods.
33871         - When visibility is changed the drawing buffers are killed so we
33872         need to redraw.
33873
33874 2005-01-11  Jackson Harper  <jackson@ximian.com>
33875
33876         * TreeView.cs: Calculate the open node count while drawing. This
33877         saves us an entire tree traversal for every paint operation. Use
33878         a member var for the open node count so less vars are passed around.
33879
33880 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
33881
33882         * MonthCalendar.cs:
33883         - fixed selection to use mousemove, not mouse polling on timer
33884         * ThemeWin32Classic.cs
33885         - removed redundant unused variable "no_more_content"
33886         
33887 2005-01-11  Peter Bartok  <pbartok@novell.com>
33888
33889         * XplatUIX11.cs (DoEvents): Needs to return when no more events
33890           are pending, so it now calls PeekMessage instead of GetMessage;
33891           implemented a incomplete version of PeekMessage
33892         
33893 2005-01-11  Peter Bartok  <pbartok@novell.com>
33894
33895         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
33896           I18n issues
33897         * TextBoxBase.cs: Added sending of TextChanged event
33898
33899 2005-01-10  Jackson Harper  <jackson@ximian.com>
33900
33901         * TreeView.cs: Try not to draw outside the clipping rectangle on
33902         each node element.
33903
33904 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
33905
33906         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
33907
33908 2005-01-10  Jackson Harper  <jackson@ximian.com>
33909
33910         * TreeView.cs:
33911         - Implement fast scrolling. Now only the newly
33912         exposed nodes are drawn and the old image is moved using the
33913         XplatUI::ScrollWindow method.
33914         - Factor in height of nodes when calculating whether or not the
33915         node is in the clipping rect.
33916
33917 2005-01-10  Jackson Harper  <jackson@ximian.com>
33918
33919         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
33920
33921 2005-01-10  Peter Bartok  <pbartok@novell.com>
33922
33923         * Application.cs: Added temporary hack to resolve all our resize
33924           required issues on startup. This will get fixed properly at
33925           some point in the future
33926
33927 2005-01-10  Jackson Harper  <jackson@ximian.com>
33928
33929         * SizeGrip.cs: New internal class that is used as a sizing
33930         grip control...hence the name.
33931
33932 2005-01-10  Peter Bartok  <pbartok@novell.com>
33933
33934         * Control.cs: Implemented proper TabIndex handling, now assigning
33935           a tabindex when a control is added to a container
33936         * GroupBox.cs (ctor): Now sets the Container style bit, required
33937           for Control.GetNextControl()
33938
33939 2005-01-09  Jackson Harper  <jackson@ximian.com>
33940
33941         * TextBoxBase.cs: Clear window when scrolling (fixes build).
33942
33943 2005-01-09  Peter Bartok <pbartok@novell.com>
33944
33945         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33946           XplatUIX11.cs: Added ability to control ScrollWindow expose and
33947           an overload for ScrollWindow to allow only scrolling a rectangle
33948
33949 2005-01-09  Peter Bartok <pbartok@novell.com>
33950
33951         * Form.cs:
33952           - Implemented SetDesktopBounds method
33953           - Implemented SetDesktopLocation method
33954
33955 2005-01-08  Jackson Harper  <jackson@ximian.com>
33956
33957         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33958         the node count has changed, this removes to VScroll::Refresh calls
33959         when drawing.
33960
33961 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
33962
33963         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33964
33965 2005-01-07  Jackson Harper  <jackson@ximian.com>
33966
33967         * TreeNode.cs: Just update the single node when it is
33968         checked. Don't refresh after toggling, the Expand/Collapse already
33969         handles this.
33970         * TreeView.cs: Respect clipping a little more when drawing. Try
33971         not to redraw things that don't need to be redrawn. Just hide the
33972         scrollbars when they are no longer needed instead of removing
33973         them, so they don't have to be created again and again.
33974         
33975 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
33976
33977         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
33978         coordinates to window space to place the caret properly, FIXED.
33979         Implement GetWindowState & SetWindowState
33980
33981 2005-01-06  Peter Bartok <pbartok@novell.com>
33982
33983         * Form.cs:
33984           - Implemented ClientSize property
33985           - Implemented DesktopBounds property
33986           - Implemented DesktopLocation property
33987           - Implemented IsRestrictedWindow property
33988           - Implemented Size property
33989           - Implemented TopLevel property
33990           - Implemented FormWindowState property
33991         * Control.cs:
33992           - Implemented GetTopLevel() method
33993           - Implemented SetTopLevel() method
33994         * X11Structs.cs (Atom):
33995           - Added AnyPropertyType definition
33996           - Added MapState definiton and updated XWindowAttribute struct
33997         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33998         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33999         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
34000         * XplatUIWin32.cs:
34001           - Implemented GetWindowState() and SetWindowState() methods
34002           - Fixed Win32GetWindowLong return type
34003         * XplatUIX11.cs:
34004           - Introduced central function for sending NET_WM messages
34005           - Implemented GetWindowState() and SetWindowState() methods
34006         * TextBoxBase.cs (set_Lines):
34007           - Now uses Foreground color for text added via Text property (Duh!)
34008           - Added code to remember programmatically requested size (fixes
34009             behaviour when Multiline is set after Size)
34010           - Added AutoSize logic
34011
34012 2005-01-06  Jackson Harper  <jackson@ximian.com>
34013
34014         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
34015
34016 2005-01-06  Jackson Harper  <jackson@ximian.com>
34017
34018         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
34019         set to less then 0.
34020
34021 2005-01-06  Jackson Harper  <jackson@ximian.com>
34022
34023         * ScrollableControl.cs: Lazy init the scrollbars.
34024         
34025 2005-01-06  Jackson Harper  <jackson@ximian.com>
34026
34027         * Theme.cs: Speed up getting pens and solid brushes, by using
34028         their ARGB as a hash instead of tostring and not calling Contains.
34029
34030 2005-01-06  Peter Bartok <pbartok@novell.com>
34031
34032         * Form.cs:
34033           - Implemented OnActivated and OnDeactivate event trigger
34034           - Implemented Activate() method
34035           - Fixed ShowDialog() to activate the form that was active before
34036             the dialog was shown
34037         * XplatUIX11.cs:
34038           - Added global active_window var that tracks the currently active
34039             X11 window
34040           - Now always grabs Property changes from the root window to always
34041             catch changes on the active window property
34042           - Added code to PropertyNotify handler to send Active/Inactive
34043             messages when state changes. This puts X11 and Win32 en par on
34044             WM_ACTIVATE notifications (except for double notifications when
34045             the user clicks away from our modal window to another one of our
34046             windows)
34047
34048 2005-01-05  Jackson Harper  <jackson@ximian.com>
34049
34050         * ImageList.cs: Implment ctor
34051
34052 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34053
34054         * XplatUIOSX.cs: Implement Activate/SetTopmost
34055
34056 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34057
34058         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
34059
34060 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
34061
34062         * XplatUIOSX.cs: Implement GetActive/SetFocus.
34063
34064 2005-01-05  Peter Bartok <pbartok@novell.com>
34065
34066         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
34067           XplatUIOSX.cs: Added GetActive method to return the currently
34068           active window for the application (or null, if none is active)
34069         * Form.cs:
34070           - Implemented ActiveForm
34071           - Commented out owner assignment for modal dialogs (causes problems
34072             on Win32, since the owner will be disabled)
34073           - Reworked some Active/Focus handling (still incomplete)
34074         * CommonDialog.cs: Commented out owner assignment for modal dialogs
34075           (causes problems on Win32, since the owner will be disabled)
34076         * IWin32Window: Added ComVisible attribute
34077
34078 2005-01-05  Peter Bartok <pbartok@novell.com>
34079
34080         * ToolTip.cs (WndProc): Enable setting focus now that we have the
34081           required XplatUI functions.
34082
34083 2005-01-05  Peter Bartok <pbartok@novell.com>
34084
34085         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
34086           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
34087           to implement focus and activation handling; still incomplete and
34088           with debug output
34089
34090 2005-01-04  Peter Bartok <pbartok@novell.com>
34091
34092         * TextBoxBase.cs: Changed access level for Document property to
34093           match switch to internal for TextControl
34094
34095 2005-01-04  Peter Bartok <pbartok@novell.com>
34096
34097         * AccessibleObject: Added ComVisible attribute
34098
34099 2005-01-04  Jackson Harper  <jackson@ximian.com>
34100
34101         * X11Keyboard.cs: Remove unneeded var.
34102
34103 2005-01-04  Jackson Harper  <jackson@ximian.com>
34104
34105         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
34106         but PAINT.
34107         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
34108         ClientMessage. This makes apps exit cleanly (more often).
34109         
34110 2005-01-04  Jackson Harper  <jackson@ximian.com>
34111
34112         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
34113         handling focus, return correct colors and fonts,
34114         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
34115         handle selection, horizontal scrolling, and mouse interaction.
34116
34117 2005-01-04  Peter Bartok <pbartok@novell.com>
34118
34119         * ICommandExecutor.cs: Added
34120         * IDataGridColumnStyleEditingNotificationService.cs: Added
34121         * IFeatureSupport.cs: Added
34122         * IFileReaderService.cs: Added
34123         * IDataObject.cs: Added ComVisible attribute
34124         * AmbientProperties.cs: Added
34125         * BaseCollection.cs: Added missing attributes
34126         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
34127         * BaseCollection.cs: Added missing attributes
34128         * Binding.cs: Added TypeConverter attribute
34129         * BindingContext.cs: Added DefaultEvent attribute
34130         * BindingsCollection.cs: Added DefaultEvent attribute
34131         * Button.cs: Added DefaultValue attribute
34132         * DragEventArgs.cs: Added ComVisible attribute
34133         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
34134         * KeyEventArgs.cs: Added ComVisible attribute
34135         * KeyPressEventArgs.cs: Added ComVisible attribute
34136         * MouseEventArgs.cs: Added ComVisible attribute
34137         * NavigateEventArgs.cs: Added
34138         * NavigateEventHandler.cs: Added
34139         * FeatureSupport.cs: Added
34140         * OSFeature.cs: Added
34141         * Theme.cs: Added abstract Version property to support OSFeature
34142         * ThemeWin32Classic.cs: Added Version property to
34143           support OSFeature.Themes
34144         * ProgressBar.cs: Removed OnPaintBackground override, not required since
34145           the proper styles to avoid background drawing are set, also doesn't
34146           match MS signature
34147         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
34148         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
34149         * ScrollEventArgs.cs: Added ComVisible attribute
34150         * SplitterEventArgs.cs: Added ComVisible attribute
34151         * AccessibleSelection.cs: Added Flags attribute
34152         * Appearance.cs: Added ComVisible attribute
34153         * Border3DSide.cs: Added ComVisible attribute
34154         * Border3DStyle.cs: Added ComVisible attribute
34155         * BorderStyle.cs: Added ComVisible attribute
34156         * DragAction.cs: Added ComVisible attribute
34157         * ErrorBlinkStyle.cs: Added
34158         * ScrollEventType.cs: Added ComVisible attribute
34159         * AnchorStyles.cs: Added Editor attribute
34160         * DockStyle.cs: Added Editor attribute
34161         * HorizontalAlignment.cs: Added ComVisible attribute
34162         * HelpEventArgs.cs: Added ComVisible attribute
34163         * PaintEventArgs.cs: Added IDisposable
34164
34165 2005-01-04  Peter Bartok <pbartok@novell.com>
34166
34167         * TextControl.cs: Switched Line, LineTag and Document classes to
34168           internal
34169
34170 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34171
34172         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
34173         Simple mode, fixes, IntegralHeight, etc.
34174
34175 2005-01-04  Peter Bartok <pbartok@novell.com>
34176
34177         * TextBoxBase.cs: Using proper font variable now
34178
34179 2005-01-04  Peter Bartok <pbartok@novell.com>
34180
34181         * Form.cs (ShowDialog): Set parent to owner, if provided
34182         * GroupBox.cs: Removed unused vars
34183         * TextControl.cs:
34184           - Added GetHashCode() for Document and LineTag classes
34185           - Removed unused variables
34186           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
34187             to allow translation between continuous char position and line/pos
34188         * CheckBox.cs: Removed vars that are provided by base class
34189         * RadioButton.cs: Removed vars that are provided by base class, added
34190           new keyword where required
34191         * LinkLabel.cs: Added new keyword where required
34192         * Control.cs (WndProc): Removed unused variable
34193         * TextBoxBase.cs:
34194           - Finished SelectionLength property
34195           - Implemented SelectionStart property
34196           - Implemented Text property
34197           - Removed unused vars
34198         * MessageBox.cs: Added new keyword where required
34199         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
34200           WndProc signature
34201         * MenuAPI.cs: Added new keyword where required
34202         * ButtonBase.cs: Removed vars that are provided by base class, added
34203           new keyword where required
34204         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
34205           argument to double, to allow compiling with csc 2.0 (Atsushi ran
34206           into this)
34207         * Application.cs (Run): Now triggers the ThreadExit event
34208         * CommonDialog.cs: Added new keyword where required; now properly sets
34209           parent (owner) for dialog
34210         * XplatUIX11.cs: Commented out unused vars
34211         * StatusBar.cs: Fixed signature for Text property
34212         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
34213
34214 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
34215
34216         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
34217         TrackBar.cs, MonthCalendar.cs: remove unused vars
34218
34219 2005-01-03  Jackson Harper  <jackson@ximian.com>
34220
34221         * ThemeWin32Classic.cs:
34222         * X11Keyboard.cs: Remove unused vars.
34223
34224 2005-01-03  Peter Bartok  <pbartok@novell.com>
34225
34226         * TextBox.cs:
34227           - set_Text: Tied into TextControl
34228           - set_TextAlignment: Tied into TextControl
34229         * TextControl.cs:
34230           - Added alignment properties and implemented alignment handling
34231             and drawing (still has a bug, not generating proper expose events)
34232           - Added new Line() constructor to allow passing the line alignment
34233           - Fixed selection setting, properly handling end<start now
34234           - Added aligment considerations to RecalculateDocument()
34235         * TextBoxBase.cs:
34236           - Now properly enforces control height for single line controls
34237           - Added support for CharacterCasing
34238           - Added IsInputKey override
34239           - Fixed Keys.Enter logic
34240           - Added SetBoundsCore override
34241           - Fixed mouse selection handling
34242
34243 2005-01-03  Jackson Harper  <jackson@ximian.com>
34244
34245         * TreeView.cs:
34246           - Collapse and uncheck all nodes when CheckBoxes is disabled.
34247           - Checkboxes are always aligned to the bottom of the node,
34248           regardless of item height.
34249           - Use the node bounds to draw the text so we can center it when
34250           the item height is greater then the font height.
34251           - Node::Bounds are only the text part of the node.
34252         * TreeNode.cs: New method to combine collapsing and unchecking all
34253           nodes recursively.
34254
34255 2005-01-02  Jackson Harper  <jackson@ximian.com>
34256
34257         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
34258         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
34259         tree when a check is changed. TODO: Only refresh the checked node.
34260
34261 2004-12-30  Jackson Harper  <jackson@ximian.com>
34262
34263         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
34264         * TreeNode.cs: When collapsing make sure to never collapse the
34265         root node.
34266
34267 2004-12-29  Jackson Harper  <jackson@ximian.com>
34268
34269         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
34270         
34271 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
34272
34273         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
34274
34275 2004-12-28  Peter Bartok  <pbartok@novell.com>
34276
34277         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
34278           not yet assigned
34279
34280 2004-12-28  Peter Bartok  <pbartok@novell.com>
34281
34282         * Control.cs (WndProc): Added WM_HELP handler, now generates
34283           HelpRequested event
34284         * Form.cs: Added HelpButton property and required support code
34285         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
34286
34287 2004-12-28  Peter Bartok  <pbartok@novell.com>
34288
34289         * CommonDialog.cs:
34290           - Made DialogForm.owner variable internal
34291           - Added check to ensure owner form is set before setting
34292             owner properties in CreateParams
34293
34294 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
34295
34296         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
34297           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
34298           GetCursorPos.  Fix major visibility issues.  Rework the windowing
34299           system to support borderless/titleless windows (implements menus).
34300           Fix GetWindowPos.  Implement initial background color support for
34301           views.
34302
34303 2004-12-28  Peter Bartok  <pbartok@novell.com>
34304
34305         * Form.cs (get_CreateParams): Make sure we have an owner before using
34306           the owner variable. Implement proper default if no owner exists
34307
34308 2004-12-28  Peter Bartok  <pbartok@novell.com>
34309
34310         * In preparation for making Managed.Windows.Forms the default build target
34311           for System.Windows.Forms, the following stubbed files were added.
34312           Dialogs are currently being implemented by contributors and are only
34313           short-term place holders.
34314         * ColorDialog.cs: Initial check-in (minmal stub)
34315         * DataGrid.cs: Initial check-in (minimal stub)
34316         * DataGridLineStyle.cs: Initial check-in (minimal stub)
34317         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
34318         * DataGridTableStyle.cs: Initial check-in (minimal stub)
34319         * FontDialog.cs: Initial check-in (minimal stub)
34320         * FileDialog.cs: Initial check-in (minimal stub)
34321         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
34322         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
34323         * OpenFileDialog: Initial check-in (minimal stub)
34324         * IComponentEditorPageSite.cs: Initial check-in
34325         * Splitter.cs: Initial check-in (for Jackson)
34326         * SplitterEventArgs.cs: Initial check-in (for Jackson)
34327         * SplitterEventHandler.cs: Initial check-in (for Jackson)
34328         * TextBox.cs: Initial check-in; still needs some wiring to
34329           TextControl backend
34330         * Form.cs: Implemented ControlBox property
34331         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
34332         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
34333         * TextControl.cs: Added selection functionality; added todo header
34334         * TextBoxBase.cs:
34335           - Implemented Lines property
34336           - Implemented TextHeight property
34337           - Implemented SelectedText property
34338           - Implemented SelectionLength property
34339           - Implemented SelectAll method
34340           - Implemented ToString method
34341           - Removed and cleaned up some debug code
34342           - Implemented (still buggy) mouse text selection
34343
34344 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
34345
34346         * ComboBox.cs: Complete DropDownList implementation, fixes.
34347
34348 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
34349
34350         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
34351         * ComboBoxStyle.cs: ComboBoxStyle enum
34352         * ComboBox.cs: Initial work on ComboBox control
34353
34354 2004-12-21  Peter Bartok  <pbartok@novell.com>
34355
34356         * Control.cs (ctor, CreateParams): Moved setting of is_visible
34357           forward so that anything that creates a window gets the default,
34358           also no longer uses Visible property in CreateParams to avoid
34359           walking up the parent chain and possibly get the wrong visible
34360           status. Fixed IsVisible to no longer walk up to the parent.
34361
34362 2004-12-21  Peter Bartok  <pbartok@novell.com>
34363
34364         * Form.cs (ShowDialog): Unset modality for the proper window
34365  
34366 2004-12-20  Peter Bartok  <pbartok@novell.com>
34367
34368         * CommonDialog.cs: Initial check-in
34369
34370 2004-12-20  Peter Bartok  <pbartok@novell.com>
34371
34372         * Control.cs (Visible): Now uses the parent window instead of the
34373           client area window for the property
34374
34375         * Form.cs
34376           - ShowDialog(): Now uses the proper window for modality
34377           - The default visibility state for the form parent is now false. This
34378             will prevent the user from seeing all the changes to the form and
34379             its controls before the application hits Application.Run()
34380           - Removed some stale commented out code
34381
34382         * NativeWindow.cs:
34383           - Added FindWindow() method to have a method to check for existence
34384             of a window handle
34385           - Added ability to override default exception handling (for example
34386             when debugging with VS.Net; to do this the ExternalExceptionHandler
34387             define must be set
34388           - Removed some useless debug output
34389
34390         * XplatUIX11.cs:
34391           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
34392             not working as expected
34393           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
34394             property to allow switching back to the modal window if focus is
34395             given to another one of our windows (Application Modal)
34396           - Now only sets override_redirect if we create a window
34397             without WS_CAPTION
34398           - Moved EventMask selection before mapping of newly created window
34399             so we can catch the map event as well
34400           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
34401           - Added various Atom related DllImports
34402           - Implemented Exit() method
34403           - .ctor() : No longer shows window if WS_VISIBLE is not defined
34404             in the CreateParams
34405
34406         * MessageBox.cs: Now properly deals with the FormParent window by
34407           providing an override the FormParent CreateParams property to
34408           set as POPUP instead of OVERLAPPED window.
34409
34410 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34411
34412         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
34413         Minor code cleanup.
34414
34415 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
34416         
34417         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
34418
34419 2004-12-18  Peter Bartok  <pbartok@novell.com>
34420
34421         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
34422           implementing SetModal() method
34423
34424 2004-12-18  Peter Bartok  <pbartok@novell.com>
34425
34426         * X11Structs.cs (XGCValues): Fixed type of function element
34427         * XplatUI.cs: Added ScrollWindow() method
34428         * XplatUIDriver.cs: Added ScrollWindow() abstract
34429         * XplatUIWin32.cs: Implemented ScrollWindow() method
34430         * XplatUIX11.cs: Implemented ScrollWindow() method
34431         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
34432
34433 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34434
34435         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
34436         Some more keyboard support (INCOMPLETE)
34437
34438 2004-12-17  Peter Bartok  <pbartok@novell.com>
34439
34440         * TextControl.cs:
34441         - Added color attribute to line tags.
34442         - Added color argument to all functions dealing with tags
34443         - Added color argument support to various functions
34444         - Fixed miss-calculation of baseline/shift in certain circumstances
34445
34446         * TextBoxBase.cs: Added new color option to test code
34447
34448 2004-12-17  Jackson Harper  <jackson@ximian.com>
34449
34450         * TreeNode.cs:
34451         * MonthCalendar.cs: Signature fixes
34452
34453 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34454
34455         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
34456         keyboard event moved it.  Create a new graphics context for each paint resolves this
34457
34458 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
34459
34460         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
34461         Make caret exist and go blink blink.  Initial keyboard support.
34462         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
34463         works.
34464
34465 2004-12-17  Jackson Harper  <jackson@ximian.com>
34466
34467         * XplatUIStructs.cs: Updated set of virtual keycodes.
34468         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
34469
34470 2004-12-17  Jackson Harper  <jackson@ximian.com>
34471
34472         * XplatUIX11.cs: Prune old keyboard code.
34473
34474 2004-12-17  Jackson Harper  <jackson@ximian.com>
34475
34476         * XplatUIX11.cs: When generating mouse wparams get the modifier
34477         keys from the ModifierKeys property.
34478
34479 2004-12-17  Jackson Harper  <jackson@ximian.com>
34480
34481         * X11Keyboard.cs: Send up/down input when generating
34482         messages. Remove some unused vars.
34483
34484 2004-12-17  Jackson Harper  <jackson@ximian.com>
34485
34486         * TabControl.cs:
34487         * TreeView.cs: get rid of warnings.
34488
34489 2004-12-17  Jackson Harper  <jackson@ximian.com>
34490
34491         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
34492
34493 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
34494
34495         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
34496           CheckedListBox.cs: Implementation
34497
34498 2004-12-17  Peter Bartok  <pbartok@novell.com>
34499
34500         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
34501
34502 2004-12-16  Peter Bartok  <pbartok@novell.com>
34503
34504         * TextControl.cs:
34505           - InsertCharAtCaret(): Fixed start pos fixup
34506           - CaretLine_get: No longer derives the line from the tag, the tag
34507             could be stale if lines in the document have been added or deleted
34508           - RebalanceAfterDelete(): Fixed bug in balancing code
34509           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
34510           - Line.Streamline(): Now can also elminate leading empty tags
34511           - DumpTree(): Added a few more tests and prevented exception on
34512             uninitialized data
34513           - Added Debug section for Combining lines
34514           - Delete(): Now copies all remaining properties of a line
34515           
34516         * TextBoxBase.cs:
34517           - Left mousebutton now sets the caret (and middle button still acts
34518             as formatting tester, which must go away soon)
34519           - Added Debug section for Deleting/Combining lines
34520           - Fixed calculations for UpdateView after Combining lines
34521
34522 2004-12-16  Peter Bartok  <pbartok@novell.com>
34523
34524         * TextControl.cs: Now properly aligns text on a baseline, using the
34525           new XplatUI.GetFontMetrics() method. Simplified several calculations
34526         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
34527           defined
34528
34529 2004-12-16  Peter Bartok  <pbartok@novell.com>
34530
34531         * XplatUI.cs: Added GetFontMetrics() method
34532         * XplatUIDriver.cs: Added GetFontMetrics() abstract
34533         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
34534           into libgdiplus, our private GetFontMetrics function
34535         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
34536         * XplatUIWin32.cs: Implemented GetFontMetrics() method
34537
34538 2004-12-16  Jackson Harper  <jackson@ximain.com>
34539
34540         * XplatUIStruct.cs: Add enum for dead keys
34541         * X11Keyboard.cs: Map and unmap dead keys.
34542
34543 2004-12-16  Jackson Harper  <jackson@ximian.com>
34544
34545         * X11Keyboard.cs: Detect and use the num lock mask.
34546
34547 2004-12-16  Peter Bartok  <pbartok@novell.com>
34548
34549         * Control.cs (CreateGraphics): Added check to make sure the
34550           handle of the window exists before calling Graphics.FromHwnd()
34551
34552 2004-12-16  Peter Bartok  <pbartok@novell.com>
34553
34554         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
34555           contains a lot of code that's not supposed to be there for the
34556           real thing, but required for developing/testing the textbox
34557           backend.
34558
34559 2004-12-16  Peter Bartok  <pbartok@novell.com>
34560
34561         * TextControl.cs:
34562         - Fixed Streamline method
34563         - Added FindTag method to Line
34564         - Added DumpTree method for debugging
34565         - Added DecrementLines() method for deleting lines
34566         - Fixed UpdateView to update the cursor to end-of-line on single-line
34567           updates
34568         - Added PositionCaret() method
34569         - Fixed MoveCaret(LineDown) to move into the last line, too
34570         - Added InsertChar overload
34571         - Fixed InsertChar tag offset calculations
34572         - Added DeleteChar() method
34573         - Added Combine() method for folding lines
34574         - Fixed Delete() method, no longer allocates wasted Line object and
34575           now copies all properties when swapping nodes
34576         - Delete() method now updates document line counter
34577
34578 2004-12-15  Jackson Harper  <jackson@ximian.com>
34579
34580         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
34581         * X11Keyboard.cs: Expose the currently selected modifier keys
34582         through a property.
34583
34584 2004-12-15  Peter Bartok  <pbartok@novell.com>
34585
34586         * TextControl.cs: Initial check-in. Still incomplete
34587
34588 2004-12-15  Jackson Harper  <jackson@ximian.com>
34589
34590         * TreeNode.cs:
34591         * TreeView.cs: Fix build on csc (second time today ;-))
34592
34593 2004-12-15  Jackson Harper  <jackson@ximian.com>
34594
34595         * TreeView.cs: Store the treenodes plus/minus box bounds when it
34596         is calculated and use this for click testing.
34597         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
34598
34599 2004-12-15  Jackson Harper  <jackson@ximian.com>
34600
34601         * TreeView.cs: Pass the nodes image index to the image list when
34602         drawing that image.
34603
34604 2004-12-15  Jackson Harper  <jackson@ximian.com>
34605
34606         * X11Keyboard.cs: Set messages hwnd.
34607         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
34608         post_message calls.
34609
34610 2004-12-15  Jackson Harper  <jackson@ximian.com>
34611
34612         * X11Keyboard.cs: Fix to compile with csc.
34613         
34614 2004-12-15  Jackson Harper  <jackson@ximian.com>
34615
34616         * X11Structs.cs: Add key mask values
34617         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
34618         * X11Keyboard.cs: New file - Extrapolates and interpolates key
34619         down/up foo into WM_CHAR foo
34620         * KeyboardLayouts.cs: Common keyboard layouts
34621         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
34622         post messages into the main queue.
34623
34624 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
34625
34626         * Button.cs: implement ProcessMnemonic
34627         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
34628           brushes everytime
34629         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
34630         * ButtonBase.cs: Show HotkeyPrefix (not the &)
34631
34632 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
34633         
34634         * MonthCalendar.cs: Implemented click-hold for next/previous month
34635           and date selection
34636           
34637 2004-12-11  Peter Bartok  <pbartok@novell.com>
34638
34639         * X11Structs.cs:
34640           - Added XKeyboardState (moved from XplatUIX11.cs)
34641           - Added XCreateGC related enums and structures
34642           - Added GXFunction for XSetFunction
34643
34644         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34645
34646         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34647           CaretVisible() calls
34648
34649         * ToolTip.cs: Added code to prevent stealing focus from app windows
34650
34651         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34652           DestroyCaret, SetCaretPos and CaretVisible)
34653
34654         * XplatUIX11.cs:
34655           - Added implementation for caret functions
34656           - Moved hover variables into a struct, to make it a bit easier
34657             on the eyes and to debug
34658           - Removed XKeyboardState (moved to XplatUIX11.cs)
34659           - Moved Keyboard properties into the properties region
34660
34661         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34662           call to get a graphics context for our control
34663
34664         * XplatUIOSX.cs: Added empty overrides for the new caret functions
34665
34666         * TreeView.cs: Fixed bug. No matter what color was set it would always
34667           return SystemColors.Window
34668
34669         * XplatUIWin32.cs: Implemented caret overrides
34670
34671 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
34672
34673         * ListBox.cs: fire events, implement missing methods and properties,
34674         sorting.
34675
34676 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
34677
34678         * MonthCalendar.cs: invalidation bug fixing
34679         * ThemeWin32Classic.cs: paint fixing
34680
34681 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
34682
34683         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34684         prepare the CGContextRef there now.
34685
34686 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
34687
34688         * MonthCalendar.cs:
34689           - optimisationL only invalidate areas that have changed
34690         * ThemeWin32Classic.cs:
34691           - only paint parts that intersect with clip_area
34692
34693 2004-12-09  Peter Bartok  <pbartok@novell.com>
34694
34695         * Application.cs: Undid changes from r37004 which cause problems
34696         on X11
34697
34698 2004-12-09  Ravindra  <rkumar@novell.com>
34699
34700         * ToolBar.cs: Added support for displaying ContextMenu
34701         attached to a button on ToolBar.
34702         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34703         property.
34704
34705 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34706
34707         * Label.cs: autosize works in text change and removes unnecessary
34708         invalidate
34709
34710 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
34711
34712         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34713         remove warnings
34714
34715 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
34716
34717         * XplatUIOSX.cs: Added mouse move/click/grab support
34718         Remove some debugging WriteLines not needed anymore.
34719         Add window resizing/positioning.
34720         Fix visibility on reparenting.
34721
34722 2004-12-08  Peter Bartok  <pbartok@novell.com>
34723
34724         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34725
34726 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
34727
34728         * XplatUIOSX.cs: Initial checkin
34729         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
34730
34731 2004-12-03  Ravindra <rkumar@novell.com>
34732
34733         * ListView.cs: Added some keybindings and fixed scrolling.
34734         ScrollBars listen to ValueChanged event instead of Scroll
34735         Event. This would let us take care of all changes being
34736         done in the scrollbars' values programmatically or manually.
34737         * ListView.cs (CanMultiselect): Added a check for shift key.
34738         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
34739         * ListViewItem.cs (Clone): Fixed. We need to make a copy
34740         of ListViewSubItemCollection as well.
34741
34742 2004-12-06  Peter Bartok <pbartok@novell.com>
34743
34744         * Control.cs (Parent): Added check and exception to prevent
34745         circular parenting
34746
34747 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
34748
34749         * ListBox.cs: implemented clipping, selection single and multiple,
34750         bug fixing
34751
34752 2004-12-03  Ravindra <rkumar@novell.com>
34753
34754         * ListView.cs (ListView_KeyDown):
34755         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
34756         when CTRL key is pressed.
34757         * ListViewItem.cs (Selected): Fixed setting the property.
34758
34759 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
34760
34761         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
34762
34763         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
34764         MinimizeBox, ShowInTaskbar, TopMost properties.
34765
34766         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
34767         will be implemented).
34768
34769 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
34770
34771         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
34772
34773         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
34774         tests.
34775         
34776         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
34777         
34778         * TreeView.cs: BackColor is Colors.Window.
34779
34780 2004-12-01  Jackson Harper  <jackson@ximian.com>
34781
34782         * TreeView.cs: When resizing the tree if the user is making it
34783         smaller we don't get expose events, so we need to handle adding
34784         the horizontal scrollbar in the size changed handler as well as
34785         the expose handler.
34786
34787 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
34788
34789         * DrawItemState.cs: fixes wrong enum values
34790
34791 2004-12-01  Jackson Harper  <jackson@ximian.com>
34792
34793         * TreeView.cs: Resize the hbar as well as the vbar on resize.
34794
34795 2004-12-01  Jackson Harper  <jackson@ximian.com>
34796
34797         * NodeLabelEditEventArgs.cs:
34798         * NodeLabelEditEventHandler.cs:
34799         * OpenTreeNodeEnumerator.cs:
34800         * TreeNode.cs:
34801         * TreeNodeCollection.cs:
34802         * TreeView.cs:
34803         * TreeViewAction.cs:
34804         * TreeViewCancelEventArgs.cs:
34805         * TreeViewCancelEventHandler.cs:
34806         * TreeViewEventArgs.cs:
34807         * TreeViewEventHandler.cs: Initial implementation.
34808
34809 2004-12-01  Ravindra <rkumar@novell.com>
34810
34811         * ListView.cs (CalculateListView): Fixed scrolling related
34812         calculations. Also, removed some debug statements from other
34813         places.
34814         * ListViewItem.cs: Changed access to 'selected' instance variable
34815         from private to internal.
34816         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
34817
34818 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
34819
34820         * ThemeWin32Classic.cs: remove cache of brush and pens for
34821         specific controls and use the global system, fixes scrollbutton
34822         bugs (for small sizes, disabled, etc)
34823         
34824         * ScrollBar.cs: does not show the thumb for very small controls
34825         (as MS) and allow smaller buttons that the regular size
34826
34827 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
34828
34829         * UpDownBase.cs: Add abstract methods for the interface.
34830         Add new virtual methods (need to be hooked up to TextEntry when it
34831         exists).
34832         Add override methods for most features.
34833         Computes the size, forces the height of the text entry.
34834
34835         * NumericUpDown.cs: Put here the current testing code.
34836
34837         * Set eol-style property on all files that do not have mixed line
34838         endings, to minimize the future problems.  There are still a few
34839         files with mixed endings, and someone should choose whether they
34840         want to move it or not.
34841
34842 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
34843
34844         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
34845         System.Colors
34846         
34847 2004-11-30  Ravindra <rkumar@novell.com>
34848
34849         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
34850         drawing and replaced use of SystemColors by theme colors.
34851         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
34852         * ListView.cs (ListViewItemCollection.Add): Throw exception when
34853         same ListViewItem is being added more than once.
34854
34855 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
34856
34857         * MonthCalendar.cs:
34858           - ControlStyles love to make the control not flicker
34859           
34860 2004-11-30  Peter Bartok  <pbartok@novell.com>
34861
34862         * CharacterCasing.cs: Added
34863
34864 2004-11-29  Peter Bartok  <pbartok@novell.com>
34865
34866         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34867           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
34868           I am removing these files as they conflict with already completed
34869           work. While it is fantastic to get contributions to MWF, I
34870           respectfully ask that everyone please coordinate their contributions
34871           through mono-winforms-list or #mono-winforms at this time. We're
34872           explicitly avoiding stubbing and don't want controls that don't have
34873           their basic functionality implemented in svn. Please also see
34874           http://www.mono-project.com/contributing/winforms.html
34875
34876
34877 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
34878
34879         * Application.cs (ModalRun): Don't hang after exit.
34880
34881         * Theme.cs: New TreeViewDefaultSize property.
34882
34883         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
34884         with less hardcoded SystemColors constant.
34885         Implemented TreeViewDefaultSize.
34886
34887         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34888         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
34889
34890
34891 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
34892
34893         * MonthCalendar.cs:
34894           - Fix NextMonthDate and PrevMonthDate click moving calendar
34895
34896 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
34897
34898         * MonthCalendar.cs:
34899           - Fix usage of ScrollChange Property when scrolling months
34900
34901 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
34902
34903         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
34904          - Fixes menu destroying
34905          - Support adding and removing items on already created menus
34906
34907 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
34908
34909         * MonthCalendar.cs:
34910           - Re-worked all bolded dates handling to match win32
34911         * ThemeWin32Classic.cs:
34912           - Fixed rendering with bolded dates
34913
34914 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
34915
34916         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
34917         - Horizontal scroolbar
34918         - Multicolumn
34919         - Fixes
34920
34921
34922 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
34923
34924         * MonthCalendar.cs:
34925           - Fix Usage of MaxSelectionCount from SelectionRange
34926           - Fixed Shift + Cursor Selection
34927           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
34928           - Fixed normal cursor selection to be compat with win32
34929           - Fixed Shift + Mouse Click selection
34930
34931 2004-11-24  Peter Bartok <pbartok@novell.com>
34932
34933         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
34934         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34935         * XplatUIX11.cs:
34936           - CreatedKeyBoardMsg now updates keystate with Alt key
34937           - Added workaround for timer crash to CheckTimers, Jackson will
34938             develop a proper fix and check in later
34939           - Implemented DispatchMessage
34940           - Removed calling the native window proc from GetMessage (call
34941             now moved to DispatchMessage)
34942
34943         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34944           the keydata (Fixes bug #69831)
34945
34946         * XplatUIWin32.cs:
34947           - (DispatchMessage): Switched to return IntPtr
34948           - Added DllImport for SetFocus
34949
34950 2004-11-24  Ravindra <rkumar@novell.com>
34951
34952         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34953         background drawing.
34954         * ListViewItem.cs: Fixed various properties, calculations
34955         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34956         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34957         and some internal properties. Fixed MouseDown handler and Paint
34958         method.
34959
34960 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34961
34962         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34963
34964 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34965
34966         * ContainerControl.cs: correct accidental check in of local changes
34967
34968 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
34969
34970         * ThemeWin32Classic.cs:
34971                 - Fixed Drawing Last month in grid (sometimes not showing)
34972         * MonthCalendar.cs:
34973                 - Fixed title width calculation bug (makeing title small)
34974
34975 2004-11-23  Peter Bartok <pbartok@novell.com>
34976
34977         * XplatUIX11.cs:
34978           - Added generation of WM_MOUSEHOVER event
34979           - Added missing assignment of async_method atom
34980           - Fixed WM_ERASEBKGND; now only redraws the exposed area
34981
34982 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34983
34984         * ThemeWin32Classic.cs:
34985                 - Fixed Drawing of today circle when showtodaycircle not set
34986                 - fixed drawing of first and last month in the grid (gay dates)
34987         * MonthCalendar.cs:
34988                 - Fixed Drawing of today circle
34989                 - Fixed drawing of grady dates
34990                 - Fixed HitTest for today link when ShowToday set to false
34991                 - Fixed DefaultSize to obey ShowToday
34992
34993 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
34994
34995         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34996         * System.Windows.Forms/Theme.cs
34997         * MonthCalendar.cs: added for MonthCalendar
34998         * SelectionRange.cs: added for MonthCalendar
34999         * Day.cs: added for MonthCalendar: added for MonthCalendar
35000         * DateRangeEventArgs.cs: added for MonthCalendar
35001         * DateRangeEventHandler.cs: added for MonthCalendar
35002
35003 2004-11-22  Ravindra <rkumar@novell.com>
35004
35005         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
35006         property.
35007
35008 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
35009
35010         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
35011         event handler.
35012         
35013         * NumericUpDown.cs: Added new implementation.
35014         * UpDownBase.cs: Added new implementation.
35015
35016         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
35017         implementations.
35018         
35019         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
35020         implementations.
35021
35022         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
35023         methods.
35024
35025 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
35026
35027         * Timer.cs  (Dispose): Should call the base dispose when
35028         overriding.
35029
35030 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35031
35032         * ScrollBar.cs: updates thumb position when max, min or increment
35033         is changed
35034
35035 2004-11-21  Ravindra <rkumar@novell.com>
35036
35037         * ListView.cs: Implemented item selection, activation and
35038         column header style. Fixed properties to do a redraw, if
35039         required. Added support for MouseHover, DoubleClick, KeyDown
35040         and KeyUp event handling and some minor fixes.
35041         * ListViewItem.cs: Fixed constructor.
35042         * ThemeWin32Classic.cs: Improved drawing for ListView.
35043
35044 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
35045
35046         * ThemeWin32Classic.cs: initial listbox drawing code
35047         * DrawMode.cs: new enumerator
35048         * ListControl.cs: stubbed class
35049         * ListBox.cs: initial implementation
35050         * Theme.cs: new methods definitions
35051         * SelectionMode.cs: new enumerator
35052
35053 2004-11-17  Peter Bartok  <pbartok@novell.com>
35054
35055         * XplatUIWin32.cs: Added double-click events to the class style
35056         * Control.cs (WndProc):
35057           - Added handling of click-count to MouseDown/ MouseUp events.
35058           - Added handling of middle and right mouse buttons
35059           - Removed old debug code
35060
35061 2004-11-17  Jackson Harper  <jackson@ximian.com>
35062
35063         * XplatUIX11.cs: Use the new Mono.Unix namespace.
35064
35065 2004-11-17  Ravindra <rkumar@novell.com>
35066
35067         * ListView.cs: Added event handling for MouseMove/Up/Down.
35068         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
35069         * ThemeWin32Classic.cs: We need to clear the graphics context and
35070         draw column header in a proper state.
35071
35072
35073 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
35074
35075         *  Menu.cs: fixes signature
35076
35077 2004-11-16  Peter Bartok  <pbartok@novell.com>
35078
35079         * XplatUIX11.cs (GetMessage): Implemented generation of
35080           double click mouse messages
35081
35082 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
35083
35084         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
35085         not by menu
35086
35087 2004-11-11  Peter Bartok  <pbartok@novell.com>
35088
35089         * HandleData.cs: Added Visible property
35090         * XplatUIX11.cs (IsVisible): Now uses Visible property from
35091           HandleData
35092         * XplatUIX11.cs: Removed old debug leftovers
35093         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
35094         * Control.cs (WndProc): Removed old debug leftovers,
35095           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
35096           needed WM_SIZE handling
35097
35098 2004-11-11  Jackson Harper  <jackson@ximian.com>
35099
35100         * OwnerDrawPropertyBag.cs:
35101         * TreeViewImageIndexConverter.cs: Initial implementation
35102
35103 2004-11-10  Jackson Harper  <jackson@ximian.com>
35104
35105         * ThemeWin32Classic.cs:
35106         * TabControl.cs: instead of moving tabs by the slider pos just
35107         start drawing at the tab that is offset by the slider. This way
35108         scrolling always moves by exactly one tab.
35109
35110 2004-11-10  Jackson Harper  <jackson@ximian.com>
35111
35112         * TabControl.cs: You can only scroll left when the slider has
35113         already ben moved right.
35114         
35115 2004-11-10  Jackson Harper  <jackson@ximian.com>
35116
35117         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
35118         the clip area.
35119         
35120 2004-11-10  Jackson Harper  <jackson@ximian.com>
35121
35122         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
35123         clip area.
35124         
35125 2004-11-09  Jackson Harper  <jackson@ximian.com>
35126
35127         * TabControl.cs (CalcXPos): New helper method so we can determine
35128         the proper place to start drawing vertical tabs.
35129         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
35130         
35131 2004-11-09  Jackson Harper  <jackson@ximian.com>
35132
35133         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
35134         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
35135         and Bottom, left and right are illegal values for this and
35136         multiline is enabled when the alignment is set to left or right.
35137         (DrawTab): Each alignment block should draw the text itself now
35138         because Left requires special love. Also add rendering for Left
35139         aligned tabs.
35140         
35141 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
35142
35143         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
35144         does not destroy the windows, removes debugging messages
35145
35146 2004-11-09  jba  <jba-mono@optusnet.com.au>
35147
35148         * ThemeWin32Classic.cs
35149         (DrawButtonBase): Fix verticle text rect clipping in windows
35150         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35151         rendering and incorrect text rect clipping
35152         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
35153         rendering and incorrect text rect clipping
35154         
35155 2004-11-08  Jackson Harper  <jackson@ximian.com>
35156
35157         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
35158         bottom when they are bottom aligned so the bottoms of the tabs get
35159         displayed.
35160         * TabControl.cs (DropRow): Move rows up instead of down when the
35161         tab control is bottom aligned.
35162
35163 2004-11-08 13:59  pbartok
35164
35165         * XplatUIX11.cs:
35166           - Added handling for various window styles
35167           - Added handling for popup windows
35168           - Added SetTopmost handling
35169
35170 2004-11-08 13:55  pbartok
35171
35172         * XplatUIWin32.cs:
35173           - Added argument to SetTopmost method
35174           - Fixed broken ClientToScreen function
35175
35176 2004-11-08 13:53  pbartok
35177
35178         * XplatUIStructs.cs:
35179           - Added missing WS_EX styles
35180
35181 2004-11-08 13:53  pbartok
35182
35183         * XplatUI.cs, XplatUIDriver.cs:
35184           - Added argument to SetTopmost
35185
35186 2004-11-08 13:52  pbartok
35187
35188         * X11Structs.cs:
35189           - Added XSetWindowAttributes structure
35190           - Improved XWindowAttributes structure
35191           - Added SetWindowValuemask enum
35192           - Added window creation arguments enum
35193           - Added gravity enum
35194           - Added Motif hints structure
35195           - Added various Motif flags and enums
35196           - Added PropertyMode enum for property functions
35197
35198 2004-11-08 13:50  pbartok
35199
35200         * Form.cs:
35201           - Fixed arguments for updated SetTopmost method
35202
35203 2004-11-08 13:49  pbartok
35204
35205         * ToolTip.cs:
35206           - Fixed arguments for updated SetTopmost function
35207           - Fixed usage of PointToClient
35208
35209 2004-11-08 13:44  pbartok
35210
35211         * MenuAPI.cs:
35212           - Added Clipping of children and siblings
35213
35214 2004-11-08 13:41  pbartok
35215
35216         * MainMenu.cs:
35217           - Removed SetMenuBarWindow call. We do this in Form.cs
35218
35219 2004-11-08 13:40  jackson
35220
35221         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
35222           scrolling jimmi in the correct location with bottom aligned tabs
35223
35224 2004-11-08 13:36  pbartok
35225
35226         * ContainerControl.cs:
35227           - Implemented BindingContext
35228           - Implemented ParentForm
35229
35230 2004-11-08 12:46  jackson
35231
35232         * TabControl.cs: Put bottom rendered tabs in the right location
35233
35234 2004-11-08 07:15  jordi
35235
35236         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
35237           removes dead code
35238
35239 2004-11-05 17:30  jackson
35240
35241         * TabControl.cs: When selected tabs are expanded make sure they
35242           don't go beyond the edges of the tab control
35243
35244 2004-11-05 14:57  jackson
35245
35246         * TabControl.cs: Reset show_slider so if the control is resized to
35247           a size where it is no longer needed it's not displayed anymore
35248
35249 2004-11-05 13:16  jackson
35250
35251         * TabControl.cs: Make tab pages non visible when added to the
35252           control
35253
35254 2004-11-05 12:42  jackson
35255
35256         * TabControl.cs: Implement SizeMode.FillToRight
35257
35258 2004-11-05 12:16  jackson
35259
35260         * Control.cs: Do not call CreateHandle if the handle is already
35261           created
35262
35263 2004-11-05 11:46  jackson
35264
35265         * TabControl.cs: Remove superflous call to CalcTabRows
35266
35267 2004-11-05 09:07  jackson
35268
35269         * XplatUIX11.cs: Update for Mono.Posix changes
35270
35271 2004-11-05 07:00  ravindra
35272
35273         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
35274           scrolling.
35275
35276 2004-11-04 22:47  jba
35277
35278         * ThemeWin32Classic.cs:
35279           - Fix Button rendering for FlatStyle = Flat or Popup
35280           - Fix RadioButton and CheckBox rendering when Appearance = Button
35281             (normal and flatstyle).
35282           - Correct outer rectangle color when drawing focus rectangle
35283           - Adjust button bounds to be 1 px smaller when focused
35284           - Make button not draw sunken 3d border when pushed (windows compat)
35285           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
35286           - Offset the text in RadioButton and Checkbox when being rendered as
35287           a button.
35288           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
35289           radiobuttons
35290           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
35291           - Fixed disabled text rendering for normally rendered radiobuttons
35292
35293 2004-11-04 10:26  jackson
35294
35295         * TabControl.cs: Recalculate tab rows when resizing
35296
35297 2004-11-04 07:47  jordi
35298
35299         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
35300           collection completion, drawing issues, missing features
35301
35302 2004-11-04 05:03  ravindra
35303
35304         * ScrollBar.cs:
35305                 - We need to recalculate the Thumb area when
35306                 LargeChange/maximum/minimum values are changed.
35307           - We set the 'pos' in UpdatePos() method to minimum, if it's less
35308                 than minimum. This is required to handle the case if large_change is
35309                 more than max, and use LargeChange property instead of large_change
35310                 variable.
35311           - We return max+1 when large_change is more than max, like MS does.
35312
35313 2004-11-04 04:29  ravindra
35314
35315         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
35316                 - Changed default value signatures (prefixed all with ListView).
35317                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
35318                 ListView.
35319           - Fixed calculations for ListViewItem and implemented Clone()
35320           method.
35321
35322 2004-11-04 04:26  ravindra
35323
35324         * Theme.cs, ThemeWin32Classic.cs:
35325                 - Changed default ListView values signatures (prefixed all with
35326                 ListView).
35327           - Fixed default size values for VScrollBar and HScrollBar.
35328                 - Fixed DrawListViewItem method.
35329
35330 2004-11-04 04:05  ravindra
35331
35332         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
35333
35334 2004-11-04 04:04  ravindra
35335
35336         * ImageList.cs: Implemented the missing overload for Draw method.
35337
35338 2004-11-03 19:29  jackson
35339
35340         * TabControl.cs: Handle dropping rows on selection properly
35341
35342 2004-11-03 11:59  jackson
35343
35344         * TabControl.cs: remove debug code
35345
35346 2004-11-03 11:52  jackson
35347
35348         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
35349           the scrolly widgerywoo
35350
35351 2004-11-02 13:52  jackson
35352
35353         * TabControl.cs: Resize the tab pages and tabs when the tab control
35354           is resized
35355
35356 2004-11-02 13:40  jackson
35357
35358         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
35359           selected tab to the bottom
35360
35361 2004-11-02 13:39  jackson
35362
35363         * TabPage.cs: Store the tab pages row
35364
35365 2004-11-02 12:33  jordi
35366
35367         * MenuItem.cs: fixes handle creation
35368
35369 2004-11-02 11:42  jackson
35370
35371         * TabControl.cs: signature fix
35372
35373 2004-11-02 08:56  jackson
35374
35375         * TabControl.cs: Calculate whether the tab is on an edge properly.
35376           Remove top secret debugging code
35377
35378 2004-11-01 19:57  jackson
35379
35380         * TabControl.cs: Add click handling, and proper sizing
35381
35382 2004-11-01 19:47  jackson
35383
35384         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
35385           tab controls
35386
35387 2004-11-01 19:39  jackson
35388
35389         * TabPage.cs: add internal property to store the bounds of a tab
35390           page
35391
35392 2004-10-30 04:23  ravindra
35393
35394         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
35395           values.
35396
35397 2004-10-30 04:21  ravindra
35398
35399         * ListView.cs, ListViewItem.cs: Added support for scrolling and
35400           fixed calculations.
35401
35402 2004-10-30 03:06  pbartok
35403
35404         * XplatUIX11.cs:
35405           - Removed extension of DllImported libs
35406
35407 2004-10-29 09:55  jordi
35408
35409         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
35410           navigation, itemcollection completion, menu fixes
35411
35412 2004-10-27 22:58  pbartok
35413
35414         * XplatUIX11.cs:
35415           - Now throws a nice error message when no X display could be opened
35416
35417 2004-10-26 13:51  jordi
35418
35419         * ListView.cs: removes warning
35420
35421 2004-10-26 03:55  ravindra
35422
35423         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
35424           ThemeWin32Classic.cs: Some formatting for my last checkins.
35425
35426 2004-10-26 03:36  ravindra
35427
35428         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
35429           control and default values.
35430
35431 2004-10-26 03:35  ravindra
35432
35433         * Theme.cs: Added some default values for ListView control.
35434
35435 2004-10-26 03:33  ravindra
35436
35437         * ToolBar.cs: ToolBar should use the user specified button size, if
35438           there is any. Added a size_specified flag for the same.
35439
35440 2004-10-26 03:33  ravindra
35441
35442         * ColumnHeader.cs: Added some internal members and calculations for
35443           ColumnHeader.
35444
35445 2004-10-26 03:32  ravindra
35446
35447         * ListViewItem.cs: Calculations for ListViewItem.
35448
35449 2004-10-26 03:31  ravindra
35450
35451         * ListView.cs: Added some internal members and calculations for
35452           ListView.
35453
35454 2004-10-22 13:31  jordi
35455
35456         * MenuAPI.cs: speedup menus drawing
35457
35458 2004-10-22 13:16  jackson
35459
35460         * XplatUIX11.cs: Make sure to update exposed regions when adding an
35461           expose event
35462
35463 2004-10-22 11:49  jackson
35464
35465         * Control.cs: oops
35466
35467 2004-10-22 11:41  jackson
35468
35469         * Control.cs: Check to see if the window should have its background
35470           repainted by X when drawing.
35471
35472 2004-10-22 11:31  jackson
35473
35474         * XplatUIX11.cs: When invalidating areas only use XClearArea if
35475           clear is true, this way we do not get flicker from X repainting the
35476           background
35477
35478 2004-10-22 11:28  jackson
35479
35480         * XEventQueue.cs: Queue properly
35481
35482 2004-10-21 09:38  jackson
35483
35484         * XEventQueue.cs: Fix access modifier
35485
35486 2004-10-21 09:36  jackson
35487
35488         * XEventQueue.cs: Don't loose messages
35489
35490 2004-10-21 09:22  jackson
35491
35492         * XEventQueue.cs: Don't loose messages
35493
35494 2004-10-20 04:15  jordi
35495
35496         * BootMode.cs: enum need it by SystemInfo
35497
35498 2004-10-19 21:58  pbartok
35499
35500         * XplatUIWin32.cs:
35501           - Small sanity check
35502
35503 2004-10-19 21:56  pbartok
35504
35505         * Form.cs:
35506           - Added private FormParentWindow class which acts as the container
35507             for our form and as the non-client area where menus are drawn
35508           - Added/Moved required tie-ins to Jordi's menus
35509           - Fixed/Implemented the FormStartPosition functionality
35510
35511 2004-10-19 21:52  pbartok
35512
35513         * Control.cs:
35514           - Removed unneeded locals
35515           - Added code to all size and location properties to understand and
35516             deal with the parent container of Form
35517
35518 2004-10-19 21:33  pbartok
35519
35520         * Application.cs:
35521           - Fixed to deal with new Form subclasses for menus
35522
35523 2004-10-19 17:48  jackson
35524
35525         * XEventQueue.cs: commit correct version of file
35526
35527 2004-10-19 16:50  jackson
35528
35529         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
35530
35531 2004-10-19 16:15  jordi
35532
35533         * MenuAPI.cs: MenuBarCalcSize returns the height
35534
35535 2004-10-19 08:31  pbartok
35536
35537         * Control.cs:
35538           - Added missing call to PreProcessMessage before calling OnXXXKey
35539           methods
35540
35541 2004-10-19 00:04  ravindra
35542
35543         * ToolTip.cs: Fixed constructor.
35544
35545 2004-10-18 09:31  jordi
35546
35547         * MenuAPI.cs: menuitems in menubars do not have shortcuts
35548
35549 2004-10-18 09:26  jordi
35550
35551         * MenuItem.cs: fixes MenuItem class signature
35552
35553 2004-10-18 08:56  jordi
35554
35555         * MenuAPI.cs: prevents windows from showing in the taskbar
35556
35557 2004-10-18 00:28  ravindra
35558
35559         * ToolTip.cs: Suppressed a warning message.
35560
35561 2004-10-18 00:27  ravindra
35562
35563         * Control.cs: Default value of visible property must be true.
35564
35565 2004-10-17 23:19  pbartok
35566
35567         * ToolTip.cs:
35568           - Complete implementation
35569
35570 2004-10-17 23:19  pbartok
35571
35572         * XplatUIX11.cs:
35573           - Added EnableWindow method
35574           - Added SetModal stub
35575           - Added generation of WM_ACTIVATE message (still needs testing)
35576           - Added SetTopMost stub
35577           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
35578
35579 2004-10-17 23:17  pbartok
35580
35581         * XplatUIWin32.cs:
35582           - Removed VirtualKeys to XplatUIStructs
35583           - Implemented SetTopMost method
35584           - Implemented EnableWindow method
35585           - Bugfix in ScreenToClient()
35586           - Bugfixes in ClientToScreen()
35587
35588 2004-10-17 22:51  pbartok
35589
35590         * XplatUIStructs.cs:
35591           - Added WS_EX styles to WindowStyles enumeration
35592
35593 2004-10-17 22:50  pbartok
35594
35595         * XplatUI.cs, XplatUIDriver.cs:
35596           - Added method for enabling/disabling windows
35597           - Added method for setting window modality
35598           - Added method for setting topmost window
35599
35600 2004-10-17 22:49  pbartok
35601
35602         * ThemeWin32Classic.cs:
35603           - Added ToolTip drawing code
35604
35605 2004-10-17 22:49  pbartok
35606
35607         * Theme.cs:
35608           - Added ToolTip abstracts
35609
35610 2004-10-17 22:47  pbartok
35611
35612         * Form.cs:
35613           - Fixed Form.ControlCollection to handle owner relations
35614           - Added Owner/OwnedForms handling
35615           - Implemented Z-Ordering for owned forms
35616           - Removed unneeded private overload of ShowDialog
35617           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
35618             so I hope)
35619           - Fixed Close(), had wrong default
35620           - Added firing of OnLoad event
35621           - Added some commented out debug code for Ownership handling
35622
35623 2004-10-17 22:16  pbartok
35624
35625         * Control.cs:
35626           - Fixed/implemented flat list of controls
35627
35628 2004-10-17 22:14  pbartok
35629
35630         * Application.cs:
35631           - Added code to simulate modal dialogs on Win32
35632
35633 2004-10-17 16:11  jordi
35634
35635         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
35636           mouse event
35637
35638 2004-10-17 13:39  jordi
35639
35640         * MenuAPI.cs: menu drawing fixes
35641
35642 2004-10-15 09:10  ravindra
35643
35644         * StructFormat.cs: General Enum.
35645
35646 2004-10-15 09:09  ravindra
35647
35648         * SizeGripStyle.cs: Enum for Form.
35649
35650 2004-10-15 09:08  ravindra
35651
35652         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35653           in Theme for ListView.
35654
35655 2004-10-15 09:06  ravindra
35656
35657         * ColumnHeader.cs: Flushing some formatting changes.
35658
35659 2004-10-15 09:05  ravindra
35660
35661         * ListViewItem.cs: Implemented GetBounds method and fixed coding
35662           style.
35663
35664 2004-10-15 09:03  ravindra
35665
35666         * ListView.cs: Implemented Paint method and fixed coding style.
35667
35668 2004-10-15 07:34  jordi
35669
35670         * MenuAPI.cs: fix for X11
35671
35672 2004-10-15 07:32  ravindra
35673
35674         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35675                 - Renamed Paint() method to Draw() for clarity. Also, moved
35676                 DrawImage() to OnPaint().
35677
35678 2004-10-15 07:25  ravindra
35679
35680         * CheckBox.cs, RadioButton.cs:
35681                 - Removed Redraw (), we get it from ButtonBase.
35682                 - Implemented Paint (), to do class specific painting.
35683
35684 2004-10-15 07:16  ravindra
35685
35686         * ButtonBase.cs:
35687                 - Redraw () is not virtual now.
35688                 - Added an internal virtual method Paint (), so that
35689                 derived classes can do their painting on their own.
35690                 - Modified OnPaint () to call Paint ().
35691
35692 2004-10-15 06:43  jordi
35693
35694         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35695           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35696
35697 2004-10-15 00:30  ravindra
35698
35699         * MessageBox.cs:
35700                 - MessageBox on windows does not have min/max buttons.
35701                 This change in CreateParams fixes this on Windows. We
35702                 still need to implement this windowstyle behavior in
35703                 our X11 driver.
35704
35705 2004-10-14 05:14  ravindra
35706
35707         * ToolBar.cs:
35708                 - Changed Redraw () to do a Refresh () always.
35709                 - Fixed the MouseMove event handling when mouse is pressed,
35710                 ie drag event handling.
35711                 - Replaced the usage of ToolBarButton.Pressed property to
35712                 ToolBarButton.pressed internal variable.
35713
35714 2004-10-14 05:10  ravindra
35715
35716         * ToolBarButton.cs:
35717                 - Added an internal member 'inside' to handle mouse move
35718                 with mouse pressed ie mouse drag event.
35719                 - Changed 'Pressed' property to return true only when
35720                 'inside' and 'pressed' are both true.
35721                 - Some coding style love.
35722
35723 2004-10-14 00:17  ravindra
35724
35725         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35726           public method.
35727
35728 2004-10-14 00:15  ravindra
35729
35730         * ButtonBase.cs: Redraw () related improvements.
35731
35732 2004-10-14 00:14  ravindra
35733
35734         * MessageBox.cs: Moved InitFormSize () out of Paint method and
35735           removed unnecessary calls to Button.Show () method.
35736
35737 2004-10-13 17:50  pbartok
35738
35739         * XplatUIX11.cs:
35740           - Formatting fix
35741           - Removed destroying of window until we solve the problem of X
35742             destroying the window before us on shutdown
35743
35744 2004-10-13 16:32  pbartok
35745
35746         * ButtonBase.cs:
35747           - Now Redraws on MouseUp for FlatStyle Flat and Popup
35748
35749 2004-10-13 14:18  pbartok
35750
35751         * XplatUIX11.cs:
35752           - Added code to destroy the X window
35753
35754 2004-10-13 14:18  pbartok
35755
35756         * XplatUIWin32.cs:
35757           - Added code to destroy a window
35758
35759 2004-10-13 14:12  pbartok
35760
35761         * ButtonBase.cs:
35762           - Added the Redraw on Resize that got dropped in the last rev
35763
35764 2004-10-13 09:06  pbartok
35765
35766         * ThemeWin32Classic.cs:
35767           - Path from John BouAntoun:
35768             * Fix check rendering (centre correctly for normal style, offset
35769               correctly for FlatStyle).
35770             * Fix border color usage (use backcolor) for FlatStyle.Popup
35771             * Use checkbox.Capture instead of checkbox.is_pressed when
35772               rendering flatstyle states.
35773
35774 2004-10-12 21:48  pbartok
35775
35776         * ThemeWin32Classic.cs:
35777           - Removed all occurences of SystemColors and replaced them with the
35778             matching theme color
35779
35780 2004-10-12 21:41  pbartok
35781
35782         * ThemeWin32Classic.cs:
35783           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
35784             him using the function for flatstyle drawing
35785           - Changed functions to use the new version of CPDrawBorder3D
35786
35787 2004-10-12 21:15  pbartok
35788
35789         * ControlPaint.cs:
35790           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
35791             match MS documentation. They need to return defined colors if the
35792             passed color matches the configured control color. Thanks to John
35793             BouAntoun for pointing this out.
35794
35795 2004-10-12 20:57  pbartok
35796
35797         * Control.cs:
35798           - Fix from John BouAntoun: Raise ForeColorChanged event when text
35799             color is changed
35800
35801 2004-10-12 20:46  pbartok
35802
35803         * CheckBox.cs:
35804           - Fix from John BouAntoun: Now properly sets the Appearance property
35805
35806 2004-10-12 20:45  pbartok
35807
35808         * ThemeWin32Classic.cs:
35809           - Fixes from John BouAntoun: now handles forecolors and backcolors
35810             for flatstyle rendered controls much better; It also fixes normal
35811             checkbox rendering when pushed or disabled.
35812
35813 2004-10-08 02:50  jordi
35814
35815         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
35816           work
35817
35818 2004-10-07 08:56  jordi
35819
35820         * ThemeWin32Classic.cs: Removes deletion of cached brushes
35821
35822 2004-10-06 03:59  jordi
35823
35824         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
35825           XplatUIWin32.cs: removes warnings from compilation
35826
35827 2004-10-05 12:23  jackson
35828
35829         * RadioButton.cs: Fix ctor
35830
35831 2004-10-05 11:10  pbartok
35832
35833         * MessageBox.cs:
35834           - Partial implementation by Benjamin Dasnois
35835
35836 2004-10-05 10:15  jackson
35837
35838         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
35839           by John BouAntoun
35840
35841 2004-10-05 03:07  ravindra
35842
35843         * ToolBar.cs:
35844                 - Removed a private method, Draw ().
35845                 - Fixed the ButtonDropDown event handling.
35846                 - Fixed MouseMove event handling.
35847
35848 2004-10-05 03:04  ravindra
35849
35850         * ThemeWin32Classic.cs:
35851                 - Added DrawListView method and ListViewDefaultSize property.
35852                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
35853                 - Changed DOS style CRLF to Unix format (dos2unix).
35854
35855 2004-10-05 03:03  ravindra
35856
35857         * Theme.cs:
35858                 - Added DrawListView method and ListViewDefaultSize property.
35859
35860 2004-10-05 02:42  ravindra
35861
35862         * ToolBarButton.cs: Added an internal member dd_pressed to handle
35863           clicks on DropDown arrow.
35864
35865 2004-10-04 22:56  jackson
35866
35867         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
35868           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
35869           Control handle the buffers, derived classes should not have to
35870           CreateBuffers themselves.
35871
35872 2004-10-04 21:20  jackson
35873
35874         * StatusBar.cs: The control handles resizing the buffers now.
35875
35876 2004-10-04 21:18  jackson
35877
35878         * Control.cs: When resizing the buffers should be invalidated. This
35879           should be handled in Control not in derived classes.
35880
35881 2004-10-04 14:45  jackson
35882
35883         * TabPage.cs: oops
35884
35885 2004-10-04 02:14  pbartok
35886
35887         * LeftRightAlignment.cs:
35888           - Initial check-in
35889
35890 2004-10-04 01:09  jordi
35891
35892         * ThemeWin32Classic.cs: fixes right button position causing right
35893           button not showing on horizontal scrollbars
35894
35895 2004-10-02 13:12  pbartok
35896
35897         * XplatUIX11.cs:
35898           - Simplified the Invalidate method by using an X call instead of
35899             generating the expose ourselves
35900           - Added an expose when the window background is changed
35901           - Implemented ClientToScreen method
35902
35903 2004-10-02 13:08  pbartok
35904
35905         * XplatUIWin32.cs:
35906           - Added Win32EnableWindow method (test for implementing modal
35907           dialogs)
35908           - Added ClientToScreen method and imports
35909
35910 2004-10-02 13:07  pbartok
35911
35912         * XplatUI.cs, XplatUIDriver.cs:
35913           - Added ClientToScreen coordinate translation method
35914
35915 2004-10-02 13:06  pbartok
35916
35917         * KeyPressEventArgs.cs:
35918           - Fixed access level for constructor
35919
35920 2004-10-02 13:06  pbartok
35921
35922         * NativeWindow.cs:
35923           - Changed access level for the window_collection hash table
35924
35925 2004-10-02 13:05  pbartok
35926
35927         * Form.cs:
35928           - Added KeyPreview property
35929           - Added Menu property (still incomplete, pending Jordi's menu work)
35930           - Implemented ProcessCmdKey
35931           - Implemented ProcessDialogKey
35932           - Implemented ProcessKeyPreview
35933
35934 2004-10-02 13:02  pbartok
35935
35936         * Control.cs:
35937           - Added private method to get the Control object from the window
35938           handle
35939           - Implemented ContextMenu property
35940           - Implemented PointToScreen
35941           - Implemented PreProcessMessage
35942           - Implemented IsInputChar
35943           - Implemented IsInputKey
35944           - Implemented ProcessCmdKey
35945           - Completed ProcessKeyEventArgs
35946           - Fixed message loop to call the proper chain of functions on key
35947           events
35948           - Implemented ProcessDialogChar
35949           - Implemented ProcessDialogKey
35950           - Implemented ProcessKeyMessage
35951           - Implemented ProcessKeyPreview
35952           - Added RaiseDragEvent stub (MS internal method)
35953           - Added RaiseKeyEvent stub (MS internal method)
35954           - Added RaiseMouseEvent stub (MS Internal method)
35955           - Added RaisePaintEvent stub (MS Internal method)
35956           - Added ResetMouseEventArgs stub (MS Internal method)
35957           - Implemented RtlTranslateAlignment
35958           - Implemented RtlTranslateContent
35959           - Implemented RtlTranslateHorizontal
35960           - Implemented RtlTranslateLeftRight
35961           - Added generation of KeyPress event
35962
35963 2004-10-02 05:57  ravindra
35964
35965         * ListViewItem.cs: Added attributes.
35966
35967 2004-10-02 05:32  ravindra
35968
35969         * ListView.cs: Added attributes.
35970
35971 2004-10-01 11:53  jackson
35972
35973         * Form.cs: Implement the Close method so work on MessageBox can
35974           continue.
35975
35976 2004-09-30 14:06  pbartok
35977
35978         * XplatUIX11.cs:
35979           - Bug fixes
35980
35981 2004-09-30 11:34  jackson
35982
35983         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35984
35985 2004-09-30 07:26  ravindra
35986
35987         * ListViewItemConverter.cs: Converter for ListViewItem.
35988
35989 2004-09-30 07:26  ravindra
35990
35991         * SortOrder.cs: Enum for ListView control.
35992
35993 2004-09-30 07:25  ravindra
35994
35995         * ColumnHeader.cs: Supporting class for ListView control.
35996
35997 2004-09-30 07:24  ravindra
35998
35999         * ListView.cs, ListViewItem.cs: Initial implementation.
36000
36001 2004-09-30 07:20  ravindra
36002
36003         * ItemActivation.cs: Enum for ListView Control.
36004
36005 2004-09-29 20:29  pbartok
36006
36007         * XplatUIX11.cs:
36008           - Added lookup of pixel value for background color; tries to get a
36009             color 'close' to the requested color, it avoids having to create a
36010             colormap.  Depending on the display this could mean the used color
36011             is slightly off the desired color. Might have to change it to a more
36012             resource intensive colormap approach, but it will work as a
36013           workaround to avoid red screens.
36014
36015 2004-09-29 14:27  jackson
36016
36017         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
36018
36019 2004-09-28 12:44  pbartok
36020
36021         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
36022           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
36023           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
36024           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
36025           TrackBar.cs, VScrollBar.cs:
36026           - Streamlined Theme interfaces:
36027             * Each DrawXXX method for a control now is passed the object for
36028               the control to be drawn in order to allow accessing any state the
36029               theme might require
36030
36031             * ControlPaint methods for the theme now have a CP prefix to avoid
36032               name clashes with the Draw methods for controls
36033
36034             * Every control now retrieves it's DefaultSize from the current
36035             theme
36036
36037 2004-09-28 12:17  jackson
36038
36039         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
36040           drawing
36041
36042 2004-09-24 14:57  jackson
36043
36044         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
36045           Gives us a nice little performance boost.
36046
36047 2004-09-24 12:02  jackson
36048
36049         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
36050           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
36051           Control and supporting classes. Initial checkin
36052
36053 2004-09-23 13:08  jackson
36054
36055         * Form.cs: Temp build fixage
36056
36057 2004-09-23 01:39  ravindra
36058
36059         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
36060           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
36061           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
36062           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
36063           EventHandlers needed by ListView Control.
36064
36065 2004-09-22 14:12  pbartok
36066
36067         * ScrollableControl.cs:
36068           - Implemented DockPadding property
36069           - Implemented AutoScroll property
36070           - Implemented AutoScrollMargin property
36071           - Implemented AutoScrollMinSize property
36072           - Implemented AutoScrollPosition property
36073           - Implemented DisplayRectangle property (still incomplete)
36074           - Implemented CreateParams property
36075           - Implemented HScroll property
36076           - Implemented VScroll property
36077           - Implemented OnVisibleChanged property
36078
36079 2004-09-22 14:09  pbartok
36080
36081         * Form.cs:
36082           - Added Form.ControllCollection class
36083           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
36084             RemoveOwnedForm (still incomplete, missing on-top and common
36085             minimize/maximize behaviour)
36086           - Added StartPosition property (still incomplete, does not use when
36087             creating the form)
36088           - Added ShowDialog() methods (still incomplete, missing forcing the
36089             dialog modal)
36090
36091 2004-09-22 14:05  pbartok
36092
36093         * Application.cs:
36094           - Added message loop for modal dialogs
36095
36096 2004-09-22 14:02  pbartok
36097
36098         * GroupBox.cs:
36099           - Fixed wrong types for events
36100
36101 2004-09-22 14:00  pbartok
36102
36103         * Shortcut.cs, FormWindowState.cs:
36104           - Fixed wrong values
36105
36106 2004-09-22 12:01  jackson
36107
36108         * Control.cs: Text is never null
36109
36110 2004-09-20 22:14  pbartok
36111
36112         * XplatUIWin32.cs:
36113           - Fixed accessibility level for Idle handler
36114
36115 2004-09-20 18:54  jackson
36116
36117         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36118           XplatUIX11.cs: New message loop that uses poll so we don't get a
36119           busy loop
36120
36121 2004-09-17 10:43  pbartok
36122
36123         * ScrollBar.cs:
36124           - Fixed behaviour of arrow buttons. Now properly behaves like
36125             Buttons (and like Microsoft's scrollbar arrow buttons)
36126
36127 2004-09-17 10:14  pbartok
36128
36129         * ScrollBar.cs:
36130           - Added missing release of keyboard/mouse capture
36131
36132 2004-09-17 06:18  jordi
36133
36134         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
36135           Theme.cs: Very early menu support
36136
36137 2004-09-16 17:45  pbartok
36138
36139         * XplatUIWin32.cs:
36140           - Fixed sending a window to the front
36141           - Added overload for SetWindowPos to avoid casting
36142
36143 2004-09-16 17:44  pbartok
36144
36145         * Control.cs:
36146           - Added SendToBack and BringToFront methods
36147
36148 2004-09-16 07:00  ravindra
36149
36150         * Copyright: Added Novell URL.
36151
36152 2004-09-16 07:00  ravindra
36153
36154         * ToolBar.cs: Invalidate should be done before redrawing.
36155
36156 2004-09-15 21:19  ravindra
36157
36158         * ColumnHeaderStyle.cs: Enum for ListView Control.
36159
36160 2004-09-15 21:18  ravindra
36161
36162         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
36163           ListView Control.
36164
36165 2004-09-13 18:26  jackson
36166
36167         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
36168           properly
36169
36170 2004-09-13 18:13  jackson
36171
36172         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
36173           a second thread and post messages into the main threads message
36174           queue. This makes timing much more consistent. Both win2K and XP
36175           have a minimum timer value of 15 milliseconds, so we now do this
36176           too.
36177
36178 2004-09-13 15:18  pbartok
36179
36180         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36181           XplatUIX11.cs:
36182           - Added Z-Ordering methods
36183
36184 2004-09-13 10:56  pbartok
36185
36186         * Form.cs:
36187           - Fixed #region names
36188           - Moved properties and methods into their proper #regions
36189
36190 2004-09-13 10:51  pbartok
36191
36192         * Form.cs:
36193           - Added Accept and CancelButton properties
36194           - Added ProcessDialogKey() method
36195
36196 2004-09-13 08:18  pbartok
36197
36198         * IWindowTarget.cs:
36199           - Initial check-in
36200
36201 2004-09-10 21:50  pbartok
36202
36203         * Control.cs:
36204           - Added DoDragDrop() [incomplete]
36205           - Properly implemented 'Visible' handling
36206           - Added SetVisibleCore()
36207           - Implemented FindChildAtPoint()
36208           - Implemented GetContainerControl()
36209           - Implemented Hide()
36210
36211 2004-09-10 19:28  pbartok
36212
36213         * Control.cs:
36214           - Moved methods into their appropriate #regions
36215           - Reordered methods within regions alphabetically
36216
36217 2004-09-10 18:57  pbartok
36218
36219         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36220           - Added method to retrieve text from window
36221
36222 2004-09-10 18:56  pbartok
36223
36224         * Control.cs:
36225           - Moved some internal functions into the internal region
36226           - Implemented FontHeight
36227           - Implemented RenderRightToLeft
36228           - Implemented ResizeRedraw
36229           - Implemented ShowFocusCues
36230           - Implemented ShowKeyboardCues
36231           - Implemented FromChildHandle
36232           - Implemented FromHandle
36233           - Implemented IsMnemonic
36234           - Implemented ReflectMessage
36235           - All public and protected Static Methods are now complete
36236
36237 2004-09-10 16:54  pbartok
36238
36239         * Control.cs:
36240           - Implemented remaining missing public instance properties
36241           - Alphabetized some out of order properties
36242
36243 2004-09-10 05:51  ravindra
36244
36245         * PictureBox.cs: Added a check for null image.
36246
36247 2004-09-10 00:59  jordi
36248
36249         * GroupBox.cs: remove cvs tag
36250
36251 2004-09-09 05:25  ravindra
36252
36253         * ToolBar.cs: Make redraw accessible from ToolBarButton.
36254
36255 2004-09-09 05:23  ravindra
36256
36257         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
36258           parent redraw.
36259
36260 2004-09-09 02:28  pbartok
36261
36262         * ThemeWin32Classic.cs:
36263           - Improve disabled string look
36264
36265 2004-09-09 01:15  jordi
36266
36267         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
36268           args and handler
36269
36270 2004-09-08 23:56  ravindra
36271
36272         * ItemBoundsPortion.cs: It's enum, not a class!
36273
36274 2004-09-08 23:47  ravindra
36275
36276         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
36277           Enums for Form.
36278
36279 2004-09-08 21:13  ravindra
36280
36281         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
36282           ListView control.
36283
36284 2004-09-08 21:03  ravindra
36285
36286         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
36287           avoid crash.
36288
36289 2004-09-08 21:01  ravindra
36290
36291         * ScrollableControl.cs: Removed unreachable code.
36292
36293 2004-09-08 06:45  jordi
36294
36295         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
36296
36297 2004-09-08 01:00  jackson
36298
36299         * XplatUIX11.cs: Only run the timers when updating the message
36300           queue. This effectively gives X messages a higher priority then
36301           timer messages. Timers still need love though
36302
36303 2004-09-07 14:01  jackson
36304
36305         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
36306           this for us and the handle is no longer valid.
36307
36308 2004-09-07 13:59  jackson
36309
36310         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
36311           loop that manages to not crash. TODO: Add poll and cleanup timers
36312
36313 2004-09-07 11:12  jordi
36314
36315         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
36316
36317 2004-09-07 03:40  jordi
36318
36319         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
36320           fixes, methods, multiple links
36321
36322 2004-09-06 06:55  jordi
36323
36324         * Control.cs: Caches ClientRectangle rectangle value
36325
36326 2004-09-05 02:03  jordi
36327
36328         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
36329           certain situations
36330
36331 2004-09-04 11:10  jordi
36332
36333         * Label.cs: Refresh when font changed
36334
36335 2004-09-02 16:24  pbartok
36336
36337         * Control.cs:
36338           - Added sanity check to creation of double buffer bitmap
36339
36340 2004-09-02 16:24  pbartok
36341
36342         * ButtonBase.cs:
36343           - Fixed selection of text color
36344           - Fixed handling of resize event; now properly recreates double
36345             buffering bitmap
36346           - Added missing assignment of TextAlignment
36347           - Added proper default for TextAlignment
36348
36349 2004-09-02 14:26  pbartok
36350
36351         * RadioButton.cs:
36352           - Added missing RadioButton.RadioButtonAccessibleObject class
36353
36354 2004-09-02 14:26  pbartok
36355
36356         * Control.cs:
36357           - Added missing Control.ControlAccessibleObject class
36358           - Started to implement Select()ion mechanisms, still very incomplete
36359
36360 2004-09-02 14:25  pbartok
36361
36362         * AccessibleObject.cs:
36363           - Added missing methods
36364
36365 2004-09-02 14:23  pbartok
36366
36367         * AccessibleNavigation.cs, AccessibleSelection.cs:
36368           - Initial check-in
36369
36370 2004-09-02 10:32  jordi
36371
36372         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
36373           pool for pens, brushes, and hatchbruses
36374
36375 2004-09-01 15:30  jackson
36376
36377         * StatusBar.cs: Fix typo
36378
36379 2004-09-01 14:44  pbartok
36380
36381         * RadioButton.cs:
36382           - Fixed state
36383
36384 2004-09-01 14:39  pbartok
36385
36386         * Button.cs, RadioButton.cs:
36387           - Functional initial check-in
36388
36389 2004-09-01 14:01  pbartok
36390
36391         * CheckBox.cs:
36392           - Added missing default
36393           - Added missing region mark
36394
36395 2004-09-01 09:10  jordi
36396
36397         * Label.cs: fixes method signatures, new methods, events, fixes
36398           autosize
36399
36400 2004-09-01 07:19  jordi
36401
36402         * Control.cs: Init string variables with an empty object
36403
36404 2004-09-01 04:20  jordi
36405
36406         * Control.cs: fires OnFontChanged event
36407
36408 2004-08-31 20:07  pbartok
36409
36410         * ButtonBase.cs:
36411           - Enabled display of strings
36412
36413 2004-08-31 20:05  pbartok
36414
36415         * Form.cs:
36416           - Added (partial) implementation of DialogResult; rest needs to be
36417             implemented when the modal loop code is done
36418
36419 2004-08-31 19:55  pbartok
36420
36421         * CheckBox.cs:
36422           - Fixed to match the removal of the needs_redraw concept
36423
36424 2004-08-31 19:55  pbartok
36425
36426         * ButtonBase.cs:
36427           - Removed the rather odd split between 'needs redraw' and redrawing
36428           - Now handles the events that require regeneration (ambient
36429             properties and size)
36430
36431 2004-08-31 19:41  pbartok
36432
36433         * Control.cs:
36434           - Added firing of BackColorChanged event
36435           - Added TopLevelControl property
36436           - Fixed handling of WM_ERASEBKGRND message
36437
36438 2004-08-31 12:49  pbartok
36439
36440         * ButtonBase.cs:
36441           - Removed debug
36442           - Minor fixes
36443
36444 2004-08-31 12:48  pbartok
36445
36446         * CheckBox.cs:
36447           - Finished (famous last words)
36448
36449 2004-08-31 04:35  jordi
36450
36451         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
36452           scrolling bugs, adds new methods
36453
36454 2004-08-30 14:42  pbartok
36455
36456         * CheckBox.cs:
36457           - Implemented CheckBox drawing code
36458
36459 2004-08-30 14:42  pbartok
36460
36461         * ButtonBase.cs:
36462           - Made Redraw() and CheckRedraw() virtual
36463           - Improved mouse up/down/move logic to properly track buttons
36464
36465 2004-08-30 09:44  pbartok
36466
36467         * CheckBox.cs:
36468           - Updated to fix broken build. Not complete yet.
36469
36470 2004-08-30 09:28  pbartok
36471
36472         * CheckState.cs:
36473           - Initial checkin
36474
36475 2004-08-30 09:17  pbartok
36476
36477         * Appearance.cs:
36478           - Initial check-in
36479
36480 2004-08-27 16:12  ravindra
36481
36482         * ToolBarButton.cs: Added TypeConverter attribute.
36483
36484 2004-08-27 16:07  ravindra
36485
36486         * ImageIndexConverter.cs: Implemented.
36487
36488 2004-08-27 14:17  pbartok
36489
36490         * Control.cs:
36491           - Removed unneeded stack vars
36492           - First attempt to fix sizing issues when layout is suspended
36493
36494 2004-08-25 15:35  jordi
36495
36496         * ScrollBar.cs: more fixes to scrollbar
36497
36498 2004-08-25 14:04  ravindra
36499
36500         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
36501           Added the missing divider code and grip for ToolBar Control.
36502
36503 2004-08-25 13:20  pbartok
36504
36505         * Control.cs:
36506           - Control now properly passes the ambient background color to child
36507             controls
36508
36509 2004-08-25 13:20  jordi
36510
36511         * ScrollBar.cs: small bug fix regarding bar position
36512
36513 2004-08-25 12:33  pbartok
36514
36515         * Timer.cs:
36516           - Now only calls SetTimer or KillTimer if the enabled state has
36517           changed
36518
36519 2004-08-25 12:33  pbartok
36520
36521         * XplatUIWin32.cs:
36522           - Fixed timer handling, now seems to work
36523           - Improved error message for window creation
36524
36525 2004-08-25 12:32  pbartok
36526
36527         * Control.cs:
36528           - Fixed generation of MouseUp message
36529
36530 2004-08-25 12:29  jordi
36531
36532         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
36533           and fixes for progressbar
36534
36535 2004-08-24 18:43  ravindra
36536
36537         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
36538           in ToolBar control.
36539
36540 2004-08-24 17:15  pbartok
36541
36542         * Panel.cs:
36543           - Added #region
36544           - Added missing events
36545           - Alphabetized
36546
36547 2004-08-24 17:14  pbartok
36548
36549         * StatusBar.cs, PictureBox.cs:
36550           - Now uses Control's CreateParams
36551
36552 2004-08-24 16:36  pbartok
36553
36554         * XplatUIX11.cs:
36555           - Fixed background color handling
36556           - Fixed sending of enter/leave events on a grab
36557
36558 2004-08-24 16:35  pbartok
36559
36560         * X11Structs.cs:
36561           - Refined definitions for CrossingEvent
36562
36563 2004-08-24 12:37  jordi
36564
36565         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
36566           formmating, methods signature, and adds missing events
36567
36568 2004-08-24 12:24  jordi
36569
36570         * Control.cs: fire OnEnabledChanged event
36571
36572 2004-08-24 11:17  pbartok
36573
36574         * XplatUIWin32.cs:
36575           - Implemented SetTimer() and KillTimer()
36576
36577 2004-08-24 11:16  pbartok
36578
36579         * XplatUIX11.cs:
36580           - Now uses Remove instead of Add to kill the timer
36581
36582 2004-08-24 10:16  jackson
36583
36584         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
36585           picture boxes in the theme now. Draw picture box borders and obey
36586           sizing modes
36587
36588 2004-08-24 05:49  jackson
36589
36590         * Timer.cs: Remove top secret debugging code
36591
36592 2004-08-24 05:34  jackson
36593
36594         * PictureBox.cs: Temp hack to make picture boxes draw their full
36595           image
36596
36597 2004-08-24 05:29  jackson
36598
36599         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36600           XplatUIX11.cs: Move timers to the driver level. On X they are
36601           queued by the driver and checked on idle.
36602
36603 2004-08-24 01:07  jackson
36604
36605         * XplatUIX11.cs: Use a queue for async messages instead of passing
36606           them as ClientMessages since that was totally broken. Also simply
36607           check for events and return an idle message if none are found. This
36608           gives us an idle handler, and prevents deadlocking when no messages
36609           are in the queue.
36610
36611 2004-08-23 18:19  ravindra
36612
36613         * XplatUIWin32.cs: Removed the unwanted destructor.
36614
36615 2004-08-23 17:27  pbartok
36616
36617         * ButtonBase.cs:
36618           - Finishing touches. Works now, just needs some optimizations.
36619
36620 2004-08-23 16:53  jordi
36621
36622         * ScrollBar.cs: small fix
36623
36624 2004-08-23 16:45  pbartok
36625
36626         * Application.cs:
36627           - Removed debug output
36628           - Simplifications
36629
36630 2004-08-23 16:43  jordi
36631
36632         * ScrollBar.cs: [no log message]
36633
36634 2004-08-23 16:10  pbartok
36635
36636         * Form.cs:
36637           - Fixed handling of WM_CLOSE message
36638           - Removed debug output
36639
36640 2004-08-23 16:09  pbartok
36641
36642         * Application.cs:
36643           - Added handling of Idle event
36644           - Added handling of form closing
36645           - Fixed reporting of MessageLoop property
36646           - Removed some unneeded code, should provide a bit of a speedup
36647
36648 2004-08-23 15:22  pbartok
36649
36650         * Control.cs:
36651           - Added InitLayout() method
36652           - Added code to properly perform layout when Anchor or Dock property
36653             is changed
36654           - Changed 'interpretation' of ResumeLayout. MS seems to have a
36655             LAMESPEC, tried to do it in a way that makes sense
36656
36657 2004-08-23 14:10  jordi
36658
36659         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36660           properties and methods
36661
36662 2004-08-23 13:55  pbartok
36663
36664         * Control.cs:
36665           - Properly fixed Jordi's last fix
36666           - Now uses Cursor's Position property instead of calling XplatUI
36667           directly
36668
36669 2004-08-23 13:44  jordi
36670
36671         * PaintEventHandler.cs: Adding missing attribute
36672
36673 2004-08-23 13:39  pbartok
36674
36675         * Cursor.cs:
36676           - Implemented Position property
36677
36678 2004-08-23 13:39  pbartok
36679
36680         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36681           - Added method to move mouse cursor
36682
36683 2004-08-23 13:39  pbartok
36684
36685         * XplatUIX11.cs:
36686           - Fixed setting of background color
36687           - Added method to move mouse cursor
36688
36689 2004-08-23 13:16  jordi
36690
36691         * Control.cs: avoids null exception
36692
36693 2004-08-22 17:46  jackson
36694
36695         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36696           PictureBox
36697
36698 2004-08-22 17:40  jackson
36699
36700         * XplatUIX11.cs: Add some missing locks
36701
36702 2004-08-22 15:10  pbartok
36703
36704         * Control.cs, Form.cs:
36705           - Removed OverlappedWindow style from Control, instead it's default
36706             now is child
36707           - Made form windows OverlappedWindow by default
36708
36709 2004-08-22 13:34  jackson
36710
36711         * ScrollBar.cs: Update the position through the Value property so
36712           the OnValueChanged event is raised.
36713
36714 2004-08-22 12:04  pbartok
36715
36716         * SWF.csproj:
36717           - Added Cursor.cs and UserControl.cs
36718
36719 2004-08-22 12:03  pbartok
36720
36721         * Cursor.cs:
36722           - Started implementation, not usable yet
36723
36724 2004-08-22 12:00  pbartok
36725
36726         * UserControl.cs:
36727           - Implemented UserControl (complete)
36728
36729 2004-08-21 19:20  ravindra
36730
36731         * ToolBar.cs: Correcting the formatting mess of VS.NET.
36732
36733 2004-08-21 18:49  ravindra
36734
36735         * ToolBar.cs: Probably this completes the missing attributes in
36736           toolbar control.
36737
36738 2004-08-21 18:03  ravindra
36739
36740         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
36741           Fixed toolbar control signatures.
36742
36743 2004-08-21 16:32  pbartok
36744
36745         * LinkLabel.cs:
36746           - Signature Fixes
36747
36748 2004-08-21 16:30  pbartok
36749
36750         * Label.cs:
36751           - Signature fixes
36752
36753 2004-08-21 16:19  pbartok
36754
36755         * Control.cs, Label.cs:
36756           - Signature fixes
36757
36758 2004-08-21 15:57  pbartok
36759
36760         * ButtonBase.cs:
36761           - Added loads of debug output for development
36762           - Fixed typo in method name
36763
36764 2004-08-21 15:52  pbartok
36765
36766         * ToolBarButtonClickEventArgs.cs:
36767           - Added missing base class
36768
36769 2004-08-21 14:53  pbartok
36770
36771         * Control.cs:
36772           - Updated to match new GrabWindow signature
36773
36774 2004-08-21 14:51  pbartok
36775
36776         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36777           - Added method to get default display size
36778
36779 2004-08-21 14:23  pbartok
36780
36781         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36782           - Added method to query current grab state
36783           - Added argument to allow confining a grab to a window
36784
36785 2004-08-21 14:22  pbartok
36786
36787         * Keys.cs:
36788           - Added [Flags] attribute so that modifiers can be used in bitwise
36789           ops
36790
36791 2004-08-21 14:21  pbartok
36792
36793         * TrackBar.cs, ScrollBar.cs:
36794           - Replaced direct XplatUI calls with their Control counterpart
36795
36796 2004-08-21 13:32  pbartok
36797
36798         * Control.cs:
36799           - Implemented Created property
36800
36801 2004-08-21 13:28  pbartok
36802
36803         * Control.cs:
36804           - Implemented ContainsFocus
36805
36806 2004-08-21 13:26  pbartok
36807
36808         * Control.cs:
36809           - Implemented CausesValidation
36810
36811 2004-08-21 13:21  pbartok
36812
36813         * Control.cs:
36814           - Implemented CanFocus
36815           - Implemented CanSelect
36816           - Implemented Capture
36817
36818 2004-08-21 12:35  pbartok
36819
36820         * XplatUIWin32.cs:
36821           - Fixed bug with Async message handling
36822           - Implemented getting the ModifierKeys
36823
36824 2004-08-21 12:32  jackson
36825
36826         * AsyncMethodResult.cs: Make sure we have the mutex before we
36827           release it. Fixes BeginInvoke on windows
36828
36829 2004-08-21 11:31  pbartok
36830
36831         * XplatUIWin32.cs, XplatUIX11.cs:
36832           - Drivers now return proper mouse state
36833
36834 2004-08-21 10:54  jackson
36835
36836         * Control.cs: Implement EndInvoke
36837
36838 2004-08-21 10:48  jackson
36839
36840         * Timer.cs: Remove unneeded finalizer
36841
36842 2004-08-20 19:52  ravindra
36843
36844         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
36845           in mouse event handling in the ToolBar control.
36846
36847 2004-08-20 19:50  ravindra
36848
36849         * ImageList.cs: Changed draw method to use the arguments passed in
36850           to draw the image.
36851
36852 2004-08-20 18:58  pbartok
36853
36854         * XplatUIStructs.cs:
36855           - Added private message for async communication
36856
36857 2004-08-20 17:38  ravindra
36858
36859         * Control.cs: Made RightToLeft property virtual and removed a
36860           Console.WriteLine.
36861
36862 2004-08-20 14:39  jordi
36863
36864         * ThemeGtk.cs: use style_attach
36865
36866 2004-08-20 14:39  pbartok
36867
36868         * XplatUIWin32.cs:
36869           - Added jackson's Async code from X11 to Win32
36870
36871 2004-08-20 14:09  pbartok
36872
36873         * SWF.csproj:
36874           - Added all new files
36875
36876 2004-08-20 14:09  pbartok
36877
36878         * Control.cs:
36879           - Added call to set window background color
36880
36881 2004-08-20 14:03  pbartok
36882
36883         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36884           - Added method for setting the window background
36885
36886 2004-08-20 14:02  pbartok
36887
36888         * XplatUIWin32.cs:
36889           - Added method for setting the background color
36890           - Added handling for erasing the window background
36891
36892 2004-08-20 13:45  jordi
36893
36894         * TrackBar.cs: fixes timer, new properties and methods
36895
36896 2004-08-20 13:34  jackson
36897
36898         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
36899           correct thread
36900
36901 2004-08-20 13:22  jackson
36902
36903         * Timer.cs: Timer Tick events are now handed through Controls Async
36904           mechanism so the callbacks are executed in the same thread as X
36905
36906 2004-08-20 13:19  jackson
36907
36908         * XplatUIDriver.cs: Expose functionality to send async messages
36909           through the driver
36910
36911 2004-08-20 13:18  jackson
36912
36913         * Control.cs: Implement Begininvoke
36914
36915 2004-08-20 13:14  jackson
36916
36917         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
36918           messages through the driver
36919
36920 2004-08-20 13:12  jackson
36921
36922         * XplatUIX11.cs: Lock before all X operations. Also added Async
36923           method functionality through XSendEvent
36924
36925 2004-08-20 13:11  jackson
36926
36927         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
36928           This will screw up on 64 bit systems)
36929
36930 2004-08-20 13:10  jackson
36931
36932         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
36933           Async messages through X/Win32
36934
36935 2004-08-19 19:39  pbartok
36936
36937         * XplatUIX11.cs:
36938           - Updated code to match new HandleData.DeviceContext type
36939
36940 2004-08-19 19:38  pbartok
36941
36942         * HandleData.cs:
36943           - Made DeviceContext a generic object to allow usage from various
36944           drivers
36945           - Added support for queueing Windows messages
36946
36947 2004-08-19 19:37  pbartok
36948
36949         * XplatUIWin32.cs:
36950           - Added generation of MouseEnter, MouseLeave and MouseHover events
36951           - Added cleanup on EndPaint
36952
36953 2004-08-19 19:17  pbartok
36954
36955         * Control.cs:
36956           - Added handling of WM_MOUSEHOVER
36957           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36958           code
36959
36960 2004-08-19 18:55  jordi
36961
36962         * ThemeGtk.cs: fixes button order
36963
36964 2004-08-19 18:12  jordi
36965
36966         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36967
36968 2004-08-19 17:09  pbartok
36969
36970         * Control.cs:
36971           - Added Right property
36972           - Added RightToLeft property
36973
36974 2004-08-19 16:27  jordi
36975
36976         * ThemeGtk.cs: experimental GTK theme support
36977
36978 2004-08-19 16:26  jordi
36979
36980         * ITheme.cs, Theme.cs: move themes from an interface to a class
36981
36982 2004-08-19 16:25  jordi
36983
36984         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36985           theme enhancaments
36986
36987 2004-08-19 16:04  pbartok
36988
36989         * XplatUIX11.cs:
36990           - Added colormap basics
36991           - Added a way to re-initialize with a different display handle
36992           - Fixed setting of the window background color
36993           - Added various X11 imports related to colors and colormaps
36994
36995 2004-08-19 15:51  pbartok
36996
36997         * X11Structs.cs:
36998           - Removed packing hints (Paolo suggested this a while back)
36999           - fixed colormap type
37000           - Added default Atom types
37001           - Added Screen and color structs and enums
37002
37003 2004-08-19 15:39  pbartok
37004
37005         * ImageList.cs:
37006           - Added missing Draw() method
37007           - Added missing RecreateHandle event
37008
37009 2004-08-19 15:30  pbartok
37010
37011         * Form.cs:
37012           - Added handling of WM_CLOSE
37013
37014 2004-08-18 13:16  jordi
37015
37016         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
37017           a table
37018
37019 2004-08-18 09:56  jordi
37020
37021         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
37022
37023 2004-08-17 15:31  ravindra
37024
37025         * SWF.csproj: Updated project.
37026
37027 2004-08-17 15:25  pbartok
37028
37029         * Control.cs:
37030           - Drawing improvement; don't call UpdateBounds if we are not visible
37031             (or have been minimized)
37032
37033 2004-08-17 15:24  pbartok
37034
37035         * XplatUIWin32.cs:
37036           - Finished IsVisible
37037           - Added Win32GetWindowPlacement
37038
37039 2004-08-17 15:08  jackson
37040
37041         * Panel.cs: Initial checkin of the Panel
37042
37043 2004-08-17 14:25  pbartok
37044
37045         * Control.cs:
37046           - Fixed broken handling of default window sizes
37047
37048 2004-08-17 13:29  jackson
37049
37050         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
37051           has a large startup time.
37052
37053 2004-08-17 10:25  jackson
37054
37055         * HandleData.cs: union areas properly
37056
37057 2004-08-17 10:12  jackson
37058
37059         * HandleData.cs: union areas properly
37060
37061 2004-08-16 20:00  ravindra
37062
37063         * ToolBar.cs, ToolBarButton.cs: Added attributes.
37064
37065 2004-08-16 18:48  ravindra
37066
37067         * ToolBar.cs: Added attributes.
37068
37069 2004-08-16 17:17  ravindra
37070
37071         * SWF.csproj: Updated project.
37072
37073 2004-08-16 17:16  jackson
37074
37075         * XplatUIX11.cs: Check for more expose events before sending a
37076           WM_PAINT so they can all be grouped together. This makes dragging a
37077           window across another window redraw in a sane way.
37078
37079 2004-08-16 15:47  pbartok
37080
37081         * Control.cs:
37082           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
37083             support OnMouseEnter/Leave()
37084           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
37085             exposure handling
37086
37087 2004-08-16 15:46  pbartok
37088
37089         * XplatUIStructs.cs, XplatUIX11.cs:
37090           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
37091           OnMouseEnter/Leave()
37092
37093 2004-08-16 15:34  jackson
37094
37095         * XplatUIX11.cs: Group multiple expose events in HandleData, make
37096           sure messages get the message field set to WM_NULL if they are not
37097           handled.
37098
37099 2004-08-16 15:24  jackson
37100
37101         * HandleData.cs: HandleData is used for storing message information
37102           for window handles
37103
37104 2004-08-15 17:23  ravindra
37105
37106         * ColorDepth.cs: Added attribute.
37107
37108 2004-08-15 17:23  ravindra
37109
37110         * SWF.csproj: Updated project for ToolBar Control.
37111
37112 2004-08-15 17:20  ravindra
37113
37114         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
37115           control and also dos2unix format.
37116
37117 2004-08-15 17:13  ravindra
37118
37119         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
37120           ToolBarButtonClickEventArgs.cs,
37121           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
37122           ToolBarTextAlign.cs: First Implementation of ToolBar control.
37123
37124 2004-08-15 15:31  pbartok
37125
37126         * ButtonBase.cs:
37127           - First (mostly) working version
37128
37129 2004-08-13 16:15  pbartok
37130
37131         * Control.cs:
37132           - Fixed Anchor default
37133
37134 2004-08-13 15:43  pbartok
37135
37136         * Control.cs:
37137           - Changed GetCursorPos signature
37138
37139 2004-08-13 15:42  pbartok
37140
37141         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
37142           - Changed signature for GetCursorPos
37143
37144 2004-08-13 15:25  pbartok
37145
37146         * XplatUIX11.cs:
37147           - Cleanup
37148           - Fixed resizing/exposure handling
37149
37150 2004-08-13 15:22  jordi
37151
37152         * ThemeWin32Classic.cs: removes redundant code and fixes issues
37153           with tickposition
37154
37155 2004-08-13 14:55  jordi
37156
37157         * TrackBar.cs: change from wndproc to events
37158
37159 2004-08-13 13:00  jordi
37160
37161         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37162           XplatUIX11.cs: implements PointToClient (ScreenToClient)
37163
37164 2004-08-13 12:53  pbartok
37165
37166         * XplatUIWin32.cs:
37167           - Changed GetWindowPos to also provide client area size
37168           - Fixed broken prototypes for several win32 functions
37169
37170 2004-08-13 12:53  pbartok
37171
37172         * XplatUI.cs, XplatUIDriver.cs:
37173           - Changed GetWindowPos to also provide client area size
37174
37175 2004-08-13 12:52  pbartok
37176
37177         * XplatUIX11.cs:
37178           - Added generation of WM_POSCHANGED
37179           - Changed GetWindowPos to also provide client area size
37180
37181 2004-08-13 12:52  pbartok
37182
37183         * Control.cs:
37184           - Added Dispose() and destructor
37185           - Fixed resizing and bounds calculation
37186           - Fixed Layout
37187           - Added memory savings for invisible windows
37188
37189 2004-08-13 12:46  jordi
37190
37191         * TrackBar.cs: adds timer and grap window
37192
37193 2004-08-13 10:25  jackson
37194
37195         * Timer.cs: SWF Timer
37196
37197 2004-08-12 16:59  pbartok
37198
37199         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37200           - Implemented method to get current mouse position
37201
37202 2004-08-12 14:29  jordi
37203
37204         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
37205           enhancement, fix mouse problems, highli thumb, etc
37206
37207 2004-08-12 13:31  pbartok
37208
37209         * Control.cs:
37210           - Fixed Anchoring bugs
37211
37212 2004-08-12 13:01  jackson
37213
37214         * StatusBar.cs: Don't forget things
37215
37216 2004-08-12 12:54  jackson
37217
37218         * ThemeWin32Classic.cs: Handle owner draw status bars
37219
37220 2004-08-12 12:54  jackson
37221
37222         * StatusBar.cs: Implement missing properties, events, and methods.
37223           Handle mouse clicking
37224
37225 2004-08-12 10:19  jackson
37226
37227         * StatusBarPanelClickEventArgs.cs,
37228           StatusBarPanelClickEventHandler.cs: Classes for handling status
37229           bar panel click events
37230
37231 2004-08-12 10:10  jackson
37232
37233         * Control.cs: Add missing properties
37234
37235 2004-08-12 09:46  pbartok
37236
37237         * BindingsManagerBase.cs:
37238           - Name changed to BindingManagerBase.cs
37239
37240 2004-08-12 09:25  jordi
37241
37242         * ScrollableControl.cs: calls ctrlbase instead of exeception
37243
37244 2004-08-11 16:28  pbartok
37245
37246         * InputLanguageChangingEventArgs.cs:
37247           - Never check in before compiling. Fixes the last check-in
37248
37249 2004-08-11 16:26  pbartok
37250
37251         * InputLanguageChangingEventArgs.cs:
37252           - More signature fixes
37253
37254 2004-08-11 16:20  pbartok
37255
37256         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
37257           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
37258           ImageListStreamer.cs, InputLanguage.cs,
37259           InputLanguageChangedEventArgs.cs,
37260           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
37261           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
37262           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
37263           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37264           - Signature fixes
37265
37266 2004-08-11 16:16  pbartok
37267
37268         * Application.cs:
37269           - Fixed Signature
37270           - Added .Net 1.1 method
37271
37272 2004-08-11 15:25  pbartok
37273
37274         * SWF.csproj:
37275           - Fixed BindingManagerBase.cs filename
37276
37277 2004-08-11 15:22  pbartok
37278
37279         * BindingManagerBase.cs:
37280           - Was checked in with wrong filename
37281
37282 2004-08-11 14:50  pbartok
37283
37284         * SWF.csproj:
37285           - Updated
37286
37287 2004-08-11 13:41  jordi
37288
37289         * XplatUIWin32.cs: Fixes ClientRect
37290
37291 2004-08-11 13:19  pbartok
37292
37293         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37294           XplatUIX11.cs:
37295           - We had SetWindowPos and MoveWindow to set window positions and
37296             size, removed MoveWindow. We have GetWindowPos, so it made sense to
37297             keep SetWindowPos as matching counterpart
37298           - Added some X11 sanity checking
37299
37300 2004-08-11 12:59  pbartok
37301
37302         * Control.cs:
37303           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
37304             (It seems that SetBounds is just a front for SetBoundsCore and
37305              SetBoundsCore updates the underlying window system and
37306              UpdateBounds is responsible for updating the variables associated
37307              with the Control and sending the events)
37308           - Major cleanup of Size handling; we now have two sizes, client_size
37309             and bounds. Bounds defines the window with decorations, client_size
37310             without them.
37311
37312 2004-08-11 12:55  pbartok
37313
37314         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37315           - Added method to calculate difference between decorated window and
37316             raw client area
37317
37318 2004-08-11 12:54  pbartok
37319
37320         * Label.cs:
37321           - Forcing redraw on resize
37322
37323 2004-08-11 11:43  pbartok
37324
37325         * ImageList.cs:
37326           - Removed disposing of the actual images when the list is disposed
37327
37328 2004-08-11 09:13  pbartok
37329
37330         * Control.cs:
37331           - Now properly reparents windows
37332
37333 2004-08-11 08:37  pbartok
37334
37335         * Control.cs:
37336           - Duh!
37337
37338 2004-08-11 07:47  pbartok
37339
37340         * Control.cs:
37341           - Rewrote the collection stuff. Might not be as fast now, not
37342             keeping the number of children around and accessible directly, but
37343             it's more straightforward
37344
37345 2004-08-11 07:44  pbartok
37346
37347         * AccessibleObject.cs:
37348           - Fixed to match ControlCollection rewrite
37349
37350 2004-08-11 07:43  pbartok
37351
37352         * ImageList.cs:
37353           - Added missing creation of the collection list
37354
37355 2004-08-10 20:08  jackson
37356
37357         * StatusBar.cs: Get the paint message from WndProc
37358
37359 2004-08-10 19:31  jackson
37360
37361         * ThemeWin32Classic.cs: Create Brushes as little as possible
37362
37363 2004-08-10 19:20  jackson
37364
37365         * UICues.cs: Add Flags attribute
37366
37367 2004-08-10 19:19  jackson
37368
37369         * StatusBarPanel.cs: Signature cleanup
37370
37371 2004-08-10 19:10  jackson
37372
37373         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
37374           Initial implementation of status bar item drawing
37375
37376 2004-08-10 17:27  jordi
37377
37378         * TrackBar.cs: add missing methods, properties, and restructure to
37379           hide extra ones
37380
37381 2004-08-10 16:24  jackson
37382
37383         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
37384           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
37385           attribute
37386
37387 2004-08-10 13:21  jordi
37388
37389         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
37390           enhancements and standarize on win colors defaults
37391
37392 2004-08-10 12:52  jackson
37393
37394         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
37395           ThemeWin32Classic.cs: Implement DrawItem functionality
37396
37397 2004-08-10 12:47  jordi
37398
37399         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
37400
37401 2004-08-10 12:32  jordi
37402
37403         * Control.cs: throw ontextchange event
37404
37405 2004-08-10 11:43  pbartok
37406
37407         * Control.cs:
37408           - Added more to the still unfinished Dock/Anchor layout code
37409
37410 2004-08-10 11:39  pbartok
37411
37412         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
37413           - Added GetWindowPos method
37414
37415 2004-08-10 11:36  pbartok
37416
37417         * XplatUIWin32.cs:
37418           - Implemented several methods
37419
37420 2004-08-10 09:47  jackson
37421
37422         * TrackBar.cs: Allow control to handle buffering
37423
37424 2004-08-10 09:41  jackson
37425
37426         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
37427
37428 2004-08-10 09:24  jackson
37429
37430         * Label.cs, LinkLabel.cs: Let Control handle buffering.
37431
37432 2004-08-10 09:09  jackson
37433
37434         * StatusBar.cs: Let Control handle all the buffering.
37435
37436 2004-08-10 09:08  jackson
37437
37438         * Control.cs: Control will now handle the buffering code, so each
37439           control does not have to implement this.
37440
37441 2004-08-10 08:34  jackson
37442
37443         * XplatUIDriver.cs: Use default colors from the theme
37444
37445 2004-08-09 17:12  pbartok
37446
37447         * ImageList.cs:
37448           - Fixed several bugs Ravindra pointed out
37449
37450 2004-08-09 16:11  pbartok
37451
37452         * Control.cs:
37453           - Added incomplete dock layout code
37454           - Added support for mouse wheel
37455
37456 2004-08-09 16:09  pbartok
37457
37458         * XplatUIX11.cs:
37459           - Added handling for middle and right mousebutton
37460           - Added handling for mouse wheel
37461           - Added handling for key state and mouse state and position
37462           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
37463           messages
37464
37465 2004-08-09 15:40  jackson
37466
37467         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
37468           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
37469           checkin
37470
37471 2004-08-09 15:37  jackson
37472
37473         * StatusBar.cs: Initial implementation of StatusBar
37474
37475 2004-08-09 15:36  jackson
37476
37477         * ITheme.cs: Add support for drawing status bar and getting status
37478           bar item sizes
37479
37480 2004-08-09 15:35  pbartok
37481
37482         * MouseButtons.cs:
37483           - Fixed values
37484
37485 2004-08-09 15:34  jackson
37486
37487         * ThemeWin32Classic.cs: Add support for drawing status bar and get
37488           status bar item sizes
37489
37490 2004-08-09 15:21  jackson
37491
37492         * ThemeWin32Classic.cs: Use known colors for default control
37493           colours
37494
37495 2004-08-09 15:12  jackson
37496
37497         * ThemeWin32Classic.cs: Make the default font static, it is static
37498           in control so this doesn't change functionality and creating fonts
37499           is sloooooow.
37500
37501 2004-08-09 14:56  pbartok
37502
37503         * X11Structs.cs:
37504           - Added GrabMode enum
37505
37506 2004-08-09 14:55  pbartok
37507
37508         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37509           - Removed Run method, was only required for initial development
37510
37511 2004-08-09 14:51  pbartok
37512
37513         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
37514           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
37515           capture
37516
37517 2004-08-09 13:48  pbartok
37518
37519         * XplatUIX11.cs:
37520           - Fixed default sizing for child windows
37521
37522 2004-08-09 12:56  pbartok
37523
37524         * XplatUIX11.cs:
37525           - Added generation of WM_DESTROY message
37526           - Added handling of window manager induced shutdown
37527
37528 2004-08-09 11:31  jackson
37529
37530         * ThemeWin32Classic.cs: New names for control properties
37531
37532 2004-08-09 11:25  jackson
37533
37534         * Control.cs: Use new color names
37535
37536 2004-08-09 11:02  jackson
37537
37538         * XplatUI.cs: Get default window properties from the theme
37539
37540 2004-08-09 11:01  jackson
37541
37542         * ITheme.cs: The theme engine now controls default window
37543           properties
37544
37545 2004-08-09 11:00  jackson
37546
37547         * ThemeWin32Classic.cs: Add default window color properties
37548
37549 2004-08-09 10:17  jackson
37550
37551         * ThemeWin32Classic.cs: Use correct default back color
37552
37553 2004-08-09 10:05  jackson
37554
37555         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
37556           the theme now.
37557
37558 2004-08-09 09:56  jackson
37559
37560         * XplatUI.cs: Remove defaults, these are handled by the theme now.
37561
37562 2004-08-09 09:54  jackson
37563
37564         * Control.cs: Get default properties from the theme.
37565
37566 2004-08-09 09:53  jackson
37567
37568         * ITheme.cs: Themes now handle default control properties
37569
37570 2004-08-09 09:53  jackson
37571
37572         * ThemeWin32Classic.cs: Themes now handle default control
37573           properties so coloring will be consistent
37574
37575 2004-08-08 16:54  jordi
37576
37577         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
37578
37579 2004-08-08 15:08  jordi
37580
37581         * XplatUIX11.cs: fixes keyboard crash
37582
37583 2004-08-08 13:47  jordi
37584
37585         * Label.cs: add cvs header info
37586
37587 2004-08-08 12:09  jackson
37588
37589         * ThemeWin32Classic.cs: Add pen_buttonface
37590
37591 2004-08-08 11:52  jordi
37592
37593         * Label.cs, LinkLabel.cs: [no log message]
37594
37595 2004-08-08 11:34  jordi
37596
37597         * ThemeWin32Classic.cs: Use Windows Standard Colours
37598
37599 2004-08-07 17:32  jordi
37600
37601         * TrackBar.cs: throw exceptions of invalid enums values
37602
37603 2004-08-07 17:31  jordi
37604
37605         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
37606           draw method name
37607
37608 2004-08-07 16:56  jackson
37609
37610         * HorizontalAlignment.cs: Initial checkin
37611
37612 2004-08-07 13:16  jordi
37613
37614         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
37615           methods
37616
37617 2004-08-07 13:05  jordi
37618
37619         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
37620           GetSysColor defines
37621
37622 2004-08-06 18:01  pbartok
37623
37624         * ThemeWin32Classic.cs:
37625           - Fixed some rounding issues with float/int
37626
37627 2004-08-06 18:00  jackson
37628
37629         * DockStyle.cs, AnchorStyles.cs:
37630
37631                   Add flags and serializable attributes.
37632
37633 2004-08-06 17:46  pbartok
37634
37635         * XplatUIX11.cs:
37636           - Implemented GetParent
37637
37638 2004-08-06 17:18  pbartok
37639
37640         * TrackBar.cs:
37641           - Fixed some rounding issues with float/int
37642
37643 2004-08-06 17:17  pbartok
37644
37645         * X11Structs.cs, XplatUIX11.cs:
37646           - Fixed Refresh and Invalidate
37647
37648 2004-08-06 15:30  pbartok
37649
37650         * Control.cs, X11Structs.cs, XplatUIX11.cs:
37651           - Fixed recursive loop when resizing
37652           - Improved/fixed redrawing on expose messages
37653
37654 2004-08-06 09:53  jordi
37655
37656         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37657           keyboard navigation
37658
37659 2004-08-06 08:02  pbartok
37660
37661         * X11Structs.cs, XplatUIX11.cs:
37662           - Fixed reparenting
37663           - Fixed window border creation
37664
37665 2004-08-05 15:38  pbartok
37666
37667         * XplatUIX11.cs:
37668           - Attempted fix for reparenting problems
37669
37670 2004-08-04 15:14  pbartok
37671
37672         * Control.cs:
37673           - Fixed Invalidation bug (calculated wrong client area)
37674           - Added ClientSize setter
37675
37676 2004-08-04 15:13  pbartok
37677
37678         * Form.cs:
37679           - Added AutoScale properties
37680
37681 2004-08-04 15:13  pbartok
37682
37683         * SWF.csproj:
37684           - Added latest files
37685
37686 2004-08-04 14:11  pbartok
37687
37688         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37689           XplatUIX11.cs:
37690           - Added Invalidate handling
37691
37692 2004-08-03 17:09  jordi
37693
37694         * XplatUIDriver.cs: fixes spelling mistake
37695
37696 2004-07-27 09:53  jordi
37697
37698         * TrackBar.cs: fixes trackbar events, def classname, methods
37699           signature
37700
37701 2004-07-27 09:29  jordi
37702
37703         * ScrollBar.cs: fixes scrollbar events
37704
37705 2004-07-27 04:38  jordi
37706
37707         * Control.cs: changes to be able to run winforms samples
37708
37709 2004-07-26 11:42  jordi
37710
37711         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37712           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37713
37714 2004-07-26 05:41  jordi
37715
37716         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37717           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37718           implementation
37719
37720 2004-07-22 09:22  jordi
37721
37722         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37723           check link overlapping, implement events, and fixes
37724
37725 2004-07-21 10:28  jordi
37726
37727         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37728
37729 2004-07-21 10:19  jordi
37730
37731         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
37732           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
37733           LinkLabelLinkClickedEventArgs.cs,
37734           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
37735           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
37736           implementation
37737
37738 2004-07-19 13:09  jordi
37739
37740         * Control.cs, Label.cs: label control re-written: added missing
37741           functionlity, events, and properties
37742
37743 2004-07-19 10:49  jordi
37744
37745         * Control.cs: fixes SetBounds logic
37746
37747 2004-07-19 01:29  jordi
37748
37749         * Control.cs: Call RefreshWindow only if the window has created
37750
37751 2004-07-15 14:05  pbartok
37752
37753         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
37754           - Implemented ImageList and ImageList.ImageCollection classes
37755           - Added ColorDepth enumeration
37756           - Updated SWF VS.Net project
37757
37758 2004-07-15 11:06  jordi
37759
37760         * XplatUIStructs.cs: added MsgButons enum
37761
37762 2004-07-15 11:03  jordi
37763
37764         * Control.cs: added basic mouse handeling events
37765
37766 2004-07-15 03:38  jordi
37767
37768         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
37769           Vertical TrackBar control implementation
37770
37771 2004-07-13 09:33  jordi
37772
37773         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
37774
37775 2004-07-13 09:31  jordi
37776
37777         * Control.cs, Form.cs: commit: new properties and fixes form size
37778           problems
37779
37780 2004-07-09 14:13  miguel
37781
37782         * ProgressBar.cs: Spelling
37783
37784 2004-07-09 11:25  pbartok
37785
37786         * ProgressBar.cs:
37787           - Removed usage of Rectangle for drawing. Miguel pointed out it's
37788           faster
37789
37790 2004-07-09 11:17  miguel
37791
37792         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
37793
37794                 * ProgressBar.cs: Fixed spelling for `block'
37795
37796                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
37797                 style guidelines.
37798
37799                 Avoid using the += on rect.X, that exposed a bug in the compiler.
37800
37801 2004-07-08 23:21  pbartok
37802
37803         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
37804           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
37805           BaseCollection.cs, Binding.cs, BindingContext.cs,
37806           BindingMemberInfo.cs, BindingsCollection.cs,
37807           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
37808           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
37809           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
37810           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
37811           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
37812           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
37813           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
37814           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
37815           FrameStyle.cs, GiveFeedbackEventArgs.cs,
37816           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
37817           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
37818           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
37819           InputLanguageChangedEventArgs.cs,
37820           InputLanguageChangedEventHandler.cs,
37821           InputLanguageChangingEventArgs.cs,
37822           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
37823           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
37824           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
37825           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
37826           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
37827           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
37828           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
37829           QueryAccessibilityHelpEventArgs.cs,
37830           QueryAccessibilityHelpEventHandler.cs,
37831           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
37832           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
37833           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
37834           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
37835           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
37836           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
37837           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
37838           XplatUIX11.cs, lang.cs:
37839           - Initial check-in
37840
37841