f4b6148ca1a72945ca3dc3f1cc35849c29630ea3
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
2
3         * CurrencyManager.cs: Remove duplicate code.
4
5 2009-08-07  Ivan N. Zlatev  <contact@i-nz.net>
6
7         * DataGridView.cs, DataGridViewCell.cs, DataGridViewColumn.cs: 
8         Massive population performance boost. From seconds to ms.
9         [Fixes bug #528887]
10
11 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12
13         * DataGrid.cs: When handling mouse down on a column, don't do any sort
14         even if the list supports it if we are empty. This way we avoid an exc
15         sorting the empty list, and keep the UI compatible with .net.
16
17 2009-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18
19         * DataGrid.cs: In Edit () check we have any row before trying to use
20         the current row. Fixes a IOOR exc with an empty data grid.
21
22 2009-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
25         the owner DataGrid - even if this seems to be the right thing to do,
26         .net is not doind this check at this point, but in later operations.
27         Fixes #465019.
28
29 2009-07-28  Mike Gorse  <mgorse@novell.com>
30
31         * ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
32
33 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
34
35         * Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.
36
37 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
38
39         * XplatUIX11.cs:
40         * XplatUIWin32.cs: We need to filter the messages using
41         Application.FilterMessage for our DoEvents implementations. Observe
42         that I don't like the idea of XplatUI call the upper level Application
43         class, but at this point is easier and simpler to do this call - based
44         on the fact it's only one simple call.
45         Fixes #516735.
46
47 2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
48
49         * TreeNodeCollection.cs: When removing the selected node, set the
50         SelectedNode value of TreeView to null if there aren't more nodes left - 
51         this is better than to clear the selected node in Clear, since we need
52         to handle the situation in the Remove methods as well.
53         Fixes #525002.
54
55 2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
56
57         * ToolStripItemCollection.cs: Find should do a case insensitive
58         search, and should throw an ArgumentNullException if the parameter is
59         an empty string.
60
61 2009-07-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
62
63         * PropertyGrid.cs: Use click handlers for each ToolStripButton instead
64         of using a global handler for the ToolStrip. This way the buttons can
65         be recovered and can have its PerformClick method called properly.
66         Fixes #522454.
67
68 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
69
70         * X11Dnd.cs: Implement support for XdndActionList, so we can get the
71         complete list of the supported actions in the drag source, and use the
72         action passed in the Position message only as a fallback. This will
73         help us with dnd operations with non winforms apps.
74         Fixes #402158.
75
76 2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
77
78         * ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
79         Find. This should fix the exception we were getting when trying to
80         convert the ArrayList to an array of objects (since we were losing the
81         type parameter).
82         Fixes #519944.
83
84 2009-07-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
85
86         * RadioButton.cs: Setting Checked when none of the sibligs is checked
87         should happen *not* in GotFocus, but in the Enter event. This is
88         specially important since we should get that Checked behaviour even if
89         no handle is created yet - and thus, no actual GotFocus call happens at
90         the time.
91         Fixes #520764.
92
93 2009-07-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
94
95         * ComboBox.cs: Adjust manually the top border for out internal
96         ComboBox, since removing the border from it leaves it without any
97         margin. This is not noticeable in a default ComboBox, but it is in an
98         instance shown on top of ToolStrip.
99         Fixes the remaining part of #507462.
100
101 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
102
103         * TextBoxBase.cs: Expose the margin top width as a property, to keep
104         the code clean.
105         * ToolStripTextBox.cs: Since we are actually using no border in the
106         default TextBox impl, and we are drawing the border ourselves, we need
107         to manually set the top margin.
108         Fixes part of #507462.
109
110 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
111
112         * PrintPreviewDialog.cs: Record when left was pressed, so we can
113         simulate Tab+Alt when moving the focus throughout our buttons and
114         controls.
115         Fixes the remaining bits of #509142.
116
117 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
118
119         * TabControl.cs: When computing the width of each tab page, use the
120         page's Font instead of the tab control one.
121         Fixes #514368.
122
123 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
124
125         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
126         the current menu is specifically a ContextMenu (this is what .net does
127         as well). This way we also avoid a crash caused by MenuTracker trying
128         to use the menu when it was already hidden.
129
130 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
131
132         * PrintPreviewDialog.cs: Remove the code used to handle the
133         DropDown menu, since we are now doing it by default in ToolBar, and
134         just call the base impl as needed.Also, deactivate the dropdown menu
135         before moving the focus to a different button in our toolbar, as .net
136         does.
137         * ContextMenu.cs:
138         * MenuAPI.cs: Make as internal the needed bits to deactivate a
139         ContextMenu, and also to keep some beauty in our api.
140
141 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
142
143         * ToolBar.cs: When handling the key down message, if we are on a
144         drop down button, either show the DropDownMenu or pass the key to its
145         ProcessCmdKey method as needed.
146         Fixes the remaining bits of #509985.
147
148 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
149
150         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
151         set current_item when navigating with the keyboard, so we can use it
152         properly later. Finally, handle both Enter and Space to fire
153         OnButtonClick *only*, without any other impact, as .net does.
154         Fixes part of #509985.
155
156 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
157
158         * MenuAPI.cs: Close any active menu when we get a simple Alt.
159         Fixes #509299.
160
161 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
162
163         * ToolBar.cs: In OnButtonClick only change the Pushed value for
164         buttons with toogle style. We were previously doing it for
165         DropDownButton's buttons, but that's not what .net is doing.
166         Fixes #510030.
167
168 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
169
170         * XplatUICarbon.cs : support multi-byte text input.
171           Fixed bug #501276.
172
173 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
174
175         * ListBox.cs: When creating DrawItemEventArgs, pass either
176         Theme.ColorHighlightText or ForeColor depending on the selected state
177         of our item, as .net does.
178         Fixes #512115.
179
180 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
181
182         * ComboBox.cs: When handling WM_CHAR, process the message first, and
183         send it to the textbox only if it wasn't handled.
184         Fixes #507459.
185
186 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
187
188         * ComboBox.cs: Only do my big sort at the end of AddRange if
189         the combobox is actually set to Sorted.
190
191 2009-06-18 Tom Hindle <tom_hindle@sil.org>
192         
193         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
194         Fixes #511849.
195
196 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
197
198         * ListBox.cs: When calculating the scrollbars for non MultiColumn
199         mode, force the use of the horizontal scrollbar only if
200         ScrollAlwaysVisible is true as well.
201         Fixes #513029.
202
203 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
204
205         * ComboBox.cs: When using AddRange on a sorted combobox, don't
206         try to use our inefficient sorted insert method, just append
207         it and sort the whole thing at then end.
208         [Fixes bug #511247]
209
210 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
211
212         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
213         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
214         DropDown element.
215         Fixes #509152.
216
217 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
218
219         * DataGridView.cs: Scrolling fixes.
220         [Fixes bug #512816]
221
222 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
223
224         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
225         optimize for batch adding rows.
226
227 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
228
229         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
230         binding.
231         [Fixes bug #512807]
232
233 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
234
235         * DataGridView.cs: Suppress invalidation during data binding.
236         [Fixes part of bug #512807]
237
238 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
239
240         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
241         controls that are part of our ToolBar, so we can mimic the behaviour
242         observed in .Net, by handling also the arrow keys and doing the
243         preprocess for them too.
244         Fixes the remaining bits of #509142.
245
246 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
247
248         * ToolBar.cs: Expose the current item as internal.
249         * PrintPreviewDialog.cs: Tune the TabStop property for
250         PrintPreviewControl/ToolBar so we match the .net scenario regarding
251         Tab navigation. Also implement support to navigate throughout the
252         items in the ToolBar.
253         Fixes #509142.
254
255 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
256
257         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
258         Implement items syncing in the non-databound scenario.
259         [Fixes bug #494031]
260
261 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
262
263         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
264         handle the Cancel accordingly.
265         [Fixes bug #506838]
266
267 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
268
269         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
270         [Fixes bug #506796]
271
272 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
273
274         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
275         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
276         changed when Clearing the collections so that the DataGridView 
277         can know and reset the current cell.
278         [Fixes bug #492549]
279
280 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
281
282         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
283         with the PropertyDescriptor parameter instead of index, because the 
284         latter will set some irelevant indices. Fixes a bug uncovered by recent
285          fix to ListChangedEventArgs.
286
287 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
288
289         * DataObject.cs: When looking for any specific format, do a case
290         insensitive search, as .net does.
291         Fixes #509199.
292
293 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
294
295         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
296         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
297         logic and eventhough it's an IList IsReadOnly should not be used in this 
298         case as it might be True but AllowNew could be True as well.
299         Fixes a bug uncovered by a fix to the Array class.
300
301 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
302
303         * ListBindingHelper.cs: In GetListItemType do a null check when
304         looking for IList.Item, since the impl could be explicit, and thus
305         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
306         Fixes the remaining part of #507120
307
308 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
309
310         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
311         to match them in all the cases, as this is exactly what .net does.
312         Fixes #510728.
313
314 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
315
316         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
317         where an instance of IEnumerator returns a null value for its Current
318         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
319         Fixes #507120.
320
321 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
322
323         * ComboBox.cs: Properly detect whether we need to use our vertical
324         scrollbar or not, specially for DropDownList/DropDown styles,
325         depending on the value of DropDownHeight.
326         Fixes #508541.
327
328 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
329
330         * ToolTip.cs: Call the base implementation in Dispose, but do it
331         before anything else to avoid a regression. This way we do the default
332         routines related to any System.ComponentModel.Container.
333         Fixes #508586.
334
335 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
336
337         * Clipboard.cs:
338         * XplatUIX11.cs:
339         * DataFormats.cs: Implement support for serializable types in our
340         clipboard.
341         Fixes #357642.
342
343 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
344
345         * ColorDialog.cs: Actually add the help button to the form, so it can
346         be visible.
347         Fixes #478555.
348
349 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
350
351         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
352         PrintPreviewControl, since it will be hidden in the top by our
353         toolbar. Use manual location and anchoring instead.
354         Fixes #474889.
355
356 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
357
358         * FileDialog.cs: When saving the size of the dialog, use the
359         ClientSize instead of Size, so we have always the same size for the
360         form. Patch by Alex Shulgin.
361         Fixes #503064.
362
363 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
364
365         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
366         show a beep, similar to what .net does. 
367         Fixes #473725.
368
369 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
370
371         * ContainerControl.cs:
372         * MenuStrip.cs
373         * ToolStrip.cs: Implicit mnemonic processing should happen for every
374         ToolStrip child, not only for MenuStrip, so we are going to do that in
375         ToolStrip.ProcessMnemonic, where we already had that exactly
376         functionality, but we are only just checking that either this instance
377         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
378         remove the extra code, since we are not going to use it now.
379         Fixes the remaining bits of #503663.
380
381 2009-05-21  Neville Gao  <nevillegao@gmail.com>
382
383         * ContextMenu.cs: Cleaned up UIA properties.
384
385 2009-05-20  Dick Porter  <dick@acm.org>
386
387         * XplatUICarbon.cs: Add more locking around MessageQueue
388         manipulations.
389
390 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
391
392         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
393         duplication of code, as well as actually getting the focus back in
394         *any* scenario where the drop down is closed.
395
396 2009-05-18 Tom Hindle <tom_hindle@sil.org>
397         * ScrollableControl.cs: Ignore setting properties HScroll and 
398         VScroll when AutoScroll is true.
399         [Fixes bug #500213]
400
401 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
402
403         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
404         disabled graphics look closer to the ones that .Net produces.
405         [Fixes bug #473660]
406
407 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
408
409         * DateTimePicker.cs: When calculating the max width for the year part,
410         use the current value, since *all* the possible values are exactly a 4
411         digits number. This way we avoid a ArgumentOutOfRangeException trying
412         to check against different values.
413         Fixes #500917.
414
415 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
416
417         * MessageBox.cs: When handling ProcessDialogChar, check that
418         CancelButton is not null before trying to use it, to avoid a null ref
419         exception. We don't need to do that on the ok/yes buttons, since they
420         always exist.
421         Fixes #503935.
422
423 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
424
425         * ListBox.cs: Handle the key down event in WndProc instead of doing it
426         in an event handler, as we need to avoid any operation in case
427         the user has handled it in its own OnKeyDown handler, and this can't
428         be achieved since our handler would be the first one always.
429         * FontDialog.cs: Update the calls since our method handling key down
430         has been renamed.
431         Fixes #503469.
432
433 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
434
435         * Application.cs: We should dismiss the active ToolStrip when we
436         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
437         keyboard short cut can be properly processed by another menu item.
438         Fixes part of #503663.
439
440 2009-05-13  Andreia Gaita  <avidigal@novell.com>
441
442         * HtmlDocument.cs: If the objects are strings, wrap them in ""
443
444 2009-05-13  Andreia Gaita  <avidigal@novell.com>
445
446         * HtmlDocument.cs: Fix InvokeScript call (duh).
447
448 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
449
450         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
451         * ComboBox.cs: If auto complete is being used, it is needed to update
452         the actual value of the combo box, doing it immediately if the user
453         presses Enter, or doing it when our combo box loses focus. Finally,
454         when handling Enter and Escape keys for the combobox, don't try to
455         hide the listbox if it is not visible in the first place. 
456         Fixes part of #489339.
457
458 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
459
460         * ToolStripDropDownMenu.cs: Use the height returned by
461         ToolStripItem.GetPreferredHeight to calculate our own height.
462
463 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
464
465         * TreeNode.cs: When setting Checked, do a double null check, since the
466         current node can still get a null parent handling
467         TreeView.OnAfterCheck.
468         Fixes #502567.
469
470 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
471
472         * Control.cs: When assigning ContextMenu, do a null check before
473         assigning its container field.
474
475 2009-05-08  Brad Taylor  <brad@getcoded.net>
476
477         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
478         is_checkbox_checked is changed, we won't break.
479
480 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
481
482         * ToolStripItem.cs: Prevent NRE when our holder is a
483         ToolStripDropDownButton and we get Select()ed.
484
485 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
486
487         * ToolStripControlHost.cs: DefaultSize must return the current size of
488         the Control, not the value returned by GetPreferredSize. Also connect
489         a handle to the control Resize event, and use it to fire
490         OnHostedControlReize.
491         Fixes the remaining bits of #483146.
492
493 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
494
495         * ToolStripDropDown.cs: When performing the layout, use
496         ToolStripItem.GetPreferredSize ().Height instead of
497         ToolStripItem.Height, since we are already using it that way in this
498         same method.
499         Fixes part of ##483146.
500
501 2009-05-08  Brad Taylor  <brad@getcoded.net>
502
503         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
504         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
505         recieves focus.  Part of fix for #502029.
506
507 2009-05-06  Mike Gorse  <mgorse@novell.com>
508
509         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
510         Add PerformClick and PerformDoubleClick to PopupButton.
511         Fixes #499851.
512
513 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
514
515         * TabControl.cs: call Focus() to emit GotFocus event at the
516         proper time when SelectionIndex changes. Fixes #499887.
517
518 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
519
520         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
521         have valid values, even if BoundSpecified is not including
522         Size/Height/Width - this is useful when we are in a control using Dock
523         or Anchor.
524         Fixes part of #483146.
525
526 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
527
528         * ComboBox.cs: When losing the focus, if our textbox is not null,
529         close its auto complete list, if any.
530         Fixes part of #489339.
531
532 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
533
534         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
535
536 2009-04-27  Brad Taylor  <brad@getcoded.net>
537
538         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
539         changed.
540
541 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
542
543         * XplatUIX11.cs: Properly support UTF8 when handling the
544         SelectionRequest event - this is helpful supporting some window
545         managers, such KDE, that explictly request the text in utf8, as
546         opposed to gnome, that supports ascii.
547         Fixes #489393.
548
549 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
550
551         * ToolStripDropDownItem.cs: When assigning a new
552         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
553         Capture duties performed by Application/ToolStripManager are handled
554         nicely and we don't end up in an inconsisten stat.
555         Fixes #492815.
556
557 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
558
559         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
560         any ToolStripDropDownItem when receiving a mouse down event in an
561         empty area.
562
563 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
564
565         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
566
567 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
568
569         * ToolBarButton.cs: rename a method to include UIA prefix.
570
571 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
572
573         * ToolBarButton.cs: change visibility of some UIA methods from
574         protected virtual to private.
575
576 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
577
578         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
579         fire OnDropDownOpened/OnDropDownClosed depending on the new
580         visibility. This also ensures that any direct access to this instance
581         will fire the mentioned events for the OwnerItem.
582         * ToolStripDropDownItem.cs: Remove the invocations to
583         OnDropDownOpened/OnDropDownClosed, since they are handled in
584         ToolStripDropDown, as well as updating the
585         OnDropDownHide/OnDropDownShow calls to be in the right order.
586         Fixes #496193.
587
588 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
589
590         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
591         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
592         event is the same as the owner of the menu item. Also set properly 
593         SourceControl for ContextMenuStrip, as well as add an internal field to 
594         contain the control that owns the ContextMenuStrip (we need to know this 
595         even before the public property is assigned).
596         Fixes bits of #393775.
597
598 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
599
600         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
601         size grip.
602         Fixes #492828.
603
604 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
605
606         * ComboBox.cs: When calculating the height of the ComboListBox,
607         specially for the 2.0 profile, use MaxDropDownItems if the
608         DropDownHeight property hasn't been set, and use the later if it has
609         been set. This way we support both properties.
610         Fixes #493308.
611
612 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
613
614         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
615         Fixes #474253.
616
617 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
618
619         * ContainerControl.cs: Implement support for Control.CausesValidation,
620         by adding a pending list of controls to be validated in the top
621         container control, and postpone validation as needed. 
622         Also remove any control in the validation chain in case it gets removed 
623         from its owner before the pending validation actually happens.
624         Fixes #457170.
625
626 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
627
628         * ListBox.cs: The default instance StringFormat field used to draw our
629         items should use the StringFormatFlags.NoWrap value, so it doesn't try
630         to put in a different line the text that doesn't fit our bounds, but
631         show it partially.
632         Fixes #475581.
633
634 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
635
636         * CheckedListbox.cs: When executing OnItemClick check that the index
637         is different to -1 before trying to retrieve an item using that value.
638         Fixes a ArgumentOutOfRangeException thrown when the horizontal
639         scrollbar was visible but not needed, and then a clicked was received
640         on its area.
641
642 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
643
644         * MaskedTextBox.cs: If Insert is pressed, change the internal
645         overwrite mode for our default value.
646         Fixes some bits of #477395.
647
648 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
649
650         * ListView.cs: In EnsureVisible avoid any direct access to items if we
651         are using virtual mode - otherwise use the bounds stored in a specific
652         item in a given index. This is specially important when using groups
653         or when items are re-arranged, since the position in the items
654         collection can be different than that one being displayed.
655         Fixes the rest of ##491978.
656
657 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
658
659         * ThemeWin32Classic.cs: Include the previous check for ListView in a
660         2.0 define as needed.
661
662 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
663
664         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
665         Fixes part of #491978.
666
667 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
668
669         * ToolTip.cs: New fields to store the title/icon information.
670         * ThemeWin32Classic.cs: Implement support for tooltip's title and
671         icon.
672         Fixes #491978.
673
674 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
675
676         * TabControl.cs: When removing a tab that was previously selected, set
677         internally the value of selected_index to -1, to avoid trying to
678         access the previous one when trying to set the new one (and was
679         already removed from the collection). This is what .net seems to do
680         too.
681         Fixes #490937.
682
683 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
684
685         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
686         separated, and we cannot fallback on Text if Rtf is requested but not
687         present.
688         * Clipboard.cs: Actually use the format specified by our user when
689         putting data.
690
691 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
692
693         * X11Clipboard.cs: Actually look for the RtfText format when calling
694         GetRftText in our clipboard formats list, instead of using the
695         generical Text format.
696
697 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
698
699         * TextBox.cs: Process auto completion properly when we are using the
700         internal source provided by ComboBox, and also remove some repeated
701         checks.
702         Fixes #489339.
703
704 2009-03-30 Tom Hindle <tom-hindle@sil.org>
705         
706         * DataGridView added Support for Invisible Columns to 
707         AutoFillColumnsInternal method.
708
709 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
710
711         * X11Structs:
712         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
713         its own file, since it is adding some functionality and thus is not a
714         simple struct as before.
715         * XplatUIX11.cs: Add support to store different formats that could
716         have been specified by the user when puting data in the Clipboard -
717         this is important when more than one format is supported (such plain
718         text and rtf text). Update in the needed places, as well as simplify
719         the code.
720         Fixes #489625.
721
722 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
723
724         * XplatUIX11.cs: When handling the SelectionRequest event, use
725         SelectionRequestEvent instead of SelectionEvent, so we get the right
726         data for the app asking for clipboard data. Set the member of
727         SelectioneEvent.property to indicate the place where we are storing
728         the information as well - this is specially important for gnome/kde
729         apps using the TARGETS atom to ask for the supported permission before
730         actually asking for a specific format.
731         Fixes #489393.
732
733 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
734
735         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
736         so fallback and at least draw something instead of nothing.
737
738 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
739
740         * DataGridView.cs: If the column header isn't visible allow resizing 
741         using the cell column border. Also be sure to reset the cursor properly.
742         [Fixes bug #489929]
743
744 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
745
746         * ToolStrip.cs: When disposing, iterate over the items in reverse
747         order, since disposing the items modifies the collection.
748         * ToolStripItem.cs: Remove from the owner when disposing.
749         Fixes #485769.
750
751 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
752
753         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
754         longer throws a NotImplementedException.
755           Based on a patch by Tom Hindle <tom_hindle@sil.org>
756         [Fixes bug #488319]
757
758 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
759
760         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
761         NotImplementedException.
762
763 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
764
765         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
766         Fix SortMode clash handling.
767         [Fixes bug #488263]
768
769 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
770
771         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
772         one row or less. For the sake of MSNET compatibility.
773         [Fixes bug #487988]
774
775 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
776
777         * DataGridView.cs: When the current cell is moved out of the editing row 
778         be sure to reset it back to a place holder row.
779
780 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
781
782         * DataGridView.cs: If IsHandleCreated and the very first row is added 
783         to the grid in a non-databound scenario - select the first cell.
784         [Fixes bug #486881]
785
786 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
787
788         * DataGridView.cs: If we are not databound and empty once the first row 
789         gets added select the first cell.
790         [Fixes bug #486881]
791
792 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
793
794         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
795         DataGridView. They do not belong to a DataGridView.
796         [Fixes bug #486645]
797
798 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
799
800         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
801         Set indices and associate with DataGridView only after the item is 
802         add to the internal list.
803         [Fixes part of bug #486645]
804
805 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
806
807         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
808         FullRowTemplate already contains all the cells.
809         [Fixes part of bug #486645]
810
811 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
812
813         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
814         to perform Pre and Post removal actions to allow the current cell to be 
815         moved and all events fired properly before the column is removed.
816
817 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
818
819         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
820         Post removal action to allow the current cell to be moved and all events fired 
821         properly before the row is removed.
822
823 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
824
825         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
826         [Fixes bug #486640]
827
828 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
829
830         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
831         placement of popup windows on OSX.
832
833 2009-03-18  Matt Guo  <matt@mattguo.com>
834
835         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
836         [Fixes bug #482690]
837
838 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
839
840         * DataGridView.cs: Implement the CellMouseDoubleClick event.
841         [Fixes bug #486262]
842
843 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
844
845         * DataGridView.cs: Fix scrolling to take into account that the 
846         scrollbars are actually inside the client area of the datagridview.
847
848 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
849
850         * DataGridView.cs: Implement mouse wheel scrolling.
851         [Fixes bug #486159]
852
853 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
854
855         * DataGridView.cs: When DataSource changes the rebinding should happen 
856         not if IsHandleCreated but if BindingContext != null.
857         [Fixes bug #486013]
858
859 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
860
861         * DataGridView.cs: Browsable(false) properties should be skipped when 
862         autogenerating the columns.
863         [Fixes bug #486021]
864
865 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
866
867         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
868         user should use a different handling, trying to use every pressed char
869         as a unique and only one prefix to compare against the items. Also,
870         refactor some input check code to avoid duplication.
871         Fixes #458607.
872
873 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
874
875         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
876         silently.
877         [Fixes bug #485278]
878
879 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
880
881         * DataGridViewBand.cs: Update our State whenever a property changes.
882         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
883         it will spawn lots and lots of unneeded State changed events.
884         [Fixes bug #484989]
885
886 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
887
888         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
889         Add support for invisible rows and columns.
890         [Fixes bug #484951]
891
892 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
893
894         * DataGridViewCell.cs: Escape literal { in ToString.
895         * DataGridViewTextBoxCell.cs: Fix ToString.
896         [Fixes bug #484923]
897
898 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
899
900         * MenuAPI.cs: When navigating items using the keyboard properly handle
901         the case when no item is selected - this way we should try to select
902         the first or the last item depending on the direction, but no the
903         second or third one, etc.
904
905 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
906
907         * Form.cs: When calling ProcessCmdKey, just after checking for any
908         MainMenu, check if there's an active ContextMenu that is *not* owned
909         by the form - this is needed when a non-focusable control owns a
910         ContextMenu but its ProcessCmdKey method can't be called since it
911         can't receive any input.
912         Fixes #477655.
913
914 2009-03-13  Neville Gao  <nevillegao@gmail.com>
915
916         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
917         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
918         ContextMenu is displayed.
919
920 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
921
922         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
923         WM_HELP message for the associated window, don't call
924         NativeWindow.WndProc *at all*, since this could send a WM_*
925         key-related to Control.WndProc. Also, return the keypress message, in
926         case it needs to be preprocessed for any menu.
927         Fixes #478476.
928
929 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
930
931         * DataGridView.cs: When removing the first displayed row and moving 
932         the current cell up one we must invalidate the first displayed row 
933         index before calculating the row heights, etc.
934         [Fixes bug #483202]
935
936 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
937
938         * DataGridView.cs: Fix three column bugs:
939            - Rows should be cleared (but not removed) if columns become 0.
940            - The current cell should get moved
941            - ColumnCount increase was adding too many columns.
942
943 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
944
945         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
946         in both scenarions - with and without editing row.
947
948 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
949
950         * DataGridView.cs: Be compatible with MS in that the scroll to 
951         selection has a synchronous effect. The trick here is that in 
952         order to avoid unnecessary calculations each time a row/column 
953         is added/removed we recalculate the whole grid size just before 
954         just before the scroll to selection.
955         [Fixes bug #482478]
956
957 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
958
959         * RichTextBox.cs: LoadFile(string path) should pass by default
960         RichTextBoxStreamType.RichText, without caring about the detection or
961         extension of the file.
962
963 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
964
965         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
966         introduced by StreamReader, since it will convert the EOF to an EOL.
967         Fixes #479646.
968
969 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
970
971         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
972         preferred size twice.
973
974 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
975
976         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
977         string if we aren't on a ToolStripDropDownMenu.
978
979 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
980
981         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
982         code from Item to Button.  Patch from Alex Shulgin.
983
984 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
985
986         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
987         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
988         not a ToolStripDropDown.
989         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
990
991 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
992
993         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
994
995           Based on a patch by Tom Hindle <tom_hindle@sil.org>
996           [Fixes bug #482133]
997
998 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
999
1000         * DataGridView.cs, DataGridViewElement.cs: 
1001            - Always calls OnDataGridViewChanged() if the new DGV is 
1002            not the same/null as the current one.
1003            - Do not throw NREs when setting TopLeftHeaderCell to null
1004            - Unset the DGV for TopLeftHeaderCell when replacing it
1005           Based on a patch by Tom Hindle <tom_hindle@sil.org>
1006           [Fixes bug #481681]
1007
1008 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
1009
1010         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
1011         hit a NRE if we are a ContextMenuStrip and do not have a parent.
1012         [Fixes bug #478616]
1013
1014 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1015
1016         * ListView.cs: When removing items from a ListViewItemCollection
1017         contained in ListView (not in ListViewGroup), before actually removing
1018         the items remove them also from their -if any- associated groups. If
1019         the item is present in ListViewGroup.Items but not in ListView.Items,
1020         then don't remove it - this is *exactly* what .net seems to do.
1021         Fixes the remaining bits of #478689.
1022
1023 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1024
1025         * ListView.cs: In our MouseDown handler in ItemControl use the item in
1026         the very specific *real* position where the mouse was pressed, using
1027         GetItemAtDisplayIndex for that purpose, instead of directly accessing
1028         Items - this is specially useful when groups with Details view is
1029         used. This is what we do in other places when using groups.
1030         Fixes part of #478689.
1031
1032 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1033
1034         * MaskedTextBox.cs: Properly replace selection when a new valid key
1035         is pressed - even when IsOverwriteMode is false. This is what .net
1036         does.
1037
1038 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1039
1040         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
1041         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
1042         since Set will keep the previous value in case of error (just what we
1043         need), but still call MaskedTextProvider.Clear if
1044         RejectOnFirstFailure is false - match .net.
1045
1046 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1047
1048         * MaskedTextBox.cs: When setting Text use the very precise algorithm
1049         that .net uses: iterate over every char of the new value, trying to
1050         use every char, and use a normal call to MaskedTextProvider.Replace
1051         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
1052         in case of error in both cases, as well.
1053         Fixes #477408.
1054
1055 2009-02-25  Neville Gao  <nevillegao@gmail.com>
1056
1057         * ColorDialog.cs: Added UIA Framwork Property:
1058         UIASelectedSmallColorControl.
1059
1060 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1061
1062         * MaskedTextBox.cs: Forgot to update the call of the new method
1063         introduces in the previous patch.
1064
1065 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1066
1067         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
1068         key. Also create a new method to avoid code duplication between
1069         OnKeyDown and OnKeyPress.
1070         Fixes #477388.
1071
1072 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
1073
1074         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
1075         or deselected.
1076         [Fixes bug #479124]
1077
1078 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1079
1080         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
1081         actually inversed, so put it the right way. Also, don't automatically
1082         look for the next editable item after adding a new one, but way for
1083         the next insertion (this is what .net does) - this is not needed when
1084         MaskedTextProvider.InsertAt is called however, since it already looks for the
1085         next editable position.
1086         Fixes the remaining bits of #477383.
1087
1088 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1089
1090         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
1091         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
1092         property after the text was modified, adjust the testPosition value
1093         depending on what method was called.
1094         Fixes part of #477383.
1095
1096 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1097
1098         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
1099         the existence of the column headers, as well as using this information
1100         to adjust the vscrollbar value, so items never get hidden by the
1101         column headers.
1102         Fixes #478498.
1103
1104 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1105
1106         * DataGridView.cs: Make the ScrollBars property work properly.
1107
1108 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1109
1110         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1111         when handling non-navigation keys, save the original Text typed by the
1112         user, and don't motify it BEFORE. This was a design mistake, since the
1113         re-assignation happens only when navigating the append/suggest list,
1114         not while creating the matches. Also, process the Delete key just like 
1115         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1116         and Enter keys.
1117         Fixes some missing bits of #469967.
1118
1119 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1120
1121         * DataGridView.cs: Fix row removal in the data-bound scenario.
1122
1123 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1124
1125         * DataGridViewCell.cs: Use strict equality comparison in order to 
1126         prevent superfluous CellValueChanged events.
1127
1128 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1129
1130         * DataGridView.cs: Do not reset the columns when the data list changes, 
1131         but only the rows. Fixes multiple bugs related to sorting, custom 
1132         column styles being reset and more.
1133
1134 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1135
1136         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1137         drawing the image.
1138
1139 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1140
1141         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1142
1143 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1144
1145         * ToolBarButton.cs: Event for Enabled property (needed to fix
1146           UIA #474197).
1147
1148 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1149
1150         * TextBox.cs: When handling WndProc with autocomplete activated,
1151         event if the new text is not causing any change in the look up
1152         algorithm, save it as we normally do when numbers and letters.
1153         Fixes #469967.
1154
1155 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1156
1157         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1158         Invalidate the proper bounds in the TreeView, not only resetting the
1159         width.
1160         Fixes #475542.
1161
1162 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1163
1164         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1165         BackColor property. This is what .net does in both 1.1 and 2.0.
1166         * TreeView.cs: When selected_node is not the same as highlighted_node,
1167         we need to handle the back color in a different way, trying to use the
1168         node's BackColor if it's not Color.Empty.
1169         Fixes #464200.
1170
1171 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1172
1173         * TreeView.cs: When canceling selection in our MouseUp handler,
1174         invalidate also the previous selected node bounds.
1175         Fixes #464191.
1176
1177 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1178
1179         * DataGridView.cs: End or if end fails then cancel the current edit 
1180         operation before clearing the data source.
1181
1182 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1183
1184         * DataGridView.cs: Data-bind only after the handle is created.
1185         [Fixes bug #473680]
1186
1187 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1188
1189         * TreeView.cs: When handling the MouseMove event, check if
1190         focused_node and selected_node fields are null - usually they are non
1191         null, since we have always a selected node, but canceling selection by
1192         handling BeforeSelect event leaves the two of them as null.
1193         Fixes #470451.
1194
1195 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1196
1197         * TabControl.cs: Control enabled to support accessibility.
1198         [Fixes Bug #472428]
1199
1200 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1201
1202         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1203            - Use ArrayList.Insert instead of the Item property so that the item 
1204            is actually inserted and not an existing item replaced.
1205            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1206            OnRowsAdded for binary compitability. This also fixes several 
1207            redrawing issues.
1208         [Fixes bug #472968]
1209
1210 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1211
1212         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1213           the value.
1214
1215 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1216
1217         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1218
1219 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1220
1221         * ToolBarButton: Fix typo in previous commit (r125704).
1222
1223 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1224
1225         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1226         when a button gets focus, firing the events from the ToolBar.
1227         r: jpobst
1228
1229 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1230
1231         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1232         Width.
1233         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1234         ColumnHeader to raise ColumnWidthChanged.
1235         [Fixes Bug #467086]
1236
1237 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1238
1239         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1240         code in the row collection code, so that the completion happens before 
1241         the CollectionChanged event, also better encapsulation.
1242         [Fixes bug #471987]
1243
1244 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1245
1246         * DataGridView.cs: When editing is finished do not remove the editing 
1247         row, because it has already become a real one. Instead add a new one.
1248         [Fixes bug #471754]
1249
1250 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1251
1252         * TreeView.cs: When drawing the node's image, check that the index
1253         specified by the node is valid for the ImageList.
1254         Fixes #471094.
1255
1256 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1257
1258         * ToolBar.cs: Add new UIAPerformClick method to be called by
1259         UIAutomationWinforms when someone calls Invoke() on the
1260         ToolBarButtonProvider. r: jpobst
1261
1262 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1263
1264         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1265         MapNotify/UnmapNotify events - we are already firing those events in
1266         the proper places, so we avoid this way to send the same message two
1267         times. I'm leaving the handling code in case we could break something
1268         in the future, as this change seems dangerous (but needed).
1269         Fixes #467546.
1270
1271 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1272
1273         * DataGridView.cs: Complete incomplete rows when they are added to 
1274         the grid.
1275         [Fixes bug #471068]
1276
1277 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1278
1279         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1280         binding is cleared prior to setting it to null. Fixes a regression 
1281         causing exceptions when the DataSource is set to null and then set 
1282         again to a data source.
1283
1284 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1285
1286         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1287            - Make Image/Bitmap cells work.
1288            - Handle images with size greater than the cell.
1289            - Default to MiddleCenter alignment for image cells.
1290         [Fixes bug #471101]
1291
1292 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1293
1294         * UpDownBase.cs: Force Height to PreferredHeight.
1295
1296 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297
1298         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1299         with other x11 applications, and use utf16 when handling clipboard
1300         data in the class library. Update the related points as well.
1301         Fixes #468683.
1302
1303 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1304
1305         * DataGridViewCell.cs: Format strings according to the supplied 
1306         CellStyle.Format.
1307         [Fixes bug #470384]
1308
1309 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1310
1311         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1312         addition or removal. Fixes multiple crashes in OnMouseMove.
1313
1314 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1315
1316         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1317
1318 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1319
1320         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1321         current context.
1322         [Fixes bug #469239]
1323
1324 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1325
1326         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1327         won't be disabled by default.
1328         Fixes #468690
1329
1330 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1331
1332         * DataGridView.cs: Do not clear the rows if we are not databound.
1333
1334 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1335
1336         * DataGridView.cs: Do not be too smart about selecting the first cell 
1337         when the first row is added as this is not what MS does. Fixes the 
1338         failing unit tests.
1339
1340 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1341
1342         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1343         take into account the fact that OpenTreeNodeEnumerator needs to call
1344         MoveNext/MovePrevious to actually put the passed node as the one
1345         retrieved in Current. This way this property should work as really
1346         expected in .net.
1347         Fixes part of #467225.
1348
1349 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1350
1351         * TreeView.cs: When calculating the scrollbars, don't use
1352         TreeNode.Bounds, since it still can have the values of the previous
1353         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1354         could not have been updated as well-, and use the actual number of
1355         visible number of nodes to compute the height needed to contain all
1356         the nodes. Also reset the value of vbar to 0 when disabled - this way
1357         we make sure that, when re-enabled, it will update the visible area of
1358         the treeview, even if the previous value before disabling it is the
1359         same as now. Finally don't do anything for the vbar.ValueChanged
1360         handler - for the case wheer we manually set the value but don't the
1361         vbar is disabled already.
1362         Fixes part of #467225.
1363
1364 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1365
1366         * ToolStrip.cs: Switch from foreach to for, in case the collection
1367         somehow changes while enumerating it.
1368
1369 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1370
1371         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1372         editing control.
1373
1374 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1375
1376         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1377         scenario.
1378
1379 2009-01-21  Mike Gorse  <mgorse@novell.com>
1380
1381         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1382           use them.
1383           Added UIAValueParamChangedEvent.
1384
1385 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1386
1387         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1388         of trying to set as top node the highest parent of the previous top
1389         node. Moving to the bottom of the TreeView after a call to CollapseAll
1390         is exactly what .net does. This should avoid some nasty issue when
1391         CollapseAll is called and we don't need the vertical scroll bar.
1392
1393 2009-01-21  Mario Carrion <mcarrion@novell.com>
1394
1395         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1396         and UIATopMostChanged.
1397
1398 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1399
1400         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1401         UIAEnabledChanged, and UIATextChanged events.
1402
1403         * Form.cs: Add UIAMenuChanged event.
1404
1405         * Menu.cs:
1406         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1407
1408 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1409
1410         * ToolBar.cs: Control enabled to support accessibility.
1411         [Fixes Bug #455950]
1412
1413 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1414
1415         * TreeView.cs: When handling mouse up event, check whether
1416         highlighted_node is null or not - usually it should be non-null
1417         alwaays, since the mouse down handler sets it, but some externa
1418         operations, such TreeNodeCollection.Clear, could set it to null.
1419         Fixes #438650.
1420
1421 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1422
1423         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1424         item is disabled.
1425
1426 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1427
1428         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1429         [Fixes bug #467285]
1430
1431 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1432
1433         * MonthCalendar.cs: When handling the selection changes using the
1434         mouse, don't set SelectionRange if the selection range didn't actually
1435         change. This matters because, even if we set the range to the same
1436         previous range, an extra DateChanged event is fired. Just to be clear:
1437         SelectionRage property doesn't check whether the new value is
1438         different to the previous one (by ref equals doesn't work here).
1439         Fixes other bits of #364914.
1440
1441 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1442
1443         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1444         selection using the keyboard, since we are already firing this event
1445         when setting SelectionRange. Also don't set SelectionRange if the
1446         previous and the new value are the same (the property, just as .net
1447         does, doesn't check whether the previous value and the new one are the
1448         same). This saves us from firing OnDateChanged event if the selection
1449         range didn't change actually.
1450         Fixes the remaining bits of #364914.
1451
1452 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1453
1454         * ListBox.cs: When removing an item and the last item is selected,
1455         remove it from the selection, and if selection mode is One try to
1456         select the new last item.
1457         Fixes #465422.
1458
1459 2009-01-16  Mike Gorse  <mgorse@novell.com>
1460
1461         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1462
1463 2009-01-16  Mario Carrion <mcarrion@novell.com>
1464
1465         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1466         when changing Text. 
1467
1468 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1469
1470         * X11Structs.cs:
1471         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1472         store/retrieve in the Clipboard. Also, since we try to convert the
1473         data to different formats, separate the source and the result of
1474         it, so we can always fallback to the original and don't mix wrong
1475         conversions.
1476
1477 2009-01-16  Mike Gorse  <mgorse@novell.com>
1478
1479         * TextControl.cs: Add UIASelectionChanged event.
1480
1481 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1482
1483         * DataGridView.cs: Forward the first key events to the editing control.
1484         [Fixes bug #457307]
1485
1486 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1487
1488         * Application.cs: Oops, launch the copied handler of PreRun instead of
1489         the global one (gendarme would bark otherwise). (Improving r123375)
1490
1491 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1492
1493         * XplatUI.cs:
1494         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1495         static ctor (we don't move the PreRun event to this class because its
1496         usage would cause the call to the static ctor). This way we can get
1497         a11y support for dialogs that run without App.Run.
1498
1499 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1500
1501         * ListView.cs: New internal property to know the inner array's length of
1502         the location of items, in order to avoid a try-catch strategy for the
1503         case when this array has not been resized yet (for reference, look at
1504         r123288). r: jpobst
1505
1506 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1507
1508         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1509         reflection calls. This requires UIAutomationWinforms r123213.
1510
1511 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1512
1513         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1514         handlers and fire the DateSelected event until MouseUp is reached,
1515         like .net does, instead of firing it for each mouse event.
1516         Fixes part of #364914.
1517
1518 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519
1520         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1521         event, invalidate the previous highlighted_node bounds, to show the
1522         user that the item was *not* selected.
1523         Fixes #464191.
1524
1525 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1526
1527         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1528         well as -in DropDown and Simple modes- writing in the textbox should
1529         try to set the requested item as the top one, but navigating with the
1530         keyboard and handling mouse selection don't need that behaviour. Also,
1531         when resetting selected_index handling key press events, reset
1532         ComboListBox.HighlightIndex. 
1533         Fixes the remaining bits of #464188.
1534
1535 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1536
1537         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1538         there are no cells:
1539            - CurrentCellAddress should be -1, -1 and not 0, 0.
1540            - Be tolerant and fall back to clearing the current cell if either 
1541            column or row is -1 in MoveCurrentCell.
1542            - Misc. more -1 checks.
1543
1544 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1545
1546         * DataGridView.cs: Preserve the column index. Fixes a regression 
1547         introduced by the data binding position tracking code.
1548
1549 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1550
1551         * DataGridView.cs: If the bottom of the row matches the client height 
1552         do not regard the row as partially visible. Fixes the weird scrolling 
1553         when there is no scrollbar.
1554
1555 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1556
1557         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1558
1559 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1560
1561         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1562
1563 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1564
1565         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1566
1567 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1568
1569         * DataGridView.cs: Track the Position in the CurrencyManager.
1570
1571 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1572
1573         * DataGridView.cs: Implement data-bound new item editing/addition.
1574         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1575         remove the edit row.
1576         [Fixes bugs #457107, #457308, #325240]
1577
1578 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1579
1580         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1581         list count reset it to position of the last item.
1582
1583 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1584
1585         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1586         Fix that in order to make CancelNew to work.
1587
1588 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1589
1590         * BindingSource.cs: When adding a new item try to delegate to the internal 
1591         list first before throwing an exception.
1592
1593 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1594
1595         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1596         *only* if the current item is *not* visible already.
1597         Fixes part of #464188.
1598
1599 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1600
1601         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1602         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1603         Fix that.
1604         [Fixes bug #464493]
1605
1606 2009-01-08  Brad Taylor  <brad@getcoded.net>
1607
1608         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1609
1610 2009-01-07  Mario Carrion <mcarrion@novell.com>
1611         
1612         * DataGrid.cs: CWL removed.
1613
1614 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1615
1616         * RadioButton.cs: When setting Checked, we should first update the
1617         check state of the current RadioButton, as well as invalidating it,
1618         and after that actually update the siblings. This is done to match
1619         .net.
1620         Fixes the remaining bits of #463028.
1621
1622 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1623
1624         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1625         as well. Also, when we get the focus and no other RadioButton is
1626         selected in the parent control, we should mark ourselves as Checked.
1627         Fixes part of #463028.
1628
1629 2009-01-05  Mario Carrion <mcarrion@novell.com>
1630
1631         * DataGrid.cs: UIA suppport. internal events: 
1632         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1633         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1634         UIARowHeight, UIACellsArea, UIACaptionArea, 
1635         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1636         UIAVScrollBar and UIAHScrollBar.
1637
1638 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1639
1640         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1641         of the buttons are set to Overflow = Always.
1642         [Fixes bug #463013]
1643
1644 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1645
1646         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1647         based on whether the binding source is availble or not. Fixes #463008.
1648
1649 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1650
1651         * DataGridViewCell.cs: We should return a value even if we are not bound 
1652         to a DataGridView.
1653
1654 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1655
1656         * CurrencyManager.cs, DataGrid.cs: 
1657            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1658            concept of "rows".
1659            - Add two more internal properties AllowRemove and AllowEdit.
1660         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1661         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1662         CurrencyManager data source.
1663
1664 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1665
1666         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1667         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1668         the column/row heights/widths.
1669         [Fixes bug #462684]
1670
1671 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1672
1673         * DataGridView.cs: Non-autogenerated columns that have a data property 
1674         set that exists in the current datasource should be set to be data-bound.
1675
1676 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1677
1678         * DataGridView.cs: Fix column sorting for columns containing null 
1679         values. A "null" value is not always "null" (e.g could be String.Empty) 
1680         and thus parsing numeric types throwed an exception for "null" values.
1681
1682 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1683
1684         * DataGridView.cs: Detach the editing control when the edit is 
1685         finished.
1686
1687 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1688
1689         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1690         and cell movement after that instead of throwing exceptions.
1691
1692 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1693
1694         * DataGridViewCellCollection.cs: When cells are removed the column 
1695         indices become invalid if the cell is not the last one and have to 
1696         be refreshed.
1697
1698 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1699
1700         * DataGridView.cs: Return false in CommitEdit if there was an error.
1701
1702 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1703
1704         * DataGridView.cs: Remove a leftover Console.WriteLine.
1705
1706 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1707
1708         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1709         instead of the internal list.
1710
1711 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1712
1713         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1714         Rewrite the value getting, setting, parsing, formatting logic:
1715            - If data-bound value get/set should actually get and set from the 
1716              data source.
1717            - Make proper usage of TypeConverters for value parsing/formatting.
1718            - Raise DataError if setting the new value fails.
1719            - Get rid off the internal valueType field and get/set the ValueType 
1720            property instead.
1721         [Fixes bug #462051]
1722
1723 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1724
1725         * DataGridView.cs: Rewrite the DataBinding layer:
1726            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1727            specific code.
1728            - Get rid off the per DataSource type column autogeneration code.
1729            - Use the CurrencyManager for everything that is DataBinding related.
1730
1731 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1732
1733         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1734
1735 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1736
1737         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1738         DataManager to fetch the CurrencyManager for the DataGridView and to 
1739         spare this logic for the other components to follow.
1740
1741 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1742
1743         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1744         UIAMessageRectangle and UIAIconRectangle.
1745
1746 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1747
1748         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1749         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1750
1751 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1752
1753         * DataGridView.cs: Do not autogenerate duplicate column for a 
1754         data member that has already problematically been assigned one.
1755         [Fixes bug #457305]
1756
1757 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1758
1759         * ProfessionalColorTable.cs: Better detection of user's theme.
1760         [Fixes bug #462766]
1761
1762 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1763
1764         * DataGridView.cs: In the case where there are no autogenerated 
1765         columns and the user adds columns problematically we must generate 
1766         the rows after the very first column is added.
1767
1768 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1769
1770         * DateTimePicker.cs: When increasing/decreasing the value of month
1771         with ShowUpDown set to true, moving from december to january, and
1772         moving from january to december should adjust the year to the next and
1773         the previous year, respectively.
1774         Fixes the remaining bits of #459674.
1775
1776 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1777
1778         * DataGridView.cs: If a new cell is selected edit mode should be 
1779         immediately enabled only if EditOnEnter is set. Whether the mouse 
1780         or not was used to select the cell is irrelevant.
1781
1782 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1783
1784         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1785         recursive rebinding.
1786
1787 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1788
1789         * DateTimePicker.cs: Handle the "MMMM" month format.
1790         Fixes #459674.
1791
1792 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1793
1794         * DataGridView.cs: 
1795            - Make ReBind private and refactor various calls to call ReBind 
1796            instead of ClearBinding/DoBinding
1797            - Rebind when the column collection changes
1798         * DataGridViewColumnCollection.cs: 
1799            - Leave the rebinding on change to be handled by the DataGridView.
1800
1801 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1802
1803         * DataGridView.cs: Add a ReBind convenience method.
1804         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1805         [Fixes bug #462019]
1806
1807 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1808
1809         * StatusBar.cs: Modified argument variable.
1810         * SplitContainer.cs: Control enabled to support accessibility.
1811         [Fixes Bug #455950]
1812
1813 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1814
1815         * ToolStripMenuItem.cs: Guard against an NRE.
1816         [Fixes bug #457110]
1817
1818 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1819
1820         * Control.cs: AccessibleXXXX properties don't return 
1821         AccessibleObject.XXXX, instead a local referece is returned.
1822
1823 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1824
1825         * PrintPreviewControl.cs: Added internal properties to support
1826         accessibility.
1827         [Fixes Bug #459699]
1828
1829 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1830
1831         * Control.cs: Reverted r121561. 
1832
1833 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1834
1835         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1836         it has been moved to the bridge.
1837
1838 2008-12-18  Brad Taylor  <brad@getcoded.net>
1839
1840         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1841         internal methods useful for UIA.
1842
1843 2008-12-18  Mario Carrion <mcarrion@novell.com>
1844
1845         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1846         [Fixes Bug #455752]
1847
1848 2008-12-17  Mike Gorse  <mgorse@novell.com>
1849
1850         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1851           item's Focused property is set.
1852
1853 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1854
1855         * TreeView.cs:
1856         * TreeNode.cs:
1857         * TreeNodeCollection.cs: Add events for UIA support:
1858         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1859         UIACollectionChanged.
1860
1861 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1862
1863         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1864           SubItemStyle member field. 
1865
1866         Contributed under MIT/X11 license.
1867
1868 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1869
1870         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1871         y coord, since it's useless in this case, and we need to rely only on
1872         the number of rows and ItemHeight to compute this value.
1873         Fixes part of #257471.
1874
1875 2008-12-15  Mike Gorse  <mgorse@novell.com>
1876
1877         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1878
1879 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1880
1881         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1882         needed.
1883         [Fixes Bug #459223]
1884
1885 2008-12-15  Brad Taylor  <brad@getcoded.net>
1886
1887         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1888         ToolStripItem becomes selected or deselected.
1889
1890 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1891
1892         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1893         .net does. Use the date in the point of the mouse move coords as the
1894         new range as well, if the left button of the mouse is being pressed.
1895         Fixes #364914.
1896
1897 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1898
1899         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1900         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1901         effectively repaint the control.
1902         Fixes the remaining bits of #417961.
1903
1904 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1905
1906         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1907         range to contain only dates within the new possible range.
1908         Fixes part of #417961.
1909
1910 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1911
1912         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1913         length of the text, but the end position, so we need to substract 1 to
1914         have a valid value. Also, in the same InputText method, don't use
1915         SelectionLength as the length of the text, since the selected text
1916         could actually be empty, but we need to set the value anyway.
1917         Fixes #457370.
1918
1919 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1920
1921         * TextBox.cs: Don't do any auto complete task if the custom source is
1922         null or empty. Also avoid duplication of code.
1923         Fixes #457743.
1924
1925 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1926
1927         * DataGridView.cs: Refresh column sizes when new rows are added.
1928         [Fixes bug #457050]
1929
1930 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1931         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1932         Split to create a line - we are already doing this, by _adding_ a new
1933         one when rtf_cursor_x is 0 (this field gets this value just after we
1934         receive the newline param as true). This avoids having a proportional number
1935         of empty lines in the end of the rich text box.
1936         Fixes #396664.
1937
1938 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1939
1940         * RichTextBox.cs: When saving the contents as a plain text, don't add
1941         a new line for every Line structure, since the data in Document
1942         already contains the new line characters. This avoids duplicated new
1943         lines using the Save methods.
1944         Fixes #445618.
1945
1946 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1947
1948         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1949         framework.  Fixes bug #457678.
1950
1951 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1952
1953         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1954         where datasource is null.
1955         [Fixes exception reported in bug 441240]
1956
1957 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1958
1959         * DataGridView.cs: EndEdit validation fixes.
1960
1961 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1962
1963         * DataGridView.cs: This is the cool patch that adds support for 
1964         actually updating the data in the databinding backend after editing. 
1965         With bonus firing and handling the DataError event.
1966
1967 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1968
1969         * Line.cs: When calculating the text tags's Shift value, store it as
1970         pixels instead of points. This way we can actually handle different
1971         fonts in the same RichTextBox, as well as the right size of the caret.
1972         Fixes part of #351938.
1973
1974 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1975
1976         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1977         casted to CheckState causing InvalidCastExceptions.
1978
1979 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1980
1981         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1982         to not depend on the item being clicked.
1983
1984 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1985
1986         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1987         longer throws a NotImplementedException.
1988
1989 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1990
1991         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1992         IDataGridViewEditingControl for editing.
1993
1994 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1995
1996         * DataGridViewComboBoxCell.cs: Implement data binding support.
1997
1998 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1999
2000         * DataGridView.cs: Use the CurrencyManager to update the data source 
2001         binding position instead of casting the data sourcde to BindingSource.
2002         This enables position updating for other type of data sources.
2003
2004 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
2005
2006         * ComboBox.cs: Update the SelectedIndex before updating the Text 
2007         in OnDisplayMemberChanged.
2008
2009 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
2010
2011         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
2012         [Fixes bug #457112]
2013
2014 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2015
2016         * DataGridView.cs: Sorting fixes:
2017            - Be strict when sorting is enabled.
2018            - If there is a data source delegate the sorting request.
2019
2020 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2021
2022         * Binding.cs: When converting the data also try with the destination 
2023         type typeconverter. This indirectly adds support for Nullable types 
2024         in our databinding layer.
2025
2026 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2027
2028         * DataGridView.cs: When cell editing is finished focus back the 
2029         DataGridView. Fixes keyboard navigation post-editing.
2030
2031 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2032
2033         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
2034         setting to after EndEdit is called for the old cell.
2035
2036 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2037
2038         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
2039
2040 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
2041
2042         * XplatUIX11.cs: Send WM_HELP only to the focused window.
2043
2044 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2045
2046         * CurrencyManager.cs: Fix exceptions when resetting the data source 
2047         for the same time (e.g. in ComboBox): 
2048            - Do not set the list position if we are still transferring data
2049            - When resetting the list firstly push the data then update the 
2050            binding.
2051         * Binding.cs: Check BindingManager.Position == -1 instead of 
2052         BindingManager.Current == null in order to avoid unexpected 
2053         exceptions.
2054
2055 2008-12-05  Brad Taylor  <brad@getcoded.net>
2056
2057         * MonthCalendar.cs: Add UIA specific events so that we can know when
2058         the selection changes, and when MaxSelectedCount changes.
2059
2060 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2061
2062         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
2063         used for anything.
2064
2065 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2066
2067         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
2068         to the control being drawn for the first time by:
2069            - Implement DisplayedRowsCount to not rely on the control being
2070            already painted. Also added support for the partial row flag.
2071            - Fix scrolling to take into account partial rows and scroll to
2072            them.
2073         [Fixes bug #456527]
2074
2075 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2076
2077         * DataGridView.cs: Do not reset the CurrentCell when the handle is
2078         created if the user has already set it.
2079
2080 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
2081
2082         * DataGridView.cs: Fix CurrentCell to actually select the cell.
2083
2084 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2085
2086         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
2087         text and then let the underneath users of IDataObject interpret and
2088         parse by themselves. 
2089         Fixes #439251.
2090
2091 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2092
2093         * DataGridView.cs: Fix my previous commit to actually update what it 
2094         was supposed to.
2095
2096 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2097
2098         * DataGridView.cs: Ensure that when a row is removed the all the 
2099         current row/column/cell get updated. Fixes multiple exceptions.
2100
2101 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2102
2103         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2104         is used.
2105         [Fixes bug #443560]
2106
2107 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2108
2109         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2110         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2111         new state.
2112         [Fixes issue 1 in bug #443560]
2113
2114 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2115
2116         * DataGridView.cs: Invalidate after the current row/column seletion 
2117         chagnes.
2118         [Fixes bug #438434]
2119
2120 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2121
2122         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2123
2124 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2125
2126         * DataGridView.cs: Handle datasource state changes:
2127            - IBindingList - list changes
2128            - BindingSource - list changed and datasource changes
2129
2130 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2131
2132         * DataGridView.cs: Select the first cell when databound. 
2133         Visually select when CurrentCell is set.
2134
2135 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2136
2137         * DataGridView.cs: Set the current cell before raising CellClick.
2138
2139 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2140
2141         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2142         CellLeave events as this is already done in SetCurrentCellAddressCore.
2143
2144 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2145
2146         * DataGridView.cs: Set the minimum size for the columns to be the 
2147         width of their header, so that the columns don't get squashed 
2148         all together.
2149
2150 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2151
2152         * DataGridView.cs: After the data is bound PerformLayout, so that 
2153         the columns get autosized.
2154
2155 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2156
2157         * DataGridView.cs: Move all currentCell setting code into 
2158         one central place - SetCurrentCellAddressCore. That way the 
2159         current cell is properly updated when programatically set.
2160         Fire RowEnter/Leave events.
2161
2162 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2163
2164         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2165         when a BindingSource is used BindingSource.Current will be correct.
2166
2167 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2168
2169         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2170            - No caption text is drawn because Color.Empty is used.
2171            - Fix top and height off by 1.
2172
2173 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2174
2175         * DataGridViewRow.cs: Implement DataBoundItem.
2176
2177 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2178
2179         * BindingSource.cs: Return null for Current if there is no data present.
2180
2181 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2182
2183         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2184         menus using the arrow keys. Also when handling the left arrow key, don't 
2185         assign the current menu to the parent one, if the parent is null.
2186         Fixes #446392.
2187
2188 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2189
2190         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2191         #413501.
2192
2193 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2194
2195         * Scrollbar.cs:
2196         * ScrollableControl.cs: Simplify the code to manually set the size of
2197         the thum area, avoiding duplication of code, and also preserving the
2198         right value for different code paths - this can happen when size
2199         changes are made to the scrollbar after setting LargeChange, Maximum
2200         or related properties for the ScrollBar.
2201
2202 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2203
2204         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2205         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2206         what .Net does: copy the visible area, and only invalidate the part of
2207         the area that wasn't visible before scrolling.
2208         Fixes #441738.
2209
2210 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2211
2212         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2213         can clear ourselves when it is raised, we don't have a newrowindex
2214         if we don't have any columns.
2215         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2216         re-index after each delete so the NewRow will have the correct index.
2217         [Fixes bug #448005]
2218
2219 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2220
2221         * Form.cs: Don't change min/max size if it is empty.
2222         [Fixes bug #447873]
2223
2224 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2225
2226         * ScrollBar.cs:
2227         * ScrollableControl.cs: When the manual thumb size is used, the
2228         maximum allowed value should depend on that thumb size, instead of
2229         LargeChange (using the maximum - LargeChange + 1 value). But
2230         LargeChange should be used normally when incrementing/decrementing.
2231         Fixes the remaining part of #441546.
2232
2233 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2234
2235         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2236         until an about:blank has been loaded (according to spec). Fix 
2237         ScrollbarsEnabled to set when a document is loaded (since we use js 
2238         for it). Fix url so it reflects the current loading document and not 
2239         the previous one. Send StatusChanged events.
2240
2241 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2242
2243         * Application.cs: If a message comes in for an embedded control
2244         (like webbrowser) when we're capturing the keyboard, release the
2245         capture and continue.
2246         [fixes #429462]
2247
2248 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2249
2250         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2251
2252 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2253
2254         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2255         
2256 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2257
2258         * ScrollBar.cs:
2259         * ScrollableControl.cs: Set manually the thumb size for the
2260         ScrollableControl scrollbars, so any further changes to the underneath
2261         scrollbars respect the original size.
2262         Fixes part of #441546.
2263
2264 2008-11-21  Geoff Norton  <gnorton@novell.com>
2265
2266         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2267         PlatformID.MacOSX now exists.
2268
2269 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2270
2271         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2272         Having something internal abstract isn't very nice for people who want
2273         to inherit from this class.
2274
2275 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2276
2277         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2278         invalid value.  Just return null for the Image, and use the ImageList's
2279         ImageSize for calculations.
2280
2281 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2282
2283         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2284         through DroppedDown so the proper events get called and state gets reset.
2285         [Fixes bug #446805]
2286
2287 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2288
2289         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2290         the collection is modified.
2291
2292 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2293
2294         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2295         aren't always correct, and fixing them for every case is not worth the
2296         negligible benefit they provide.
2297         [Fixes bug #445713]
2298
2299 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2300
2301         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2302         Internally, use RowTemplateFull to give us a new row with cells.
2303         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2304         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2305
2306 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2307
2308         * XplatUIX11.cs: Forms without borders should be able to change its
2309         size - specially they should be able to be maximized, adding the
2310         respective MotifFunctions.Resize bit when setting window properties as
2311         well as *not* marking the Hwnd as size fixed.
2312         Fixes #444347.
2313
2314 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2315
2316         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2317         an alpha value.
2318         [Fixes bug #444348]
2319
2320 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2321
2322         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2323         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2324         AutoSizeColumnModeChanged.
2325         [Fixes bug #443609]
2326
2327 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2328
2329         * DataGridViewRowCollection.cs: Guard against the user deleting the
2330         NewRow.  Add an internal delete so we can still delete it.
2331         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2332         [Fixes bug #442181]
2333
2334 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2335
2336         * TextControl.cs: Add some order of operation to our math so
2337         we don't end up with a negative height for our invalidate rect.
2338         [Fixes bug #381889]
2339
2340 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2341
2342         * Control.cs: When our enabled changes, notify our implicit children
2343         controls as well as our regular controls.
2344         [Fixes bug #441523]
2345
2346 2008-11-08  Andreia Gaita <shana@jitted.com> 
2347
2348         * HtmlElement.cs: Small code cleanup
2349
2350 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2351
2352         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2353         position is larger than 0, not only different than 0. Also Position
2354         and Count items should be enabled if the BindingSource is non null and
2355         non empty.
2356         Fixes #439961.
2357
2358 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2359
2360         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2361         actually modified the tab collection, so TabCount will be correct.
2362         [Fixes bug #441896]
2363
2364 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2365
2366         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2367         NonSerialized to fix serialization of ListViewItem.
2368
2369 2008-11-04  Mike Gorse  <mgorse@novell.com>
2370
2371         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2372           focus change, and always call in SetFocusedItem.
2373         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2374
2375 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2376
2377         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2378         mode.  Based on a patch by John Mortlock.
2379         [Fixes bug #436790]
2380
2381 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2382
2383         * ListView.cs: Use the UsingGroups property where needed, instead of
2384         duplicating the check in other places.
2385
2386 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2387
2388         * ListView.cs: When calculating layout, refresh the count of items
2389         belonging to the default item, insteas of doing it only one time. This
2390         was already working fine for icon views, not not for details.
2391         Fixes #438948.
2392
2393 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2394
2395         * ListView.cs:
2396         * ListViewItem.cs:
2397         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2398         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2399         does.
2400         Fixes #437933.
2401
2402 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2403
2404         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2405
2406 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2407
2408         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2409         #441280, patch by Mike Gorse <mgorse@novell.com>.
2410
2411 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2412
2413         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2414         if there is no scrollbar.
2415         [Fixes bug #440885]
2416
2417 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2418
2419         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2420         patch from Andy Hume that fixes many issues with ProgressBar.
2421         [See bug #440220]
2422
2423 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2424
2425         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2426         [Fixes bug #438866]
2427
2428 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2429
2430         * UpDownBase.cs:
2431         * DomainUpDown.cs:
2432         * NumericUpDown.cs: Internal events added to UpDownBase:
2433         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2434         <ngao@novell.com>.
2435
2436 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2437
2438         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2439
2440 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2441
2442         * ListView.cs:
2443         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2444         Application.EnableVisualStyles hasn't been called.
2445         Fixes part of #437933.
2446
2447 2008-10-31  Andreia Gaita  <shana@jitted.com>
2448
2449         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2450           if the container is not focused already, we need to specifically set
2451           focus to the first available control, or to the form itself if there
2452           are no controls.
2453
2454 2008-10-31  Andreia Gaita  <shana@jitted.com>
2455
2456         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2457         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2458         once it returns and the form is visible, it is actually on the screen on X11
2459
2460         * ContainerControl.cs: Only send focus to the control if the top container
2461           is already focused. This is so that, when a form is first shown, all
2462           the enter/leave events are done first before any focus stuff comes in.
2463           If a control has no top container, there's an extra check on Control.Focus
2464           to make sure it gets focused in this particular case.
2465
2466         * Control.cs: Force focus if the control is active but did not receive
2467           focus after being set as active.
2468
2469         * MdiClient.cs: Dispose the form when closing
2470
2471         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2472           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2473           if the window is a top Form.
2474           Reset all hwnd properties when the window has been destroyed so that
2475           we don't land in any codepaths that might try to do something with it.
2476           Added a bunch of debugging messages. If TRACE is defined, all X calls
2477           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2478
2479 2008-10-29  Mario Carrion <mcarrion@novell.com>
2480
2481         * ListViewItem.cs: Control enabled to support Accessibility:
2482         - Internal events: UIATextChanged, UIASubItemTextChanged.
2483         - Internal event UIATextChanged in ListViewSubItem that triggers
2484         UIASubItemTextChanged.
2485         * ListView.cs: Control enabled to support Accessibility:
2486         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2487         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2488         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2489         - Internal event UIACollectionChanged in ListViewItemCollection.
2490         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2491         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2492         - Internal methods: UIAGetHeaderBounds.
2493
2494 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2495
2496         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2497         the event from the respective scrollbars.
2498         Fixes #436709.
2499
2500 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2501
2502         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2503         textbox to know whether any navigation key will be handled or not. If
2504         not, don't pass the message to the textbox, and use it here instead. 
2505         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2506         is more precise- than the previous AutoCompleteMatches one.
2507         This should the keyboard navigation in ComboBox when using auto
2508         complete modes.
2509
2510 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2511
2512         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2513         [Fixes bug #436730]
2514
2515 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2516
2517         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2518         overridden methods will get called.
2519         * ToolStripItem.cs: Raise Click before MouseUp.
2520         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2521         the item's location into account.
2522         [Fixes bug #437683]
2523
2524 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2525
2526         * NumericUpDown.cs: Control enabled to support accessibility.
2527         [Fiexes bug #438135]
2528
2529 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2530
2531         * TextBox.cs: Check that we actually have items no navigate, select
2532         text when pressing enter, as well as handle direction keys only if
2533         mode is different to Suggest or the suggest listbox is visible.
2534
2535 2008-10-23  Andreia Gaita  <shana@jitted.com>
2536
2537         * WebBrowser.cs: Use the new ContentStream property to retrieve
2538           a stream encoded from the document content
2539
2540 2008-10-23  Andreia Gaita  <shana@jitted.com>
2541
2542         * HtmlDocument.cs,
2543           HtmlElement.cs,
2544           HtmlWindow.cs: Fix GetHashcode for null objects
2545
2546 2008-10-22  Andreia Gaita  <shana@jitted.com>
2547
2548         * HtmlDocument.cs,
2549           HtmlElement.cs,
2550           HtmlWindow.cs: Fix equality operators (fixes #428173)
2551
2552 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2555         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2556         [Fixes bug #436772]
2557
2558 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2561         same item with the mouse as was already selected.
2562         [Fixes bug #436789]
2563
2564 2008-10-21  Brad Taylor  <brad@getcoded.net>
2565         
2566         * TextControl.cs: Break out code to get the visible range into
2567           GetVisibleLineIndexes to be used in UIA code.
2568         
2569         * Line.cs:
2570         * TextControl.cs:
2571         * TextBoxBase.cs: Add comments indicating that the method or property
2572           is used via reflection from UIA code.
2573
2574 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2575
2576         * ListViewItem.cs: Match .net serialization.
2577         Fixes remaining part of #417520.
2578
2579 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2580
2581         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2582
2583 2008-10-20  Mario Carrion <mcarrion@novell.com>
2584
2585         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2586         added: UIAToolTipRectangle.
2587
2588 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2589
2590         * ListViewItem.cs: When deserializing enumerate over the data, instead
2591         of accessing the data directly. This way we handle much better the
2592         cases were we lack information.
2593         Fixes #417520.
2594
2595 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2596
2597         * ListView.cs: When removing an item from a main ListView.Items
2598         collection (and not a ListViewGroupCollection.Items one), remove it
2599         also from the group, as .net does. Patch by Mario Carrion (mario at
2600         novell dot com).
2601         Fixes #436653.
2602
2603 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2604
2605         * Form.cs: Forms that get closed without a handle being created are
2606         disposed in 2.0. Fixes failing FormTest.FormClose and
2607         FormTest.FormClose2 on windows.
2608
2609 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2610
2611         * ListView.cs: If both scrollbars are visible, the vertical one
2612         shouldn't extend too far down.
2613         Fixes #435771.
2614
2615 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2616
2617         * DataGridView.cs: Add the ability to resize columns and rows with
2618         the mouse.  Also support double-clicking to autoresize.
2619         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2620         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2621         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2622         isn't shown on autoresize.
2623         [Fixes bug #420193]
2624
2625 2008-10-17  Mario Carrion <mcarrion@novell.com>
2626
2627         * ComboBox.cs: Remove UIAListbox.
2628
2629 2008-10-17  Mario Carrion <mcarrion@novell.com>
2630
2631         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2632           OnUIACollectionChangedEvent instead of index.
2633
2634 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2635
2636         * ComboBox.cs: When we are sorting the items, if the item's type
2637         doesn't support IComparer, use a default one that compares based
2638         off the item's visible text.
2639         [Fixes bug #436328]
2640
2641 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2642
2643         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2644         ImageIndex/ImageKey.
2645         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2646         for the column if available, and make the required adjustments to the
2647         text location.
2648         Fixes #435105.
2649
2650 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2651
2652         * StatusBarPanel.cs: Control enabled to support accessibility.
2653         [Fixes bug #435988]
2654
2655 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * DataGridView.cs: When a user begins an edit in the 'new row',
2658         make that a real row, and add a new 'new row'.  If the user
2659         cancels the edit, remove the new 'new row' and reset everything.
2660         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2661         [Fixes bug #430954]
2662
2663 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2664
2665         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2666         panel is not yet set.
2667         [Fixes bug #436199]
2668
2669 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2670
2671         * DataGridView.cs: Invalidate after deleting a row.
2672
2673 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2674
2675         * DataGridView.cs: Handle Enter and Escape keys.
2676           - Move call to EndEdit to MoveCurrentCell.
2677           - Remove call to EndEdit from navigation key routines.
2678           - Fire CellLeave and CellEnter.
2679
2680 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2681
2682         * DataGridViewCell.cs: Some fixes to the new cell border
2683         painting code.
2684
2685 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2686
2687         * ThemeEngine.cs: Enable visualstyles rendering by default
2688         (on platforms that support it).
2689
2690 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2691
2692         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2693         MainForm.OnLoad has completed unless DoEvents is forced.
2694         [Fixes bug #412536]
2695
2696 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2697
2698         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2699
2700 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2701
2702         * Control.cs: Make our implementation of DrawToBitmap better 
2703         match WmPaint.  [Fixes bug #435579]
2704
2705 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2706
2707         * WebBrowser.cs: Use DocumentElement as the document's root for the
2708         whole content. Should fix DocumentText and DocumentStream problems.
2709
2710 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2711
2712         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2713         these will get called in DGV.OnCollectionChanged.  Make sure 
2714         OnCollectionChanged always gets called.
2715         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2716         from every row.  Call this in OnCollectionChanged.
2717         [Fixes bug #433669]
2718
2719 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2720
2721         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2722         textbox if auto complete is used, since we need to navigate over it.
2723         And in this case don't pass this messages to the base impl. Also hide
2724         the auto complete list box when displaying the drop down listbox.
2725         * TextBox.cs: new internal members to expose some of the auto complete
2726         functionality to combobox.
2727
2728 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2729
2730         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2731         MainForm.OnLoad has completed.
2732         [Fixes bug #412536]
2733
2734 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2735
2736         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2737         Append support to this controls. We need it to apply new patches.
2738
2739 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2740
2741         * Control.cs: When updating z order in child controls, send to back
2742         the implicit controls. Also, do it explicitly, instead of making
2743         GetAllControls return the implicit controls in a specific order, and
2744         thus avoid depending on that, which could change in the future.
2745         Fixes #434304.
2746
2747 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2748
2749         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2750         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2751         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2752         call to Control.DoDragDrop has completed. This is needed since at the
2753         point of returning, we have sent related dnd ClientMessages, but we
2754         need to wait for them to fire the wmf respective ones.
2755         Fixes #325076.
2756
2757 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2758
2759         * LinkLabel.cs: Recreate link pieces when change Padding.
2760
2761 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2762
2763         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2764         [Fixes bug #412530]
2765
2766 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2767
2768         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2769         useful for drawing controls that must take care about Padding property.
2770
2771 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2772
2773         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2774         * DataGridView.cs: Add support for autogenerating columns from a
2775         BindingSource.
2776
2777 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2778
2779         * DataGridView.cs: Comment out an exception that is getting thrown
2780         too often currently.
2781
2782 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2783
2784         * DataGridView.cs: Always rebind to the datasource, as things may
2785         have changed in it that we aren't capturing yet.
2786
2787 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2788
2789         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2790         drawing mode.  If we are top aligned, give ourselves some top padding.
2791
2792 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2793
2794         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2795         events on the control under the mouse pointer, instead of firing them
2796         on the window generating the dnd operation. To achieve this re-use the
2797         code used to get the window under the pointer when getting MouseMove
2798         events.
2799         Fixes #381876.
2800
2801 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * X11Dnd.cs: Don't check that that the window sending the dnd events
2804         is the owner of the selection. Although Gtk+ sets it that way, it's
2805         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2806         So, just as Gtk+ does, we set our window sending the dnd events as the
2807         owner of the selection, but don't check it when receiving them. This
2808         should fix interoperability with Qt/Kde.
2809         Fixes #324251.
2810
2811 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2812
2813         * DataGridView.cs: Make sure we take the vertical scrollbar into
2814         account when autosizing columns.
2815
2816 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2817
2818         * DataGridView.cs: Handle sorting datetimes.
2819
2820 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2821
2822         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2823         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2824         compilation warnings.
2825
2826 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2827
2828         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2829         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2830         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2831         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2832         compilation warnings.
2833
2834 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2835
2836         * DataGridView.cs, DataGridViewCell.cs, 
2837         DataGridViewCellValidatingEventArgs.cs, 
2838         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2839         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2840         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2841
2842 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2843
2844         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2845         Cleanup compilation warnings.
2846
2847 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2848
2849         * XplatUIWin32.cs: Cleanup compilation warnings.
2850
2851 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2852
2853         * PropertyGrid.cs: Cleanup compilation warnings.
2854
2855 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2856
2857         * DataGridViewRow.cs: Only clear the row background if we
2858         are going to paint a new background.
2859
2860 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2861
2862         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2863         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2864         use PaintBorder instead.        
2865
2866 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2867
2868         * DataGridView.cs: When CellBorderStyle is set, update the
2869         AdvancedCellBorderStyle to match.
2870
2871 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2872
2873         * DataGridViewCell.cs: Add helper methods to convert Alignment
2874         to TextFormatFlags and align rectangles.
2875         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2876         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2877
2878 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2879
2880         * ToolTip.cs: Display tooltips only for controls on the active form.
2881         [Fixes bug #428115]
2882
2883 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2884
2885         * DataGridView.cs: Make OnCellValueNeeded internal.
2886         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2887         user can supply their own value if they choose.
2888
2889 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2890
2891         * DataGridViewColumnHeaderCell.cs: Create a new style object
2892         so the DefaultCellStyle doesn't get changed.
2893
2894 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2895
2896         * ToolStripItem.cs: Check to make sure the owner is actually
2897         changing in InternalOwner before doing any work.  Fixes some
2898         failing tests.
2899
2900 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2901
2902         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2903         * DataGridView.cs: Use a column header's inherited style instead
2904         of just using the default.
2905
2906 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2909         moved through code.
2910
2911 2008-10-01  Mario Carrion <mcarrion@novell.com>
2912
2913         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2914
2915 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2916
2917         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2918
2919 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2920
2921         * ToolStripItem.cs: When the user sets Owner, we need to remove
2922         it from its previous owner and then add it to the new owner's
2923         item collection.  Also, create InternalOwner, so we can set the owner
2924         that doesn't do this new stuff.
2925         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2926
2927 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2928
2929         * ToolStripItem.cs: When our parent changes, recalculate our text
2930         size, since we may be getting our Font from our parent.  When our
2931         owner's Font changes, recalculate ourselves as we may be using
2932         that font.
2933
2934 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2935
2936         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2937         return key. [Fixes bug #413792].
2938
2939 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2940
2941         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2942         ambient properties.  (Get their value from their parents if
2943         values haven't been set.)
2944
2945 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2946
2947         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2948         after our logic, so users can do painting by handling the events.
2949         Currently, we draw over any user painting.
2950
2951 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2952
2953         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2954         after our logic, so users can do painting by handling the events.
2955         Currently, we draw over any user painting.
2956
2957 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2958
2959         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2960
2961 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2962
2963         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2964         image to draw to TreeNode.  Give Index/Keys put on the node
2965         precedence over the global one for the TreeView.
2966
2967 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2968
2969         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2970
2971 2008-09-29  Mario Carrion <mcarrion@novell.com>
2972
2973         * ListBox.cs: Index fixed.
2974
2975 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2976
2977         * TabControl.cs: When expanding the tab -because it's selected now-,
2978         using Right alignment, instead of adding some selected delta value to
2979         the X origin, substract it, so it gets a location adjacent to the panel, 
2980         instead of be more separated.
2981         Fixes #409170.
2982
2983 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2984
2985         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2986         own copies of them.
2987
2988 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2989
2990         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2991         as well as the other static fields, to avoid using their previous
2992         values my mistake when handling the dnd events. This should avoid
2993         handling any status event after the drop has been finalized/cancelled.
2994
2995 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2996
2997         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2998         operation, instead of waiting until we get any movement - this will
2999         help us to have the data available in case no movement was detected
3000         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
3001         Finally add a windows.forms-only fallback to fire the mentioned events
3002         if no movement at all was detected, just like .net does.
3003         Fixes #381876.
3004
3005 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
3006
3007         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
3008         return early if the text is empty because the icon doesn't get
3009         drawn then.  [Fixes bug #428113]
3010
3011 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3012
3013         * FileDialog.cs: Implement basic support for sorting by columns in
3014         Details view. Patch by Eric Petit.
3015         Fixes #428006.
3016
3017 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3018
3019         * ThemeWin32Classis.cs: When drawing gridlines take into account the
3020         case where ListView.ItemSize hasn't been computed, and provide a
3021         fallback as well. This prevents a division by 0.
3022
3023 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3024
3025         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
3026         correctly draw tooltip backgrounds.
3027
3028 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * ImageList.cs: Change CopyTo implementation to ensure clones are
3031         created of our images.
3032         [Fixes bug #409169]
3033
3034 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * Control.cs: When setting fonts, we need to ensure we change our
3037         reference to the new font object, even if it represents the same
3038         font as before.  If we don't, the original font can get disposed
3039         and we will still try to use it.
3040         [Fixes bug #386450]
3041
3042 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3043
3044         * FileDialog.cs: Take into account Tile view when selecting the view
3045         (2.0 profile).
3046
3047 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3048
3049         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
3050         the item bounds, since we can't iterate over them in virtual mode.
3051         Also fix wrong calculation of the gridlines when using scrolling.
3052         Fixes #400390.
3053
3054 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3055
3056         * XplatUIX11.cs: When handling EnterNotify events, take into account
3057         both the public and implicit controls when trying to detect the
3058         grab/ungrab process. This should fix ListView selection in Details
3059         view.
3060
3061 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3062
3063         * TreeView.cs: Redraw the whole node area when the selected node changes.
3064         Things like state images were not getting redrawn because the invalid
3065         rectangle was too small.
3066         [Fixes bug #428211]
3067
3068 2008-09-23  Mario Carrion  <mcarrion@novell.com>
3069
3070         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
3071         [Fixes bug #428993]
3072
3073 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3074
3075         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
3076         [Fixes bug #428114]
3077
3078 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3079
3080         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
3081         [Fixes bug #427884]
3082
3083 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
3084
3085         * StatusBar.cs: Add tooltip support.
3086         [Fixes bug #428113]
3087
3088 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3089
3090         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
3091         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
3092         hlaustralia.com.au).
3093         Fixes #425360.
3094
3095 2008-09-23  Neville Gao  <nevillegao@gmail.com>
3096
3097         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
3098         [Fixes bug #419079]
3099
3100 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3101
3102         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3103         [Fixes bug #428107]
3104
3105 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3106
3107         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3108         BeginUpdate/EndUpdate block.
3109         Fixes #425049.
3110
3111 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3112
3113         * ListViewItem.cs: The semantics for the public .ctor of
3114         ListViewSubItemCollection need us to already have a Text value for the
3115         item, which in our implementation have as available *after* adding the
3116         first sub item. So create an internal .ctor that satisfies our needs
3117         and let the public .ctor have the same semantics as .net.
3118         Fixes #427561.
3119
3120 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3121
3122         * ListControl.cs: Changes in Formatting related values should call
3123         RefreshItems, as .net does.
3124         * ComboBox.cs:
3125         * ListBox.cs: In the respective overrides of RefreshItems calculate
3126         layout as well as refreshing - again, this is what .net does.
3127         Fixes #426168.
3128
3129 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3130
3131         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3132         since we are already doing that when we change the value of the
3133         scrollbar or force the call to ScrollWindow in the same method. This
3134         way we don't cause a Invalidate call for all the listbox bounds for
3135         methods calling UpdateTopItem with an already updated top item. This
3136         was happening specially calling EnsureVisible with already visible
3137         items.
3138
3139 2008-09-18  Mike Gorse <mgorse@novell.com>
3140
3141         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3142           XplatUIStructs.cs: Added KeyFilter
3143         [Fixes bug #427039]
3144
3145 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3146
3147         * RelatedPropertyManager.cs: The properties returned by
3148         GetItemProperties should be that ones of the *actual* object returned
3149         by the property, not the property type - this is very special when the
3150         property exposes a type, but the returned object actually is a child
3151         class and implements more functionality and properties.
3152
3153 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3154
3155         * Binding.cs: Don't look for the property in the data source if the
3156         passed string is empty.
3157
3158 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3159
3160         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3161         fix unused variable warnings.
3162
3163 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3164
3165         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3166         [Fixes bug #427073]
3167
3168 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3169
3170         * XplatUIX11.cs: 
3171          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3172          leads to the window manager overriding our border style and zorder. 
3173          - Allow the activation of non-modal forms, which are children of a 
3174          modal form.
3175         [Fixes bug #423417]
3176
3177 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3178
3179         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3180         ask the window manager to do the work instead of changing the property 
3181         directly.
3182         [Fixes bug #423417]
3183
3184 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3185
3186         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3187         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3188
3189 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3190
3191         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3192         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3193         border and fixes some drawing issues when resize form.
3194
3195 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3196
3197         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3198         
3199         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3200         AcceptButton.
3201
3202 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3203
3204         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3205         visible if Multiline is true.
3206         [Fixes bug #426896]
3207
3208 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3209
3210         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3211         patch.
3212         
3213 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3214
3215         [Fixes most od DBNull and HeadersVisible problems]
3216         
3217         * DataGrid.cs:
3218         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3219         returns the value that we need.
3220         - Fixed FromPixelToColumn method that return zero for first     column and for
3221         row header cell, now it returns -1 for row header cell.
3222         - Fixed HitTest to check row header cell in column header area, it now
3223         returns HitTestType.None. [Fixes #322864]
3224         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3225         checks for RowHeadersVisible and other things.
3226         - If an exception occurs when setting CurrentCell and user type 'yes' in
3227         message dialog, invalidade current and new cell and set setting_current_cell
3228         to false to prevent future errors. [Partially fixes #323050]
3229
3230         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3231         value (SetColumnValueAtRow), it must be done by grid to properly show 
3232         messages. [Fixes #323050]
3233
3234         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3235         better draw column and row header. Also dont draw anything when column
3236         headers is not visible.
3237
3238 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3239
3240         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3241         logic.
3242
3243 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3244
3245         * TreeView.cs: Don't start editing a node on right click, only
3246         left click.
3247
3248 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3249
3250         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3251         disabled over a year ago.
3252         * Form.cs: Wrap calling Load in a try/catch because it can happen
3253         before the catch-all one in NativeWindow.
3254         [Fixes bug #425414]
3255
3256 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3257
3258         * ToolStripDropDownMenu.cs: Calculate the connected area better
3259         to take into account when the drop down is not directly under the
3260         owner item.
3261         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3262
3263 2008-09-16  Mario Carrion <mcarrion@novell.com>
3264
3265         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3266           LargeChange, SmallChange, Maximum or Minimum values are changed.
3267         [Fixes bug #426464]
3268
3269 2008-09-16  Mario Carrion <mcarrion@novell.com>
3270
3271         * ErrorProvider.cs: Component enabled to support accessibility.
3272         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3273         [Fixes bug #426459]
3274
3275 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3276
3277         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3278         so we don't highlight on first focus.
3279         [Fixes bug #360869]
3280
3281 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3282
3283         * TextControl.cs: Correctly calculate the height of the area we 
3284         need to invalidate when we have started scrolling and viewport_y
3285         is used.  [Fixes bug #387608]
3286
3287 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * TextControl.cs: When getting the SelectedText, don't add in
3290         NewLine characters, as they are already contained in the lines.
3291         [Fixes bug #388115]
3292
3293 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3294
3295         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3296         simply concats the lines and send it to the Text setter.
3297         [Fixes issue #2 and #3 of 388115]
3298
3299 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3300
3301         * Binding.cs: The default value of DataSourceNullValue should be
3302         Convert.DBNull actually. Also, the NullValue should only be used *if*
3303         itself is not null, and use the null/Convert.DBNull value instead.
3304
3305 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3306
3307         * TextControl.cs: Add a method to convert a string newline to the
3308         newline enum.
3309         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3310         [Fixes part 1 of bug #388115]
3311
3312 2008-09-15  Mario Carrion <mcarrion@novell.com>
3313
3314         * ToolTip.cs: UnPopup event set to internal to match public API.
3315
3316 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3317
3318         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3319         have to remove the Ctrl in order for the focus moving code to kick in.
3320         [Fixes bug #426170]
3321
3322 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3323
3324         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3325         the last item if the list is sorted.  The user can change the NewValue in
3326         the ItemCheck event, we need to use that value if so.
3327         * ListBox.cs: Return the real item index from a sorted Add.
3328         [Fixes bug #426166]
3329
3330 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3331
3332         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3333         happen that the icons from the theme is missing or the particular size 
3334         unavailable.
3335         [Fixes bug #424981]
3336
3337 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3338
3339         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3340         use IsValueType instead to get the precise desired value.
3341         Fixes #424276.
3342
3343 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3344
3345         * TreeNodeCollection.cs: When adding a new node to an opened node,
3346         we have to invalidate everything below the parent node because
3347         every node scoots down and we have to repaint them.
3348         [Fixes bug #411386]
3349
3350 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3351
3352         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3353         property into account when drawing.
3354         [Fixes bug #416064]
3355
3356 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3357
3358         * ListBox.cs: When calling Items.Clear(), call
3359         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3360         not fire any Selected*Changed event - this is done to match .net and
3361         don't have invalid values when changing the DataSourceProperty.
3362         Fixes #424273.
3363
3364 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3365
3366         * HelpProvider.cs: Control enabled to support accessibility.
3367         * Application.cs: Updated to Initialize UIA in HelpProvider.
3368         [Fixes bug #425988]
3369
3370 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3371
3372         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3373         make the dialog TopMost as well.
3374         [Fixes bug #425984]
3375
3376 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3377
3378         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3379         clipboard data better.
3380         [Fixes bug #414446]
3381
3382 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3383
3384         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3385         TextChanged and SelectionChanged events fire in the same order as .Net.
3386         [Fixes bug #425725]
3387
3388 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3389
3390         * DataGridView.cs: When sorting a column, if it only contains numbers,
3391         do a numeric sort instead of a string sort.
3392         [Fixes bug #425849]
3393
3394 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3395
3396         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3397         against NRE's when the settings have a null panel.
3398         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3399         the panel gets set.
3400         [Fixes bug #425647]
3401
3402 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3403
3404         * ToolTip.cs: Control enabled to support accessibility.
3405         * Application.cs: Updated to Initialize UIA in ToolTip.
3406         [Fixes bug #425277]
3407
3408 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3409
3410         * Control.cs: Make the custom Enumerator internal to fix build.
3411
3412 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3413
3414         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3415         already in edit mode, begin edit mode.  Generally edit mode isn't
3416         started until the second click, but CheckBoxes are special.
3417
3418 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3419
3420         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3421         since that can be set to anything.  Always add them to the Control's
3422         parent.  [Fixes bug #416058]
3423
3424 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3425
3426         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3427         so items can be deleted in a foreach.
3428         [Fixes bug #425342]
3429
3430 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3431
3432         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3433         Store the user set explicit height so that the row can be AutoSized
3434         and then when AutoSize is turned off, it can get its original size back.
3435         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3436         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3437         rows' heights back to their explicit values.
3438         [Fixes bug #415780]
3439
3440 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3441
3442         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3443         already showing it. Also, don't change its value when pressing space
3444         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3445         checkbox should remain selected as long as Checked is false, and the
3446         other parts are disabled.
3447         Fixes #424267.
3448         
3449 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3450
3451         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3452         [Fixes bug #425425]
3453
3454 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3455
3456         * Binding.cs: When the value retrieved from the control property is
3457         null, don't return Convert.DBNull for Nullable instances, since they
3458         can *actually* get a null value.
3459         Fixes #424265.
3460
3461 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3462
3463         * Control.cs: Add an internal field to force doublebuffering regardless
3464         of what the public mechanisms are set to.  This is because MS's native
3465         controls are doublebuffered even though their .Net bits are set to false.
3466         * ProgressBar.cs: Set force_double_buffer to true.
3467         [Fixes bug #406595]
3468
3469 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3470
3471         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3472         the cell template.
3473         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3474         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3475         without EditingControls, paint background selection for types without
3476         EditingControls, reset the EditingCellValueChanged flag when the
3477         cell's value is committed.
3478         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3479         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3480         don't do cell changing logic in OnMouseDown if the cell didn't change.
3481         [Fixes bug #420351]
3482
3483 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3484
3485         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3486
3487 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3488
3489         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3490
3491 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3492
3493         * DateTimePicker.cs: Before incrementing or decrementing any part in
3494         the textbox, end any current edit. Also when ending the current edit
3495         use the editing_part_index field instead of the current selected
3496         value, since they can be out of synch, and we really need to work on
3497         the *real* current edit part. Finally when PartData.Selected changes,
3498         always try to end any ongoing edit.
3499         This should fix some small errors handling mouse navigation and
3500         increase/decrease operations.
3501
3502 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3503
3504         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3505         respectively) should handled different, since the 12 hours format
3506         needs the value typed by the user to be adjusted depending on the
3507         a.m/p.m value, so it is preserved, and only changed when the value
3508         reaches the 12 value (when it changes from a.m to p.m).
3509         Fixes part of #416555.
3510
3511 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3512
3513         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3514         * ToolStripDropDownItem.cs: Don't fire events and such again if
3515         ShowDropDown is called on an already dropped down item.
3516         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3517         subitems, the user may add some in the DropDownOpening event.
3518         [Fixes bug #417877]
3519
3520 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3521
3522         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3523         [Fixes bug #424270]
3524
3525 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3526
3527         * MdiClient.cs: When looking for menustrips on a child form to merge,
3528         look inside ToolStripContainers.
3529         [Fixes bug #424264]
3530
3531 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3532
3533         * ErrorProvider.cs: Unbreak my previous commit.
3534
3535 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3536
3537         * ErrorProvider.cs: Icon should always be 16x16.
3538         [Fixes bug #424380]
3539
3540 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3541
3542         * GridEntry.cs: Invalidate the child items cache when the property 
3543         value changes.
3544
3545 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3546
3547         * GridEntry.cs, PropertyGridView.cs: 
3548            - Update the ReadOnly detection and rendering to finally hopefully 
3549            match the one of MSFT.
3550            - Niceify and move the debug CWLS.
3551         [Fixes bug #409028]
3552
3553 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3554
3555         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3556         since we are already calling Invalidate for the entire control when
3557         needed - and call Redraw() when size changes, since we need to paint
3558         there by ourselved and not anymore from the mentioned method. 
3559         This should improve the layout process. Also clean some not needed calls 
3560         here and there.
3561
3562 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3563
3564         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3565         [Fixes bug #420309]
3566
3567 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3568
3569         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3570         [Fixes bug #423040]
3571
3572 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3573
3574         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3575         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3576         on item expansion. Improves performance and fixes bug #417955.
3577         [Fixes bug #417955]
3578
3579 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3580
3581         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3582         fix the build.
3583
3584 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3585
3586         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3587         [Fixes bug #423408]
3588
3589 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3592         region gets set.
3593         [Fixes bug #414166]
3594
3595 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3596
3597         * FontDialog.cs: When storing our font size from the starting font,
3598         use SizeInPoints instead of Size in case Size is a different unit
3599         from Points.
3600         [Fixes bug #416489]
3601
3602 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3603
3604         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3605         don't use it for anything else, check if a directory is highlighted.
3606         If it is, navigate into it.
3607         [Fixes bug #422087]
3608
3609 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3610
3611         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3612         check that the specified property actually exists in the data source,
3613         and throw an ArgumentException if that's not the case - this is only
3614         done for this scenario, since for later cases (such Position changes)
3615         we throw different exceptions (match .Net).
3616
3617 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3618
3619         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3620           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3621           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3622           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3623           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3624           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3625           properties.
3626           [Fixes bug #418684]
3627
3628 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3629
3630         * StatusBar.cs: Control enabled to support accessibility.
3631         [Fixes bug #419079]
3632
3633 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3634
3635         * Binding.cs: When connecting the event handler for the "Changed"
3636         event for the property, only do it for PropertyManager, and not for
3637         CurrencyManager - this is exactly what does .Net, totally ignoring any
3638         change in the property of the elements of a list.
3639         Fixes the tests.
3640
3641 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3642
3643         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3644         to Windows when creating a window, as we fake MDI stuffs.
3645         [Fixes bug #421858]
3646
3647 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3648
3649         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3650         change takes effect.
3651
3652 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3653
3654         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3655         [Fixes bug #419001]
3656
3657 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3658
3659         * DataGridView.cs: Raise CellContentClick event.
3660         [Fixes part of bug #420351]
3661
3662 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3663
3664         * ScrollBar.cs: Control enabled to support accessibility.
3665         [Fixes bug #416759]
3666
3667 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3668
3669         * ComboBox.cs: Control enabled to support accessibility.
3670         [Fixes bug #416663]
3671
3672 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3673
3674         * ListBox.cs: Control enabled to support accessibility.
3675         [Fixes bug #416640]
3676
3677 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3678
3679         * ComboBox.cs: Don't suppress the TextChanged event when changing
3680         the SelectedIndex.
3681         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3682         and re-raise it.
3683         [Fixes bug #420673]
3684
3685 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3686
3687         * ErrorProvider.cs: Fix a regression NRE when setting properties
3688         for a control before it has a parent.
3689         [Fixes bug #420305]
3690
3691 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3692
3693         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3694         connect the property "Changed" event, instead of using the data
3695         sources - this is useful when the property specifies actually a
3696         multiple objects path.
3697         Fixes part of #417973.
3698
3699 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3700
3701         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3702         nested properties should return not the properties of the data source
3703         itself, but the properties of the type of a specific property in the
3704         data source - match .net.
3705
3706 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3707
3708         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3709         AddRange overloads into AddItems method, and added missing NULL check.
3710         Added extra argument check to RemoveAt for compatibility with MS. 
3711         Modified IList implementation of Add, Contains, IndexOf and Remove to
3712         throw an ArgumentException if item is not an int. Modified IList.Insert
3713         to throw a NotSupportException instead of an Exception. Implemented
3714         ICollection.
3715         (ObjectCollection): To avoid duplication, use AddItems method from
3716         AddRange overloads. On 1.0 profile, first perform NULL check on items
3717         in AddItems.
3718
3719 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3720
3721         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3722          #419087.
3723
3724 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3725
3726         * X11Keyboard.cs : comment out some Console.WriteLine().
3727
3728 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3729
3730         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3731           even if premises are not filled. Also XLookupString() was not
3732           receiving correct input, which blocked precise input handling
3733           on non-XIM mode.
3734
3735 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3736
3737         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3738         type of delegate, instead of EventHandler - this was causing a type
3739         cast exception in all apps handling this event.
3740         Fixes #417876.
3741
3742 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3743
3744         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3745         ShowDropDown to give the user a chance to dynamically add
3746         drop down items.  [Step 1 of fixing bug #417877]
3747
3748 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3749
3750         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3751         had any mouse motion since the call to StartDrag, to match the dnd
3752         behaviour of .net.
3753         Fixes part of #381876.
3754
3755 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3756
3757         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3758         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3759         Also, if we are actually moving into a different window after
3760         grabbing, generate a LeaveNotify event for the previous window, since
3761         we need to fire the leave events until the grab ends, not when
3762         actually moving outside of the control.
3763
3764 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3765
3766         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3767         events only for client windows was wrong - we need to compare the
3768         client window against the window receiving the EnterNotify event, not
3769         against zero (since client window is never Zero, btw).
3770         This prevents having unnecessary handling of EnterNotify events for
3771         non-client windows when a gran begins.
3772
3773 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3774
3775         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3776         MouseMove/MotionNotify events at all (which should only happen after
3777         MouseUp/ButtonRelease, as .Net does).
3778         This avoids firing an extra and unnecessary MouseMove event just after
3779         every MouseDown event.
3780
3781 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3782
3783         * LinkLabel.cs: Always clear any previous links when LinkArea
3784         is set.  [Fixes bug #410709]
3785
3786 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3787
3788         * ToolStripProfessionalRenderer.cs: Revert last change.
3789         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3790         for ToolStripDropDownBackground.
3791
3792 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3793
3794         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3795         background of dropdowns to match .Net when the user is not
3796         using the default white.  [Fixes bug #418108]
3797
3798 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3799
3800         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3801           it caused timer registration twice. Fixed bug #418107.
3802
3803 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3804
3805         [Correction: This is the actual change to X11Dnd issue, not the
3806         previous one, which was actually a different issue.]
3807
3808         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3809         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3810         when the pointer is actually in motion, but only when the pointer
3811         seems to stop (as .net does).
3812         Fixes part of #381876.
3813
3814
3815 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3816
3817         * ListBox.cs: Fix CopyTo implementation.
3818         [Fixes bug #409169]
3819
3820 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3821
3822         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3823         drawing a ComboBox's background.  Fixes bad disabled rendering when
3824         the control is not at 0,0.
3825         [Fixes bug #416063]
3826
3827 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3828
3829         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3830         ComponentModel layer, which will properly prioritize the attributes.
3831         Avoids wrong prioritization of duplicate attributes when retrieving 
3832         the converter and editor.
3833         [Fixes bug #417729]
3834
3835 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3836
3837         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3838         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3839         when the pointer is actually in motion, but only when the pointer
3840         seems to stop (as .net does).
3841         Fixes part of #381876.
3842
3843 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3844
3845         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3846         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3847         implementation.
3848         [Fixes bug #417567]
3849
3850 2008-08-14  Geoff Norton  <gnorton@novell.com>
3851
3852         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3853         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3854         prematurely show POPUP windows.
3855
3856 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3857
3858         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3859         GraphicsExpose event, processing it just after we copy the scrolled
3860         area. This ensures that the next calls to ScrollWindow will copy
3861         regions already updated, and the scrolling will be smooth. Also remove
3862         the code that was trying to detect the obscured regions, since we are
3863         not using it anymore (too slow).
3864
3865 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866
3867         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3868         MultiExtended mode, by separating some logic between the ctrl/shift
3869         handling. Also ignore any MouseMove events generated together with
3870         MouseDown events - we are only interested in the real motion event.
3871         Fixes part of #414963.
3872
3873 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3874
3875         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3876         is selected.  [Fixes bug #414143]
3877
3878 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3879
3880         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3881         and not the parent one (the propertyowner). Fixes the behavior of 
3882         GetConverter/GetEditor.
3883         [Fixes bug #415452]
3884
3885 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3886
3887         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3888         [Fixes part of bug #415452]
3889
3890 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3891
3892         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3893         GridEntry, not the current.
3894         [Fixes bug #413896]
3895
3896 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3897
3898         * TextBoxBase.cs: De-internalize max_length field.
3899         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3900         share the same logic.
3901         [Fixes bug #414454]
3902
3903 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3904
3905         * ListBox.cs: Selection changes made in the MouseDown handler should
3906         use the *Core versions of selection in SelectedIndices collection,
3907         since the SelectedIndexChanged/SelectedValueChanged events are fired
3908         until we get a MouseUp event, and thus we need to separate the logic
3909         from the events, as done in the keyboard navigation. Also, fire those
3910         selection events from keyboard navigation in SelectionMode.None, even
3911         if we don't have a selection, as .Net does.
3912
3913 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3916         last change introduced when an item is clicked but isn't on a toolstrip.
3917
3918 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3919
3920         * ListBindingHelper.cs: When looking for an object's properties, check
3921         if it implements ICustomTypeDescriptor, in which case we should
3922         resolve the propertu based on its GetProperties method, not in its
3923         actual properties. This is what .Net seems to do.
3924         Fixes a UsingWebBrowser problem during initialization.
3925
3926 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3927
3928         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3929         sitting on a MenuStrip.
3930
3931 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3932
3933         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3934         no children with the keyboard, we need to release the keyboard capture.
3935         [Fixes bug #413567]
3936
3937 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3938
3939         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3940         no children with the keyboard, we need to release the keyboard capture.
3941         [Fixes bug #413567]
3942
3943 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3944
3945         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3946         the GTK+-based implementation of VisualStyles.
3947         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3948         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3949         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3950         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3951         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3952         TrackBarHorizontalTrackHeight.
3953
3954 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3955
3956         * TabControl.cs: Added hot style handling for the scroll buttons.
3957         right_slider_state, left_slider_state are now of type PushButtonState to
3958         allow for a hot state. Added tracking of the mouse button being held down
3959         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3960         LeftScrollButtonArea.
3961         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3962         TabControlGetRightScrollRect.
3963
3964 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3965
3966         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3967         runtime errors.
3968
3969 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3970
3971         * Form.cs: Ensure that we reset the shown_raised flag after 
3972         the form is closed, so that we raise the show events the next 
3973         time the form is shown.
3974         [Fixes bug #413141]
3975
3976 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3977
3978         * Form.cs: Ensure closing events are raised only once.
3979         [Fixes bug #413143]
3980
3981 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3982
3983         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3984         so that we can successfully generate the LParam in-place instead of 
3985         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3986         navigation for menus.
3987
3988 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3989
3990         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3991         'navigating'. Fixes bug #411356.
3992
3993 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3994
3995         [Fixed remaining issues of #406773 (#1)]
3996         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3997
3998         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3999         MainMenu (already done) and ContextMenu creation.
4000
4001         * ContextMenu.cs: Create tracker on construction. 
4002
4003 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4004
4005         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
4006         possible to instantiate MenuTracker without GrabControl.
4007
4008 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4009
4010         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
4011
4012         * MainMenu.cs: Set GrabControl on SetForm using current form.
4013
4014 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4015
4016         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
4017
4018 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
4019
4020         * MenuAPI.cs: Check if menu is activated before deactivate it in 
4021         ProcessShortcut.
4022
4023 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
4024
4025         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
4026         ColumnStyle.cs: 
4027         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
4028          - One style instance can only participate in a single style collection.
4029          - Styles can request their owner to layout whenever their properties 
4030          change.
4031          [Fixes bugs #412583 and #412582]
4032
4033 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
4034
4035         * X11Keyboard.cs: Implement the generation of the LParam for 
4036         all keyboard messages.
4037         [Fixes bug #378728]
4038
4039 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
4040
4041         * ListBox.cs: Don't let the user set TopIndex so high that it
4042         scrolls up far enough to show empty items.
4043         [Fixes bug #412728]
4044
4045 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4046
4047         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
4048         (I'm an idiot and forgot to commit the actual changes, as well as
4049         specify the right file, which is this one, not ListView.cs).
4050
4051 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4052
4053         * ListView.cs: Don't draw ListViewSubItem instances from
4054         DrawListViewItem - we need to reuse the main item's drawing for the
4055         first sub item in case owner draw is true, but wants the system to
4056         do the default draw for the first sub item, without incurring in a
4057         recursion problem.
4058         Fixes #410880.
4059
4060 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
4061
4062         * ToolStripButton.cs: Update Checked for CheckOnClick before
4063         raising the Click event.  [Fixes bug #412505]
4064
4065 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
4066
4067         * Form.cs: Remove some seems leftover code for non-TopLevel's 
4068         CreateParams, which is breaking ClientSize sizing, because it 
4069         removes the border window styles.
4070
4071 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
4072
4073         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
4074         changes.
4075
4076 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
4077
4078         * WebBrowser.cs: Removed debug output.
4079
4080 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
4081
4082         * FileDialog.cs: Apply patch from Ernesto to clean up some
4083         dialog messages.
4084
4085 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4086
4087         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
4088         that the change has an immediate effect.
4089
4090 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4091
4092         * ScrollableControl.cs: Update PerformLayout calls to include 
4093         provide the name of the property that changed.
4094
4095 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4096
4097         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
4098         location. Fixes drawing of border and cell borders if scrollable.
4099
4100 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4101
4102         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4103         properties have changed, so that the changes have immediate 
4104         effect.
4105         [Fixes bug #409090]
4106
4107 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4108
4109         * XplatUIX11.cs: Non Client area is actually Client such in the 
4110         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4111         when adding an expose.
4112         [Fixes bugs #324237 and #357022]
4113
4114 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4115
4116         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4117         repaint the cell borders.
4118
4119 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4120
4121         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4122         disposal to avoid unexpected ObjectDisposedExceptions.
4123
4124 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4125
4126         * TableLayoutPanel.cs: Layout on Row/Column count change.
4127
4128 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4129
4130         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4131         bug #409351.
4132         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4133         only set image to null if it was previously initialized from an url
4134         (or using ImageLocation). In ImageLocation, load specified image
4135         asynchronously if WaitOnLoad is false. Added support for local file
4136         paths to LoadAsync, and added missing argument check.
4137
4138 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4139
4140         * DateTimePicker.cs: 
4141         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4142         order to set the value as required (which means: when selection
4143         changes for a part being edited, and not before that if not needed).
4144         Also use an enum to describe which part are we using, and use the
4145         selection as a property in PartData, in order to notify the
4146         DateTimePicker owner that we need to end the current edit.
4147         Fixes #383462.
4148
4149 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4150
4151         * PropertyGridTextBox.cs: Validation should be performed only if we 
4152         are focused. We can lose focus for example if the Return key is used 
4153         to set the entry and there is an error. When the message box is 
4154         displayed we would have validate on click in the message box.
4155
4156 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4157
4158         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4159         in order to determine that we are expandable is wrong. There was a bug, 
4160         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4161         returned which caused GetPropertiesSupported == false in most cases.
4162         [Fixes bug #409027]
4163
4164 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4165
4166         * ImageList.cs: Fix ICollection.CopyTo implementation for
4167         ImageListCollection.  [Fixes bug #409169]
4168
4169 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4170
4171         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4172         WorkingArea so that menus can appear on the second monitor
4173         when one has dual monitors.
4174
4175 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4176
4177         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4178         Fixes build.
4179
4180 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4181
4182         * TextBox.cs: Implement navigation support for auto complete in
4183         TextBox, as well as refactor the code to show the auto complete window
4184         when receiving a WM_CHAR message, instead of TextChanged, since
4185         autocomplete itself should be able to set the Text a lot of times and
4186         finally only typing should show it, not changes from code.
4187
4188 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4189
4190         * TabControl.cs: When expanding the selected tab, don't adjust the
4191         width if alignment is Right, since it has a different offset than 0,
4192         as opposed to the other alignments.
4193         Fixes the selected tab not being painted at all with alignment = Right
4194         and using FillToRight size mode.
4195
4196 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4197
4198         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4199
4200 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4201
4202         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4203         values from the textbox to the boundary values.  [Fixes bug #409026]
4204
4205 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4206
4207         * TreeNodeCollection.cs: We were copying one too many elements when
4208         doing our array copy.  Fixes a crash when RemoveAt is called.
4209         [Fixes bug #408999]
4210
4211 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4212
4213         * TabControl.cs: When doing the layout and need to call FillRow -using
4214         FillToRight size mode-, use the overload receiving a bool param
4215         indicating whether we need to do a vertical or horizontal calculation.
4216         Fixes part of #399583.
4217
4218 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4219
4220         * TextBox.cs: When painting, use the value returned by
4221         GetLastVisibleItem instead of using the cached last_item field, since
4222         there could be a desynchronization between the layout and the
4223         painting. Fixes a AOOR exception in auto complete mode.
4224
4225 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4226
4227         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4228         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4229
4230 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4231
4232         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4233
4234 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4235
4236         * TextBox.cs: When focus is lost, if the auto complete listbox is
4237         visible, hide it.
4238
4239 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4240
4241         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4242         tracking size for tool windows.
4243         * Theme.cs, ThemeWin32Classic.cs : Extracted
4244         ManagedWindowSpacingAfterLastTitleButton.
4245
4246 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4247
4248         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4249         They are bit-rotted and have always been listed as "unsupported".
4250
4251 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4252
4253         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4254
4255 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4256
4257         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4258
4259 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4260
4261         * ListBox.cs: Make sure last_item_visible gets reset before we try
4262         to do a layout due to scrollbars appearing or disappearing.
4263         [Fixes bug #408139]
4264
4265 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4266
4267         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4268         for different window themes.  [Fixes bug #339140]
4269
4270 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4271
4272         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4273         in ManagedWindowBorderWidth.
4274
4275 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * InternalWindowManager.cs: Change MouseMove to take a point, so
4278         we can use the same point later on.
4279         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4280         later reset to it.  On Windows, the Cursor.Position had already
4281         changed by the time we were resetting to it.
4282         [Fixes bug #363239]
4283
4284 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4285
4286         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4287         are inactive.
4288         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4289         user requested it.
4290         [Fixes bug #398686]
4291
4292 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4293
4294         * MdiWindowManager.cs: Double-clicking on the title bar should not
4295         maximize a MDI form if MaximizeBox = false.
4296
4297 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4298
4299         * ThemeVisualStyles.cs: Fixed a warning.
4300
4301 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4302
4303         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4304
4305 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4306
4307         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4308         implementation produces a better result.
4309
4310 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4311
4312         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4313         windows.
4314
4315 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4316
4317         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4318         cannot be used from the ThemeEngine constructor.
4319         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4320         Application.VisualStylesEnabled because it does not work on X11.
4321
4322 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4323
4324         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4325         that we did not always check for, as well as fixes to the IList
4326         implementations.  [Fixes bug #402703]
4327
4328 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4329
4330         * IDeviceContext.cs: Added Dispose.
4331
4332 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4333
4334         * Control.cs: Added OnSizeInitializedOrChanged.
4335         * Form.cs: OnLoadInternal: Added a call to
4336         Control.OnSizeInitializedOrChanged.
4337         * InternalWindowManager.cs:
4338          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4339          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4340          * TitleButton: Added Entered.
4341          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4342         * MdiWindowManager.cs:
4343          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4344          move over the maximized title buttons causes a change.
4345          * IsActive: Can now be called before the window is added to a MDI parent.
4346         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4347         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4348         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4349         * ThemeWin32Classic.cs:
4350          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4351          * DrawTitleButton takes a new form parameter.
4352          * Added ManagedWindowTitleButtonHasHotElementStyle,
4353          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4354
4355 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4356
4357         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4358         Application.EnableVisualStyles has been called, even if the current system
4359         configuration does not support rendering with Visual Styles.
4360         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4361         Styles should not be used.
4362
4363 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4364
4365         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4366         ComboBox in FormsTest.
4367
4368 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4369
4370         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4371         for fixed toolwindows.
4372
4373 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4374
4375         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4376
4377 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4378
4379         * Control.cs: CreateControl just returns if the Control is diposed 
4380         and doesn't throw ObjectDisposedException.
4381         [Fixes bug #406566]
4382
4383 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4384
4385         * Control.cs: Do not create the control if the parent isn't created 
4386         yet, e.g in the case of a parented form on which .Show is called.
4387         It will be created when the parent is made visible/created.
4388         Improves #402446.
4389
4390 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4391
4392         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4393         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4394         [Fixes bug #406786]
4395
4396 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4397
4398         * Form.cs: When disposed set owner to null. Improves #402446.
4399
4400 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4401
4402         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4403         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4404         if not.
4405         * Form.cs: Take the Padding into account for the PreferredSize.
4406         [Fixes bug #402849]
4407
4408 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4409
4410         * TabControl.cs: Since we don't support more than one direction in
4411         TabControl rows alignment (this is, the row becomes the
4412         bottom row when selected), make Direction return always 1. This way
4413         the layout doesn't get confused about a bad calculation.
4414         Fixes #399582.
4415
4416 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4417
4418         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4419         so that the wparam is properly set.
4420         Fixes form moving in the test case in bug 402446.
4421
4422 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4423
4424         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4425         the full tree instead of nothing.  [Improves bug #406584]
4426
4427 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4428
4429         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4430
4431 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4432
4433         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4434         children.
4435
4436 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4437
4438         * TreeView.cs: Add a null check when using CollapseAll on an
4439         empty tree.  [Fixes bug #406449]
4440
4441 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4442
4443         * Form.cs: Make OnMenuComplete internal so we can call it.
4444         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4445         [Fixes bug #399321]
4446
4447 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4448
4449         * TabControl.cs: Handle Up and Down keys when TabControl is in
4450         vertical alignment.
4451         [Fixes bug #399585]
4452
4453 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4454
4455         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4456         an AOORE when trying to remove a tabpage that is not owned by the
4457         parent control.
4458         [Fixes bug #399927]
4459
4460 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4461
4462         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4463         Ensure we are using LargeChange instead of large_change so we our
4464         calculations are correct.
4465         [Fixes bug #403122]
4466
4467 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4468
4469         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4470         we need to ensure the ColumnCount/RowCount gets set.
4471         [Fixes bug #404851]
4472
4473 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4474
4475         * ListBox.cs: When handling item navigation, if selection mode is
4476         None, call EnsureVisible, since scrolling is normally handled by
4477         selection, that we are not calling in this case.
4478         Fixes #398345.
4479
4480 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4481
4482         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4483         a null check to our focus walking code.  [Fixes bug #394332]
4484
4485 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4486
4487         * ComboBox.cs: Case missed in bug 379596 "Support item
4488         navigation by entering text": On _close_ drop-down select
4489         the first item matching the text in the textbox.  [Fixes bug #397265]
4490
4491 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4492
4493         * DataGridView.cs: Fix a crash when sorting by column headers, 
4494         mentioned in bug #404841.  Remove some dead switch cases.
4495
4496 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4497
4498         * ComboBox.cs:
4499         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4500         uses the AutoComplete support in the internal TextBox. Also TextBox
4501         can store a reference to ComboBox, in case AutoCompleteSource is set
4502         to ListItems (this is, ComboBox's items, and we don't want to pass an
4503         additional collection).
4504
4505 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4506
4507         * ListViewItem.cs: Restore the initial value of bounds rect to
4508         Rectangle.Empty, and is this value for Layout detection in virtual
4509         mode. Fixes the tests.
4510
4511 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4512
4513         * XPlatUI.cs: Remove references to "new" X11 backend.
4514
4515 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4516
4517         * Control.cs: Add an internal virtual OnDragDropEnd method 
4518         to allow controls such as ListBox, which depend on a sequence 
4519         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4520         when a DnD operation is started in MouseDown.
4521         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4522         get a MouseUp, so reset our state whenever a DnD operation ends.
4523
4524 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4525
4526         * PropertyGrid.cs: Clear the root griditem first thing when 
4527         new object/s is/are selected. Fixes some rare cases where 
4528         the View will get a paint request and won't know that the 
4529         grid is in the process of repopulating.
4530
4531 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4532
4533         * XplatUIX11.cs, InternalWindowManager.cs: 
4534         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4535         doesn't automagically update the FormBorderStyle, so we must 
4536         double check the CreateParams explicitly to determine if the 
4537         window is a toolwindow.
4538         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4539         instead of doing custom checks.
4540
4541         Fixes toolwindows for the test case in bug #402446
4542
4543 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4544
4545         * Control.cs: Visibility of the control should be false 
4546         when the handle is destroyed in WmDestroy and not immediately 
4547         in Dispose(). This is effectively where the disposing process 
4548         ends even though the control is marked as Disposed immediately 
4549         after calling Dispose().
4550         [Fixes bug #402446]
4551
4552 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4553
4554         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4555         when the textbox gets focus.
4556         [Fixes bug #402704]
4557
4558 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4559
4560         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4561          - Alt + Down should show the drop down editor.
4562          - Focus the editor when showing it
4563         [Fixes bug #402710]
4564
4565 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4566
4567         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4568         that are not the first panel.
4569         * StatusBar.cs: Ensure that the X coordinate of panels is always
4570         stored.  Fix IList implementation of StatusBarPanelCollection to
4571         call the regular methods.
4572         [Fixes bug #403599, #402165]
4573
4574 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4575
4576         * ThemeWin32Classic.cs: Fix position calculation for centered
4577         text on status bar panels.  [Fixes bug #402165]
4578
4579 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4580
4581         * Splitter.cs: Fix Splitter to:
4582          - Work for arbitrary splitter size
4583          - Handle MinSize and MinExtra properly
4584          - Get rid of absolute positioning during drag and use relative
4585          - Multiple other fixes 
4586          [Fixes bug #338966]
4587
4588 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4589
4590         * Cursor.cs: Show shouldn't hide the cursor.
4591
4592 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593
4594         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4595         since focus rectangle and selection can add some space and need to
4596         take into account those small offsets - specially in Details view.
4597         * ListView.cs: Instead of invalidate using item Bounds directly, call
4598         item.Invalidate, to have the code centralized.
4599         Fixes focused/selection garbage when selecting and deselecting items
4600         that are close.
4601
4602 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4603
4604         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4605         mode we can check whether we have to force a Layout or not, and can
4606         cache based on this, instead of avoiding caching all the the time. Do
4607         this check in GetBounds and TextBounds.
4608         Fixes selection in Details view.
4609
4610 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4611
4612         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4613         get its *real* height instead of trying to infere it.
4614         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4615         get the position of them, since it's in general a bad idea in general,
4616         and because we can't do that in virtual mode. Instead get the first
4617         visible item as well as item height, and draw them.
4618         Fixes #400390.
4619
4620 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4621
4622         * ToolStripSplitButton.cs: We can't add in extra width if
4623         the button is not AutoSize.  [Fixes bug #401279]
4624
4625 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4626
4627         * PaddingConverter.cs: 
4628          - Implement conversion to InstanceDescriptor
4629          - Handle "All" in CreateInstance by using the supplied 
4630          ITypeDescriptorContext.
4631          [Fixes bugs #396076 and #396078]
4632
4633          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4634          Code contributed under MIT/X11 license.
4635
4636 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4637
4638         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4639         ButtonBase.cs:
4640         Add Category attributes.
4641         Code is contributed under the MIT/X11 license.
4642
4643 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4644
4645         * Form.cs: 
4646          - Fix a NRE when unparenting a form.
4647          - Do not recreate or destroy a parented form when 
4648         unparenting. 
4649
4650 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4651
4652         * TextBox.cs: Implement basic support for AutComplete with custom
4653         sources.
4654
4655 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4656
4657         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4658         DropDownButtonBounds should be from the origin of the button, not the
4659         ToolStrip.  [Fixes bug #401279]
4660
4661 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4662
4663         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4664           running gtk_init_check.  This prevents GAIL from loading
4665           unnecessarily, which was breaking UIA support.  Initial fix for bug
4666           #375987.
4667         * Application.cs: Add UIA support to Winforms.  New static constructor
4668           uses reflection to initialize UIAutomationWinforms assembly.  Added
4669           PreRun event so UIA can initialize before the mainloop starts, and
4670           FormAdded event so UIA can provide a11y support for new Forms in an
4671           Application.
4672
4673 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4674
4675         * DataGridView.cs: When binding to a dataset, subscribe to table
4676         and column change events.  Unsubscribe to these when we clear bindings.
4677         [Fixes bug #399601]
4678
4679 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4680
4681         [DataGrid drawing refactory]
4682
4683         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4684
4685         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4686         must be handle by Theme, now it call DataGridPaintColumnHeader.
4687
4688         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4689         test cases must be also fixed because it checks for wrong size.
4690
4691         * ThemeWin32Classic.cs: 
4692                 - Draw the bottom line of grid caption.
4693                 - Prevent to draw caption text when it is empty.
4694                 - Use CPDrawBorder3D for 3D efects to simplify code.
4695                 - Uses 3D (when not flat) to paint corner shared between row and column
4696                 header.
4697                 - Fix header drawing issues on win32, now borders are drawing.
4698                 - Fix column header paint issues to mimic win32.
4699                 - Adjust header drawing for last column, like first one it must be draw
4700                 different.
4701                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4702                 not an character.
4703                 - DataGridPaintColumnHeader created to draw column headers, it also
4704                 paint stuff right on Win32.
4705                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4706                 class.
4707
4708         * Theme.cs: 
4709                 - DataGridPaintRowHeaderStar method added.
4710                 - DataGridPaintColumnHeader method added.
4711
4712 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4713
4714         * Control.cs: Don't reset to Dock style layout if DockStyle is
4715         set to none.  [Fixes bug #399316]
4716
4717 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4718
4719         * Win32DnD.cs: Fix the check for control not equal null.
4720         Fixes bug #341420 and #381886. 
4721
4722 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4723
4724         * DataGridViewRowCollection.cs: Update the indexes of rows after
4725         one has been removed.
4726         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4727         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4728         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4729         rows for the Rows collection, or deleting rows from the bound DataSet.
4730
4731 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4732
4733         * DataGridView.cs: Listen to a DataSet's changed event even
4734         when autogeneratecolumns is false.  Refactor the changed event's
4735         add row code to use the same as the existing add row code.
4736         [Fixes bug #399601]
4737
4738 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4739
4740         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4741         much any time the caret moves and there is text, not just when
4742         the selection changes as one would think.
4743         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4744         SelectionChanged.
4745         [Fixes bug #397271]
4746
4747 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4748
4749         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4750         instead of trying to duplicate the code.
4751         * ListBox.cs: Make method internal so we can send keyboard events.
4752         [Fixes bug #398344]
4753         
4754 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4755
4756         * TextBoxBase.cs: When pasting and checking the max length,
4757         subtract the selected text length (the text we will be replacing) from
4758         the document length.
4759         * TextControl.cs: Ensure every character insertion is reflected in
4760         charcount, so max length will work properly.
4761         [Fixes bug #398605]
4762
4763 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4764
4765         * ListBox.cs: Ensure scrollbars are updated when a single
4766         column listbox with an already set top-index is created.
4767         [Fixes bug #398342]
4768
4769 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4770
4771         * FontDialog.cs: Typing in the font/style textboxes should search
4772         the list boxes case-insensitively.  [Fixes bug #398343]
4773
4774 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4775
4776         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4777         widths of icon and buttons instead of hard coded values.
4778
4779 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4780
4781         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4782         as well as generating a SelectedIndexChanged event, just like .Net does
4783         -surprise-.
4784         Fixes #398345.
4785
4786 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4787
4788         * ListBox.cs: When navigating items visually, use FocusedItem as the
4789         reference point instead of SelectedIndex, since even in
4790         SelectionMode.None we need to support navigation, and in that case we
4791         just can't use SelectedIndex.
4792         Fixes part of #398345.
4793
4794 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * Control.cs: Make a SetBoundsInternal that avoids the new
4797         SetBounds code.
4798         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4799         SetBoundsInternal instead of SetBoundsCoreInternal.
4800
4801 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4802
4803         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4804         SetBounds for the scrollbars.
4805
4806 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4807
4808         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4809           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4810           OnMouseMove, OnMouseOver, OnMouseUp
4811         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4812           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4813         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4814           to the WebControl object to pass to new collection objects
4815         * HtmlHistory.cs: Implement support for individual window histories.
4816         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4817           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4818           GotFocus, LostFocus, OnLoad, OnUnload
4819         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4820           ContextMenu
4821         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4822           security level changes and context menu event support.
4823
4824 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4825
4826         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4827         as happens with Esc, patch my Andy Hume.
4828         Fixes #396294.
4829
4830 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4831
4832         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4833         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4834         * Theme.cs: Made MenuButtonSize platform dependent. Added
4835         ManagedWindowButtonSize.
4836         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4837         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4838
4839 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4840
4841         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4842         Added support for rendering with VisualStyles.
4843
4844 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4845
4846         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4847         support for rendering the border with VisualStyles.
4848
4849 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4850
4851         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4852         the icon is not shown.
4853         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4854         its own logic.
4855
4856 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4857
4858         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4859         borders.
4860
4861 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4862
4863         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4864
4865 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4866
4867         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4868         [Fixes bug #397943]
4869
4870 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871
4872         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4873         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4874         if the requested height leaves the listbox area with *less* than the
4875         required are to see one item. We were setting it to PreferredHeight
4876         even for values matching the height for a single item.
4877         Fixes #396297.
4878
4879 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4880
4881         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4882
4883 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4884
4885         * DataGridViewCell.cs: Use property instead of field.
4886
4887 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4888
4889         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4890         null checks.
4891
4892 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4893
4894         * Theme.cs: Added #region around the managed window code. Made the managed
4895         window methods abstract.
4896         * ThemeWin32Classic.cs: Added #region around the managed window code.
4897
4898 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4899
4900         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4901         if it has borders.
4902         * ThemeWin32Classic.cs: Removed HasBorders checks in
4903         DrawManagedWindowDecorations.
4904
4905 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4906
4907         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4908         Extracted ManagedWindowGetTitleBarIconArea.
4909
4910 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4911
4912         * DataGridViewCellStyle.cs: Don't clone the font.
4913
4914 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4915
4916         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4917
4918 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4919
4920         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4921         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4922         in 64 bit machines.
4923
4924 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4925
4926         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4927         Use Format/FormatProvider before trying converters.
4928         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4929         are 'set'.  Change constructor to not use ApplyStyle since it wants
4930         everything applied.  Clone the Font.
4931         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4932         ApplyStyle the rest.
4933
4934 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4935
4936         * ListView.cs: We need to calculate the scrollbars even if the handle
4937         hasn't been created - this is needed when methods using scrollbars
4938         info, such EnsureVisible, are called before control has been created.
4939         Fixes #397272.
4940
4941 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4942
4943         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4944         only if the elements are defined. 
4945
4946 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4947
4948         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4949         section. Also, when setting bounds, snap height as well as save the
4950         requested height if Dock has any value affecting the height: Left,
4951         Right and Bottom - important if using IntegralHeight as true.
4952
4953 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4954
4955         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4956         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4957         instead of doing that only in our SetBoundsCore override, since the 
4958         bounds cached can be the same as saved one and we could not get the
4959         new height applied.
4960         Fixes #396297.
4961
4962 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4963
4964         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4965         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4966         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4967         ToolWindowCaptionButtonSize.
4968         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4969
4970 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4971
4972         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4973         hard coded values.
4974         * Theme.cs: Made DoubleClickTime plaform dependent.
4975
4976 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4977
4978         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4979         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4980         ToolWindowCaptionHeight.
4981
4982 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4983
4984         * InternalWindowManager.cs: The adjustment to ensure positive client area
4985         sizes is now platform dependent (disabled on Windows).
4986         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4987         RequiresPositiveClientAreaSize.
4988
4989 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4990
4991         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4992
4993 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4994
4995         * InternalWindowManager.cs: Changed IconicSize to use
4996         SystemInformation.MinimizedWindowSize.
4997         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4998         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4999
5000 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5001
5002         * ComboBox.cs: If the combobox is anchored both on top and bottom,
5003         adjust height if IntegralHeight is true when calling SetBoundsCore (as
5004         likely the height was modified even if Height wasn't specified in
5005         BoundsSpecified parameter).
5006         Fixes part of #396297.
5007
5008 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
5009
5010         * InternalWindowsManager.cs: Changed minimum window size while resizing to
5011         SystemInformation.MinWindowTrackSize.
5012         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
5013         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
5014
5015 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5016
5017         * MenuItem.cs: Fixed Dispose.
5018
5019 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
5020
5021         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
5022         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
5023         EnteredHeaderCell, PressedHeaderCell: Added.
5024         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
5025         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
5026         theme a chance to override default painting.
5027         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
5028         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
5029         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
5030         ListView and DataGridView header rendering.
5031         
5032 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5033
5034         * RichTextBox.cs: GetPositionFromCharIndex should return the 
5035         visual position of the character relative to the viewport.
5036         [Fixes part of bug #396664]
5037
5038 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
5039
5040         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
5041         and not just for the existance of an UITypeEditor. In some cases 
5042         there is an editor associated just to do PaintValue, but which 
5043         doesn't actually support editing.
5044         [Fixes bug #396632]
5045
5046 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5047
5048         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
5049         if needed, instead of 0 - this should help us in the corner case where
5050         we have more than one item but we are only partially showing 1 item.
5051         Fixes part of #374713.
5052
5053 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5054
5055         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
5056         control, return immediately if the any parent control's handle hasn't
5057         been created or isn't visible, as well as avoiding creating the parent
5058         Form if the handle hasn't been previously created.
5059         Fixes tests.
5060
5061 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5062
5063         * TableLayoutPanel.cs: Use border sizes when calculating the
5064         panel's preferred size.  [Fixes part of bug #396433]
5065
5066 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5067
5068         * SplitContainer.cs:
5069          - Fix SplitterDistance to update only if needed. 
5070          - Make it force min and max validation.
5071          - Handle properly mouse moves outside the resizeable area.
5072          [Fixes bug #396232]
5073
5074 2008-06-02  Andreia Gaita <avidigal@novell.com> 
5075
5076         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
5077           (which also suppresses all popup dialogs). Throw NotSupported
5078           exceptions for activex getters/setters.
5079         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
5080           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
5081           StatusText, Version, GoSearch
5082         * HtmlDocument.cs: Add DocType support
5083
5084 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
5085
5086         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
5087         [Fixes bug 396124]
5088
5089 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
5090
5091         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
5092
5093 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
5094
5095         * TableLayoutPanel.cs: When calculating preferred size, use the
5096         actual number of columns and rows, not what the user set them to.
5097         [Fixes bug #396141]
5098
5099 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5100
5101         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5102         394311.
5103
5104 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5105
5106         * XplatUIX11.cs: When detecting areas obscured in a control by other
5107         toplevel windows while scrolling, return if the control hasn't a 
5108         container form.
5109         Fixes some tests.
5110
5111 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5112
5113         * XplatUIX11.cs: Properly detect the visible area of a control being
5114         scrolled (obscured by other winforms controls and any X toplevel
5115         windows), to mark as invalid the requested area to be scrolled that
5116         isn't visible and thus can't be copied.
5117         Fixes #324513.
5118
5119 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5120
5121         * ListBox.cs: Compute the precise amount to vertically scroll when
5122         using DrawMode.OwnerDrawVariable.
5123         Patch by jkeymer (j.keymer@gmx.net).
5124
5125 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5126
5127         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5128         to avoid setting an invalid value for the verticall scrollbar 
5129         when navigating items. And, duh, also remove my silly debug messages
5130         from previous commits.
5131         Fixes #374713.
5132
5133 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5134
5135         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5136         make it MS compatible.
5137
5138 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5139
5140         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5141          - Allow the editing of entries even if their parent is read-only.
5142          - Do not render expandable properties read-only.
5143          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5144
5145 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5146
5147         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5148         support for the hover style.
5149
5150 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5151
5152         * ContainerControl.cs: Check for null dead-end when traversing the tree
5153           of parent controls.
5154         
5155           [Fixes #394332, patch by Ernesto Carrea]
5156
5157 2008-05-29  Geoff Norton  <gnorton@novell.com>
5158
5159         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5160         constant that it is.  Fixes #393981
5161
5162 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5163
5164         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5165         that the user probably doesn't want to set this.
5166
5167 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5168
5169         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5170         the control size for CheckBox/RadioBox.
5171         [Fixes part of bug #394645]
5172
5173 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5174
5175         * PropertyGrid.cs: Update the state of the sorting buttons in 
5176         the toolbar if PropertySort is set programatically.
5177
5178 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5179
5180         * GridItemCollection.cs: Add multiple items with conflicting names 
5181         support and also preserve name ordering.
5182         [Fixes #395345]
5183
5184 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5185
5186         * GridItemCollection.cs: Revert my multiple items with same 
5187         name patch.
5188
5189 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5190
5191         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5192         or middle ones.
5193         Fixes part of #393908.
5194
5195 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5196
5197         * ToolStripDrowDown.cs: When using the Show () methods that have a
5198         Control parameter, set the menu owner to that Control.
5199         [Fixes bug #394345]
5200
5201 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5202
5203         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5204         [Fixes bug #362756]
5205
5206 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5207
5208         * GridItemCollection.cs: Refactor to support multiple items with the 
5209         same name.
5210         [Fixes bug #394314]
5211
5212 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5213
5214         * Control.cs: The 2.0 check for illegal cross thread calls in 
5215         Control.Handle were throwing an exception when we were getting
5216         the Handle in order to invoke correctly.  Created a private
5217         version that does not contain this check.
5218         [Fixes bug #394531]
5219
5220 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5221
5222         * PropertyGrid.cs: Respect DefaultTabType.
5223
5224 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5225
5226         * ListView.cs: SPACE selects an item.
5227         [Fixes bug #393023]
5228
5229 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5230
5231         * ListView.cs: Reset the search string whenever the items are 
5232         modified.
5233         [Fixes bug #393020]
5234
5235 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5236
5237         * ListControl.cs: For the first added item PositionChanged is fired
5238         _before_ ItemChanged, which leave us in a temporary invalid state - so
5239         we need to set the selected index from ItemChanged handler *if* we
5240         know that the first item has just been added *and* the items have been
5241         actually added to the ListControl.
5242         Fixes #369048.
5243
5244 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5245
5246         * TabControl.cs: Only clicks with the left button should be
5247         handled.
5248         Fixes #393908.
5249
5250 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5251
5252         * ComboBox.cs: 
5253         * FIleDialog.cs:
5254         * TextBox.cs: Expose an internal method in TextBox to restore the
5255         original context menu, and call it from ComboBox to re-use it in the
5256         combobox containing the file name in FileDialog.cs.
5257         Fixes part of #393775.
5258
5259 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5260
5261         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5262         style.
5263
5264 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5265
5266         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5267         down button style.
5268
5269 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5270
5271         * ComboBox.cs: Minor correction to previous patch: PageDown should
5272         also *try* to move by one item if the computed offset is negative,
5273         just like the PageUp case.
5274
5275 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5276
5277         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5278         should be done for at least 1 item, and not stay at the same item.
5279         Fixes part of #374713.
5280
5281 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5282
5283         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5284         directories.  [Fixes bug #393931]
5285
5286 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5287
5288         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5289           Don't fire events until the initial about:blank page has finished
5290           loading. Clean up events.
5291
5292 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5293
5294         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5295           FocusIn() too. This should fix the issue on switching
5296           scim keyboards.
5297
5298 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5299
5300         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5301           number (ideally the input textbox size, but that could be
5302           too messy).
5303
5304 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5305
5306         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5307         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5308
5309 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5310
5311         * TabControl.cs: When invalidating in SelectedIndex and we need to
5312         inflate to take into account the border of the tabs, make sure that
5313         the invalidated rect doesn't overflow the control bounds, since that
5314         would avoid updating at all.
5315
5316 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5317
5318         * TabControl.cs: Don't substract scroller width from the row width,
5319         since we need to take into account the total width of the control when
5320         calculating the position of the tabs. This avoids showing scroller
5321         when it is actually not needed.
5322         Fixes part of #322325.
5323
5324 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5325
5326         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5327
5328 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5329
5330         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5331         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5332
5333 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5334
5335         * DataGridView.cs: Only paint the top left header cell if there
5336         are columns.
5337
5338 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5339
5340         * DataGridView.cs: When binding to a BindingSource, get the underlying
5341         list to bind to.  [Fixes bug #345483]
5342
5343 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5344
5345         * DataGridView.cs: Do not bind to collection properties.
5346         [Fixes bug #337470]
5347
5348 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5349
5350         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5351
5352 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5353
5354         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5355         thumb style.
5356
5357 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5358
5359         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5360
5361 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5362
5363         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5364         background.
5365
5366 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5367
5368         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5369
5370 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5371
5372         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5373         checked styles.
5374
5375 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5376
5377         * TabControl.cs: Extended to handle the hot style.
5378
5379 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5380
5381         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5382         Extended UpDownBase code to handle hot and disabled styles.
5383
5384 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5385
5386         * DataGridView.cs: Handle databinding to generic list type things.
5387         [Fixes bug #325239]
5388
5389 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5390
5391         * DataGridViewCellCollection.cs: Add a method to find the cell
5392         with the given DataPropertyName.
5393         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5394         * DataGridViewColumnCollection.cs: Add a method to clear all
5395         autogenerated columns.
5396         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5397         columns.
5398         [Fixes bug #348082]
5399
5400 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5401
5402         * DataGridView.cs: Don't try to update the RowTemplate with
5403         a null CellTemplate.
5404
5405 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5406
5407         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5408         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5409         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5410         a DataSet.
5411
5412 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5413
5414         * Control.cs: Remove invalidating implicit child controls when
5415         control is invalidated.  It was causing too many redraws on
5416         controls with implicit scrollbars.
5417         * ListView.cs: Listen to the Invalidated event and invalidate
5418         child controls.
5419
5420 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5421
5422         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5423         * HtmlDocument.cs: Check for nulls
5424
5425 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5426
5427         * Control.cs: In ControlCollection.RemoveInternal, remove the
5428         internal control before calling PerformLayout and OnControlRemoved,
5429         which was leaving us in an invalid state and causing a X error (bad
5430         match). Observe that Remove () call has the same order.
5431         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5432
5433 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5434
5435         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5436         being fired if ControlStyles.UserPaint style is activated.
5437         Fixes #371905.
5438
5439 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5440
5441         * GridEntry.cs: Don't be so strict when setting the value - 
5442         do not check if what we set is what we get.
5443         [Fixes bug #389245]
5444
5445 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5446
5447         * XplatUIX11.cs: If there are no timers timeout should be 0
5448         [Fixes bug #363522]
5449
5450 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5451
5452         * Control.cs: As a followup to invalidating implicit children when
5453         a control is invalidated, only invalidate them if they are in the
5454         clip rectangle.
5455
5456 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5457
5458         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5459
5460 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5461
5462         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5463
5464 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5465
5466         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5467         * XplatUIWin32.cs: Made Win32DeleteObject public.
5468
5469 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5470
5471         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5472         PropertyDescriptor.ShouldSerializeValue.
5473         [Fixes bug #391924]
5474
5475 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5476
5477         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5478         in the classic theme.
5479
5480 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5481
5482         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5483         ThumbPressed.
5484         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5485         ScrollBarHasPressedThumbStyle.
5486
5487 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5488
5489         * TextRenderer.cs: Included some methods in the 1.1 profile.
5490
5491 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5492
5493         * Control.cs: When we make a control visible, it may have been
5494         previously visible and while it wasn't visible, the z-order of
5495         things may have been shuffled, so the control needs to have its
5496         z-order updated just in case.  [Fixes bug #391518]
5497
5498 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5499
5500         * ThemeVisualStyles.cs: Added support for GroupBox.
5501
5502 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5503
5504         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5505
5506 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5507
5508         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5509           bug #389996; XSelectInput() behaved as mouse handler robber,
5510           so remove extra call to it.
5511
5512 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5513
5514         * Control.cs: Simplify ControlCollection.Contains method.
5515
5516 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5517
5518         * DataGridViewRow.cs: Implement GetPreferredSize.
5519
5520 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5521
5522         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5523
5524 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5525
5526         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5527         painting and edit control fixes.
5528
5529 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5530
5531         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5532         checks to make sure we are in an actual row/col for top left header cell.
5533         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5534
5535 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5536
5537         * Control.cs: Use long instead of int when handling WParam from
5538         mousewheel scrolling.  Int was overflowing on Win64.
5539
5540 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5541
5542         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5543         flow panel without scrolling first, and then calculate the 
5544         scrolling based on the new layout.  [Fixes bug #390149]
5545
5546 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5547
5548         * ListBox.cs: Invalidate after scrolling up when selected index
5549         changes.  [Fixes bug #390151]
5550
5551 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5552
5553         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5554         set, default height to 150. I tried first with DefaultSize, but this
5555         is not generating a SetBoundsCore call before handle creation time, so
5556         we can take it into account. This is just what .net does.
5557
5558 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5559
5560         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5561         as it broke some stuff.  Calberto is filing a bug for eno to
5562         work with.
5563
5564 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5565
5566         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5567         to 0 is the current value is -1, and if style is not Simple, just
5568         return, like .net does.
5569         Fixes part of #374713.
5570
5571 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5572
5573         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5574         progress bar stuffs, use doubles instead of ints to prevent
5575         overflow.  [Fixes bug #389798]
5576
5577 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5578
5579         * XplatUIX11.cs, X11Keyboard.cs :
5580           Significant refactoring on XIM support. Now IM engine UI
5581           should show up, at mostly-correct preedit position.
5582           - Eliminated use of FocusWindow, as it is never mapped
5583             and hence blocks correct preedit position. XIC is now
5584             created per window, and it must be destroyed too when
5585             the window is destroyed.
5586           - WM_QUIT messages should not be filtered even when hwnd
5587             is zombie. Filtering it could cause endless loop.
5588           - Preedit position must move only when the window is alive.
5589           - Make it IDisposable and make sure to release XIM/XICs.
5590
5591 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5592
5593         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5594           XplatUIX11.cs, XplatUIWin32.cs :
5595           fix for bug #325033 and #387693;
5596           - WM_QUIT should not be sent when no running application
5597             exists.
5598           - SetTimer/KillTimer (especially on win32) should be
5599             invoked for the window that the timer is/will_be attached.
5600           - There could be unattached timers to a window when it's
5601             started. For those timers, hold pending timers and when
5602             a window is mapped, attach them to it.
5603           - WaitForHwndMessage() could run into loop when
5604             WM_SHOWWINDOW is handled before this method is called.
5605             So, strictly check wm_showwindow state.
5606           - Tick handler should not be invoked while one Tick handler
5607             call is still running (introduced Busy state).
5608
5609 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5610
5611         * WebBrowserBase.cs: Override Internal alternative methods for
5612           SetBoundsCore and OnResize instead of the protected ones.
5613         * Control.cs: Move SetBoundsCore and OnResize implementations to
5614           SetBoundsCoreInternal and OnResizeInternal, so they can be
5615           overriden internally (WebBrowserBase needs to catch them but can't
5616           override the protected methods without api compat problems)
5617
5618 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5619
5620         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5621
5622 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5623
5624         * Binding.cs:
5625         * ListView.cs: Remove debug messages.
5626
5627 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5628
5629         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5630         area is empty. Also calculate scrollbars in Simple mode based in area
5631         height and total number of items, not in MaxDropDownItems.
5632         Fixes part of #371991.
5633
5634 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5635
5636         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5637
5638 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5639
5640         * BindingSource.cs: GetListSortDescription is not public.
5641
5642 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5643
5644         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5645
5646 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5647
5648         * HtmlElement.cs: Fix parameter names to match MS.
5649         * HtmlWindowCollection.cs: Should not be sealed.
5650
5651 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5652
5653         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5654         button, because the thumb button will not get drawn if the scrollbar
5655         is disabled.  [Fixes bug #389262]
5656
5657 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * ListBox.cs: Handle End key for multi-column listboxen.
5660         [Fixes bug #389266]
5661
5662 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5663
5664         * ListBox.cs: Fix algorithm to determine which column our item is in.
5665         [Fixes bug #389265]
5666
5667 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5668
5669         * ListBox.cs: Invalidate when the listbox is resized.
5670         [Fixes bug #389256]
5671
5672 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5673
5674         * ListBox.cs: There is always at least one row in the ListBox (if
5675         we are doing these calculations.)  [Fixes bug #389253]
5676
5677 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5678
5679         * ListBox.cs: There is always at least one column in the ListBox.
5680         [Fixes bug #389250]
5681
5682 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5683
5684         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5685         ensure in Simple mode that the height is exactly the requested one.
5686         Also add the ComboBoxListControl to the controls collection in Simple
5687         mode even if handle hasn't been created.
5688         Fixes part of #371991.
5689
5690 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5691
5692         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5693         our ComboBox owner instead of giving it back to the previous control (
5694         as done in other controls). Also remove the empty override of Select
5695         method, since we want to be selected *and* give focus to our owner.
5696         This should let the user do keys-navigation in Simple mode. 
5697
5698 2008-05-10  Geoff Norton  <gnorton@novell.com>
5699
5700         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5701         problems with rapid scrolling of treeviews. Fixes #381084
5702
5703 2008-05-10  Geoff Norton  <gnorton@novell.com>
5704
5705         * XplatUICarbon.cs: Deactivate the active window before
5706         activating the desired window.  Completes fixing #386504
5707
5708 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5709
5710         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5711         SmallChange to the item size width plus the padding, to match .net.
5712
5713 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5714
5715         * FileDialog.cs: Apply the custom filter typed by the user in the file
5716         name combobox as much as possible while navigating in the file dialog.
5717         Fixes #385261.
5718
5719 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5720
5721         * Binding.cs: Actually use NullValue if the retrieved value of
5722         data source is null or DBNull. Makes a test pass.
5723
5724 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5725
5726         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5727         * MimeIcon.cs: Provide a way to get icons from resources.
5728
5729 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5730
5731         * Binding.cs: When the value retrieved from the control to be assigned
5732         to the data source is null, actually use the 2.0 DataSourceNullValue
5733         value. Make pass a data binding test.
5734
5735 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5736
5737         * Control.cs: We need to invalidate implicit children even when
5738         invalidate is called with invalidatechildren = false.  (Implicit
5739         children are really part of the parent.)
5740         * ListView.cs: Double-buffer internal child controls for less
5741         flicker.
5742         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5743         owner ListView subitems for greatly increased performance.
5744         [Fixes bug #388477]
5745
5746 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5747
5748         * FileDialog.cs: When the user types a wildcard character in the
5749         filename combobox, update the contents of the folder using the text as
5750         a filter.
5751         Fixes part of #385261.
5752
5753 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5754
5755         * ListBox.cs: Various fixes for MultiColumn listboxen.
5756         [Fixes bug #388114]
5757
5758 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5759
5760         * HtmlElement.cs: Implement Style property
5761
5762 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5763
5764         * ListBox.cs: Respect checkboxes when measuring item size.
5765         * ThemeWin32Classis.cs: When drawing list items, don't draw
5766         text outside of the item's bounds to prevent overlapping.
5767         (.Net actually overlaps, but that's just silly.)
5768         [Fixes bug #388117]
5769
5770 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5771
5772         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5773         Gert Driesen. Fixes bug #324830. 
5774
5775 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5776
5777         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5778         method implemented.
5779
5780 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5781
5782         * BindingSource.cs: When calling IsSynchronized, return the value of
5783         the related IList list.
5784
5785 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5786
5787         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5788         make a test pass.
5789
5790 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5793         navigation to scroll the grid if the current cell is not visible.
5794
5795 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5796
5797         * HtmlElement.cs: Implement TabIndex
5798
5799 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5800
5801         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5802         properties, even when there are no items.
5803         [Fixes bug #387611]
5804
5805 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5806
5807         * NativeWindow.cs: Add support for multiple handles per window.
5808         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5809         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5810         directly - use FromHandle instead.
5811         [Fixes bug #374660]
5812
5813 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5814
5815         * HtmlElement.cs: Implement InnerHTML setter
5816
5817 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5818
5819         * HtmlDocument.cs: Implement Focused
5820
5821 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5822
5823         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5824         methods, as well as add messages to the exceptions.
5825
5826 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5827
5828         * BindingSource.cs: Setting DataSource should only reset DataMember if
5829         the previous value was null (make pass a not working test).
5830
5831 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5832
5833         * BindingSource.cs: When EndInit call is postponed and is called until
5834         DataSource.EndInit is called, remove the handler for data source.
5835
5836 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5837
5838         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5839
5840 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5841
5842         * ToolStripManager.cs: Store references to toolstrips as
5843         weak references so they do not prevent forms from getting collected.
5844         [Fixes bug #386483]
5845
5846 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5847
5848         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5849         on .Net.  So do the same thing in WndProc.
5850
5851 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5852
5853         * TrackBar.cs: Commit patch from Andy Hume that corrects
5854         the clickable areas to better match .Net.
5855         [Fixes bug #387074]
5856
5857 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5858
5859         * TrackBar.cs: Commit patch from Andy Hume that adds the
5860         ResizeRedraw control flag so the track bar repaints itself
5861         when it is resized.  [Fixes bug #387072]
5862
5863 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5864
5865         * TrackBar.cs: Commit patch from Andy Hume that adds better
5866         support for keyboard navigation when the TrackBar is vertical.
5867         [Fixes bug #387071]
5868
5869 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5870
5871         * BindingSource.cs: Implement ISupportInitializeNotification support.
5872
5873 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5874
5875         * ThemeVisualStyles.cs: Added support for ToolBar.
5876
5877 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5878
5879         * ToolBar.cs: Made the Vertical property internal.
5880
5881 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5882
5883         * ThemeVisualStyles.cs: Added support for TrackBar.
5884
5885 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5886
5887         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5888         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5889         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5890         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5891         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5892         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5893
5894 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5895
5896         * ThemeVisualStyles.cs: Added support for UpDownBase.
5897
5898 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5899
5900         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5901         Extracted Theme.UpDownBaseDrawButton.
5902
5903 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5904
5905         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5906         removed from the static toolstrips collection in ToolStripManager
5907         when they are disposed.  Provides a workaround for bug #386483.
5908
5909 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5910
5911         * GridEntry.cs: Read-only properties with Editor with 
5912         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5913         [Fixes bug #384184]
5914
5915 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5916
5917         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5918         the menu key and there are no items on the menu.
5919         [Fixes bug #386644]
5920
5921 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5922
5923         * Control.cs: Avoid calling ToString on a string.
5924         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5925         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5926         exception. Avoid calling ToString on a string.
5927         * ProgressBar.cs: Avoid calling ToString on a string. 
5928         * ScrollBar.cs: Avoid calling ToString on a string. 
5929         [All issues were found using Gendarme]
5930
5931 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5932
5933         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5934         events. Fixes remaining issues of bug #324832.
5935
5936 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5937
5938         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5939         to mimic win32 behavior. Partially fixes bug #324832.
5940
5941 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5942
5943         * BindingSource.cs: Implement Find methods.
5944
5945 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5946
5947         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5948         RemoveSort methods.
5949
5950 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5951
5952         * ListBindingHelper.cs: When calling GetListItemProperties and the
5953         passed object is ITypedList, return the result of
5954         ITypedList.GetItemProperties instead.
5955
5956 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5957
5958         * LinkLabel.cs: Set default value of name on constructor of Link class
5959         only for 2.0 profile.
5960
5961 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5962
5963         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5964         Fixes remaining issues of bug #346154.
5965
5966 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5967
5968         * LinkLabel.cs: Set a default value for name on internal contructor of
5969         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5970
5971 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5972
5973         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5974         and refer all instances to owner.links. Partially fixes #346154.
5975
5976 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5977
5978         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5979         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5980         the LinkLabel test 'TestLinkArea'.
5981
5982 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5983
5984         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5985         [Fixes #386460]
5986
5987 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5988
5989         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5990         [Fixes #386463]
5991
5992 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5993
5994         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5995         [Fixed bug #357004]
5996
5997 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5998
5999         * MenuAPI.cs: Remove unused ProcessCmdKey method.
6000
6001 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6002
6003         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
6004         [Fixes bug #375398]
6005
6006 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6007
6008         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
6009         of bug #367492.
6010
6011 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
6012
6013         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
6014         sometimes we open a conext menu on mouse down of some controls and the mouse
6015         up is dispatched to menu and dont need to. It fix remaining issues of 
6016         #363711 and other problems related to menu mouse click events.
6017
6018 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6019
6020         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
6021         some var names to better fit changes, now we have month_menu and today_menu
6022         vars. Fixes bug #363711.
6023
6024 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6025
6026         * MonthCalendar.cs: Handle every right mouse click to open context menu,
6027         right now the default month menu but it will be change to have "Go to today"
6028         menu.
6029
6030 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6031
6032         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
6033
6034 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
6035
6036         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
6037
6038 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6039
6040         * ThemeVisualStyles.cs: Added support for TreeView.
6041
6042 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6043
6044         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
6045         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
6046
6047 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6048
6049         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
6050
6051 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6052
6053         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
6054         Implement 2.0 SP1 stuffs.
6055
6056 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6057
6058         * FileDialog.cs: Implement 2.0 SP1 stuffs.
6059
6060 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6061
6062         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
6063         Implement CanEnableIme property. (2.0 SP1)
6064
6065 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6066
6067         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
6068         from the 2.0 API.
6069
6070 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6071
6072         * Control.cs: Provide an internal way for a control to override
6073         the setting of Height.
6074         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
6075         set height using new method.
6076
6077 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6078
6079         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
6080
6081 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6082
6083         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
6084         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
6085
6086 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6087
6088         * ThemeVisualStyles.cs: Added support for StatusBar.
6089
6090 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6091
6092         * DataObject.cs: Add the other IDataObject interface.
6093
6094 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
6095
6096         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
6097         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
6098
6099 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6100
6101         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6102         * ListView.cs: Hide non-public API.
6103         * MaskedTextBox.cs: Remove extra attribute.
6104
6105 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6106
6107         * DataGridViewImageCell.cs: Use formatted value instead of value
6108         to calculate preferred size.
6109
6110 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6111
6112         * ListBox.cs: Move some initialization around so that selected_indices
6113         is not accessed before it is created.
6114
6115 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6116
6117         * InputLanguageCollection.cs: Implement the collection better.
6118         [Fixes bug #385506]
6119
6120 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6121
6122         * ToolStripDropDownItem.cs: Get the correct event object for
6123         DropDownItemClicked.
6124         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6125         [Fixes bug #385475]
6126
6127 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6128
6129         * DataGridViewRowCollection.cs: We don't currently support shared 
6130         rows.  Should fix test failures caused by previous commit.
6131
6132 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6133
6134         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6135         datagridview gets set.  Only paint cells in visible columns.
6136         * DataGridViewCell.cs: Draw border after cell content.
6137         * DataGridView.cs: Invalidate after setting some properties.  Only
6138         use visible columns.  Fit hit test bug with areas in the col/row header
6139         area but not in a row or col.  Implement UpdateCell/Row methods.
6140
6141 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6142
6143         * DataGridViewElement.cs: Don't throw NIEX.
6144         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6145         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6146         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6147         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6148         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6149         if the user filled in the formatting Value, use it.
6150
6151 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6152
6153         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6154         to a string.
6155
6156 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6157
6158         * BindingSource.cs: Some corrections to Filter property, as well as
6159         setting it for our list when resetting it.
6160
6161 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6162
6163         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6164         than the maximum.  Fixes reopened bug #384182.
6165
6166 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6167
6168         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6169         Fixes remaining issues of #367490.
6170
6171 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6172
6173         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6174         SystemInformation.WorkingArea to get max_screen value.
6175
6176 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6177
6178         * BindingSource.cs: Implement Filter and RemoveFilter.
6179
6180 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6181
6182         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6183
6184 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6185
6186         * X11Dnd.cs: When trying to convert data and we know we started the
6187         dnd loop, don't try to use the cached data if the loop is not running,
6188         which means that the data has been resetted.
6189         Fixes #378191.
6190
6191 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6192
6193         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6194         win32 behavior.
6195
6196 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6197
6198         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6199         it to drawn off screen edge. Fixes bug #367490.
6200
6201 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6202
6203         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6204         menu position to have only one assignment of Location var.
6205
6206 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6207
6208         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6209         for this patch. Fixes bug #384115.
6210
6211 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6214         the same.  If LargeChange is zero, set a minimum size for the scroll
6215         thumb grip.  [Fixes bug #384182]
6216
6217 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6218
6219         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6220         [Fixes bug #384181]
6221
6222 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6223
6224         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6225
6226 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6227
6228         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6229         patch from Ernesto).
6230
6231 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6232
6233         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6234
6235 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6236
6237         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6238
6239 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6240
6241         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6242
6243 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6244
6245         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6246
6247 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6248
6249         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6250
6251 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6252
6253         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6254           supposed to return a reference to an mshtml interface, which we
6255           don't support).
6256         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6257           reference to an mshtml interface, which we don't support). Code
6258           formatting cleanup.
6259         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6260           DomDocument getter (it's supposed to return a reference to an
6261           mshtml interface, which we don't support). Code formatting cleanup.
6262
6263 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6264
6265         * ListView.cs: Ouch, forgot to commit.
6266
6267 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6268
6269         * ListView.cs: 
6270         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6271
6272 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6273
6274         * ListView.cs: When calculating box selection for virtual mode, don't
6275         look for intersection with item's text, but item bounds, since that
6276         would mean read ListViewItem's text for _every_ item, and that's
6277         something we just can't do in virtual mode (items are only requested
6278         when drawn).
6279
6280 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6281
6282         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6283         partial support for managed windows (based on the patch from Ernesto).
6284
6285 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6286
6287         * ListView.cs: When doing a key search use FindItemWithText method
6288         instead of doing the search by ourselves, this way we avoid
6289         duplicating the code and also we handle the special case for virtual
6290         mode. To achieve that make our private overload of FindItemWithText
6291         internal and also have a 'roundtrip' parameter.
6292
6293 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6294
6295         * ListView.cs: When doing the layout don't request the
6296         ListViewItem instance if we are in virtual mode (since we can't request it
6297         until the item is actully drawn).
6298
6299 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6300
6301         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6302         from Ernesto).
6303
6304 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6305
6306         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6307         the patch from Ernesto).
6308
6309 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6310
6311         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6312         * ThemeVisualStyles.cs: Added.
6313
6314 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6315
6316         * IDeviceContext.cs: Added a missing using.
6317
6318 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6319
6320         * ButtonBase.cs: Made IsDefault protected internal.
6321         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6322
6323 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6324
6325         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6326         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6327         RadioButtonRenderer.cs: Included in the 1.1 profile.
6328         * IDeviceContext.cs: Added.
6329         * TextRenderer.cs: Included a member in the 1.1 profile.
6330
6331 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6332
6333         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6334
6335 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6336
6337         * ErrorProvider.cs: Make the error icons come after the control
6338         they refer to.  It isn't the way the MS does it, but its better
6339         than what we were doing.  See bug #368587.
6340
6341 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6342
6343         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6344         from Eric Albright that lazy loads the input language as ensures
6345         everything gets properly initialized.  Fixes bug #373871.
6346
6347 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6348
6349         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6350         implicit mnemonics.  [Fixes bug #383000]
6351
6352 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6353
6354         * X11Dnd.cs: When canceling the operation, automatically restore the
6355         default cursor - normally the default cursor is restored when the
6356         mouse buttons are released, but we should be able to restore it even
6357         if the buttons are still pressed (for example, when pressing ESC to
6358         cancel).
6359         Fixes #381894.
6360
6361 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6362
6363         * X11Dnd.cs: When starting a new drad and drop operation, set control
6364         field to null, just as the other fields, to avoid calling any
6365         operation on a previous control. Also, when calling DndLeave on a
6366         control, set it to null, thus we don't fire that event multiple times
6367         for that control.
6368         Fixes #209264.
6369
6370 2008-04-23  Geoff Norton  <gnorton@novell.com>
6371
6372         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6373         the whole_window object.  Fixes #377084.
6374
6375 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6376
6377         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6378           embedded browser)
6379
6380 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6381
6382         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6383
6384 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6385
6386         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6387           invocation
6388
6389 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6390
6391         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6392           attaching/detaching
6393
6394 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6395
6396         * X11Dnd.cs: When the drop was cancelled, or could just not be
6397         performed, return DragDropEffect.None always (match .net).
6398
6399 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6400
6401         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6402
6403 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6404
6405         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6406
6407 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6408
6409         * DataGridView.cs: Add support for error icon tool tips.
6410         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6411         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6412
6413 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6414
6415         * X11Structs.cs: Add mouse button masks enum.
6416         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6417         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6418         form resize/move operation instead of for each step of it.
6419         [Fixes bug #346529 for the x11 backend]
6420
6421 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6422
6423         * DataGridView*: Implement support for drawing error icons.
6424
6425 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6426
6427         * TreeView.cs: Make vbar and hbar internal.
6428         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6429         scrollbars, invalidate the whole thing.
6430         [Fixes bug #382001]
6431
6432 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6433
6434         * TreeView.cs: Calling Sort() sets Sorted = true.
6435         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6436         if the nodes need to be sorted.
6437         [Fixes bug #382028]
6438
6439 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6440
6441         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6442         restored.
6443         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6444         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6445
6446 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6447
6448         * ComboBox.cs: If the combobox is disabled, draw a disabled
6449         background before painting anything else.
6450         [Fixes bug #381729]
6451
6452 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6453
6454         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6455         forget to send a Leave event to the target window - just as .net does
6456         when cancelling dnd operations.
6457
6458 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6459
6460         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6461         soon as possible - this happens when we send the drop message to the
6462         target window. This way we avoid firing any DragOver _after_ drop finished.
6463         Fixes #378179.
6464
6465 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6466
6467         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6468         * Form.cs: Handle form minimization as a special state, where size doesn't 
6469         change, but we have to fire SizeChanged.
6470         [Fixes bug #325122 for the win32 and x11 backends]
6471
6472 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6473
6474         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6475         if the handle is disabled.
6476         [Fixes bug #371751]
6477
6478 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6479
6480         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6481         for forms with FormBorderStyle.None.
6482         [Fixes bug #349571]
6483
6484 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6485
6486         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6487         WM_EXITSIZEMOVE.
6488         [Fixes bug #346529 for the X11 backend]
6489
6490 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6491
6492         * XplatUIX11.cs: 
6493           - Send a mouse Enter message after say dragging the mouse with a 
6494           button down and then release it in another client.
6495           - Reset the cursor to prevent X11 from remembering it and setting it 
6496           before the control gets WM_SETCURSOR.
6497           - Qeueue a mouse move after a mouse enter like win32.
6498           [Fixes bug #323234]
6499
6500 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6501
6502         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6503         It's sent when the form gets moved, resized, closed.
6504         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6505         [Fixes bug #359193 for X11]
6506
6507 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6508
6509         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6510         the build.
6511
6512 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6513
6514         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6515         group. Fixes the 1.1 build.
6516
6517 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6518
6519         * ListView.cs: Use display indexes for selection in Details view, as
6520         well as do the proper layout based on display indexes for that view
6521         too.
6522
6523 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6524
6525         * ListView.cs: Focused item information is now stored as a display
6526         index, and display indexes are used all over the place for selection,
6527         instead of ListViewItem.Index values, which doesn't give us enough
6528         information to modify the selection in groups mode, and was broken.
6529
6530 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6531
6532         * Control.cs: Do not fire MouseDown if validation of the control has 
6533         failed.
6534         * Form.cs: Validate the form before closing.
6535         [Fixes bugs #330501 and #353310]
6536
6537 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6538
6539         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6540           CreateWebBrowserSiteBase implementations
6541         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6542           Style and TabIndex setters
6543
6544 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6545
6546         * ListViewGroup.cs: When returning the actual item count, return the
6547         proper count for default group.
6548         Fix the tests.
6549
6550 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6551
6552         * ListView.cs:
6553         * ListViewGroup.cs: When calculating groups layout, get the actual
6554         number of items per group, since groups added to the group BUT not
6555         added to the ListView are just ignored, and can cause some nasty
6556         exceptions because of the lack of synchronization. Also for
6557         ListViewGroup don't use lazy initialization for items, since we 
6558         the common scenario is to use it always - and it helps us to  refactor
6559         and clean the .ctor overloads.
6560
6561 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6562
6563         * ListView.cs: When adding an item to a ListViewItemCollection
6564         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6565         the added item hasn't beeen previously added to the ListView instance
6566         refered by the group, since it will be ignored. This should avoid some 
6567         really nasty flickering.
6568
6569 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6570
6571         * ListView.cs: When accessing an item in a specific display
6572         position, use the helper method GetItemAtDisplayIndex, instead of
6573         direct access to the reordered_items_indices array. When doing layout
6574         for groups set the correct Items index for the display position (since
6575         in groups mode items don't have the same position as in Items
6576         collection).
6577         * ListViewGroup.cs: Add a field to store the starting item number,
6578         which is later used when calculating the layout.
6579
6580         Fixes #360805.
6581
6582 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6583
6584         * Application.cs: Fixed ProductVersion to fallback to the assembly
6585         version. Fixes regression for bug #325413.
6586
6587 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6588
6589         * ListView.cs: New helper method to retrieve an item in a _specific
6590         display_ position (the items can be displayed in a different order
6591         than one of Items collection).
6592         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6593         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6594         specific display position (again remember that items can be sorted
6595         different than Items).
6596
6597 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6598
6599         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6600         list and update it when the collection changes.  We were recreating
6601         this several times per row paint and for every pixel the mouse moved
6602         across the grid.
6603         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6604         changes.
6605
6606 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6607
6608         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6609         list to use generics.
6610         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6611         and remove unneccessay casts.
6612
6613 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6614
6615         * DataGridViewBand.cs: Add internal way to set displayed variable.
6616         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6617         * DataGridView.cs: Make sure we always keep track of Displayed
6618         rows and columns, and only draw things that are displayed.
6619
6620 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6621
6622         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6623           whether the key events are filtered or not. Introduced
6624           PreFilter() process for this purpose. This fixes atokx3/iiimx
6625           shift state issue.
6626
6627 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6628
6629         * HtmlHistory.cs: Implement Length property
6630
6631 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6632
6633         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6634         away the edit textbox.  Refactor to reuse column sort code.
6635
6636 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6637
6638         * MenuAPI.cs: Remove the code that save and restore capture status of 
6639         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6640         cause some others, I cant figure the possible problems of this patch but
6641         right now remove the code looks to be better than keep it. This patch fixes
6642         bugs #357638, #378721 and #379570.
6643
6644 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6645
6646         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6647         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6648         add missing properties and event handlers.
6649         
6650 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6651
6652         * ListBox.cs: Make sure the LargeChange we are setting is at least
6653         zero, to prevent an IOORE.  [Fixes bug #379531]
6654
6655 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6656
6657         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6658         in DropDownList mode, for each key-press select the next item 
6659         starting with that letter.
6660         For other modes, when no item selected, on arrow-up/-down and open 
6661         drop-down select the first item matching the text in the textbox.
6662
6663 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6664
6665         * X11Keyboard.cs : Control.FromHandle() could return null
6666           in MoveCurrentCaretPos().
6667
6668 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6669
6670         * ListView.cs: When changing the size in VirtualMode, also Reset the
6671         selection.
6672         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6673         changing selection info for VirtualMode.
6674         Fixes #372618.
6675
6676 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6677
6678         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6679         view, don't use LineLimit for the first item - use NoWrap *always*
6680         instead, since ListView.LabelWrap is not used for this view.
6681         Fixes #378054.
6682
6683 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6684
6685         * Binding.cs: Call UpdateIsBinding when setting control - probably
6686         Binding is already usable and we don't need to wait to check the
6687         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6688         Created, just like 2.0 does.
6689         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6690
6691 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6692
6693         * Binding.cs: Just realized we don't need to have a handler for
6694         BindingContextChanged, since this info should be now consumed directly
6695         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6696         state info is checked directly, instead of caching it.
6697
6698         * CurrencyManager.cs: IsSuspended should return always false if Count
6699         == 0.
6700
6701 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6702
6703         * Binding.cs: When calling PushData, return if manager.Count == 0,
6704         since we just don't have data to be read. Also, when setting the
6705         Control for binding, hook up some events to refresh the IsBinding
6706         state when BindingContext change or control gets created; use
6707         Control.IsHandleCreated instead of Control.Created check to set
6708         IsBinding state - we *actually* need to modify IsBinding when control
6709         is created, but we don't have any Created event, only HandleCreated.
6710         Fixes part of #349364.
6711
6712 2008-04-11  Geoff Norton  <gnorton@novell.com>
6713
6714         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6715         warping a null Caret.
6716
6717 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * DataGridView.cs: Implement row/column autosizing methods. Implement
6720         autosorting.
6721         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6722         * DataGridViewRowCollection.cs: Add an internal sorting method.
6723
6724 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6725
6726         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6727         value in ListView drawing code.
6728
6729 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6730
6731         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6732         is clicked.  Respect the user setting Cancel in FileOk.
6733
6734 2008-04-11  Geoff Norton  <gnorton@novell.com>
6735
6736         * ListView.cs: Avoid setting and resetting control Width/Heights and
6737         calculate the final value and set it once.  Prevents a feedback loop
6738         on the mac.
6739
6740 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6741
6742         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6743         [Fixes bug #378869]
6744
6745 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6746
6747         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6748           Add some on-the-spot code, but it seems we don't need it.
6749
6750 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6751
6752         * Form.cs: Add method for DataGridView to trigger focus cues
6753         even when it handles the tab keypress.
6754
6755 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6756
6757         * DataGridView.cs: More keyboard handling, tab, esc.
6758         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6759         when at the beginning or end of the text in the text box.
6760
6761 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6762
6763         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6764
6765 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6766
6767         * DataGridView.cs: Some fixups for showing and adding the edit control.
6768         * DataGridViewButtonColumn.cs: Implement ToString.
6769         * DataGridViewCell.cs: Size and position the control simultaneously.
6770         * DataGridViewTextBoxCell.cs: Use base to position control.
6771
6772 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6773
6774         * DataGridViewCell.cs: Fix up some formatting and painting code.
6775         * DataGridViewImageCell.cs: Implement some NIEX methods.
6776
6777 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6778
6779         * ToolStripItemCollection.cs: What moving an item from one owner
6780         to another, remove from source owner before adding to destination.
6781         [Fixes bug #378109]
6782
6783 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6784
6785         * PictureBox.cs: Call Load when ImageLocation is set.
6786         [Fixes bug #378308]
6787
6788 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6789
6790         * X11Keyboard.cs, XplatUIX11.cs :
6791           Implement over-the-spot mode (with some odd offsets).
6792           - set preedit position when caret is set.
6793           - Wrap XMoveResizeWindow() to move preedit position.
6794
6795 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6796
6797         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6798         array lenght.
6799
6800 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6801
6802         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6803         and ScanTableIndex public, it fix compilations errors when compiling
6804         WinForms to generate keyboard layout resources.
6805
6806 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6807
6808         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6809         different element count than scan table. It prevents some errors in non
6810         standard keyboards.
6811
6812 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6813
6814         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6815
6816 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6817
6818         * DataGridView.cs: Call OnContentClick.
6819         * DataGridViewCell.cs: Do a null check on ValueType instead
6820         of valueType.
6821         * DataGridViewCheckBoxCell.cs: Implement.
6822
6823 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6824
6825         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6826
6827 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6828
6829         * X11Keyboard.cs : Check XGetIMValues() return value in
6830           case it does not return input styles in some environment.
6831
6832 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6833
6834         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6835
6836 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6837
6838         * BindingContext.cs: Stub UpdateBinding method.
6839
6840 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6841
6842         * X11Structs.cs : added couple of structs for XIM support.
6843         * X11Keyboard.cs :
6844           Release XIM in case it failed to create XIC. 
6845           Use consts for XNblah string.
6846           Add support for IM style customization and XIC creation
6847           for preedit-position and preedit-callback.
6848           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6849           (list of: over-the-spot | on-the-spot | root). Only root
6850           mode works so far.
6851
6852           (redoing r99172 with fix.)
6853
6854 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6855
6856         * TreeView.cs: Center the checkbox a little better.
6857
6858 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6859
6860         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6861         Apply very nice patch from Ernesto Carrea that simplifies our
6862         scrollbar drawing.  [From bug #376146]
6863
6864 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6865
6866         * TreeView.cs: Correct the location of the root node checkbox when
6867         ShowRootLines = false.  Don't draw the root lines for the root node
6868         when ShowRootLines = false.  [Fixes bug #377535]
6869
6870 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6871
6872         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6873         Fixed line endings.
6874         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6875         line endings.
6876         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6877         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6878         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6879         * ImeMode.cs: Added missing field.
6880         * HtmlWindow.cs: Code formatting. Fixed line endings.
6881         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6882         warnings.
6883         * HtmlHistory.cs: Code formatting. Fixed line endings.
6884         * HtmlDocument.cs: Code formatting. Fixed line endings.
6885         * ToolStripPanel.cs: Added missing IList implementation.
6886         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6887
6888 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6889
6890         * BindingContext.cs: Changed argument names to fix corcompare errors.
6891         * DataGridView.cs: Removed extra explicit interface implementation
6892         of IDropTarget. Code formatting.
6893         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6894         * ComboBox.cs: Changed argument names to fix corcompare errors.
6895         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6896         errors.
6897         * GridColumnStylesCollection.cs: Changed argument names to fix
6898         corcompare errors. Removed extra tabs.
6899         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6900         errors.
6901         * Control.cs: Changed argument names to fix corcompare errors. Code
6902         formatting. Removed extra explicit IList implementation.
6903         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6904         formatting. Use string.Empty instead of "".
6905         * GridItemCollection.cs: Changed argument names to fix corcompare
6906         errors. Code formatting.
6907         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6908         corcompare errors. Code formatting.
6909         * ImageList.cs: Changed argument names to fix corcompare errors.
6910         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6911         * DataGridViewRowCollection.cs: Changed argument names to fix
6912         corcompare errors. Code formatting.
6913         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6914         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6915         fix corcompare errors. Code formatting.
6916         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6917         corcompare errors. Code formatting.
6918         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6919         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6920         formatting.
6921         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6922         Code formatting.
6923         * BindingSource.cs: Changed argument names to fix corcompare errors.
6924         Removed extra explicit interface implementations.
6925         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6926         fix corcompare errors. Code formatting.
6927         * ToolStripItemCollection.cs: Removed extra explicit interface
6928         implementation of IList.ReadOnly.
6929         * DataGridViewColumnCollection.cs: Changed argument names to fix
6930         corcompare errors. Code formatting.
6931         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6932         * ListView.cs:  Changed argument names to fix corcompare errors.
6933         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6934         errors.
6935         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6936         errors.
6937         * ListBindingHelper.cs: Changed argument names to fix corcompare
6938         errors.
6939         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6940         fix corcompare errors. Code formatting.
6941         * ToolStripPanel.cs: Removed extra explicit implementation of
6942         IDropTarget interface.
6943         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6944         formatting. Removed extra tabs and spaces.
6945         * DataGridViewCellCollection.cs: Changed argument names to fix
6946         corcompare errors.
6947         * Help.cs: Changed argument names to fix corcompare errors. Code
6948         formatting.
6949         * TabControl.cs: Changed argument names to fix corcompare errors.
6950         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6951         errors.
6952         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6953         errors.
6954
6955 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6956
6957         * ListBindingHelper.cs: When returning properties, only return those
6958         that are browsable. Also, don't do a linear search of the properties,
6959         but use the indexer of the PropertyDescriptorCollection class.
6960
6961 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6962
6963         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6964         Dictionary containing the related (child) currency managers. Also,
6965         when setting DataSource, add datasource to our List if it is not a list.
6966
6967 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6968
6969         * PropertyGridTextBox.cs: Fix background color of the buttons.
6970         * PropertyGridView.cs: Make the entry less jumpy.
6971
6972 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6973
6974         * PropertyGrid.cs: Fix unused variable warnings.
6975
6976 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6977
6978         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6979         double-click. It expanded it once in the mouse down and then 
6980         again in the double-click handler.
6981
6982 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6983         
6984         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6985         TypeConverter and UITypeEditors.
6986
6987 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6988
6989         * Control.cs: Visibility should be set synchronously, 
6990         so we must also redraw once it is and not rely on layouting or 
6991         other code to repaint.
6992         [Fixes bug #339898]
6993
6994 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6995
6996         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6997
6998 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6999
7000         * Control.cs: Invalidate when the alpha channel is less than 255,
7001         not only when control is transparent.
7002
7003 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7004
7005         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
7006         Implement some painting convenience methods that threw NIEX.
7007
7008 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
7009
7010         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
7011         * DataGridViewLinkCell.cs: Implement.
7012
7013 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7014
7015         * GridEntry.cs: Report the conversion exception error description.
7016         [Fixes bug #375792]
7017
7018 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
7019
7020         * PropertyGridView.cs: Do not scroll to item on resize.
7021         [Fixes bug #375789]
7022
7023 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7024
7025         * BindingContext.cs: When retrieving a BindingManagerBase, if the
7026         dataSource parameter is ICurrencyManagerProvider, then return
7027         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
7028         instead of creating a new one.
7029
7030 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7031
7032         * BindingSource.cs: Implement support for Type instances as
7033         DataSource.
7034
7035 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7036
7037         * DataGridView.cs: Minor cleanups and call CellMouseUp.
7038         * DataGridViewCell.cs: Make some painting routines internally virtual.
7039         * DataGridViewButtonCell.cs: Implement.
7040
7041 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
7042
7043         * Control.cs: We always need to invalidate our children with
7044         transparent backgrounds when we are invalidated.
7045         [Fixes bug #376081]
7046
7047 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7048
7049         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
7050         and CancelCurrentEdit on CurrencyManager respectively. Implement
7051         support for ICancelAddNew too.
7052
7053 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7054
7055         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
7056         call EndNew/CancelNew if list is ICancelAddNew.
7057
7058 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7059
7060         * DataGridView.cs: Guard against an exception while painting
7061         if there are no rows.
7062
7063 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
7064
7065         * DataGridView.cs: Implement a bunch of keyboard commands.
7066
7067 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
7068
7069         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
7070         isn't set, don't call OnPaint.  [Fixes bug #375300]
7071
7072 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7073
7074         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
7075         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
7076         hookup the remaining events related to CurrencyManager, and fire
7077         OnListChanged also for the Clear () method.
7078
7079 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7080
7081         * BindingSource.cs: Use Current and Position implementations in
7082         CurrencyManager instead of using our own routines, since we need 
7083         to be in synch with it. Count should NEVER return a -1 value, and 
7084         also report ListChanged events for both simple IList data 
7085         sources (manually) as well for IBindingList ones (by hooking up an
7086         event handler for it).
7087
7088 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7089
7090         * BindingSource.cs: Make one .ctor call the another, to avoid
7091         duplicate code. Add the CurrencyManager property, and also for AddNew
7092         throw the proper exceptions and show better error messages.
7093
7094 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7095
7096         * ComboBox.cs: Only adjust selectedindex if Handle has been
7097         created.  Fixes failing test.
7098
7099 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7100
7101         * ComboBox.cs: Adjust selectedindex if we insert a new item
7102         above the current selectedindex in a sorted ComboBox.
7103         [Fixes bug #374654]
7104
7105 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7106
7107         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7108         [Fixes bug #374712]
7109
7110 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7111
7112         * DataGridViewTextBoxCell.cs: Implement stuffs.
7113
7114 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7115
7116         * TreeView.cs: Create the scrollbars even earlier to be
7117         double dog certain they are created before they are accessed.
7118
7119 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7120
7121         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7122
7123 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7124
7125         * ScrollBar.cs: Create an internal safe Value setter so we
7126         won't crash if we try to set a value outside the min and max.
7127         * TextBoxBase.cs: Use safe value setter to guard against a
7128         potential NRE that is being reported by Reflector.
7129
7130 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7131
7132         * TreeView.cs: Create the scrollbars earlier in the constructor
7133         to attempt to guard against an NRE in SetTop in Reflector.
7134
7135 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7136
7137         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7138         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7139         show messagebox on data format error, use column display index
7140         correctly, make sure HitTest supports new layout stuff,
7141         make sure scrollbars support new layout stuff.
7142
7143 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7144
7145         * XplatUIX11.cs : Patch by Doug Rintoul.
7146           For some IM engines, keypress events need to delay call
7147           to XPending() and XNextEvent() in the loop so that it
7148           does not mess the orders in XIM commit callback.
7149           Some KeyRelease events such as shift keys need to be
7150           processed both in the IM engine and winforms driver
7151           itself since winforms holds its own state check.
7152
7153           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7154
7155 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7156
7157         * X11Keyboard.cs, XplatUIX11.cs :
7158           add primitive support for XIM input support (preedit-
7159           nothing and status-nothing). It requires precise event
7160           capturing (XSelectInput/"filterEvents") and different
7161           call to XFilterEvent against root window.
7162           Get composed string and send dummy WM_IME_COMPOSITION.
7163           Free XIM and XIC instances in finalizer.
7164
7165           (This first patch does not include suggested changes
7166            by Doug Rintoul. It will follow.)
7167
7168 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7169
7170         * DataGridView.cs: When binding to a property, if the property
7171         doesn't have a setter, set the column to readonly.
7172         [Fixes bug #343965]
7173
7174 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7175
7176         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7177         we aren't dropped down.  Support Home/End in DropDownList mode.
7178         [Fixes bug #371990]
7179
7180 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7181
7182         * TreeNodeCollection.cs: Don't increment count until we've
7183         saved our index to return.
7184         [Fixes bug #373603]
7185
7186 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7187
7188         * Label.cs: Add padding to the label's AutoSize calculation.
7189         [Fixes bug #373792]
7190
7191 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7192
7193         * ListBindingHelper.cs: Actually implement GetListName method.
7194
7195 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7196
7197         * BindingSource.cs: Throw the propert expceptions for some methods, as
7198         well as detect the list item type for Add method if DataSource is null.
7199
7200 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7201
7202         * DataGridViewCell.cs: I don't know why I commented this out,
7203         putting it back for now.
7204
7205 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7206
7207         * DataGridViewCell.cs: Remove storage for owning column, just
7208         use column index.
7209         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7210         * DataGridViewColumnHeaderCell.cs: If the header text has been
7211         explicitly set, return it.
7212         [Fixes bug #325979]
7213
7214 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7215
7216         * DataGridViewRowCollection.cs: Disable row sharing when
7217         using data binding.  Its a great feature, but lets work on
7218         getting DGV usable first before we worry about optimizations.
7219
7220 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221
7222         * BindingSource.cs: When resetting our internal list, compute list
7223         item type information to be used for indirect list access. Also
7224         implement/tune some properties and methods related to the list access
7225         too.
7226         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7227         BindingSource.
7228
7229 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7230
7231         * DataGridView.cs: If RowCount is increased while ColumnCount
7232         is zero, add a column.  [Fixes bug #331649]
7233
7234 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7235
7236         * DataGridViewRowCollection.cs: When adding new rows for
7237         databinding, make sure they are place before the add row.
7238         [Fixes bug #343961]
7239
7240 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7241
7242         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7243         instead of Index order.
7244
7245 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7246
7247         * DataGridView.cs: If columns are added by increasing ColumnCount,
7248         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7249         [Fixes bug #325588]
7250
7251 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7252
7253         * DataGridView.cs: Turn off and on the "new row" when 
7254         AllowUserToAddRows is toggled.  When the handle is created,
7255         set current cell and selected cell/row/col.
7256
7257 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7258
7259         * ComboBox.cs: When navigating the drop down by keyboard, we
7260         need to scroll the list box if our selection moves out of the
7261         currently shown items.  [Fixes bug #371990]
7262
7263 2008-03-24  Luke Page <luke.a.page@gmail.com>
7264
7265         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7266         on the control. Also now handles unicode compatibility characters and
7267         stores the unicode compatibility length on the stack. Fixes Bugs
7268         #355198 and #366436.
7269
7270 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7271
7272         * BindingSource..cs: Take into account DataMember when re-creating the
7273         List property, and also create a specific kind of list as needed.
7274
7275 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7276
7277         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7278         get an empty IEnumerable, try to detect whether the datamember is
7279         valid or not for that type, if true, return null, and throw exception
7280         otherwise.
7281
7282 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7283
7284         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7285         retract it.  [Fixes bug #371989]
7286
7287 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7288
7289         * PropertyGrid.cs: Initialize the sorting button as pushed.
7290
7291 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7292
7293         * PropertyGrid.cs: 
7294          - Visually select the PropertyTab.
7295          - Filter Properties by Attributes properly.
7296
7297 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7298
7299         * MenuItem.cs: Remove menu item from parent when disposed.
7300         [Fixes bug #372845]
7301
7302 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7303
7304         * ToolBar.cs: Don't reset layout_type if Dock = None.
7305
7306 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7307
7308         * UserControl.cs: Select the first available control when we get focus.
7309           Fixes #372616
7310
7311 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7312
7313         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7314         the content if we are in edit mode.  [Fixes bug #343964]
7315
7316 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7317
7318         * DataGridViewCell.cs: Fix border painting for column headers.
7319
7320 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7321
7322         * BindingSource.cs: When setting or resetting data source,
7323         use ListBindingHelper.GetList () method, since it will get the list in
7324         case datasource is IListSource.
7325
7326 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * DataGridViewCell.cs: Implement lots more stuffs.
7329
7330 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7331
7332         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7333         UITypeEditor.IsDropDownResizable.
7334
7335 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7336
7337         * DataGridViewCell.cs: Remove unused variables, improve how
7338         several of the property getters work.
7339         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7340         get its size from the parent row/col.
7341
7342 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7343
7344         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7345         user alters manually the PropertyTabs collection via the 
7346         PropertyTabs property.
7347
7348 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7349
7350         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7351         new tests for them to be sure to be compatible with .net.
7352
7353 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7354
7355         * WebBrowserBase.cs: Fix attributes, add events
7356         * WebBrowser.cs: Fix Padding signature
7357
7358 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7359
7360         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7361
7362 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7363
7364         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7365         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7366         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7367         passes the new suite of tests for it.
7368
7369 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7370
7371         * WebBrowser.cs: Add missing attributes, missing Padding and
7372           DefaultSize properties, remove extraneous getters
7373
7374 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7375
7376         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7377         method overloads.
7378
7379 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7380
7381         * ComboBox.cs: Move resetting the selected index to keypress
7382         instead of textchanged.  Changing the text programmatically
7383         should not trigger resetting the selected index.  Fixes test.
7384
7385 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7386
7387         * ComboBox.cs: When the user types into the textbox, reset
7388         the selected index to -1.  [Fixes bug #371672]
7389
7390 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7391
7392         * FileDialog.cs: Support Control-A for selecting everything
7393         in an OpenFileDialog.  [Fixes bug #371564]
7394
7395 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7396
7397         * DataGridView.cs: When row/column visible/height properties
7398         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7399         etc.  We don't support them yet, but we can just invalidate
7400         everything until we do support them.  (Added MonoTODO).  Set
7401         proper control styles.
7402         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7403         are turned off. 
7404
7405 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7406
7407         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7408
7409 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7410
7411         * DataGridViewRow.cs: Only paint the white background in
7412         cell bounds, the row bounds extends past the cells if the 
7413         grid width isn't as wide as the DGV.
7414
7415 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7416
7417         * DataGridView*: Completely revamp the drawing to match the
7418         public API.  Our grids now look better, and call all the
7419         appropriate methods and event to allow users to override
7420         the painting and do their own.
7421
7422 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7423
7424         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7425
7426 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7427
7428         * DataGridView.cs: Implement BorderStyle.
7429
7430 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7431
7432         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7433         are comparing attributes, make sure we only look at the
7434         one we are interested.  These calls were failing if there
7435         were more than one attribute.
7436         [Fixes bug #370385]
7437
7438 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7439
7440         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7441
7442 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7443
7444         * PageSetupDialog.cs: Stub EnableMetric.
7445         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7446         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7447         ProcessTabKey.
7448
7449 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7450
7451         * MonthCalendar.cs: Remove unused variable.
7452
7453 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7454
7455         * DataGridView*.cs: corcompare stuffs.
7456
7457 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7458
7459         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7460         The savings aren't worth the extra code to fix the optimization.
7461         [Fixes bug #368585]
7462
7463 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7464
7465         * ToolBar.cs: Always call base.Dock in the Dock override so that
7466         Control's layout_type gets reset correctly.
7467         [Fixes bug #368882]
7468
7469 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7470
7471         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7472
7473 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7474
7475         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7476         at the same time we do explicit ones, because we have to give all
7477         other controls on the container a chance to handle explicit ones
7478         first.  If no one has an explicit mnemonic, then we can let the
7479         MenuStrip have a shot at implicit mnemonics.
7480         * MenuStrip.cs: Create an implicit mnemonic function.
7481         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7482         mnemonics for MenuStrips.
7483         [Fixes bug #368493]
7484
7485 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7486
7487         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7488         DataGridColumnStyle.cs: corcompare stuffs.
7489
7490 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7491
7492         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7493         Details - This is needed after we added the bits to use any available
7494         column also for List and SmallIcon view. 
7495
7496 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7497
7498         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7499         at the proper place, not only when changing SelectedIndex and changing
7500         the selection using keys/mouse, as .net does.
7501
7502 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7503
7504         * ControlBindingsCollection.cs: Implement last 2.0
7505         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7506         in the new 2.0 Add methods.
7507
7508 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7509
7510         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7511         return if no items are previously selected - this is done to avoid 
7512         firing OnSelectedIndexChanged without need to do so. Also,
7513         when creating handle ensure that the focused item is visible (as
7514         .net does).
7515
7516 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7517
7518         * ListBox.cs: Rewrote/refactored most of selection code. We require
7519         the following things in selection: a) keep selection sorted (both
7520         indices and items), b) SelectedIndices automatically detect the
7521         selection mode, c) SelectedIndex should be the first selected item
7522         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7523         not only for SelectedIndex, which is specially important in Multi*
7524         selection modes. To achieve this we are moving the selection core to
7525         SelectedIndexCollection and make depend all selection modifications on
7526         it.
7527         Fixes #366438.
7528
7529 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7530
7531         * ToolStrip.cs: Enable implicit mnemonics for drop down
7532         menu strips.  [Fixes part of bug #367692]
7533
7534 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7535
7536         corcompare - fix parameter names [stragglers].
7537         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7538         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7539         TabControl.cs.
7540
7541 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7542
7543         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7544         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7545         mnemonic, let the ToolStripManager have it even if it doesn't
7546         have a matching mnemonic.
7547         [Fixes bug #367499]
7548
7549 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7550
7551         corcompare - fix warning about implicit implementation
7552         * ToolStrip.cs: Add IToolStripData interface.
7553         * IToolStripData.cs: Add.
7554
7555 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7556
7557         corcompare - fix warning about implicit implementation
7558         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7559         * IBounds.cs: Add.
7560
7561 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7562
7563         corcompare - fix parameter names [N-Z].
7564         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7565         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7566         PropertyManager.cs, RichTextBox.cs,
7567         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7568         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7569         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7570         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7571         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7572         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7573         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7574         ToolStripPanel.cs, ToolStripSeparator.cs,
7575         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7576         UICuesEventHandler.cs, UpDownBase.cs.
7577
7578 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7579
7580         corcompare - fix parameter names [G-M].
7581         GridColumnStylesCollection.cs, GridItemCollection.cs,
7582         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7583         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7584         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7585         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7586         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7587
7588 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7589
7590         corcompare - fix parameter names [A-F].
7591         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7592         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7593         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7594         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7595         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7596         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7597         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7598
7599 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7600
7601         * GridEntry.cs: Do not convert not only if the types match, 
7602         but also if the property type is assigneable from the value's
7603         type.
7604         [Fixes bug #366566]
7605
7606 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7607
7608         * PropertyGridView.cs: 
7609          - Subscribe to the listbox only once and not everytime.
7610          - Update the textbox even if SetValue fails.
7611          - Close the listbox before calling TrySetValue just in case.
7612          [Fixes bug #366569]
7613
7614 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7615
7616         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7617
7618 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7619
7620         * ListView.cs: Implement support for custom column width based on
7621         Columns collection (we were previously using this collection only
7622         with Details view).
7623         Fixes #364484.
7624
7625 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7626
7627         * ListViewItem.cs: For Tile view, always set bounds for the first
7628         subitem (which is the main one), and also don't let Width be larger
7629         than ListView.TileSize.Width. Improve code readibility also.
7630         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7631         in Tile view, _always_ use the NoWrap flag.
7632         Fixes #360798.
7633
7634 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7635
7636         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7637         in case.
7638         * GridEntry.cs: For MS compitability make all child properties 
7639         readonly if the parent is readonly. Ugh.
7640         [Fixes bug #365945 and #365944]
7641
7642 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7643
7644         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7645           relative to the history
7646
7647 2008-02-29  Andreia Gaita <avidigal@novell.com>
7648
7649         * HtmlElement.cs: More handlers for mouse and key events
7650
7651 2008-02-28  Andreia Gaita <avidigal@novell.com>
7652
7653         * WebBrowserBase.cs: MouseClick sig changed.
7654         * HtmlHistory.cs: Implement history navigation
7655         * HtmlElement.cs: Add event handlers, and connect them.
7656
7657 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7658
7659         * GridEntry.cs: 
7660          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7661            so that DisplayNameAttribute doesn't get ignored.
7662          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7663          - Add support for PasswordPropertyTextAttribute
7664         * PropertyGridView.cs: Check if an entry is a password.
7665         [Fixes bugs #365589, #365586, #365588]
7666
7667 2008-02-28  Andreia Gaita <avidigal@novell.com>
7668
7669         * PropertyGridView.cs: Revert the message filtering change, as we
7670         need it to block after all. Remove block parameter, unnecessary.
7671
7672 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7673
7674         * UserControl.cs: Better implementation of GetPreferredSize.
7675         First step to fixing bug #361441.
7676
7677 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7678
7679         * Binding.cs: Actually implement data binding support for 
7680         classes implementing IBindableComponent.
7681         * ControlBindingsCollection.cs: Likewise.
7682
7683 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7684
7685         * PropertyGridView.cs: Use a message filter to check when to 
7686         close the dropdown
7687
7688 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7689
7690         * Application.cs: Change the message_filters loop so a filter 
7691         can be removed while looping.
7692
7693 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7694
7695         * GridEntry.cs: Optimization in ToggleValue so that it caches
7696         the current value.
7697         * PropertyGridView.cs: An optimization so that the property isn't 
7698         re-read twice for each StandardValue added to the drop-down menu.
7699         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7700         license.
7701         [Fixes bug #362755]
7702
7703 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * Application.cs: Apply patch from Justin Cherniak to match
7706         MS better for ProductName, ProductVersion, and CompanyName.
7707         [Fixes bug #361709]
7708
7709 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7710
7711         * Binding.cs: Actually implement 2.0 NullValue property. Also
7712         when changing the formatting related properties, only update the state
7713         if formatting_enabled is true (we don't mind otherwise).
7714
7715 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7716
7717         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7718         [Fixes bug #364486]
7719
7720 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7721
7722         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7723         of GetType on the current value as it uses reflection to 
7724         determine the type. This fixes the case where the new value is 
7725         null. 
7726
7727 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7728
7729         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7730         past the view.
7731
7732 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7733
7734         * Line.cs, TextControl.cs: Implement offset x and y so that a
7735         document doesn't have to begin  at (0,0) on the viewpoint.
7736         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7737         bars and switches the text alignment (and therefore is now
7738         implemented for textbox). Fixes #321383.
7739
7740 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7741
7742         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7743         properties. Also when changing FormattingEnabled update the control
7744         property -as .Net does-.
7745
7746 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7747
7748         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7749         * Binding.cs: Add stubs for the overloads of the Add method in
7750         CBCollection.
7751
7752 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7753
7754         * Binding.cs: PullData () returns a false value if we got an exception.
7755         Also when validating the control and we get an error, instead of
7756         setting the value of the previous one, cancel the event (tested in 1.1
7757         and 2.0).
7758
7759 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7760
7761         * TreeView.cs: Make selected_node and highlighted_node internal.
7762         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7763         to null when Nodes.Clear is called.
7764         [Fixes bug #363884]
7765
7766 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7767
7768         * FontDialog.cs: Ensure that when the Font is set in code,
7769         all the gui pieces are updated accordingly.
7770         [Fixes bug #361020]
7771
7772 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * TextRenderer.cs: Respect proposed size for MeasureString.
7775         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7776         autosize, use a proposed width to force wrapping for long text.
7777         [Fixes bug #360981]
7778
7779 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7780
7781         * TreeView.cs: Factor in checkboxes = false and state images in
7782         to HitTest.  [Fixes bug #363360]
7783
7784 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7785
7786         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7787         when drawing the selected range.
7788         [Fixes bug #363648]
7789
7790 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7791
7792         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7793         ResizeRedraw control styles.
7794         [Fixes bug #363555]
7795
7796 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7797
7798         * TreeView.cs: StateImages are basically custom checkboxes, so
7799         factor their size the same as real checkboxes when determining
7800         what got clicked.
7801         [Fixes bug #363367]
7802
7803 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7804
7805         * MessageBox.cs: Make the message box wider if the form caption
7806         is longer than the text in the form.
7807         [Fixes bug #361137]
7808
7809 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7810
7811         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7812
7813 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7814
7815         * TreeNode.cs: Guard against an NRE when the parent's
7816         StateImageList hasn't been set.
7817         [Fixes bug #363353]
7818
7819 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7820
7821         * SplitContainer.cs: Add SupportsTransparentBackColor and
7822         OptimizedDoubleBuffering control styles.
7823         [Fixes bug #363303]
7824
7825 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7826
7827         * Application.cs: For the app data paths and the registry key paths,
7828         ensure they are created before returning them to the user.
7829         [Fixes bug #361709]
7830
7831 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7832
7833         * Application.cs: Guard against an NRE in CompanyName and
7834         ProductName.
7835
7836 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7837
7838         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7839         make sure we handle all three cases correctly: attribute is present,
7840         attribute is present but is an empty string, and attribute is not
7841         present.
7842
7843 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7844
7845         * PropertyGridView.cs: 
7846          - Fix a NRE that caused a test failure
7847          - Another performance improvement - cache the standard values
7848          listbox.
7849
7850 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7851
7852         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7853         code paths.
7854
7855 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7856
7857         * PropertyGridView.cs: Fix a big performance bug.
7858
7859 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7860
7861         * SelectionRange.cs: Apply patch from Andy Hume to make
7862         constructor behavior more accurate.  [Fixes bug #362117]
7863
7864 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7865
7866         * Control.cs: Added a new flag is_disposing to track if the
7867         window is currently in the process of being disposed of.
7868         This is used so that, when firing visibility changes triggered
7869         by unparenting controls during Dispose, the control doesn't
7870         get created again.      
7871
7872 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7873
7874         * ComboBox.cs: Set height to preferred height when the handle
7875         is created.  [Fixes bug #360862]
7876
7877 2008-02-18  Andreia Gaita <avidigal@novell.com>
7878
7879         * XplatUIX11.cs: Create FosterParent with border width at 0.
7880         With the previous value of 4, everytime a control got reparented
7881         from parent = null, it's location would be shifted right and 
7882         down by 4, since these coordinates would be offset by the 
7883         FosterParent's border width.
7884
7885 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7886
7887         * Control.cs: During diposing firstly remove ourselfes from
7888         the parent and *then* destroy our handle, because removing
7889         ourselfes from the parent controls collection causes 
7890         VisibilityChange, etc events, which require a handle and end
7891         up recreating the control.
7892
7893 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7894
7895         * GridEntry.cs: Set expanded state before notifying that the
7896         expansion has taken place.
7897         * PropertyGridView.cs:
7898          - Set the propertygridtextbox text to the selected 
7899          StandardValue before proceeding to setting it.
7900          - Scrolling bugfixes.
7901
7902 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7903
7904         * GridEntry.cs:
7905          - Fix ValueText to not return null.
7906          - Fix conversion error reporting to actually happen.
7907         * PropertyGridView.cs: Set entry only if the text has changed.
7908         [Fixes bug #362116]
7909
7910 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7911
7912         * GridEntry.cs: 
7913          - Fix handling of a null current value.
7914          - Swallow editor exceptions.
7915         [Fixes bug #362114]
7916
7917 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7918
7919         * PropertyGrid.cs: Clear current items first thing before 
7920         repopulating subitems.
7921         * GridEntry.cs: 
7922          - Handle null StandardValuesCollection.
7923          - Mark as not editable if there is no PropertyDescriptor and
7924          if the Converter cannot convert from string.
7925         [Part of fix for bugs #360666 and #358332]
7926
7927 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7928         * MaskedTextBox.cs: Now skips non editable characters after a
7929         character has been entered and we are progressing to the next
7930         position in the MaskedTextBox.
7931
7932 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7933         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7934         that it changes the selection rather than just repositioning the
7935         cursor. Fixes Bug #360873.
7936
7937 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7938         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7939         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7940         correctly. See #359330
7941
7942 2008-02-15  Andreia Gaita <avidigal@novell.com>
7943
7944         * XplatUIX11.cs: If the handle is null when posting a message, use the
7945         current thread queue to post instead. Fixes #332409
7946
7947         * SendKeys.cs: Slight optimization
7948
7949 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7950
7951         * PropertyGrid.cs, PropertyGridView.cs:
7952         Fix multiple scrolling and sizing issues.
7953         [Fixes bug #359199]
7954
7955 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7956
7957         * PropertyGridView.cs: Ensure that drop down editors are shown
7958         in the WorkingArea of the screen.
7959         [Fixes bug #359807]
7960
7961 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7962
7963         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7964         [Fixes bug #360666]
7965
7966 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7967
7968         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7969
7970 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7971
7972         * PropertyGridView.cs:
7973          - Clear the controls in the drop down form after it is hidden.
7974          - Fix Width sizing of the dropdown editors to match MSFT.
7975
7976 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7977
7978         * PropertyGridView.cs: 
7979          - Fix height for drawing the grid entry
7980          text value, so that it clips multiline text properly.
7981          - Fix unfocusing to match MSFT.
7982
7983 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7984
7985         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7986         Fixes a bug where on repopulation after value changed items become
7987         expandable.
7988
7989 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7990
7991         * Binding.cs: For the 2.0 profile, look for a 
7992         'PropertyChanged' event in the target control, and add checks for
7993         DataSourceUpdateMode property to change -or not- the data source
7994         from validation/control property change.
7995
7996 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7997
7998         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7999           not compare struct with null in 2.0).
8000
8001 2008-02-10  Luke Page <luke.a.page@gmail.com>
8002
8003         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
8004         updates the provider and if not using a provider, uses the internal document
8005         class implementation of password char. Also when showing text, uses display string
8006         from the provider, instead of the actual text.
8007
8008 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8009
8010         * Binding.cs: Ooooops, forgot to take into account the data_source
8011         and binding_member_info null case (it was breaking the Binding tests).
8012
8013 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8014
8015         * Binding.cs: Implement support for data source changes exposed by
8016         'PropertyNameChanged' events, and update the control property as
8017         needed.
8018
8019 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8020
8021         * Binding.cs: Implement 2.0 WriteValue method.
8022
8023 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8024
8025         Commit patch from James Purcell for better AutoScale implementation:
8026
8027         * ScaleControl should call GetScaledBounds with the control's total size rather
8028         than client size.  GetScaledBounds should handle ignoring the borders in its
8029         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
8030         (for the most part they just call the base code now since that is fixed).
8031         * Added ScaleChildrenInternal to allow controls to disable scaling of children
8032         without having to override ScaleChildren (since none of .NET's controls do). 
8033         This is required for most controls in Mono that have scrollbars to prevent the
8034         scrollbars from being moved/resized.
8035         * Nested ContainerControls can have a different scale mode than their parent. 
8036         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
8037         designer produce different results both of which look incorrect).
8038         * Default AutoScaleMode for ContainerControl should be Inherit.
8039         * Simplified workaround for ComboBox scaling issue.
8040         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
8041         1.0 style auto scaling should scale the whole control's size instead of
8042         ignoring the borders (except for Form) and the rounding is done differently to
8043         preserve control alignment.
8044         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
8045         GetAutoScaleSize.
8046         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
8047         * CurrentAutoScaleDimensions should round the estimated character width instead
8048         of truncating.
8049         * ListBox's GetScaledBounds should always use the height it was set to instead
8050         of the height that was passed in.  This prevents rounding errors from
8051         accumulating quickly with IntegralHeight.
8052         [Bug #359098]
8053
8054 2008-02-08  Andreia Gaita <avidigal@novell.com>
8055
8056         * Form.cs: Add a null check (darn it). 
8057
8058 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8059
8060         * MdiClient.cs: Make sure the requesting form actually owns the
8061         control menu items before removing them.  Also, use
8062         Suspend/ResumeLayout when adding or removing items so we only
8063         layout once.
8064         [Fixes bug #359887]
8065
8066 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
8067
8068         * Control.cs: Guard against an NRE in ShowFocusCues.
8069         [Fixes bug #359830]
8070
8071 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8072
8073         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
8074         property, as well as stubbing DataSourceUpdateMode.
8075
8076 2008-02-08  Andreia Gaita <avidigal@novell.com>
8077
8078         * Form.cs: When closing forms, get focus back to the active control of the
8079         active form. [Fixes #341314, corner case]
8080         
8081 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8082
8083         * MdiClient.cs: After we move the scrollbars, invalidate the NC
8084         area, so any old scrollbar artifacts are cleaned up.
8085         [Fixes bug #336305]
8086
8087 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8088
8089         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
8090         for our menus, display that control box menu instead of the 1.1
8091         menu one.
8092
8093 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8094
8095         * MdiControlStrip.cs: Add property to access the mdi form tied to
8096         each toolstripitem.
8097         * MdiClient.cs: Be smarter about removing and adding toolstripitems
8098         to the implicitly merged menu.  Every time we clicked the form, items
8099         were getting removed and the re-added, causing the form to jump around
8100         as the menu resized.
8101
8102 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8103
8104         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8105         was being reset by the implicit menu merge for menustrips.
8106         [Fixes bug #336296]
8107
8108 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8109
8110         * Form.cs: Don't do the previous change when WindowState = Normal,
8111         or it messes up where the window is placed.  Fixes test failure.
8112
8113 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8114
8115         * Form.cs: When becoming visible, if we are an MDI child, call
8116         SetWindowState with a dummy old_state so that changes will actually
8117         be made.
8118         [Fixes the 2nd part of bug #325473]
8119
8120 2008-02-07  Andreia Gaita <avidigal@novell.com>
8121
8122         * Control.cs: Reset properties to their pre parent-change values in case
8123         the new parent == null (in which case we're basically removing the control, 
8124         and don't want any events fired due to fake property changes)
8125         [Fixes #355850]
8126
8127 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8128
8129         * PropertyGridView.cs: 
8130          - Refactor SetValue to allow setting the value
8131         when a custom editor is used, but the entry is not editable.
8132          - Remove the custom editor control on CloseDropDown.
8133         [Fixes #359196]
8134
8135 2008-02-06  Andreia Gaita <avidigal@novell.com>
8136
8137         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8138         reflection only on 1.1, this property is public on system.drawing on 2.0.
8139         Fixed #359247
8140
8141 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8142         
8143         * WebBrowser.cs: Do a normal page refresh by default.
8144
8145 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8146
8147         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8148         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8149         platforms. Fixes #359036
8150         
8151         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8152         platform-specific flags.
8153
8154 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8155
8156         * Binding.cs: Add 2.0 BindableComponent property - just return control
8157         by now.
8158
8159 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8160
8161         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8162         Jonathan for this patch. Fixes #358442.
8163
8164 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8165
8166         * Form.cs: If we change the active MDI child form, let the others
8167         know they need to repaint their title bar so it will appear inactive.
8168         [Fixes part 1 of bug #325473]
8169
8170 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8171
8172          * PropertyGridView.cs: Do not trucate custom editors' width
8173          and align them to the left.
8174          [Fixes #358353 and #358349]
8175
8176 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8177
8178         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8179         Also fix the arguments passed to CollectionChangeEventArgs in the
8180         related methods.
8181
8182 2008-02-04  Geoff Norton  <gnorton@novell.com>
8183
8184         * Hwnd.cs: The conversion to Quartz coordinates happens in
8185         System.Drawing.  Removing this translation from here.
8186
8187 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8188
8189          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8190          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8191          GridItemCollection.cs:
8192          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8193
8194 2008-02-04  Geoff Norton  <gnorton@novell.com>
8195
8196         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8197         SYSKEYUP if any other key has been pressed in the mean time.
8198         Fixes #324404
8199
8200 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8201
8202         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8203         when the item in current position is different than 0. Also, save the
8204         item index in the beginning of the operation, instead of getting the
8205         index of the item when the event is actually performed. Lastly clean
8206         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8207         triggered.
8208         [Fixes #357873]
8209
8210 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8211
8212         * Form.cs: Alt-Minus for MDI children system menu should work
8213         with both the minus keys on the keyboard.
8214         [Fixes bug #336295]
8215
8216 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8217
8218         * Control.cs: Don't invalidate on region change.  The WM should
8219         take care of this automagically.  Keeps us out of an infinite
8220         paint loop if someone changes the Region in the OnPaint.
8221         [Fixes bug #358327]
8222
8223 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8224
8225          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8226
8227 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8228
8229         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8230         down the MonthCalendar only on F4, not Alt+F4.
8231         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8232         [Fixes bug #358340]
8233
8234 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8235
8236         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8237         if its part of a DateTimePicker, else, use the back color.
8238         [Fixes bug #358339]
8239
8240 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8241
8242         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8243         [Fixes bug #358342]
8244
8245 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8246
8247         * CurrencyManager.cs: When we get a ListChanged event from our source,
8248         always fire our own ListChanged event, as .Net does.
8249
8250 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8251
8252         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8253         #358379.
8254
8255 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8256
8257         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8258         property. Removed if for richtext property that was always true.
8259         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8260
8261 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8262
8263         * TextBoxBase.cs - commited patch from James Purcell that
8264         correctly sets the FixedHeight control style when the MultiLine
8265         property is changed on a TextBox control. Fixes bug 358229.
8266
8267 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8268
8269         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8270         Fixes bug 351938 - caret is positioned correctly when drawn
8271         and when calculating textual position of caret, no longer
8272         has a NRE in certain situations.
8273         
8274 2008-02-01  Geoff Norton  <gnorton@novell.com>
8275
8276         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8277         get that region removed from the paint event.
8278         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8279         window.  Prevents a crash with handle reuse.  Optimize exposes
8280         only onto visible windows (rare; but possible).
8281
8282 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8283
8284         * UpDownBase.cs: Make sure the internal textbox calls the base's
8285         OnMouseDown and OnMouseUp so the textbox will function correctly.
8286         There were notes saying it doesn't chain up, but its an internal
8287         class, so our implementation may differ.
8288         [Fixes bug #357482]
8289
8290 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8291
8292         * ListBox.cs: Fix a logic error and don't process MouseDown
8293         for mouse buttons other than Left.
8294
8295 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8296
8297         * Control.cs: Remove HeightInternal.
8298         * ListBox.cs: Commit patch from James Purcell that correctly
8299         calculates heights for ListBoxen.
8300         [Fixes bug #357152]
8301
8302 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8303
8304         * Label.cs: Apply patch from James Purcell that corrects the 
8305         signature of the AutoSize property.
8306         [Fixes bug #357605]
8307
8308 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8309
8310         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8311         other than the left mouse button.
8312
8313 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8314
8315         * Control.cs: Remove my awesome optimization as it caused some
8316         regressions with control ordering.  :(
8317         [Fixes bug #357467]
8318
8319 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8320
8321          * PropertyGridView.cs: Fix a NRE on double click when there is no
8322          selected object.
8323
8324 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8325
8326         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8327
8328 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8329
8330         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8331         [Fixes bug #357146]
8332
8333 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8334
8335         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8336         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8337         instead of Hwnd.bmp_g.
8338
8339 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8340
8341         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8342         Use the Hwnd one instead.
8343
8344 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8345
8346         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8347
8348 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8349
8350         * Form.cs: corcompare for RestoreBounds.
8351
8352 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8353
8354         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8355
8356 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8357
8358         * Form.cs: Handle Alt-Minus for MDI children forms.
8359         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8360         Add mnemonics to the control menu.
8361         [Fixes bug #336295]
8362
8363 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8364
8365         * Binding.cs: Initial implementation bits of FormattingEnabled
8366         property and BindingComplete event (2.0). 
8367         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8368         and exception.
8369
8370 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8371
8372         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8373         table.Location.  [Fixes bug #354672]
8374
8375 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8376
8377         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8378         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8379
8380 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8381
8382         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8383         of doing all the re-bound work, just invalidate and call SetControlText 
8384         to set the updated text of selected item to our textbox.
8385         Fixes #333750.
8386
8387 2008-01-28  Andreia Gaita <avidigal@novell.com>
8388
8389         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8390         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8391         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8392         LostFocus, Resize, Scroll events (only load and unload are connected)
8393
8394 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8395
8396         * AccessibleObject.cs: Modified argument names to match MS.
8397         * Button.cs: Modified argument names to match MS.
8398         * BindingContext.cs: Modified argument names to match MS.
8399         * BindingMemberInfo.cs: Modified argument names to match MS.
8400         * ButtonBase.cs: Modified argument names to match MS.
8401         * ComboBox.cs: Modified argument names to match MS.
8402         * Control.cs: Modified argument names to match MS.
8403         * CheckedListBox.cs: Modified argument names to match MS.
8404         * CommonDialog.cs: Modified argument names to match MS.
8405         * DataGrid.cs: Modified argument names to match MS.
8406         * CursorConverter.cs: Modified argument names to match MS.
8407         * ControlPaint.cs: Modified argument names to match MS.
8408         * CheckBox.cs: Modified argument names to match MS.
8409         * ControlBindingsCollection.cs: Modified argument names to match MS.
8410         * BindingSource.cs: Modified argument names to match MS.
8411         * DataFormats.cs: Modified argument names to match MS.
8412         * ContainerControl.cs: Modified argument names to match MS.
8413         * CurrencyManager.cs: Modified argument names to match MS.
8414         * Application.cs: Modified argument names to match MS.
8415         * ContextMenuStrip.cs: Modified argument names to match MS.
8416         * ContextMenu.cs: Modified argument names to match MS.
8417         * BindingManagerBase.cs: Modified argument names to match MS.
8418         * WindowsFormsSection.cs: Fixed line ending.    
8419
8420 2008-01-27  Andreia Gaita <avidigal@novell.com>
8421
8422         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8423         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8424         while.
8425
8426 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8427
8428         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8429         MS. Code formatting.
8430
8431 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8432
8433         * Binding.cs: Don't avoid the Format event if the control 
8434         property type is object. Also, if the value retrieved by 
8435         the data source is null _and_ the control proeprty type 
8436         is object, return Convert.DBNull (match .Net).
8437         Fixes part of #324286.
8438
8439 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8440
8441         * ListControl.cs: Since we are getting two BinginContextChanged events
8442         for the same binding context instance (when the control is added to
8443         form, and when the form is actually shown), take it into account only the
8444         first time for a given binding context instance.
8445         Fixes part of #324286.
8446
8447 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8448
8449          * PropertryGridView.cs: Ops.
8450
8451 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8452
8453          * PropertyGridView.cs: Close dropdown form if the owner form is
8454          moved or minimized.
8455          [Fixes bug #322446]
8456
8457 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8458
8459          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8460          RootGridEntry.cs, CategoryGridEntry.cs:
8461          PropertyGrid rewrite.
8462          - Rewrite all of the control logic in PropertyGrid.
8463          - Rewrite all of the ComponentModel logic in GridEntry.
8464          - Rewrite all UI work in PropertyGridView.
8465          - Many bugfixes, etc.
8466
8467 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8468
8469         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8470         when all contained controls are autosize or dock-fill.  Also take into
8471         account when the total percentage of column/row sizes is not 100%.
8472         [Fixes bug #354672]
8473
8474 2008-01-24  Andreia Gaita <avidigal@novell.com>
8475
8476         * HtmlDocument.cs:
8477         - Save a reference to the IDocument in the instance and
8478           use that one instead of going to WebHost.Document; the document that the 
8479           WebHost returns might not be the right one (in case of frames).
8480         - Use the hashcode returned from the IDocument interface.
8481         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8482           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8483           LinkColor, Url, VisitedColor, Window
8484
8485         * HtmlElement.cs: 
8486         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8487           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8488           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8489           SetAttribute, Equals, equality operators.
8490         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8491           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8492         
8493         * HtmlElementCollection.cs: Change implementation to use a generic
8494         collection. Implemented Enumerator and CopyTo
8495
8496         * HtmlHistory.cs: Add constructor, no implementation yet.
8497
8498         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8499         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8500         Equals, equality operators.
8501
8502         * HtmlWindowCollection.cs: Implemented. 
8503
8504         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8505         has been deprecated).
8506
8507         * WebBrowserBase.cs: Use Completed event to track document loading
8508         (Navigated has been deprecated)
8509
8510 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8511
8512         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8513         level MenuItems do not respect tabs.
8514         [Fixes bug #355196]
8515
8516 2008-01-23  Geoff Norton  <gnorton@novell.com>
8517
8518         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8519         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8520
8521 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8522
8523         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8524         be used as grab_control. Also save status of capture before show ContextMenu
8525         and restore it after close.
8526
8527 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8528
8529         * Control.cs: Internal FindRootParent method added to return high control
8530         in parent tree.
8531
8532 2008-01-23  Geoff Norton  <gnorton@novell.com>
8533
8534         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8535         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8536         it work again.  Handle HITTEST events.
8537
8538 2008-01-23  Geoff Norton  <gnorton@novell.com>
8539
8540         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8541         a crash in certain cases.  Support for fullscreen windows in certain cases.
8542
8543 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8544
8545         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8546         [Fixes bug #355703]
8547
8548 2008-01-23  Geoff Norton  <gnorton@novell.com>
8549         
8550         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8551
8552 2008-01-23  Geoff Norton  <gnorton@novell.com>
8553
8554         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8555
8556 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8557
8558         * SplitContainer.cs: Remove unused declarations.
8559         * Binding.cs: Remove unused declarations.
8560
8561 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8562
8563         * Form.cs: Remove unused declaration of 'active' in Activate method.
8564         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8565         prevent compilation warnings.
8566         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8567         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8568         * Bindings.cs: Remove unused formatting_enabled declaration.
8569         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8570         warnings.
8571         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8572         warnings.
8573         * PropertyGridView.cs: Remove usused 'ex' declaration.
8574         * DataGridView.cs: Remove unused declarations.
8575
8576 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8577
8578         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8579         
8580         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8581         to Control class, it makes possible to grab menu to controls that can't 
8582         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8583         WmMouseMove removed since it was used only to track menu events.
8584
8585         * Control.cs:
8586         - Moved all active_tracker stuff from Form.
8587         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8588         can call this method instead of reimplement all necessary code handle for
8589         menu tracker.
8590         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8591         and WmMouseMove).
8592         
8593         * MenuAPI.cs: 
8594         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8595         controls that can't reach Form using parent tree.
8596         - Change type of grab_control from Form to Control.
8597
8598 2008-01-22  Geoff Norton  <gnorton@novell.com>
8599
8600         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8601         controls.  Fixes a bug where scrollbars in Reflector could be sized
8602         wrong and have non-working thumbers.
8603
8604 2008-01-23  Geoff Norton  <gnorton@novell.com>
8605
8606         * XplatUI.cs: Refactor environment variables to default support to the
8607         Carbon driver on the Mac.
8608
8609 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8610
8611         * Label.cs: Uses new LabelPainter for drawing operations.
8612         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8613         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8614
8615 2008-01-22  Geoff Norton  <gnorton@novell.com>
8616
8617         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8618
8619 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8622         through the normal flat button code and don't draw the checkbox glyph.
8623         * Theme.cs: Button->ButtonBase signature change.
8624         [Fixes bug #324755]
8625
8626 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8627
8628         * LinkLabel.cs: Uses new class LinkLabelPainter.
8629
8630 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8631
8632         * MessageBox.cs: Adjust right border space, we don't need to add 
8633         "space_border*2" two times.
8634
8635 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8636
8637         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8638         becomes a wrapper around Padding.
8639         [Fixes a part of bug #354676]
8640
8641 2008-01-22 Geoff Norton  <gnorton@novell.com>
8642
8643         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8644         acquired.  Also ensure the buffer is large enough to grab the header
8645         we need on linux boxes.
8646
8647 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8648
8649         * Control.cs: Implement a custom enumerator so people can delete
8650         from the Controls collection while in a foreach.
8651         [Fixes bug #355074]
8652
8653 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8654
8655          * PropertyGridView.cs: Fix focusing behavior:
8656          - Tab should focus the grid text box.
8657          - Clicking on the labels shouldn't focus the grid text box.
8658
8659 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8660
8661          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8662          for Arrays as well.
8663
8664 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8665
8666          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8667           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8668           reflect the property name role.
8669           - PropertyGrid.GetTarget is not required as the target is known
8670           (TargetObjects).
8671           - Setting values will handle value types as a special case now and
8672           populate them up in the chain.
8673           [Fixes #354990]
8674
8675 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8676
8677         * Hwnd.cs: Create a public property for the Graphics we keep around.
8678
8679 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8680
8681          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8682          when the current object selection changes. 
8683          Fixes failing test SelectedObject_Null2.B5.
8684
8685 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8686
8687          * PropertyGrid.cs: Process Browsable properties with 
8688          DesignerSerializationVisibilityAttribute.Content as being expandable.
8689          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8690          will not be expandable. We should be nested components-friendly now.
8691
8692 2008-01-21  Andreia Gaita <avidigal@novell.com>
8693
8694         * WebBrowserBase.cs: Check if control was loaded properly, 
8695         don't bind if it wasn't.
8696
8697         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8698         GetElementFromPoint, equality operators, OpenNew, Write.
8699         Remove extra set_Body
8700
8701 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8702
8703         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8704         that makes our AutoScale* stuff more tolerant to different orders
8705         of being set.  [Fixes bug #354669]
8706
8707 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8708
8709          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8710          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8711          [Fixes #339005 and #348209]
8712
8713 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8714
8715          * PropertyGridView.cs: Hide the grid text box before adjusting it
8716          for the newly selected GridItem.
8717          [Fixes #338999]
8718
8719 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8720
8721         * Form.cs: Give MDI children the opportunity to cancel the parent form
8722         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8723         properly for both the parent and child.
8724         * Application.cs: Signature of internal method changed, pass the previous
8725         default of false.
8726         [Fixes bug #354286]
8727
8728 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8729
8730         * PropertyGridView.cs: Set the property value only if it has changed.
8731         [Fixes bug #338997]
8732
8733 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8734
8735         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8736         If the mouse hasn't actually moved, ignore these messages so the currently
8737         highlighted menuitem isn't reset to the one under the mouse.
8738         [Fixes bug #333668]
8739
8740 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8741
8742         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8743         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8744         to reflect the change visually.
8745         [Fixes bug #338998]
8746
8747 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8748
8749         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8750         to 2.0 button drawing.
8751         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8752         the button text is tall enough for one line.  LineLimit says it will
8753         always draw at least one line, but it is a lie.
8754         [Fixes bug #324941]
8755
8756 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8757
8758         * XplatUIStructs.cs, X11Keyboard.cs :
8759           added some more VK_* keys to be handled.
8760
8761 2008-01-16  Andreia Gaita <avidigal@novell.com>
8762
8763         * Control.cs: Check if there is a container before setting or getting
8764         the validation flag.
8765
8766 2008-01-16  Andreia Gaita <avidigal@novell.com>
8767
8768         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8769         so we don't fire click events.
8770
8771         * Control.cs: 
8772         - (HandleClick) Check if validation was cancelled before  firing the click
8773         events (doubleclicks are fired, but not clicks)
8774         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8775         ContainerControl.set_ActiveControl, but in the case of non-selectable
8776         controls, like a Label, activecontrol is not set. 
8777
8778         * ButtonBase.cs: Only fire clicks if validation passes.
8779         
8780         Fixes #353310
8781
8782 2008-01-16  Geoff Norton  <gnorton@novell.com>
8783
8784         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8785         trunk
8786
8787 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8788
8789         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8790         SelectedPath, just display the default dialog instead of crashing.
8791         [Fixes bug #348989]
8792
8793 2008-01-16  Geoff Norton  <gnorton@novell.com>
8794
8795         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8796         AddExpose instead of trusting apples compositing manager which doesn't
8797         work for our use case.  Remove some dead code causing warnings and 
8798         redecorate some other code to prevent warnings.
8799
8800 2008-01-16  Geoff Norton  <gnorton@novell.com>
8801
8802         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8803         carbon signals us to redraw.  Fixes another portion of the flickering bug
8804
8805 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8806
8807         * Form.cs: Prevent the MdiParent property to be set when value is the same
8808         as value already set. Fixes bug #328019.
8809
8810 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8811
8812         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8813         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8814
8815 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8816
8817         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8818         mdi form is prevented to close.
8819
8820 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8821
8822         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8823         thanks to Andy Hume. Fixes bug #325433.
8824
8825 2008-01-16  Andreia Gaita <avidigal@novell.com>
8826
8827         * LinkLabel.cs: Reset focused_index when resellecting the control.
8828         Fixes #323190
8829
8830 2008-01-15  Geoff Norton  <gnorton@novell.com>
8831
8832         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8833         messages.
8834
8835 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8836
8837         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8838         of truncate.
8839
8840 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8841
8842         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8843         Form.AutoScale to false.
8844         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8845         AutoScaleBaseSize should be changed on Font change unless it has been
8846         explicitly set.
8847         [Fixes bug #353827]
8848
8849 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8850
8851         * MenuAPI.cs: On instance of MenuTracker check if source control is
8852         ToolStripOverflow and use properly method to find form.
8853         [Fixes bug #338511]
8854
8855 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8856
8857         [Fixes bug #323241 Transparent toolbar support]
8858
8859         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8860         is flat.
8861
8862         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8863         defined in control style to mimic win32 behavior.
8864
8865         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8866         it will be transparent.
8867
8868 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8869
8870         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8871         CreateParams for ToolBar controls.
8872
8873 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8876         FixedToolWindow, SizeableToolWindow, or None for border styles have
8877         different minimum sizes than regular forms.  Implemented to fix
8878         regression in PDN with toolbox being too wide.
8879
8880 2008-01-14  Andreia Gaita <avidigal@novell.com>
8881
8882         * HtmlElementCollection.cs: Implemented
8883
8884         * HtmlElement.cs: Implemented:
8885           - All
8886           - InnerHtml
8887           - InnerText
8888           - Id
8889           - Name
8890           - FirstChild
8891
8892         * HtmlDocument.cs: Implemented GetElementsByTagName.
8893
8894 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8895
8896         * Screen.cs: Stub BitsPerPixel to always return 32.
8897
8898 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8899
8900         * Form.cs: Implement RestoreBounds.
8901
8902 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8903
8904         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8905         Sebastien and his fabulous magical problem-finding machine:
8906         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8907         respect the value set.
8908
8909 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8910
8911         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8912         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8913
8914 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8915
8916         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8917         messages (to match .Net), we need to remove the capture ourselves.
8918
8919 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8922         will process the message and close our window.
8923         [Fixes bug #324328]
8924
8925 2008-01-10  Geoff Norton  <gnorton@novell.com>
8926
8927         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8928         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8929         window manager.
8930
8931 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8932
8933         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8934         failing test.
8935
8936 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8937
8938         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8939         Linux doesn't care, having a minimum matches MS and keeps the window
8940         from becoming too small to use window decorations.
8941         [Fixes bug #338996]
8942
8943 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8944
8945         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8946         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8947         control.  [Fixes bug #325419]
8948
8949 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8950
8951         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8952         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8953         were trying to dispose it.  [Fixes bug #352830]
8954
8955 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8956
8957         * Control.cs, Form.cs: Implement the necessary semantics for
8958         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8959         to determine if a focus rectangle should be drawn.
8960         * PropertyGrid.cs: Fix property visibility to match override.
8961         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8962
8963 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8964
8965         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8966         [Fixes bug #323552]
8967
8968 2008-01-09  Geoff Norton  <gnorton@novell.com>
8969         
8970         * XplatUICarbon.cs: Scroll windows in the correct direction.
8971
8972 2008-01-09  Geoff Norton  <gnorton@novell.com>
8973
8974         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8975         when the app is deactivated or spaces is enabled.
8976
8977 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8978
8979         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8980         extra separation pixel for the label rect origin if SmallImageList is
8981         null, and thus we don't need that separation between icon and label
8982         rects.
8983         Patch by Ernesto Carrea.
8984         Fixes # 340195.
8985
8986 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8987
8988         * StatusStrip.cs: Invalidate after completing a layout.  The base
8989         OnLayout does this, but we don't call the base.
8990         * ToolStripItem.cs: Revert the previous change to invalidate after
8991         the item moves.
8992         [Fixes bug #351341 better.]
8993
8994 2008-01-07  Geoff Norton  <gnorton@novell.com>
8995
8996         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8997         not a notification to exit the application.  Listen for WM_QUIT
8998         instead.
8999
9000 2008-01-07  Andreia Gaita <avidigal@novell.com>
9001
9002         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
9003
9004 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
9005
9006         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
9007         so it can repaint at the correct location.
9008         [Fixes bug #351341]
9009
9010 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9011
9012         * ListControl.cs: SelectedValue should return a null value if
9013         SelectedIndex is -1. Also, when setting it, it should throw an
9014         ArgumentNullException if the value is null, as well as taking
9015         into account the String.Empty value, instead of ignoring it (we have
9016         tests for that now).
9017         Fixes part of #324286.
9018
9019 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
9020
9021         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
9022         SelectionStart is updated after pressing enter.  Fixes bug #351918.
9023
9024 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9025
9026         * TextControl.cs: Revert a piece r92316 that prevented the fix
9027         from working when there were multiple tags in the text box.
9028         Fixes bug #351881.
9029
9030 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9031
9032         * TextControl.cs: Apply patch from Luke Page that prevents an
9033         NRE when determining the beginning of a paragraph.
9034         Fixes bug #351886.
9035
9036 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9037
9038         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
9039         caret gets moved with clicking away from a selected block of
9040         text.  Fixes bug #351885.
9041
9042 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9043
9044         * TextControl.cs: Apply patch from Luke Page that takes line
9045         alignment into account for mouse selection, so that center and
9046         right aligned text can be selected.
9047         Fixes bug #351881.
9048
9049 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9050
9051         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
9052         issues after loading an RTF file by using the correct line feeds.
9053         Fixes bug #351841.
9054
9055 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
9056
9057         * TextControl.cs: When deleting multiple line selections, we need
9058         to invalidate every line beginning at the first line of the selection.
9059         Patch from Luke Page fixes bug #351791.
9060
9061 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9062
9063         * ListControl.cs: When getting a CurrencyManager.PositionChanged
9064         event, don't set SelectedIndex if the number of items is 1. This is
9065         because, for the first item, PositionChanged is fired _before_
9066         ItemChanged (the place where we actually populate the items), and
9067         leave us in a temporary invalid state (since items collection is
9068         empty).
9069         Fixes #349655.
9070
9071 2008-01-04  Geoff Norton  <gnorton@novell.com>
9072
9073         * XplatUICarbon.cs:  Create native toolwindows instead of
9074         the managed drawing ones.
9075
9076 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9077
9078         * LineTag.cs: If the line doesn't have any characters, return
9079         0 for GetCharIndex.  Fixes an AOORE exception after certain
9080         caret movements.  Fixes bug #351683.  Patch by Luke Page.
9081
9082 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9083
9084         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
9085         is hit when there is selected text, only the selected text gets
9086         deleted, not the character in front of the selection as well.
9087         Fixes bug #351578.
9088
9089 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9090
9091         * ComboBox.cs: When the values are displayed, calculate the
9092         ComboListBox scrollbar's LargeChange based on the visible area's
9093         height and  the actuall ItemHeight, instead of calculating it
9094         based on MaxDropItems value, since it's not used by our _current_ 
9095         2.0 profile.
9096         Fixes #332366.
9097
9098 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9099
9100         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9101         Patch from Luke Page that fixes issues with font colors and styles
9102         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9103
9104 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9105
9106         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9107         from Luke Page.  This one fixes bug #349926.
9108
9109 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9110
9111         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9112         an item in the IBindingList source changes with
9113         ListChangedType.ItemAdded. Ignore for now firing the event for other
9114         changes, since we want to have tests for those cases as well.
9115
9116 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9117
9118         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9119         created.
9120
9121 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9122
9123         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9124         character.  This is effective because the typical usage of a
9125         TextBox is with a limited amount of fonts and characters, and
9126         the current implementation of TextBox measures everything one
9127         character at a time.  Another second or two speedup for bug #347238.
9128
9129 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9130
9131         * Control.cs: Rewrite the Font getter to only query the parent's
9132         Font property once instead of twice.  Since this operation is
9133         recursive, the queries were growing exponentially as the control
9134         tree got deeper.  Another second or two speedup for bug #347238.
9135
9136 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9137
9138         * Control.cs: Avoid setting a parent (and more importantly, updating
9139         the zorder of all its children) if the parent is already correct in
9140         WmShowWindow.  Decreases the startup time of the test case on bug
9141         #347238 from 35 seconds to 11 seconds.
9142
9143 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9144
9145         * X11Dnd.cs: When the dnd operation has started and we are 
9146         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9147         This is done to match .Net, which doesn't send those messages after
9148         dnd operation was completed/cancelled.
9149         Fixes #349922.
9150
9151 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9152
9153         * ToolStrip.cs: Previous change should be != null, not == null.
9154         Thanks Gert!
9155
9156 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9157
9158         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9159         user may have moved the mouse off the current item during the event.
9160
9161 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9162
9163         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9164         calling GetItemAt for every MouseMove event by also taking into
9165         account whether any mouse button is pressed (probably dragging); 
9166         if so, we can call GetItemAt, and if not, try to not call it 
9167         (GetItemAt can be quite expensive when used with a large number of items).
9168
9169 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9170
9171         * ListView.cs: Implement -finally- support for dnd, by calling
9172         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9173         authors list ;-).
9174         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9175         simple calculation of distances for all the items in the owner
9176         listview.
9177
9178 2007-12-21  Geoff Norton  <gnorton@novell.com>
9179
9180         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9181         for windows that are originally created as invisible.  Fixes missing
9182         main window in paint-mono.
9183
9184 2007-12-21  Geoff Norton  <gnorton@novell.com>
9185
9186         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9187         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9188         Pasteboard and Dnd methods.
9189
9190 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9191
9192         * ListBox.cs: When we got focus, give focus to first item if there
9193         wasn't any pervious focused item. Also update navigation to depend on
9194         SelectedIndex rather than FocusedItem, just as .Net does.
9195         Fixes #349174.
9196
9197 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9198
9199         * ListBox.cs: Both FindString and FindStringExact methods must do an
9200         case insensitive search, should allow the last valid index to be
9201         passed in the overload taking an initial index, and should also
9202         continue searching from the top back to the specified index when it
9203         reaches the bottom.
9204
9205 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9206
9207         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9208         redraw issue, and allows RichTextBox to draw colored text even while
9209         disabled or readonly.
9210
9211 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9212
9213         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9214         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9215         and doesn't grey text in a disabled RichTextBox.
9216
9217 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9218
9219         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9220         for many RTF commands: quad alignment, separate formatting for blocks
9221         inside groups, and ParDef support.  Makes the test case from bug #324589
9222         look much better.
9223
9224 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9225
9226         * LineTag.cs: Fix an error in the new Draw method that caused
9227         a crash when rendering the document on bug #324589.
9228
9229 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9230
9231         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9232         TextControl.cs: Apply patch from Luke Page that adds support
9233         for URL links in RichTextBox.
9234         [Fixes enhancement #342516]
9235
9236 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9237
9238         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9239         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9240
9241 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9242
9243         * ListBox.cs: When a key gets pressed, try to find a string
9244         if the key is a character or a digit.
9245         Fixes #343971.
9246
9247 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9248
9249         * TableLayoutPanel.cs: Remove some unused variables.
9250
9251 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9252
9253         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9254         we don't end up at an invalid date when we click the up/down
9255         spinner to change the month or year.  Fixes bug #348682.
9256
9257 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9258
9259         * Application.cs: Calling Exit in 2.0 should chain to the
9260         Exit (CancelEventArgs) version so it can be cancelled.
9261         * Form.cs: Create a flag to allow raising the Closing
9262         events to be skipped.  We raise them once in Application.Exit
9263         and don't want to raise them again when the Form is actually
9264         closed.  [Fixes bug #349073]
9265
9266 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9267
9268         * ToolStripDropDown.cs: Guard against an NRE when there
9269         hasn't been a mainform set in the application context.
9270         [Fixes bug #349108]
9271
9272 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9273
9274         * ListBox.cs: When SetBoundsCore gets called, besides
9275         calling UpdateScrollBars, update the value of
9276         last_visible_index, since we could need to show more items
9277         than before, and we need to let the paint routines know that.
9278         Fixes #344445.
9279
9280 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9281
9282         * ListView.cs: Add DesignerSerializationVisibility attribute to
9283         InsertionMark property.
9284         * ListViewItem.cs: Add same attribute to Position property.
9285
9286 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9287
9288         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9289         is 2.0 only.
9290
9291 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9292
9293         * ThemeWin32Classic.cs: Don't draw the background on a
9294         flat button if there is a background image.
9295         [Fixes bug #348649]
9296
9297 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9298
9299         * ListBox.cs: If we remove the item currently selected,
9300         remove it not only from SelectedItems, but also
9301         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9302         the items count decreased and focused_item has bigger value than that.
9303
9304 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9305
9306         * Control.cs: Perform our layout after we resize ourselves
9307         if we had to adjust our AutoSize.  Missed commit for bug
9308         #346246.
9309
9310 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9311
9312         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9313         we can provide an implementation of AutoSize.
9314         [Fixes bug #346246]
9315
9316 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9317
9318         * ListBox.cs: Add the internal overload Sort (bool paint),
9319         to indicate whether we actually need a paint or we will
9320         call Refresh ourselves. This way we don't request a paint
9321         _before_ having an updated and valid layout.
9322         Fixes #347233.
9323
9324 2007-12-12  Andreia Gaita <avidigal@novell.com>
9325
9326         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9327         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9328         properly invalidated. 
9329         Fixes #324237
9330
9331 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9332
9333         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9334         don't simply assign it to our internal group field, but instead 
9335         use our Group property, which should do all the neccessary work
9336         required to support groups. Fixes an issue reported to me (mail) by a 
9337         guy using this new feature.
9338
9339 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9340
9341         * Control.cs: Use Scale instead of ScaleControl to ensure the
9342         whole hierarchy gets scaled.
9343         [Fixes bug #347282]
9344
9345 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9346
9347         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9348         Parent property.  Doing this causes the control to be hosted by
9349         the Form instead of being a popup window.
9350         [Fixes bug #347665]
9351
9352 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9353
9354         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9355         at an index higher than Count, just use Add instead of Insert.
9356         [Fixes bug #347669]
9357
9358 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9359
9360         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9361         DrawPictureBox, this is handled by Control.PaintBackground.
9362         [Fixes bug #347276]
9363
9364 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9365
9366         * MenuAPI.cs: When process menu keys return true by default only if menu is
9367         active. Fixes bug #342892.
9368
9369 2007-12-09  Andreia Gaita <avidigal@novell.com>
9370
9371         * Control.cs: check if windows are actually mapped before
9372         trying to zorder. Fixes #342509, #346955
9373
9374 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9375
9376         * ListView.cs:
9377         * ListViewInsertionMark.cs:
9378         * ThemeWin32Classic.cs: Implement the drawing side of the
9379         new 2.0 ListView.InsertionMark property.
9380
9381 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9382
9383         * CurrencyManager.cs: Silence some debug spew.
9384
9385 2007-12-07  Geoff Norton  <gnorton@novell.com>
9386         
9387         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9388         masks for our children as well as siblings to avoid having to query
9389         Quartz for this information.
9390         * XplatUICarbon.cs: Implement a delegate based system to pass
9391         information to System.Drawing.  Implement Async methods.  Remove
9392         the hack for the resize thumb and imlpement a transparent Grow Box.
9393         Rework the messaging system to proplery create window's and messages,
9394         fixes TabControl.
9395
9396 2007-12-06  Andreia Gaita <avidigal@novell.com>
9397
9398         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9399         characters under alternate codepages. Patch from #340878
9400
9401 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9402
9403         * ListView.cs: When doing layout computations, set position in the
9404         ListView instances (we cache the position just as .Net does).
9405         * ListViewItem.cs: New internal setter method for Position. Also set
9406         position field as also available in 1.1, since we are going to use it
9407         now in the common case.
9408
9409 2007-12-06  Andreia Gaita <avidigal@novell.com>
9410
9411         * Control.cs: When removing controls, get the actual container
9412         to notify about active control changes. Fixes 341314.
9413
9414 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9415
9416         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9417
9418 2007-12-05  Andreia Gaita <avidigal@novell.com>
9419
9420         * Control.cs: When updating the zorder, ignore windows that are not
9421         mapped. Fixes #342509
9422
9423 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9424
9425         * ListViewItem.cs: Actually implement serialization on this class.
9426
9427 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9428
9429         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9430         LinkCollection. Spaces to tabs, and removed extra tabs.
9431
9432 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9433
9434         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9435           tests to fail (hopefully).
9436
9437 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9440         the image margin so custom renderers can correctly place it.
9441
9442 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9443
9444         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9445         so custom renderers can correctly place it.
9446
9447 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9448
9449         * Application.cs: Let WM_CHAR messages flow through to controls
9450         hosted in Strips.  [Fixes bug #343972]
9451
9452 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9453
9454         * ToolStripManager.cs: Guard against an NRE I ran into.
9455
9456 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9457
9458         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9459         a Link is manually added to the Links collection, we need to set
9460         its owner, so it can invalidate properly.
9461         [Fixes bug #344012]
9462
9463 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9464
9465         * ListView.cs: When changing ListViewItem.Position (which calls
9466         ListView.ChangeItemLocation), invalidate not only the area
9467         corresponding to the main item, but also to the area occupied
9468         by the items being moved.
9469
9470 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9471
9472         * ListView.cs: When changing the position of a given item,
9473         don't use item bounds, but item areas (which includes the item spacing
9474         between them). Also, use first/last position if the requested
9475         position is outside bounds (as .Net does). Invalidate the previous and
9476         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9477         in a specific position, instead of directly accessing Items collection
9478         (this is done to get the right item - remember an Item can have a
9479         different position in the grid than in the Items collection).
9480
9481 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9482
9483         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9484         area will be used in DrawString. Fixes bug #343364.
9485
9486 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9487
9488         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9489         screen width. Partially fixes bug #343364.
9490
9491 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9492
9493         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9494         code inside recalculate, it makes code more simple.
9495
9496 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9497
9498         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9499         between update or add icon. Fixes bug #324344.
9500
9501 2007-11-21  Andreia Gaita <avidigal@novell.com>
9502
9503         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9504         window manager, since that stretches the drawing area to include
9505         the window decorations, and they get hidden. Reverts r84444 and fixes
9506         #335849 and #342790 (mdi and pdn3 regression)
9507
9508 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9509
9510         * ListView.cs: When setting focused item, try to give focus to the
9511         previous one _only_ if the previous one remains valid. 
9512         Fixes #342504.
9513
9514 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9515
9516         * Application.cs: Revert r89650, as it broke a common case to fix
9517         an obscure case.  Fixes bug #342606.
9518
9519 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9520
9521         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9522
9523 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9524
9525         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9526         alignment. [Fixes #324228]
9527
9528 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9529
9530         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9531         [Fixes bug #342123]
9532
9533 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9534
9535         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9536         it prevent problems when empty captions. [Fixes #342141]
9537
9538 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9539
9540         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9541
9542 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9543
9544         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9545
9546 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9547
9548         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9549         but there isn't a MdiContainer.
9550         [Fixes bug #342358]
9551
9552 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9553
9554         * TextControl.cs: Don't recalculate document if the recalc_start and
9555         recalc_end hasn't changed.
9556         [Fixes bug #342505]
9557
9558 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9559
9560         * DataGridViewTextBoxCell.cs: Removed CWL.
9561
9562 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9563
9564         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9565
9566 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9567
9568         * TextControl.cs: Missed some code for bug 341534 to trigger a
9569         recalculation when the font changes.
9570
9571 2007-11-16  Andreia Gaita <avidigal@novell.com>
9572
9573         * Control.cs: When updating the zorder, check if the child to update is
9574         the same control that is set to always be on top (i.e., scrollbars), and 
9575         just put it on top directly. Fixes BadMatch error on pdn3
9576
9577 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9578
9579         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9580
9581 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9582
9583         * Control.cs: Don't perform a new layout when a label changes its text,
9584         cause label handles its own autosizing.
9585         [Fixes bug #342077]
9586
9587 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9588
9589         * ListView.cs: Implement 2.0 FindNearestItem methods.
9590
9591 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9592
9593         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9594         even if the rest of what Join does isn't supported.  Add some more
9595         support for vertical toolbars.
9596         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9597         [Fixes the application breaking parts of bug #341998]
9598
9599 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9600
9601         * ToolStripItem.cs: When determining if we have a check/image margin,
9602         we need to look at ShowCheckMargin as well as ShowImageMargin.
9603
9604 2007-11-15  Geoff Norton  <gnorton@novell.com>
9605
9606         * XplatUIOSX.cs: Rename to...
9607         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9608         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9609
9610 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9611
9612         * KeysConverter.cs: The default values should be an array of Keys, not
9613         strings.  Also, the array has more values for 2.0.
9614         [Fixes bug #341851]
9615
9616 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9617
9618         * Application.cs: Change ExecutablePath to use 
9619         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9620         [Fixes bug #323552]
9621
9622 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9623
9624         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9625         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9626         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9627         be ignored.  Create a new GetLineEnding that can specify which types of
9628         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9629         [Fixes bug #324274]
9630
9631 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9632
9633         * TextBoxBase.cs: As we loop through each line changing the font, tell
9634         the document that the line needs to be recalculated.  Fixes bug #341534.
9635
9636 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9637         [Another round of refactoring]
9638         * Line.cs: Add DeleteCharacters.
9639         * LineTag.cs: Add Delete.
9640         * TextBoxBase.cs: Update to use new methods.
9641         * TextControl.cs: Refactor the Delete* methods.
9642
9643 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9644
9645         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9646         the patch. [Fixes #324856]
9647
9648 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9649
9650         * ListView.cs:
9651         * ListViewItem.cs: Add an initial implementation of
9652         2.0 ListViewItem.Position getter.
9653
9654 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9655
9656         * ListView.cs: Add a reordered_items_indices array, to allow us
9657         to have a different sorting than that of Items (the sorting in Items
9658         could not match the actual sorting in screen). This is needed to
9659         implement a pair of 2.0 features.
9660         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9661         actual position in the ListView grid, since it could have a position
9662         different than its Index (position in ListViewItemCollection). 
9663
9664 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9665
9666         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9667         not draw partial lines.
9668         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9669         LineLimit flag from the base is preserved.
9670         Fixes the windows part of bug #338965.
9671
9672 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9673
9674         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9675         so that it can be canceled in KeyPress.
9676         Fixes bug #340078.
9677
9678 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9679
9680         * ListView.cs: In ItemControl, reset mouse-handling related
9681         fields even if we dont' have items (we still should reset them when
9682         we had items but then called Items.Clear). Partially based in a patch
9683         by George Giolfan.
9684         Fixes #338399.
9685
9686 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9687
9688         * Application.cs: In ProductVersion first try AssemblyFileVersion
9689         before falling back to assembly version. Fixes bug #339787.
9690
9691 2007-11-08  Andreia Gaita <avidigal@novell.com>
9692
9693         * HtmlElement.cs: Implement InnerText setter.
9694         * WebBrowserBase.cs: Implement Navigated event support.
9695         Add flag to track when the browser "document" is ready to be retrieved.
9696         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9697         Make sure browser document is ready before retrieving it.
9698         Clean up cached objects (document) when moving to a new page through
9699         any of the navigation methods.
9700         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9701         Implement OnNavigated event.
9702
9703 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9704
9705         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9706         DrawLinkLabel, this is handled by OnPaintBackground.
9707         Fixes bug #339565, part II.
9708
9709 2007-11-07  Andreia Gaita <avidigal@novell.com>
9710
9711         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9712         getting a Select call on click, so this call needs to be here for now.
9713         Unfixes #325809
9714
9715 2007-11-07  Geoff Norton  <gnorton@novell.com>
9716
9717         * OSXStructs.cs: Add the kEventClassApplication constants.
9718         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9719         application is deactivated otherwise Menu overlays linger on top of
9720         other application windows.
9721
9722 2007-11-07  Geoff Norton  <gnorton@novell.com>
9723
9724         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9725         dont support cursors yet anyways.  This allows Reflector to run.
9726
9727 2007-11-07  Geoff Norton  <gnorton@novell.com>
9728
9729         * XplatUIOSX.cs: Implement DragSize.
9730
9731 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9732
9733         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9734         ItemControl, request the focus, as .Net does. This is needed after 
9735         Control does not request focus anymore when it receives a
9736         WM_LBUTTONDOWN.
9737
9738 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9739
9740         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9741         Remove the DrawImage call from OnPaint.
9742         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9743         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9744         but before we draw the text for DrawLabel and DrawLinkLabel.
9745         Fixes bug #339565.
9746
9747 2007-11-05  Andreia Gaita <avidigal@novell.com>
9748
9749         * Control.cs: Remove select call on click. Fixes #325809
9750
9751 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9752
9753         * ListViewItem.cs: Add 2.0 Position property getter.
9754
9755 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9756
9757         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9758         Also, to make it work properly, change item's BackColor and
9759         BackgroundImageLayout as needed.
9760         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9761         in ListView.ItemControl when drawing items; just let the Control
9762         base implementation fill it.
9763
9764 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9765
9766         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9767         as well as adding a custom 'dummy' Converter, as .net does.
9768
9769 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9770
9771         * PropertyGridView.cs: When clicking drop-down button,
9772         select an index in the listbox only if our standard values collection 
9773         has one or more items.
9774
9775 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9776
9777         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9778         property.
9779
9780 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9781
9782         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9783         the value is not changed. This ensure a pushed button remains in that
9784         state when clicked again. When switching the value of PropertySort
9785         between Categorized and CategorizedAlphabetical, do not update the
9786         grid items and do not fire a PropertyChangedEvent. When clicking the
9787         sorting buttons, do not modify the PropertySort value when switching
9788         between Categorized and CategorizedAlphabetical but only update the
9789         button state.
9790
9791 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9792
9793         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9794         formatting.
9795         * PropertyGrid.cs: Also put Categorized button in pushed state when
9796         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9797         for help description label.
9798
9799 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9800
9801         * ListView.cs: When calculating the biggest item for a given column,
9802         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9803         the item's width.
9804
9805 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9806
9807         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9808         value for PropertySort on 1.0 profile. PropertySortChanged event
9809         should only be fired on 2.0 profile. Fixed NullReferenceException
9810         in UpdateSortLayout when PropertyGrid contains no items.
9811
9812 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9813
9814         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9815         [Fixes bug #338554]
9816
9817 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9818
9819         * ListViewItem.cs: Implement 2.0 IndentCount property.
9820
9821 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9822
9823         * X11Dnd.cs: When sending status in a dnd operation, compare current
9824         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9825         the later is only created when a Winforms application is both the
9826         source and the target, but not when we are the target only.
9827         Fixes part of #324251.
9828
9829 2007-11-01  Geoff Norton  <gnorton@novell.com>
9830
9831         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9832         order of Z-Order.
9833         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9834         children out of the drawing view on mac.
9835         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9836         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9837         
9838 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9839
9840         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9841         on the non-hosted-control part of it shouldn't do anything.
9842         Fixes part of bug #327498.
9843
9844 2007-11-01  Andreia Gaita <avidigal@novell.com>
9845
9846         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9847
9848 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9849
9850         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9851         it does not use flow through to controls that are hosted in menus.
9852         Same with mouse clicks.
9853         * Form.cs: Don't close all menus on click if the click is on a
9854         control hosted in a menu.
9855         Fixes part of bug #327498, and part of bug #325969.
9856
9857 2007-10-31  Andreia Gaita <avidigal@novell.com>
9858
9859         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9860
9861 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9862
9863         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9864         Addresses an issue raised in bug #336218.
9865
9866 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9867
9868         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9869         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9870
9871 2007-10-30  Andreia Gaita <avidigal@novell.com>
9872
9873         * ContainerControl.cs: Check if the active control is a
9874         child of a removed control and update active_control accordingly.
9875         Fixes #329718
9876
9877 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9878
9879         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9880         or the MaxDate.  Fixed bug #337693.
9881
9882 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9883
9884         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9885         after calling SetWindowLong for a form, to force an immediate NC refresh.
9886         Fixes first part of bug #325150.
9887
9888 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9889
9890         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9891         simple.  Fixes the last part of bug #322668.
9892
9893 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9894
9895         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9896         needs to be TopMost as well, or else the MessageBox is under the form.
9897         Patch by George fixes bug #325300.
9898
9899 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9900
9901         * X11Dnd.cs: When starting a new drag operation, reset the static
9902         'dropped' field to false (previously the implementation didn't reset
9903         it and got confused after the first drag).
9904         Fixes #325071.
9905
9906 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9907
9908         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9909         items instead of re-creating them all. For this purpose we now cache
9910         both CategoryGridEntry items and the GridEntries for the main object's
9911         properties.
9912         * GridItem.cs: Make SetParent method abstract.
9913         * GridEntry.cs: Override the SetParent method (already there, but now
9914         we override it).
9915         Fixes #324866.
9916
9917 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9918
9919         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9920         depending on its depth (as .Net does). Update the needed values in
9921         MouseDown handler. Also draw the plus/minus rect after the label,
9922         so we don't draw on top of it.
9923
9924 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9925
9926         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9927         processed by forms or controls when menu is active. [Fixes #333548]
9928
9929 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9930
9931         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9932         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9933         focus on mouse over.
9934
9935 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9936
9937         * TextControl.cs: Code cleaning, simplifying.
9938
9939 2007-10-24  Geoff Norton  <gnorton@novell.com>
9940
9941         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9942         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9943
9944 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9945
9946         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9947         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9948
9949 2007-10-24  Andreia Gaita <avidigal@novell.com>
9950
9951         * SendKeys.cs: apply jpobst's patch to bug #332409
9952
9953 2007-10-23  Andreia Gaita <avidigal@novell.com>
9954
9955         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9956         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9957         for some reason
9958
9959 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9960
9961         * PropertyGridView.cs: If a property has an UIEditor available,
9962         make the drop-down/editor button available only if the property
9963         is _not_ read only.
9964
9965 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9966
9967         * PropertyGridView.cs: Don't make the grid item textbox 
9968         editable when a drop-down control is available, but 
9969         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9970         true. The same bur the color of the grid item value's label.
9971
9972 2007-10-22  Geoff Norton  <gnorton@novell.com>
9973
9974         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9975         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9976         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9977         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9978         obscure scroll/status bars.
9979
9980 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9981
9982         * WindowsFormsSection.cs: Implement.
9983
9984 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9985
9986         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9987         closed see #325434 patch.
9988
9989 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9990
9991         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9992         see #325434 patch.
9993
9994 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9995
9996         * PropertyGridView.cs: When showing the textbox for a grid item,
9997         have two local variables to store the read-only and non-editable
9998         status of a grid item (we were previously using just one variable
9999         to do this, when actually they are slightly different).
10000         Fixes part of #325023.
10001
10002 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10003
10004         * PropertyGridView.cs: When showing a drop-down list, try to get the
10005         values using TypeConverter.ConvertTo (to convert to a string). Fixes
10006         part of #325023.
10007
10008 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10009
10010         * PropertyGrid.cs: When updating a property and populating sub grid
10011         items, remove the previous ones, and invalidate the specific area.
10012         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
10013         area behind a grid item.
10014         * GridItemCollection.cs: Add an internal Clear method, to allow us to
10015         clean the items if needed (specially for controls implementing 
10016         ICustomTypeDescriptor and returning a variable number of properties).
10017         Fixes #324865.
10018
10019 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
10020
10021         * TextControl.cs: Clean up and document the Insert function.
10022
10023 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10024
10025         * TextControl.cs: Make sure we know our start point for updating the view
10026         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
10027         update the view.
10028
10029 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10030
10031         * ListView: Couple of corcompare fixes.
10032
10033 2007-10-17  Geoff Norton  <gnorton@novell.com>
10034
10035         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
10036         the title caption of real window.
10037
10038 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10039
10040         * ErrorProvider.cs: Add the error provider's internal window to a 
10041         containercontrol when the parent changes.  [Fixes bug #329714]
10042
10043 2007-10-17  Geoff Norton  <gnorton@novell.com>
10044
10045         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
10046         When we make a new window; restore the old active window - fixes dialogs.
10047
10048 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10049
10050         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
10051         when modifying a property, and if found then invalidate as
10052         requested.
10053         Fixes part of #324865.
10054
10055 2007-10-17  Geoff Norton  <gnorton@novell.com>
10056
10057         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
10058         highly experimental.  Fixed coordinate translation.  Fixed window locations.
10059         Initial support for clipping. Implemented NC areas and menus.  Support for
10060         launching from command line from Will Johansson (wjohansson@atacomm.com).
10061         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
10062         wjohansson@atacomm.com)
10063         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
10064         Hwnds now track the existence of all of their children for Mac clipping.
10065     * XplatUI.cs: Re-enabled the native driver on the Mac.
10066
10067 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
10068
10069         * Line.cs: Move the InsertString function to here.
10070         * TextControl.cs: Cleanup some duplicate code, move some InsertString
10071         functionality to Line.
10072
10073 2007-10-17  Geoff Norton  <gnorton@novell.com>
10074
10075         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
10076
10077 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
10078
10079         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
10080         always setting value to true.
10081         * Form.cs: When changing AcceptButton, notify new and original button.
10082
10083 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
10084
10085         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
10086         a custom control that implements IButtonControl instead of an actual
10087         button.  [Fixes bug #334244]
10088
10089 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10090
10091         * Form.cs: Change SelectActiveControl to internal, we need to call it in
10092         MdiWindowManager.
10093         
10094         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
10095         active control when activate a new mdi window.
10096         
10097         [Fixes bug #330495]
10098
10099 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10100
10101         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10102         is already added.
10103         [Fixes bug #333617]
10104
10105 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10106
10107         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10108         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10109         so we always recalculate the whole document instead of just the new part.
10110         [Fixes bug #325082]
10111
10112 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10113
10114         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10115         when the mouse was to the left of the first character in the line.
10116
10117 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10118
10119         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10120         character, use the property instead of the variable so that the
10121         UseSystemPasswordChar property is taken into account.
10122         [Fixes bug #333748]
10123
10124 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10125
10126         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10127         folder" contex menu appears, actually add the new folder to it, even
10128         if the node is not currently selected. Still use SelectedNode in case 
10129         there wasn't found a node under the pointer.
10130         Fixes #325452.
10131
10132 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10133
10134         * ListViewItem.cs: When retrieving the focused state, the index check
10135         should be done only when ListView is in virtualmode, as it is an
10136         expensive check for normal mode.
10137
10138 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10139
10140         * ListViewItem.cs: Make the focus state information be stored
10141         in the ListView, not in the items. This is done to match the MS
10142         behaviour for items that are not yet part of a ListView control;
10143         besides that, since just one item can be focused at the same time,
10144         we save a little space in our items.
10145         Fixes part of #331643.
10146
10147 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10148
10149         * ComboBox.cs: When focus is lost, deselect the text. When setting
10150         text of control, select all text. Do not hide selection when control
10151         does not have focus. Fixes bug #333663.
10152
10153 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10154
10155         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10156         instead of ArgumentException when SelectionLength is set to negative
10157         value. Added same check to SelectionStart. Code formatting.
10158
10159 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10160
10161         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10162         or SelectionStart. Code formatting.
10163
10164 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10165
10166         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10167         indicating that there was not a previous drag-and-drop operation going
10168         on.
10169         Fixes part of #325071.
10170
10171 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10172
10173         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10174         AllowedEffect, don't let the drop operation happen. 
10175         Fixes #32580.
10176
10177 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10178
10179         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10180
10181 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10182
10183         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10184         is called.
10185
10186 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10187
10188         * Line.cs: Add a method that finds the tag that contains an x-coord.
10189         * LineTag.cs: Add a method that finds the character at an x-coord using
10190         a binary search, the old way was a linear search.
10191         * TextControl.cs: Change FindCursor to use the above new methods.
10192
10193 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10194
10195         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10196         value different than AllowedEffect). This should be possible to
10197         indicate that dragging is not possible in some control/area.
10198
10199 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10200
10201         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10202         descent internally when font changes instead of outside code being responsible
10203         for setting it.
10204         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10205         instead of accessing internal variables.
10206
10207 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10208
10209         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10210         remove special treatment for ArrangeIcons since it is already arranged.
10211
10212 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10213
10214         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10215         the Win32 backend uses Color.
10216         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10217         Refactor to store a Color instead of a Brush for Color.
10218
10219 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10220
10221         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10222         away.  I didn't realize I needed this when I refactored these earlier.
10223
10224 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10225
10226         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10227         store a Color structure and use the ResPool for back color instead of
10228         holding onto brushes.
10229
10230 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10231
10232         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10233         [Fixes bug #325592]
10234
10235 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10236
10237         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10238         to recalculate its size.  Fixes a part of bug #331052.
10239
10240 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10241
10242         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10243         button.  Fixes a part of bug #331052.
10244
10245 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10246
10247         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10248         the CreateParams.
10249         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10250         decorations.
10251         [Fixes bug #330986]
10252
10253 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10254
10255         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10256         doesn't exist in 1.1.  (Thanks jb!)
10257
10258 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10259
10260         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10261         class to allow us to use different backends on different platforms.
10262         Linux uses the current [Draw|Measure]String backend.  Windows uses
10263         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10264         of GDI+.  This leads to better looking text and more accurate measurements
10265         on Windows, fixing many of the reported issues.
10266         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10267
10268 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10269
10270         * FolderBrowserDialog.cs: When running on Windows,
10271         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10272         since we must match both "C:" and "C:\" forms. A little hackish, but
10273         works.
10274         Fixes #325247.
10275
10276 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10277
10278         * ListView.cs: When calling EndEdit (after editing an item),
10279         create a new instance of LabelEditEventArgs to keep clean the fields
10280         in case we get a new call to BeginEdit; also do Application.DoEvents
10281         to have focus in synch. This is a fix similar to TreeView's #325244.
10282
10283 2007-10-07  Andreia Gaita <avidigal@novell.com>
10284
10285         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10286         * WebBrowserBase.cs: Added dialog support, calling the
10287           WebBrowserDialogs classes for each specific dialog type.
10288
10289 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10290
10291         * ListView.cs: When the last item is focused and is removed,
10292         move the focus to the previous item (in Items order). This is what MS
10293         does.
10294         Fixes #330415.
10295
10296 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10297
10298         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10299         instead of the opposite (RemoveAt call Remove). This is a better
10300         approach since we don't need to to a pair of traversals when using
10301         RemoveAt.
10302
10303 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10304
10305         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10306         check that the node actually has nodes, and if not, move to the
10307         parent node instead. 
10308         Fixes #325265.
10309
10310 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10311
10312         * TreeView.cs: Move the previous change to the general case (to
10313         call Application.DoEvents in cases where the method was called by
10314         different places).
10315
10316 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10317
10318         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10319         call Application.DoEvents. This is neccessary when we get a call to
10320         BeginEdit from an AfterLabelEdit handler, because the focus always
10321         goes to the TreeView, even if we try to give it to our
10322         LabelEditTextBox. The call do Application.DoEvents seems to
10323         synchronize the focus, basically.
10324         Fixes #325244.
10325
10326 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10327
10328         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10329         should be false. This also removes some nasty recursive paths. Fixes
10330         part of #325244.
10331
10332 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10333
10334         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10335         state to normal. Also resize window when cascading. Fixes #325433. 
10336
10337 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10338
10339         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10340         DefaultForeColor, as drawing empty colored lines isn't very useful.
10341         [Fixes the not drawn lines part of bug #324358]
10342
10343 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10344
10345         * TextControl.cs: Move Line and LineTag classes into separate files to
10346         make things easier to find.
10347         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10348         * RichTextBox.cs: Capitalize LineTag.Length property access.
10349         - This is purely an organizational/formatting change, no logic changed. -
10350
10351 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10352
10353         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10354         text is empty.
10355
10356 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10357
10358         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10359         text is empty.
10360
10361 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10362
10363         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10364         prevent calling of OnBackColorChanged. Fixes #325321.
10365
10366 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10367
10368         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10369         because control can be disabled because owner is disabled.
10370
10371 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10372
10373         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10374         string.Empty, test failed from previous change.
10375
10376 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10377
10378         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10379         is null, not String.Empty.  See bug #323038.
10380
10381 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10382
10383         * TextControl.cs: Change the margins to match MS a little better.
10384         Still not perfect for X11 due to some DrawString differences, but
10385         is still an improvement over the old stuff.
10386         Partially fixes #324467.
10387
10388 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10389
10390         * FolderBrowserDialog.cs: When using MyComputer as 
10391         RootFolder, let absolute paths be considered as valid ones. Also, use
10392         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10393         for Windows compatibility.
10394         Partially fixes #325247.
10395
10396 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10397
10398         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10399         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10400         method, since it causes the dialog to not select folders directly
10401         under the root path (when setting SelectedPath property).
10402
10403 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10404
10405         * TreeNode.cs: When calling Expand/Collapse and need to call 
10406         ExpandBelow/CollapseBelow respectively, take into account
10407         partially visible nodes (previously Expanding/Collapsing
10408         a partially visible node in the bottom was not updating its +- sign).
10409
10410 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10411
10412         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10413         expand nodes below (ExpandBelow), scroll the entire Viewport
10414         area if the node is above it and not visible (instead of scrolling
10415         the area from node's Bottom, which applies only when the node is
10416         visible).
10417         Fixes #325266.
10418
10419 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10420
10421         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10422         node in the bottom area (as .Net does). This is done to preserve the
10423         scroll position when ExpandAll is called before handle is created for
10424         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10425         Fixes #324103.
10426
10427 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10428
10429         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10430         bottom area if we are in fact not using the vertical scroll bar.
10431         Fixes #324824.
10432
10433 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10434
10435         * Control.cs: Comment out a double buffering optimization that doesn't
10436         take into account invalidates created in OnPaint, causing the control
10437         to never be redrawn.  It would take quite a bit of work to work around
10438         this, but I left it commented with an explanation for later possible
10439         optimization.
10440         [Fixes bug #328681]
10441
10442 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10445         the text changes.
10446         * RadioButton.cs: Implement GetPreferredSizeCore.
10447         [Fixes bug #328672]
10448
10449 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10450
10451         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10452         corcompare stuffs.
10453
10454 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10455
10456         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10457         so that it doesn't get uninstalled on modal forms.
10458         * Control.cs: Install a sync context when a control is created.
10459         * WindowsFormsSyncronizationContext.cs: Create a private static control
10460         to invoke on.  This is easier than trying to find a created control we
10461         can use.
10462         [Fixes bug #327608]
10463
10464 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10465
10466         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10467         run loop, and uninstall it when done.
10468         * WindowsFormsSynchronizationContext.cs: Implement.
10469         [Fixes the common case in bug #327608]
10470
10471 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10472
10473         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10474         Use case-insensitive lookup of column name in indexer. Code
10475         formatting.
10476
10477 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10478
10479         * TreeNode.cs: When collapsing or expanding a node, check whether its
10480         change will affect the visible area (we were previously doing a
10481         IsVisible check, but that check is not enough since children nodes
10482         could be still visible). Fixes part of #325266.
10483
10484 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10485
10486         * TreeView.cs: Always select the first node when the TreeView gets
10487         focus if there is no currently selected node.
10488         [Fixes bug #324279]
10489
10490 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10491
10492         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10493         node being selected is null.
10494         [Patch from Yves Bastide fixes bug #326858]
10495
10496 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10497
10498         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10499         whether all the parent nodes are expanded.
10500         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10501         call RecalculateVisibleOrder if all previous nodes are expanded.
10502         Before that we were doing a IsVisible check, but sometimes the node
10503         is not in the visible area, but _should_already be ready, because of
10504         all previous nodes are expanded. Fixes #325259.
10505
10506 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10507
10508         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10509         portion of the item is clicked.
10510
10511 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10512
10513         * TextControl.cs: Do not tell the system to move the cursor if the
10514         textbox isn't focused.  Fixes part of bug #322668.
10515
10516 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10517
10518         * ComboBox.cs: When there are no items, do not show the dropdown if
10519         the down arrow is clicked.  Fixes part of bug #322668.
10520
10521 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10522
10523         * ToolStripComboBox.cs: Manually set the size of this control in the
10524         constructor, as it doesn't seem to be the same as DefaultSize.
10525         Fixes a failing monobuild test.
10526
10527 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10528
10529         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10530         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10531
10532 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10533
10534         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10535         Desktop.  This lets it work for people who have moved their desktops
10536         from the default location on windows.  For people who have not, both
10537         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10538
10539 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10540
10541         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10542         but when the base constructor sets this, the control is null.  Set it
10543         again in the constructor.  Fixes a failing monobuild test.
10544
10545 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10546
10547         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10548         get called.
10549         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10550         called.
10551
10552 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10553
10554         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10555         will handle it themselves.
10556         * ToolStripItem.cs: When deciding what the text of a tooltip should
10557         be, use the Text property instead of the text field.
10558         * ToolStripTextBox.cs: Handle tooltips.
10559         [Fixes bugs #325417 and #325973]
10560
10561 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10562
10563         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10564         left click.  Fixes the easy part of bug #325969.
10565
10566 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10567
10568         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10569         bug #325406, but set a minimum for StatusStrip to 22 to keep
10570         bug #325390 fixed.  I think this minimum would have been figured
10571         up automatically if the grip was actually a ToolStripItem, but it
10572         currently is not.
10573
10574 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10575
10576         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10577         as this is apparently the actual value used by .Net. Also apply
10578         ItemPadding in Details view only, and decrease the general width padding,
10579         to have only the needed. This should fix #324340 in Windows too.
10580
10581 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10582
10583         * ListViewItem.cs: Don't Invalidate item if parent is inside
10584         a BeginUpdate/EndUpdate block. This prevents to have differences
10585         between the ListView and items state, as well as avoid some exceptions
10586         there.
10587         * ListView.cs: Make 'updating' field internal.
10588
10589 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10590
10591         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10592         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10593         size if appropriate.
10594         Fixes reopened bug #325414.
10595
10596 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10597
10598         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10599         * ToolStripItem.cs: Invalidate before and after our new autosize when
10600         text changes.
10601         Fixes reopened bug #325390.
10602
10603 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10604
10605         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10606         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10607         #325044.
10608
10609 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10610
10611         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10612
10613 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10614
10615         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10616         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10617         #82734.
10618
10619 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10620
10621         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10622         item to select when the ToolStrip is selected.
10623         * ToolStripControlHost: Realign the control when the bounds or visibility
10624         change.
10625         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10626         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10627         preferred height.
10628         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10629         base.OnPaint.  Was causing text not to be drawn.
10630
10631 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10632
10633         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10634
10635 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10636
10637         * TreeView.cs: When creating the label edit text box,
10638         set is initially to Visible = false. This is done to
10639         prevent a confusion in the layout which makes it to lose
10640         focus when shown the first time. Fixes part of #82592.
10641
10642 2007-09-13 Andreia Gaita <avidigal@novell.com>
10643
10644         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10645
10646 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10647
10648         * ToolStrip.cs: Take Margin into account when calculating preferred
10649         size.  Also, allow preferred size to get smaller than the explicit
10650         size.
10651         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10652         First step towards fixing bug #82747.
10653
10654 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10655
10656         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10657         full row select background over the plus/minus glyph.  Also, turn
10658         off the focus rectangle for full row select since MS doesn't seem
10659         to ever paint it.  [Fixes bug #81839]
10660
10661 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10662
10663         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10664         This was causing keyboard opened dropdowns to lose focus.
10665         [Fixes bug #82803]
10666
10667 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10668
10669         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10670         ClientRectangle instead.  [Fixes bug #82838]
10671
10672 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10673
10674         * SplitContainer.cs: We can't reset Visible on every layout because
10675         someone may have set Visible = false explicitly on a SplitterPanel.
10676         Make sure when we switch orientation the SplitterDistance does not
10677         change.  Fixes two failing tests.
10678
10679 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10680
10681         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10682         TextRenderer, since the latter is only available in 2.0.
10683
10684 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10685
10686         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10687         * SplitContainer.cs: Implement FixedPanel layouting.
10688
10689 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10690
10691         * WebBrowserBase.cs: setup shutdown routine
10692
10693 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10694
10695         * Application.cs: Let keyboard events that are targetted 
10696                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10697                 propagate properly. Fixes keyboard handling on the webbrowser.
10698
10699 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10700
10701         * ListView.cs: When handling MouseUp event and we are 
10702         highligting a node with the mouse right button, don't trigger
10703         Before/AfterSelecting event, since we are not actually selecting
10704         the node.
10705
10706 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10707
10708         * TreeView.cs: When editing a node, modify the edit text box
10709         depending on the text length (as you are typing), like MS does.
10710
10711 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10712
10713         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10714         Override GetPreferredSizeCore to perform calculations.  Remove custom
10715         autosize logic.  [Fixes bug #82739]
10716
10717 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10718
10719         * TextBoxBase.cs: Modified should default to false.
10720
10721 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10722
10723         * Control.cs: Update the anchoring distances even when layout is supspended.
10724         Patch provided by George fixes bug #82805.
10725
10726 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10727
10728         * Control.cs: Provide a setter for ExplicitHeight.
10729         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10730         remove the hacks in here for requested_height.
10731         [Fixes bug #82749]
10732
10733 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10734
10735         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10736         Maximum to lower that its current Value caused an ArgumentException by setting
10737         the Value to the new Maximum.
10738
10739 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10740
10741         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10742         handle moves to the closest tick when it is being dragged.
10743         [Fixes bug #82751]
10744
10745 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10746
10747         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10748         can't let them count as real items when calculating where to merge in the
10749         user's items.  [Fixed bug #82786]
10750
10751 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10752
10753         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10754         who want to add a menu item directly onto a toolstrip.
10755         [Fixes bug #82775, part II]
10756
10757 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10758
10759         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10760         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10761         don't set it to available.
10762         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10763         [Fixes bug #82727, part II]
10764
10765 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10766
10767         * StatusStrip.cs: Change item placement to None if not visible.
10768         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10769         These should have been committed to fix 82723, but I missed them.
10770
10771 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10772
10773         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10774         Click, and that it is only called once.
10775         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10776         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10777         dropped down.
10778         [Fixes bug #82775]
10779
10780 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10781
10782         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10783         to match .Net.
10784         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10785         instead of 8, just like above. Partially fixes #82734.
10786
10787 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10788
10789         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10790         fixes #82734.
10791
10792         * ListView.cs: Remove extra space between rows in Details view (match
10793         .Net). 
10794         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10795         the DefaultFont.
10796
10797 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10798
10799         * Application.cs: Modified ProductVersion to return value of
10800         AssemblyInformationVersion if available, and fallback to assembly
10801         version. Fixes bug #82746. Code formatting.
10802         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10803         instead.
10804
10805 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10806
10807         * Control.cs: When updating ZOrder for a child control,
10808         take into account the implicit ones (we need it in our controls
10809         using them). Fixes #82642.
10810
10811 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10812
10813         * ToolStripItem.cs: Add support for animated images.
10814         [Fixes bug #82726]
10815
10816 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10817
10818         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10819         visible.  [Fixes bug #82727]
10820
10821 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10822
10823         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10824         so we repaint using the new size.  [Fixes bug #82723]
10825
10826 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10827
10828         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10829         option.  [Fixes bug #81779]
10830
10831 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10832
10833         * TreeView.cs: Override HandleClick because the StandardClick style is
10834         set to false.  According to MSDN (and testing), the click events should
10835         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10836
10837 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10838
10839         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10840         the border will disappear.  Fixes reopened #82653.
10841
10842 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10843
10844         * Control.cs: If the control is autosize, and its preferred size changes
10845         when it lays out its children, tell its parent so it can be re-layed out.
10846         Fixing some of the fallout from r85433.
10847
10848 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10849
10850         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10851         and CheckBox share some code.
10852
10853 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10854
10855         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10856         the TrackBar, not every mouse move.  [Fixed bug #82718]
10857
10858 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10859
10860         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10861         under 2.0 rendering.  [Fixes bug #82657]
10862
10863 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10864
10865         * TreeView.cs: If we found a TreeNode to display a context menu, but
10866         it doesn't have one to show, let the TreeView display its menu
10867         instead.  [Fixes bug #82680]
10868
10869 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10870
10871         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10872         OnPaintInternal instead.  Give the internal TextBox a Border property
10873         so it can draw itself more correctly.  [Fixes bug #82653]
10874
10875 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10876
10877         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10878
10879 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10880
10881         * ComboBox.cs: Adjust combobox button state to reflect current state when
10882         back to enabled = true. Fixes first issue of #82654.
10883
10884 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10885
10886         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10887         setting visible property.
10888
10889 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10890
10891         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10892         fix zorder for controls initially created as non visible. Fixes #82667.
10893
10894 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10895
10896         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10897         mimic win32 look. Fixes #82656.
10898
10899 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10900
10901         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10902         Stubs for new net 3.5 classes.
10903
10904 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10905
10906         * ListViewItem.cs: In ListViewItemCollection operations calculate
10907         Layout for owner as well as invalidate it. Fixes part of #82642.
10908
10909 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10910
10911         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10912         when returning Enabled.  [Fixes bug #82651]
10913
10914 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10915
10916         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10917
10918 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10919
10920         * ListView.cs: Put item padding info in a single place
10921         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10922         columns again.
10923         * ThemeWin32Classic.cs:
10924         * Theme.cs: Likewise.
10925
10926 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10927
10928         * ListView.cs: When a ListViewSubItem instance is invalidated,
10929         invoke Invalidate on parent ListViewItem, not parent ListView.
10930         Fixes #81570.
10931
10932 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10933
10934         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10935
10936 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10937
10938         * BindingMemberInfo.cs: Implement == and != operators.
10939
10940 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10941
10942         * HtmlElementEventArgs.cs: Implement properties.
10943
10944 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10945
10946         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10947
10948 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10949
10950         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10951         Add (string,string,string) to implement the imagekey.  It turns out, we
10952         use the requested imagekey whereas .Net does not.  So I broke ours to match
10953         theirs.  :(
10954
10955 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10956
10957         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10958
10959 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10960
10961         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10962
10963 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10964
10965         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10966         up-to-date. Fixes bug #82618.
10967
10968 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10969
10970         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10971         reflect document changes. Fixes #82367.
10972
10973 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10974
10975         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10976         as well as add new ones. This should make work the BackgroundImage
10977         property for ListView again.
10978
10979 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10980
10981         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10982         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10983         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10984
10985 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10986
10987         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10988         IsKeyLocked.
10989
10990 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10991
10992         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10993         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10994
10995 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10996
10997         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10998         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10999
11000 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11001
11002         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
11003
11004 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
11005
11006         * GridEntry.cs: Implement GetService.
11007
11008 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
11009
11010         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
11011         for label editting, make sure we focus back on the TreeView.
11012         [Fixes bug #82590]
11013
11014 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11015
11016         * ListView.cs: Add some 2.0 overrides.
11017
11018 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11019
11020         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
11021         because getter dont returns right value before handle creation. Thanks 
11022         to George. Fixes #82569.  
11023
11024 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11025
11026         * Theme.cs: Revert last patch, it causes error under win32. 
11027
11028 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
11029
11030         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
11031         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
11032         logical Desktop rather than the physical file system location. Fixes #82603. 
11033
11034 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
11035
11036         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
11037         for the patch. Fixes #82568.
11038
11039 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11040
11041         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
11042         methods.
11043
11044 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11045
11046         * ListViewInsertionMark.cs: New stubbed class.
11047
11048 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11049
11050         * FolderBrowserDialog.cs: When adding folder, immediately create the
11051         directory with temporary name and rename the directory when editing
11052         finishes. This matches MS. Ensure the node for the new folder is 
11053         selected and LabelEdit is disabled, when editing is either finished
11054         or cancelled.
11055
11056 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11057
11058         * TreeView.cs: When editing label of node, ensure node is visible.
11059
11060 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
11061
11062         * PropertyGridView.cs: Set the value only if it has changed.
11063
11064 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11065
11066         * ListView.cs: Some more code refactoring to add support sorting
11067         with groups (now for Details view). Remove unused code also.
11068
11069 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11070
11071         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
11072         Not a big fan of reacting immediately to a field in an EventArg, but that's
11073         the way it's done.  (This is part of the previous commit that got left out.)
11074
11075 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
11076
11077         * FolderBrowserDialog.cs: Removed need for separate description field.
11078         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
11079         has focus when dialog box is displayed again, regardless of what
11080         button was pressed the previous time. Set RootFolder and SelectedPath
11081         each time dialog box is displayed. This ensures the treeview is
11082         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
11083         when it does not have focus. Added support for more special folders.
11084
11085 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11086
11087         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
11088         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
11089         it resets the edit_args.
11090         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
11091         [Fixes bug #82577]
11092
11093 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
11094
11095         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
11096         button to match MS. Provide more meaningful exception message for
11097         invalid RootFolder value. Use zero-length string when SelectedPath
11098         is set to null. Allow non-rooted paths in SelectedPath, but ignore
11099         them in FolderBrowserTreeView. Allow folders to be created in
11100         RootFolder. Fixes bug #82576.
11101
11102 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11103
11104         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11105         since we need to take into account the group headers and the margin
11106         between them.
11107         * ListViewGroup.cs: Add a rows field to store the number of rows per
11108         group.
11109
11110 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11111
11112         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11113           Anyways, let's just follow the lead.
11114
11115 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11116
11117         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11118         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11119         controls in GetPreferredSizeCore.
11120         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11121         [Fixes bug #82488]
11122
11123 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11124
11125         * PrintDialog.cs: Need to instantiate the form variable here too.
11126
11127 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11128
11129         * ListView.cs: Do some reorganization to support sorting in groups,
11130         by doing the layout sequentially in ListView.Items. Also add support
11131         for the Default Group, which should be available for items with no
11132         group assigned.
11133         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11134         for storing layout info also.
11135         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11136         collection, as well as providing internal members to do a traversal
11137         including the default group (needed when doing layout/drawing).
11138         * ThemeWin32Classic.cs: When drawing group headers use internal
11139         ListViewGroupCollection members to take into account the default
11140         group.
11141
11142 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11143
11144         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11145
11146 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11147
11148         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11149         been created.  If handle is created, we want arror keys.  If we are editing
11150         a node, we want things like enter, esc, home, end, page up, page down.
11151         Allows Esc to work for FolderBrowserDialog.
11152
11153 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11154
11155         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11156         they close when ESC is pressed.  Thanks Andy!
11157
11158 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11159
11160         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11161         This way we can tell if this is a CommonDialog provided with mono, or one
11162         that is being implemented outside by a developer.  If it is an external one,
11163         the developer is responsible for showing their own form.  We were showing
11164         our blank form after the developer showed his.
11165         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11166         PageSetupDialog.cs: Instantiate form variable in our constructor.
11167         [Fixes bug #82531]
11168
11169 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11170
11171         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11172         and always return true.  [Fixes bug #81616]
11173
11174 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11175
11176         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11177         TextBox.  [Fixes bug #82549]
11178
11179 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11180
11181         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11182         or entered then do not close the dialog. Fixes bug #82539. Removed
11183         CWLs.
11184
11185 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11186
11187         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11188         code to this method. It is calling every time filter changes. This method
11189         will help to fix the bug #80887.
11190
11191 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11192
11193         * CheckBox.cs: Implement AutoSize calculation.
11194
11195 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11196
11197         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11198         * Theme.cs: Method declarations for 2.0 rendering path.
11199         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11200
11201 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11202
11203         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11204
11205 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11206
11207         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11208         only call Redraw on the parent one time.
11209
11210 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11211
11212         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11213           GetClipboardContent.
11214         * DataGridViewCell.cs: Implemented GetClipboardContent,
11215           GetEditedFormattedValue, GetFormattedValue.
11216         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11217
11218 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11219
11220         * TableLayoutStyleCollection.cs: corcompare fix.
11221
11222 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11223
11224         * DataObject.cs: Implemented retrieval of convertible / not convertible
11225           objects.
11226
11227 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11228
11229         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11230         ourselves.  This ensures the entire old bounds are repainted, in case our new
11231         size is smaller.  [Fixes bug #82518]
11232
11233 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11234
11235         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11236         flag to make fast handle of mouse events, without this the mouse move is
11237         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11238
11239 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11240
11241         * ListView.cs: When doing layout calculations don't use a ref
11242         param to keep the current item; instead use its Index value (this 
11243         is specially important when doing the layout with Groups
11244         and Items being sparse). Also don't take into account items added to
11245         the Group but not yet added to the main ListView.Items collection.
11246
11247 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11248
11249         * ListViewGroupCollection.cs: Forgot to mimic an issue
11250         in the indexer (don't assign the ListView owner for new values).
11251
11252 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11253
11254         * ListViewGroupCollection.cs: Make the string indexer use
11255         the int based indexer to re-use code, instead of duplicate the code.
11256         Also Redraw as needed and take into account null values.
11257
11258 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11259
11260         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11261         [Fixes bug #82481]
11262
11263 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11264
11265         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11266         when other buttons are clicked or navigated to.
11267
11268 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11269
11270         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11271           it's XplatUIX11 that attaches them.
11272
11273 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11274
11275         * DataGridView.cs: If a column has been added, recreate the editing row.
11276           Fixes #82226.
11277
11278 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11279
11280         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11281           of the tag to draw. Makes disappearing text show up again.
11282
11283 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11284
11285         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11286           Contents. Fixes #82487.
11287
11288 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11289
11290         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11291           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11292           
11293 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11294
11295         * BindingSource.cs: Implement this, dispose and getenumerator.
11296         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11297         out of AddInternal, throw it only on public Add calls. The 
11298         UsingWebBrowser sample was blowing up with this when setting the
11299         DataSource after adding DataBindings, so it's likely that .net
11300         only throws this exception when Add is called directly. 
11301         
11302         * ToolStripControlHost.cs: Return the hosted control's text
11303         property, and not the ToolStripItem one (it would always return
11304         the initial value).
11305         
11306         * HtmlDocument.cs: Implement GetElementById and All
11307         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11308
11309 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11310
11311         * Form.cs: Fix the max and min value for opacity (0~1).
11312
11313 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11314
11315         [Fixes #80118]
11316         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11317         returns datagrid font when is null. On setter permits null.
11318
11319         * DataGrid.cs:
11320         - When ResetHeaderFont set header font to null.
11321         - On EndInit set grid_style.DataGrid.
11322
11323 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11324
11325         * TabControl.cs: Fix regression in default padding x.
11326
11327 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11328
11329         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11330
11331 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11332
11333         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11334         not 2. Fixes #82229.
11335
11336 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11337
11338         * TabControl.cs: Fix tab size when image height is less than text height.
11339         Partially fixes #81837.
11340
11341 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11342
11343         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11344         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11345         from taskbar and keep it on "alt_tab". Fixes #81722.
11346
11347 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11348
11349         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11350         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11351         Fixes #80877 and #79418.
11352
11353 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11354
11355         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11356         between position and one of the screen borders. Fixes #82349.
11357
11358 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11359
11360         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11361         the MessageBox in the taskbar. Fixes #82457.
11362
11363 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11364
11365         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11366         than icon. Fixes #82468.
11367
11368 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11369
11370         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11371         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11372           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11373           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11374         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11375           FormBorderStyle to decide if we're calculating a new size from the
11376           client size or not. CreateParams: Don't fake tool windows, only the X11
11377           backend manages toolwindows manually.
11378
11379 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11380
11381         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11382         ObjectDisposedException.
11383
11384 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11385
11386         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11387         in OnLoad should not have any effect.  [Fixes bug #82470]
11388
11389 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11390
11391         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11392         paint for controls that create their own ToolTipWindow instead of
11393         going through ToolTip.
11394
11395 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11396
11397         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11398
11399 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11400
11401         * ListViewGroupCollection.cs: Use generic List instead of an
11402         ArrayList, since this collection is 2.0 only.
11403
11404 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11405
11406         * ToolTip.cs (Hide): Made public to make the build work (should
11407         this not be public?).
11408
11409 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11410
11411         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11412         ToolTipWindow.
11413         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11414
11415 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11416
11417         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11418         PopupEventHandler.cs: Make these internal for 1.1.
11419         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11420         use ToolTipWindow internals.
11421         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11422         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11423
11424 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11425
11426         * X11Dnd.cs: Add a null check.
11427
11428 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11429
11430         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11431           nothing else succeeds. Fixes #82453.
11432
11433 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11434
11435         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11436           rectangle if we're painting to another window than the one the paint
11437           message was generated on. Simplify the code somewhat, which makes
11438           PaintEventEnd also simpler.
11439
11440 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11441
11442         * Control.cs: When changing parent of a form, let the form decide whether
11443           XplatUI.SetParent should be called or not.
11444         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11445           recreating the handle. If the new parent's handle isn't created, don't
11446           recreate our handle, just destroy it. CreateParams: Check if the
11447           parent's handle is created before fetching it.
11448
11449 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11450
11451         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11452           Update calls to PaintEventStart/End to take a Message argument.
11453         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11454           take a Message argument.
11455         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11456           Message argument, and handle the case where we don't paint to the window
11457           for which the paint message was generated.
11458
11459 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11460
11461         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11462           Marshal.GetLastWin32Error. Plug nasty memory leak in
11463           PaintEventStart/End, we were creating a DC we weren't releasing.
11464
11465 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11466
11467         * ListView.cs: Add Groups support in Details view. Also have a small
11468         method to do the layout of the group header. Don't use a separate
11469         method to do the groups calculation in Icons view, since our methods
11470         are now a little simpler.
11471         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11472         `Bounds'.
11473         * ThemeWin32Classic.cs: Likewise.
11474
11475 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11476
11477         * Application.cs: Add FilterMessage method and rework our message loop
11478         logic to use it.
11479
11480 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11481
11482         * Application.cs: Add some methods and stub a few methods that are
11483         pretty much never used.
11484
11485 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11486
11487         * TreeNode.cs: Add some serialization methods.
11488
11489 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11490
11491         * ListView.cs: In ListViewItemCollection have a 
11492         'is_main_collection' field to not modify ListViewItem.ListView
11493         when using it as ListViewGroup.Items (and not ListView.Items)
11494         and also don't modify selection state (.Net behaviour). 
11495         Instead, set group for items contained in a ListViewGroup.Items collection.
11496         * ListViewItem.cs: Simplify some code in Group setter.
11497         * ListViewGroup.cs: use the new .ctor to pass the current instance
11498         to the ItemsCollection.
11499         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11500         instances when adding/removing. Also make Remove use RemoveAt, which
11501         should perform better.
11502
11503 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11504
11505         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11506         that crept into the 1.1 profile.
11507
11508 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11509
11510         * ToolBarButton.cs: Implement ImageKey.
11511
11512 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11513
11514         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11515
11516 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11517
11518         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11519           created, it might have gotten destroyed since we last checked. Fixes
11520           #82405.
11521
11522 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11523
11524         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11525         tooltip will hide when mouse is moved off the control.
11526         [Fixes bug #82407]
11527
11528 2007-08-11 Andreia Gaita <avidigal@novell.com>
11529
11530         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11531         using Mono.Mozilla for loading and navigating webcontrol
11532         with xulrunner.
11533         The initial implementation was done on 
11534         /trunk/mozembed/tests/browser , and copied here.
11535
11536 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11537
11538         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11539         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11540
11541 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11542
11543         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11544           RowTemplateFull: throw an exception if a column doesn't have a template.
11545         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11546           add the row just before it.
11547         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11548           selected.
11549         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11550           DataGridView field to be able to reach the grid's editing row.
11551
11552 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11553
11554         * ToolTip.cs: If the control's handle hasn't been created when it has a
11555         tooltip set on it, don't check to see if we need to show the tooltip.  This
11556         check was causing the control's handle to be created.
11557         [Fixes bug #82399]
11558
11559 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11560
11561         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11562                                         1.1             2.0
11563         Handle Not Created      -1              0
11564         Handle Created          0               0
11565         [Fixes bug #82371]
11566
11567 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11568
11569         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11570         [Fixes bug #82348]
11571
11572 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11573
11574         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11575         * ToolTip.cs: Implement some properties and owner draw.
11576
11577 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11578
11579         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11580           show them again, since setting visibility causes a paint, causing an
11581           endless loop (instead use a temporary and set it all when it's known if
11582           they should be shown or not). Fixes #79265.
11583
11584 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11585
11586         * DataGridView.cs: Only do a full column/row selection if a header was
11587           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11588           isn't pressed, deselect everything before selecting something.
11589
11590 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11591
11592         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11593           behaviour according to bug #81075 - they are returned in the order they
11594           are selected. Fix HitTest to check if the point is within any of the
11595           headers. Allow for row/column selection when in ColumnHeader or
11596           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11597           the row and column to call when their selected state changes, and
11598           updated selected_[rows|columns] whenever SetSelected* is called.
11599         * DataGridViewBand.cs: Initialize isRow correctly. Call
11600           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11601           add a SelectedInternal to avoid StackOverflows.
11602         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11603           ReadOnly no matter what.
11604         * DataGridViewSelectedColumnCollection.cs,
11605           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11606           the items in reverse order (just as MS does...)
11607
11608 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11609
11610         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11611         itself, not part of a mnemonic.  [Fixes bug #82378]
11612
11613 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11614
11615         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11616         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11617           the DGV, the column, the row, or the cell itself is readonly.
11618
11619 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11620
11621         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11622         OSVersion.Platform.
11623         * FileDialog.cs: Same.
11624         * TextRendered.cs: Same.
11625         * FolderBrowserDialog.cs: Same.
11626         * TextBoxBase.cs: Same.
11627         * Application.cs: Same.
11628         * Cursors.cs: Same.
11629         * ThemeClearLooks.cs: Same.
11630
11631 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11632
11633         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11634         instead of duplicating these checks everywhere.
11635         * FileDialog.cs: Use case-insensitive comparison for populating the
11636         DirComboBox when not running on unix. Fixes bug #82385.
11637         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11638         "Look in".
11639
11640 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11641
11642         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11643           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11644           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11645           cell and column selection with ctrl and shift pressed. Call the correct
11646           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11647           the corresponding virtual method (PaintBackground to paint background,
11648           etc).
11649         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11650           either the column, row or the cell itself is selected.
11651         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11652           OnRowsAdded.
11653         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11654           here. When the row is selected, don't select all cells. Each cell now
11655           queries the row to see if the row is selected.
11656
11657 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11658
11659         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11660           SelectionMode.
11661
11662 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11663
11664         * ListView.cs: In ListViewItemsCollection check that owner is
11665         not null before trying to access it (this happens quite often
11666         using Groups). Also don't duplicate calls by calling CollectionChanged
11667         method.
11668
11669 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11670
11671         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11672         when we are dismissed to clear keyboard mnemonics.
11673         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11674         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11675         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11676         was activated by keyboard or the OS tells us to always draw them.
11677         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11678         [Fixes bugs #82376, #82377]
11679
11680 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11681
11682         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11683         shot at having it because Alt was pressed.
11684         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11685         the first real menu item.
11686         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11687         a mnemonic if Text is null.
11688         [Fixes bug #82374]
11689
11690 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11691
11692         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11693         search do check whether the item is already contained in the
11694         collection or not; instead check if the owner of the item is the same
11695         as ours. Also, remove a redundant check in the same method. 
11696
11697 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11698
11699         * Control.cs: Allow the clip region to be set back to null.
11700         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11701         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11702
11703 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11704
11705         * GridEntry.cs: Add a null check.
11706         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11707           entries. Fixes #82297.
11708
11709 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11710
11711         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11712         for 2.0.
11713
11714 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11715
11716         * ListBox.cs: Implement ScaleControl.
11717
11718 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11719
11720         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11721           have a menu strip.
11722         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11723           parent has a menu strip. Fixes #81689.
11724
11725 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11726
11727         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11728           moments, so apply some fuzzy logic to determine if the mouse is still
11729           inside a control or not. Fixes #82288 (for the third time).
11730
11731 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11732
11733         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11734           Don't create the child if it has been disposed already (may happen if
11735           the user closes the form the Load event).
11736
11737 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11738
11739         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11740           #82288.
11741
11742 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11743
11744         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11745           might call us after we've been destroyed, in which case our own private
11746           parent field is null. Fixes #82326.
11747
11748 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11749
11750         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11751         check for setting the dropdown's owner.
11752
11753 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11754
11755         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11756         before removing system menu items.
11757
11758 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11759
11760         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11761         folding.
11762         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11763         folding.
11764         * ToolStrip.cs: Add a null check to mnemonics.
11765         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11766         no ConnectedArea.
11767         [Fixes most of bug #81689]
11768
11769 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11770
11771         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11772
11773 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11774
11775         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11776
11777 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11778
11779         * DataGridViewCell.cs: EditType: returns
11780           DataGridViewTextBoxEditingControl always.
11781
11782 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11783
11784         * TextRenderer.cs: Remove the LineLimit string format flag from the
11785         DrawString fallback method so that things like buttons that aren't
11786         tall enough to draw a full line will still draw part of the text.
11787         [Fixes part of bug #82272]
11788
11789 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11790
11791         * DataGridView.cs: Implemented AutoResizeColumn(s).
11792         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11793           according to the Alignment.
11794         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11795           Implement alignment and padding when painting.
11796         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11797           exists.
11798         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11799           way.
11800         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11801           a column is added.
11802
11803 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11804
11805         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11806         which is internal.
11807
11808 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11809
11810         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11811         hide GetPreferredSize from public API.
11812         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11813         * ToolStripItem.cs: Stub out drag and drop methods and events.
11814         * ToolStripManager.cs: Stub out Save/LoadSettings.
11815         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11816         * ToolStripPanel.cs: Fix corcompare error.
11817         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11818         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11819         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11820
11821 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11822
11823         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11824         bounds height instead of PreferredHeight.  Puts things back the way 
11825         they were for height while still fixing the width.  Fixes broken unit
11826         tests.
11827
11828 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11829
11830         * Binding.cs: Implement 2.0 constructors and add a null check.
11831
11832 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11833
11834         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11835           and fix row index (off by one).
11836
11837 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11838
11839         * PropertyGridView.cs: Remove debug output.
11840
11841 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11842
11843         * Control.cs: We need to reset the is_created flags when the handle is
11844           destroyed. Fixes #82187.
11845         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11846           client coordinates if the window doesn't have a parent.
11847           Win32GetParent returns the parent or the owner, and for top-level
11848           windows with no parent (but with an owner) we were calculating the
11849           location from the location of the owner.
11850         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11851           form has been disposed.
11852         * MdiClient.cs: Add a null-check.
11853
11854 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11855
11856         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11857         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11858         so we can provide an implementation that returns the current width
11859         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11860         [Fixes bug #82233]
11861
11862 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11863
11864         * ListView.cs: Add support for navigating items in Groups mode, by
11865         creating a big matrix containing all rows and cols of all groups. When
11866         are in other mode than Details, pressing Up should have a similar
11867         behaviour as that one of Down (moving to the next available column if
11868         current one doesn't have an item in the requested row). Also, don't
11869         proceed to use groups if ShowGroups is false.
11870         * ListViewGroup.cs: Add an internal int field to store the starting
11871         row of the group (used by the big matrix used for navigating the
11872         ListView).
11873         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11874         false.
11875
11876 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11877
11878         * ToolStripDropDown.cs: When we do Show, start with the 
11879         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11880         modify the direction to keep it on screen.  [Fixes bug #82210]
11881
11882 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11883
11884         * FileDialog.cs: Accept any FilterIndex value, and store it
11885         unmodified. When FilterIndex is less than 1, or greater than number
11886         of filters, then default to first filter. Only add filter extension to
11887         file if user did not specifiy an extension. When type of dialog is
11888         OpenFileDialog and DefaultExt is set, then only use filter extension
11889         if: CheckFileExists is true and no file wih the default extension
11890         exists, or CheckFileExists is false, and user specified file does not
11891         exist. When CheckFileExists is true, then add first extension of 
11892         selected filter that matches existing file. Perform checks for
11893         existing file, overwrite and create after extension has been added to
11894         file name. When CheckFileExists is true and type is SaveFileDialog,
11895         then only consider first filter extension if DefaultExt is set.
11896         When CheckFileExists is true, then ignore DefaultExt if file with that
11897         extension does not exist. Also perform check for existing file when
11898         type is SaveFileDialog. Changed some field to constants.
11899
11900 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11901
11902         * ListView.cs: Take into account the region used by header
11903         control when doing the vertical scroll (this way we invalidate
11904         the precise area, and don't get any dirty one).
11905
11906 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11907
11908         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11909         Fixes #82184.
11910
11911 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11912
11913         * ListView.cs: Update some layout calculations in details view
11914         and clean the code in a pair of assignations.
11915
11916 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11917
11918         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11919         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11920         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11921         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11922
11923 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11924
11925         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11926         performance of thread-safe Graphic methods.  (Thanks rolf!)
11927
11928 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11929
11930         * ListView.cs: When doing the layout calculations, don't calculate
11931         scroll bars before handle is created. This is unnecessary and also
11932         calculating them before handle creation item causes a number of random
11933         bugs (which begin to appear after Chris' big patch for handle creation
11934         fixes). 
11935
11936 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11937
11938         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11939         for things that don't have a Graphics object.  Currently, things just use
11940         the static Hwnd.bmp_g which is not thread safe.
11941
11942 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11943
11944         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11945           dialog. Fixes #82187.
11946
11947 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11948
11949         * DataGridViewElement.cs: Initialize state.
11950         * DataGridView.cs: Forward a few Mouse events to cells. Add
11951           GetRowInternal and GetCellInternal that doesn't unshare rows.
11952           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11953           don't use the index, but look it up. Add
11954           DataGridViewControlCollection.RemoveInternal to remove controls
11955           that Remove won't remove (scrollbars, edit control).
11956         * DataGridViewColumn.cs: Initialize State correctly.
11957         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11958           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11959           implementing this.
11960         * DataGridViewRowCollection.cs: Implemented shared rows.
11961         * DataGridViewRow.cs: Throw exceptions as MS do.
11962         * DataGridViewCell.cs: A few properties are implemented by a
11963           Get<Property> method, so move implementation there and remove the
11964           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11965           calls when necessary.
11966         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11967           complicates matters.
11968         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11969           unshare any rows.
11970
11971 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11972
11973         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11974         the children controls.  Instead, we will just set up the proper docking for the
11975         children controls so we don't have to worry about it.  [Fixes bug #82188]
11976
11977 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11978
11979         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11980         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11981         81847.  [Fixes bug #81847]
11982
11983 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11984
11985         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11986         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11987         an explicit size based on the design-time size of the text.  Since our fonts
11988         may not match this explicit size, we tend to cut off the ends of people's labels.
11989
11990 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11991
11992         * Menu.cs: Add some missing methods to MenuItemCollection.
11993
11994 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11995
11996         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11997         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11998         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11999         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
12000         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
12001         * DataGridViewElement.cs: State defaults to Visible.
12002         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
12003         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
12004
12005 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12006
12007         * Control.cs: Minor 1.1 corcompare fix.
12008
12009 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12010
12011         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
12012         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
12013
12014 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12015
12016         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
12017           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
12018           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
12019           DataGridViewSelectedColumnCollection.cs,
12020           DataGridViewSelectedRowCollection.cs: Corcompare work.
12021
12022 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12023
12024         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
12025         it is autoset by VS2005 designer and the effect is barely noticeable.
12026
12027 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
12028
12029         * TreeView.cs: Implement HitTest.
12030
12031 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12032
12033         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
12034           manually adding and removing the control from the Controls
12035           collecftion.
12036         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
12037           EditingControlInternal property that tracks the editing control.
12038           Always keeping the scrollbars in the Controls collection, as MS
12039           testing confirms is the right behaviour.
12040
12041 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12042
12043         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
12044           according to MSDN and new test.
12045
12046 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12047
12048         * TreeNode.cs: Implement ToolTipText.
12049         * TreeView.cs: Implement tooltips, NodeMouse* events.
12050
12051 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12052
12053         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
12054
12055 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12056
12057         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
12058         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
12059
12060 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
12061
12062         * Control.cs, Form.cs, ContainerControl.cs,
12063         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
12064         for misc properties.
12065
12066 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
12067
12068         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
12069         * TreeView.cs: Implement StateImageList.
12070
12071 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12072
12073         * Form.cs: Don't check if the current form is the active form before
12074           activating it. Fixes #81904.
12075
12076 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12077
12078         * Form.cs: Don't check if the current form is the active form before
12079           activating it. Fixes #81904.
12080
12081 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12082
12083         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
12084
12085 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12086
12087         * Form.cs: Don't try to position the form after loading if the form was
12088           disposed. Fixes #81969.
12089
12090 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12091
12092         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
12093           properties. Had to change ToolBar into ToolStrip, which required a
12094           few #ifs.
12095
12096 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12097
12098         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
12099           resized, fixes part of #79829 (vertical lines in toolbar).
12100           PropertyGrid: Refactored Populate* to something that's easier to
12101           follow at least for me, as well as splitting it up into several new
12102           methods, required to update only subitems when something has
12103           changed by a popup editor or listbox. Don't use events to check
12104           when any values are changed, since the events are unreliable (we're
12105           changing the objects the events are registered with, and if the
12106           event handling requires the objects to be immutable (objects stored
12107           in hashtables for instance), the events will never be raised).
12108         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12109           everytime we change a value, since events are unreliable.
12110           DropDownButtonClicked: For the same reason don't compare objects to
12111           check if it has changed or not, it would require all objects to
12112           derive Equals. Fix dialog location on windows, MS is doing weird
12113           things when creating parented forms.
12114         * GridEntry.cs: Add a SelectedObject setter.
12115
12116 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12117
12118         * TreeNode.cs: Add some corcompare attributes.
12119         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12120         * TreeView.cs: Implement some 2.0 stuffs.
12121
12122 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12123
12124         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12125         for moma.
12126
12127 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12128
12129         * ListBox.cs: Implement custom tab offsets.
12130
12131 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12132
12133         * ToolStripContentPanel.cs: Support System renderer.
12134         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12135
12136 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12137
12138         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12139
12140 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12141
12142         * CheckBox.cs: Chain TextAlign to base implementation instead of
12143         maintaining another one.
12144
12145 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12146
12147         * ButtonBase.cs: Fix an incorrect string constant.
12148
12149 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12150
12151         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12152         of creating one for measuring strings.
12153
12154 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12155
12156         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12157         Implement MaxItemSize.
12158
12159 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12160
12161         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12162         for DeviceContext.  Instead, use the static one available in Hwnd.
12163         Informal tests show this saves about 500k on formtest.exe.
12164
12165 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12166
12167         * ContainerControl.cs: Implement 2.0 AutoScaling.
12168
12169 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12170
12171         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12172
12173 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12174
12175         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12176         Darken the focus color.
12177
12178 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12179
12180         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12181         for the checkbox.
12182         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12183         X, Y instead of a rect for drawing text.
12184         - For ControlPaint.DrawCheckBox, center the check a little better when the
12185         checkbox is odd width.  When drawing a flat checkbox, use a white background
12186         when state != inactive.
12187         [Fixes bugs #82097, 82100]
12188
12189 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12190
12191         * ListControl.cs: When changing CurrencyManager, disconnect event
12192         handlers from previous one. Fixes bug #81771. Code formatting.
12193
12194 2007-07-15  Andreia Gaita <avidigal@novell.com>
12195
12196         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12197         full preview invalidation from layout invalidation, and only invalidate
12198         the layout when setting zoom or other properties. Invalidation should
12199         always be done even when resetting properties with the same values as
12200         what is there. Fixes #81744 and #79830.
12201
12202 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12203
12204         * ListView.cs: Implement initial support for Groups. Split some of the
12205         LayoutIcons code to render a partial list of the items (needed by
12206         items contained in ListViewGroup instances). Let the
12207         ListViewItemsCollection.ListView property be modifiable (needed when
12208         using Groups, too).
12209         * ListViewGroup.cs: Use a Bounds property rather than a Location
12210         one. Also invalidate the bounds when they get changed.
12211         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12212         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12213         method as well.
12214
12215 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12216
12217         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12218         don't invoke the Begin and EndUpdate methods. We are generating 
12219         a redraw of the entire control without need to do so.
12220
12221 2007-07-13  William Holmes <billholmes54@gmail.com> 
12222
12223         * Control.cs: Changing logic in FindFlatForward and 
12224           FindFlatBackward to handle multiple Controls with 
12225           the same TabIndex.  
12226           This fixes bug 81687.
12227
12228 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12229
12230         * OSFeature.cs: Enable IsPresent.
12231
12232 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12233
12234         * Control.cs: Don't do anything in WmShowWindow if the control has been
12235           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12236           control is created, put on a form, the control is disposed (the
12237           form is never shown), and then we get a MapNotify, triggering a
12238           WM_SHOWWINDOW.
12239         * Form.cs: Exclude the current form when sending Deactivate to all
12240           MdiChildren.
12241         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12242           there was a race condition because assigning the handle raises
12243           events, we can get more messages, therefore trying to assign the
12244           handle again, which would fail if any of those event handlers
12245           closed/disposed the control.
12246
12247 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12248
12249         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12250
12251 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12252
12253         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12254         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12255
12256 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12257
12258         * DateTimePicker.cs: If there's no part format specifier, return an
12259           empty string.
12260
12261 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12262
12263         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12264         Transparent BorderColor.
12265
12266 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12267
12268         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12269           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12270           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12271           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12272           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12273           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12274           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12275           Remove warnings.
12276         * X11Structs.cs: Remove warnings, add ToString implementations.
12277
12278 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12279
12280         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12281           size, and not the current size. Fixes #81798.
12282
12283 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12284
12285         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12286           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12287           to the control yet).
12288
12289 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12290
12291         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12292           mousedowns to the contained textbox.
12293         * X11Structs.cs: More ToString implementation.
12294         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12295           #81791.
12296
12297 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12298
12299         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12300
12301 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12302
12303         * TableLayoutPanelCellPosition.cs: TypeConverter.
12304
12305 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12306
12307         [ Fixes #79761]
12308         
12309         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12310           controls.
12311         * PropertyGridView.cs: A few color fixes.
12312
12313 2007-07-10  Jackson Harper  <jackson@ximian.com>
12314
12315         * TextControl.cs: Remove some old unused text formatting stuff.
12316
12317 2007-07-10  Jackson Harper  <jackson@ximian.com>
12318
12319         * TreeView.cs: Update full row select invalidation to match the
12320         newer DrawSelection... method.
12321         - Make sure to invalidate the entire width when selecting a new
12322         node, if we have full row selection enabled.
12323
12324 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12325
12326         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12327           display of properties again.
12328
12329 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12330
12331         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12332         to existing collections.
12333
12334 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12335
12336         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12337         that changed between 1.1 and 2.0.
12338
12339 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12340
12341         * PowerStatus.cs: Added.  This is just a data class, it is filled
12342         in by SystemInformation.
12343
12344 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12345
12346         * Message.cs: Add op_Equality and op_Inequality.
12347
12348 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12349
12350         * MenuStrip.cs: Finish corcompare work.
12351
12352 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12353
12354         * LinkArea.cs: Add op_Equality and op_Inequality.
12355
12356 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12357
12358         * Application.cs: Add MessageLoopCallback delegate.
12359
12360 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12361
12362         * ListBox.cs: First set of 2.0 stuffs.
12363
12364 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12365
12366         * Control.cs: Make an internal Height property we can override
12367         without messing up the public API.
12368         * ListBox.cs: Override HeightInternal to always return the size
12369         the user set.  [Fixes bug #80466]
12370
12371 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12372
12373         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12374         paint cell borders if we haven't calculated where they go yet.
12375         [Fixes bugs #82040 and #82041]
12376
12377 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12378
12379         * ListView.cs: In Details view, set the location of item_control
12380         in the (0,0) position (and the header_control is thus on the
12381         item_control). This way the Bounds of the Items are relative to the
12382         ListView control (before this, they had a Bounds value without the
12383         header_control offset, which wasn't matching .Net). Fixes #82004.
12384
12385 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12386
12387         * ListControl.cs: When DataSource is set to null, pass an empty
12388         array of object to SetItemsCore. This is done to clean the items
12389         in the ListContol children. Fixes #81788.
12390
12391 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12392
12393         * ListControl.cs: Add 2.0 stuffs.
12394
12395 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12396
12397         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12398         Refresh is overkill for just about every repaint request.
12399
12400 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12401
12402         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12403         so remove my custom Get method and fix the property getter.
12404
12405 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12406
12407         * Label.cs: DefaultMargin for 2.0.
12408
12409 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12410
12411         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12412         reported issue where other controls with mnemonics would steal strokes
12413         from a selected ComboBox.
12414
12415 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12416
12417         * ScrollOrientation.cs: Make internal for 1.1.
12418         * ScrollEventArgs.cs: Add 2.0 stuffs.
12419
12420 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12421
12422         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12423         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12424         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12425
12426 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12427
12428         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12429
12430 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12431
12432         * ListView.cs: Implement the so-incredibly broken 2.0 
12433         VirtualItemsSelectionRangeChanged event.
12434
12435 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12436
12437         * ListView.cs: When enter is pressed and selection is non empty,
12438         an OnItemActivate event must be fired.
12439
12440 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12441
12442         * ListView.cs: Store the FocusedItem information as an
12443         int instead of a ListViewItem (needed by VirtualMode).
12444         Update the calls to SetFocusedItem to pass an index instead of
12445         an item.
12446         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12447         the Focused state from the owner ListView. 
12448
12449 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12450
12451         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12452         property. Also, invalidate previous focused item in the mentioned
12453         property (match .Net).
12454
12455 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12456
12457         * ListView.cs: Implement 2.0 FocusedItem property setter.
12458
12459 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12460
12461         * ListView.cs: Implement 2.0 TopItem property setter.
12462
12463 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12464
12465         * StatusStrip.cs: The default renderer is System.
12466         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12467         if the user specifies it.
12468         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12469         if we are ManagerRenderMode.
12470         * ToolStripMenuItem.cs: Calculate our text color better.
12471         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12472         from Professional to the base class based off working with the System renderer.
12473         * ToolStripSystemRenderer.cs: Added.
12474
12475 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12476
12477         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12478
12479 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12480
12481         * ToolTip.cs: Implement 2.0 Tag property.
12482
12483 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12484
12485         * ListView.cs: Implement 2.0 HitTest methods.
12486
12487 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12488
12489         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12490         item is under the pointer or not (sugar). Also remove the TODO
12491         regarding to the cursor changes in OneClick activation.
12492         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12493         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12494         true; otherwise don't show the underline style.
12495
12496 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12497
12498         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12499         the code to retrieve the item at position only one time. Also
12500         change cursor when Activation is ItemActivation.OneClick as well
12501         as invalidate the item if HotTracking is true (to show/hide the
12502         underline style). Add an internal HotItemIndex property to retrieve
12503         the current hot item's index.
12504         * ListViewItem.cs: Add an internal HotFont property to cache the
12505         font used when HotTracking is true and the pointer moves within the
12506         item's borders.
12507         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12508         HotFont depending on the hot state of the item.
12509
12510 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12511
12512         * ListView.cs: Implement 2.0 HotTracking property.
12513
12514 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12515
12516         * ToolStripControlHost.cs: If our hosted control never got created,
12517         don't try to dispose it.  [Fixes bug #81909]
12518
12519 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12520
12521         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12522
12523 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12524
12525         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12526
12527 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12528
12529         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12530         Details view.
12531         * DrawListViewColumnHeaderEventArgs.cs:
12532         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12533         using the DrawText () methods.
12534
12535 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12536
12537         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12538         background which got erased in my changes yesterday.
12539
12540 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12541
12542         * ListViewItem.cs: Actually set bounds for subitems in Details view
12543         (2.0 feature).
12544         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12545         can invoke from the owner draw routines if we need it. Also, add
12546         support for Owner draw in Details view.
12547
12548 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12549
12550         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12551         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12552         ShowImageMargin setting, properly align text in a ToolStripLabel
12553         hosted on a ToolStripDropDown.
12554
12555 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12556
12557         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12558         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12559
12560 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12561
12562         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12563
12564 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12565
12566         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12567         location to match ToolStripMenuItems.
12568
12569 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12570
12571         * DrawListViewColumnHeaderEventArgs.cs:
12572         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12573         column headers in ListView. 
12574
12575 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12576
12577         * UserControl.cs: Implement AutoSize.
12578
12579 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12580
12581         * DrawListViewItemEventArgs.cs:
12582         * ListView.cs:
12583         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12584         ListView.
12585
12586 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12587
12588         * ToolStripDropDownItemAccessibleObject.cs: Added.
12589         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12590         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12591         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12592         ToolStripTextBox.cs: corcompare work.
12593
12594 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12595
12596         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12597         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12598         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12599                 corcompare.
12600
12601 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12602
12603         * OSFeature.cs: Add IsPresent.
12604         * PrintPreviewControl.cs: Add RightToLeft.
12605         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12606         * SplitterPanel.cs: Add AutoSizeMode.
12607
12608 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12609
12610         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12611         * MdiClient.cs: Add 2.0 ScaleControl.
12612         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12613         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12614
12615 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12616
12617         * Form.cs: Implement some scaling methods, stub some RTL methods,
12618         corcompare work.
12619
12620 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12621
12622         * Control.cs: corcompare work.
12623         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12624
12625 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12626
12627         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12628         ControlPaint 2.0 stuffs.
12629
12630 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12631
12632         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12633
12634 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12635
12636         * UpDownBase.cs: Add 2.0 stuffs.
12637
12638 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12639
12640         * NumericUpDown.cs: Add 2.0 stuffs.
12641
12642 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12643
12644         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12645
12646 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12647
12648         * ErrorProvider.cs: Implement 2.0 stuffs.
12649
12650 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12651
12652         * DomainUpDown.cs: Implement 2.0 stuffs.
12653
12654 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12655
12656         * CheckedListBox.cs: Fix RefreshItems signature.
12657
12658 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12659
12660         * PictureBox.cs: Implement 2.0 stuffs.
12661
12662 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12663         
12664         * TabControl.cs: Check if there are tabpages before checking
12665         the selected index - fix #81802 (font changes raise a ResizeTabs
12666         call on controls.add, which blew up nicely with no tabpages)
12667
12668 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12669
12670         * ListView.cs:
12671         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12672
12673 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12674
12675         * ListView.cs:
12676         * ListViewItem.cs: In VirtualMode the selection information
12677         resides in the ListView, rather than in the Items. Also, throw
12678         InvalidOperationExceptions when VirtualMode is being used and
12679         CheckedItemCollection is accessed.
12680
12681 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12682
12683         * ComboBox.cs: Add ScaleControl.
12684
12685 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12686
12687         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12688
12689 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12690
12691         * GroupBox.cs: Add 2.0 stuffs.
12692
12693 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12694
12695         * Panel.cs: Add autosize properties/event.
12696
12697 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12698
12699         * Control.cs:
12700         - When we remove a control, remove it from the collection before performing the layout.
12701         - Setup an internal property for explicit_bounds.
12702         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12703         - Perform a layout when we set a new AutoSizeMode.
12704
12705 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12706
12707         * ScrollableControl.cs: Add 2.0 stuffs.
12708
12709 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12710
12711         * ScrollBar.cs: Add 2.0 stuffs.
12712
12713 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12714
12715         * Splitter.cs: Add 2.0 stuffs.
12716
12717 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12718
12719         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12720         to have BindingContext simply use base implementation.
12721
12722 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12723
12724         * ColumnHeader.cs: corcompare fix.
12725
12726 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12727
12728         * Button.cs: corcompare fixes.
12729         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12730
12731 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12732
12733         * Button.cs: Override GetPreferredSizeCore.
12734         * ButtonBase.cs: PerformLayout after changing properties that can affect
12735         AutoSize.  Simplify some mouse/keyboard code.
12736         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12737         * MouseEventArgs.cs: Make Location internal for 1.1.
12738         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12739         * Theme.cs: Add CalculateButtonAutoSize.
12740         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12741
12742 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12743
12744         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12745
12746 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12747
12748         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12749         since we can get different item instances every time we retrieve it.
12750
12751 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12752
12753         * ListView.cs: Work around for #81602, since an unkown an pretty
12754         infrequent condition appears only in some systems (old linux boxes, it
12755         seems).
12756
12757 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12758
12759         * Button.cs: Completely reformat and a little refactor to bring
12760         this closer to Mono circa 2007.
12761
12762 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12763
12764         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12765         to be ButtonBase.Invalidate.
12766
12767 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12768
12769         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12770
12771 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12772
12773         * ButtonBase.cs: Completely reformat and a little refactor to bring
12774         this closer to Mono circa 2007.
12775
12776 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12777
12778         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12779         values for autosize. Fixes #80137.
12780
12781 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12782
12783         * Control.cs: Don't perform layout when AutoSize changes.
12784         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12785         directly when autosizing, use SetBounds with BoundsSpecified.None.
12786         Fixes unit tests my last commit broke.
12787
12788 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12789
12790         * Control.cs: Perform layout when AutoSize changes.
12791         * Form.cs: Implement AutoSizing.
12792
12793 2007-06-01  Chris Toshok  <toshok@ximian.com>
12794
12795         * DataGrid.cs: remove the XXX'ed check at the top of
12796         ProcessGridKey.  fixes #80464.
12797
12798 2007-06-01  Chris Toshok  <toshok@ximian.com>
12799
12800         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12801         adding idempotent (add/remove in Edit()), and also make sure we
12802         don't add it until after we set the text, so it's not tripped in
12803         Edit().  Fixes unit test regression.
12804
12805 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12806
12807         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12808         change is user explicit, not when the layout engine moves stuff.  Fixes
12809         anchoring to bottom and right.  [Fixes bug #81790]
12810
12811 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12812
12813         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12814
12815 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12816
12817         * ContainerControl.cs: 
12818         Fire enter event for common ancestor if it is not a ContainerControl.
12819         Send focus to the active_control and not the 'value', the active 
12820         control might have been changed in one of the events fired.     
12821         Definitely fixes #80159.
12822
12823 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12824
12825         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12826
12827 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12828
12829         * PropertyGrid.cs: Anchor the help description to the bottom of the
12830           help panel and refactor SelectGridItem into a
12831           SelectGridItemInternal that can be set to null (and update it to
12832           clear the help texts when it is set to null). Set root item to null
12833           when there's no SelectedObject. Fixes #80438.
12834         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12835           when we're recalculating after a resize (only).
12836
12837 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12838
12839         * ListView.cs: Implement 2.0 RedrawItems method.
12840
12841 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12842
12843         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12844         handlers from previous data manager when DataSource is set to
12845         null. Fixes #81771.
12846
12847 2007-05-31  Jackson Harper  <jackson@ximian.com>
12848
12849         * TextBoxBase.cs: These seem to be the correct values.
12850
12851 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12852
12853         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12854         value. Fixes #81784.
12855
12856 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12857
12858         * Control.cs: Implement 2.0 scaling methods.
12859
12860 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12861
12862         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12863           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12864           corcompare issues.
12865
12866 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12867
12868         * ProgressBar.cs: Implemented missing 2.0 members.
12869
12870 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12871
12872         * Control.cs: Corcompare issues.
12873         * MessageBox.cs: Implemented missing 2.0 functions.
12874
12875 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12876
12877         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12878           Implemented more 2.0 members.
12879
12880 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12881
12882         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12883           null (strange, but it seems to happen when running unit tests).
12884
12885 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12886
12887         * ContainerControl.cs: Set active_control even earlier, before 
12888         firing any events, and undo it if validation returns false.
12889
12890 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12891
12892         * ContainerControl.cs: Raise Validation and Enter/Leave events
12893         even if there is no Form and set active_control earlier, just
12894         before firing Enter events (toshok's patches). Fixes #80647.
12895
12896 2007-05-30  Jackson Harper  <jackson@ximian.com>
12897
12898         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12899         things and fix bug #81311.
12900
12901 2007-05-30  Jackson Harper  <jackson@ximian.com>
12902
12903         * X11Dnd.cs: Now that we have our own event loop, we need to
12904         cancel when we get a mouseup but it won't be accepted.
12905
12906 2007-05-30  Chris Toshok  <toshok@ximian.com>
12907
12908         * DataGrid.cs (set_CurrentCell): guard against negative
12909         column/row.
12910
12911         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12912         array index syntax instead of looping over the property names.
12913
12914         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12915         and set IsInEditOrNavigateMode to false there.
12916
12917 2007-05-30  Jackson Harper  <jackson@ximian.com>
12918
12919         * TreeView.cs: Make sure we don't get a bad visible order when
12920         setting to the top node.  Fixes some misc crashing in
12921         ControlInspector.
12922
12923 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12924
12925         * UserControl.cs: Add 2.0 AutoSizeMode
12926
12927 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12928
12929         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12930
12931 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12932
12933         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12934         lines. Fixes #80285. 
12935
12936 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12937
12938         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12939
12940 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12941
12942         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12943         Fixes #80147.
12944
12945 2007-05-29  Jackson Harper  <jackson@ximian.com>
12946
12947         * TreeNode.cs: Fix off by one on calculating whether or not a node
12948         is visible.
12949
12950 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12951
12952         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12953         * ScrollableControl.cs: Force an UpdateDistances when we move the
12954         scrollbars.
12955         [Fixes bug #80605]
12956
12957 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12958
12959         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12960         update the page setup screen.
12961
12962 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12963
12964         * PageSetupDialog.cs: Fix landscape mode.
12965
12966 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12967
12968         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12969         IconSizeHorizontalSpacing.
12970
12971 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12972
12973         * ListView.cs: The declaration of prev_tooltip_item should be inside
12974         a NET_2_0 conditional (avoid a warning).
12975
12976 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12977
12978         * PageSetupDialog.cs: Implement PrintPreview control to display
12979         the preview thumbnail. Change unit conversion to use 
12980         PrinterUnitConvert methods.
12981         
12982         Note: there is a huge bug in ms.net where the default margins are 
12983         interpreted as centimeters (?), when in fact they are set in inches. When 
12984         loading the page setup dialog initially (ms.net), the default margins 
12985         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12986         it should be 25 (properly converted). Our dialog doesn't have this bug.
12987         
12988         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12989         RectangleF.
12990         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12991
12992 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12993
12994         * ListView.cs:
12995         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12996         items.
12997
12998 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12999
13000         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
13001         an IntPtr on csc (it builds fine on mcs, could it be a compiler
13002         bug?), convert the ptr to Int32 first.
13003
13004 2007-05-28  Jackson Harper  <jackson@ximian.com>
13005
13006         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
13007         recieved, we will exit the dnd tracking loop.
13008
13009 2007-05-28  Jackson Harper  <jackson@ximian.com>
13010
13011         * X11Dnd.cs: Keep tracking until the xdnd finished event is
13012         recieved. TODO: I should probably stick a timer on the dropped
13013         event, and finish the drag if the XDND Finished event never shows
13014         (because some apps don't seem to send it).
13015
13016 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
13017
13018         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
13019         #81733.
13020
13021 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13022
13023         * MonthCalendar.cs: Only mark the keypresses we actually handle as
13024           handled.
13025
13026 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13027
13028         * MonthCalendar.cs: Set the size after initializing all the relevant
13029           variables. Fixes #81742.
13030
13031 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13032
13033         * KeyEventArgs.cs: Fix typo.
13034
13035 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
13036
13037         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
13038         to match MS. Fixed MinDate to only accept value less than or equal
13039         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
13040         Removed TODO's that are now verified by unit tests.
13041
13042 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
13043
13044         * TreeNodeCollection.cs: Minor corrections to exceptions to match
13045         MS.
13046
13047 2007-05-25  Jackson Harper  <jackson@ximian.com>
13048
13049         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
13050         it's own message loop.
13051         * XplatUIX11.cs: Remove some of the dnd hooks
13052
13053 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
13054
13055         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
13056         instead of MinimizedWindowSize.
13057
13058 2007-05-25  Jackson Harper  <jackson@ximian.com>
13059
13060         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
13061
13062 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13063
13064         * KeyEventArgs.cs: Added SuppressKeyPress.
13065         * Control.cs: Added support for SuppressKeyPress.
13066
13067 2007-05-24  Andreia Gaita  <avidigal@novell.com>
13068
13069         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
13070         problems with PieChart. suppress_validation should not be a counter,
13071         if there are several BeginInit calls, the first EndInit will 
13072         activate validation. Fix exceptions thrown by set_Value.
13073         * UpDownBase.cs: ValidateText only if it's the user editing it.
13074
13075 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13076
13077         * ListControl.cs: FilterItemOnProperty should return the filtered
13078         item proeprty even if DataSource is null. The same applies for
13079         GetItemText. Fixes #80427.
13080
13081 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13082
13083         * Control.cs: If a control doesn't have a parent when it's Dock is
13084         set, but it has children, it needs to do a layout.  Fixes some nested
13085         controls issues.  [Fixes bug #81199]
13086
13087 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13088
13089         * ComboBox.cs: If there are few items in the drop down list, make it
13090           the exact size the items need, no bigger. Fixes #81612.
13091
13092 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13093
13094         * Application.cs: When we have captured the keyboard for a menu,
13095         check for mouse down events in case we need to close the menu.
13096         * Control.cs, Form.cs: Remove mouse down checks for menus.
13097
13098 2007-05-24  Jackson Harper  <jackson@ximian.com>
13099
13100         * TextControl.cs: Handle tabs in non multiline mode a little
13101         differently.
13102
13103 2007-05-24  Jackson Harper  <jackson@ximian.com>
13104
13105         * TextControl.cs: We need to manually break apart tabbed text and
13106         move the tabs, since the system.drawing tabbing mechanism relies
13107         on tab stops.
13108         * TextBoxBase.cs: Move the caret properly when the user enters a
13109         tab.
13110
13111 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13112
13113         * ContainerControl.cs: Don't check CanSelect before calling
13114         ProcessMnemonic.
13115         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13116         release a KeyboardActive on click if it's not ours.
13117
13118 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13119
13120         * ColumnHeader.cs: Add TypeConverter
13121
13122 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13123
13124         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13125
13126 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13127
13128         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13129
13130 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13131
13132         * LinkLabel.cs: Implement public Padding property.
13133
13134 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13135
13136         * LinkLabel.cs: Implement public FlatStyle.
13137
13138 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13139
13140         * Control.cs: Apply patch from George to call parent.PerformLayout
13141         when Visible is changed.  [Fixes bugs #81118, 81718]
13142
13143 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13144
13145         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13146
13147 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13148
13149         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13150
13151 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13152
13153         * ContextMenu.cs: Implement Collapse.
13154
13155 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13156
13157         * ToolBarButton.cs: Implement Name.
13158
13159 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13160
13161         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13162         use current_item, it prevents some NRE. Fixes #81675.  
13163
13164 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13165
13166         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13167         without updating the text.
13168
13169 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13170
13171         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13172         without calling DeleteObject.  [Should fix bug #81709]
13173
13174 2007-05-22  Jackson Harper  <jackson@ximian.com>
13175
13176         * RichTextBox.cs: Set the line endings correctly, when flushing
13177         RTF text.
13178
13179 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13180
13181         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13182          {Width=0,Height=0}.
13183
13184 2007-05-22  Jackson Harper  <jackson@ximian.com>
13185
13186         * TreeView.cs: Setting top with a null node should set to the very
13187         top.
13188
13189 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13190
13191         * Form.cs: ShowDialog: destroy the handle when message loop is
13192           finished, matches MS behaviour. Refactor parts of WmClose into
13193           RaiseCloseEvents, that only raises events if they haven't already
13194           been raised. Fixes #81688 and #81521.
13195         * Application.cs: Don't call close on the form when exiting a modal
13196           loop, it will raise all the (Form)Closed/Closing events again if
13197           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13198           which doesn'r raise any events it they have been raised before.
13199
13200 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13201
13202         * Control.cs: Add OnPrint.
13203         * ToolStrip.cs: Add GetChildAtPoint.
13204         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13205         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13206
13207 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13208
13209         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13210
13211 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13212
13213         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13214           isn't visible anymore. Fixes #81651.
13215
13216 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13217
13218         * Control.cs: WmShowWindow: Update children's z-order after setting
13219           their parent. SetParent may show the window, thereby corrupting
13220           z-order, since the window will be shown on top.
13221         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13222           multiple (and redundant) WM_SHOWWINDOW messages.
13223         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13224           event has already been raised.
13225         * Form.cs: Change is_changing_visible_state to a counter, since
13226           SetVisibleCore can be called recursively. CreateHandle: when
13227           creating mdi children, send (De)Activated events.
13228         * MdiClient.cs: Update use of is_changing_visible_state.
13229         * Application.cs: OnThreadException: Surround exception handling with
13230           try/finally to ensure we always reset the error-handling state
13231           before leaving.
13232
13233 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13234
13235         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13236           (#81704).
13237
13238 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13239
13240         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13241         SmallIcon views, now that we have a standarized horizontal spacing.
13242
13243         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13244         4, just like the other views (Match .Net).
13245
13246 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13247
13248         * Control.cs: Delay calculating anchor distances until we actually layout.
13249         Always query the WM for the actual size and location it put us at instead of
13250         only when we send negative values.
13251         [Fixes bugs #81694, 81695]
13252
13253 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13254
13255         * Application.cs: Avoid a possible stack overflow when trying to exit
13256           the application.
13257
13258 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13259
13260         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13261         enum value.
13262
13263 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13264
13265         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13266         * NumericUpDownAcceleration.cs, 
13267           NumericUpDownAccelerationCollection.cs: Added 2.0
13268           implementation.
13269
13270 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13271
13272         * RichTextBox.cs: Recalculate the document after the ScrollBars
13273         property is changed. Fixes bug #81681.
13274
13275 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13276
13277         * DataObject.cs: Implement 2.0 methods.
13278
13279 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13280
13281         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13282         in the center of the checkbox, not in the left-top corner. 
13283         Fixes #80037.
13284
13285 2007-05-18  Jackson Harper  <jackson@ximian.com>
13286
13287         * RichTextBox.cs: Recalculate the document after the scrollbars
13288         property is changed.
13289         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13290         81486.
13291
13292 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13293
13294         * CreateParams.cs: Make HasWindowManager marginally faster.
13295         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13296           into Hwnd so that other drivers can use it as well.
13297         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13298           the default location from Hwnd. Fixes MDI client windows always
13299           showing up at (0,0) in Windows (Win32 won't set the default
13300           location since the window styles aren't correct).
13301
13302 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13303
13304         * TreeView.cs: Modified DoubleBuffered to just use the base
13305         implementation.
13306
13307 2007-05-18  Jackson Harper  <jackson@ximian.com>
13308
13309         * TreeView.cs: Set the top node to the last child node when
13310         expanding all
13311         - When we get focus, if there is no selected node, use the top
13312         node.
13313
13314 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13315
13316         * KeysConverter.cs: Add CanConvertTo.
13317         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13318         * LinkConverter.cs: Added.
13319
13320 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13321
13322         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13323         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13324
13325 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13326
13327         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13328         button text. Fixes #79640.  
13329
13330 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13331
13332         * Control.cs: According to MSDN controls created in the designer theres 
13333         keyboard accelerators visible by default. So included check for design
13334         in ShowKeyboardCuesInternal.  
13335
13336 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13337
13338         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13339         text. Fixes #81621.  
13340
13341 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13342
13343         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13344         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13345
13346 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13347
13348         * Control.cs: Finish implementation of UI State using WmChangeUIState
13349         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13350         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13351
13352 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13353
13354         * ListBox.cs: When calculating the horizontal scrollbar
13355         in single column mode, don't use values less than 0 for
13356         Maximum. Fixes #81474.
13357
13358 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13359
13360         * ListBox.cs: Throw the some missing exceptions in
13361         ListBox.ObjectCollection methods.
13362
13363 2007-05-17  Jackson Harper  <jackson@ximian.com>
13364
13365         * TextBoxBase.cs: Recalculate the document when the word wrap
13366         value has changed. This fixes 81488.
13367
13368 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13369
13370         * Clipboard.cs: Implement missing GetText overload.
13371
13372 2007-05-17  Chris Toshok  <toshok@ximian.com>
13373
13374         * Control.cs (CheckDataBindings): remove the binding_context arg
13375         to binding.Check.
13376
13377         * CurrencyManager.cs (OnItemChanged): fix this now that
13378         BindingManagerBase is fixed. also remove the comment telling where
13379         the fix should go.  We set transfering_data to true/false around
13380         the call to PushData to keep UpdateIsBinding from being called.
13381         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13382         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13383         actually generated by System.Data generating 2 metadata changed
13384         events of its own per column add.  The fix should go there.  Add a
13385         comment to that affect in our test's Assert.Ignore.
13386
13387         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13388         we keep a boolean flag (transfering_data) that keeps us from
13389         calling UpdateIsBinding multiple times if we re-enter either of
13390         them.
13391
13392         * ControlBindingsCollection.cs (AddCore): remove the
13393         binding_context arg to binding.Check.
13394
13395         * Binding.cs (IsBinding): don't check if we're binding here, just
13396         return our cached value.  we update it in UpdateIsBinding.
13397         (Check): don't take the binding_context arg, we'll just use our
13398         control's.  Also, for some reason MS doesn't use the data member
13399         field when getting the bindingmanager for this binding.  it just
13400         uses the datasource.  Make this method callable multiple times,
13401         and only do the is_null_desc stuff if manager.Position != -1 (so
13402         we don't get an exception accessing manager.Current).
13403         (UpdateIsBinding): move the code from IsBinding here.
13404         (PositionChangedHandler): call Check here to we can initialize
13405         things that require a non- -1 position.
13406
13407 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13408
13409         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13410         control.
13411
13412 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13413
13414         * TabControl.cs: Add 2.0 methods and events, including
13415         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13416         * TabPage.cs: Add 2.0 methods
13417
13418 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13419
13420         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13421         keyboard_cues is properly handled by message method.  
13422
13423 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13424
13425         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13426
13427 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13428
13429         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13430
13431 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13432
13433         * Control.cs: 
13434         - WmUpdateUIState added to handle state changes, it make call to
13435         OnChangeUICues event.
13436         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13437         SystemInformation.
13438
13439 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13440
13441         * ImageKeyConverter.cs: Added.
13442         * TreeViewImageKeyConverter.cs: Added.
13443
13444 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13445         
13446         * ToolTips.cs: Update Text if SetToolTip is called for a control
13447         already showing the tooltip, as well as restarting its timer; show
13448         tooltip if we are inside the control bounds by the time of calling
13449         SetToolTip. Inside ShowTooltip remove the check to not show the 
13450         tooltip again for the active control (it is allowed by .Net to 
13451         show the tooltip on the same control multiple times).
13452
13453 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13454
13455         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13456
13457 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13458
13459         * ContainerControl.cs: only process tab key if there are no 
13460         modifier keys present, otherwise the control does the 
13461         tab processing, if it needs to. Fixes #81622
13462         * TabControl.cs: Fixes calculation for which tab to select on
13463         shift+ctrl+tab.
13464
13465 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13466
13467         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13468
13469 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13470
13471         * Control.cs: Make IsInputCharInternal to allow controls to
13472         override it and still match MS API.
13473         * TextBoxBase.cs: Override IsInputCharInternal and always
13474         return true.
13475         [Fixes bug #81616]
13476
13477 2007-05-15  Jackson Harper  <jackson@ximian.com>
13478
13479         * TextBox.cs: Disable some of the menu options when using a
13480         readonly textbox.
13481
13482 2007-05-15  Jackson Harper  <jackson@ximian.com>
13483
13484         * TextBox.cs:
13485         * TextBoxBase.cs:
13486         * RichTextBox.cs: Some new 2.0 methods
13487
13488 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13489
13490         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13491         extensions.
13492
13493 2007-05-14  Jackson Harper  <jackson@ximian.com>
13494
13495         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13496         * RichTextBox.cs: We need to override these methods on 2.0.
13497         * MaskedTextBox.cs: These are implemented now
13498         * TextControl.cs: This was off by one.
13499
13500 2007-05-14  Jackson Harper  <jackson@ximian.com>
13501
13502         * TextControl.cs: Because the line endings are including in the
13503         text, we don't need to add them in anymore.
13504
13505 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13506
13507         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13508         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13509
13510 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13511
13512         * ToolBar.cs: Adjust size to default size when button theres no text and
13513         image, it fixes remaining issues from #81524.
13514
13515 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13516
13517         * ToolBar.cs: 
13518         - When not flat call redraw to recalculate sizes on creare handle to match
13519         win32 behavior.
13520         - Revert 77220 because it causes some regressions in toobar
13521         button.
13522
13523 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13524
13525         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13526           now actually enters a usable state.
13527
13528 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13529
13530         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13531         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13532         3 buttons.
13533
13534 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13535
13536         * ToolBar.cs: Save default_size on create handle to use later for buttons
13537         without text, needed to mimic win32 behavior.
13538
13539 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13540
13541         * ToolBar.cs: Fix button layour to best fit width or height according to
13542         vertical or not. Fixes #81524.
13543
13544 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13545
13546         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13547         toolbar size info because different styles theres different sizes.
13548         Fixes #81522.
13549
13550 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13551
13552         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13553         if we are using checkboxes, checked is true, and we have less
13554         than two images in StateImageList; for the 1.1 in the same scenario
13555         draw the first image if we have at least one image in StateImageList.
13556         Fixes part of #81191.
13557
13558 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13559
13560         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13561         the owner's Items collection on merge.
13562
13563 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13564
13565         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13566         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13567         and parent/owner gets changed based on gert's unit tests.
13568
13569 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13570
13571         * MaskedTextBox.cs: Started implementing parts of it.
13572
13573 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13574
13575         * ListView.cs: When clicking the checkbox on the items
13576         take into account the double clicks even if we have only
13577         one image in StateImageList (only for 1.0/1.1). Also 
13578         generate an extra change of checked state when we receive
13579         the second click on checkbox (match .Net behaviour). 
13580         Fixes part of #81191.
13581
13582 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13583
13584         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13585
13586 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13587
13588         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13589         even if OnLoad is overriden and base.OnLoad is not called.
13590         [Fixes bug #81582]
13591
13592 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13593
13594         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13595         shame. (I blame my ever-persisting and annoying cold)
13596
13597 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13598
13599         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13600         KeyDown/KeyPress routines.  [Fixes bug #81569]
13601
13602 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13603
13604         * ListView.cs: When handling keys for selecting the item based off
13605         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13606         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13607
13608 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13609
13610         * Control.cs: When using UseWaitCursor, we have to store the requested
13611         Cursor to use when UseWaitCursor is turned off.
13612
13613 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13614
13615         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13616         to false.
13617         * Application.cs: Use PreProcessControlMessage instead of
13618         PreProcessMessage.
13619         * PreProcessControlMessage.cs: Make internal for 1.1.
13620
13621 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13622
13623         * Control.cs: Add InternalContains focus property, which hast the same
13624         functionality of ContainsFocus, but also including implicit controls.
13625         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13626         since we need to know if the focus is contained in our implicit
13627         ItemControl when calculating Layout. Fixes part of #80888.
13628
13629 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13630
13631         * ToolTip.cs: Remove center form string alignment as it must be align to
13632         left.
13633
13634 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13635
13636         * ToolStripItemCollection.cs: Set the new item's parent and owner
13637         in Insert like we do in Add.  [Fixes bug #81568]
13638
13639 2007-05-08  Jackson Harper  <jackson@ximian.com>
13640
13641         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13642         - Off by one error in SetTop
13643         - Disable DoubeBuffering
13644         
13645 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13646
13647         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13648           control as much as necessary in order to make it entirely visible,
13649           instead of centering the control in the container (matches MS
13650           behaviour). CalculateCanvasSize: we need to take the current scroll
13651           position into account when calculating the maximum canvas,
13652           otherwise the following scenario will fail: resize so that the
13653           scrollbars appear, use the scrollbars to scroll, resize again
13654           smaller, and now the canvas size is too small. Recalculate: when
13655           showing scrollbars make sure they start off at 0, and try to scroll
13656           the active control into view. Fixes #79540. HandleScrollBar: don't
13657           scroll anywhere if the scrollbar isn't visible.
13658
13659 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13660
13661         * ListView.cs: When focus changed, call Layout/Invalidate
13662         in the focused item to update the selected state (should show
13663         entire label when ListView is focused, and a part of it if is not).
13664         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13665         for displaying the entire label not only the Focused state of the
13666         item, but also the Focused state of the ListView (match .Net
13667         behaviour).
13668
13669 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13670
13671         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13672         Implement UseWaitCursor. 
13673
13674 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13675         Applying contributed patch from Sergey Volk.
13676
13677         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13678         of SetDataObject.
13679         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13680
13681 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13682
13683         * Control.cs: Implement DrawToBitmap.
13684
13685 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13686         Applying contributed patch from Stefan Noack.
13687         
13688         * Control.cs: Add [Get|Set]AutoSizeMode.
13689
13690 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13691
13692         * MdiClient.cs: Unmerge menus when the last child is closed.
13693
13694 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13695
13696         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13697         * ToolStripManager.cs: Call Merge on DropDowns.
13698         [Fixes bug #81477]
13699
13700 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13701
13702         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13703           uints.
13704         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13705           visibility. We can't create forms visible, since we have to set the
13706           owner before making the form visible (otherwise Win32 will do
13707           strange things with task bar icons). The problem is that we set the
13708           internal is_visible to true before creating the control, so
13709           is_changing_visible_state is the only way of determining if we're
13710           in the process of creating the form due to setting Visible=true -
13711           this works because SetVisibleCore explicitly makes the form
13712           visibile afterwards anyways. Fixes #80775.
13713
13714 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13715
13716         * ThemeWin32Classic.cs: When drawing ListViewItems,
13717         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13718         or LargeIcon _and_ item is not focused (match .Net behaviour).
13719
13720 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13721
13722         * Control.cs, Form.cs: Fix some obsolete method warnings.
13723
13724 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13725
13726         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13727         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13728
13729 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13730
13731         * ContainerControl.cs: Fix active_control attribution when going
13732         up the parent chain so that the first parent container gets the control
13733         and the rest of the parent containers get the child containers (skips
13734         non-containers). Fixes #80729
13735
13736 2007-05-04  Randolph Chung  <tausq@debian.org>
13737
13738         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13739         [Fixes bug #81499]
13740
13741 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13742
13743         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13744           takes a size parameter, since the CreateParam's size isn't true for
13745           minimized forms. Fixes #81518,
13746
13747 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13748
13749         * Form.cs: Add OnDeactivateInternal.
13750         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13751
13752 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13753
13754         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13755           accessing the parent. Fixes #81508.
13756
13757 2007-05-03  Chris Toshok  <toshok@ximian.com>
13758
13759         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13760         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13761         was added before the current listposition.  Fixes the
13762         TestInsertRowBeforeCurrent unit test.
13763
13764 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13765
13766         * Application.cs: Add RaiseIdle.
13767         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13768         XplatUIX11.cs: Implement RaiseIdle.
13769
13770 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13771         corcompare work: N - Z
13772         * NotifyIcon.cs
13773         * ProgressBar.cs
13774         * RadionButton.cs
13775         * ScrollableControl.cs
13776         * SplitContainer.cs
13777         * SplitterPanel.cs
13778         * StatusBar.cs
13779         * SystemInformation.cs
13780         * TabControl.cs
13781         * TableLayoutControlCollection.cs
13782         * TableLayoutPanel.cs
13783         * TabPage.cs
13784         * ToolBar.cs
13785         * ToolBarButton.cs
13786         * ToolStrip.cs
13787         * ToolStripComboBox.cs
13788         * ToolStripContainer.cs
13789         * ToolStripContentPanel.cs
13790         * ToolStripDropDown.cs
13791         * ToolStripDropDownItem.cs
13792         * ToolStripDropDownMenu.cs
13793         * ToolStripItem.cs
13794         * ToolStripItemCollection.cs
13795         * ToolStripMenuItem.cs
13796         * ToolStripPanel.cs
13797         * ToolStripSplitButton.cs
13798         * ToolTip.cs
13799         * TreeNode.cs
13800         * TreeNodeCollection.cs
13801         * TreeNodeMouseHoverEventArgs.cs
13802         * TreeView.cs
13803
13804 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13805
13806         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13807         stuff. Thanks aatdark for the patch. 
13808
13809 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13810
13811         * GridItem.cs: Implement 2.0 Tag property.
13812
13813 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13814
13815         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13816         count instead of Nodes.Length.  [Fixes bug #81448]
13817
13818 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13819
13820         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13821         [Fixes bug #81506]
13822
13823 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13824         corcompare work: A - M
13825         * BindingNavigator.cs
13826         * Button.cs
13827         * ButtonBase.cs
13828         * CheckBox.cs
13829         * Control.cs
13830         * FlowLayoutPanel.cs
13831         * Form.cs
13832         * Label.cs
13833         * LinkLabel.cs
13834         * ListView.cs
13835
13836 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13837
13838         * Application.cs: Give toolstrips a chance to process mnemonics.
13839         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13840         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13841         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13842
13843 2007-05-01  Jackson Harper  <jackson@ximian.com>
13844
13845         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13846         wider area too.
13847         - Don't set the BoundsSpecified
13848
13849 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13850
13851         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13852         message to pass through to a regular control if it hosted by a toolstrip.
13853         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13854         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13855
13856 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13857
13858         * TextRenderer.cs: Use the flags argument when using the MeasureString
13859         fallback algorithm.
13860
13861 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13862
13863         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13864         the MDI menu item.  [Fixes bug #81483]
13865
13866 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13867
13868         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13869         string. When setting Name to null, use zero-length string instead.
13870
13871 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13872
13873         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13874         DeselectTab). Implement missing 2.0 TabPageCollection methods
13875         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13876
13877 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13878
13879         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13880
13881 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13882
13883         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13884         Fixes bug #81479. Include details of exception when LoadFile fails.
13885
13886 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13887
13888         * DrawListViewSubItemEventArgs.cs: Added missing setter
13889
13890 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13891
13892         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13893         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13894
13895 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13896
13897         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13898         removed in ly last commit (it was breaking the Label edit feature).
13899
13900         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13901         StringAlignment.Near for LineAlignment (match .Net).
13902
13903 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13904
13905         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13906         of controls if it isn't already there - was blowing up when doing
13907         tabcontrol.TabPages[i]=new TabPage(). 
13908         SetTab now does a replace by removing the page at the index. 
13909         Add a new InsertTab method that inserts a page in a given index 
13910         instead of replacing. 
13911         Implements TabPageCollection.Insert(int, TabPage).
13912
13913 2007-04-27  Chris Toshok  <toshok@ximian.com>
13914
13915         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13916         internal handler that can be invoked from our subclasses.)  Also,
13917         add a comment to PushData about how we need to fix it.
13918
13919         * CurrencyManager.cs: tons of changes here.  trying to get things
13920         matching the behavior of .net wrt event orders (ItemChanged,
13921         CurrentChanged, PositionChanged.)  I've implemented a private .net
13922         symbol (ChangeRecordState) that appears in stack traces because
13923         it's actually easier to do this than to effective inline all its
13924         various behaviors at every call site.
13925
13926         * RelatedPropertyManager.cs: guard against an exception here by
13927         not using parent.Current if the position is set to -1 (if the
13928         parent datasource is cleared, for instance).
13929
13930         * Binding.cs: don't parse data in PushData (this might be wrong,
13931         but it jives with MS's behavior.)  Also, don't call PushData when
13932         we get a CurrentChanged event.
13933
13934 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13935
13936         * WebBrowser.cs,
13937           WebBrowserBase.cs,
13938           WebBrowserSiteBase.cs,
13939           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13940           yet.
13941
13942 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13943
13944         * MainMenu.cs: In draw method without parameters call draw method with 
13945         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13946         as Rect property is already adjusted. Fixes #80694.
13947
13948 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13949
13950         * Application.cs: Need to handle keyboard menu deselection here.
13951         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13952         navigation, allowing keyboard to work on X11.
13953         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13954
13955 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13956
13957         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13958         menu bar. It fixes some drawing issues in menu bar.
13959
13960 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13961
13962         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13963         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13964         when <alt> key is pressed.
13965
13966 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13967
13968         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13969         example just set visible to false and make this prevent from other problems.
13970         In SystrayAdd always remove pending expose. Fixes #81072.
13971
13972 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13973
13974         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13975         value is set.
13976
13977 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13978
13979         * ListView.cs: Added three missing 2.0 events and corresponding
13980         EventHandlers. Added the OwnerDraw property.
13981         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13982
13983 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13984
13985         * DrawListViewItemEventArgs.cs
13986         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13987
13988 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13989
13990         * TextControl.cs: Fixed typo in constructor
13991
13992 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13993
13994         * Application.cs: Create a shortcut path so that currently selected
13995         MenuStrips can intercept keyboard events without having focus.
13996         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13997         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13998         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13999         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
14000         generate WM_SYSCOMMAND message in X11 for other platforms.
14001         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
14002         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
14003         * ToolStripSplitButton.cs: Add DefaultItem property.
14004         
14005 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
14006
14007         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
14008         fixes some menu draw problem on Windows with border diferent from default
14009         it also fixes #81403.
14010
14011 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14012
14013         * Form.cs: Refactor WndProc into separate methods, just like Control is
14014           doing it.
14015
14016 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14017
14018         * Control.cs: set_Text: move the call to the driver into a seperate
14019           virtual method so that Form can override it.
14020         * MaskedTextBox.cs: Corcompare fixes.
14021         * Form.cs: Override UpdateWindowText and only update the styles if the
14022           form has been shown (fixes #81405).
14023
14024 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14025
14026         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
14027         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
14028         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
14029         the form lost focus or another control was clicked.
14030
14031 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
14032
14033         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
14034         fixed.
14035
14036 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14037
14038         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
14039           DrawListViewItemEventHandler.cs,
14040           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
14041           Added.
14042         * X11Structs.cs: More ToString implementation.
14043
14044 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
14045
14046         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
14047         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
14048
14049 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14050
14051         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
14052           handle.
14053         * FormCollection.cs: Don't add a form if it's already in the
14054           collection.
14055         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
14056           according to behaviour and MSDN. The ownerWin32 is the active
14057           window at the moment when we call ShowDialog, not the context's
14058           main form (the context's main form may open another form that opens
14059           a form with ShowDialog, the win32 owner is the second form). Add
14060           and remove forms to the Application.OpenForms in other places to
14061           better match MS behaviour. Add an IsActive property that raises
14062           On(de)Activated only if the active state has changed (we were
14063           raising OnDeactivated before OnActivated while creating forms).
14064         * Application.cs: Refactor Enabling/Disabling of windows for modal
14065           dialog loops out to separate methods, and restore the thread
14066           context when we quit the method. Fixes #81407.
14067
14068 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14069
14070         * ListView.cs: In ItemControl.HandleClicks, also fire 
14071         2.0 MouseClick or MouseDoubleClick events on the parent,
14072         not only the Click/DoubleClick events.
14073
14074 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14075
14076         * TableLayoutSettings.cs: 
14077         - Added a GetControls method and a support structure to help the 
14078         TypeConverter to enumerate the controls for     serialization. 
14079         - Added a new serialization constructor. 
14080         - Added a isSerialized flag initialized to true on the 
14081         serialization constructor so that the TableLayoutPanel.LayoutSettings 
14082         setter does not throw the designed NotSupportedOperation exception
14083         when the object is built through deserialization.
14084         - Implemented GetObjectData
14085         
14086         * TableLayoutPanel.cs: Added check on LayoutSettings.
14087
14088 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14089
14090         * ListView.cs: Report Click and DoubleClick events to the parent
14091         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
14092         from breaking the click count state when using dialog forms (Control
14093         reports the clicks in a similar fashion). In the previous behaviour
14094         the last WM_LBUTTONUP message in a  double click was sent to the
14095         ListView's form, instead of the ListView, which was breaking the click
14096         count for it. Fixes #80387.
14097
14098 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14099
14100         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14101
14102 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14103
14104         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14105         us from created dropdowns for menu items that do not have subitems.
14106         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14107         Check HasDropDownItems before calling DropDown so a dropdown will not be
14108         created if it isn't needed.
14109
14110 2007-04-24  Jackson Harper  <jackson@ximian.com>
14111
14112         * TreeView.cs: Set the first node to the selected node when we get
14113         focus if there is no selected node.
14114
14115 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14116
14117         * MimeIcon.cs: remove using blocks so that image streams are
14118         not disposed of. Fixes #80151
14119
14120 2007-04-24  Jackson Harper  <jackson@ximian.com>
14121
14122         * TextBoxBase.cs: Fixup the height of textboxes when the control
14123         is created.
14124
14125 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14126
14127         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14128         for each ToolStripItem when the parent's RightToLeftChanged is called.
14129
14130 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14131
14132         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14133           Fixes #80163.
14134         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14135           property, so that the setter can be overriden too.
14136         * TextBox.cs: Change GetContextMenuInternal() to use
14137           ContextMenuInternal.
14138
14139 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14140
14141         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14142           #81406.
14143
14144 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14145
14146         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14147           #81406.
14148
14149 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14150
14151         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14152           avoid duplicate work. Mostily skeleton code, it's not working at
14153           all yet.
14154
14155 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14156
14157         * NotifyIcon.cs : stub for MouseClick event
14158         * Application.cs: stub for SetUnhandledExceptionMode
14159
14160 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14161
14162         * BindingNavigator.cs : Initial (partial) implementation
14163
14164 2007-04-23  Jackson Harper  <jackson@ximian.com>
14165
14166         * TreeView.cs: Do not create the treeview's handle when setting
14167         the scroll position.
14168         - ExpandAll needs to compute the scrollbars so it knows which
14169         position to set the bar too.
14170         * TreeNode.cs: 
14171         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14172
14173 2007-04-23  Jackson Harper  <jackson@ximian.com>
14174
14175         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14176         key. Fixes #81408.
14177
14178 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14179
14180         * ToolStripItem.cs: Make GetImageSize internal.
14181         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14182         need to draw an item.  Fixes a reported issue where images on menus
14183         that were not 16x16 were drawing incorrectly.
14184
14185 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14186
14187         * Padding.cs: Use the converter, fixes the resgen2 issue with
14188         XMLNotePad. 
14189
14190 2007-04-21  Jackson Harper  <jackson@ximian.com>
14191
14192         * TreeView.cs: Dont try to unhighlight the selected node if there
14193         isn't a selected node.
14194
14195 2007-04-21  Jackson Harper  <jackson@ximian.com>
14196
14197         * UpDownBase.cs:
14198         * TextBoxBase.cs:
14199         * ListView.cs:
14200         * ListBox.cs:
14201         * TreeView.cs: Use the InternalBorderStyle property to set the
14202         initial border style, this forces the client rectangle to be sized
14203         correctly.
14204
14205 2007-04-20  Jackson Harper  <jackson@ximian.com>
14206
14207         * TreeView.cs: Simplify scrolling to the last node after expanding
14208         all.
14209         - Fix some off by ones with setting the bottom.
14210
14211 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14212
14213         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14214         that.  We were incorrectly doing it the other way around.  Also,
14215         update ClientSize if we change the BorderStyle before the control
14216         is created.
14217
14218 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14219
14220         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14221         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14222         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14223         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14224         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14225         Caption to CaptionHeight.
14226         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14227         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14228         and FixedFrameBorderSize to return value from current XplatUI driver.
14229         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14230         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14231         and FixedFrameBorderSize using win32 API. Renamed Caption to
14232         CaptionHeight.
14233         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14234         * SystemInformation.cs: Fixed typo in BorderSize.
14235
14236 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14237
14238         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14239         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14240         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14241         returning false.
14242         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14243         value from XplatUI driver.
14244         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14245         SystemParametersInfo.
14246         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14247         override.
14248         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14249         returning false.
14250
14251 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14252
14253         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14254
14255 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14256
14257         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14258
14259 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14260
14261         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14262         MenuStrips that contain ToolStripSeparators.
14263
14264 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14265
14266         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14267           DefineStdCursorBitmap.
14268         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14269           has been created off a standard cursor. This is used to get a
14270           bitmap of the standard cursor when Draw or DrawStretched is called
14271           in order to draw the cursor.
14272         * X11Structs.cs: Added XcursorImage and XcursorImages.
14273         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14274           DefineStdCursorBitmap.
14275         * Cursors.cs: Update all relevant creations of Cursor to use the new
14276           internal constructor.
14277
14278 2007-04-19  Jackson Harper  <jackson@ximian.com>
14279
14280         * TextBox.cs: Move the has_been_focused into the base control, so
14281         some of the text adding methods can manipulate it (probably time
14282         for a better name for this flag too).
14283         - Call a new version of selectall that doesn't scroll
14284         * TextBoxBase.cs: When we append text, if the document is empty,
14285         don't scroll.  If the document has text already, we scroll to the
14286         end of the appended text.
14287         - When the text is changed, we reset the has_been_focused, so the
14288         next time the control gets focused, all the text is selected.
14289
14290 2007-04-19  Jackson Harper  <jackson@ximian.com>
14291
14292         * TextControl.cs: Move the margins to the document, add a method
14293         so the margin sizes can be updated.
14294         * TextBoxBase.cs: When the border style is changed, update the
14295         border sizes.
14296
14297 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14298
14299         * Control.cs: Respect DefaultPadding.
14300         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14301         padding into account.
14302         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14303
14304 2007-04-19  Jackson Harper  <jackson@ximian.com>
14305
14306         * TextControl.cs: Oops, we need to use the ClientRect not the
14307         bounds here.
14308
14309 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14310
14311         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14312         account the double clicks when CheckBoxes are used and
14313         the pointer is inside the checkbox. Fixes part of #81191.
14314
14315 2007-04-18  Jackson Harper  <jackson@ximian.com>
14316
14317         * TextControl.cs: Pressing the end key shouldn't move the caret
14318         past the line ending.
14319         * TextBoxBase.cs: We can still delete if we are in the line
14320         ending and the combine will just kill the existing line ending.
14321
14322 2007-04-18  Jackson Harper  <jackson@ximian.com>
14323
14324         * TextControl.cs: We can't move lines, then invalidate their
14325         bounds, we need to get the old bounds and combine that with the
14326         new bounds.
14327         * TextBoxBase.cs: Before combining two lines for a delete, we need
14328         to invalidate the area of the old line, since that will be moved
14329         in the combine operation.
14330
14331 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14332
14333         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14334         with transparent background. Fixes #80482.
14335
14336 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14337
14338         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14339         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14340         [Fixes bug #81391]
14341
14342 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14343
14344         * CreateParams.cs: Add a couple of helper methods and do a less string
14345           concatenation in ToString.
14346         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14347           overload that takes a Control parameter, since this method may be
14348           called before a control is assigned to the hwnd (from
14349           CreateWindow), and update CreateWindow to use the new overload. In
14350           GetMenuOrigin subtract the title bar from the y position if the
14351           form has a window manager (since we're painting it and not X).
14352         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14353           CreateParams to calculate the origin (since border sizes may vary).
14354           In ScreenToMenu only subtract the title height if we actually have
14355           a title.
14356         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14357           mdi children never have menus of themselves.
14358         * InternalWindowManager.cs: Implement menu handling like form does.
14359           Added GetMenuOrigin to calculate the menu origin, can't use the
14360           CreateParams from the form like normally since it's lying.
14361         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14362           windows-like) and add Inflate and comparison operators to the
14363           Borders type. When calculating MenuOrigin and it's a form with a
14364           window manager, use the window manager to calculate it.
14365
14366 2007-04-17  Chris Toshok  <toshok@ximian.com>
14367
14368         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14369         OnBindingContextChanged thing here.  It's only generated from
14370         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14371         - BindingTest.BindingContextChangedTest4.
14372         
14373 2007-04-17  Jackson Harper  <jackson@ximian.com>
14374
14375         * ScrollBar.cs: When setting values, make sure the current
14376         position stays within the new values range.
14377
14378 2007-04-17  Chris Toshok  <toshok@ximian.com>
14379
14380         * Control.cs (CreateControl): talk about a bizarre corner case.
14381         Don't emit OnBindingContextChanged here if we're a parentless
14382         control (i.e. if we're a form.).  Fixes
14383         BindingTest.BindingContextChangedTest2.
14384
14385 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14386
14387         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14388         from win32. Fixes #81255.
14389
14390 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14391
14392         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14393         already present in CalculateButtonTextAndImageLayout.
14394
14395 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14396
14397         * XplatUIX11.cs: When setting min/max size for a window we need to
14398           translate the coordinates to x coordinates. Create an overload of
14399           SetWindowMinMax that takes a CreateParams handling this, and change
14400           SetWMStyles to call this function (can't use Control.FromHandle in
14401           the SetWindowMinMax to get the control/CreateParams from the handle
14402           because the handle might not have been assigned to the control
14403           yet). Fixes #81371.
14404
14405 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14406
14407         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14408         if StateImageList is non-null and it has less than two items (match MS
14409         behaviour). Also, in HandleNavKeys handle the Space key, calling
14410         the new ToggleItemsCheckState method, which tries to change the
14411         checked state of the selected items. Fixes part of #81191.
14412
14413 2007-04-16  Jackson Harper  <jackson@ximian.com>
14414
14415         * RichTextBox.cs: namespace cleanup.
14416
14417 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14418
14419         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14420
14421 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14422
14423         [Fixes #79447]
14424         * Control.cs: Call invalidate in set_Region.
14425
14426         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14427         it dont works here.
14428
14429 2007-04-16  Jackson Harper  <jackson@ximian.com>
14430
14431         * TextBoxBase.cs: When enter is pressed, we need to update all
14432         lines below the current.
14433
14434 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14435
14436         * MdiClient.cs: Implement implicit menu merging for MDI
14437         children.  When a child form is active, if it has a menustrip
14438         and the parent form has a MainMenuStrip, automatically merge
14439         the menus.
14440
14441 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14442
14443         * TabControl.cs: Refactored sizing methods to not repeat
14444         code all over the place. Tab bounds are now calculated
14445         as if alignment is top and single line, and only when 
14446         setting the bounds are the positions adjusted according
14447         to alignment. Replaced hardcoded positions, spacings and
14448         paddings by getting the values the ThemeEngine. 
14449         Fixes #79619.
14450         
14451         * Theme.cs: Change TabControl properties and methods so
14452         that all start with TabControl*. Added more properties
14453         to help remove hardcoded values on tabcontrol.
14454         Add CPDrawBorder3D declaration so the Theming classes
14455         can access it.
14456         
14457         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14458
14459         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14460         on the Theming namespace, and call the appropriate methods here.
14461         Change CPDrawBorder3D to public.
14462
14463 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14464
14465         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14466         the control after firing the OnMouseUp event, instead of sending
14467         the message before the mentioned event. This is so we can match the
14468         MS behaviour. Fixes part of #80385.
14469
14470 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14471
14472         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14473         RightToLeft property.
14474
14475 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14476
14477         * ToolStrip.cs: Add properties and internal methods to support merging.
14478         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14479         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14480         not trigger reparenting or layouts.
14481         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14482         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14483         is hosting the overflow menu.
14484
14485 2007-04-13  Jackson Harper  <jackson@ximian.com>
14486
14487         * TextControl.cs: Set the line ending correctly for the first
14488         inserted line.
14489
14490 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14491
14492         * Theme.cs: Update GetMethod to get the new definition for 
14493         KnownColors.Update (and fix theme color updates).
14494
14495 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14496
14497         * MessageBox.cs: Fix some test and button position.
14498
14499 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14500
14501         * Form.cs: Consider the implicit controls in
14502         GetRealChildAtPoint. We need it since this method
14503         is called on Form when handling the some messages in
14504         WndProc, and need to consider those implicit ones too.
14505         Fixes #80385.
14506
14507 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14508
14509         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14510         if there are no ShortcutKeys set.
14511         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14512         set, use it when painting.
14513
14514 2007-04-12  Jackson Harper  <jackson@ximian.com>
14515
14516         * TextControl.cs: Fix some off-by-one issues in line duplication
14517         and insertion in the undo manager. Also, overwrite the first tag
14518         of a line on insert, if it is just a zero lengthed tag. This
14519         prevents us from getting an extra stranded tag at the beginning of
14520         the first line.
14521
14522 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14523
14524         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14525         to calculated proper size including when handle was not created yet.
14526
14527 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14528
14529         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14530           when the mouse is outside of it's parent's client rectangle. Fixes
14531           #79982 (take 3, part 2).
14532
14533 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14534
14535         * X11Structs.cs: Add a few ToString() overrides.
14536         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14537           the window location in a window-manager independent way. Reworked
14538           FrameExtents, it now actually works. Reworked AddConfigureNotify
14539           and ReparentNotify handling to use GetTopLevelWindowLocation
14540           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14541           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14542           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14543           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14544           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14545           and generally refactored to do as few calculations as possible
14546           inside the lock.
14547
14548 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14549
14550         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14551         minimize # of calls, avoid Color serialization and avoid updating 
14552         every "known colors" each time a single one is updated.
14553
14554 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14555
14556         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14557         when not readonly and the text is explicitly set. Code style updates.
14558         * DataGridTableStyle.cs: Removed extra line.
14559         * DataGrid.cs: Code style updates. Removed extra whitespace.
14560         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14561         whitespace.
14562
14563 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14564
14565         * XplatUIX11.cs: Added comment that "fixes" #80021.
14566
14567 2007-04-09  Jackson Harper  <jackson@ximian.com>
14568
14569         * TextControl.cs: We don't need this -1 on the line count anymore.
14570
14571 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14572
14573         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14574         entered value to underlying type, and convert it back to a string to
14575         apply formatting. Modified GetFormattedValue to use TypeConverter
14576         if available.
14577
14578 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14579
14580         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14581         Use SubItems property when we want to ensure there's at least one
14582         subitem. Modified SubItems property to ensure there's always at least
14583         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14584         the NRE's reported by MS.
14585
14586 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14587
14588         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14589         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14590         Spaces to tabs. Removed extra tabs.
14591
14592 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14593
14594         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14595         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14596
14597 2007-04-06  Jackson Harper  <jackson@ximian.com>
14598
14599         * TextBoxBase.cs: When a delete removes a line, recalculate all
14600         lines below that line (they need to get offsets setup correctly)
14601         and invalidate.
14602
14603 2007-04-05  Jackson Harper  <jackson@ximian.com>
14604
14605         * TextControl.cs: We need to invalidate across the width of the
14606         document when we are invalidating multiple lines.
14607         * TextBoxBase.cs: Don't delete into the line ending.
14608
14609 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14610
14611         * ListView.cs: Restore the check for the MouseHover event
14612         in ListView. It looks like the ListView fires more than one MouseHover
14613         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14614         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14615         event.
14616
14617 2007-04-05  Mike Kestner  <mkestner@novell.com>
14618
14619         * ListView.cs : raise MouseDown before updating selection.
14620         [Fixes #80373 tab 1&3]
14621
14622 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14623
14624         * ToolStripRenderer.cs: Add static method to mirror image.
14625         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14626         and RightToLeftAutoMirrorImage.
14627         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14628
14629 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14630
14631         * ToolStripSplitStackLayout.cs: Support Alignment property.
14632         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14633
14634 2007-04-05  Jackson Harper  <jackson@ximian.com>
14635
14636         * TextControl.cs: Move around the line endings when crossing line
14637         boundaries.
14638         - When combining lines, strip the ending text off the first line.
14639
14640 2007-04-05  Jackson Harper  <jackson@ximian.com>
14641
14642         * TextControl.cs:
14643         * TextBoxBase.cs: Try to never move the cursor into the line
14644         ending.
14645         
14646 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14647
14648         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14649         the item is disabled.  Also add a few missing methods.
14650
14651 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14652
14653         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14654         to fire just one MouseHover event when HoverSelection is true, since
14655         .Net does fire more than one MouseHover event in that scenario. Also,
14656         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14657         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14658         Finally, we need to reset the Hover logic in MouseMove, even when we
14659         don't have a selected item.
14660
14661 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14662
14663         * ToolStrip.cs: Add several missing methods, properties, and events.
14664
14665 2007-04-04  Chris Toshok  <toshok@ximian.com>
14666
14667         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14668         (0,0,0,0) in Commit, as MS does.
14669
14670         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14671         make sure we set CurrentRow on a row header click *before* calling
14672         Select.  This moves the current cell (and the textbox) to the new
14673         row.  The call to Select then hides the textbox, giving us the
14674         correct behavior.  Fixes #80362.
14675
14676         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14677         (ListChangedHandler): reorder the position/current changed events,
14678         and call UpdateIsBinding in the ItemAdded case.
14679
14680         * GridColumnStylesCollection.cs: add some columns events, one of
14681         which raises the CollectionChanged event.
14682
14683 2007-04-04  Jackson Harper  <jackson@ximian.com>
14684
14685         * TextControl.cs: When we delete multiple selection lines
14686         invalidate the selection area, don't need to do that for single
14687         lines because the final update view will handle it.
14688
14689 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14690
14691         * Control.cs: When we CreateControl, we need to also create all of the
14692         control's children.  The child's OnLoad must also fire before the parent's
14693         OnLoad.  Fixes the toolbox size in PDN.
14694
14695 2007-04-04  Jackson Harper  <jackson@ximian.com>
14696
14697         * TextBoxBase.cs: When the user presses enter, insert a line
14698         ending into the text. (Maybe this would be a good spot for
14699         Environment.NewLine).
14700         * TextControl.cs: Remove undo manager hack, line endings get
14701         inserted properly now.
14702         
14703 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14704
14705         * MenuAPI.cs: 
14706         - Remove unneeded parameters in UpdateCursor.
14707         - Fix UpdateCursor to check if menu is active.
14708         - Call UpdateCursor when menu deactivate my click.
14709         [Fixes remaining issues from #80410]
14710
14711 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14712
14713         * Control.cs: GetRealChildAtPoint method added, it make an
14714         recursive child control search for the point. 
14715
14716         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14717         menu.
14718
14719         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14720
14721 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14722
14723         * Form.cs: Fix mouse position when send back mouse event after closes
14724         menu.
14725
14726 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14727
14728         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14729
14730 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14731
14732         * Control.cs: Fix an issue where if a user resized a control inside
14733         a sizing method like OnResize, we would overwrite their explicit
14734         value.  Also, only call DefaultSize once in the constructor instead
14735         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14736         nothing actually changed.
14737
14738 2007-04-03  Jackson Harper  <jackson@ximian.com>
14739
14740         * TextControl.cs: Don't attempt to copy text for lines with no
14741         text in them (technically this shouldn't happen, but we aren't
14742         always inserting line endings when we should be).
14743
14744 2007-04-03  Jackson Harper  <jackson@ximian.com>
14745
14746         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14747         document, because this sets some of the document size properties
14748         that are needed.
14749
14750 2007-04-03  Jackson Harper  <jackson@ximian.com>
14751
14752         * TextBoxBase.cs: We need to calculate maximums even if this is
14753         not a multiline control, because the maxs are used for scrolling.
14754         - Display the caret after doing a page up/down, we need to
14755         manually display it because a proper CaretMoved event isn't
14756         triggered (this is because of the way the math is done to
14757         determine how far to scroll).
14758
14759 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14760
14761         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14762         (ToolBar was relying on SetBoundsCore to default the values sent 
14763         base off of BoundsSpecified.)
14764
14765 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14766
14767         * DateTimePicker.cs: Change Text so that when a null value or empty
14768           string is assigned to the test we always raise ValueChanged and
14769           TextChanged (earlier implementation would only raise ValueChanged
14770           if the current date value was different from DateTime.Now).
14771
14772 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14773
14774         * ButtonBase: Call update after invalidation, fixes #80194
14775
14776 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14777
14778         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14779           #79335.
14780
14781 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14782
14783         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14784           FormBorderStyle = None, don't give the window any decorations.
14785           Fixes #81276.
14786
14787 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14788
14789         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14790         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14791           to check for is a mix of several styles (such as WS_CAPTION for
14792           instance).
14793         * Control.cs: Don't paint an area bigger than the client area when
14794           painting the background colour. Add an internal GetCreateParams.
14795           Update calls to XplatUI.CalculateWindowRect due to API change.
14796         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14797           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14798           the size if it hasn't been handled by any windows. When creating
14799           and moving windows, X wants the location of the entire window, but
14800           the size of the client window, so add
14801           TranslateClientRectangleToXClientRectangle,
14802           TranslateWindowSizeToXWindowSIze and
14803           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14804           before every window creation and move. Update CalculateWIndowRect
14805           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14806           In AddConfigureNotify don't do anything if the hwnd is a zombie
14807           (fixes the BadWindow we were getting while running the tests),
14808           always calculate the offsets when it's a parentless window, not
14809           only when reparented, and translate the window size, since we're
14810           getting the client size of the whole window, excluding entire
14811           window.
14812         * Theme.cs: Added BorderSizableSize.
14813         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14814           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14815           chang
14816         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14817           change. Fake the window styles here instead of in XplatUIWin32 so
14818           that all back-ends get the same window styles (and it's Form that's
14819           deciding when to use wm, not the Win32 backend anyways)
14820         * Hwnd.cs: Completely reworked GetWindowRectangle and
14821           GetClientRectangle - they are now passed a CreateParams and they
14822           only use Style and ExStyle to determine the rectangles (they should
14823           now work just like Win32AdjustWindowRectEx - though quite a few
14824           special cases are probably missing). They should also be 100%
14825           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14826           == rect), and all numbers (borders, menu sizes) are taken from the
14827           current theme. Added a GetBorders helper function that will return
14828           the borders for any given CreateParams (including captions and
14829           menus), and GetBorderSize that returns the given border size only.
14830         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14831           Hwnd.GetClientRectangle.
14832
14833 2007-04-02  Chris Toshok  <toshok@ximian.com>
14834
14835         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14836         logic between the values we present to the user and the values
14837         which are stored in the column's property.  Also, don't call
14838         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14839
14840 2007-04-02  Jackson Harper  <jackson@ximian.com>
14841
14842         * TextBoxBase.cs: Scroll faster!
14843
14844 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14845
14846         * StatusStrip.cs: Layout fixes for PDN.
14847         * ToolStrip.cs: Set item's available to true, and placement to main when
14848         added.
14849         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14850         changing in setter before doing any work, add InternalVisible.
14851         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14852         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14853         infinite loop.
14854
14855 2007-04-02  Jackson Harper  <jackson@ximian.com>
14856
14857         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14858         text on focus.
14859
14860 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14861
14862         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14863           Makes ToolStripComboBoxes show up again.
14864
14865 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14866
14867         * ListView.cs: Add a hover_pending field in ListView
14868         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14869         cycle (we are resetting the MouseHover logic in XplatUI
14870         to handle HoverSelection). Fixes #80429.
14871
14872 2007-04-02  Jackson Harper  <jackson@ximian.com>
14873
14874         * TextControl.cs: Make sure the attributes get set on the last
14875         tag.
14876         - Still have to do the end tag if we have stepped all the ways to
14877         the end.
14878
14879 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14880
14881         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14882         on an internal libgdiplus call when the information is already 
14883         available via the public API.
14884
14885 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14886
14887         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14888           control is removed from a control collecftion.
14889         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14890           Fixes FormPropertyTest (failed on rare occasions).
14891         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14892           of Win32SetParent (when changing from no parent to a parent it
14893           might add the new parent's location in screen coordinates to this
14894           window's location).
14895         * Form.cs: Rework ChangingParent once again, now the handle is
14896           recreated whenever a FormWindowManager is added or removed (that is
14897           whenever a normal form is parented or abandoned). Also change
14898           CreateParams so that all non-toplevel windows always get the
14899           specified sice (StartupPosition is never considered for
14900           non-TopLevel forms).
14901         * ContainerControl.cs: Add ChildControlRemoved, the container control
14902           needs to be notified when a control is removed from it's
14903           collection, in the case the removed control is the active control.
14904
14905 2007-04-02  Jackson Harper  <jackson@ximian.com>
14906
14907         * RichTextBox.cs: Use the new methods for setting the font and
14908         color, these methods set the specified attribute without
14909         overriding the other attributes.
14910
14911 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14912
14913         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14914
14915 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14916
14917         * TextBox.cs: Added internal ChangeBackColor method to special-case
14918         Color.Empty. Added check for invalid ScrollBars value.
14919         * TextBoxBase.cs: Added internal ChangeBackColor method.
14920         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14921         internal ChangeBackColor method to special-case Color.Empty. Added
14922         check for invalid ScrollBars value.
14923
14924 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14925
14926         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14927
14928 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14929
14930         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14931         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14932         [Based on submitted patch from Olivier Duff.]
14933
14934 2007-03-30  Jackson Harper  <jackson@ximian.com>
14935
14936         * TextBox.cs: Only select all on initial focus if the user has not
14937         specified a selection area.
14938
14939 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14940
14941         * UserControl.cs: Override CreateParams.
14942
14943 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14944
14945         [ Fixes #80995 ]
14946
14947         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14948         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14949           check for is a mix of several styles (such as WS_CAPTION for instance).
14950         * Control.cs: Don't paint an area bigger than the client area when painting
14951           the background colour. Add an internal GetCreateParams. Update calls to
14952           XplatUI.CalculateWindowRect due to API change.
14953         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14954           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14955           hasn't been handled by any windows. When creating and moving windows, X
14956           wants the location of the entire window, but the size of the client
14957           window, so add TranslateClientRectangleToXClientRectangle,
14958           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14959           to cope with this, and call them before every window creation and move.
14960           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14961           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14962           hwnd is a zombie (fixes the BadWindow we were getting while running the
14963           tests), always calculate the offsets when it's a parentless window, not
14964           only when reparented, and translate the window size, since we're getting
14965           the client size of the whole window, excluding entire window.
14966         * Theme.cs: Added BorderSizableSize.
14967         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14968           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14969         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14970           Fake the window styles here instead of in XplatUIWin32 so that all
14971           back-ends get the same window styles (and it's Form that's deciding when
14972           to use wm, not the Win32 backend anyways)
14973         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14974           they are now passed a CreateParams and they only use Style and ExStyle
14975           to determine the rectangles (they should now work just like
14976           Win32AdjustWindowRectEx - though quite a few special cases are probably
14977           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14978           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14979           sizes) are taken from the current theme. Added a GetBorders helper
14980           function that will return the borders for any given CreateParams
14981           (including captions and menus), and GetBorderSize that returns the given
14982           border size only.
14983         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14984           Hwnd.GetClientRectangle.
14985
14986 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14987
14988         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14989           layout of the mdi children is handled by CreateParams. Fixes
14990           #79964,
14991
14992 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14993
14994         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14995         processed.
14996
14997         * Form.cs: When active tracker mouse down is not processed, send event 
14998         back to control inside mouse position. [Fixes #81227]
14999
15000 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15001
15002         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
15003         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
15004         stealing focus from the active form on Windows.  (Control will be made
15005         visible in ShowWindow.)
15006
15007 2007-03-29  Mike Kestner  <mkestner@novell.com>
15008
15009         * ImageList.cs : add internal Changed event.
15010         * ListView.cs : hook up to StateImageList.Changed to perform
15011         invalidations when the the state icon list changes. [Fixes #81191]
15012
15013 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
15014
15015         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
15016         to prevent tooltips from stealing focus from the active form on Windows.
15017
15018 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15019
15020         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
15021
15022         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
15023
15024 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15025
15026         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
15027         balloons.
15028
15029 2007-03-29  Jackson Harper  <jackson@ximian.com>
15030
15031         * TextControl.cs: When deleting text from non multiline textboxes,
15032         we need to update the entire document, because line offsets will
15033         be shifting.
15034
15035 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
15036
15037         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
15038         added to theme, now we can create themes that uses diferent notify engines
15039         like notification-daemon from galago project or growl for Mac OS.
15040
15041 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15042
15043         * NotifyIcon.cs: Prevent Balloon to show in task bar.
15044
15045 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15046
15047         * XplatUIX11.cs: Prevent system to open more than one balloon.
15048
15049         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
15050         some compiler warning messages.
15051
15052 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
15053
15054         [Fixes #79149]
15055
15056         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
15057
15058         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
15059         implemented, this methods is used by NotifyIcon.BalloonWindow class.
15060
15061         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
15062         systems.
15063
15064 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15065
15066         * ListViewItem.cs: Forgot to make Invalidate internal.
15067
15068 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15069
15070         * ListView.cs: Add a InvalidateSelection method to
15071         invalidate methods which are currently selected, and call
15072         it when setting FullRowSelect and HideSelection, instead of
15073         calling Redraw.
15074
15075 2007-03-28  Chris Toshok  <toshok@ximian.com>
15076
15077         * XplatUIX11.cs (UnmapWindow): reindent this block.
15078
15079         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
15080         the selection_start if we're moving the selection (that is, not
15081         extending it). Fixes bug #80461.
15082
15083 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15084
15085         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
15086         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
15087         create private ControlCollection.
15088
15089 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15090
15091         * Control.cs: We need to call OnVisibleChanged for our implicit
15092         children as well as our normal children.  Fixes scrollbars in
15093         comboboxes not showing up.
15094
15095 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15096
15097         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
15098         the check for IsHandleCreated first.  The check in CreateHandle is not
15099         good enough because CreateHandle can be overriden, and the override 
15100         should not be called if the handle is already created.
15101
15102 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15103
15104         * ToolStrip.cs: Remove MonoTODO for tooltips.
15105         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15106         * ToolStripContainer.cs: Add custom ControlCollection class.
15107         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15108         * ToolStripDropDown.cs: Add some missing properties/methods.
15109         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15110         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15111         * ToolStripManager.cs: Add IsShortcutDefined.
15112         * ToolStripOverflow.cs: Override LayoutEngine.
15113         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15114         * ToolStripSeparator.cs: Add ImageKey.
15115
15116 2007-03-28  Jackson Harper  <jackson@ximian.com>
15117
15118         * TextControl.cs: If a char delete removes a line ending, we need
15119         to update the ending style.
15120         - Make sure the line ending calcs get called.
15121
15122 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15123
15124         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15125           it was making the new code not work. Fixed a typo in the new code
15126           as well. Fixes #79826.
15127
15128 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15129
15130         * XplatUIWin32.cs:
15131         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15132         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15133         - SystrayBalloon method implemented.
15134         [Add support for notifyicon balloon on win32, #79149]
15135
15136 2007-03-27  Mike Kestner  <mkestner@novell.com>
15137
15138         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15139         the ms behavior when only one image is added to the list.
15140         [Fixes #81191]
15141
15142 2007-03-27  Jackson Harper  <jackson@ximian.com>
15143
15144         * TextControl.cs: Improvements to non multiline line ending
15145         drawing/measuing.
15146
15147 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15148
15149         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15150
15151 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15152
15153         * NotifyIcon.cs: 
15154         - Balloon message handling added.
15155         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15156
15157         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15158         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15159         to SystrayBalloon to me like other Systray method, also a
15160         handle parameter added.
15161
15162 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15163
15164         * ListView.cs: Show scrollbars even when items.Count == 0
15165         but the columns Width is bigger than the ListView.Width.
15166         Also, when columns.Count == 0 set layout_wd and layout_ht
15167         to the ClientRectangle values, so we don't show any scrollbar
15168         in that case.
15169
15170 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15171
15172         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15173
15174 2007-03-27  Jackson Harper  <jackson@ximian.com>
15175
15176         * RichTextBox.cs: The RTF library decodes the text properly for us
15177         now.
15178
15179 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15180
15181         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15182         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15183         ListView header (HeaderControl), instead of Control.BackColor.
15184
15185 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15186
15187         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15188         Fixes tab control issues where controls would not show up because they
15189         never received their OnVisibleChanged call.
15190
15191 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15192
15193         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15194         BalloonTipShown).
15195
15196 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15197
15198         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15199         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15200         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15201         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15202         the handle.  Fix WindowState by using the internal variable until we are 
15203         sure that we've been shown.
15204         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15205         max or min.
15206         [Fixes bug #81198]
15207
15208 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15209
15210         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15211           (at least borders). Fixes #79386 on Linux (with a small difference
15212           in behaviour: when trying to resize a caption-less window metacity
15213           shows the sysmenu. Resizing is still possible though).
15214         * XplatUIWin32.cs: When setting window styles send request an extra
15215           WM_NCCALCSIZE when it's a form without title (due to no text and no
15216           caption), since Win32 seems to calculate it wrong the first time we
15217           get the message, though the second time things work as they should.
15218         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15219           newly reparented window might show up unparented. Update
15220           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15221           there's no title text. Fixes #79386.
15222
15223 2007-03-27  Mike Kestner  <mkestner@novell.com>
15224
15225         * ListBox.cs : don't perform invalidations if the handle hasn't been
15226         created.  [Fixes #80753]
15227
15228 2007-03-27  Mike Kestner  <mkestner@novell.com>
15229
15230         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15231         [Fixes #80428]
15232
15233 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15234
15235         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15236         needed to implement Balloon.
15237
15238 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15239
15240         * ListViewItem.cs: In the constructors that take
15241         an array of strings, don't use ListViewSubItemCollection.AddRange
15242         method to add items, since we need to have a different behaviour (in
15243         the constructors we add an item for each null string, opposed to
15244         the behaviour of AddRange, which adds nothing).
15245
15246 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15247
15248         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15249
15250 2007-03-26  Jackson Harper  <jackson@ximian.com>
15251
15252         * TextControl.cs: Draw and measure line endings when in non
15253         multiline mode.
15254         - When searching the text, count the end of the last line as a
15255         word boundary.
15256
15257 2007-03-26  Jackson Harper  <jackson@ximian.com>
15258
15259         * RichTextBox.cs: The selection_start and selection_end don't
15260         really track the correct tags for the selection. So we'll manually
15261         compute the correct tag here.
15262
15263 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15264
15265         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15266           and Continuous styles. Fixes #79469.
15267
15268 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15269
15270         * ToolStrip.cs: Implement Tooltips.
15271         * ToolStripItem.cs: Create internal method for determining tooltip.
15272
15273 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15274
15275         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15276
15277 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15278
15279         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15280         it prevents a problem thak keeps icon visible after application 
15281         closes on win32.
15282
15283 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15284
15285         * NotifyIcon.cs: Balloon properties and methods created.
15286
15287         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15288         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15289
15290 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15291
15292         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15293
15294 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15295
15296         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15297         parameter indicates which aspects were explicit/user-set.
15298         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15299
15300 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15301
15302         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15303         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15304         SmallChange, and Value (2.0).
15305         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15306
15307 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15308
15309         * ListView.cs: Always set item_control.Width in LayoutDetails
15310         if View is Details. Setting it later in CalculateScrollBars
15311         in a not-so-corner scenario (the sum of columns width is
15312         not bigger than the ListView width when handle is created, and then
15313         that sum gets bigger by increasing the width of the columns)
15314         causes a very weird recursion path (which shouldn't be happening,
15315         since header_control sets it in CalculateScrollBars too). This bug
15316         appeared after Chris' fixes for handle created issues, so probably
15317         it's related to some handle-creation time.
15318
15319 2007-03-23  Chris Toshok  <toshok@ximian.com>
15320
15321         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15322         case where there's an add row, just so we don't end up in a case
15323         where it's not displayed (this happens when the row is partially
15324         obscured).  Fixes bug #79574.
15325
15326 2007-03-23  Jackson Harper  <jackson@ximian.com>
15327
15328         * TextControl.cs:
15329         * TextBoxBase.cs:
15330         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15331         also added an enum that represents the line ending type. 
15332
15333 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15334
15335         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15336         messed with in every method call, but only from DownButton, 
15337         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15338
15339 2007-03-23  Chris Toshok  <toshok@ximian.com>
15340
15341         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15342         format objects if the format spec is "".  Fixes bug #80889.
15343
15344 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15345
15346         * ToolStripPanel.cs (Join): added stubs to build PDN3
15347
15348         * Control.cs (AutoScrollOffset): Add.
15349
15350         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15351         property, its only implemented for Win32, on X11 it defaults to
15352         some hardcoded value.
15353
15354         * ToolStripItem.cs (AllowDrop): Add property
15355
15356 2007-03-22  Mike Kestner  <mkestner@novell.com>
15357
15358         * ListView.cs : in FullRowSelect Details mode, only enable box
15359         selection if the user clicks over the "item" column outside of the
15360         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15361
15362 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15363
15364         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15365           handle is not created yet.
15366         * Form.cs: Select: Don't call CreateHandle if the handle is already
15367           created, avoids a stack overflow on Windows when we are recreating
15368           controls.
15369         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15370           they are made visible, and override AfterTopMostControl to keep
15371           them on top when other controls are brought to front.
15372           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15373           or force_*scroll_visible is true (old implementation always shows
15374           scrollbars when needed, no matter what auto_scroll was set to).
15375         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15376           IsHandleCreated check.
15377
15378 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15379
15380         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15381         row or col separator.
15382         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15383
15384 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15385
15386         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15387
15388 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15389
15390         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15391         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15392         every time. Fixes #80410.
15393
15394 2007-03-22  Chris Toshok  <toshok@ximian.com>
15395
15396         * BindingSource.cs (AddNew): partially implement.
15397
15398         remove a couple of NotImplementedException's
15399         to get bug #81148 closed.
15400
15401 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15402
15403         [Fixes #80380]
15404         
15405         * Control.cs:
15406         - UpdateCursor method added to update the screen cursor.
15407         - GetAvailableCursor method added to return cursor for enabled tree,
15408         it searches for cursor on control and it's parent's for enabled control.
15409         - Call UpdateCursor method on setter of Cursor property.
15410         - On setter of Enabled call UpdateCursor when it is false, we need to
15411         change cursor to normal (or to this parent cursor) because cursor 
15412         setting theres no effect to disabled controls.
15413         - Some minor source changes to follow the coding style guidelines.
15414
15415         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15416         controls.
15417
15418 2007-03-22  Chris Toshok  <toshok@ximian.com>
15419
15420         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15421         generates.
15422
15423 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15424
15425         * XplatUIX11.cs: Implement default locations for forms.
15426         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15427         * Hwnd.cs: Add previous_child_startup_location (to track the current
15428           startup location for any child forms of the current form) and
15429           previous_main_startup_location (to track the startup location for
15430           the current toplevel form).
15431
15432 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15433
15434         * Control.cs: Don't trigger a layout if an implicit control is added
15435         that isn't visible.  Also, don't notify the owner when an implicit control
15436         is added.  (Owners shouldn't even know about their implicit controls.)
15437
15438 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15439
15440         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15441         to save some re-layouts.
15442
15443 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15444
15445         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15446         [Fixes #81203]
15447
15448 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15449
15450         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15451         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15452
15453 2007-03-21  Mike Kestner  <mkestner@novell.com>
15454
15455         * ListView.cs : disable selection update for non-left button clicks
15456         with mods and over selected items.  [Fixes #80524]
15457
15458 2007-03-20  Jackson Harper  <jackson@ximian.com>
15459
15460         * TextControl.cs:
15461         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15462         \r\r\n, \n.
15463
15464 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15465
15466         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15467           very probably a more complicated calculation there. Update the
15468           textbox' ForeColor and BackColor when the ComboBox' colors are
15469           changed. Change the border change in LayoutComboBox to only affect
15470           the textbox, not all the calculations there. Seems to fix most of
15471           #79436.
15472
15473 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15474
15475         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15476           modifiers + navigation keys as input keys, enables advanced text
15477           selection in the combobox (like Shift+Left Arrow for instance).
15478           ComboTextBox now overrides Focused and returns whatever
15479           ComboBox.Focused returns, since it really should be focused
15480           whenever the ComboBox is. Fixes #80795. Also make the border around
15481           the text box one pixel bigger, as mentioned in #79436.
15482
15483 2007-03-20  Jackson Harper  <jackson@ximian.com>
15484
15485         * TreeView.cs: Don't offset the images, this was causing some
15486         artifacts when expanding/collapsing with images that were the
15487         exact height of the treenode.
15488
15489 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15490
15491         * TrackBar.cs: Query the theme for the correct value when the mouse
15492           moves and the thumb is pressed. 
15493         * Theme.cs: Added TrackBarValueFromMousePosition
15494         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15495           implementation was updating the trackbar value when drawing, now
15496           the drawing methods only draw. Fixes #80900. Refactored the
15497           calculations out to TrackBarValueFromMousePosition and
15498           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15499           according to the mouse position whenever it wants to. Changed the
15500           light coloured pen when drawing the thumb from ControlLight to
15501           ControlLightLight, because the ControlLight is the same colour as
15502           the background so the 3D effect is lost. 
15503
15504 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15505
15506         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15507         defined. Fixes #80784.
15508
15509 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15510
15511         * ContextMenuStrip.cs: align with the change introduced in
15512         revision 74664.
15513
15514 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15515
15516         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15517         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15518         in SetTopmost.
15519
15520 2007-03-19  Chris Toshok  <toshok@ximian.com>
15521
15522         * Control.cs (WmPaint): don't make use of the Handle property
15523         after an event is emitted, as the user could have closed the
15524         form/destroyed the control.  Store the Handle in a local variable
15525         and make use of that.  Fixes bug #80768.
15526
15527 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15528
15529         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15530         behavior in X11 environments.
15531
15532 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15533
15534         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15535         because on setter of topmost we dont call SetTopmost when handle is not
15536         created.
15537
15538 2007-03-20  Jackson Harper  <jackson@ximian.com>
15539
15540         * TextControl.cs: Need to use SelectionLength () not
15541         selection_length, since that var is reset to -1.
15542         - Draw the caret when we don't have focus.
15543         * TextBox.cs: The selectall actually doesn't occur until the first
15544         focus.
15545         * TextBoxBase.cs: Need to update the caret position after a
15546         selectall.
15547         
15548 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15549
15550         * ListView.cs: Enable scrolling when using Tile view.
15551
15552 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15553
15554         [Fixes #80902]
15555
15556         * XplatUIDriver.cs: Abstract SetOwner method created.
15557
15558         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15559         must be implemented and was masked as todo.
15560
15561         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15562         GWL_HWNDPARENT.
15563
15564         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15565         cheking for null owner to remove transient. The SetTopmost will be change
15566         on a decond step.
15567
15568         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15569         SetTopmost. Now owned forms will work properly in win32 and X11.
15570
15571 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15572
15573         * MdiWindowManager.cs: Update function name.
15574         * Form.cs: After closing a form MdiParent is always null.
15575         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15576           better what it should do: necessary book-keeping when the form is
15577           closed, it should not close the form itself.
15578
15579 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15580
15581         * ListViewItem.cs: Fix back and fore color. The subitems only
15582         use their own colors if they are set, otherwise use the listview's
15583         colors. Don't set default colors on constructor for subitem.
15584         Fixes #79315.
15585
15586 2007-03-19  Mike Kestner  <mkestner@novell.com>
15587
15588         * ListView.cs : make box selection for Details views with 
15589         FullRowSelect conform to MS behavior when clicking in the "item" 
15590         column and clicking outside the defined columns.
15591         [Fixes case 5-6 of #80374]
15592
15593 2007-03-19  Chris Toshok  <toshok@ximian.com>
15594
15595         * ScrollableControl.cs: create the controls from within the ctor,
15596         but don't actually add them until our handle is created.  this
15597         fixes a NRE possibility jpobst found (if you override OnLayout in
15598         a subclass, it's called before your ctor).  Also, add a
15599         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15600
15601 2007-03-19  Jackson Harper  <jackson@ximian.com>
15602
15603         * TextBox.cs: Reduce the amount of invalidation we do.
15604         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15605         some of them are true by default on MS.
15606         - Add some functions to reduce the amount of invalidates we do.
15607         * TextControl.cs: Less invalidation.
15608
15609 2007-03-19  Chris Toshok  <toshok@ximian.com>
15610
15611         [ Fixes #81773, and *seems* to fix #81553 as well ]
15612
15613         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15614         AccumulateDestroyedHandles.  We need to do it *after* we send
15615         WM_DESTROY, as the user's code can access Control.Handle in
15616         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15617         move the WM_DESTROY/zombie handling to before the call to
15618         XDestroyWindow.  For some reason without this ordering
15619         FormTest.RecreateHandle hangs.  This ordering is semantically
15620         equivalent, however, as XDestroyWindow is async anyway.
15621
15622 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15623
15624         * RichTextBox.cs: Reset backcolor_set after setting default.
15625
15626 2007-03-19  Chris Toshok  <toshok@ximian.com>
15627
15628         * ScrollableControl.cs: the scroll position should not effect the
15629         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15630         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15631         
15632 2007-03-19  Chris Toshok  <toshok@ximian.com>
15633
15634         * ScrollableControl.cs: clean this up a bit.  create the
15635         scrollbars in the ctor and just show/hide them as needed.  Also,
15636         make hscroll_visible/vscroll_visible internal to Recalculate, and
15637         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15638         everywhere else.  This seems to fix the scrollbars appearing
15639         beneath the content for me (i have *no* idea why that is,
15640         however.)
15641
15642 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15643
15644         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15645         some redundacy for stuff in Anchor and Dock that base will take care of.
15646         [Fixes #80762]
15647
15648 2007-03-19  Mike Kestner  <mkestner@novell.com>
15649
15650         * ListView.cs : make box selection for Details views without 
15651         FullRowSelect dependent on the text bounds, not item bounds.
15652         * ListViewItem.cs : add an internal property to obtain the TextBounds
15653         in Details view.  [Fixes case 1-4 of #80374]
15654
15655 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15656
15657         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15658         we're < 2.0. #78448 && #80316
15659
15660 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15661
15662         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15663         have the same style available as the previously selected one.  Also,
15664         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15665
15666 2007-03-19  Jackson Harper  <jackson@ximian.com>
15667
15668         * TextControl.cs: Add an alignment property that all new lines
15669         will be given.
15670         - Make sure to use the align shift when calculating the line's X
15671         position.
15672         * TextBox.cs: Set the alignment on the document as well as on all
15673         the document lines.
15674
15675 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15676
15677         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15678           throw if setting the parent of an mdichild that already has an
15679           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15680           AssemblyProductAttribute in the assembly, use the type's namespace (as
15681           MS seems to do). CreateControl: don't create the handle if the control
15682           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15683           create handle if the control is not a form. Change FocusInternal to
15684           virtual so that it can be overriden by Form.
15685         * TextBox.cs: Update call to FocusInternal.
15686         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15687           form is not a toplevel form when it's a mdi child, so update is_toplevel
15688           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15689           hasn't been created. Show (IWin32Window): Don't allow this overload for
15690           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15691           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15692           parent isn't visible yet, save the visibility and restore it when the
15693           parent is made visible.
15694         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15695           methods, since the visibility of the scrollbars can be changed from
15696           several places, not only from AutoScroll.
15697           [Fixes #81179]
15698
15699 2007-03-19  Jackson Harper  <jackson@ximian.com>
15700
15701         * RichTextBox.cs: Enable shortcuts by default.
15702         * TextBoxBase.cs: Add conditional shortcuts.  
15703
15704 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15705
15706         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15707
15708 2007-03-19  Chris Toshok  <toshok@ximian.com>
15709
15710         [ Fixes bug #80604]
15711         
15712         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15713         swallow the message we're waiting on, instead of delivering it, as
15714         this is only used for the WM_SHOWWINDOW raised from
15715         MapWindow/UnmapWindow, and the message needs to be generated
15716         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15717         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15718         alive after the message has been handled.
15719
15720         *before* the window is shown.
15721
15722         * Control.cs (CreateControl): guard a few more things inside the
15723         if (!is_created) block, as we might end up being called again -
15724         yay .net.
15725         (WmShowWindow): call CreateControl if we're showing the control.
15726
15727 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15728
15729         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15730           controls without a handle if they have any parent with a handle. In
15731           Dispose add a check whether the handle is created or not before
15732           calling BeginInvoke, this removes the need of the extra disposing
15733           parameter (which was bogus anyway since it didn't prevent the
15734           invoke from happening, it only skipped the check for an existing
15735           handle, meaning that the invoke would call on an inexistent
15736           handle).
15737
15738 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15739
15740         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15741         appears in taskbar.
15742
15743 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15744
15745         * MessageBox.cs:
15746         - Fixed a problem that dont show help button for messages with 3 buttons.
15747         - Refactory button size and position calculations, now dont use fixed 
15748         values, also fixed button sizes (#80043) and form's border space.
15749         - AddButton method created, now all other AddButton methods call this one.
15750         - Some other source code cosmetic changes.
15751
15752 2007-03-18  Jackson Harper  <jackson@ximian.com>
15753
15754         * RichTextBox.cs: Don't do this all fonts must match check if
15755         there is only one char selected.
15756
15757 2007-03-18  Jackson Harper  <jackson@ximian.com>
15758
15759         * TreeView.cs: ScrollWindow works properly now, so we don't need
15760         to screw around with the scroll area.  This fixes some artifacts
15761         when expanding and collapsing.
15762
15763 2007-03-18  Jackson Harper  <jackson@ximian.com>
15764
15765         * TextBoxBase.cs: Allow updating the selection position when the
15766         cursor is outside the textarea, but we have a capture.
15767         * TextControl.cs: A special case for when the cursor is outside
15768         the bounds of the TB.
15769         
15770 2007-03-18  Jackson Harper  <jackson@ximian.com>
15771
15772         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15773         way to get an image on the clipboard right now anyways.
15774         * TextControl.cs:
15775         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15776
15777 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15778
15779         * MessageBox.cs:
15780         - Set window properties in constructor intead of on CreateParams.
15781         - Remove topmost from Window ExStyle.
15782         - Set ShowInTaskbar to false.
15783         - Set form border to FixedDialog.
15784         - Some cosmetic changes and remove unneeded comments.
15785         - It fixes itens 2,3 and 4 of bug #80043.
15786
15787 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15788
15789         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15790         none was explicitly set. Fixes part of bug #79949.
15791
15792 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15793
15794         * ToolStripComboBox.cs: Add AutoComplete*.
15795
15796 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15797
15798         * ToolStripComboBox.cs: Add FlatStyle.
15799
15800 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15801
15802         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15803         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15804
15805 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15806
15807         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15808           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15809           DataGridColumnStyle.cs: Remove warnings.
15810
15811 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15812
15813         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15814           it.
15815         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15816           visibility of mdi child forms. FormSizeChangedHandler: update the
15817           maximized size if size has changed while maximized.
15818         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15819           creating the handle.
15820         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15821           avoid creating the handle if not created.
15822         * XplatUI.cs: Update debug output.
15823         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15824
15825 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15826
15827         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15828         ProcessCmdKey().
15829         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15830         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15831         Implement keyboard shortcuts.
15832
15833 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15834
15835         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15836         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15837         ColorDialog and all derived classes.
15838
15839 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15840
15841         [ Fixes bug #79828 ]
15842
15843         * ToolBar.cs:
15844         - Rename ToolBarButtonInfor to ToolBarItem.
15845         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15846         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15847         collection to be able add same button more than one time on a toolbar.
15848         - Refactory all properties and methods to use ToolBarItem. 
15849
15850         * ToolBarButton.cs: 
15851         - Remove all propeties and methods that is now in ToolBarItem.
15852         - Rectangle propery now gets the rectangle from first ToolBarItem to
15853         mimic win32 behavior.
15854         - Size calculation and layout methods also removed.
15855
15856         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15857         ToolBarItem instead of ToolBarButton to right drawing buttons when
15858         same button/separator was added more than one time to ToolBar.
15859
15860         * ThemeNice.cs: Same as above. 
15861
15862 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15863
15864         * XplatUIX11.cs: Fire extra MouseMove events right after
15865         MouseDown and MouseUp, emulating win32's <censored> behaviour
15866         for apps that rely on it.
15867
15868 2007-03-15  Jackson Harper  <jackson@ximian.com>
15869
15870         * TextControl.cs:
15871         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15872         it is drawn on the controls client window and there is no NC
15873         area.
15874         - Set the background color to gray on 2.0 when we are readonly.
15875
15876 2007-03-15  Chris Toshok  <toshok@ximian.com>
15877
15878         [ Fixes bug #81144 ]
15879         
15880         * XplatUIX11.cs: implement VirtualScreen independently of
15881         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15882         property.
15883
15884 2007-03-15  Chris Toshok  <toshok@ximian.com>
15885
15886         * Hwnd.cs: add an internal field for the cached_window_state.
15887
15888         * XplatUIX11.cs: cache the window state, invalidating the cache
15889         (and thus re-querying the X server) only when we see an update to
15890         the _NET_WM_STATE property.
15891
15892 2007-03-15  Chris Toshok  <toshok@ximian.com>
15893
15894         * BindingSource.cs: get a lot of the unit tests working.
15895
15896 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15897
15898         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15899         0 instead of just bounds > 0.  [Fixes bug #80912]
15900
15901 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15902
15903         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15904         and methods.
15905
15906 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15907         
15908         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15909         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15910         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15911         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15912
15913 2007-03-15  Chris Toshok  <toshok@ximian.com>
15914
15915         [ Fixes #81101 ]
15916         
15917         * Control.cs: add Ivan's fix for 81101, with a slight modification
15918         - you can set control.Target to null.
15919
15920 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15921
15922         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15923         HideDropDown, use Hide instead to prevent an NRE.
15924         [Fixes bug #81147]
15925
15926 2007-03-14  Jackson Harper  <jackson@ximian.com>
15927
15928         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15929         to calculate the document before the handle is created, in some
15930         cases. (Actually just one case).
15931
15932 2007-03-14  Jackson Harper  <jackson@ximian.com>
15933
15934         * TextBoxBase.cs: Need to display the caret after letting the base
15935         wndproc handle the focus methods, because the caret display
15936         methods check the focus state.
15937         - Try to display the caret after updating it's position with SelectWord.
15938         - Don't need to do an immediate update on this recalc, since there
15939         will be an invalidate anyways.
15940
15941 2007-03-14  Jackson Harper  <jackson@ximian.com>
15942
15943         * TreeView.cs: Some workarounds so that we can match event order a
15944         little better.
15945
15946 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15947
15948         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15949         #80803. Avoid NullReferenceException when Control does not have
15950         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15951         event a single time. Only draw error icon when control is created and
15952         visible. Fixes failing unit tests.
15953
15954 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15955
15956         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15957         Selecting events. Fire Leave and Enter events when changing tabs.
15958
15959 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15960
15961         * TreeView.cs: Add TreeViewNodeSorter.
15962         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15963
15964 2007-03-14  Chris Toshok  <toshok@ximian.com>
15965
15966         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15967         removed earlier and I had him add back it.  It turns out metacity
15968         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15969         just doesn't redraw the window titlebar until you resize the
15970         window.  This also means we aren't recreating the entire window
15971         hierarchy on X when you change this property.  And it looks better
15972         on windows, too.
15973
15974 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15975
15976         * ListViewItem.cs:
15977         * ListView.cs: Collecting selection information
15978         is now done in SelectedIndexCollection rather than in
15979         SelectedListViewItemCollection. This is done so we can
15980         have the selection information code in one single place
15981         (virtual mode selection information entirely depends on
15982         SelectedIndexCollection).
15983
15984 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15985
15986         * ErrorProvider.cs: Add stubs for ISupportInitialize
15987
15988 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15989
15990         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15991         in the right order with the right values, from the Checked property, 
15992         just as MS does (instead of triggering them from ListView).
15993
15994         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15995
15996 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15997
15998         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15999         the correct handler in OnItemCheck method (ItemCheckEventHandler 
16000         instead of EventHandler). This used to throw an InvalidCastException.
16001
16002 2007-03-13  Jackson Harper  <jackson@ximian.com>
16003
16004         * TextBoxBase.cs: Calculate the document before the handle is
16005         created, so there isn't an extra invalidate called.
16006
16007 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
16008
16009         * Form.cs: Don't set owner in ShowDialog until we are sure
16010         that we aren't going to throw an exception.  [Fixes bug #80773]
16011
16012 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
16013
16014         * TreeView.cs: Make it compile.
16015
16016 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16017
16018         * Control.cs: Another place we don't call SizeFromClientSize.
16019         * Form.cs: Another place we don't call SizeFromClientSize.
16020         [Fixes bug #81125]
16021
16022 2007-03-12  Jackson Harper  <jackson@ximian.com>
16023
16024         * TreeView.cs: Basically emulating some strangness here with
16025         exanding nodes and setting node positions when windows aren't
16026         created.
16027         - Also attempting to walk the node tree less than previously, and
16028         just use visible order calculations for determining offsets.
16029         - oops made scrolling backwards.
16030         * TreeNode.cs: We need to start nodes with a zero visible order,
16031         because the order calcs are based on the first nodes order.
16032
16033 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16034
16035         * Form.cs: Don't exit the program if RecreateHandle is called on
16036         the main form.
16037
16038 2007-03-12  Chris Toshok  <toshok@ximian.com>
16039
16040         * XEventQueue.cs: remove the use of PostQuitState.
16041
16042         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
16043         WM_QUIT message in GetMessage, return false (and if we're in the
16044         nested WaitForHwndMessage, repost the WM_QUIT message).
16045
16046 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16047
16048         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
16049         or the MaximizeBox properties.  [Part of bug #80640]
16050
16051 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
16052
16053         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
16054         no links.
16055
16056 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16057
16058         * ToolStripItem.cs: Fix some tests I broke by checking Visible
16059         instead of visible.
16060
16061 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
16062
16063         * FileDialog.cs: Use text of File name combobox to determine what
16064         files the user selected. Added tokenizer to parse the file names.
16065         Fixes bug #81123.
16066
16067 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
16068
16069         * Control.cs: We can't call SizeFromClientSize in the constructor,
16070         but we still need to do the same work, so make an internal version.
16071         [Fixes bug #80621]
16072
16073 2007-03-12  Jackson Harper  <jackson@ximian.com>
16074
16075         * TreeView.cs:
16076         * TreeNode.cs:
16077         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
16078         IsExpanded.
16079
16080 2007-03-12  Jackson Harper  <jackson@ximian.com>
16081
16082         * TextBoxBase.cs: Now that the handles are being created a little
16083         later, we need to make sure that the document is recalculated when
16084         the handle is created.
16085
16086 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
16087
16088         * Theme.cs: GetLinkFont abstract method added.
16089         
16090         * LinkLabel.cs: 
16091         - Remove CalcTrimRectangle, no longer needed.
16092         - Factor also remove, position issues must be fixed in libgdiplus.
16093         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
16094         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
16095         care about font used to draw links.
16096         - Set TabStop to true when control is "Selectable", control is selectable
16097         when have one or more links. Fixes #80501 (test case is also added).
16098         - Set the LinkArea values after links change, LinkArea values must be
16099         based in first link position and size, a test case was created.
16100         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16101         the attribute must be true LinkArea.Length > 0. The same was applied to
16102         TabStop.
16103         
16104         * ThemeWin32Classic.cs: 
16105         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16106         in draw method.
16107         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16108         color change.
16109         - Draw focus rectangle for every parts focused, including parts that 
16110         is on another line, its because regions returns various rectangles
16111         and not only one. Needed to mimic W32 look.
16112         - Uses Graphics.Clip to delimite region painted, it mean that now 
16113         complete text is passed to DrawString, with this we solve layout
16114         issues without create another text renderer.
16115         - Uses Region.Intersect to fix some flickers problems, now only needed
16116         parts will redrawed.
16117         - This changes fixes #79614 and some other unreported issues, on Linux 
16118         some layout problems still remain, the problem is under 
16119         MeasureCharacterRanges but it is an libgdiplus bug.
16120
16121 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16122
16123         * TextBox.cs: Set for foreground color.
16124         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16125         this is already done in Control.
16126
16127 2007-03-10  Jackson Harper  <jackson@ximian.com>
16128
16129         * TextBox.cs: Set the background color, but reset the
16130         backcolor_set flag which is just for the user setting the
16131         background color.
16132
16133 2007-03-09  Chris Toshok  <toshok@ximian.com>
16134
16135         * Control.cs: really remove the call to XplatUI.SetVisible from
16136         CreateHandle(), like I said I did when I merged the branch.
16137
16138         * BindingSource.cs: implement some more of this stuff.
16139
16140 2007-03-09  Jackson Harper  <jackson@ximian.com>
16141
16142         * TextBox.cs: Don't explicitly set our background colors.
16143         * TextControl.cs:
16144         * TextBoxBase.cs: Draw readonly text.
16145         - Need to invalidate when backcolor or readonly are changed.
16146         
16147 2007-03-09  Jackson Harper  <jackson@ximian.com>
16148
16149         * TextBoxBase.cs: Don't set the forecolor until the handle is
16150         created.
16151         - Do not raise OnPaint, and removed some old debug code.
16152
16153 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16154
16155         * ScrollableControl.cs: Fix mouse wheel scrolling.
16156
16157 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16158
16159         * Control.cs: Wire up MouseDoubleClick event.
16160
16161 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16162
16163         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16164         top or bottom.
16165         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16166         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16167         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16168         [Fixes bug #81090]
16169
16170 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16171
16172         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16173
16174 2007-03-08  Jackson Harper  <jackson@ximian.com>
16175
16176         * TreeView.cs: Show the correct image for selected node (this used
16177         to work, not sure how the code got deleted). Also implemented 2.0 feature
16178         SelectedImageKey.
16179
16180 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16181
16182         * ListView.cs:
16183         * ListViewItem.cs: Cache index in items when retrieving them
16184         in VirtualMode.
16185
16186 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16187
16188         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16189         AutoSize.  Fixes invalidation issue when user has explicitly set a
16190         size and has AutoSize = true.
16191
16192 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16193
16194         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16195
16196 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16197
16198         * DataGridView.cs: Remove event handler from DataView when a
16199         DataTable is used as DataSource.
16200
16201 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16202
16203         * Control.cs: Create internal setter for client_size to allow it to be
16204         set without triggering resizing code.
16205         * Form.cs: Calculate client_size in constructor, only change client_size
16206         in FormBorderStyle property if Handle has been created.
16207         [Fixes #80574, #80791]
16208
16209 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16210
16211         * SystemInformation.cs: Add TerminalServerSession.
16212
16213 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16214
16215         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16216         TreeView code.
16217
16218 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16219
16220         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16221         Handle before we were supposed to.  Now checks ActivateOnShow property
16222         in Control.
16223         * Control.cs: Add internal ActivateOnShow property.
16224         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16225         for ActivateOnShow.
16226         * Hwnd.cs Remove no longer needed no_activate field.
16227
16228 2007-03-07  Jackson Harper  <jackson@ximian.com>
16229
16230         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16231         2.0 properties
16232         * DrawTreeNodeEventHandler.cs: Add
16233         * DrawTreeNodeEventArgs.cs: Correct default value.
16234         
16235 2007-03-07  Chris Toshok  <toshok@ximian.com>
16236
16237         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16238         to be called before NativeWindow.WndProc.  Put the HwndCreating
16239         magic there to hook up our Hwnd's to handles.
16240
16241 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16242
16243         * DataGridView.cs: Comment out debug code.
16244
16245 2007-03-07  Chris Toshok  <toshok@ximian.com>
16246
16247         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16248         to make the rest of the world happy]
16249
16250         * Control.cs (CreateHandle): there's no need to call
16251         XplatUI.SetVisible here, it's effectively done by
16252         XplatUI.CreateWindow on X now, and always was on windows.
16253
16254         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16255         shortcircuit out of the loop if we have a message loop running on
16256         this thread.
16257
16258         [Changelog from merge]
16259
16260         2007-03-05  Chris Toshok  <toshok@ximian.com>
16261
16262                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16263                 causes handle creation.
16264
16265         2007-02-28  Chris Toshok  <toshok@ximian.com>
16266
16267                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16268                 ThreadExit event once (ExitThreadCore can be indirectly called
16269                 from a few places.)  I don't like the additional flag, but it
16270                 makes the event ordering/count correct.
16271
16272                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16273                 without locking the collection.  An enumerator doesn't give us any
16274                 protection from modification anyway.  Lock the thread hash and
16275                 replace the complicated enumerator loop with a foreach.
16276                 (Application.CloseForms): make internal so it can be called from
16277                 ApplicationContext.  This should probably be moved to MWFThread.
16278                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16279                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16280                 when the runloop exits (in response to WM_QUIT.)
16281                 (Application.RunLoop): add a comment (and check) for
16282                 context.MainForm being null after setting context.MainForm.Visible
16283                 = true.  This is because you're perfectly free to dispose of a
16284                 form in VisibilityChanged.  Chalk this up to another case where we
16285                 need to synchronously generate WM_ACTIVATE from Control.Show.
16286                 Also, add handling for WM_QUIT here so we'll exit the loop.
16287                 
16288                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16289                 fact that we don't wait if we're only unmapping the whole_window
16290                 makes me a bit nervous, but it doesn't seem to cause any problems
16291                 yet.
16292
16293                 also, add a comment about the stupid, broken and wrong resetting
16294                 of PostQuitState to false in GetMessage().
16295
16296                 In PostQuitMessage, we need to add a WM_QUIT message to the
16297                 thread's queue.  We use the FosterParent to get the right
16298                 handle/hwnd/queue.
16299
16300                 Lastly, in SetVisible, we need to unmap both windows, since the
16301                 waiting only happens when we're unmapping the client window.  So
16302                 now, the *only* time we unmap just the whole_window is in the hack
16303                 for resizing a control to 0,0.
16304                 
16305         2007-02-21  Chris Toshok  <toshok@ximian.com>
16306
16307                 * Application.cs (CloseForms): rewrite this so that we don't
16308                 modify the list while we're traversing it.
16309
16310         2007-02-20  Chris Toshok  <toshok@ximian.com>
16311
16312                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16313                 of OnHandleCreated.
16314                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16315                 handle is created.  otherwise we'll create it here.
16316                 (VerticalScrollEvent): same here.
16317
16318                 * Application.cs (CloseForms): call Form.Dispose, don't post
16319                 WM_CLOSE_INTERNAL.
16320
16321                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16322                 here. Application should Dispose() of the Form's.
16323
16324                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16325                 WM_DESTROY as well.
16326                 (MapWindow,UnmapWindow): only actually do the waiting for
16327                 SHOWWINDOW if the control we're dealing with is a Form.
16328                 (CreateWindow): if the control isn't a form, SendMessage
16329                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16330
16331                 * Control.cs (SetVisibleCore): always use is_visible here, not
16332                 value.  If we use value, we can end up re-setting something
16333                 visible if, for instance, you do Control.Hide() in a delegate
16334                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16335
16336         2007-02-20  Chris Toshok  <toshok@ximian.com>
16337
16338                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16339                 the message we need.  PeekMessage returning false should not be a
16340                 condition under which we exit the loop.
16341
16342         2007-02-15  Chris Toshok  <toshok@ximian.com>
16343
16344                 * Control.cs (Refresh): only refresh if we've got a handle and are
16345                 visible.
16346                 (CreateAccessibilityInstance): CreateControl() here.
16347                 (UpdateChildrenZOrder): complicate the code loop even more by
16348                 taking into account controls that haven't had their handle
16349                 created, and those that aren't visible.  But on the flip side,
16350                 simplify the code by splitting it into two loops.  one which
16351                 builds up the list of child controls we're interested in, and the
16352                 other that sets the z order of those children.
16353
16354         2007-02-14  Chris Toshok  <toshok@ximian.com>
16355
16356                 * Control.cs: Control.AccessibilityObject causes the control to be
16357                 created, not just the handle.
16358
16359         2007-02-14  Chris Toshok  <toshok@ximian.com>
16360
16361                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16362                 problem on X where a window might have its handle created (and be
16363                 visible) while the window is unmapped.  calling XConfigureWindow
16364                 on an unmapped window is bad, and generates X errors.
16365
16366         2007-02-13  Chris Toshok  <toshok@ximian.com>
16367
16368                 * Control.cs (CreateHandle): don't loop over our children setting
16369                 their parent here.  do it when in WndProc when we're shown.
16370                 (UpdateChildrenZOrder): make this internal so we can call it from
16371                 ScrollableControl.
16372                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16373                 creating its handle.  Also, remove the calls to PerformLayout from
16374                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16375                 OnVisibleChanged only seems to be called directly here for the
16376                 toplevel control.  It's propagated down the window hierarchy by
16377                 calls to child.OnParentVisibleChanged.
16378                 (OnVisibleChanged): don't do layout here - it's done (oddly
16379                 enough, according to a glance at stack traces on ms.net..) in
16380                 ScrollableControl.
16381                 
16382                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16383                 z order of our children before calling PerformLayout.
16384
16385         2007-02-12  Chris Toshok  <toshok@ximian.com>
16386
16387                 [big change, fixes #80020]
16388                 
16389                 * AccessibleObject.cs: we need to make owner internal again to fix
16390                 some of ControlAccessibleObject.
16391
16392                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16393                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16394                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16395                 we create child controls.  leave the MonoTODO's for the
16396                 accessibility calls, but fix the exceptions so the tests pass.
16397
16398                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16399                 couple of InvokeInternal methods we aren't using.
16400                 
16401                 Also, add a couple of CreateHandle calls in places where we know
16402                 the handles are being created but our code doesn't reference
16403                 .Handle.
16404
16405                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16406                 created.  If the handle is created, we rely on XplatUI.SetVisible
16407                 generating the event synchronously.
16408                 
16409                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16410                 because we can call back into client (and that code can dispose of
16411                 the control).
16412
16413                 * XplatUIStructs.cs: misc/cleanup.
16414
16415                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16416                 although we don't populate the wParam properly.
16417                 (CreateWindow): generate WM_CREATE.
16418                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16419                 performance expense (particularly in the unmap case), to match
16420                 win32 behavior.
16421
16422                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16423                 to call it.
16424                 (set_MdiParent): don't recreate the handle unless it's been
16425                 created already.
16426                 
16427                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16428                 it's created.
16429
16430                 * NativeWindow.cs: this is probably the weirdest part of the
16431                 patch.  We need a way to link up the window being created to the
16432                 WM_CREATE message.  Since we can only be creating one window at a
16433                 time on a given thread, we keep track of a per-thread reference so
16434                 we can dispatch it properly.  We also need to keep track of the
16435                 Hwnd currently being created so that the win32 backend doesn't
16436                 have problems.
16437                 
16438                 * XplatUIWin32.cs: a similar change to the one we made in
16439                 NativeWindow.cs.
16440
16441 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16442
16443         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16444         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16445         to draw the menu shortcut string.
16446
16447 2007-03-07  Jackson Harper  <jackson@ximian.com>
16448
16449         * TreeNode.cs: Add the 2.0 collapse method.
16450
16451 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16452
16453         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16454
16455 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16456
16457         * DataGridView.cs: Change DataSource will clear column and row
16458         lists. Call Invalidate() to reflect DataSource change.
16459
16460 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16461
16462         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16463         and a new row is added to it.
16464
16465 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16466
16467         * DataGridView.cs: Add columns when DataSource is en empty list but
16468         is a System.Data.DataView (from a System.Data.DataTable).
16469
16470 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16471
16472         * Label.cs: Implement AutoEllipsis (2.0)
16473
16474 2007-03-06  Jackson Harper  <jackson@ximian.com>
16475
16476         * TreeView.cs: Implement 2.0 TopNode setter property.
16477         - Use a local var instead of the skipped_nodes field for computing
16478         how many nodes to skip.  Otherwise we won't scroll because the
16479         valuechanged handler checks if skipped_nodes is equal to the new
16480         value.
16481         - Implement 2.0 Sort method.
16482         - Add useless 2.0 DoubleBuffer property
16483         - Implement 2.0 LineColors property.  Lets you change the color of
16484         the lines in the tree. Terribly useful for creating non cohesive
16485         desktops.
16486         - Implement 2.0 image key feature.
16487
16488 2007-03-06  Jackson Harper  <jackson@ximian.com>
16489
16490         * TreeView.cs: We can't get the bounds of the nodes before raising
16491         the AfterSelect event, because that event could change the node's
16492         bounds (scrolling, font change, etc).
16493
16494 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16495
16496         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16497         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16498           update window styles. In CreateParams us VisibleInternal instead of
16499           VIsible to get the actual visible flag set for this form.
16500         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16501           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16502           handle the case when the form is already maximized, in which case
16503           it should be restored. Fixes #81043.
16504
16505 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16506
16507         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16508
16509 2007-03-05  Jackson Harper  <jackson@ximian.com>
16510
16511         * TreeViewHitTestInfo.cs: implement.
16512
16513 2007-03-05  Jackson Harper  <jackson@ximian.com>
16514
16515         * InternalWindowManager.cs: class status fix.
16516
16517 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16518
16519         * InternalWindowManager.cs: All windows that have a parent
16520         are confined to their parent when they're being moved.
16521         Fixes #80822.
16522
16523 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16524
16525         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16526         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16527
16528 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16529
16530         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16531           buttons invisible before deciding which ones should be visible
16532           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16533           an unused variable.
16534         * InternalWindowManager.cs: Remove warning.
16535
16536 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16537
16538         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16539         to throw an InvalidOperationException is virtual mode is being used.
16540
16541 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16542
16543         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16544         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16545         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16546         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16547         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16548         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16549
16550 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16551
16552         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16553           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16554         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16555           (patch by Sergey Volk)
16556
16557 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16558
16559         * ToolWindowManager.cs: Added, contains logic for
16560           tool windows.
16561         * CreateParams.cs: Add a few helper methods and an
16562           internal variable to know which control the CreateParams belongs
16563           to.
16564         * Control.cs: Call Form.ChangingParent when the
16565           parent is about to be changed.
16566         * XplatUIX11.cs: DeriveStyles (): Set
16567           caption_height for all windows that have captions and are children.
16568           Update to use ToolWindowManager instead of InternalWindowManager
16569           for ToolWindows.
16570         * XplatUIWin32.cs: Set fake window styles for all
16571           windows that have window managers.
16572         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16573           now duplicated for mdi windows when they are
16574           maximized, first for the buttons the window itself has, then for
16575           the buttons that appear in the menu bar. Makes things a little
16576           easier). Updated UpdateWindowDecorations, SetWindowState and the
16577           mouse eventhandlers accordingly.
16578         * Form.cs: Add ChangingParent (), contains the
16579           logic of what should happen when the parent changes. In MdiParent
16580           don't set things that ChangingParent () is doing. When handling
16581           WM_CLOSE, we can close the form if there are any other modal forms
16582           and the current form is a descendent of the modal form.
16583         * InternalWindowManager.cs: A lot of refactoring,
16584           the title buttons are now extracted to a separate container class
16585           that takes care of all button code (clicks, tooltips, etc). Moved
16586           Iconic|Maximized|Normal Bounds properties to this class from
16587           MdiWindowManager, so that the window state logic can succeed for
16588           other than mdi wm's. Implemented general window state change logic.
16589           Moved CreateButtons to ThemeWin32Classic, since the theme might
16590           override which buttons are available when as well as the exact
16591           location.
16592         * FormWindowManager.cs: Added, contains logic for
16593           normal forms.
16594         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16595           which buttons go where (and if they are at all visible). 
16596           Removed special handling of maximized windows, since they aren't special. 
16597           In DrawManagedWindowDecorations don't try to draw the text if it is
16598           empty.
16599         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16600           use whatever the wm gives us.
16601
16602 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16603
16604         * ButtonBase.cs: Add 2.0 properties.
16605         * Button.cs: Override Draw for 2.0.
16606         * Control.cs: Add Entered and Selected properties.
16607         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16608         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16609         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16610         buttons.
16611         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16612
16613 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16614
16615         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16616
16617 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16618
16619         * XplatUIWin32.cs: Register a new class with Windows each time we get
16620         a new ClassStyle.  [Fixes bugs #79432, #80817]
16621         * Controls.cs: Set the correct ClassStyle in CreateParams.
16622         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16623
16624 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16625
16626         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16627         ColumnReordered event must not be signaled when modifying DisplayIndex
16628         of a ColumnHeader. Added internal ReorderColumns method which takes
16629         care of drawing, and updating the internal DisplayIndex of the
16630         ColumnHeader. Added AddColumn method which is invoked from
16631         ColumnHeaderCollection when adding or inserting columns, and which
16632         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16633         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16634         Recalculated dispay indices after removing a ColumnHeader.
16635         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16636         match MS. Allows last display index to be returned after ListView
16637         is disposed. Update actual location of ColumnHeader when DisplayIndex
16638         is modified.
16639
16640 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16641
16642         * LinkLabel.cs: Improve CalcTrimRectangle.
16643         
16644         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16645
16646 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16647
16648         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16649         get rectangle as a result value.
16650
16651 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16652
16653         * LinkLabel.cs: Theres some diferences between rectangle return from 
16654         MeasureCharacterRanges and the area used for DrawString to fix this 
16655         CalcMeasurementFactor method was created, it calcules the diferences
16656         to be use later to adjust rectangle in draw operations. Fixes #80473.
16657         
16658         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16659         to adjust draw rectangle.
16660
16661 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16662
16663         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16664         text and some other changes to reduce and optimize source code.
16665
16666 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16667
16668         * RadioButton.cs: Implement 2.0 event.
16669         * RelatedImageListAttribute.cs: Implement new class.
16670
16671 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16672
16673         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16674
16675 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16676
16677         * CheckBox.cs: Implement 2.0 functionality.
16678
16679 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16680
16681         * ListView.cs: Refactor Add and AddRange methods of
16682         ListViewItemCollection, to not update the ListView
16683         everytime an item is added in AddRange. Also move the update
16684         code to a new CollectionChanged method, and call it
16685         from other methods that need it as well (this should also fix some
16686         bugs when Sorting is used).
16687
16688 2007-02-27  Jackson Harper  <jackson@ximian.com>
16689
16690         * TextControl.cs: Try to never let the caret stay in a non-text
16691         tag.
16692         * TextBoxBase.cs: Update the caret.
16693
16694 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16695
16696         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16697         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16698         delete POINT structure, duplicate of one in XplatUIStructs.
16699         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16700
16701 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16702
16703         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16704         edit box since otherwise the Label would immediately be set (even if
16705         the user did not modify the label). In OnKeyDown set Handled to true
16706         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16707         columns that are to be removed. In ListViewItemCollection unlink items
16708         that are to be removed.
16709
16710 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16711
16712         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16713         it when we are done.  [Fixes bug #80949]
16714
16715 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16716
16717         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16718
16719 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16720
16721         * ListView.cs: I forgot to commit the changes for ListView 
16722         in my previous patch.
16723
16724 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16725
16726         * Clipboard.cs: Partially implement an overload of SetDataObject.
16727         * Form.cs: Implement ShowWithoutActivation.
16728         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16729
16730 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16731
16732         This is a first set of changes to make the Virtual mode works,
16733         by avoiding the retrieval of ListViewItem instances until
16734         draw time.
16735
16736         * ListView.cs: Store item position in the ListView instead of the
16737         ListViewItem, this way we don't request the Bounds property of
16738         ListViewItem inside the ListView calculations, as well as cache the item
16739         size in item_size field. Store indexes instead of ListViewItem
16740         instances in the matrix used by icon view. Add a ItemMatrixLocation
16741         struct to hold the row and col info of the matrix info.
16742
16743         * ListViewItem.cs: Don't store the location anymore, and only cache
16744         the rectangles for GetBounds. Use the ListView.GetItemLocation
16745         method to retrieve the actual location.
16746
16747 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16748
16749         * TextRenderer.cs: Add clipping support, thanks to George.
16750         [Fixes bug #80949]
16751
16752 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16753
16754         * ListViewItem.cs: Cancel label edit when item is removed from 
16755         ListView.
16756         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16757         event before the edit textbox is displayed.  Added CancelEdit method
16758         which is used end to editing while ignoring the value set by the
16759         user. In EndEdit, set focus to ListView to avoid losing focus to
16760         other controls. In ListViewItemCollection.Clear, cancel editing of
16761         any of the items.  In Remove, cancel editing of item being removed.
16762         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16763
16764 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16765
16766         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16767         bug #80948.  
16768
16769 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16770
16771         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16772         compatible with non X11 systems. Fixes #80901.
16773
16774 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16775
16776         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16777         whether the item should be unselected and reselect. We do no want this
16778         when we're starting to edit the label. Do not fire the 
16779         SelectedIndexChanged event from ListView when its already been fired
16780         by modifying ListViewItem.Selected. Fixes bug #80943.
16781
16782 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16783
16784         * TextRenderer.cs: Previos commit logic was backwards.
16785
16786 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16787
16788         * TextRenderer.cs: Don't add padding on MeasureText if we were
16789         sent the NoPadding flag.
16790
16791 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16792
16793         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16794         after DrawButton. To prevent image overlaps button borders SetClip and 
16795         ResetClip added before and after draw image. Fixes #79129.
16796
16797 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16798
16799         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16800         window size, it fix problem when you run under win32 that theres
16801         Size diferent than ClientSize. Also fix controls size and positions
16802         to mimic Win32. Fixes #80837.
16803
16804 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16805
16806         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16807         menu area to fix some problems for non X11 systems. Fixes #80613.
16808
16809 2007-02-22  Jackson Harper  <jackson@ximian.com>
16810
16811         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16812         even if it doesn't have any children.
16813
16814 2007-02-22  Jackson Harper  <jackson@ximian.com>
16815
16816         * TreeView.cs: Calculate the top node 'on the fly', this
16817         eliminates issues where you need to click on the tree before
16818         scrolling it to get the top node computed correctly.
16819         * TreeNodeCollection.cs: We don't need to mess with the top node
16820         anymore.
16821
16822 2007-02-22  Jackson Harper  <jackson@ximian.com>
16823
16824         * DataGridViewRow.cs: Fix typo so height can actually be set.
16825         Patch by Peter Grimm.
16826
16827 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16828
16829         * FileDialog.cs: Fixed support for renaming files and directories.
16830         * ListView.cs: Do not lose focus when edit is canceled. Process
16831         Escape as regular key (to prevent closing of dialogs).
16832
16833 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16834
16835         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16836         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16837
16838 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16839
16840         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16841         did not modify label.
16842         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16843         modified the text. Reset Label when user presses Escape in edit mode.
16844         Move focus to ListView after having cancelled or finished editing the
16845         label.
16846
16847 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16848
16849         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16850         private. Clear textbox when Text is set to null and SelectedIndex is
16851         already -1.
16852         * FileDialog.cs: Removed unnecessary initializations. Removed 
16853         workarounds for ComboBox bugs that are now fixed. Modified
16854         DefaultExt, InitialDirectory and Title property to change null to
16855         zero-length string in getters. Avoid directly accessing fields.
16856
16857 2007-02-20  Jackson Harper  <jackson@ximian.com>
16858
16859         * TextControl.cs: Remove RecalAlignments call, that was some
16860         debugging leftovers.
16861         - Don't use the line indent when we shouldn't.
16862         * RichTextBox.cs: Add support for paragraph left indents.
16863
16864 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16865
16866         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16867         Seems like the class status pages doesn't catch params differences.
16868
16869 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16870
16871         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16872
16873 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16874
16875         * ComboBox.cs: Setting Text should have no effect if item text of
16876         selected item exactly matches value. First lookup text using
16877         case-sensitive comparison, and fallback to case-insensitive comparison.
16878         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16879         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16880         paramname to match MS. Restart from first item if string is not found
16881         after startIndex. Fixed paramname of ArgumentNullException that is
16882         thrown for null value in ObjectCollection.Contains.
16883
16884 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16885
16886         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16887
16888 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16889
16890         * ListControl.cs: In SelectedValue use value.Equals to compare for
16891         equality instead of ==, otherwise it will fail for strings.
16892         Fixes #80794.
16893
16894 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16895         
16896         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16897         since the caret won't show up unless ShowSelection is true. 
16898         Fixes #80795.
16899
16900 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16901
16902         * Application.cs: When disabling all forms but the main form, do not
16903           disable any descendants of the main form (such as mdi children or
16904           other parented forms). Fixes #80822 on Windows.
16905         * Form.cs: If we have a parent, set the WS_CHILD style.
16906         * Control.cs: Update the window styles if the control whose parent has
16907           changed is a form (the WS_CHILD style has to be switched).
16908
16909 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16910
16911         * XplatUIStructs.cs: MsgUIState structure added.
16912
16913 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16914
16915         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16916         profile, do not check filename(s) for illegal character if filename(s)
16917         were set non-interactively but always check on 1.0 profile. Fixed NRE
16918          in DefaultExt and only strip off first leading dot. Improve exception
16919         message when invalid Filter is set. Do not ignore InitialDirectory if
16920         it does no exist. Store specified Title, and if empty use default
16921         title (depending on type of dialog). Added an internal DialogTitle 
16922         property for retrieving dialog title. Fixed logic of displayed dir to
16923         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16924         string as its buggy.
16925         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16926         FileName is a zero-length string (it can never be null). Override 
16927         DialogTitle property to set default title of dialog box.
16928         * SaveFileDialog.cs: Override DialogTitle property to set default
16929         title of dialog box.
16930
16931 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16932
16933         * FileDialog.cs: Modify default text of filename and filetype labels
16934         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16935         after we've updated the SelectedIndex. Fixes part of bug #80887.
16936         * SaveFileDialog.cs: Set text of filetype label.
16937
16938 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16939
16940         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16941         label field. Needed by latest Jackson's fixes for ListView.
16942
16943 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16944
16945         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16946         print preview images.
16947
16948 2007-02-16  Jackson Harper  <jackson@ximian.com>
16949
16950         * ListView.cs: Make AfterLabelEdit work correctly.
16951         * FileDialog.cs: After changing the name of the folder, we have to
16952         make sure that it is created, or that we pop up an error because
16953         it already exists.
16954
16955 2007-02-16  Jackson Harper  <jackson@ximian.com>
16956
16957         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16958         System.String are mapped to text.
16959         - Handle dataobjects, getting all the possible formats out of them
16960         - We dont need the drag event args before we give feedback. This
16961         allows feedback cursors to be immediate before selections have
16962         been converted.
16963
16964 2007-02-16  Jackson Harper  <jackson@ximian.com>
16965
16966         * TextBoxBase.cs: Modified the method for inserting images to
16967         taking a line and position instead of tag and position.
16968         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16969         into the RTF file.
16970         * TextControl.cs: Allow images to be inserted as the first tag of
16971         a line.
16972         - Fix some off by one issues when we assume the first tag is a
16973         text tag, not an image tag.
16974
16975 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16976
16977         * ListView.cs: Set focus to ListView when ItemControl gets a
16978         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16979         Fixes part of #80467.
16980
16981 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16982
16983         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16984           validate Text input (if null or empty string reset Value to default
16985           value). Fixes #80830.
16986
16987 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16988
16989         * ListView.cs: Set owner as null for columns and items when
16990         Dispose is invoked. Fixes #80607.
16991
16992 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16993
16994         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16995         showing DropDowns, don't show a Grip when doing Flow layout.
16996         [This fixes the toolbox in PDN 2.72.]
16997         * ToolStripItem.cs: Add Anchor property and some internal properties to
16998         reduces needed changes to FlowLayout.
16999         * ToolStripOverflow.cs: Remove unused variable.
17000         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
17001         use it in the layout calculations.
17002
17003 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17004
17005         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
17006         reported in #79640.
17007         
17008         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
17009         size calculation.
17010
17011 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17012
17013         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
17014         MeasureString format, it can make button very large in some cases, it is
17015         strange but is what win32 do.
17016
17017 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17018
17019         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
17020         size calculation.
17021
17022         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
17023         rendering, the value is based on MenuAccessKeysUnderlined.
17024
17025 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
17026
17027         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
17028         for most themes.
17029         
17030         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
17031         
17032         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
17033         and use MenuAccessKeysUnderlined instead.
17034
17035 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17036
17037         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
17038         A selected control would not get a Focus call if:
17039                 - the default active control of the container is the same as
17040                   the one that was selected
17041                 - we are switching from one container to another
17042         Under these conditions, the container being selected already has
17043         an active_control, which is the same as the one being activated, 
17044         so set_ActiveControl would always return and not send the Focus
17045         call. Fix to check if the currently active control of the container
17046         is actually focused.
17047
17048 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
17049
17050         * StatusStrip.cs: Implement the spring layout.
17051         * ToolStripControlHost.cs: Make sure the hosted control's visibility
17052         always matches the host.
17053         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
17054         and TextAfterImage.
17055
17056 2007-02-13  Andreia Gaita  <avidigal@novell.com>
17057
17058         * Control.cs: Code reorganization only.
17059           - Reorganize the WndProc cases so that each case has it's own handling method, 
17060           to help with the no-line-numbering stack traces.
17061           - Formatting changes (it's vstudio's fault, really :p)
17062
17063 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17064
17065         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
17066           Thread.CurrentUICulture to match DateTimePicker's (and MS)
17067           behaviour.
17068
17069 2007-02-12  Jackson Harper  <jackson@ximian.com>
17070
17071         * RichTextBox.cs:
17072         * TextBox.cs: By default we have a non multiline document
17073         - use the multiline property instead of the internal variable
17074         * TextBoxBase.cs: Treat multiline and non multiline the same in
17075         most places.
17076         - Use the documents multiline flag instead of tracking it ourself
17077         * TextControl.cs: Attempt at getting multiline to match MS
17078         behavior.  Lines now track an offset, which is either their X or Y
17079         offset depending on whether or not we are in multiline mode.
17080         - Update all the methods to understand that lines have an X value.
17081         - Fix crash in Undo::Duplicate when empty lines are deleted.
17082
17083 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17084
17085         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
17086         code moved to properties PreferredHeight and PreferredWidth. It solve the
17087         all problems when preferred sizes must be recalculated. Fixes #80801.
17088
17089 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
17090
17091         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
17092         font height when compatible_text_rendering is false. Partially fix #80801.
17093
17094 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17095
17096         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
17097
17098 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17099
17100         * Form.cs: Improved exception messages in ShowDialog.
17101
17102 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17103
17104         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17105         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17106         if not set. Fixes bug #80764. Avoid accessing current_settings field
17107         directly.
17108
17109 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17110
17111         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17112         false.
17113
17114         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17115         public in 2.0 and for easy maintenance and dont break compatibility it is 
17116         internal in 1.1.
17117         
17118 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17119
17120         * ToolStripItem.cs: Implement using images from ImageList.
17121
17122 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17123
17124         * DateTimePicker.cs: Change default date-formatting culture from
17125           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17126           seems to be the way MS does it.
17127
17128 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17129
17130         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17131         (the 6 was cut off on the right side)
17132
17133 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17134
17135         * Form.cs: Tell MenuStrips to close when the form is clicked.
17136         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17137         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17138         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17139         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17140         support for Overflow, where items that do not fit are automatically
17141         reparented to a drop down menu.
17142         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17143         Also: fixes bug #80747.
17144
17145 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17146
17147         * ComboBox.cs: Remove warning (unused code).
17148         * ScrollableControl.cs: Remove warning for 1.1 profile.
17149
17150 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17151
17152         * Form.cs: Remove a warning.
17153
17154 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17155
17156         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17157           'g' specifier, not documented anywhere, but seems to always show up
17158           as a single space (might have something to do with the DateTime 'g'
17159           specifier, which is the era format, but since DateTimePicker can't
17160           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17161           won't crash if the format has an unmatched quote. Now shows
17162           single-character formats correctly. Fixes #80744.
17163
17164 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17165
17166         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17167         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17168
17169 2007-02-07  Chris Toshok  <toshok@ximian.com>
17170
17171         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17172         background color.  it overwrites the background image we've
17173         already painted.  Fixes #80599.
17174
17175 2007-02-07  Chris Toshok  <toshok@ximian.com>
17176
17177         * DataGrid.cs: return immediately from Edit() when there are no
17178         columns.  Fixes #80662.
17179
17180 2007-02-07  Chris Toshok  <toshok@ximian.com>
17181
17182         * MessageBox.cs: fix #80625.  don't always show the Help button in
17183         2.0.  use the displayHelpButton parameter to determine if we
17184         should show it. Also, make the internal show_help field private.
17185
17186 2007-02-07  Chris Toshok  <toshok@ximian.com>
17187
17188         * Control.cs (SetVisibleCore): check in the proposed patch for
17189         80604, and set is_visible before calling CreateControl.
17190
17191 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17192
17193         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17194         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17195         on it.
17196
17197 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17198
17199         * MenuAPI.cs: hotkey_active internal field added, it is required because
17200         we need to know when hotkeys must be draw, before this change a keystate
17201         Navigating was used but we can have menu in navigating state without
17202         hotkeys. Fixes #80694.
17203         
17204         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17205
17206 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17207
17208         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17209           corresponding events and methods to be internal for 1.1 profile and
17210           public for 2.0 profile (required by SizeGrip).
17211         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17212           implicit control list). Don't set the size nor the location of the
17213           SizeGrip anymore as it's not needed.
17214         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17215           draw directly on the captured control (fixes #80656). Removed
17216           ShowGrip (it wasn't used anywhere), redraw (always true), added
17217           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17218         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17219           be called from SizeGrip.
17220
17221 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17222
17223         * Timer.cs: Throw ArgumentException if Interval <= 0.
17224
17225 2007-02-05  Jackson Harper  <jackson@ximian.com>
17226
17227         * TreeView.cs: We need to check scrollbar visibility when window
17228         visibility is updated, because non visible trees don't ever add
17229         scrollbars.
17230         * Cursor.cs: We want the override cursor to be reset to NULL when
17231         we set current cursor to the default cursor.
17232
17233 2007-02-05  Jackson Harper  <jackson@ximian.com>
17234
17235         * TextControl.cs: Don't have crlfs when we are non multiline.
17236         - Consolidate the line position.
17237
17238 2007-02-05  Jackson Harper  <jackson@ximian.com>
17239
17240         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17241
17242 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17243
17244         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17245           handling LeaveNotify->NotifyUngrab in order to send
17246           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17247           after calling XUngrabPointer, so we call WindowUngrabbed directly
17248           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17249         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17250           MouseCaptureChanged correctly. Also create handles if changing
17251           Capture (matches MS behaviour).
17252
17253 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17254
17255         * SizeGrip.cs: Make the last change 2.0 only.
17256
17257 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17258
17259         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17260           changes to initial size (fixes #80597).
17261
17262 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17263
17264         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17265
17266 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17267
17268         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17269           background) and only allow dragging if enabled. This way the
17270           sizegrip can be used to fill the open square that otherwise would
17271           have been shown in the bottom right corner of ScrollableControl
17272           when ScrollableControl is not suppose to support sizing.
17273         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17274           sizegrip is shown and enabled, and hook up with necessary events.
17275
17276 2007-02-01  Chris Toshok  <toshok@ximian.com>
17277
17278         * DataGridTextBoxColumn.cs: clean up the
17279         GetFormattedString/GetColumnValueAtRow combination of functions.
17280         Also fix UpdateUI, and the initial state of
17281         IsInEditOrNavigateMode.
17282
17283         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17284         aren't supposed to scroll the textbox here, we're supposed to
17285         scroll the datagrid.
17286
17287 2007-02-01  Chris Toshok  <toshok@ximian.com>
17288
17289         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17290         setting the position.
17291
17292 2007-02-01  Chris Toshok  <toshok@ximian.com>
17293
17294         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17295         here, since the most recent focus fixes keep us from generating
17296         the Leave event when our textbox gets focus.
17297         (Edit): we should be passing null for the column style's
17298         instantText parameter.
17299         
17300 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17301
17302         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17303         raised.  Fixes menu text/icons not showing up in PDN.
17304
17305 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17306
17307         * Control.cs: Remove code in constructor that makes every
17308         control with WS_CHILD set have initial location -1, -1.
17309
17310 2007-01-31  Jackson Harper  <jackson@ximian.com>
17311
17312         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17313         XplatUIX11.
17314         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17315
17316 2007-01-31  Jackson Harper  <jackson@ximian.com>
17317
17318         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17319         - Remove some debug code.
17320
17321 2007-01-31  Jackson Harper  <jackson@ximian.com>
17322
17323         * XplatUIX11.cs: If you set the override cursor during a grab, it
17324         should actually override the grab cursor.  This comes into play
17325         when you are setting custom cursors in a DND feedback method.
17326
17327 2007-01-31  Jackson Harper  <jackson@ximian.com>
17328
17329         * X11Dnd.cs: Add support for handling the QueryContinue and
17330         GiveFeedback events.
17331         - Cancel drag and drop actions when the escape key is clicked.
17332         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17333         can handle the ESCAPE key.
17334         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17335         done when dnd events are continued after the button is released.
17336         - Add a new helper method so that dnd can translate key events.
17337
17338 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17339
17340         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17341         make it more obvious what is happening.
17342
17343 2007-01-30  Jackson Harper  <jackson@ximian.com>
17344
17345         * XplatUIX11.cs: Don't break when handling button release in drag
17346         and drop operations. We need that BUTTONUP message to get through
17347         so capture is released.
17348         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17349         this is handled automatically when the mouse is down.
17350
17351 2007-01-30  Jackson Harper  <jackson@ximian.com>
17352
17353         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17354         is closed, so we need to make sure that we aren't changing the
17355         dialog result when the OK (Open or Save) button has been clicked
17356         and we are closing the window ourselves.  Note we don't need to
17357         worry about the cache being written in this case, because it was
17358         already done in the previous FilOk call.
17359
17360 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17361         
17362         * DateTimePicker.cs: Remove a warning.
17363         * ComboBox.cs: Remove a couple of warnings.
17364
17365 2007-01-29  Chris Toshok  <toshok@ximian.com>
17366
17367         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17368         set one, if SetIcon is passed a null icon.
17369
17370 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17371
17372         * TextBox.cs: Redraw when the password characters changes
17373         * TextControl.cs: Check if textbox has a password char and draw 
17374         a line of password chars instead of the text in the line. LineTag gets 
17375         an extra Draw() method which allows document.Draw to override the text 
17376         that will be drawn. Removes 1024 char limitation on length of passworded 
17377         lines.
17378
17379 2007-01-29  Jackson Harper  <jackson@ximian.com>
17380
17381         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17382         single chars is not.
17383
17384 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17385
17386         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17387         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17388         calling itself.
17389
17390 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17391
17392         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17393         also remove ProcessArrowKey and put the code inside ProcessKeys.
17394
17395 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17396
17397         * PaddingConverter.cs: Added.
17398
17399 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17400         
17401         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17402         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17403         of text (fixes #80601). For panels clip the text to draw to the
17404         panel (fixes #80603).
17405
17406 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17407
17408         * ComboBox.cs: Fixed implementation of ResetText.
17409
17410 2007-01-25  Jackson Harper  <jackson@ximian.com>
17411
17412         * TextControl.cs: For the last char of a line we need to use the
17413         line size, not that chars width, since it won't actually be
17414         computed since the right side of a char is based on the start of
17415         the left side of the next char, and the next char does not exist.
17416
17417 2007-01-25  Chris Toshok  <toshok@ximian.com>
17418
17419         * Splitter.cs: fix the new unit tests, and reindent some switch
17420         statements.
17421
17422 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17423
17424         * ComboBox.cs: Implemented 2.0 methods and events.
17425         * TextBoxBase.cs: Added OnTextUpdate, so that
17426         ComboBox.ComboTextBox can inform ComboBox of it.
17427
17428 2007-01-25  Jackson Harper  <jackson@ximian.com>
17429
17430         * TextControl.cs: Respect ShowSelection when deciding whether or
17431         not to display the caret, this allows comboboxes to have carets
17432         when the combotextbox does not have focus.
17433
17434 2007-01-25  Jackson Harper  <jackson@ximian.com>
17435
17436         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17437         same as the Suspend/Resume for recalc, except this will do actual
17438         Invalidates.
17439         - New Undo manager, works much like the MS version.
17440         - Implemented Redo
17441         * TextBoxBase.cs: The Cut operation is undoable.
17442
17443 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17444         
17445         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17446         on Windows (no difference on Linux).    
17447
17448 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17449
17450         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17451         we don't want to activate any windows. Fixes #79433.
17452
17453 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17454
17455         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17456         [Fixes bug #80609]
17457
17458 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17459
17460         * FileDialog.cs:
17461         - Move to using System.ComponentModel.EventHandlerList
17462         - Replace Refresh with Invalidate
17463         - Clear the mime filecache on closing
17464         - Some other memory reducing work. After beeing closed FD now uses
17465           only about 300 KB for the fdo mime stuff plus the memory of the
17466           cached icons.
17467         * Mime.cs: Changed coding style and removed unnecessary commented
17468         code. Some more memory memory reducing work.
17469
17470 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17471
17472         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17473         a few other missing 2.0 properties.
17474         * Theme.cs: Added DrawFlatStyleComboBox.
17475         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17476
17477 2007-01-24  Chris Toshok  <toshok@ximian.com>
17478
17479         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17480         wake_waiting flag, not just when there's data to be read.  if we
17481         don't, then future wakeup's won't reach us and we'll be doomed to
17482         wait for the entire 1 second timeout forever (unless there are X
17483         events to be had).
17484
17485 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17486
17487         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17488         until you pass Items.Count, not Items.Count - 1 like 1.1.
17489
17490 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17491
17492         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17493
17494 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17495
17496         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17497         adding the panels in the wrong order.
17498
17499 2007-01-24  Jackson Harper  <jackson@ximian.com>
17500
17501         * TextBoxBase.cs: When we move the caret we also need to move the
17502         selection, this fixes some random crashing after doing select
17503         text, unselect, delete a char, paste.
17504
17505 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17506
17507         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17508
17509 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17510
17511         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17512         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17513         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17514
17515 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17516
17517         * ToolBar.cs:
17518         - Implement support for vertical toolbars. Fixes #80539;
17519         - Call LayoutToolBar when resize, it fix some other problems in layout.
17520         - Rename requested_height to requested_size, as we can have width on it
17521         when toolbar is vertical.
17522         - Create a private property "Vertical" that uses Dock to verify when 
17523         toolbar is vertical or not.
17524         - Set ControlStyles when change Dock property.
17525         - Refactory in LayoutToolBar to have better variables names and to support
17526         vertical toolbars.
17527         - Fixes default value for ButtonSize when button count is equal zero, size
17528         must be (39, 36) test case writed.
17529
17530 2007-01-23  Chris Toshok  <toshok@ximian.com>
17531
17532         * Control.cs: fix the checks so that they work correctly for mdi
17533         parents/children.
17534
17535 2007-01-23  Chris Toshok  <toshok@ximian.com>
17536
17537         * Control.cs: ControlCollection seems to have super-secret
17538         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17539         to add toplevel controls.
17540
17541 2007-01-23  Chris Toshok  <toshok@ximian.com>
17542
17543         * Control.cs: throw an ArgumentException if a toplevel control is
17544         added to our control collection from ControlCollection.Add, as
17545         well as from ControlCollection.IList.Add.  This fixes the
17546         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17547
17548         Also, in ControlCollection.IList.Add, don't through an
17549         ArgumentNullException, throw an ArgumentException, when value ==
17550         null.  This matches MS.
17551
17552 2007-01-23  Chris Toshok  <toshok@ximian.com>
17553
17554         * BindingSource.cs: initial, incomplete, implementation of
17555         BindingSource.
17556
17557 2007-01-23  Jackson Harper  <jackson@ximian.com>
17558
17559         * TextControl.cs:
17560         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17561         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17562         
17563 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17564
17565         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17566
17567 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17568
17569         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17570         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17571         IndexOfKey() for 2.0
17572
17573 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17574
17575         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17576         to prevent it from changing z-order.
17577         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17578         leave UI updates in MdiWindowManager.
17579         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17580         1 sized (NC handling goes weird on Linux otherwise).
17581         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17582         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17583         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17584         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17585         and SetWindowState(s) to allow for changing the size of an activated child
17586         before activating it (reduces a lot of flicker).
17587
17588 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17589
17590         * Form.cs: Changing FormBorderStyle has different semantics based
17591         on whether the Form is visible or not.  If not visible, don't change
17592         the Size.  But InvalidateNC needs to be called to force the window
17593         to pick up the changes and redraw itself.  [Fixes bug #80574]
17594
17595 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17596
17597         [Moma work]
17598         * ContainerControl.cs: ProcessCmdKey.
17599         * ErrorProvider.cs: new constructor.
17600         * Form.cs: fix AutoValidateEvent compiler warning.
17601         * Label.cs: fix OnAutoSizeChanged compiler warning.
17602         * MenuStrip.cs: fix CanOverflow compiler warning.
17603         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17604         * TextBox.cs: Dispose.
17605         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17606         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17607         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17608         * ToolStripItem.cs: Overflow, RightToLeft properties.
17609
17610 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17611
17612         * Form.cs: Move the layout of the main form to MdiWindowManager.
17613         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17614         do a layout of the main window to update MdiClient's client area to
17615         the right area. Fixes #80533. Remove the calculation of nc size, 
17616         it was just wrong and the correct one is the same as for 
17617         InternalWindowManager. 
17618
17619 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17620
17621         * Control.cs: Setting Anchor or Dock needs to reset the other
17622         to its default.  [Fixes bug #80556]
17623
17624 2007-01-20  Chris Toshok  <toshok@ximian.com>
17625
17626         * CheckedListBox.cs: class status changes.
17627
17628         * ScrollableControl.cs: same.
17629
17630         * RichTextBox.cs: same.
17631
17632         * ContainerControl.cs: same.
17633
17634         * ListView.cs: same.
17635
17636         * NotifyIcon.cs: same.
17637
17638         * MenuStrip.cs: same.
17639
17640         * RadioButton.cs: same.
17641
17642         * CheckBox.cs: same.
17643
17644         * PrintPreviewDialog.cs: same.
17645
17646         * Form.cs: same.
17647
17648 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17649
17650         * TreeNode.cs: Apply Alan's patch for Name property.
17651
17652 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17653         
17654         * Form.cs: Implemented SizeGripStyle.
17655         * SizeGrip.cs: Check for minimum and maximum size for the
17656         control being resized and only resize if size has actually
17657         changed.
17658
17659 2007-01-19  Chris Toshok  <toshok@ximian.com>
17660
17661         * DataGridColumnStyle.cs: stop setting _readonly in the
17662         PropertyDescriptor setter.  fixes a unit test failure.
17663
17664         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17665         just consult our table style (if we have one).  We don't need to
17666         consult the datagrid readonly attribute because that's passed in
17667         as the _ro arg to Edit.  this simplifies things a little.
17668         
17669         * DataGrid.cs: use CurrentColumn instead of
17670         current_cell.ColumnNumber just to simplify some of the code.
17671
17672         switch the order of some things in the CurrentCell setter to keep
17673         the previous cell from getting a textbox again -
17674         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17675         So we need to set the new cell before calling it.
17676         
17677         call Edit in OnEnter, as does Microsoft.
17678         
17679         also, make sure the current table style isn't the one we create
17680         initially when checking to see if it's different than the one
17681         we're setting it to in BindColumns (this fixes #80421).
17682
17683         * GridTableStylesCollection.cs: table styles can have "" for a
17684         mapping name.  part of the fix for #80421.
17685
17686         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17687         Edit significantly.
17688
17689 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17690
17691         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17692         and less GDI object leaky-er.
17693
17694 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17695
17696         * LinkLabel.cs: Add opaque control style
17697
17698 2007-01-18  Jackson Harper  <jackson@ximian.com>
17699
17700         * TextControl.cs: Calculate width properly.
17701         - Don't store the tag's X offset, this can be figured out very
17702         easily.
17703         - When getting the caret tag make sure to get the last empty tag.
17704
17705 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17706
17707         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17708         [Fixes bug #79959]
17709
17710         * Control.cs: Color.Empty shouldn't count for previous transparent
17711         redraw changes.
17712
17713 2007-01-18  Jackson Harper  <jackson@ximian.com>
17714
17715         * TextBox.cs:
17716         * RichTextBox.cs:
17717         * TextControl.cs: Starting to merge in some pieces of my older
17718         undo work.  Basically just some slight cleanup of the undo API.
17719
17720 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17721
17722         * TrackBar.cs: Fix signature of RightToLeftLayout.
17723         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17724         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17725         * Application.cs: Implemented UseWaitCursor.
17726
17727 2007-01-18  Jackson Harper  <jackson@ximian.com>
17728
17729         * TextControl.cs: We can't skip tags if any part of the tag is
17730         visible.
17731
17732 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17733
17734         * ContainerControl.cs: Override OnLayout.
17735
17736 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17737
17738         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17739
17740         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17741         everything else.
17742
17743 2007-01-18  Chris Toshok  <toshok@ximian.com>
17744
17745         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17746         (leftover from the container_selected days, I'd wager).  fixes bug
17747         #80546.
17748
17749 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17750
17751         * Control.cs: Apply patch from George to fix the new testcase on
17752         bug #80451.  We can't just check for Color.Transparent, we need 
17753         to check if the back color's alpha channel is < 255.
17754
17755 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17756
17757         * Form.cs: Move setting show_icon = true to before the constructor
17758         so that the base constructor has that information when it calculates
17759         the form's size.  Was causing forms to be (6, 6) bigger than they
17760         were supposed to be.  Thanks for catching this Rolf!
17761
17762 2007-01-18  Jackson Harper  <jackson@ximian.com>
17763
17764         * TextControl.cs: When replacing a selection we need to invalidate
17765         from the initial selection start, because selection start is moved
17766         to the end of the replacement.
17767
17768 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17769
17770         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17771
17772 2007-01-18  Chris Toshok  <toshok@ximian.com>
17773
17774         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17775         I just added.
17776
17777 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17778
17779         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17780         layout methods and properties from ToolBarButton must be available
17781         into ToolBarButtonInfo.
17782
17783 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17784
17785         * Control.cs: If the control has a transparent background, we
17786         need to refresh it when it moves and when it's parent's background
17787         image changes.  [Fixes bug #80451]
17788
17789 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17790
17791         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17792
17793 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17794
17795         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17796         [Fixes bug #80447, and probably speeds up things as well]
17797
17798 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17799
17800         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17801         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17802         window style to toolwindow (otherwise the client rectangle will be
17803         3 pixels to small for some reason).
17804         * MdiWindowManager.cs: Revert NC size calculations to match how
17805         they are calculated only based on window styles (to match
17806         Win32AdjustWindowRectEx, since otherwise when setting size or 
17807         location, Control will call Win32AdjustWindowRectEx to update client 
17808         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17809         calculate a different value of client size causing another paint 
17810         (and flickering))
17811         * InternalWindowManager.cs: When moving or resizing a window only
17812         update size or location if they actually changed.
17813         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17814         (seems to match Windows behaviour better). Cleaned up 
17815         ManagedWindowDecorations to draw what's needed and nothing else
17816         (was drawing borders and lines where they shouldn't be)
17817         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17818         (style = 0xFFFF) and takes into account caption height when 
17819         calculating window rectangle.   
17820
17821 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17822
17823         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17824         can be added to toolbar multiple times, we need to maintain a list of 
17825         button information for each positions.
17826
17827 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17828
17829         * ToolBar.cs: Some small stetic changes.
17830
17831 2007-01-16  Jackson Harper  <jackson@ximian.com>
17832
17833         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17834         that allow us to have nested recalc = false blocks.
17835         - Add paste support for images in the RichTextBox
17836         * RichTextBox.cs: flush the text after the color is changed, so
17837         the change takes effect.
17838         - Use SuspendRecalc
17839         - Some extra debugging info
17840         * TextControl.cs: Tags no longer track their length, it is just
17841         computed from the next tags length, this makes things a little
17842         simpler and reduces places that we have to track length changes.
17843         - Refactored the linetag class a little so we could make it
17844         a base class for different kinds of tags
17845         - Created a image tag, a tag that can have a single image inserted
17846         into it
17847         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17848         that we can call suspend multiple times.
17849         - Add some debugging methods
17850
17851 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17852
17853         * MdiClient.cs: Add ActivatePreviousChild for 
17854         mdi child window navigation.
17855         * Form.cs: Use MdiClient.ActivateNextChild/
17856         ActivatePreviousChild instead of Form.SelectNextControl
17857         to select the next/previous child since 
17858         SelectNextControl doesn't do it in the same order
17859         as mdi children should do it.
17860
17861 2007-01-16  Chris Toshok  <toshok@ximian.com>
17862
17863         * Control.cs: remove container_selected field.
17864
17865 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17866
17867         * MdiClient.cs: Update main form's ActiveChild when
17868         updating keyboard focus for the mdi child.
17869
17870 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17871
17872         * Control.cs: PreferredSize fix.
17873
17874         * Form.cs: Add several 2.0 events, properties, and methods.
17875
17876 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17877
17878         * Form.cs: Provide meaningful message when MdiParent is assigned a
17879         Form that is not an MdiContainer.
17880
17881 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17882
17883         * MdiClient.cs: Update main form's ActiveChild when
17884         activating a mdi child.
17885
17886 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17887
17888         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17889         doesn't have a menu.
17890
17891         * Form.cs: Request NCRecalc after creating a mdi child window.
17892         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17893         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17894         
17895         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17896         sends keyboard focus to the active child, or to the MdiClient
17897         if there are no child forms.
17898         
17899 2007-01-15  Chris Toshok  <toshok@ximian.com>
17900
17901         * ListView.cs: drop the *Internal overrides, just do our work in
17902         ItemControl's WndProc instead.
17903
17904         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17905         of the various controls, and forward the events properly (in the
17906         same manner as MS) from the textbox to the UpDown.  Also the
17907         ActiveControl of the UpDownBase gets set properly now.  Finally,
17908         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17909
17910         * NumericUpDown.cs: set Text in the ctor.
17911
17912         * DomainUpDown.cs: call UpdateEditText in the ctor.
17913         
17914         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17915         so even a Selectable = false textbox can be focused if you click
17916         in it.  Go figure.
17917
17918         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17919         just add their handling in their respective WndProc's.  Also add
17920         an explicit FocusInternal method that doesn't consult CanFocus
17921         before calling Select(this).
17922
17923         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17924         do our work in WndProc instead.
17925
17926         * TabControl.cs: same.
17927
17928         * ComboBox.cs: same.
17929
17930 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17931
17932         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17933         Fixes #80006.
17934
17935 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17936
17937         * ListViewItem.cs:
17938         * ThemeWin32Classic.cs: Don't draw the item text outside
17939         item bounds in Details view, as well as use trimming.
17940         Fixes bug #80376.
17941
17942 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17943
17944         * Form.cs: Implement Form.ShowIcon.
17945         
17946         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17947         null, which when combined with the DlgModalFrame window style removes
17948         the icon from the title bar.
17949
17950 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17951
17952         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17953
17954 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17955
17956         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17957         menu when mdi child windows theres a menu, uses insert to get icon
17958         at first position. Partially fix #80006.
17959
17960 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17961
17962         * Clipboard.cs: Implement 2.0 methods.
17963
17964 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17965
17966         * Menu.cs: Implement Insert method of MenuItemCollection class
17967         to fix MenuMerge.
17968
17969 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17970
17971         * ListView.cs: Implement 2.0 FindItemWithText method.
17972
17973 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17974
17975         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17976         to calculate menu bar size. Fixes #80290.
17977
17978 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17979
17980         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17981
17982 2007-01-11  Chris Toshok  <toshok@ximian.com>
17983
17984         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17985         initial form.
17986
17987 2007-01-11  Chris Toshok  <toshok@ximian.com>
17988
17989         * LinkLabel.cs: make sure to call base.Select in our Select method
17990         if it turns out we're going to be selected (i.e. if we have a link
17991         that is going to receive focus).  That way our container's
17992         ActiveControl is updated properly.
17993
17994 2007-01-11  Chris Toshok  <toshok@ximian.com>
17995
17996         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17997         they have 1 or more links.  this fixes the crash gert reported.
17998
17999 2007-01-11  Andreia Gaita  <avidigal@novell.com>
18000
18001         * ContainerControl.cs: Remove ContainerSelected flag, not needed
18002         anymore.
18003
18004         * Control.cs (Controls.Add): Check if control to be added to the collection
18005         is a top level control, and throw an ArgumentException if it is.
18006         Remove ContainerSelectedFlag, not needed anymore.
18007
18008         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
18009         top most control doesn't activate the form. This fixes a problem in the
18010         MessageBox, where the default button wouldn't get focus because the form
18011         was activated before being Loaded - when the Owner is set, SetTopMost is
18012         called, and it would activate it.
18013
18014 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
18015
18016         * Button.cs: When clicked and setting the parent form's DialogResult,
18017         use FindForm instead of Parent, since parent could be a container
18018         control and not the Form.  Fixes bug #80495.
18019
18020 2007-01-10  Chris Toshok  <toshok@ximian.com>
18021
18022         * Form.cs: move the call to SendControlFocus into the same
18023         is_loaded check.
18024
18025 2007-01-10  Chris Toshok  <toshok@ximian.com>
18026
18027         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
18028         It breaks in the face of the new ActiveControl stuff, and should
18029         be unnecessary.
18030
18031         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
18032         activecontrol's focus if it's not already set, after we set
18033         ActiveControl, but before we call OnActivated.  Re-fixes #79667
18034         after the previous focus/active control fixes regressed it.
18035
18036         * Control.cs: reindent some code.
18037         
18038 2007-01-10  Chris Toshok  <toshok@ximian.com>
18039
18040         * Splitter.cs: clearing some outstanding changes from my tree.
18041         Replace all accesses (not writes) to the internal dock_style field
18042         with the Dock property.
18043
18044 2007-01-10  Chris Toshok  <toshok@ximian.com>
18045
18046         * Control.cs: make FireEnter, FireLeave, FireValidating, and
18047         FireValidated virtual.
18048
18049         * Form.cs: override and don't chain up calls to FireEnter and
18050         FireLeave.
18051
18052 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18053
18054         * ListView.cs: Add more text padding space when using
18055         auto resize for columns (the previous value didn't work fine).
18056
18057         * ThemeWin32Classic.cs: Update text position inside columns,
18058         to match the appeareance of .Net.
18059
18060         * ColumnHeader.cs: When using auto resize, only the Width should
18061         depend on the sub items, not the Height. Also, set width after
18062         auto resizing (the value of Width should never remain as -1 or -2).
18063
18064 2007-01-10  Chris Toshok  <toshok@ximian.com>
18065
18066         * Application.cs: fix compilation errors when debug is enabled.
18067
18068 2007-01-10  Chris Toshok  <toshok@ximian.com>
18069
18070         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
18071         add some nice ascii art pictures and explanation of the process).
18072         (GetMostDeeplyNestedActiveControl): new utility function we need
18073         because our ActiveControl can refer to a child container with its
18074         own ActiveControl.
18075
18076         * Form.cs (OnActivated): remove the call to SelectActiveControl
18077         from here, since you can override this method and not chain up,
18078         and winforms still sets the active control.
18079         (OnCreateControl): also remove the unnecessary SelectActiveControl
18080         call from here.
18081         (WndProc): it's actually called from the WM_ACTIVATE block, just
18082         before calling OnActivated.
18083
18084         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
18085         inside the else.  the ActiveControl setter will end up setting
18086         focus on @control.  This keeps us from setting it again (and
18087         generating an extra LostFocus/GotFocus pair).
18088         (Select (bool, bool)): reindent.
18089
18090 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
18091
18092         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
18093         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
18094         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
18095         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
18096         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
18097         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
18098         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
18099         ToolStripTextBox.cs: Another wave of corcompare work.
18100
18101 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18102
18103         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18104         the Width property.
18105
18106         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18107         methods by callling Column.AutoResize method on columns.
18108
18109 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18110
18111         * Control.cs: Provide proper implementations of PreferredSize
18112         and GetPreferredSize (2.0).
18113
18114 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18115
18116         * Form.cs: Remove one character (!) to make my previous OnClosing
18117         stuff work for modal windows like MessageBox.
18118
18119 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18120
18121         * ListView.cs:
18122         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18123         ListView.Columns to get the last displayed column. Fixes #80452.
18124
18125 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18126
18127         * Label.cs, LinkLabel.cs: Source code identation fixes.
18128
18129 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18130
18131         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18132         we dont need to invalidate only borders because when we invalidate four
18133         border lines the invalidate's generates a complete redraw of button, 
18134         because it now invalidate a complete rect some other redraws operations
18135         are fixed. Fixes #80196.
18136         
18137         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18138         Remove ToolBarInvalidateEntireButton as it is not used.
18139
18140 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18141         
18142         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18143         called for 2.0 profile.
18144         * CloseReason.cs: Make class internal for 1.1.
18145
18146 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18147
18148         * ToolStripManager.cs: Implement FindToolStrip functionality.
18149         * ToolStrip.cs: Register and unregister with ToolStripManager.
18150
18151 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18152
18153         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18154         to ArrangedElementCollection.  Implemented this with as few #if's as 
18155         possible (which is still too many).
18156
18157 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18158
18159         * Control.cs: Implement SizeFromClientSize() [2.0].
18160
18161 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18162
18163         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18164         use Theme.BorderSize to calculate area instead of static value 1, 
18165         by the way use new BorderStaticSize instead     Border3DSize when 
18166         border_static is true. Fixes #79537.
18167         
18168         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18169         
18170         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18171         it is not needed.
18172
18173 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18174
18175         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18176
18177 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18178
18179         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18180         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18181         
18182         * Hwnd.cs: 
18183         - border_static field added, it will used to define when a control 
18184         theres 3D border but it must be static (thin).
18185         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18186         instead of static value 1, by the way use new BorderStaticSize instead
18187         Border3DSize when border_static is true.
18188
18189         * XplatUIX11.cs, XplatUIOSX.cs: 
18190         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18191         
18192         * Theme.cs: BorderStaticSize field added.
18193
18194 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18195
18196         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18197
18198 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18199
18200         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18201         mimic same behavior than win32 that set border only in CreateParams,
18202         it fix problems under CreateParams overrides. Fix #79442 and partial
18203         fix #79537.
18204         
18205         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18206         of thi control you must call recreate handle. 
18207         
18208         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18209         need to do anything as RecreateHangle will take care about borders.
18210
18211 2007-01-05  Mike Kestner  <mkestner@novell.com>
18212
18213         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18214         cycles between the ItemControl and parent.  Fixes #80388.
18215
18216 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18217
18218         * Control.cs: Lazy init layout engine. Do not directly use 
18219         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18220
18221 2007-01-05  Chris Toshok  <toshok@ximian.com>
18222
18223         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18224         unless our list manager has changed (i.e. unless we have reason to
18225         believe our columns have changed).  Fixes #80422.
18226         
18227         also, disable the call do BindColumns in
18228         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18229         1.1 the event isn't raised in response to a column addition on a
18230         table.)
18231
18232 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18233
18234         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18235         that inheritors can not call it if they choose.  Fixes bug #80456.
18236
18237 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18238
18239         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18240         doesn't blow up with a null exception on marshalling.
18241         
18242 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18243
18244         * Control.cs: Implement several 2.0 protected properties and methods.
18245         Ensure that all necessary events are being called when properties
18246         are set.
18247
18248 2007-01-05  Mike Kestner  <mkestner@novell.com>
18249
18250         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18251         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18252         instead of the parent control.  Fixes #80378.
18253
18254 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18255
18256         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18257           determine whether to use yard-pound or not (bug #78399).
18258
18259 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18260
18261         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18262         problems. So it is time to bring back the old popupbutton colors.
18263
18264 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18265
18266         * ColumnHeader.cs:
18267         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18268         property by using the internal information of the
18269         columns order in ListView.
18270
18271 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18272
18273         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18274         Add 2.0 Tag properties.
18275
18276         * LinkArea.cs: Add 2.0 ToString method.
18277
18278 2007-01-03  Chris Toshok  <toshok@ximian.com>
18279
18280         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18281         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18282         when we're editing, which fixes #80047.
18283
18284 2007-01-03  Chris Toshok  <toshok@ximian.com>
18285
18286         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18287         #80404.
18288
18289 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18290
18291         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18292         property and implementation.
18293
18294         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18295         for MdiWindowListItem property.
18296
18297         * ToolStripDropDown.cs: Don't consider hidden menu items while
18298         laying out the menu.
18299
18300 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18301
18302         * SendKeys.cs: window handle is not needed in win32, so just
18303         get the active window for X after parsing keys and don't use
18304         it when building the message; it is passed by parameter to the 
18305         Xplat method and used there to build the message instead. Also,
18306         wait for events to be processed on SendWait, as opposed to Send,
18307         which doesn't wait :) Playing with threads and Send() completely 
18308         hangs on ms.net, only SendWait() works.
18309         
18310         XplatUIX11.cs
18311         X11Display.cs: Check for valid window handle.
18312
18313 2007-01-03  Jackson Harper  <jackson@ximian.com>
18314
18315         * TextControl.cs: Need to prevent wrap calculations when replacing
18316         text (this was there before i removed it accidently).
18317         - Don't update the cursor during the positioning, just set it to
18318         selection_start at the end of the operaion.
18319
18320 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18321
18322         * Control.cs:
18323         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18324         
18325 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18326
18327         * MonthCalendar.cs: Added Click and DoubleClick events again,
18328         but this time they only hide Control's Click and DoubleClick.
18329         
18330 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18331
18332         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18333         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18334
18335 2007-01-02  Jackson Harper  <jackson@ximian.com>
18336
18337         * TextBoxBase.cs: We move the caret with the split now, so we
18338         don't need to explicitly move the caret after splitting.  This
18339         fixes the caret bumping down an extra line on Enter.
18340
18341 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18342
18343         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18344         2.72). 
18345
18346         * ScrollableControl.cs: Add Scroll event.
18347
18348 2007-01-02  Mike Kestner  <mkestner@novell.com>
18349
18350         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18351         to fix all hdr height padding codepaths.  Fixes #80207.
18352
18353 2007-01-02  Chris Toshok  <toshok@ximian.com>
18354
18355         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18356         setting it to the Control defaults anyway, and it being after the
18357         Dock set was screwing up layout.
18358         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18359         no need to call UpdateStatusBar here, as it'll be re-layed out if
18360         it needs to be.
18361
18362 2007-01-02  Mike Kestner  <mkestner@novell.com>
18363
18364         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18365         to header height for width == -1. Fixes the rest of #80207.
18366
18367 2007-01-02  Mike Kestner  <mkestner@novell.com>
18368
18369         * ListView.cs: rework the mouse event forwarding everaldo added
18370         to translate the coordinates to the parent control not
18371         raise the parent events until after we've done our work. Hover
18372         needs more work, in the case where HoverSelection is on, because
18373         the item control receives more than one MouseHover per Enter
18374         event, so we need to ensure only the "first" hover gets forwarded.
18375         Opening a minor bug for that.
18376
18377 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18378
18379         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18380         * ListControl.cs: Implemented AllowSelection property. Removed extra
18381         tabs.
18382         * ListBox.cs: Implemented AllowSelection property.
18383
18384 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18385
18386         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18387         SelectedItem, it prevent for errors when you must disable item
18388         before perform click. Fixes #80409.
18389
18390 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18391
18392         * MenuAPI.cs: Prevent second level and beyond submenus to close
18393         until first level when move out side of popup.
18394         
18395 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18396
18397         * MenuAPI.cs:
18398         - Down submenu positin in three pixels.
18399         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18400
18401 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18402
18403         * ThemeWin32Classic.cs:
18404         - Fix popup menu size adding one pixel on the top.
18405         - Down menu item border from two to one to mimic Win32.
18406         - Some source identation fixes. 
18407
18408 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18409
18410         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18411         position of menu arrows, it fix wrong arrow size.
18412
18413 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18414
18415         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18416         instead of line, it simplify draw operation and fix it using 3D
18417         borders to mimic Win32.
18418
18419 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18420
18421         * StatusStrip.cs: Add implementation of the sizing grip.
18422
18423         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18424         StatusStrip rendering.
18425
18426 2006-12-31  Chris Toshok  <toshok@ximian.com>
18427
18428         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18429         override the layout style (anchor/dock) of the control.  assign to
18430         Dock instead.  Fixes bug #80416.
18431
18432         * ToolStrip.cs: same.
18433
18434 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18435
18436         * ContainerControl.cs: Use ContainerSelected flag to check if 
18437         a Container is directly selected, or if Select is called on a 
18438         non-container. If a container is directly selected, focus events 
18439         should not be raised.
18440         Apply #80411 patch to throw exception on set_ActiveControl if 
18441         control is the same as the current one.
18442         
18443         * Control.cs: Use ContainerSelected flag (see above).
18444         Add invalidation check to raise event but not invalidate if 
18445         dimensions are 0.       
18446         Apply #80411 patch.
18447         
18448
18449 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18450
18451         * MenuAPI.cs: After click, dont close popup menu when menu is
18452         ContextMenu. Fixes #80399.
18453
18454 2006-12-30  Chris Toshok  <toshok@ximian.com>
18455
18456         * ContainerControl.cs: make sure we throw the exception if the
18457         container control doesn't contain the control we're setting
18458         ActiveControl to.
18459
18460 2006-12-30  Chris Toshok  <toshok@ximian.com>
18461
18462         * Control.cs (SetTopLevel): fix the exception raised by
18463         SetTopLevel for child controls.
18464         (set_Anchor): call UpdateDistances when setting the anchor type.
18465         This fixes bug #80336.
18466
18467 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18468
18469         * Theme.cs: For now, revert back to 8pt font.
18470
18471 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18472
18473         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18474         Fixes #80395.
18475
18476 2006-12-29  Chris Toshok  <toshok@ximian.com>
18477
18478         * Control.cs: reorder the code in OnResize to give the same event
18479         ordering as MS.
18480
18481 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18482
18483         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18484         TileHorizontally and TileVertically.
18485         
18486 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18487
18488         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18489         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18490         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18491         Corrected copyright and email adress.
18492
18493 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18494
18495         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18496         of Exception in FullPath property if no TreeView is associated with
18497         the TreeNode.
18498
18499 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18500
18501         * Theme.cs: Marked default_font as private, and initialize it in ctor
18502         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18503         on 2.0 profile.
18504         * ThemeGtk.cs: Removed default_font intialization.
18505         * ThemeWin32Classic.cs: Removed default_font initialization.
18506
18507 2006-12-28  Chris Toshok  <toshok@ximian.com>
18508
18509         * Control.cs: fix a couple of place where we were creating handles
18510         more aggressively than we should be.  Fixes ControlRefresh unit
18511         tests.
18512
18513 2006-12-28  Chris Toshok  <toshok@ximian.com>
18514
18515         * Control.cs: contrary to what the comment said, Control.Dock does
18516         not supercede Control.Anchor - the last one you assign to decides
18517         the layout behavior.  so we need to keep track of which was the
18518         last set.  Also, fix some of the affected property arguments in
18519         PerformLayout calls, and remove an redundant parent.PerformLayout
18520         call in OnResized.
18521
18522         Add a VisibleInternal property, which returns is_visible.  We
18523         can/should get rid of all the usage of this field elsewhere.
18524
18525 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18526         
18527         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18528         control style, not DoubleBuffer. Added UseDoubleBuffering property
18529         that indicates whether doublebuffering is enabled and supported.
18530         (comment from and code based on Gert Driesen's patch in #80324).
18531         Fixes #80324.
18532
18533 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18534         
18535         * Control.cs: Fixed a NRE.
18536
18537 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18538
18539         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18540         for 2.0.
18541
18542 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18543
18544         * Control.cs: Rewrote double buffering, now a seperate
18545         class handles all the buffering, no Graphics is disposed of
18546         until the painting is finished (earlier implementation 
18547         would crash if the control was resized in the OnPaint, 
18548         since it would cause the double buffer to be recreated
18549         and the old one disposed), a separate Graphics is 
18550         created for every paint (MS behaviour and anyways the state
18551         of the Graphics would have to be saved and restored otherwise)
18552         
18553         * XplatUIDriver.cs: 
18554         * XplatUIX11.cs:
18555         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18556         so that we can get the graphics for the back buffer without
18557         having to create a new one and remove the offscreen_dc parameter
18558         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18559         
18560 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18561
18562         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18563         Also make virtual all the key-related methods.
18564
18565         * ListViewItem.cs: Make virtual the key related methods for
18566         ListViewSubItemCollection.
18567
18568 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18569
18570         * ListView.cs:
18571         * ListViewItem.cs:
18572         * ThemeWin32Classic.cs:
18573         * Theme.cs: Initial support for Tile view in ListView,
18574         as well as the implementation of the required bits for it (Item
18575         and Subitem).
18576
18577 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18578
18579         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18580         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18581         Provide useful exception messages.
18582
18583 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18584
18585         * TrackBar.cs: Remove a warning.
18586         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18587         when used by DateTimePicker, fixes #80287. This also requires that 
18588         MonthCalendar implements it's own drawing for the yearly updown control,
18589         otherwise the Capture tracking would be too complicated. Removed the Click 
18590         and DoubleClick events (according to comments they were hiding the base class
18591         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18592         raise these events, not that they cannot be raised. It is possible to raise 
18593         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18594         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18595         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18596         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18597         event, no longer needed.
18598         
18599 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18600
18601         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18602         true if new value differs from current value.
18603
18604 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18605
18606         * Control.cs: ControlCollection.Count must be public. Fixed build of
18607         unit tests.
18608
18609 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18610
18611         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18612
18613 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18614
18615         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18616
18617 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18618
18619         * Control.cs: Invalidates control including when Width and Height is 
18620         equal zero or is not visible, only Paint event must be care about 
18621         this. Fixes #79913.
18622
18623 2006-12-26  Chris Toshok  <toshok@ximian.com>
18624
18625         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18626         more corcompare work.
18627
18628         * DataGridView.cs: fix compiler warning.
18629
18630         * ColumnHeader.cs: some corcompare work, and also take the
18631         opportunity to make the internal fields private.
18632
18633         * ListView.cs: fix the fallout from the above field change.
18634
18635 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18636
18637         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18638         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18639         ToolStripTextBox.cs: Fixes to events and corcompare.
18640
18641 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18642
18643         * ListView.cs: Call owner.OnMousexx event to propagate events from
18644         item to ListView. Fixes #80367.
18645
18646 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18647
18648         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18649         if value is less than one. ItemHeight should not be set to a value
18650         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18651         Removed extra tabs.
18652
18653 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18654
18655         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18656         * ToolStripStatusLabel.cs: Add Spring for Moma.
18657
18658 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18659
18660         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18661         Fixed code formatting. Removed debug code.
18662         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18663
18664 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18665
18666         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18667         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18668         ArgumentOutOfRangeException if ColumnCount is negative. In 
18669         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18670         less than 4 or higher than 32768.
18671         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18672         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18673         Fixed IsFormatProviderDefault to return true if FormatProvider has
18674         not been explicitly set.
18675
18676 2006-12-25  Chris Toshok  <toshok@ximian.com>
18677
18678         * Application.cs: add a couple of 2.0 events.
18679
18680 2006-12-25  Chris Toshok  <toshok@ximian.com>
18681
18682         * Control.cs: fix compiler warning.
18683
18684         * AxHost.cs: corcompare fixes.
18685
18686         * ApplicationContext.cs: corcompare fixes.
18687
18688 2006-12-25  Chris Toshok  <toshok@ximian.com>
18689
18690         * Control.cs: only update dist_right/dist_bottom if the
18691         width/height is > 0.  this fixes anchored controls being resized
18692         smaller until they disappear and then resized larger again.
18693
18694 2006-12-25  Chris Toshok  <toshok@ximian.com>
18695
18696         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18697         since they're nothing more than X/Left and Y/Top, respectively.
18698
18699         Also, move back to a per-control Bitmap/Graphics for
18700         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18701         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18702         Height.
18703
18704 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18705
18706         * MessageBox.cs: Implemented overload that takes a new "bool
18707         displayHelpButton" by adding a new internal field "show_help".
18708         When clicked this will raise the HelpRequested on the owner or the
18709         main form. 
18710
18711         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18712         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18713
18714         * ListView.cs: Add support ColumnWidthChanged and
18715         ColumnWidthChanging. 
18716
18717         Add support for ColumnReordered event.
18718         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18719         reorder.
18720
18721         Very nice codebase!
18722
18723         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18724
18725         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18726
18727 2006-12-24  Chris Toshok  <toshok@ximian.com>
18728
18729         * GridTablesFactory.cs: 2.0 corcompare work.
18730
18731         * ToolStripContainer.cs: add "override" to
18732         ContextMenuStripChanged, and remove the local event object.
18733
18734         * ToolStripDropDown.cs: same with a couple properties.
18735
18736         * ToolStripPanel.cs: same with AutoSizeChanged event.
18737
18738         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18739
18740         * Form.cs: add the remaining 2.0 events, and do some corcompare
18741         attribute work.
18742
18743         * DateTimePicker.cs: add "new" to padding.
18744
18745         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18746
18747         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18748
18749         * DataGridView.cs: PaddingChanged is overridden.
18750
18751 2006-12-24  Chris Toshok  <toshok@ximian.com>
18752
18753         * Control.cs: corecompare work here too.
18754
18755         * DataGridViewElement.cs, DataGridView.cs,
18756         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18757         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18758         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18759         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18760         work.
18761
18762 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18763
18764         * Control.cs: Switched the error message on the console for a
18765         todo.  A review of the code will have to cope with this anyways
18766         (since its a large feature, it is in our radar) and it was
18767         producing too much output when running PDN.
18768
18769         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18770         changes.  Applications depend on this (PDN 2.72)
18771
18772 2006-12-23  Chris Toshok  <toshok@ximian.com>
18773
18774         * TableLayoutSettings.cs: finish up the corcompare work for this
18775         class.
18776
18777 2006-12-23  Chris Toshok  <toshok@ximian.com>
18778
18779         * Control.cs: make SetImplicitBounds internal, do some futzing
18780         with LayoutEngine so that it's available in 1.1, and remove the
18781         entire duplicated code mess from PerformLayout.  Use
18782         System.Windows.Forms.Layout.DefaultLayout instead.
18783
18784         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18785
18786 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18787
18788         * Form.cs: Add MainMenuStrip property.
18789
18790 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18791
18792         * Control.cs: Add ContextMenuStrip property and implementation.
18793         Fix ContextMenu implementation to show menu centered on control when
18794         activated using the keyboard instead of showing at screen (0,0).
18795
18796         * ToolStripDropDown.cs: Fix needed overload of Show ().
18797
18798 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18799
18800         * Menu.cs: Name property added for 2.0 profile.
18801         
18802 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18803
18804         * Menu.cs: Update information about FindMenuItem, method to be
18805         implemented soon.
18806
18807 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18808
18809         * MenuAPI.cs: When deselect items deselect also selected subitems.
18810         
18811 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18812
18813         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18814         FindSubItemByCoord to found itens that is not active, also an
18815         cheking added to FindSubItemByCoord to search for items only 
18816         in visible popup windows. Fixes #80274.
18817
18818 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18819
18820         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18821         internal property, it be care about change ExStyle. 
18822
18823 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18824
18825         * ContainerControl.cs: set activeControl for parent forms up the 
18826         tree when the new activecontrol is a container.
18827         When validating the active control, if it is a container, also
18828         raise up the validation for it's active control. Fixes #80280
18829         
18830         * Control.cs: Add internal property flag and check to prevent
18831         Focus events from getting raised when Select() is called for
18832         a ContainerControl. There are still too many focus events being
18833         raised at the moment though.
18834         Cleaned up the code a bit.
18835
18836 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18837
18838         * Control.cs: Added all missing 2.0 events.and
18839         fixed a couple of corcompare issues.
18840         * TrackBar.cs: Implemented missing 2.0 bits.
18841         * MonthCalendar.cs, 
18842         * DateTimePicker.cs, 
18843         * MdiClient.cs: Fixed some corcompare issues.
18844
18845 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18846
18847         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18848         SplitterPanel.cs: corecompare work.
18849
18850 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18851
18852         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18853         Clean up warnings for BackgroundImageChanged and PaddingChanged
18854         events now that they are implemented in Control.cs.
18855
18856 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18857
18858         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18859         
18860         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18861         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18862         of TableLayoutPanel and supporting cast.
18863
18864 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18865
18866         * XplatUIWin32.cs: 
18867         - GrabWindow now confines the mouse pointer to the confine window.
18868         - Added Win32ClipCursor and Win32GetClipCursor.
18869
18870         * Control.cs: 
18871         - Added CaptureWithConfine to be able to capture and confine 
18872         mouse pointer.
18873         
18874         * InternalWindowManager.cs: 
18875         - Call CaptureWithConfine instead of Capture if we're an
18876         MdiChild (fixes #79982).
18877
18878 2006-12-21  Chris Toshok  <toshok@ximian.com>
18879
18880         * DataGrid.cs: guard against the initial state of selection, where
18881         selection_start == -1.  make sure we only select from index >= 0.
18882         Fixes bug #80291.
18883
18884 2006-12-21  Chris Toshok  <toshok@ximian.com>
18885
18886         * Control.cs: we don't need to be so draconian with
18887         UpdateDistances, and we thusly don't need to call it before
18888         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18889
18890 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18891
18892         * ComboBox.cs,
18893         TextBox.cs: Implemented AutoComplete properties.
18894
18895 2006-12-20  Chris Toshok  <toshok@ximian.com>
18896
18897         * DataGridView*.cs: some corecompare work.
18898
18899 2006-12-20  Jackson Harper  <jackson@ximian.com>
18900
18901         * XplatUIX11.cs: We need to hide the caret when deleting it,
18902         otherwise you get carets left lying around everywhere.
18903         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18904         prevents getting some weird half drawn caret tracers when
18905         scrolling.
18906         * TextControl.cs: Attempt to reduce the number of times we need to
18907         recreate the caret.
18908
18909 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18910
18911         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18912
18913 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18914
18915         * DateTimePicker.cs:
18916         - Implemented missing 2.0 bits.
18917         - Changed some default values to match MS.
18918         
18919 2006-12-20  Jackson Harper  <jackson@ximian.com>
18920
18921         * TextBoxBase.cs: When changing the font across the document we
18922         can't recalculate after changing each line, since that will cahnge
18923         the line count.
18924         - PreferredHeight is a little different than i thought.
18925         - When backspacing, move the caret before we do the actual char
18926         delete, because when that delete crosses a wrap boundary the
18927         positional information will change.
18928
18929 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18930
18931         * Control.cs: Added some missing 2.0 bits: 
18932         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18933         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18934         add IBindableComponent and IDropTarget implementation.
18935         
18936         * MonthCalendar.cs: 
18937         - Added all missing 2.0 features:
18938         BackgroundImageLayout, RightToLeftLayout, 
18939         OnHandleDestroyed, RightToLeftLayoutChanged, 
18940         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18941         PaddingChanged.
18942         - Rewrote all the BoldDate code, it was completely broken.
18943         - Fixed all the tests (the tests can now be re-enabled, the
18944         problems were not with the tests, but with the control, it was
18945         mostly broken).
18946         
18947         * DateTimePicker.cs: Changed the location where the 
18948         MonthCalendar is shown.
18949         
18950 2006-12-19  Chris Toshok  <toshok@ximian.com>
18951
18952         * DataGridView.cs: add IDropTarget implementation.
18953
18954         * ToolStripPanel.cs: add IDropTarget implementation.
18955
18956 2006-12-19  Jackson Harper  <jackson@ximian.com>
18957
18958         * TextControl.cs: soft now means something different than what it
18959         used to mean, we want to move the caret regardless of whether or
18960         not this break was soft (would we really have wanted the caret
18961         to not move with the break in the old context?)
18962         * TreeView.cs: Make sure we factor in the vert scrollbar when
18963         calculating the horizontal scrollbar's maximum.
18964
18965 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18966
18967         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18968         check for keywords in alternate casing, close bug #80049.
18969
18970 2006-12-19  Chris Toshok  <toshok@ximian.com>
18971
18972         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18973         methods (which all do nothing).
18974
18975         * IDropTarget.cs: add the 4 missing methods.
18976
18977 2006-12-19  Chris Toshok  <toshok@ximian.com>
18978
18979         * TableLayoutRowStyleCollection.cs: corcompare work.
18980         
18981         * TableLayoutSettings.cs: same.
18982
18983         * TableLayoutStyle.cs: same.
18984
18985         * TableLayoutColumnStyleCollection.cs: same.
18986
18987 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18988
18989         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18990         TableLayoutPanel I've had in my local tree for way too long.
18991
18992 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18993
18994         * TableLayoutSettings.cs: Finish the public API (still needs all
18995         the logic to update on changes). 
18996
18997         * TableLayoutPanelCellPosition.cs: new file.
18998         
18999         * TableLayoutRowStyleCollection.cs,
19000         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
19001         TableLayoutSettings.cs: Track the final 2.0 table api.
19002
19003 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19004
19005         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
19006         and Image List 2.0 members for ColummnHeader.
19007         * ListView.cs: Add key-related 2.0 methods for
19008         ColumnHeaderCollection.
19009
19010 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19011
19012         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
19013         ArgumentNullException if items argument is null. Ignore null item in
19014         arrays. Removed extra tabs.
19015
19016 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
19017
19018         * MonthCalendar.cs: Fixed InvalidCastException.
19019
19020 2006-12-19  Jackson Harper  <jackson@ximian.com>
19021
19022         * TextControl.cs: Don't increment the position here.
19023         - When calculating char positions only add in the line break size
19024         for hard line breaks.
19025
19026 2006-12-19  Andreia Gaita  <avidigal@novell.org>
19027
19028         * SendKeys.cs: Changed some things to match ms.net behaviour
19029         when parsing shifted capital letters.
19030         
19031         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
19032         Add window handle as parameter to SendInput. X11 needs the 
19033         window handle, and the handle being passed      to it in the keys 
19034         queue is the active control handle (which windows needs), not 
19035         the window handle.
19036         
19037         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
19038         to support SendKeys on X.       
19039         
19040         * X11Keyboard: Implement helper method to lookup a linux keycode
19041         given the virtual keycode. Added table of keycode-2-virtualkey
19042         values to support this.
19043
19044 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19045
19046         * ListView.cs: Add support for SelectedIndexCollection
19047         and SelectedItemCollection 2.0 methods. Implement support
19048         for ImageKey too.
19049         * ListViewItem.cs: Add support for ListViewSubItemCollection
19050         2.0 methods. Also, fix an incorrect behavior of AddRange method
19051         (it shouldn't call Clear).
19052         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
19053
19054 2006-12-19  Jackson Harper  <jackson@ximian.com>
19055
19056         * RichTextBox.cs: 
19057         * TextBoxBase.cs: New args for FormatText
19058         * TextControl.cs: Rewrote the main drawing method, this version
19059         feels a little easier to understand and debug to me.  Hopefully it
19060         does to others also
19061         - Fix FormatText to OR in the new formating values.  Added
19062         FormatSpecified param, basically this works in the same way as
19063         BoundsSpecified in Control.
19064         - Set the caret properties when the caret is positioned.
19065         - When wrapping text make sure that we calculate the width of the
19066         last character
19067         - when calculating alignments we might have wrapped down to the
19068         next line, so don't search for an individual tag, search for the
19069         end of the line
19070         - We need to invalidate the selection area when we replace the
19071         selection.
19072         
19073 2006-12-19  Daniel Nauck  <dna@mono-project.de>
19074
19075         * Application.cs: add Restart () 2.0 support
19076
19077 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19078
19079         * MenuItem.cs: Invalidate menu item rectangle after change Enable
19080         property. Fixes #80268.
19081         
19082 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19083
19084         * MenuAPI.cs: Dont trigger select event when closes top menu
19085         item. Fixes #80270.
19086
19087 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19088
19089         * MenuAPI.cs: When you click on menuitem only trigger onselect
19090         event for top menu itens. Fixes #80271.
19091         
19092 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19093
19094         * MdiWindowManager.cs: Make IconicBounds depend on
19095         the bottom of MdiClient, not the top (fixes #80267)
19096         
19097 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19098
19099         * MdiClient.cs: Added missing 2.0 attribute
19100
19101 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19102
19103         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19104         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19105
19106 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19107
19108         * MenuAPI.cs: Fix click when menuitem is not popup,
19109         this regression was caused by last commit (#80272).
19110
19111 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19112
19113         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19114         fire click event or close menu. Fixes #80272.
19115
19116 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19117
19118         * ListViewHitTestInfo.cs: add
19119
19120 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19121
19122         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19123         * FlatButtonAppearance.cs: add
19124         * DockingAttribute.cs: add
19125
19126 2006-12-17  Chris Toshok  <toshok@ximian.com>
19127
19128         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19129         and rebind our columns when it does - this way, if you make
19130         changes to the DataTable (or set the Table attribute on a DataView
19131         after setting it as the DataGrid's DataSource, the changes are
19132         made visible.)  Fixes bug #80107.
19133
19134 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19135
19136         * ListViewGroup.cs: add internal Location property for layouting.
19137         * Theme.cs: add abstract ListViewGroupHeight function.
19138         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19139
19140 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19141
19142         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19143         Added reset of selected index to 0 when adding first tab page.
19144         Fixes #80264
19145         
19146         * NumericUpDown.cs: Fix NET_2_0 check
19147
19148 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19149
19150         * ListViewGroup.cs: fixed DefaultValueAttribute value
19151
19152 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19153
19154         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19155
19156 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19157
19158         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19159         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19160         ScrollableControl.cs: Add a handful of methods that are
19161         overwritten in 2.0 
19162
19163 2006-12-15  Chris Toshok  <toshok@ximian.com>
19164
19165         * XplatUIWin32.cs: initial implementation of the Reversible
19166         drawing functions.  there are some problems.  DrawReversibleFrame
19167         doesn't seem to work at all for Dashed FrameStyle, and in the
19168         Thick case there are drawing errors at the corners (we probably
19169         need to bind Rectangle instead of doing moveto/lineto's.)
19170
19171 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19172         
19173         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19174         to send blocks of key messages. Send accumulates keys to send with Flush, 
19175         while SendWait sends all keys immediately.
19176                 
19177         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19178         XplatUIX11.cs,  XplatUIX11-new.cs:
19179         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19180         to Win32 SendInput.
19181         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19182         
19183         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19184         testing for ms.net on this class is very tricky, as the tests run too fast 
19185         to allow the hook to release, essentially freezing the keyboard and the 
19186         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19187         category :p
19188
19189 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19190
19191         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19192                         added missing attributes.
19193  
19194 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19195
19196         * ListViewGroup.cs: Added missing attributes.
19197         * ListViewGroupCollection.cs: Added missing attributes.
19198
19199 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19200
19201         * ListViewItem.cs: fixed ListViewSubItem text property.
19202
19203 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19204         
19205         * Control.cs: Added missing 2.0 attributes
19206         
19207 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19208         
19209         * MdiClient.cs: Added missing 2.0 attribute.
19210         * MonthCalendar.cs: Added some missing 2.0 attributes 
19211         and properties.
19212         
19213 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19214
19215         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19216
19217 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19218
19219         * MainMenu.cs: Add the new 2.0 constructor to help out people
19220         using the MainMenu in VS2005.
19221
19222 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19223         
19224         * MdiChildContext.cs: Removed it, no longer used.
19225         * MdiClient.cs: Added missing 2.0 attributes.
19226         
19227 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19228         
19229         * InternalWindowManager.cs: Fix a NullRef with previous 
19230         changes for toolwindows.
19231         
19232 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19233
19234         * Control.cs: 
19235         - Added AfterTopMostControl to allow for certain controls 
19236         to always stay on top when normal controls are brought to 
19237         front.
19238         
19239         * XplatUIWin32.cs: 
19240         - (DrawInversibleRectangle): Get window rectangle from Win32 
19241         in stead of from control, since Win32 doesn't calculate
19242         screen coords correctly from control's Location if it 
19243         have docked siblings.
19244         
19245         * MdiWindowManager.cs:
19246         - Correct the control menu popup location when clicked on
19247         the maximized form icon. (fixes #80223.1)
19248         - Don't show moving rectangle if mouse hasn't moved from
19249         the original clicked point.
19250         - Removed FormGotFocus handler (not used).
19251         - Calculate the control buttons location from the main
19252         window's size and not client size (fixes #79770).
19253         - Form is now closed when the form icon is double-clicked
19254         (fixes #79775). 
19255         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19256         
19257         * InternalWindowManager.cs:
19258         - Moved some MDI-only methods to MdiWindowManager.
19259         - Removed unused properties and methods.
19260         - Unified method naming for methods handling wm messages.
19261         - Moved all message handling to seperate methods for
19262         each message.
19263         
19264         * ThemeWin32Classic.cs:
19265         - DrawManagedWindowDecorations now draws the title bar 
19266         with a gradient brush.
19267         - Add a CPDrawButtonInternal that allows us to specify
19268         light, normal and dark colors for the buttons (control 
19269         buttons for MDI children were drawn with the same light
19270         color as the background, therefore loosing the 3D effect).
19271         
19272         * SizeGrip.cs:
19273         - Add a CapturedControl property that is used to 
19274         determine the control to resize (defaults to parent). 
19275         Needed for MdiClient, since its SizeGrip's parent is
19276         MdiClient, but the control to resize is the main form.
19277         
19278         * MdiClient.cs:
19279         - Set SizeGrip's CapturedControl to the main form in order
19280         to resize the main form and not the MdiClient.
19281         - Override AfterTopMostControl to leave the scrollbars 
19282         always on top.
19283
19284 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19285
19286         * ListView.cs: fixed ListViewItemCollection AddRange and
19287                         implemented ListViewItemCollection AddRange 2.0 support.
19288
19289 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19290
19291         * ListViewGroup.cs: Add.
19292         * ListViewGroupCollection.cs: Add
19293         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19294         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19295                                 stub for ImageKey 2.0 support.
19296
19297 2006-12-14  Mike Kestner  <mkestner@novell.com>
19298
19299         * ListView.cs: add text padding to the autocalculation for columns
19300         of width -2.  Fixes #80207.
19301  
19302 2006-12-14  Mike Kestner  <mkestner@novell.com>
19303
19304         * ListView.cs: add some index guarding for partial row navigation 
19305         logic.  Fixes #80250.
19306
19307 2006-12-14  Mike Kestner  <mkestner@novell.com>
19308
19309         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19310         are added or inserted to the collection.  Fixes #81099.
19311
19312 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19313
19314         * MenuAPI.cs: Closes menu when right click out side of popup
19315         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19316
19317 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19318
19319         * ListViewItem.cs: Fix dumb error.
19320
19321         * ListView.cs: Add Find and ContainsKey methods in 
19322         ListViewItemCollection, and also return true for IsReadOnly
19323         and IsFixedSize (changes for 2.0). 
19324
19325 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19326
19327         * Control.cs: Allow Region to be set to null.
19328
19329 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19330
19331         * MdiWindowManager.cs: Remove unused (commented out) code.
19332         * Form.cs: When the MdiChild is maximized, the form needs 
19333         WM_NCMOUSELEAVE, so request it.
19334         * InternalWindowManager.cs: 
19335         - Added tooltips to control buttons.
19336         - Removed duplicated control button handling code.
19337         - Removed unused (commented out) code.
19338         
19339 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19340
19341         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19342         was used because we must set cursor without trigger ChangeCursor event
19343         and without change Cursor control property. Fixes #79963.
19344
19345 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19346         
19347         * Control.cs: Check if Region setter value is null, and ignore
19348
19349 2006-12-12  Jackson Harper  <jackson@ximian.com>
19350
19351         * TextControl.cs: We were almost always drawing one more line then
19352         needed, since the GetLineByPixel will return the last line found
19353         at that pixel. In most cases though, we were invalidating up to
19354         the junction between two lines.
19355         - Improve debug code.
19356
19357 2006-12-12  Chris Toshok  <toshok@ximian.com>
19358
19359         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19360         and FillReversibleRectangle.
19361
19362         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19363         and FillReversibleRectangle.
19364
19365         * XplatUIWin32.cs: add stubs which do nothing for
19366         DrawReversibleFrame, DrawReversibleLine, and
19367         FillReversibleRectangle.
19368
19369         * XplatUIOSX.cs: add stubs which raise NIE for
19370         DrawReversibleFrame, DrawReversibleLine, and
19371         FillReversibleRectangle.
19372
19373         * XplatUIX11.cs: add working implementation for
19374         DrawReversibleFrame, DrawReversibleLine, and
19375         FillReversibleRectangle.
19376         
19377         * ControlPaint.cs: implement DrawReversibleFrame,
19378         DrawReversibleLine, and FillReversibleRectangle, by calling into
19379         the appropriate XplatUI method.
19380
19381 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19382
19383         * Form.cs: Make MdiClient have the focus even if it's
19384         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19385         messages. Fixes #79907.
19386         
19387 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19388
19389         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19390         queried after the window is created.
19391         
19392         * XplatUIX11.cs: Added SendParentNotify to implement 
19393         WM_PARENTNOTIFY logic. Fixes #79965.
19394         
19395         * Control.cs: Added MakeParam.
19396         
19397 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19398
19399         * MdiClient.cs: Resume Layout before setting window
19400         states (fixes #80201).
19401
19402 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19403
19404         * MenuAPI.cs: Deselect a menu item after performing
19405         the click (fixes #80197).
19406
19407 2006-12-11  Jackson Harper  <jackson@ximian.com>
19408
19409         * TextBoxBase.cs: We need to cap this value, since Maximum -
19410         ViewPortHeight can be less than zero.
19411         - Only do selection with the left mouse button.
19412         * TextBox.cs: Don't tell the world that we have a context menu.
19413         * Control.cs: New method so that we can control whether or not the
19414         context menu is visible outside MWF.
19415
19416 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19417
19418         * ToolBarButton.cs: Fix text positon. 
19419
19420 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19421
19422         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19423
19424         * Control.cs (DoubleBuffered): Add implementation.
19425
19426         * Application.cs (OpenForms): Add.
19427
19428 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19429
19430         * Form.cs: Use opacity instead of Opactiy to determine if we need
19431         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19432
19433 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19434
19435         * Control.cs: Fix NRE if Control.Site was set to null.
19436
19437 2006-12-11  Chris Toshok  <toshok@ximian.com>
19438
19439         * Control.cs: ControlCollection.Remove should return if the arg is
19440         null, and ControlCollection.SetChildIndex should raise a ANE.
19441
19442 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19443
19444         * Control.cs: Verify value set for Dock property. Code formatting
19445         updates.
19446
19447 2006-12-11  Jackson Harper  <jackson@ximian.com>
19448
19449         * TextControl.cs: Draw the caret and the selection when a flag is
19450         set on the owner.
19451         * TextBoxBase.cs: We want to draw the caret and the selection for
19452         TextBox but not for TextBoxBase.
19453         - If the window is resized and scrolling is no longer needed (the
19454         whole doc is visible) set the scroll position to zero.
19455         - The default SelectWord (the one TextBox uses) should move the
19456         caret to the end of the word.
19457         - SelectAll moves the caret to the end of the selection.
19458         * TextBox.cs: We don't selectall on focus, we just do it when the
19459         control is created.
19460         
19461 2006-12-11  Mike Kestner  <mkestner@novell.com>
19462
19463         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19464
19465 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19466
19467         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19468         2.0 support.
19469         * ListViewItem.cs: Add Name 2.0 property.
19470
19471 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19472
19473         * TabControl.cs: Set visibility on selected or default tab 
19474         when tabcontrol handle is created, so that it's contents
19475         actually show up (duh). Fixes #80193
19476         Don't redraw the control if there is no handle created, as
19477         the selected index might be completely invalid. Added some tests
19478         to check for this.
19479
19480 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19481
19482         * ToolBar.cs: Uses maximun width and height of all buttons as 
19483         button rectangle when ButtonSize specified, it looks strange but
19484         is what happens in Win32. Fixes #80189.
19485
19486 2006-12-11  Jackson Harper  <jackson@ximian.com>
19487
19488         * TextControl.cs: Need to track undo levels ourself, since
19489         compound actions will mess them up.
19490
19491 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19492
19493         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19494         SelectedIndex value is changed (even if it's not valid).
19495         Reset SelectedIndex to 0 when the handle is created and if
19496         the current index is invalid.
19497         Fixes SelectdeIndex unit tests and #80128
19498
19499 2006-12-08  Chris Toshok  <toshok@ximian.com>
19500
19501         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19502         calls EndEdit, it needs to be called before we set current_cell to
19503         its new value.  Otherwise, we end up committing the value in the
19504         textbox to the new cell as well.  Fixes bug #80160.
19505
19506 2006-12-08  Chris Toshok  <toshok@ximian.com>
19507
19508         * Form.cs (set_CancelButton): if the button's DialogResult is
19509         None, set it to Cancel.  Fixes bug 80180.
19510
19511 2006-12-08  Jackson Harper  <jackson@ximian.com>
19512
19513         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19514         to watch ourselves when setting the canvas size and setting the
19515         scrollbar values.
19516
19517 2006-12-08  Chris Toshok  <toshok@ximian.com>
19518
19519         * DataGrid.cs: comment out the two MakeTransparent calls for the
19520         time being so people using trunk (and not 1.2.2) on windows can
19521         actually use the datagrid.  This deals with bug #80151.
19522
19523 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19524
19525         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19526         Graphics.DrawImage (image, int, int, int, int) overload instead
19527         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19528         the dpi difference and was blurring images it drew.
19529         [Fixes bug #79960]
19530
19531 2006-12-08  Chris Toshok  <toshok@ximian.com>
19532
19533         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19534         rowcnt is 0 (such as with an empty datasource), and make sure we
19535         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19536         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19537
19538 2006-12-08  Chris Toshok  <toshok@ximian.com>
19539
19540         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19541         grid.
19542
19543 2006-12-08  Chris Toshok  <toshok@ximian.com>
19544
19545         [ Fixes bug #80167 ]
19546         
19547         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19548         style is FlatStyle.System.
19549
19550         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19551         ButtonBase.flat_style private, and switch uses of it to the public
19552         property.
19553         
19554 2006-12-08  Chris Toshok  <toshok@ximian.com>
19555
19556         [ Fixes bug #80121 ]
19557         
19558         * ThemeWin32Classic.cs: center the caption text in the datagrid
19559         when we draw it.
19560
19561         * DataGrid.cs: lessen the amount we add to the caption height from
19562         6 to 2.  6 was making it huge.
19563
19564 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19565
19566         * UpDownBase: Handle MouseWheel call directly instead of capturing
19567         the inner textbox's OnMouseWheel. Fixes #80166
19568
19569 2006-12-08  Jackson Harper  <jackson@ximian.com>
19570
19571         * TextControl.cs: We need to invalidate the textbox when we empty
19572         it (how had this not been discovered before?)
19573
19574 2006-12-08  Jackson Harper  <jackson@ximian.com>
19575
19576         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19577         to behave like MS, we now ignore the eventargs.Click and just
19578         track state ourself, which we were already doing anyways.
19579         - Constrain the double click handler to the double click size.
19580         
19581 2006-12-08  Chris Toshok  <toshok@ximian.com>
19582
19583         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19584         direction if that scrollbar isn't shown.  fixes bug #80158.
19585
19586 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19587
19588         * NumericUpDown.cs: Update value on getter. Fixes #79950
19589
19590 2006-12-08  Chris Toshok  <toshok@ximian.com>
19591
19592         * MenuItem.cs: add back in the event cloning code.  I didn't know
19593         how to do it in the face of the EventHandlerList work i'd done
19594         last week.  Fixes bug #80183.
19595
19596 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19597
19598         * Control.cs: Add an invalidate to the BackgroundImage setter.
19599         [Fixes 80184]
19600
19601 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19602
19603         * ToolStrip*: Add some small properties reported by MoMA, fix event
19604         firing and default properties based off of unit tests, and add some
19605         attributes based off of the class status page.
19606
19607 2006-12-07  Jackson Harper  <jackson@ximian.com>
19608
19609         * TextBoxBase.cs: Take HideSelection into account when determining
19610         whether or not to show the selection.
19611         * RichTextBox.cs: After inserting the RTF into the document move
19612         the cursor to the beginning of the document.
19613
19614 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19615
19616         * Control.cs: Remove static ArrayList "controls" which maintained
19617         a reference to every control created.
19618         * Application.cs: Create a static FormCollection to maintain a reference
19619         to every form created.  Use it in places that formerly enumerated through
19620         the controls one looking for forms.
19621         * Form.cs: Add and remove self from above FormCollection.
19622
19623 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19624
19625         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19626           not libgdk (though it makes me wonder why I didn't have any
19627           problems)
19628
19629 2006-12-07  Chris Toshok  <toshok@ximian.com>
19630
19631         [ you had to know this was coming after that last commit...]
19632         
19633         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19634         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19635         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19636         XCopyArea).
19637
19638 2006-12-07  Chris Toshok  <toshok@ximian.com>
19639
19640         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19641         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19642         all the behavior we need for double buffering.
19643
19644         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19645         client side Bitmap, just like the old Control-based double buffer
19646         code did.  The methods are virtual, so each XplatUI driver
19647         subclass can replace the implementation to use a faster, platform
19648         specific approach.
19649
19650         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19651         double buffer code, and clean things up a bit in the process.
19652
19653 2006-12-06  Chris Toshok  <toshok@ximian.com>
19654
19655         * Control.cs: reindent WndProc.
19656
19657 2006-12-06  Chris Toshok  <toshok@ximian.com>
19658
19659         [ I wanna be like BenM when I grow up ]
19660         
19661         * Hwnd.cs: create a single static Graphics object on the static
19662         Bitmap we create.  use this for our text measurements.
19663
19664         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19665         This was causing us to allocate a backbuffer for every control,
19666         even when it wasn't flagged as double buffered.  Instead use the
19667         single graphics instance.  This might have implications for
19668         multithreaded applications.  If we run into problems we can switch
19669         to creating 1 Graphics per control, on the static Hwnd bitmap.
19670
19671         this change nets us a 7M savings in private dirty mappings when
19672         running FormsTest.exe.
19673
19674 2006-12-06  Chris Toshok  <toshok@ximian.com>
19675
19676         * ListView.cs: the BackgroundImage override is just to set
19677         attributes.  chain up to base.BackgroundImage.
19678
19679         * RichTextBox.cs: same.
19680
19681         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19682         changes, so instead a handler for BackgroundImageChanged.
19683         
19684         * Control.cs: make background_image private.
19685
19686 2006-12-06  Chris Toshok  <toshok@ximian.com>
19687
19688         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19689         sure we even need this assignment, but roll with it for now.
19690
19691         * Control.cs: make the cursor field private.
19692
19693 2006-12-06  Chris Toshok  <toshok@ximian.com>
19694
19695         * Form.cs: we don't need to explicitly set ImeMode to
19696         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19697         behavior in the face of ImeMode.Inherit.
19698
19699         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19700         change the ctor's assignment to use ImeMode instead of ime_mode.
19701
19702         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19703         ImeModeInherit.  Only check for the parent's imemode (and return
19704         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19705         This fixes the button unit test, which sets both ImeMode and
19706         DefaultImeMode to ImeMode.Disable.
19707
19708         also make the ime_mode field private.
19709
19710 2006-12-06  Chris Toshok  <toshok@ximian.com>
19711
19712         * Control.cs: make control_style private.
19713
19714         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19715         setting the styles to true, then setting them to false instead of
19716         reverting to their previous values.
19717
19718         also, call SetStyle on the scrollbars instead of using
19719         control_style directly.
19720
19721 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19722
19723         * FormCollection.cs: Implement. [2.0]
19724
19725 2006-12-06  Chris Toshok  <toshok@ximian.com>
19726
19727         * Control.cs: make tab_stop private.
19728
19729         * Label.cs: set TabStop, not tab_stop.  reformat some event
19730         add/remove methods to make them more compact.
19731
19732 2006-12-06  Chris Toshok  <toshok@ximian.com>
19733
19734         * RadioButton.cs: fix TabStop handling.
19735
19736 2006-12-06  Chris Toshok  <toshok@ximian.com>
19737
19738         * TextBox.cs: remove the explicit assignments to has_focus.
19739         Control does that.
19740
19741         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19742         manage that.
19743         
19744 2006-12-06  Chris Toshok  <toshok@ximian.com>
19745
19746         * ButtonBase.cs: remove all uses of is_enabled from this code.
19747         it's always true when any of the code containing the checks is
19748         executed.
19749
19750 2006-12-06  Chris Toshok  <toshok@ximian.com>
19751
19752         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19753         with different semantics (some are present in both 1.1 and 2.0
19754         profiles) so that we match MS's behavior in our unit tests.
19755
19756 2006-12-06  Jackson Harper  <jackson@ximian.com>
19757
19758         * TextControl.cs: Make this operation undoable.
19759         * TextBoxBase.cs: Factor the border width into the preferred
19760         height.
19761         - implement Modified as per the spec.
19762
19763 2006-12-06  Chris Toshok  <toshok@ximian.com>
19764
19765         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19766
19767 2006-12-06  Chris Toshok  <toshok@ximian.com>
19768
19769         * Control.cs: make right_to_left and context_menu fields private.
19770
19771 2006-12-06  Chris Toshok  <toshok@ximian.com>
19772
19773         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19774         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19775         Control.child_controls private.  switch all uses over to
19776         Control.Controls.
19777
19778 2006-12-06  Chris Toshok  <toshok@ximian.com>
19779
19780         * System.Windows.Forms/GroupBox.cs,
19781         System.Windows.Forms/AccessibleObject.cs,
19782         System.Windows.Forms/ErrorProvider.cs,
19783         System.Windows.Forms/Control.cs,
19784         System.Windows.Forms/UpDownBase.cs,
19785         System.Windows.Forms/ScrollBar.cs,
19786         System.Windows.Forms/DateTimePicker.cs,
19787         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19788         System.Windows.Forms/ToolTip.cs,
19789         System.Windows.Forms/RadioButton.cs,
19790         System.Windows.Forms/LinkLabel.cs,
19791         System.Windows.Forms/Splitter.cs,
19792         System.Windows.Forms/TextBoxBase.cs,
19793         System.Windows.Forms/ToolStripTextBox.cs,
19794         System.Windows.Forms/ContainerControl.cs,
19795         System.Windows.Forms/ThemeWin32Classic.cs,
19796         System.Windows.Forms/SizeGrip.cs,
19797         System.Windows.Forms/ToolStripDropDown.cs,
19798         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19799         private.  switch all uses over to Control.Parent.
19800
19801 2006-12-06  Chris Toshok  <toshok@ximian.com>
19802
19803         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19804         Control does this before calling emitting these events.
19805
19806         * TabControl.cs: same.
19807
19808         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19809         Control.client_rect.
19810
19811         * ButtonBase.cs: use the ClientSize property instead of the
19812         client_size field.
19813
19814         * ScrollableControl.cs: same.
19815
19816         * Control.cs: another pass at making properties private.  also,
19817         move the initialization of tab_stop to the ctor.
19818
19819 2006-12-05  Andreia Gaita <avidigal@novell.com>
19820
19821         * TabControl.cs: Let the selected index be set freely if the 
19822         control handle is not yet created.
19823
19824 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19825
19826         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19827         internal until I can rewrite DefaultLayout.
19828         * ToolStrip.cs: Fix build error and some general cleaning.
19829         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19830         Fix build errors caused by making some of Control's fields private.
19831
19832 2006-12-05  Jackson Harper  <jackson@ximian.com>
19833
19834         * TextControl.cs: Redo Insert a little so that it use IndexOf
19835         instead of Split, this prevents it from messing up on things like
19836         \n\n\n. Also more effecient since the split array doesn't need to
19837         be created.
19838         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19839         multiline text differently, this is the first of many fixes that
19840         will make multiline/non-multiline the same thing as far as the
19841         TextBoxBase is concerned.
19842         - Don't split the text and insert lines, this can lose some line
19843         endings (like is the last line a soft or hard break). Instead use
19844         the new Insert.
19845         - Fix an off by one when combining all the lines in the Text
19846         getter.
19847         - Remove separate multiline handling from the Text getter/setter.
19848
19849 2006-12-05  Chris Toshok  <toshok@ximian.com>
19850
19851         * ButtonBase.cs: a few changes:
19852
19853         - don't reinitialize internal Control fields in the ctor when they
19854         have the same values as Control sets them.
19855
19856         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19857         this before calling those methods.
19858
19859         - we don't need to call Refresh for anything.  use Invalidate
19860         instead.
19861
19862         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19863         calls Refresh in its OnEnabledChanged.
19864         
19865         - several of the events we were registered for in the ctor to
19866         redraw ourselves already include calls to Invalidate in the
19867         property setters that raise the events.  remove the extra
19868         invalidation.
19869
19870         - reformat a switch statement that was 83274658 columns wide.
19871         
19872 2006-12-05  Mike Kestner  <mkestner@novell.com>
19873
19874         * ComboBox.cs: fix a unit test regression from a TextBox
19875         SelectionLength return of -1 when there's no selection.  
19876
19877 2006-12-05  Chris Toshok  <toshok@ximian.com>
19878
19879         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19880         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19881         cleaning up some of the internal Control fields being used by
19882         subclasses.
19883
19884 2006-12-05  Mike Kestner  <mkestner@novell.com>
19885
19886         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19887         listbox after AddImplicit calls since it defaults to hidden. Add a 
19888         hack to preserve requested heights across DropDownStyle changes.
19889
19890 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19891
19892         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19893
19894 2006-12-05  Chris Toshok  <toshok@ximian.com>
19895
19896         * DataGridView.cs: fix compiler warnings.
19897
19898         * PrintControllerWithStatusDialog.cs: same.
19899
19900         * ToolBar.cs: same.
19901
19902         * FolderBrowserDialog.cs: same.
19903
19904         * Splitter.cs: same.
19905
19906         * DataGridViewComboBoxCell.cs: same.
19907
19908         * XplatUIWin32.cs: same.
19909
19910         * PictureBox.cs: same.
19911
19912         * Win32DnD.cs: same.
19913
19914         * PageSetupDialog.cs: same.
19915
19916         * FileDialog.cs: same.
19917
19918         * PrintDialog.cs: same.
19919
19920         * DataGridTextBoxColumn.cs: same.
19921
19922         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19923
19924 2006-12-05  Chris Toshok  <toshok@ximian.com>
19925
19926         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19927         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19928         System.ComponentModel.EventHandlerList work.
19929
19930 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19931
19932         * DrawTreeNodeEventArgs.cs: Added.
19933
19934 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19935         
19936         * InternalWindowManager.cs: Remove an unused field.
19937         
19938 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19939
19940         * InternalWindowManager.cs:
19941         - Save the point where the title bar is clicked.
19942         
19943         * MdiWindowManager.cs:
19944         - Only allow moving of the window as long as the 
19945         clicked point on the title bar does not get out of
19946         MdiClient's rectangle. Fixes #79982.
19947         
19948         * MdiClient.cs:
19949         - Added Horizontal/VerticalScrollbarVisible.
19950         - Simplified the scrollbar sizing algorithm.
19951         - Cache the difference in scrolled value in
19952         H/VBarValueChanged and move the calculation out
19953         of the for loop.
19954
19955 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19956
19957         * Control.cs: Make the Console.WriteLine in WndProc 
19958         write more info.
19959
19960 2006-12-05  Chris Toshok  <toshok@ximian.com>
19961
19962         * ToolStripManager.cs, ToolStripButton.cs,
19963         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19964         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19965         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19966         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19967         ToolStripProgressBar.cs, ToolStripContainer.cs,
19968         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19969         to using System.ComponentModel.EventHandlerList.
19970
19971 2006-12-04  Chris Toshok  <toshok@ximian.com>
19972
19973         * LinkLabel.cs: fix up compiler warnings.
19974
19975         * TableLayoutSettings.cs: same.
19976
19977         * TreeView.cs: same.
19978
19979         * ToolBar.cs: same.
19980
19981         * TabControl.cs: same.
19982
19983         * RichTextBox.cs: same.
19984
19985         * ListViewItem.cs: same.
19986
19987         * PropertyGrid.cs: same.
19988
19989         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19990
19991         * ToolTip.cs same.
19992
19993         * TextRenderer.cs: fix up compiler warnings.
19994
19995         * Label.cs: same.
19996
19997         * Form.cs: corcompare fixes.
19998
19999         * PictureBox.cs: fix up compiler warnings.
20000
20001         * ImageListStreamer.cs: same.
20002
20003         * TrackBar.cs: corcompare fix.
20004
20005         * Control.cs: fix up compiler warnings.
20006
20007         * SplitterPanel.cs: same.
20008
20009         * NumericTextBox.cs: same.
20010
20011         * ImageList.cs: same.
20012
20013         * StatusStrip.cs: same.
20014
20015         * ProgressBar.cs: corcompare fix.
20016
20017         * ToolStripButton.cs: fix up compiler warnings.
20018
20019         * ToolStripStatusLabel.cs: same.
20020
20021         * ToolStripSplitButton.cs: same.
20022
20023         * ToolStripSeparator.cs: same.
20024
20025         * ToolStripProgressBar.cs: same.
20026
20027         * ToolStripDropDownMenu.cs: same
20028
20029         * ToolStripDropDown.cs: same.
20030
20031         * ToolStripDropDownButton.cs: same.
20032
20033         * ToolStrip.cs: same.
20034
20035         * ToolStripControlHost.cs: same.
20036
20037         * ToolStripContentPanel.cs: same.
20038
20039         * ToolStripDropDown.cs: same.
20040
20041         * ToolStripContainer.cs: same.
20042
20043         * ToolStripPanel.cs: same, and add "new" where we need it to work
20044         with the new ArrangedElementCollection.
20045
20046         * ToolStripItemCollection.cs: add "new" where we need it to work
20047         with the new ArrangedElementCollection.
20048
20049 2006-12-04  Andreia Gaita <avidigal@novell.com>
20050
20051         * TabControl.cs: Fix default tab selection to after TabControl
20052         gets focus and not before. Fixes #80128
20053
20054 2006-12-04  Chris Toshok  <toshok@ximian.com>
20055
20056         * DataGridTableStyle.cs: remove the gross calling of
20057         datagrid.Refresh from here.  It's a broken idea and it doesn't
20058         work anyway.
20059
20060         * DataGrid.cs: instead, just register/unregister from the
20061         DataGridTableStyle events in CurrentTableStyle.  we play it
20062         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
20063         even though some would most likely not require it.  Fixes bug
20064         #80115 (and one portion of #80117 as a side effect).
20065
20066 2006-12-04  Chris Toshok  <toshok@ximian.com>
20067
20068         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
20069         so the textbox (if any) goes away.  Fixes bug #80117.
20070
20071 2006-12-04  Chris Toshok  <toshok@ximian.com>
20072
20073         * DataGridColumnStyle.cs: set the column's readonly property
20074         initially based on the property descriptor's IsReadOnly.  Fixes
20075         bug #80044.
20076
20077 2006-12-04  Chris Toshok  <toshok@ximian.com>
20078
20079         * ComboBox.cs: wrap the dropdown style changing work in
20080         SuspendLayout/ResumeLayout.  Fixes bug #79968.
20081
20082 2006-12-04  Jackson Harper  <jackson@ximian.com>
20083
20084         * TextBoxBase.cs: Fix off by one, since these are one-based.
20085         * TextBox.cs: Select all the text when we get focus.  The TextBox
20086         does this but the RTB does not.
20087
20088 2006-12-04  Chris Toshok  <toshok@ximian.com>
20089
20090         * DataGridTextBoxColumn.cs: remove some spew.
20091
20092         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
20093         but some part of me is saying "it shouldn't be here.."  At any
20094         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
20095         setting the value.
20096
20097 2006-12-04  Chris Toshok  <toshok@ximian.com>
20098
20099         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20100         to reassign the propertydescriptor.
20101
20102 2006-12-04  Jackson Harper  <jackson@ximian.com>
20103
20104         * TextBoxBase.cs:
20105         * TextControl.cs: Remove some unused variables.  Maybe this will
20106         patch things up between mike and I.
20107         - don't split lines less then one char wide, if the viewport is
20108         that small text won't be visible anyways.
20109         
20110 2006-12-04  Jackson Harper  <jackson@ximian.com>
20111
20112         * TextBoxBase.cs: Default selection length is -1, need to do some
20113         more testing on windows to see when this is used for the property.
20114         - Redid the Lines [] property to that we properly remove soft line
20115         breaks
20116         - added support for preserving carriage returns
20117         -  CanUndo is not a variable like 'is undo enabled' it just returns
20118         true if there is undo operations available.
20119         - AppendText doesn't need to grab the last tag itself anymore,
20120         this happens automatically when we move the cursor.
20121         * TextControl.cs: Add CompoundActions to the undo class. This
20122         allows combining the other operations into one big option.  ie a
20123         paste will combine { delete old, insert new, move cursor }
20124         - Add InsertString undo operation
20125         - New method for deleting multiline text
20126         - Add carriage returns to lines. So we can preserve carriage
20127         returns when text is 'roundtripped'
20128
20129 2006-12-04  Chris Toshok  <toshok@ximian.com>
20130
20131         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20132         minimum 0.  Fixes the scrollbar exception in bug #80136.
20133
20134 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20135
20136         * MdiClient.cs: 
20137         * MdiWindowManager: Removed unused fields and methods.
20138         
20139 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20140         
20141         * StatusBar.cs: Update all panels when a AutoSize=Contents
20142         panel needs updating.
20143         
20144         * StatusBarPanel.cs: Remove twidth and only use initialize.
20145         Fixes #80031.
20146                 
20147 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20148
20149         * Form.cs: When a form's MdiParent is set add it directly
20150         on top of the z-order in stead of relying on MdiClient's
20151         ActivateChild to do it. Fixes #80135.
20152         
20153         * MdiClient.cs: 
20154         - Remove original_order, mdi_child_list is already doing
20155         the same thing.
20156         - Create mdi_child_list on construction in
20157         stead of first use (avoids a few null checks).
20158
20159         * MenuItem.cs: Use an already existing list of mdi children
20160         to get the correct order of children and remove the other
20161         redundant list.
20162
20163 2006-12-04  Chris Toshok  <toshok@ximian.com>
20164
20165         * PropertyGridView.cs: cached_splitter_location is only used in
20166         !DOUBLEBUFFER code.
20167
20168         * PropertyGrid.cs: implement the ComComponentNameChanged event
20169         using Events, hoping that would fix the warning.  Looks like a
20170         compiler bug instead (#80144).
20171
20172         * PropertyManager.cs: remove unused method.
20173
20174 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20175
20176         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20177         include parentesis to fix expression evaluation. Fixes #79634.
20178
20179 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20180         
20181         * MenuAPI.cs:
20182         - Changes to fix behavior in Menu control, some reported in #80097
20183         and other detected during behavior refactory like a select event
20184         problems.
20185         - Remove unneded "if's" conditions.
20186         - Created an internal to flag when popup is active in control, we need 
20187         it because in .NET you can have menu active but without popup active
20188         when you active menu using popup without visible items.
20189         - Mimic win32 behavior for Select and Popup events.  
20190         - Dont open popup menu when you dont have visible subitems.
20191         - Do nothing when click on disabled menu item.
20192         - Some small changes to follow the coding style guidelines.
20193         - Unselect menu only when another control gives focus. Fixes #80097.
20194         - Remove unused code.
20195         
20196         * MenuItem.cs: internal VisibleItems method to check if menu
20197         theres visible subitems, it will be usefull to fix some 
20198         behavior in Menu control.
20199         
20200 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20201         
20202         * Timer.cs: Tag property for 2.0 profile.
20203         
20204 2006-12-01  Chris Toshok  <toshok@ximian.com>
20205
20206         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20207         
20208         * Win32DnD.cs: comment out some unused fields.
20209
20210         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20211         some unused properties/methods.
20212
20213         * XplatUIX11.cs: fix MousePosition so we override the base class's
20214         property instead of conflicting with it.
20215
20216         * PictureBox.cs: comment out some unused fields
20217
20218         * OSXStructs.cs: make some struct fields public.
20219
20220         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20221         MousePosition so we override the base class's property instead of
20222         conflicting with it.
20223
20224         * X11Dnd.cs: comment out some unused fields
20225
20226         * X11DesktopColors.cs: fix some struct field visibility to quiet
20227         the compiler.
20228
20229         * X11Dnd.cs: remove some debug code.
20230
20231         * ThemeClearlooks.cs: comment out unused field.
20232
20233         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20234
20235         * ThemeGtk.cs: comment out some unused pinvokes.
20236
20237         * Timer.cs: remove some unused fields.
20238
20239         * ThemeClearlooks.cs: comment out unused field.
20240
20241         * UpDownBase.cs: comment out unused field.
20242
20243         * DataObject.cs: comment out unused field.
20244
20245         * DataGridBoolColumn.cs: reomve unused field.
20246
20247         * DataGrid.cs: remove unused field.
20248
20249         * Cursor.cs: remove old ToBitmap code.
20250
20251         * ControlPaint.cs: remove unused method.
20252
20253         * ScrollBar.cs: remove unused fields.
20254
20255         * ComboBox.cs: remove unused field, and chain up to
20256         AccessibleObject ctor.
20257
20258         * ListBox.cs: remove unused field.
20259
20260         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20261
20262         * GridEntry.cs: remove unused fields.
20263
20264         * Binding.cs: remove unused fields.
20265
20266         * AxHost.cs: remove unused method.
20267
20268         * ContainerControl.cs: remove unused field.
20269
20270         * ScrollableControl.cs: remove unused fields.
20271
20272 2006-12-01  Chris Toshok  <toshok@ximian.com>
20273
20274         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20275         the Where/WhereString stuff.  it's easy enough to CWL
20276         Environment.StackTrace.
20277
20278         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20279         unused private fields.
20280
20281 2006-12-01  Jackson Harper  <jackson@ximian.com>
20282
20283         * TextControl.cs: Do not update the view while inserting multiline
20284         text. If we update the view we might wrap lines, before entering
20285         the new lines, which causes the new line insertion calculations to
20286         be totally fubared.
20287         - Remove an old TODO
20288         - Make debug output a little nicer
20289         
20290 2006-12-01  Chris Toshok  <toshok@ximian.com>
20291
20292         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20293
20294 2006-12-01  Chris Toshok  <toshok@ximian.com>
20295
20296         [ fix the majority of the CS0108 warnings we've been suppressing ]
20297         
20298         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20299
20300         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20301         to "LayoutToolBar" to quiet mcs.
20302         
20303         * TabControl.cs: mark our ControlCollection class as 'new'.
20304
20305         * TextBoxBase.cs: mark some events as 'new'.
20306
20307         * Splitter.cs: TabStop is 'new'.
20308
20309         * ControlBindingsCollection.cs: mark a few methods as new since
20310         they change the visibility from protected to public.
20311
20312         * RadioButton.cs: DoubleClick -> base class, and remove unused
20313         HaveDoubleClick.
20314
20315         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20316         events as new.
20317
20318         * NumericUpDown.cs: TextChanged -> base class.
20319
20320         * CheckedListBox.cs: mark our ObjectCollection class as new to
20321         quiet mcs.
20322
20323         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20324         muck with the base class.
20325
20326         * StatusBar.cs: fix some mcs warnings about Update being the same
20327         name as a base class method.
20328
20329         * RichTextBox.cs: mark some events as new, and make them do things
20330         to the base class impl.
20331
20332         * UserControl.cs: mark TextChanged as new, and have it manipulate
20333         base.TextChanged.
20334
20335         * UpDownBase.cs: mark some things new.
20336
20337         * CheckBox.cs: mark DoubleClick "new", and add some text about
20338         what we need to look at.
20339
20340         * Panel.cs: make the events "new", and manipulate the base
20341         version.  these are just here for attributes.
20342
20343         * AccessibleObject.cs: make owner private.
20344
20345         * Control.cs: deal with AccessibleObject.owner being private.
20346         cache our own copy if we need it.
20347
20348         * Button.cs: add "new" to the DoubleClickEvent.
20349
20350         * ListBox.cs: no need to track our own has_focus here.  let
20351         Control.has_focus do it for us.  Also some other work to clear up
20352         warnings about not overriding base class methods of the same name.
20353         
20354         * ComboBox.cs: clear up some warnings about not override base
20355         class methods of the same name.
20356
20357 2006-12-01  Chris Toshok  <toshok@ximian.com>
20358
20359         * Form.cs: flag a few things as "new" to quiet some of the mcs
20360         warnings.
20361
20362         * AxHost.cs: same.
20363
20364         * PrintPreviewDialog.cs: same.
20365
20366         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20367         now DGV isn't so horrible on the class status page.  also, move
20368         all events to using System.ComponentModel.EventHandlerList.  my
20369         wrists hurt.
20370
20371 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20372
20373         * MdiWindowManager.cs:
20374         - Set form to active mdi child if shown,
20375         and update the active mdi child to the next 
20376         remaining child in the z-order if the form is hidden.
20377
20378         * Form.cs: 
20379         - Track if the form has been visible and if its 
20380         visibility is beeing changed, so that the MdiClient
20381         can properly decide the ActiveMdiChild. The MdiClient 
20382         cannot track this since the form can change visibility 
20383         before MdiClient is created.
20384
20385         * MdiClient.cs:
20386         - Don't activate anything of the parent form is changing
20387         its visibility.
20388         - Rework ActiveMdiChild to only return visible mdi 
20389         children and take into account several other corner 
20390         cases.
20391
20392 2006-12-01  Chris Toshok  <toshok@ximian.com>
20393
20394         * IBindableComponent.cs: new 2.0 interface.
20395
20396 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20397
20398         * DataGrid.cs: Font for caption area is bold by default.
20399
20400 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20401
20402         * Menu.cs: Tag property for 2.0.
20403         
20404 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20405
20406         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20407         
20408 2006-12-01  Chris Toshok  <toshok@ximian.com>
20409
20410         * TreeView.cs: doh, the Begin* events should be
20411         TreeViewCancelEventHandler.
20412
20413 2006-12-01  Chris Toshok  <toshok@ximian.com>
20414
20415         * Form.cs: Form.ControlCollection already stores off the
20416         form_owner field.  don't access the base class's internal "owner"
20417         field.
20418
20419         * Control.cs: make all the fields in Control.ControlCollection
20420         private.  there's no need for any internal fields here.
20421
20422 2006-12-01  Chris Toshok  <toshok@ximian.com>
20423
20424         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20425         OnHandleCreated.  Fixes bug #80109.
20426
20427 2006-12-01  Chris Toshok  <toshok@ximian.com>
20428
20429         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20430         SplitContainer.cs, Control.cs, StatusStrip.cs,
20431         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20432         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20433         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20434         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20435         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20436         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20437         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20438         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20439         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20440         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20441
20442         do most of the work to convert our code over to use
20443         System.ComponentModel.Component.Events for
20444         adding/removing/dispatching events.
20445
20446
20447 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20448
20449         * DataGridView.cs: Fix an ArgumentNullException reported 
20450         twice today in IRC.
20451
20452 2006-11-30  Mike Kestner  <mkestner@novell.com>
20453
20454         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20455         grabbed listbox.  Fixes #80036 and #80101.
20456
20457 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20458
20459         * Message.cs: Changed ToString() to match MS.
20460         
20461 2006-11-30  Jackson Harper  <jackson@ximian.com>
20462
20463         * TextBoxBase.cs: You can still change the selected text on a read
20464         only textbox.
20465         * TextControl.cs: Lower magic number for wrap calculations. This
20466         lets text get closer to the right (far) edge.
20467
20468 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20469
20470         * Control.cs: Tweak 2.0 layout properties.
20471         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20472         * TextRenderer.cs: Add a new overload.
20473         * ToolStrip*: Huge amount of changes and new features.
20474
20475 2006-11-30  Mike Kestner  <mkestner@novell.com>
20476
20477         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20478         scroll range correct.  Fixes #79994.
20479
20480 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20481
20482         * MdiWindowManager.cs: Update main form's text when
20483         a form is closed. (fixes #80038)
20484         
20485 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20486
20487         * ToolBar.cs:
20488         - Fix an regression in ButtonSize.
20489         - Get ImeMode default value change to "Disable".
20490         - Get ShowTooltips default value change to true, default value is 
20491         "false" but after make a test in .NET we get "true" result as default.
20492         
20493 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20494
20495         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20496
20497 2006-11-29  Chris Toshok  <toshok@ximian.com>
20498
20499         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20500         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20501         SetWindowTransparency hasn't been called.
20502
20503 2006-11-29  Chris Toshok  <toshok@ximian.com>
20504
20505         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20506         if it's supported.
20507         (set_AllowTransparency): reorder things a little so that the
20508         WS_EX_LAYERED style is removed properly.
20509
20510 2006-11-29  Chris Toshok  <toshok@ximian.com>
20511
20512         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20513         
20514         * Form.cs: only call the XplatUI transparency method (get/set) if
20515         SupportsTransparency says it's supported. Otherwise fallback to
20516         doing nothing (in the set case) or returning the instance field we
20517         cache (in the get case).
20518
20519         * XplatUIStructs.cs: add TransparencySupport flag enum.
20520         
20521         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20522         change to SupportsTransparency.
20523
20524         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20525         TransparencySupport.None from SupportsTransparency.
20526
20527         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20528         TransparencySupport.Set from SupportsTransparency.
20529
20530         * XplatUIWin32.cs: implement GetWindowTransparency calling
20531         GetLayeredWindowAttributes, and implement SupportsTransparency by
20532         checking whether or not both
20533         GetWindowTransparency/SetWindowTransparency are available
20534         entrypoints.  We need to do this since SetWindowTransparency is
20535         available as of win2k, but GetWindowTransparency requires winxp.
20536         yay win32 api.
20537
20538         * XplatUI.cs: Add GetWindowTransparency, and change
20539         SupportsTransparency to allow for either/both Get/Set.
20540
20541 2006-11-29  Chris Toshok  <toshok@ximian.com>
20542
20543         * DataGrid.cs: keep from going into an infinite loop redrawing a
20544         datagrid that has no datasource.  Fixes bug #80033.
20545
20546 2006-11-29  Chris Toshok  <toshok@ximian.com>
20547
20548         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20549         Invalidate) before the mainmenu has been assigned to a control.
20550
20551 2006-11-29  Chris Toshok  <toshok@ximian.com>
20552
20553         * DataGrid.cs: detect when we should be double the double click
20554         row/column autosize stuff, although that codepath has yet to be
20555         written.  part of the work for bug #79891.
20556
20557 2006-11-29  Chris Toshok  <toshok@ximian.com>
20558
20559         * Binding.cs (SetControl): fix unit test.
20560
20561 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20562
20563         * PageSetupDialog.cs: Validate the margins and set them in
20564         PageSettings. 
20565         * NumericTextBox.cs: New class to mimic the behavior of the
20566         textboxes used in the printing dialogs.
20567
20568 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20569         
20570         * Form.cs: Revert previous change (remove call UpdateBounds
20571         from form constructor), because it messes with the handle creation
20572         order, and that one needs lots and lots of love.
20573         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20574         for valid printer and throw InvalidPrinterException if document
20575         is set but printer not valid), adding a MonoTODO. Once 
20576         handle creation is done properly, we can put this back in.
20577
20578 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20579
20580         * MenuItem.cs: Create a invalidate method for menu item, to be
20581         calling from set text, it make text changes to imadiate update
20582         on screen. Fixes #80013. 
20583         
20584 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20585
20586         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20587         fixes bug #80070 and some other problem on toolbar buttons
20588         layout.
20589
20590 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20591
20592         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20593         with dotted brush.      Fixes #79564
20594         
20595 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20596
20597         * Form.cs: Removed call to UpdateBounds on Form
20598         constructor, it was causing a call to CreateHandle
20599         before it was supposed to.
20600         * PrintControllerWithStatusDialog: Applied patch
20601         by Chris Toshok to hide controller when there are
20602         no printers available.
20603         PrintDialog.cs: initialize printer settings to 
20604         null - correct DefaultValues test #5
20605         * PrintPreviewControl.cs: Move PrintController
20606         initialization to GeneratePreview
20607         * PrintPreviewDialog.cs: 
20608         - Remove Preview generation     from Document_set(). It is 
20609         called on OnPaint
20610         - Throw InvalidPrinterException on CreateHandle if
20611         a Document is set but there are no printers or 
20612         printer is not valid.
20613         * ThemeWin32Classic: don't paint PrintPreviewControl
20614         if there is nothing to paint    
20615
20616 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20617
20618         * Form.cs: Add another popular method.
20619
20620         * TabPage.cs: ditto.
20621
20622 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20623
20624         * MenuItem.cs: Fixed a warning.
20625         * InternalWindowManager: Fixed a warning.
20626
20627 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20628
20629         * MenuItem.cs:
20630         - When cloning a menu also clone MdiList and clone the 
20631           window menu items properly (as the forms and menuitems
20632           are kept in an internal hashtable, these need updating 
20633           as well)
20634         - Rewrote the window menu code, menu items are added in the
20635           order the forms were added to their parent, and they are
20636           updated every time the window menu is shown (before the
20637           list was only generated once, in the current order of the
20638           forms, and would never be updated). A checkmark is shown
20639           next to the item corresponding to the active mdi child.
20640
20641 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20642
20643         * XplatUIStructs.cs: 
20644         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20645         
20646         * XplatUIWin32.cs: 
20647         - Added TME_NONCLIENT to TMEFlags.
20648         - Handles WM_NCMOUSEMOVE in GetMessage to 
20649           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20650
20651         * MdiWindowManager:
20652         - Now merges mdi child menu to parent menu when maximized.
20653         - Recalculate NC areas of both mdi child and mdi parent. 
20654           Fixes #79757 (4).
20655           on window state and size changes.Fixes #79844 (3).
20656         - Handle WM_NCCALCSIZE to properly calculate borders.
20657
20658         * Form.cs:
20659         - Add/remove to the mdi containers list of mdi children 
20660           in the order they are added.
20661         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20662           to the maximized mdi child.
20663         
20664         * InternalWindowManager.cs:
20665         - Only execute a click on the control buttons on the mouse up,
20666           not on the mouse down. Show the state of the button 
20667           (was only showing Normal state, never Pressed state). The
20668           pressed button now follows the mouse (if you click the Close 
20669           button and move the mouse over the Maximize button, the 
20670           Maximize button will be shown as pressed). Since Win32 does
20671           not generate WM_NCLBUTTONUP if you release the button outside
20672           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20673           it as a mouse up.
20674         
20675         * ThemeWin32Classic.cs:
20676         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20677
20678         * MdiClient.cs:
20679         - Added a list of forms which contains the order the forms are
20680           added to the mdi parent.
20681         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20682         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20683         - If the active form changes set the scrollbars to the top
20684           of the Z order, otherwise the form could hide them.
20685         - Scrollbars are now sized according to ClientSize, not 
20686           to Size, and they take into account the other scrollbar
20687           to determine maximum.
20688         
20689 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20690         
20691         * XplatUI.cs:
20692         * XplatUIDriver.cs:
20693         * XplatUIX11.cs:
20694         * XplatUIWin32.cs:
20695         * XplatUIOSX.cs:
20696         - Added RequestAdditionalWM_NCMessages for windows to 
20697           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20698           Currently only implemented in XplatUIWin32.
20699
20700 2006-11-27  Chris Toshok  <toshok@ximian.com>
20701
20702         * Hwnd.cs: only add the hwnd to the windows hash in
20703         set_WholeWindow and set_ClientWindow if whole_window/client_window
20704         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20705
20706 2006-11-27  Mike Kestner  <mkestner@novell.com>
20707
20708         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20709         from the ComboListBox.ShowWindow code. Fixes #79969.
20710
20711 2006-11-27  Chris Toshok  <toshok@ximian.com>
20712
20713         * Hwnd.cs: remove the setters for ExposePending and
20714         NCExposePending - noone uses them.
20715
20716 2006-11-27  Jackson Harper  <jackson@ximian.com>
20717
20718         * TextControl.cs: new param for ReplaceSelection which determines
20719         whether we select the new selection, or set the cursor to the end
20720         of the new selection.
20721         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20722         pasting, select the new text.
20723         * RichTextBox.cs: Use new param for ReplaceSelection.
20724
20725 2006-11-27  Jackson Harper  <jackson@ximian.com>
20726
20727         * TextBoxBase.cs: Set the selection to the caret after the caret
20728         is moved, otherwise they get out of sync.
20729
20730 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20731
20732         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20733         it fixes #80015
20734
20735 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20736
20737         * ThemeWin32Classic.cs: 
20738         - Fix toolbar drop down arrow position.
20739         - Fix drop down appearance when ToolBar.Appearance is normal,
20740         it fixes #80018.
20741         
20742 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20743
20744         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20745         * Control.cs: Same.
20746         * UpDownBase.cs: Same.
20747         * ButtonBase.cs: Same.
20748         * ScrollBar.cs: Same.
20749         * TrackBar.cs: Same.
20750         * PictureBox.cs: Same.
20751         * UserControl.cs: Same.
20752         * Label.cs: Same.
20753         * ListControl.cs: Same.
20754         * TextBoxBase.cs: Same.
20755         * ListView.cs: Same.
20756         * RichTextBox.cs: Same.
20757         * TreeView.cs: Same.
20758
20759 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20760
20761         * PrintDialog.cs:
20762         - Text label for where 
20763         - Text label comment was not shown
20764
20765 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20766
20767         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20768
20769 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20770
20771         * InternalWindowManager.cs: 
20772         - Handle WM_PARENTNOTIFY to activate the form
20773         if any child control is clicked.
20774         - The form is only sizable if not minimized.
20775
20776         * MdiWindowManager.cs:
20777         - Save the IconicBounds if the form is moved.
20778         - Rework SetWindowState, now the window bounds 
20779         are stored only if the old window state is Normal.
20780         
20781         * MdiClient.cs:
20782         - In SetWindowStates store the old window state if 
20783         the window is maximized and restore window state if
20784         the window looses focus.
20785         - Don't handle any scrollbar value changes if 
20786         initializing the scroll bars. Fixes #79771.
20787         - Reworked ArrangeIconicWindows. Current algorithm
20788         tests bounds agains all other minimized windows, if
20789         any intersections create new bounds (going left to 
20790         right, bottom to top) and then test again. When 
20791         successful the bounds are saved and never computed
20792         again. Fixes #79774.
20793
20794 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20795
20796         * InternalWindowManager.cs: Added HandleTitleBarUp.
20797
20798 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20799
20800         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20801         hexadecimal in ParseUserEdit.
20802
20803         
20804 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20805
20806         * MdiWindowManager.cs: 
20807         - Handle a click on the form's icon to show the 
20808         system menu (when maximized). Fixes #79775.
20809         - Change the existing click handler for the form's
20810         icon when not maximized to show on MouseUp.
20811         Fixes #79776.
20812
20813         * Form.cs: In OnResize only layout the mdi child's
20814         parent if it actually has a parent. Might not if
20815         the window is closing.
20816
20817
20818 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20819
20820         * MdiClient.cs: Ignore active MDI client for text of parent, if
20821         child has no text set.
20822
20823 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20824
20825         * ToolBar.cs: Fixed ToString to match MS.
20826
20827 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20828
20829         * NumericUpDown: 
20830         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20831         update inner values on set. Fixes #79966.
20832         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20833         - Fix hexadecimal parsing.
20834         
20835         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20836         parent. Fixes #79957
20837
20838 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20839
20840         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20841         the actual size has to be queried, since if height /
20842         width is negative Win32 changes it to 0. 
20843         Fixes #79999 on Windows.
20844         
20845         * XplatUIX11.cs: Set height / width to 0 if negative
20846         in SetWindowPos. Fixes #79999 on Linux.
20847         
20848 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20849
20850         * ThemeWin32Classic.cs: Fix text redenring when button is
20851         pressed.
20852
20853 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20854
20855         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20856         and later navigate by mouse. Fixes #79528.
20857
20858 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20859
20860         * ToolBar.cs: Set default value for TabStop to false in
20861         constructor, it fixes remaining behavior of bug #79863.
20862
20863 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20864
20865         * MdiWindowManager.cs:
20866         * InternalWindowManager.cs:
20867         - Moved a few methods specific to Mdi from 
20868         InternalWindowManager to MdiWindowManager.
20869         Fixes #79996.
20870         
20871 2006-11-21  Chris Toshok  <toshok@ximian.com>
20872
20873         * XplatUIOSX.cs: stub out InvalidateNC.
20874
20875         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20876         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20877
20878         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20879
20880         * XplatUIDriver.cs: add InvalidateNC abstract method.
20881
20882         * XplatUI.cs: add InvalidateNC.
20883
20884 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20885
20886         * ToolBar.cs: Invalidate complete button area when pressed status 
20887         was changed.
20888         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20889         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20890         by 1 when button is pressed.
20891
20892 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20893
20894         * ToolButton.cs: Invalidate middle of DropDown button when
20895         ToolBar theres DropDownArrows.
20896         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20897         fix DropDown drawing operations.
20898
20899 2006-11-20  Chris Toshok  <toshok@ximian.com>
20900
20901         * NativeWindow.cs: fix the formatting of functions ('{' on the
20902         following line), and enable the thread exception dialog.
20903
20904         * Application.cs: remove the duplicate exception catching from
20905         here.
20906
20907 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20908
20909         * Toolbar.cs: Triggers button click event when click on icon
20910         of dropdown ToolBarButton. Fixes #79912.
20911         
20912 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20913
20914         * Theme.cs:
20915         * ThemeWin32Classic.cs:
20916         - Added a property WindowBorderFont to enable themeing
20917           of mdi child windows' Text.
20918           
20919 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20920
20921         * InternalWindowManager.cs:
20922         * Form.cs:
20923         * MdiClient.cs:
20924         * MdiWindowManager.cs: 
20925         - If mdi child is maximized, set mdi parent's
20926           text to "Parent - [Child]". Fixes #79770.
20927         - If there is any maximized mdi child windows, only the active 
20928           window (and any new windows) is maximized, the rest are normal.
20929         - On a WindowState change only save mdi child's window bounds 
20930           if the old window state was normal. Fixes #79774.
20931         - The scroll bars are now calculated on hopefully all
20932           necessary events. Fixed #79771 / #79844->6 / #79906.
20933         - MdiClient.SizeScrollBars() now takes into account docked 
20934           controls in the parent when calculating available space.
20935         - InternalWindowManager now always repaints the entire title
20936           area. Fixes #79844->1/4/5.
20937         - Added RequestNCRecalc on mdi child windowstate changes.
20938           Fixes #79772.
20939
20940 2006-11-20  Mike Kestner  <mkestner@novell.com>
20941
20942         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20943         in the MouseUp handler of the listbox and move the return handling
20944         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20945
20946 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20947
20948         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20949
20950 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20951
20952         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20953           working in 1.2.x anymore. So, updated.
20954
20955 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20956
20957         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20958         NumberGroupSeparator of current culture instead of assuming en-US.
20959         Fixed bug #79967.
20960
20961 2006-11-17  Mike Kestner  <mkestner@novell.com>
20962
20963         * Control.cs: Add the concept of implicit bounds setting so that
20964         dock/undock round trips preserve explicitly set size/locations.
20965         Fixes #79313.
20966
20967 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20968
20969         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20970           can't handle those filters. (Fixes bug #79961)
20971
20972 2006-11-17  Chris Toshok  <toshok@ximian.com>
20973
20974         [ fixes the exit/crashes associated with #79835.  it's clearly
20975         suboptimal though, we need to figure out a better way to solve
20976         this. ]
20977         
20978         * PrintPreviewControl.cs: deal with the new invalid printer
20979         exceptions.
20980
20981         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20982         and return false (so CommonDialog.ShowDialog doesn't actually show
20983         the form.)
20984
20985         * PrintDialog.cs: enable/disable the Ok button depending on
20986         whether or not the printer is valid.
20987
20988         * CommonDialog.cs (ShowDialog): only actually show the form if
20989         RunDialog returns true.
20990
20991 2006-11-17  Jackson Harper  <jackson@ximian.com>
20992
20993         * TextControl.cs: When soft splitting a line, mark it as a soft
20994         split line. Also carry over the current line break to the next
20995         line.
20996
20997 2006-11-17  Chris Toshok  <toshok@ximian.com>
20998
20999         * XplatUIX11.cs: when scrolling a window with an invalid area, we
21000         only want to shift the part of the invalid area that overlaps the
21001         area we're scrolling.  we also don't want to clear the invalid
21002         area unless the invalid area was entirely contained within the
21003         scrolling area.
21004
21005 2006-11-16  Chris Toshok  <toshok@ximian.com>
21006
21007         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
21008         also make sure to free the memory returned by XGetWindowProperty
21009         in GetText().
21010
21011         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
21012
21013 2006-11-16  Chris Toshok  <toshok@ximian.com>
21014
21015         * XplatUI.cs: add a new super secret way to get at the totally
21016         unsupported X11 backend.
21017
21018 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
21019
21020         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
21021
21022 2006-11-16  Jackson Harper  <jackson@ximian.com>
21023
21024         * TreeView.cs: Allow more explicit setting of top node position
21025         for scrollbars. Slower algo, but more accurate.
21026         - CollapseAll should maintain the current top node.
21027         * TextBoxBase.cs: When positioning the caret, use the line, pos
21028         method, since the x, y method does not grab the correct tag, and
21029         the caret height never gets set correctly. (Maybe I should just do
21030         away with the caret having its own height, and always use the
21031         carets current tag for height).
21032
21033 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
21034
21035         [Fixes 79778, 79923]
21036
21037         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
21038         Parent to the FosterParent instead.
21039
21040 2006-11-16  Jackson Harper  <jackson@ximian.com>
21041
21042         * TreeView.cs: Need to recalc the topnode when we expand or
21043         collapse. The scrolling methods can't handle this on their own,
21044         since they use differences between the last scroll position, and
21045         those difference get completely messed up since we are expanding
21046         nodes.  This problem should probably be fixed in the scrolling
21047         methods, so they can figure out exactly where they are, but this
21048         will slow things down a little.
21049         * ThemeWin32Classic.cs: Special case for groupboxes with empty
21050         strings, makes nunit-gui look a lot nicer.
21051
21052 2006-11-16  Chris Toshok  <toshok@ximian.com>
21053
21054         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
21055         the broken multithreaded event handling we have in here.  File
21056         this entry under "Why we should move to the new X11 backend".
21057
21058         Any thread can make it into UpdateMessageQueue, which gets events
21059         from the X socket - some of which could belong to hwnds being
21060         managed by a different thread.  We can also have multiple threads
21061         in UpdateMessageQueue at the same time, with each one reading from
21062         the X socket.  This leads to many problems, with the following
21063         solutions:
21064
21065         We can't use hwnd.Queue.Enqueue anywhere in here and must use
21066         EnqueueLocked.
21067
21068         The MotionNotify compression we do can't work across threads
21069         (without locking the entire queue, perhaps) since we call
21070         hwnd.Queue.Peek, so we just punt and don't compress motion events
21071         unless the owning thread is the one which got the X event.
21072
21073         ConfigureNotify is another fun one, since it modifies the hwnd's
21074         bounds and then enqueues the event.  We add a lock to Hwnd which
21075         is held when setting configure_pending to true (and enqueuing the
21076         event).
21077
21078         There is a race wrt the wake socket.  we need to make sure that
21079         only 1 thread is waiting on that socket, or else a thread could
21080         sleep waiting for data that never comes.  It's difficult (but not
21081         impossible) to make happen, because it seems to require something
21082         like the following:
21083
21084             1. Thread 1 polls on wake_receive
21085         
21086             2. poll returns saying there's data to be read on
21087                wake_receive.
21088         
21089             3. Thread 2 polls on wake_receive and immediately returns
21090                saying there's data to be read.
21091
21092             4. Thread 2 reads the wakeup byte from wake_receive
21093
21094             5. Thread 1 attempts to read the wakeup byte from
21095                wake_receive.
21096
21097             6. Thread 2 exits (due to a form closing, perhaps).
21098
21099             7. Thread 1 blocks forever.
21100         
21101         Fun, eh?
21102
21103         Fixing the Expose handling isn't done yet, and the races inherent
21104         in that piece of code are responsible for the drawing mistakes you
21105         see when generating expose events in a MT app (like NPlot).  This
21106         one is the likely to be the hardest to bandaid, and it doesn't
21107         appear to cause anything but drawing problems.  The other issues
21108         caused apps to exit or hang.
21109
21110         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21111         called from a different thread than the one that should be calling
21112         these functions.
21113
21114         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21115
21116 2006-11-15  Chris Toshok  <toshok@ximian.com>
21117
21118         * Application.cs: null out the context's MainForm when we exit
21119         RunLoop.  Fixes a newly checked in unit test as well as the last
21120         ODE from bug #79933.
21121
21122 2006-11-15  Chris Toshok  <toshok@ximian.com>
21123
21124         * Form.cs (set_Owner): allow a null value so we can clear the
21125         form's owner.
21126         (Dispose): set all our owned_form's Owner properties to null, and
21127         clear the owned_forms collection.
21128         (WM_CLOSE): clean up this a little bit.. still not right though.
21129
21130         * ApplicationContext.cs: OnMainFormClosed should only call
21131         ExitThreadCore if the main form isn't recreating.  Fixes unit
21132         test.
21133
21134 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21135
21136         [Fixes 78346]
21137
21138         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21139
21140 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21141
21142         [Fixes 79433]
21143
21144         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21145         keep popup window types from stealing focus from the main form
21146         on Windows.
21147
21148         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21149
21150         * MenuAPI.cs: Set above flag to true.
21151
21152 2006-11-15  Chris Toshok  <toshok@ximian.com>
21153
21154         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21155         the button being released is not in wParam.
21156
21157 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21158
21159         * Form.cs: Add the released button to MouseEventArgs.Button
21160         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21161         on Win32.
21162
21163 2006-11-15  Chris Toshok  <toshok@ximian.com>
21164
21165         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21166         GetText().  untested because it's unused in our implementation.
21167         Control.Text always caches the text, even if
21168         ControlStyles.CacheText is not set.
21169
21170         fixes bug #79939.
21171
21172 2006-11-15  Chris Toshok  <toshok@ximian.com>
21173
21174         [ fixes #79933 ]
21175         
21176         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21177         message.  no hiding, no disposing.
21178
21179         in the WM_CLOSE handler, hide the form if it's modal.
21180
21181 2006-11-15  Chris Toshok  <toshok@ximian.com>
21182
21183         * XplatUIX11.cs: use AddExpose instead of sending a message.
21184         fixes textbox border drawing.
21185
21186 2006-11-15  Chris Toshok  <toshok@ximian.com>
21187
21188         * PropertyGridView.cs: keep from crashing on mouse move/down when
21189         the property grid is empty.
21190
21191 2006-11-14  Jackson Harper  <jackson@ximian.com>
21192
21193         * TextControl.cs: Make PageUp and PageDown more like the MS
21194         versions.
21195         * TextBoxBase.cs: When we set the text property position the
21196         cursor at the beginning of the document.
21197
21198 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21199
21200         * Form.cs: if a mdi child's WindowState has changed
21201         before it's creation, it would display wrong control
21202         buttons.
21203         
21204 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21205
21206         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21207           (Fixes bug #79927)
21208
21209 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21210
21211         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21212         the window gets to paint its borders even if the window is
21213         getting smaller.
21214         
21215         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21216         otherwise the old control buttons would still be painted 
21217         if the window gets bigger.
21218         
21219         * PaintEventArgs.cs: add an internal method so that the clip 
21220         rectangle can be changed.
21221         
21222 2006-11-13  Chris Toshok  <toshok@ximian.com>
21223
21224         [ fixes bug #79745 ]
21225         
21226         * NotifyIcon.cs: lots of cleanup.
21227
21228         * X11Structs.cs: add an enum for XEMBED messages.
21229
21230         * XplatUIX11.cs: reindent one of the giant switch statements, it
21231         was taking up an additional tab stop, and this file is already way
21232         too wide for my laptop's screen.
21233
21234         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21235         we get it, resize the hwnd to the WMNormalHints max_width/height.
21236
21237 2006-11-13  Jackson Harper  <jackson@ximian.com>
21238
21239         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21240         teh simple way.
21241
21242 2006-11-13  Chris Toshok  <toshok@ximian.com>
21243
21244         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21245         #79898.  force a reference to the Region to stick around so the
21246         unmanaged object isn't collected (rendering our handle in the MSG
21247         stale).
21248
21249 2006-11-13  Chris Toshok  <toshok@ximian.com>
21250
21251         * XplatUIX11.cs: fix #79917 for window managers which support
21252
21253         using XStoreName on the raw utf8, and we need to convert to
21254         COMPOUND_TEXT if it's non-latin1.
21255
21256 2006-11-13  Chris Toshok  <toshok@ximian.com>
21257
21258         * Form.cs (set_DialogResult): we need to set closing to false if
21259         we're setting our result to None.  fixes bug #79908.
21260
21261 2006-11-13  Jackson Harper  <jackson@ximian.com>
21262
21263         * TextControl.cs: When formatting text, compute the adjusted tag
21264         lengths correctly, using FindTag for the end tag instead of trying
21265         to figure it out outselves.
21266         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21267         the item, ItemHeight doesn't work, because trees with large
21268         imagelists use those for their height
21269         * TreeView.cs: ActualItemHeight factors in the image height
21270         - compute left edge of checkboxes correctly
21271         - when expanding/collapsing move the bottom down one pixel, so we
21272         aren't moving part of the node
21273
21274 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21275
21276         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21277         stack in PaintEventStart so that it won't get disposed by the gc
21278         before reaching PaintEventEnd.
21279
21280 2006-11-13  Jackson Harper  <jackson@ximian.com>
21281
21282         * TextBoxBase.cs: Don't select the word if we are on a line with
21283         no text.
21284         - We don't need to position the caret on mouse up, since the mouse
21285         move handler should be doing this
21286         - When double clicking a blank line, the caret is advanced to the
21287         next line.
21288
21289 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21290
21291         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21292
21293 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21294
21295         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21296         Fixes part of bug #79910.
21297
21298 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21299
21300         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21301           (bug #79903). Some minor string updates to match ms.
21302
21303 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21304
21305         * FileDialog.cs: Don't add an extension if the filename
21306           already ends with that extension.
21307
21308 2006-11-10  Jackson Harper  <jackson@ximian.com>
21309
21310         * TreeView.cs: Use the currently highlighted node for the
21311         BeforeSelect event.
21312         * TextBoxBase.cs: There is no need to expand selection on
21313         MouseMove.
21314         - CanUndo means 'is there any undo operations', not 'is undo
21315         allowed on this textcontrol. Fixed ClearUndo unit test.
21316
21317 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21318
21319         * Button.cs: only perform click when button is Selectable (so as 
21320         not to activate default buttons when they're disabled)
21321         
21322         * Control.cs: Rewrite of the SelectNextControl and related 
21323         methods. HandleClick now selects next control if the current one
21324         is being disabled.
21325         
21326         * Form.cs: OnActivated selects next active control only if Load 
21327         has already occurred. If Load hasn't run, there's no point in 
21328         selecting here, Load might change the state of controls.
21329         
21330         * FocusTest.cs: Tests marked as working again for these fixes
21331
21332 2006-11-10  Chris Toshok  <toshok@ximian.com>
21333
21334         * XplatUIX11.cs: a couple of fixes.
21335
21336         - use XInternAtoms with almost all the atoms we need to register,
21337         instead of many, many calls to XInternAtom.  should help a bit on
21338         startup time, at the expense of making the code look a little
21339         worse.
21340
21341         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21342         isn't reparented (which seems to be a clue that we're running fon
21343         compiz) and they have an Owner form.  This fixes the tool windows
21344         in paint.net when running under compiz.
21345
21346         - when setting the opacity of a window, support both the case
21347         where the window has been reparented and also when it hasn't been.
21348         Since compiz/beryl doesn't seem to reparent windows, and these are
21349         the only window managers which support translucency, I'm not sure
21350         why we need the hwnd.reparented case at all.. but leave it in.
21351         now we get translucent windows in paint.net under compiz/beryl.
21352
21353 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21354
21355         * FileDialog.cs: Always return the value for FilterIndex that
21356           was set. Internally convert it to values that make sense.
21357
21358 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21359         
21360         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21361
21362 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21363
21364         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21365         signature still using false to make it compatible with MS but the 
21366         initial value is true. Fixes #79855.
21367
21368 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21369
21370         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21371           only available on Linux.
21372
21373 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21374
21375         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21376         reduce number of calls to redraw method during toolbar creation.
21377
21378 2006-11-09  Mike Kestner  <mkestner@novell.com>
21379
21380         * ListView.cs : raise SelectedIndexChanged when an item is selected
21381         programmatically via the Item.Selected property.  Gert's nice 
21382         ListViewSelectedIndexChanged test fixture now runs clean.
21383
21384 2006-11-09  Mike Kestner  <mkestner@novell.com>
21385
21386         * ListView.cs : raise SelectedIndexChanged when a selected item is
21387         removed from the item collection using Remove or RemoveAt.
21388
21389 2006-11-09  Mike Kestner  <mkestner@novell.com>
21390
21391         * ListView.cs : raise SelectedIndexChanged once per selected item
21392         for compat with MS.  Fixes #79849+.
21393
21394 2006-11-09  Chris Toshok  <toshok@ximian.com>
21395
21396         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21397         we need to (if we have any tab pages).  Fixes unit test.
21398
21399 2006-11-09  Chris Toshok  <toshok@ximian.com>
21400
21401         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21402         width is 0, not 3.  Fixes a unit test.
21403
21404 2006-11-09  Mike Kestner  <mkestner@novell.com>
21405
21406         * ListView.cs : use Implicit scrollbars so that focus isn't 
21407         stolen from the listview when they are clicked. Fixes #79850.
21408
21409 2006-11-09  Chris Toshok  <toshok@ximian.com>
21410
21411         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21412         have a root item.  Fixes #79879.
21413
21414 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21415
21416         * FileDialog.cs:
21417           - Fix ToString ()
21418           - An ArgumentException is now thrown if a wrong filter
21419             is applied (matches ms). The previous filter doesn't change
21420             anymore if an exception is thrown.
21421           - Changing the FileName property also affects FileNames
21422         * ColorDialog.cs: The length of the CustomColors array is always
21423           16. It doesn't matter if we use a smaller array or null to update
21424           or change the custom colors property.
21425         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21426           for RootFolder if we get a undefined value.
21427
21428 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21429
21430         * StatusBarPanel.cs: 
21431         - Width is set to MinWidth if Width is smaller than
21432         MinWidth. Fixes #79842.
21433         - MinWidth now always overrides Width (MSDN says MinWidth
21434         is set to Width when AutoSize = None, but they do not 
21435         behave like that).
21436         - Style has now the the correct default value.
21437         
21438 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21439  
21440         * TrackBar.cs: 
21441         - The control is completely invalidated on 
21442         Got/LostFocus to draw the focus rectangle correctly.
21443         - When AutoSize then height is always 45 (width for 
21444         vertical controls).
21445         
21446         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21447         on the mouse when moved and it doesn't move when grabbed
21448         until the mouse moves as well. Also fixed some wrong 
21449         calculations when clicking on the thumb (control thought
21450         click was outside of thumb and didn't grab it).
21451         Fixes some of the issues in #79718.
21452
21453 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21454
21455         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21456
21457 2006-11-08  Chris Toshok  <toshok@ximian.com>
21458
21459         * PropertyGridView.cs: only call ToggleValue if the item is not
21460         readonly.
21461
21462 2006-11-08  Jackson Harper  <jackson@ximian.com>
21463
21464         * TextBoxBase.cs: The RichTextBox and textbox have very different
21465         word selection methods.  Implement the textbox's simple word
21466         selection here, and let the RichTextBox override and provide it's
21467         own.
21468         - Don't do extra selection on mouseup
21469         * RichTextBox.cs: Use the documents word selection algorithm, I
21470         think ideally, this function will be pulled into the
21471         RichTextBox.cs code someday.
21472
21473 2006-11-08  Chris Toshok  <toshok@ximian.com>
21474
21475         * RootGridEntry.cs: new class to represent GridItemType.Root.
21476
21477         * CategoryGridEntry.cs: reformat, and add boilerplate.
21478         
21479         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21480         returns the UI parent anyway, and we need special handling to
21481         implement the GetTarget method in the face of it.  Also, implement
21482         Select().
21483
21484         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21485         a root grid item, and use that instead of PropertyGrid.grid_items.
21486         Also, make use of TypeConverters (and add limitted support for
21487         ICustomTypeDescriptors) when initially populating the grid.
21488         Arrays now show up more or less properly.
21489
21490 2006-11-08  Chris Toshok  <toshok@ximian.com>
21491
21492         * Application.cs: set the modal dialog to non modal after we close
21493         it.  Fixes bug #79866.
21494
21495 2006-11-08  Jackson Harper  <jackson@ximian.com>
21496
21497         * TextControl.cs: When combining lines carry over the line end
21498         style from the end line.
21499         - Invalidate the selected area when setting it, if it is visible.
21500         * TextBoxBase.cs: Only rich text box can do full line selects.
21501         - Make sure to set the cursor position when there is a click,
21502         otherwise two clicks in separate areas could cause a large chunk
21503         to be selected.
21504
21505 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21506
21507         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21508         Fixes #79863.
21509
21510 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21511
21512         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21513         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21514
21515 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21516
21517         * MenuAPI.cs: Ignore right click for menu actions and fixes
21518         menu border when clicked.  Fixes #79846.
21519
21520 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21521
21522         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21523         MouseState after create wParam for message, this fixes mouse button 
21524         equal none in mouse up events.
21525         
21526 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21527
21528         * Control.cs : Focus() now calls Select to set the Container's
21529         Active Control and to give it focus. To avoid infinite recursion
21530         (because ActiveControl also calls Focus at one point), a check 
21531         is made in Focus with the help of a new internal variable
21532         is_focusing.
21533
21534 2006-11-07  Mike Kestner  <mkestner@novell.com>
21535
21536         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21537         if there's a selection.  Fixes #79849.
21538
21539 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21540
21541         * PropertyGrid.cs: Avoid fixed height of help description label.
21542         Fixes part of bug #79829.
21543
21544 2006-11-07  Chris Toshok  <toshok@ximian.com>
21545
21546         * XplatUIX11.cs: fix #79790 again, by using the
21547         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21548
21549 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21550
21551         * ToolBar.cs: Fix left click checking.
21552
21553 2006-11-07  Chris Toshok  <toshok@ximian.com>
21554
21555         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21556
21557 2006-11-07  Chris Toshok  <toshok@ximian.com>
21558
21559         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21560         PropertyManager unit tests.
21561
21562         * PropertyManager.cs: make property_name internal.
21563
21564 2006-11-07  Chris Toshok  <toshok@ximian.com>
21565
21566         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21567         pass a unit test.  Also, don't set image_index to anything in
21568         response to setting the ImageList property.
21569
21570 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21571
21572         * ToolBar.cs: Ignore click events when mouse button is not a
21573         left button, only accepts other button for dropdown menus.  
21574         Fixes #79854.
21575
21576 2006-11-07  Chris Toshok  <toshok@ximian.com>
21577
21578         * DataGrid.cs: make the back and parent row buttons a little less
21579         ugly.
21580
21581 2006-11-07  Jackson Harper  <jackson@ximian.com>
21582
21583         * TextBoxBase.cs: When converting to Text don't put line breaks in
21584         for soft line breaks.
21585         * TextControl.cs: There is an initial "fake" line in the document,
21586         this is now a soft break line, so that an extra line feed doesn't
21587         get added to the end of documents.
21588
21589 2006-11-07  Chris Toshok  <toshok@ximian.com>
21590
21591         [ fix bug #79778 ]
21592         
21593         * CurrencyManager.cs: if the list is readonly, don't bother
21594         checking if IBindingList.AllowNew is true.
21595
21596         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21597         for non-DataRowView datasources..  or rather, make it not crash.
21598         (DataGridPaintRelationRow): make sure we limit the row painting to
21599         the area not covered by the row header, and make our cell width at
21600         least large enough to cover the relation area.  This allows grids
21601         that have relations but no rows to render correctly.
21602         (DataGridPaintRowContents): same type of changes here.
21603         (SetDataSource): move back to always calling
21604         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21605         navigating back through relations.
21606         (HitTest): handle the case where we have no cells but have
21607         relations.  Right now we generate a hit in cell 0 of whatever the
21608         row is, not sure if this is strictly correct, but it works for our
21609         purposes.
21610         
21611         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21612         bother doing anything.
21613
21614 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21615
21616         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21617         early version of StatusStrip.  Not responsible for eaten
21618         application or firstborn children.
21619
21620 2006-11-06  Chris Toshok  <toshok@ximian.com>
21621
21622         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21623         call GetTabRect with a -1 index.  Fixes #79847.
21624
21625 2006-11-06  Jackson Harper  <jackson@ximian.com>
21626
21627         * TreeNodeCollection.cs: Update scrollbars after clearing.
21628
21629 2006-11-06  Chris Toshok  <toshok@ximian.com>
21630
21631         * NumericUpDown.cs: fix the ToString method for some unit test
21632         love.
21633
21634 2006-11-06  Chris Toshok  <toshok@ximian.com>
21635
21636         * PropertyGrid.cs:
21637         - set the initial SelectedGridItem if we can.
21638
21639         - Exclude non-mergable properties only if we're merging > 1
21640         object.  Merging 1 object isn't really merging, obviously.
21641
21642         - Handle PropertySort.NoSort just like Alphabetical, which is
21643         wrong of course, but at least gets things on the screen.
21644         
21645         * PropertyGridView.cs:
21646         - Add method "FindFirstItem" which finds the first property grid
21647         item, so we can select it by default.
21648
21649         - make use of GridEntry.CanResetValue.
21650
21651         - Don't call RedrawBelowItemOnExpansion here anymore, the
21652         individual GridEntry's will do that.
21653
21654         - Remove the ITypeDescriptorContextImpl internal class.
21655         
21656         * GridEntry.cs:
21657         - this class needs to implement ITypeDescriptorContext, as it's
21658         what MS's PropertyDescriptorGridEntry does, which means we can
21659         remove the ITypeDescriptorContextImpl internal class from
21660         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21661
21662         - keep a reference to our PropertyGridView, and move the call to
21663         RedrawBelowItemOnExpansion here from PGV.  This means
21664         programmaticly setting Expanded actually does something visible.
21665
21666         - add a CanResetValue() function which takes into account our
21667         possibly multiple "selected_objects" in the merged case.  Shifting
21668         PropertyGridView to use this method fixes another unreported
21669         crasher found running the test for #79829.
21670
21671         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21672         is updated to reflect this.
21673
21674         * CategoryGridEntry.cs: the ctor takes the PGV now.
21675         
21676 2006-11-06  Jackson Harper  <jackson@ximian.com>
21677
21678         * TextControl.cs: These are 1 based.
21679         * TextBoxBase.cs: When setting the selected text, don't change the
21680         selected text tags, this is done by ReplaceText, just position the
21681         cursor at the end of the new text.
21682
21683 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21684
21685         * ListView.cs: Allow label edit only when, when LabelEdit is
21686           set to true.
21687
21688 2006-11-06  Jackson Harper  <jackson@ximian.com>
21689
21690         * TextControl.cs: If a suitable wrapping position isn't found,
21691         just wrap right in the middle of a word.
21692
21693 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21694
21695         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21696           bug #79820.
21697
21698 2006-11-06  Jackson Harper  <jackson@ximian.com>
21699
21700         * TreeView.cs: Can't use the VisibleCount property when setting
21701         scrollbar heights, because this doesn't take into account whether
21702         or not the horz scrollbar just came visible.
21703
21704 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21705
21706         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21707         activated.  Fixes #79369, #79832.
21708
21709 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21710
21711         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21712           had to remove support for links that point to a directory. FileInfo
21713           returns no usefull information (means, the directory they point to)
21714           for such links. Replaced some empty string ("") with String.Empty.
21715
21716 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21717
21718         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21719         NullReferenceException when attempting to remove node that is not in
21720         collection. Throw NullReferenceException when null is passed to 
21721         Remove. Allow first element of the collection to be removed. Fixes
21722         bug #79831.  In GetEnumerator ().Current return null if positioned 
21723         before the first element of the collection. In GetEnumerator ().Reset,
21724         position before first element of the collection.
21725
21726 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21727
21728         * PropertyGrid.cs: To match MS, remove default title and description
21729         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21730         buttons.
21731
21732 2006-11-04  Chris Toshok  <toshok@ximian.com>
21733
21734         * Theme.cs: add a Clamp method, just for kicks.
21735
21736         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21737
21738 2006-11-04  Chris Toshok  <toshok@ximian.com>
21739
21740         * Form.cs: if the form isn't visible, Close() does nothing.
21741
21742 2006-11-03  Chris Toshok  <toshok@ximian.com>
21743
21744         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21745         Hide it.
21746         (WndProc): don't Dispose after handling the WM_CLOSE message.
21747
21748         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21749         them as such, instead of using casts from Control to Form.  Also,
21750         don't Dispose of the modal dialog when we fall out of the loop -
21751         Close() it instead.
21752
21753         fixes bug #79813.
21754
21755 2006-11-03  Chris Toshok  <toshok@ximian.com>
21756
21757         * Control.cs (Dispose): only go through the dispose thing if we're
21758         @disposing, and we haven't already been disposed.  Fixes bug
21759         #79814.
21760
21761         * Form.cs: no reason to call "base.Dispose()" here instead of
21762         "Dispose()".
21763
21764 2006-11-03  Mike Kestner  <mkestner@novell.com>
21765
21766         * ComboBox.cs : use ToString instead of casts in AddItem for
21767         sorting functionality.  Fixes #79812.
21768
21769 2006-11-03  Chris Toshok  <toshok@ximian.com>
21770
21771         * Application.cs: pave the way for actually using the thread
21772         exception dialog.  it's ifdefed out at the moment.
21773
21774 2006-11-03  Chris Toshok  <toshok@ximian.com>
21775
21776         * ThreadExceptionDialog.cs: until we get a better layout, actually
21777         hide the details textbox and label when we shouldn't see them.
21778
21779 2006-11-03  Jackson Harper  <jackson@ximian.com>
21780
21781         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21782         multiline textboxes anymore.  This method also determines the
21783         width/height of a textboxes canvas area.
21784         - Sorta a revert of the last patch.  For multiline just position
21785         the controls, then bail.  This way the scrollbar width won't be
21786         altered.
21787
21788 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21789
21790         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21791         it dont need.  Fixes #79537.
21792
21793 2006-11-02  Jackson Harper  <jackson@ximian.com>
21794
21795         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21796         send the status after firing the DndOver event.
21797
21798 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21799
21800         * TrackBar.cs: Now orientation only switches height / width if
21801         the control's handle is created (Win32 does it like this). Also 
21802         fixed a typo in ToString() for a test to pass, changed the 
21803         exception thrown in set_LargeChange and set_SmallChange to 
21804         match Win32 behaviour, and added TrackBar tests to the unit 
21805         tests.
21806
21807 2006-11-02  Chris Toshok  <toshok@ximian.com>
21808
21809         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21810         not _NET_WM_STATE_NO_TASKBAR.
21811
21812 2006-11-02  Jackson Harper  <jackson@ximian.com>
21813
21814         * TextControl.cs: Increment count by one, since in the update view
21815         count - 1 is used.
21816
21817 2006-11-02  Jackson Harper  <jackson@ximian.com>
21818
21819         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21820         the mouse is in the client rectangle (duh).
21821
21822 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21823         
21824         * TrackBar.cs: Fixed trackbar jumping around when clicking
21825         on it - the trackbar was not detecting correctly at which
21826         side of the thumb the click was done. (fixes #79718)
21827
21828 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21829
21830         * ListBox.cs: scroll visible area when change SelectedIndex to
21831         a non visible area.  Fixes #79481.
21832
21833 2006-11-01  Jackson Harper  <jackson@ximian.com>
21834
21835         * TextControl.cs: When replacing the selection move the selection
21836         start/end/anchor to the end of the new text.
21837
21838 2006-11-01  Jackson Harper  <jackson@ximian.com>
21839
21840         * XplatUIWin32.cs: When setting the parent change the controls
21841         visibility to it's visibility flag, not to it's old parents
21842         visibility (.Visible walks the parent chain).
21843
21844 2006-11-01  Chris Toshok  <toshok@ximian.com>
21845
21846         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21847         XSetTransientForHint fix breaks paint .net's tool windows.  more
21848         work needed for that one.
21849
21850 2006-11-01  Chris Toshok  <toshok@ximian.com>
21851
21852         * ScrollBar.cs: throw ArgumentException instead of Exception in
21853         LargeChange/SmallChange setters.  fixes unit tests.
21854
21855 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21856
21857         * ContainerControl.cs: reverted rev.67183 (which was itself
21858         a reversion of rev.66853... eh).
21859         
21860         * Control.cs: Fixes Reflector hang by changing Focus() call
21861         to what it was before rev.66643 (calling Select() here sets 
21862         ActiveControl, which in some situations calls back Focus and 
21863         eventually does a stack overflow). Temp fix.    
21864         Changes to GetNextControl() to not look for children to select when
21865         parent cannot be selectable (so it looks for siblings instead)  
21866         
21867 2006-10-31  Mike Kestner  <mkestner@novell.com>
21868
21869         * CheckedListBox.cs : off by one error in returned index from
21870         ObjectCollection.Add.  Fixes #79758.
21871
21872 2006-10-31  Chris Toshok  <toshok@ximian.com>
21873
21874         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21875         calls for the textbox/spinner, to keep from recursing to the point
21876         where we crash.  Fixes #79760.
21877
21878 2006-10-31  Chris Toshok  <toshok@ximian.com>
21879
21880         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21881         null/"" value, just return.  matches ms's behavior and fixes some
21882         failing tests.
21883
21884 2006-10-31  Chris Toshok  <toshok@ximian.com>
21885
21886         * Control.cs (set_Capture): make a logic a little easier to
21887         follow.
21888
21889         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21890         if it's being destroyed.  A necessary fix surely, but a bandaid
21891         also, to fix the stuck capture problem in bug #78413.
21892
21893 2006-10-31  Chris Toshok  <toshok@ximian.com>
21894
21895         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21896         convention of clearing hwnd.ClientRect when we set the
21897         width/height (so it'll be recalculated by Hwnd).
21898
21899 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21900
21901         * ContainerControl.cs: reversed Contains check from
21902         ActiveControl due to hanging problems. This fix
21903         partly regresses #79667 (button does not have
21904         initial focus), so this might be a symptom for 
21905         a larger parenting problem (set_ActiveControl
21906         is being called but the child control does
21907         not have the parent set yet?)   
21908         
21909 2006-10-31  Mike Kestner  <mkestner@novell.com>
21910
21911         * MenuAPI.cs : fix keynav when menu is click activated.
21912
21913 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21914
21915         * ToolStrip*: Version 0.2.
21916
21917         * MenuStrip.cs: Version 0.1.
21918
21919         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21920
21921 2006-10-30  Chris Toshok  <toshok@ximian.com>
21922
21923         [ fixes the oversized notify icon issue in bug #79745 ]
21924         
21925         * NotifyIcon.cs: scale the icon down to the size we're given by
21926         the XplatUI layer (this would be faster if we did it once instead
21927         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21928         since it's never invoked.
21929
21930         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21931         pixels high by default, so let's hardcode our systray icon to that
21932         size.  The SYSTEM_TRAY protocol should really have a way for
21933         client apps to query for the correct icon size.. but oh well.  A
21934         couple of patches to deal with the screwy client_window ==
21935         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21936         instance, and also make sure we don't XSelectInput twice).
21937
21938 2006-10-30  Chris Toshok  <toshok@ximian.com>
21939
21940         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21941         recreating forms.  Control recreation is the bane of my existence.
21942         Fix it in a way that keeps everyone happy.
21943
21944 2006-10-30  Chris Toshok  <toshok@ximian.com>
21945
21946         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21947         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21948         client_windows not being resized to the proper size (ReportBuilder
21949         shows this extremely well).
21950
21951 2006-10-30  Chris Toshok  <toshok@ximian.com>
21952
21953         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21954         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21955         showing up in the gnome taskbar.  Fixes bug #79790.
21956
21957 2006-10-30  Chris Toshok  <toshok@ximian.com>
21958
21959         * ApplicationContext.cs: guard against a NRE.
21960
21961         * Application.cs: null out the old MainForm for the context, so we
21962         don't try to use it again once it's disposed.  Fixes bug #79783.
21963
21964 2006-10-30  Chris Toshok  <toshok@ximian.com>
21965
21966         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21967         BindingContext, set the data source directly, otherwise do the
21968         lazy approach - the actual ListManager will be created when we get
21969         a BindingContext. Fixes bug #79700.
21970
21971 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21972
21973         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21974           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21975
21976         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21977
21978 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21979
21980         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21981         of SetVisible that allows a window to be shown, but not activated.
21982         This is needed on Windows for MenuStrip, and can probably be used
21983         with MainMenu and ComboBox to fix the focus stealing issues on
21984         Windows.
21985
21986         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21987
21988 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21989
21990         * PictureBox.cs: Fix the output of the ToString method.
21991
21992 2006-10-29  Chris Toshok  <toshok@ximian.com>
21993
21994         * Control.cs (get_TopLevelControl): fix bug #79781.
21995
21996 2006-10-29  Chris Toshok  <toshok@ximian.com>
21997
21998         * ListControl.cs (set_DataSource): throw Exception here, not
21999         ArgumentException, to match MS behavior.
22000
22001 2006-10-29  Chris Toshok  <toshok@ximian.com>
22002
22003         * Form.cs: remove the try-catch's around calls to GetWindowState.
22004         We can just check the return value.
22005
22006         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
22007         Instead return -1.
22008
22009         * XplatUI.cs: Add note about additional return value for
22010         GetWindowState.
22011
22012 2006-10-29  Chris Toshok  <toshok@ximian.com>
22013
22014         * Control.cs (CreateHandle): when we create our handle, we also
22015         create the handles of our child controls.  Fixes one of the
22016         Control unit tests (CH11).
22017
22018 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22019
22020         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
22021
22022 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
22023
22024         * ThemeClearlooks.cs: A little speedup.
22025
22026 2006-10-27  Chris Toshok  <toshok@ximian.com>
22027
22028         * Control.cs: implement Control.FromChildHandle in a way that
22029         matches the docs (and fixes the failed test.)
22030
22031 2006-10-27  Chris Toshok  <toshok@ximian.com>
22032
22033         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
22034         comments).
22035
22036         * DataGrid.cs: implement ResetForeColor such that the tests
22037         succeed.
22038         
22039 2006-10-27  Chris Toshok  <toshok@ximian.com>
22040
22041         * ToolBarButton.cs: setting text/tooltiptext to null results in it
22042         being set to "".  Fixes bug #79759.
22043
22044 2006-10-27  Jackson Harper  <jackson@ximian.com>
22045
22046         * TextControl.cs: We need to clear the entire selection area when
22047         setting the start, otherwise multiline selections are still
22048         visible.
22049
22050 2006-10-26  Chris Toshok  <toshok@ximian.com>
22051
22052         * PropertyGridView.cs: 
22053
22054         - ifdef all the code specific to the double
22055         buffer case, and provide some alternatives in the non-doublebuffer
22056         code, which makes heavy use of XplatUI.ScrollWindow to move things
22057         around without having to invalidate (and cause flicker).  There
22058         are still some drawing problems in the non-doublebuffered case, so
22059         DOUBLEBUFFER is defined by default.
22060
22061         - Fix the way dropdowns are handled.  now we explicitly watch for
22062         the events which might cause the dropdown to close, and break out
22063         of the nested event loop there.  This gets rid of all Capture
22064         code, at the expense of the Msg special casing.  Seems to work,
22065         though, and fixes bug #79743.
22066
22067 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
22068         * Control.cs: SetIsRecreating now recreates implicitly added
22069         child controls as well. Finally fixes #79629. The flag passed to 
22070         SetIsRecreating has also been removed since it wasn't used.
22071         
22072 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
22073
22074         * PageSetupDialog.cs: Clean some code, fix some bits, 
22075         add some checks, and add a printer sub-dialog.
22076
22077 2006-10-26  Chris Toshok  <toshok@ximian.com>
22078
22079         * PropertyGrid.cs: make set_SelectedObject call
22080         set_SelectedObjects, and move the duplicate logic to the
22081         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
22082
22083         * PropertyGridView.cs: hide the textbox when we get a
22084         SelectedObjectsChanged event.
22085
22086         Fixes bug #79748.
22087
22088 2006-10-26  Chris Toshok  <toshok@ximian.com>
22089
22090         * PropertyGridView.cs: deal with the type converter not supporting
22091         GetStandardValues() or GetStandardValues() returning null, which
22092         is does in the default case.  Fixes #79742.
22093
22094 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22095
22096         * CheckedListBox.cs: nunit no longer crashes when selecting 
22097         Project/Edit menu option
22098         
22099 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22100
22101         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22102         is no menu selected. fixes #79739
22103
22104 2006-10-25  Chris Toshok  <toshok@ximian.com>
22105
22106         * PropertyGridView.cs: factor out the splitter invalidation code
22107         into the SplitterPercent setter, and for kicks implement the
22108         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22109         amount in either direction.
22110
22111 2006-10-25  Chris Toshok  <toshok@ximian.com>
22112
22113         * PropertyGridView.cs: do some cleanup of the brush used to draw
22114         text - read only fields should be grayed out.  not sure how to do
22115         this with the textbox, though.  but the textbox's should also be
22116         readonly now at least.  Also, hide/show the textbox when resizing
22117         the control.
22118         
22119         * CursorConverter.cs: use System.Reflection when getting the
22120         properties of Cursors, as TypeDescriptor.GetProperties isn't
22121         returning static properties.
22122
22123 2006-10-25  Chris Toshok  <toshok@ximian.com>
22124
22125         * PropertyGridView.cs: factor out the up/down handling, and reuse
22126         it for page up/down.  also add End/Home support.
22127
22128 2006-10-25  Chris Toshok  <toshok@ximian.com>
22129
22130         * PropertyGridView.cs:
22131
22132         - ensure the selected grid item is visible in the scrolled area,
22133         fixes bug #79572.
22134
22135         - fix Keys.Down handling when you're on the last item in the
22136         propertygrid.
22137
22138 2006-10-25  Mike Kestner  <mkestner@novell.com>
22139
22140         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22141         clicks too.  Fixes #79725.
22142
22143 2006-10-24  Chris Toshok  <toshok@ximian.com>
22144
22145         * PropertyGrid.cs: use property.Converter instead of
22146         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22147         TypeConverters declared on the property as well as on the
22148         PropertyType.  Fixes bug #79678.
22149
22150 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22151
22152         * MimeIcon.cs, Mime.cs:
22153           Fallback to the default platform handler if no shared mime info
22154           stuff exists (fixes #79693).
22155
22156 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22157         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22158         from previous fix (duh).
22159
22160 2006-10-20  Chris Toshok  <toshok@ximian.com>
22161
22162         * PropertyGridView.cs: the dropdown should be MIN(number of items
22163         in list, 15).  Fixes #79551.
22164
22165 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22166         Fixes #79384, #79394, #79652, #79667
22167         * Application.cs: 
22168         
22169         - Modal windows are now destroyed in the proper order for windows
22170         
22171         * ContainerControl.cs:
22172         
22173         - ActiveControl setter has more conditions on when to return:
22174                 - if we're reselecting the active control, but it actually
22175                 didn't have focus (window hidden or some such), it runs
22176                 - if the active control being selected doesn't actually 
22177                 exist in the container, it returns
22178         
22179         * Form.cs
22180         
22181         - The ShowDialog now gets the current form as the owner when
22182         invoking without parameters, and correctly activates the owner 
22183         when returning
22184         
22185         * MessageBox.cs
22186         
22187         - MessageBox now catches the Escape key to exit
22188
22189 2006-10-20  Chris Toshok  <toshok@ximian.com>
22190
22191         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22192         most of bug #79676):
22193
22194         - you can navigate around the property grid with the arrow keys.
22195
22196         - the dropdown is sized properly when the pg has a vertical
22197         scrollbar.
22198
22199         - fix the indentation for subentries, and properly select the
22200         entire label rect.
22201
22202         - fix the gray bar's drawing (only draw it to the last element,
22203         not for the height of the control.  Also make sure we draw that
22204         last horizontal grid line.
22205
22206         - use the same mechanism the datagrid uses wrt the editing textbox
22207         when scrolling/resizing/etc.  Namely, we hide it first, do the
22208         operation, then show it again (if it's still visible).
22209         
22210         - aggressively remove a lot of unnecessary refreshes (and also
22211         calls to Invalidate(). call more limited variants, and only redraw
22212         what we need.)
22213         
22214         * PropertyGrid.cs:
22215
22216         - when we're populating the merged collection, fill in the UI
22217         parent with either the passed in item, or the category item we
22218         create.
22219
22220         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22221
22222         * GridItem.cs: drop some fully qualified names.
22223         
22224         * GridEntry.cs: add a "UIParent", which is basically the parent
22225         treenode.
22226
22227         * GridItemCollection.cs: add an IndexOf method.
22228
22229 2006-10-20  Mike Kestner  <mkestner@novell.com>
22230
22231         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22232         a working win32 NC invalidation mechanism, we can't invalidate
22233         menus.  [Fixes #79705]
22234
22235 2006-10-20  Mike Kestner  <mkestner@novell.com>
22236
22237         * ListBox.cs : don't update the VScrollbar if the list is empty,
22238         just hide it.  [Fixes #79692]
22239
22240 2006-10-20  Jackson Harper  <jackson@ximian.com>
22241
22242         * RichTextBox.cs: Handle some special chars better, and don't skip
22243         the entire group when we encounter a special char that we don't
22244         handle correctly.
22245
22246 2006-10-18  Chris Toshok  <toshok@ximian.com>
22247
22248         * PropertyGridView.cs: address a number of issues from bug #79676,
22249         mostly of the cosmetic variety.
22250
22251         - The highlight rectangle for indented items not extends all the
22252         way to the left.
22253
22254         - Indented items aren't indented so much.
22255
22256         - the dropdown is properly sized width-wise if the pg has a
22257         vertical scrollbar.
22258
22259 2006-10-18  Chris Toshok  <toshok@ximian.com>
22260
22261         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22262         systray stuff is rather convoluted to begin with.
22263
22264         systray icons are a single window for some reason (that I haven't
22265         figured out yet), and for them, client_window == whole_window.
22266         Given the way the tests are structured elsewhere to determine
22267         which paints are pending (client vs. nc), that situation will
22268         always yield PAINT, not NCPAINT.  So, if we have a pending
22269         nc_expose and no pending expose, remove the hwnd from the paint
22270         queue, and also set nc_expose_pending to false, to keep us from
22271         blocking further expose's adding the hwnd to the paint queue.
22272
22273         phew.  like i said, a rather convoluted change.  Fixes the
22274         notifyicon repaint issues in bug #79645.
22275
22276 2006-10-18  Chris Toshok  <toshok@ximian.com>
22277
22278         * Form.cs: when getting the backcolor of the form, don't get
22279         base.BackColor, as this allows parents to influence the background
22280         color.  This breaks mdi forms.  Instead, if the background_color
22281         is empty, return the default.
22282
22283 2006-10-18  Chris Toshok  <toshok@ximian.com>
22284
22285         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22286         to being private instead of internal static.
22287
22288         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22289         crap, it wasn't working for more deeply nested controls anyway,
22290         and we already have the is_recreating flag - use that instead.
22291         Before calling DestroyHandle in RecreateHandle, recurse through
22292         the control tree setting it to true.  this returns the recreate
22293         code to much of its original simplicity, while now guaranteeing we
22294         actually recreate everything we're supposed to.  This change gets
22295         fyireporting actually showing mdi children.
22296
22297 2006-10-17  Chris Toshok  <toshok@ximian.com>
22298
22299         * Form.cs: remove some debug spew, and collapse some duplicate
22300         code at the end of SetClientSizeCore.
22301
22302         * XplatUIX11.cs: 
22303         - add some more debug spew here too wrt Destroy handling.
22304         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22305         in Control's handling of WM_DESTROY.
22306         - Remove the handling of zombie window DestroyNotifies from the
22307         event loop - we don't need it.  Now the only DestroyNotifies we
22308         actually handle are ones generated by X.
22309         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22310         match gtk's (functioning) handling of this. This keep metacity
22311         from leaving droppings in the form of wm borders with no window
22312         contents all over the place.
22313
22314         * Control.cs:
22315         - add a bunch of debug spew wrt control recreation.
22316         - fix a bug where we weren't tracking Visible properly on
22317         recreated hwnds.
22318         - fixed the WM_PAINT double buffer handling to support re-entrant
22319         calls (yes, i know it's gross, but it's happening to us).
22320
22321 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22322         * ThemeWin32Classic.cs: changed drawing of selected days
22323         to make them look better.
22324
22325 2006-10-16  Chris Toshok  <toshok@ximian.com>
22326
22327         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22328         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22329
22330         * XplatUIX11.cs: move away from using hwnd.client_dc and
22331         hwnd.non_client_dc and on to a stack of dc's (and in window's
22332         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22333         without puking or not disposing of Graphics objects.
22334
22335         * XplatUIOSX.cs: same.
22336
22337         * XplatUIWin32.cs: same.
22338
22339 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22340
22341         * FileDialog.cs: Don't call on_directory_changed inside
22342           OnSelectedIndexChanged (it changes the SelectedIndex too).
22343           Instead move it to OnSelectionChangeCommitted.
22344
22345 2006-10-13  Chris Toshok  <toshok@ximian.com>
22346
22347         * XplatUIX11.cs: more Destroy work.  the current code does the
22348         following things, in order:
22349
22350         1. Enumerates all handles of all controls at or below the one
22351         being destroyed, in pre-order.  As it is doing this, it marks the
22352         handles as zombie and clears all references to them.
22353         
22354         2. calls XDestroyWindow on the window passed in.
22355
22356         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22357         list.
22358
22359 2006-10-13  Chris Toshok  <toshok@ximian.com>
22360
22361         * XplatUIX11.cs: set hwnd.zombie to true before calling
22362         SendMessage (WM_DESTROY).  this keeps us from marking the new
22363         window a zombie, and also keeps us from calling sendmessage at
22364         all.
22365
22366 2006-10-13  Jackson Harper  <jackson@ximian.com>
22367
22368         * TextControl.cs: Do not show the caret and selection at the same
22369         time.  Reduces ugliness by 35%.
22370
22371 2006-10-13  Chris Toshok  <toshok@ximian.com>
22372
22373         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22374         zombie after we do the recursive call, so we actually do call
22375         SendMessage on the children controls.
22376         (GetMessage): if we find a pending paint event for a zombie hwnd,
22377         remove the hwnd from the paint queue, or else it will always be
22378         there (and we'll effectively loop infinitely)
22379
22380 2006-10-13  Mike Kestner  <mkestner@novell.com>
22381
22382         * MenuItem.cs : add Selected format under keynav too.
22383         Fixes #79528.
22384
22385 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22386
22387         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22388         implementation and that of MS.
22389
22390 2006-10-13  Chris Toshok  <toshok@ximian.com>
22391
22392         * Control.cs (OnInvalidated) only futz with the invalid_region if
22393         the control is double buffered.  this fixes the apparent hang in
22394         the ListView unit tests.  Someone needs to make the
22395         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22396
22397 2006-10-13  Chris Toshok  <toshok@ximian.com>
22398
22399         * PropertyGridView.cs:
22400
22401         - do a little refactoring so that only one place calls
22402         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22403         else call that.  Also make it Refresh, since there are redraw bugs
22404         otherwise (we should take a look at that...)
22405
22406         - do a little more refactoring work to share the body of code
22407         involved with the drop down.  it was duplicated in the code
22408         dealing with the listbox handling and in the code dealing with the
22409         UITypeEditors.
22410
22411         - add a Capture to the dropdown form's control once it's
22412         displayed, and add a MouseDown handler that checks to make sure
22413         the position is inside the control.  If it's not, close the
22414         dropdown.  This fixes #78190.
22415
22416         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22417         if the value is different than the initial value.
22418         
22419 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22420
22421         * Control.cs: see #78650
22422         - Fixed GetNextControl for several cases:
22423                 - Changed FindFlatForward to return 
22424                 correct sibling control when more than one
22425                 control has same TabIndex as the currently 
22426                 focused one.
22427                 - Changed FindFlatBackward to loop children
22428                 from last to first and apply same logic as in
22429                 FindFlatForward
22430                 - Changed FindControlForward to search for
22431                 children when control is not a container
22432                 but has children, or search for siblings if
22433                 control is a container...
22434                 - Changed FindControlBackward   to continue
22435                 searching for child controls when hitting 
22436                 Panel-like parents
22437                 
22438         - Fixed Focus method to update ActiveControl
22439         (FocusTest.FocusSetsActive failure)
22440         
22441         * TabControl.cs:
22442         - Focus rectangle now refreshes when gaining
22443         or losing focus
22444         - Removed grab for Tab key on IsInputKey that 
22445         was keeping tab navigation from working (#78650)
22446
22447 2006-10-13  Chris Toshok  <toshok@ximian.com>
22448
22449         * PropertyGridView.cs:
22450         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22451         SelectedObjects.
22452
22453         - Deal with GridItem.Value == null a few places.
22454
22455         * PropertyGrid.cs: 
22456         - replace the PopulateGridItemCollection with a pair of methods
22457         which compute the intersection of all the properties in the
22458         SelectedObjects array.  Fixes #79615.
22459
22460         - Throw ArgumentException from set_SelectedObjects if there's a
22461         null in the array.
22462
22463         - Add GetTarget method which can be used to traverse up the
22464         GridItem.Parent chain.  It depends on the assumption that
22465         selected_objects for different GridEntries are always in the same
22466         order (a safe assumption).  Use this method and loop over all the
22467         selected objects in the entry when calling RemoveValueChanged and
22468         AddValueChanged.
22469         
22470         * GridEntry.cs: Make this handle multiple selected objects.
22471         .Value returns null if not all the selected objects share the same
22472         value.
22473
22474 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22475         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22476           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22477           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22478           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22479           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22480         add additional functionality.
22481
22482 2006-10-12  Mike Kestner  <mkestner@novell.com>
22483
22484         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22485         * HelpProvider.cs : new ToolTipWindow ctor sig.
22486         * ToolTip.cs : remove ToolTip param from Window sig since it is
22487         not used.
22488         * ToolBar.cs : add tooltip support.  Fixes #79565.
22489
22490 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22491
22492         * ComboBox.cs: move the events in set_SelectedIndex to 
22493         after the call to HighlightIndex in order to avoid 
22494         possible recursion and subsequent problems with the call
22495         to HighlightIndex and include a range check in 
22496         set_HighlightIndex. Fixes #79588
22497         
22498 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22499
22500         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22501         to ui thread's settings instead of sunday. 
22502         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22503
22504 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22505
22506         * DateTimePicker.cs
22507         * MonthCalendar.cs
22508         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22509         and implement missing functionality (selecting different parts 
22510         of the date and edit them individually with the keyboard).
22511         
22512 2006-10-11  Chris Toshok  <toshok@ximian.com>
22513
22514         * Control.cs (OnInvalidated): fix NRE relating to last change.
22515
22516 2006-10-11  Chris Toshok  <toshok@ximian.com>
22517
22518         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22519         atoms in _NET_WM_STATE here if the window is maximized.  We need
22520         to do this because we're *replacing* the existing _NET_WM_STATE
22521         property, so those atoms will be lost otherwise, and any further
22522         call to GetWindowState will return Normal for a window which is
22523         actually maximized.  Fixes #79338.
22524
22525 2006-10-11  Jackson Harper  <jackson@ximian.com>
22526
22527         * TextControl.cs: Special case for setting selection end to
22528         selection start, we basically kill the anchor.
22529         - some todo comments.
22530
22531 2006-10-11  Chris Toshok  <toshok@ximian.com>
22532
22533         * Control.cs: switch to using an "invalid_region" to track which
22534         parts of the image buffer need updating.  This is more code than
22535         the simple fix from r66532.  That version just attempted to always
22536         fill the entire buffer on redraw, which turns out to be
22537         inefficient when invalidating small rectangles.  This version
22538         simply adds the invalid rectangle to the invalid region.  When we
22539         get any WM_PAINT message we see if it can be filled using the
22540         image buffer, and if it can't (if the paint event's clip rectangle
22541         is visible in the invalid region) we first fill the image buffer.
22542         So, the image buffer is still a cache, we just fill it lazily.
22543
22544         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22545         need it any longer.
22546
22547 2006-10-11  Chris Toshok  <toshok@ximian.com>
22548
22549         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22550         well as size after calling XMoveResizeWindow.  This keeps us from
22551         ignoring future SetWindowPos calls.  Fixes the disappearing
22552         DateTimePicker in the ToolBarDockExample from bug #72499.
22553
22554 2006-10-11  Chris Toshok  <toshok@ximian.com>
22555
22556         * TextBoxBase.cs: reorder things a bit when it comes to
22557         resizing-causing-recalculation.  we were recalculating the
22558         document when our position was changed, which shouldn't happen.
22559         We only care about size changes.  Clear up some more redundant
22560         recalculation calls while I'm at it.  This makes the toolbar dock
22561         example snappy when you're just dragging toolbars around (since it
22562         causes a relayout whenever you move one.)
22563
22564 2006-10-11  Chris Toshok  <toshok@ximian.com>
22565
22566         * ToolBarButton.cs (get_Rectangle): this only returns
22567         Rectangle.Empty if Visible == false, or Parent == null.
22568         Parent.Visible doesn't matter.
22569
22570 2006-10-10  Chris Toshok  <toshok@ximian.com>
22571
22572         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22573         by .net 1.1, so switch to an internal method instead.
22574
22575 2006-10-10  Chris Toshok  <toshok@ximian.com>
22576
22577         * Control.cs (WM_PAINT): when a control is double buffered we draw
22578         initially to the ImageBuffer and then copy from there.  But when a
22579         parent control which has child controls is double buffered, the
22580         initial drawing doesn't encompass the entire ClientRectangle of
22581         the parent control, so we end up with uninitialized bits (this is
22582         easily seen by dragging the top toolbar in
22583         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22584         manually set the ClipRectangle of the paint_event (only the one we
22585         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22586         of the nastiness in bug #72499.
22587
22588         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22589         which we use in Control.cs's WM_PAINT handling.
22590
22591 2006-10-10  Jackson Harper  <jackson@ximian.com>
22592
22593         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22594
22595 2006-10-10  Chris Toshok  <toshok@ximian.com>
22596
22597         * Cursor.cs: Apply a slightly different patch to the one suggested
22598         in #79609.
22599
22600 2006-10-10  Jackson Harper  <jackson@ximian.com>
22601
22602         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22603         not the parent form.
22604         * TextControl.cs: use difference in old line count vs new count to
22605         calculate how many lines were added, this takes into account soft
22606         line breaks properly.
22607
22608 2006-10-10  Chris Toshok  <toshok@ximian.com>
22609
22610         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22611         rectangle located at 0,0 and the size of the text.  Use
22612         ClientRectangle instead.  This fixes rendering of non-left aligned
22613         link labels.
22614
22615 2006-10-10  Jackson Harper  <jackson@ximian.com>
22616
22617         * TextBoxBase.cs: When we set the selection start position the
22618         caret.
22619         * TextControl.cs: Need to update the caret when we decrement it to
22620         zero.
22621         - Make sure that the selection_visible flag gets reset to false if
22622         the selection isn't visible.  Before this you could get it set to
22623         visible by changing the selection start, then changing the end to
22624         equal the start.
22625
22626 2006-10-09  Jackson Harper  <jackson@ximian.com>
22627
22628         * TreeView.cs: Don't update scrollbars when we aren't visible.
22629         * TreeNodeCollection.cs: Only need to update scrollbars if being
22630         added to an expanded visible node or the root node.
22631
22632 2006-10-09  Chris Toshok  <toshok@ximian.com>
22633
22634         * XplatUIX11.cs (SendMessage): fix NRE.
22635
22636 2006-10-09  Jackson Harper  <jackson@ximian.com>
22637
22638         * TextBoxBase.cs: Implement horizontal autoscrolling.
22639         * TextControl.cs: Add a movement types that allows moving forward
22640         and backwards without wrapping.
22641
22642 2006-10-09  Mike Kestner  <mkestner@novell.com>
22643
22644         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22645         with focus "expansion" of labels.  Fixes #79532 and then some.
22646         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22647         when wrapping.
22648
22649 2006-10-09  Jackson Harper  <jackson@ximian.com>
22650
22651         * TextBoxBase.cs: Set the default max values to MaxValue since
22652         we use the scrollbar for autoscrolling and the default value is
22653         100.  If we don't do this the caret won't keep up with typing
22654         after about 18 characters.
22655         * TextControl.cs: Make sure the selection is offset by the
22656         viewport x.  This fixes selection when using auto scrolling.
22657
22658 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22659         
22660         * Form.cs: The active control should be selected after the 
22661         OnLoad so that any child control initialization that affects
22662         the selection is done. Fixes #79406
22663
22664 2006-10-06  Chris Toshok  <toshok@ximian.com>
22665
22666         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22667         to have no evil effects.
22668
22669         - Stop selecting StructureNotifyMask on non-toplevel windows.
22670
22671           The only way children should be resized is by using the SWF api,
22672           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22673           Toplevel windows can be interacted with via the window manager,
22674           and so we keep the input mask there.
22675
22676           The other event StructureNotifyMask gives us (that we care
22677           about) is DestroyNotify.  The code is already structured such
22678           that it assumes we won't be getting a DestroyNotify event for
22679           the window we pass to XDestroyWindow (which is what
22680           StructureNotifyMask is supposed to guarantee.)  So, that code
22681           shouldn't be affected by this either.
22682
22683         - Stop selecting VisibilityChangeMask altogether.
22684
22685           We weren't doing anything with the resulting events anyway.
22686         
22687         This vastly reduces the number of X requests and events we see
22688         when resizing/laying out a large ui.
22689
22690 2006-10-06  Chris Toshok  <toshok@ximian.com>
22691
22692         * ScrollableControl.cs (DisplayRectangle): we need to take into
22693         account the DockPadding regardless of whether or not auto_scroll
22694         == true.  rework this slightly to this effect, and fix bug #79606,
22695         and part of #72499 (you can now see the drag handles and drag
22696         toolbars around).
22697
22698 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22699
22700         * ListViewItem.cs: Collections of selected and checked items are now
22701         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22702         we mark the collection "dirty".
22703         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22704         to only clear SelectedItems when a new item is selected and MultiSelect
22705         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22706         event of ListViewItemCollection, and mark its list dirty whenever
22707         that event is fire. This allows us to return selected/checked items 
22708         in the same order as they are in the Items collection. This matches
22709         the MS behavior.
22710
22711 2006-10-06  Chris Toshok  <toshok@ximian.com>
22712
22713         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22714         right mouse clicks.  Fixes bug #79593.
22715
22716 2006-10-06  Chris Toshok  <toshok@ximian.com>
22717
22718         * Splitter.cs: doh, fix splitters that don't want to cancel the
22719         movement when you drag them.  Also, impose the limits on the
22720         values we send to the SplitterMovingEvent.  Fixes #79598.
22721
22722 2006-10-06  Jackson Harper  <jackson@ximian.com>
22723
22724         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22725         since we use this for auto scrolling also.
22726
22727 2006-10-05  Chris Toshok  <toshok@ximian.com>
22728
22729         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22730         beginning to think that most datagrid column types don't need this
22731         method.  Fixes bug #79392.
22732
22733 2006-10-05  Chris Toshok  <toshok@ximian.com>
22734
22735         * DataGrid.cs: move back to a more lazy scheme for creating the
22736         CurrencyManager, so we aren't updating it every time you set
22737         either DataSource or DataMember.  Also, don't call
22738         RecreateDataGridRows if the currency manager hasn't changed.
22739
22740 2006-10-05  Chris Toshok  <toshok@ximian.com>
22741
22742         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22743         emitted, SelectedIndex should already be updated.  Fixes bug
22744         #78929.
22745
22746 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22747
22748         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22749           ToolStripTextBox.cs: Initial commit.
22750         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22751
22752 2006-10-05  Jackson Harper  <jackson@ximian.com>
22753
22754         * TabControl.cs: We need to invalidate the tab control area when
22755         new ones are added (duh).
22756
22757 2006-10-03  Chris Toshok  <toshok@ximian.com>
22758
22759         * Form.cs (ProcessDialogKey): if the focused control is in this
22760         form and is a button, call its PerformClick method here.  Fixes
22761         #79534.
22762
22763 2006-10-04  Jackson Harper  <jackson@ximian.com>
22764
22765         * TabPage.cs: Ignore setting of Visible, and add an internal
22766         method for setting the controls visibility.  TabPage's Visible
22767         property is a little strange on MS, this seems to make us
22768         compatible, and fixes cases where people set all the tab pages to
22769         visible.
22770         * TabControl.cs: Use the new internal setting on tab pages
22771         visibility.
22772
22773 2006-10-03  Mike Kestner  <mkestner@novell.com>
22774
22775         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22776
22777 2006-10-03  Mike Kestner  <mkestner@novell.com>
22778
22779         * ListView.cs : use is_visible instead of Visible to check if 
22780         scrollbars should be placed/sized.  Also some max_wrap_width
22781         love for LargeIcon view.  [Fixes #79533]
22782
22783 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22784
22785         * TextControl.cs :
22786           Make set_TextAlign() do actually update the align. Fixed #78403.
22787
22788 2006-10-03  Chris Toshok  <toshok@ximian.com>
22789
22790         * DataGrid.cs: fix a crash when switching datasources if the
22791         vertical scrollbar is at someplace other than Value = 0.  Also,
22792         reduce the number of recalculation passes we do in SetDataSource
22793         from 2 to 1.
22794
22795 2006-10-03  Jackson Harper  <jackson@ximian.com>
22796
22797         * TextBoxBase.cs: Move the if value the same bail check up, we
22798         don't want to empty the document if it is already empty, this
22799         seems to severly mess up the caret.  TODO: I should probably fix
22800         the empty statement to update teh caret somehow.
22801
22802 2006-10-03  Chris Toshok  <toshok@ximian.com>
22803
22804         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22805         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22806         reflection, an internal row type, properties on said type, etc.)
22807         will work with our datagrid.  Fixes #79531.
22808
22809 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22810
22811         * FileDialog.cs: Don't crash if a path is not accessible
22812           (System.UnauthorizedAccessException). Fixes #79569.
22813         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22814           a ':' too. Return unknown icon for those paths/files.
22815
22816 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22817
22818         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22819         GetContainerControl returns null.
22820
22821 2006-10-02  Chris Toshok  <toshok@ximian.com>
22822
22823         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22824         call to XGetWindowAttributes instead of "handle".  fixes an X
22825         error using notifyicon after the NotifyIconWindow to Form base
22826         class switch.
22827
22828 2006-10-02  Chris Toshok  <toshok@ximian.com>
22829
22830         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22831         server grab and looping we need to do to get down to the most
22832         deeply nested child window.
22833         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22834         QueryPointer again after the WarpPointer so we can generate a
22835         proper (fake) MotionNotify event to be enqueued in the destination
22836         window's queue.
22837         (GetCursorPos): call QueryPointer.
22838
22839         Fixes #79556.
22840
22841 2006-10-02  Jackson Harper  <jackson@ximian.com>
22842
22843         * NotifyIcon.cs: Derive the notify icon from a form, so things
22844         like FindForm work on it.
22845         - Swallow the WM_CONTEXTMENU message, since that is generated on
22846         mouse down, and context menu is a mouse up kinda guy.  I believe
22847         the correct fix here is probably to make the notify icon entirely
22848         NC area, but this seems to work fine for anyone not manipulating
22849         WndProc.
22850
22851 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22852
22853         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22854           ToolStripItemCollection.cs, ToolStripLabel.cs,
22855           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22856           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22857           Initial implementation.
22858         * TextRenderer.cs: Provide padding to MeasureText.
22859
22860 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22861
22862         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22863         of ButtonBaseAccessibleObject. Fix bug #79552.
22864
22865 2006-10-02  Jackson Harper  <jackson@ximian.com>
22866
22867         * MdiWindowManager.cs: When maximizing use the containers client
22868         rect, not it's bounds, so nc area is accounted correctly.
22869         - Use the parent form's size for the menu position, since the
22870         client isn't always the full form size.
22871
22872 2006-10-01  Chris Toshok  <toshok@ximian.com>
22873
22874         * ScrollableControl.cs: make sure neither right_edge or
22875         bottom_edge are < 0, since they're used as LargeChange for the
22876         horiz/vert scrollbars respectively.  Fixes #79539.
22877
22878 2006-10-01  Chris Toshok  <toshok@ximian.com>
22879
22880         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22881         the xplatuix11 code can cause us to destroy/recreate our handle.
22882
22883         * XplatUIX11.cs
22884         (SystrayAdd):
22885         - this code can be invoked many times for the same Hwnd.  Make
22886           sure we only destroy the client window once (the first time this
22887           method is called).  This fixes bug #79544.
22888         - Remove the call to the improperly bound XSync.  why we had two
22889           bindings to this, I will never know, but this call resulted in
22890           events being discarded from the queue(!).
22891         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22892           not our current state but the state we wish to be in.  So, 0 if
22893           we don't want to be mapped.  Change it to 1.
22894         (SystrayRemove): The XEMBED spec makes mention of the fact that
22895         gtk doesn't support the reparent of client windows away from the
22896         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22897         The only avenue we have for removing systray icons is to destroy
22898         them.  We don't want the handle to go away for good, though, so
22899         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22900         #79545.
22901         
22902 2006-10-01  Chris Toshok  <toshok@ximian.com>
22903
22904         * Form.cs (WndProc): inline the native_enabled variable usage into
22905         the cases in which it's used.  Fixes #79536.
22906
22907 2006-09-29  Mike Kestner  <mkestner@novell.com>
22908
22909         * ListView.cs : toggle the selection state for ctrl clicks in 
22910         multiselect mode. [Fixes #79417]
22911
22912 2006-09-29  Mike Kestner  <mkestner@novell.com>
22913
22914         * ListView.cs : kill CanMultiSelect and refactor the selection
22915         code to support multiselection in the absence of mod keys. Steal
22916         arrow/home/end keys by overriding InternalPreProcessMessage to
22917         restore regressed keynav behavior.
22918         [Fixes #79416]
22919
22920 2006-09-29  Jackson Harper  <jackson@ximian.com>
22921
22922         * MdiClient.cs: Repaint the titlebars when the active window is
22923         changed.
22924
22925 2006-09-29  Chris Toshok  <toshok@ximian.com>
22926
22927         * Application.cs: when entering a runloop with a modal, make sure
22928         the hwnd is enabled.  Fixes #79480.
22929
22930 2006-09-29  Chris Toshok  <toshok@ximian.com>
22931
22932         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22933         when ListManager.CanAddRows == false, bump us back one.
22934
22935         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22936         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22937         using a datagrid, which is not right.
22938         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22939         is an IEditable, but call property_descriptor.SetValue regardless.
22940         fixes #79435.
22941
22942 2006-09-29  Chris Toshok  <toshok@ximian.com>
22943
22944         * DataGridBoolColumn.cs: we need to test equality in the face of
22945         possible null values (as is the case with the default NullValue).
22946         This patch keeps us from crashing in that case.
22947
22948 2006-09-29  Jackson Harper  <jackson@ximian.com>
22949
22950         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22951         here, since it will get called for every node collection in the
22952         tree. This is now done in the treeview once the sorting is
22953         finished.
22954         * TreeView.cs: Recalculate the visible order, and update the
22955         scrollbars after sorting, set the top nope to the root so that the
22956         recalc actually works.
22957
22958 2006-09-29  Chris Toshok  <toshok@ximian.com>
22959
22960         * LinkLabel.cs: more handling of the default link collection in
22961         the face of LinkArea manipulation.  The default link collection
22962         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22963         to anything and the links collection is the default, clear it.
22964         Then only add the link if its nonempty.  Fixes #79518.
22965
22966 2006-09-29  Chris Toshok  <toshok@ximian.com>
22967
22968         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22969         piece correctly when we hit a '\n'.  Fixes #79517.
22970
22971 2006-09-29  Chris Toshok  <toshok@ximian.com>
22972
22973         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22974         change the binding of gdk_init_check to take two IntPtr's, and
22975         pass IntPtr.Zero for both of them.  Fixes #79520.
22976
22977 2006-09-29  Mike Kestner  <mkestner@novell.com>
22978
22979         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22980         [Fixes #78779]
22981
22982 2006-09-28  Jackson Harper  <jackson@ximian.com>
22983
22984         * XplatUIX11.cs: When translating NC messages make sure we go from
22985         whole window to screen, not client window to screen.
22986         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22987         method doesn't exist
22988         - Skip over controls that aren't forms when arranging.
22989
22990 2006-09-28  Jackson Harper  <jackson@ximian.com>
22991
22992         * XplatUIWin32.cs: Clip the rect to the parent window.
22993         * XplatUIStructs.cs: Add clipping modes struct.
22994         * InternalWindowManager.cs: New private method that factors title
22995         bar heights in when calculating the pos of an NC mouse message.
22996         - Use SendMessage to force a paint when the form's size is changed
22997         instead of painting the decorations immediately.
22998         - Don't let the NC button click messages get to DefWndProc,
22999         because they will attempt to handle windowing themself, and this
23000         messes up z-order (it will put them in front of the scrollbars).
23001         * XplatUIX11.cs: Make sure that we don't reset window managers if
23002         we already have one (ie the window is an MDI window).
23003
23004 2006-09-28  Chris Toshok  <toshok@ximian.com>
23005
23006         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
23007         menu code really needs going over.
23008
23009 2006-09-27  Chris Toshok  <toshok@ximian.com>
23010
23011         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
23012         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
23013         window is maximizable.  So, we need to make sure that even if we
23014         clear the border/wm frame of those functions, they're still
23015         available (basically, we remove the decoration without removing
23016         the function).  Half the fix for #79338.
23017
23018 2006-09-27  Chris Toshok  <toshok@ximian.com>
23019
23020         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
23021         Fixes bug #79515.
23022
23023 2006-09-27  Chris Toshok  <toshok@ximian.com>
23024
23025         * Splitter.cs: reorder things a bit so that we don't actually
23026         draw/move the splitter until after calling OnSplitterMoving.  This
23027         lets users cancel/disallow the movement by explicitly setting
23028         event.SplitX/SplitY.  Fixes #79372.
23029
23030 2006-09-27  Jackson Harper  <jackson@ximian.com>
23031
23032         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
23033         because it is most likely on a window being destroyed, and that
23034         will give us an X11 error.
23035
23036 2006-09-27  Chris Toshok  <toshok@ximian.com>
23037
23038         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
23039         the dropdown button now toggles between showing and hiding the
23040         dropdown.  Also, get rid of dropdown_form_showing and just use
23041         dropdown_form.Visible.  We still don't do a grab, but I'll leave
23042         that part to someone who has handled Capture-fu before.
23043
23044 2006-09-27  Chris Toshok  <toshok@ximian.com>
23045
23046         * DataGrid.cs: return false if alt isn't pressed when '0' is
23047         pressed.  this keeps the '0' key from being swallowed, and fixes
23048         bug #79350.
23049
23050 2006-09-27  Chris Toshok  <toshok@ximian.com>
23051
23052         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
23053         Calling Refresh (in response to a scrollbar event) screws up the
23054         scrollbar painting.  Fixes bug #78923.
23055
23056 2006-09-27  Chris Toshok  <toshok@ximian.com>
23057
23058         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
23059         then insert into hashtable" blocks threadsafe.
23060
23061 2006-09-27  Chris Toshok  <toshok@ximian.com>
23062
23063         * MessageBox.cs (CreateParams): the styles should be |'ed with our
23064         baseclass's, since otherwise the
23065         ControlBox/MinimizeBox/MaximizeBox assignments above have no
23066         effect.  This gets the close button back in messageboxes.
23067
23068 2006-09-27  Chris Toshok  <toshok@ximian.com>
23069
23070         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
23071         flag, not just != 0.  this makes flags that are actually multiple
23072         bits (like WS_CAPTION) work.  fixes bug #79508.
23073
23074 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
23075
23076         * PageSetupDialog.cs: add support for getting and settings the 
23077         paper size, source and orientation.
23078
23079 2006-09-26  Chris Toshok  <toshok@ximian.com>
23080
23081         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
23082         and caption == "", we need to remove the resize handles as well as
23083         the title bar.
23084
23085         * Control.cs (set_Text): turns out that setting Text on a form
23086         should change the WM styles on the window, since if ControlBox ==
23087         false, the only way to get a window border is to have a non-""
23088         Text property.  check winforms/forms/text.cs for an example.  so,
23089         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
23090         update both window styles and title.  This fixes a lot of dialogs
23091         (including the preferences dialog in MonoCalendar.)
23092
23093 2006-09-26  Chris Toshok  <toshok@ximian.com>
23094
23095         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
23096         control isn't a Form), call Win32ShowWindow to hide the window,
23097         but don't update the control Visible property.  When we reparent
23098         back to a parent control, call SetVisible in order for the
23099         window's visibility to be reinstated.
23100
23101         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23102         the FosterParent.
23103
23104         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23105         call for good, since it breaks MonoCalendar (and other things I'm
23106         sure.) Also, set all_controls to null *after* the owner calls,
23107         which end up regenerating it.
23108         (ChangeParent): allow new_parent to be == null, passing
23109         IntPtr.Zero down to XplatUI.
23110
23111         this fixes #79294 the right way.
23112
23113 2006-09-26  Mike Kestner  <mkestner@novell.com>
23114
23115         * GridEntry.cs : internal SetParent method.
23116         * PropertyGrid.cs : attach to property changed on the proper
23117         target if we have a hierarchical grid with subobjects. Setup
23118         GridItem.Parent for hierarchical items.
23119         * PropertyGridView.cs : Set value on the correct target for
23120         hierarchical grids. [Fixes #78903]
23121
23122 2006-09-26  Chris Toshok  <toshok@ximian.com>
23123
23124         * Control.cs (ChildNeedsRecreating): this should return true if
23125         either we're being recreated and the child is in our list, or our
23126         parent is waiting for our recreation.
23127
23128 2006-09-26  Chris Toshok  <toshok@ximian.com>
23129
23130         * Control.cs (ControlCollection.Remove): reinstate the
23131         value.Hide() call as suggested in bug #79294.
23132
23133 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23134
23135         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23136         coordinates (versus a relative move).
23137
23138 2006-09-26  Chris Toshok  <toshok@ximian.com>
23139
23140         * Control.cs: rework child recreation a little bit.  It turns out
23141         that we race between the DestroyNotify the WM_DESTROY message.  If
23142         the parent gets its DestroyNotify before the child gets the
23143         WM_DESTROY message, the child ends up not recreating (since the
23144         parent finishes its recreation on DestroyNotify, and the child
23145         checks ParentIsRecreating.)
23146
23147         So, instead we store off a list of all the child controls which
23148         need to be recreated when the parent control starts to recreate
23149         itself.  Then, when child controls get their WM_DESTROY message we
23150         check to see if they're in the parent's pending recreation list,
23151         and if so, we recreate.  This removes all dependency on ordering
23152         from the code and fixes the initial MonoCalendar upgrade dialog.
23153         
23154 2006-09-26  Jackson Harper  <jackson@ximian.com>
23155
23156         * TextControl.cs: Use the Line to get the length of the line,
23157         since soft line breaks can change the end line.
23158
23159 2006-09-26  Chris Toshok  <toshok@ximian.com>
23160
23161         * Control.cs (ControlCollection.AddImplicit): don't add the
23162         control again if it's already in one of our lists.  This keeps us
23163         from adding controls over and over again for comboboxes when their
23164         handle gets recreated (as the combobox adds implicit controls in
23165         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23166
23167 2006-09-26  Jackson Harper  <jackson@ximian.com>
23168
23169         * TextControl.cs: When deleting characters make sure that any
23170         orphaned zero lengthed tags get deleted.
23171         - Fix ToString for zero lengthed tags.
23172
23173 2006-09-25  Jackson Harper  <jackson@ximian.com>
23174
23175         * TextControl.cs: When getting a tag at the location there can be
23176         multiple tags at the same spot, these are 0-lengthed tags that
23177         appear when extra formatting has been stuck in a location.  We
23178         need to pull out the last of these 0 lengthed tags.
23179
23180 2006-09-25  Jackson Harper  <jackson@ximian.com>
23181
23182         * TextControl.cs: Fix print out in debug method.
23183         * TextBoxBase.cs: When text is set bail if we are setting to the
23184         previous value.
23185         
23186 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23187
23188         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23189           It is now possible to change the selected index in a FontXXXListBox
23190           with the up and down arrow keys from the FontXXXTextBoxes.
23191           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23192           FontXXXListBoxes to match ms.
23193
23194 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23195
23196         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23197         anyone can dispose it, anytime. All other properties returns enums, 
23198         structs or basic types so they don't need such tricks.
23199
23200 2006-09-22  Jackson Harper  <jackson@ximian.com>
23201
23202         * XplatUI.cs:
23203         * XplatUIWin32.cs:
23204         * Clipboard.cs:
23205         * DataFormats.cs:
23206         * XplatUIOSX.cs:
23207         * XplatUIDriver.cs: Update interface to add a primary selection
23208         flag, so the driver can use the primary selection buffer if
23209         needed.
23210         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23211
23212         * RichTextBox.cs: We need to supply the data object to paste now
23213         (so we can choose to supply CLIPBOARD or PRIMARY).
23214         * TextBoxBase.cs: Supply data object to paste (see above).
23215         - Middle click uses the primary selection data object.
23216         
23217 2006-09-21  Chris Toshok  <toshok@ximian.com>
23218
23219         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23220         of SetWMStyles.  It's still a rat's nest and is largely
23221         order-dependent which I dislike immensely.  This also fixes the X
23222         button disappearing from toplevel forms.
23223
23224 2006-09-21  Mike Kestner <mkestner@novell.com>
23225
23226         * ListBox.cs: move Jordi's click/dblclick raising code to the
23227         mouse up handler.
23228
23229 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23230
23231         * ListBox.cs: Fixes 79450
23232
23233 2006-09-21  Mike Kestner <mkestner@novell.com>
23234
23235         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23236         to deal with people updating the TreeNodeCollection after the tree
23237         is disposed.  "Fixes" 79330.
23238
23239 2006-09-20  Jackson Harper <jackson@ximian.com>
23240
23241         * TextControl.cs: Push the cursor record onto the undo stack
23242         before the delete action. This fixes 78651.
23243
23244 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23245
23246         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23247         CreateParams. Fixes 79329.
23248
23249 2006-09-19  Chris Toshok  <toshok@ximian.com>
23250
23251         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23252         things up a bit.  First, get rid of the NetAtoms array (and the NA
23253         enum), and just embed the atoms as static fields.  Also, add a
23254         couple of functions (StyleSet and ExStyleSet) to clean up all the
23255         bitmask testing of styles.
23256
23257         * X11Structs.cs: remove the NA enum, not needed anymore.
23258         
23259 2006-09-19  Chris Toshok  <toshok@ximian.com>
23260
23261         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23262         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23263         added cleanup to get MessageBox titles appearing again, which were
23264         broken by my earlier fix for caption-less/ControlBox-less windows.
23265
23266 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23267
23268         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23269           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23270           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23271           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23272           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23273           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23274           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23275           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23276           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23277           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23278           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23279             Inital import.
23280         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23281           ToolStripButton.cs: Stubs needed for above.
23282         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23283
23284 2006-09-15  Chris Toshok  <toshok@ximian.com>
23285
23286         * XplatUIX11.cs:
23287         - make the MessageQueues hashtable Synchronized.
23288         
23289         - SendMessage: if the Hwnd is owned by a different thread, use the
23290         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23291         thread.  Fixes bug #79201.
23292
23293 2006-09-15  Chris Toshok  <toshok@ximian.com>
23294
23295         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23296         ControlBox == false, we disallow maximize/minimize/close.  If the
23297         form Caption is "" we also disallow move (and get rid of the Title
23298         decoration).  Unfortunately, regardless of how things are set,
23299         we're stuck with the Title and WM menu.
23300
23301 2006-09-15  Chris Toshok  <toshok@ximian.com>
23302
23303         * Application.cs: add locking around the static message_filters
23304         ArrayList, part of #79196.
23305
23306 2006-09-15  Chris Toshok  <toshok@ximian.com>
23307
23308         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23309         Form.ControlBox == false, the window has no titlebar nor resize
23310         handles.  fixes bug #79368.
23311
23312 2006-09-15  Chris Toshok  <toshok@ximian.com>
23313
23314         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23315         >= 0.  Fixes bug #79370.
23316
23317 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23318         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23319         * Control.cs:
23320             Add properties: LayoutEngine, Margin, DefaultMargin.
23321             Add method: GetPreferredSize.
23322             Move layout logic from PerformLayout to layout engines. 
23323
23324 2006-09-13  Chris Toshok  <toshok@ximian.com>
23325
23326         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23327         fix for #79326 broke #78718, so this change addresses that.
23328
23329         - in SendWMDestroyMessages remove the call to
23330         CleanupCachedWindows, since we might be recreating the control and
23331         need to maintain the references to right Hwnd handles.  Also, set
23332         the zombie flag to true for each of the children in the hierarchy
23333         instead of calling hwnd.Dispose.  This will cause GetMessage to
23334         ignore all events for the window except for DestroyNotify.
23335
23336         - In GetMessage, ignore messages except for DestroyNotify for
23337         zombie hwnds.
23338         
23339         * Control.cs: revert the is_recreating fix from the last
23340         ChangeLog.  It's definitely "right", but it breaks switching from
23341         an MDI form to a non-MDI form.  Will need to revisit that.
23342
23343         * Hwnd.cs: add a zombie flag, which means "the
23344         client_window/whole_window handles are invalid, but we're waiting
23345         for the DestroyNotify event to come in for them".  Set the flag to
23346         false explicitly if setting WholeWindow/ClientWindow, and also
23347         when Disposing.
23348         
23349 2006-09-13  Chris Toshok  <toshok@ximian.com>
23350
23351         * XplatUIX11.cs: rework window destruction slightly.
23352
23353         - when destroying the windows associated with a control, we don't
23354         need 2 separate XDestroyWindow calls.  Just the one for the
23355         whole_window (or for client_window if whole_window is somehow
23356         IntPtr.Zero -- can this happen?) is enough.
23357
23358         - reworked SendWMDestroyMessages slightly, so we always dispose
23359         the child control hwnd's after sending the messages.
23360         
23361         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23362         the two places it was used (one was even using hwnd.Handle and the
23363         other hwnd.client_window.  ugh), adding another call in
23364         SendWMDestroyMessages.  We need this new call because now the
23365         DestroyNotify events in the queue will be ignored for the child
23366         controls (as their hwnd's were disposed, and the window id's
23367         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23368
23369         - this fixes bug #79326.
23370
23371 2006-09-13  Chris Toshok  <toshok@ximian.com>
23372
23373         * Control.cs: don't always set is_recreating to false at the end
23374         of RecreateHandle, since sometimes we're not done (and won't be
23375         until WndProc handles the WM_DESTROY message).  Also, set
23376         is_recreating to false in the WM_DESTROY handling code.  Part of
23377         the fix for bug #79326.
23378
23379 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23380
23381         * X11DesktopColors.cs: Start the droppage of debugging messages.
23382
23383         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23384
23385 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23386
23387         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23388
23389 2006-09-12  Chris Toshok  <toshok@ximian.com>
23390
23391         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23392         to create it using SetDataSource.  Fixes bug #79151.
23393
23394 2006-09-11  Chris Toshok  <toshok@ximian.com>
23395
23396         * XEventQueue.cs: add a DispatchIdle property.
23397
23398         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23399         either the queue is null, or the queue has DispatchIdle set to
23400         true.
23401         (DoEvents): set queue.DispatchIdle to false around the
23402         peek/translate/dispatch message loop in this method.  This keeps
23403         Application.Doevents from emitting idle events.  Part of the fix
23404         for #78823.
23405
23406 2006-09-11  Chris Toshok  <toshok@ximian.com>
23407
23408         * DataGrid.cs (set_DataSource): make this work for both the
23409         winforms/datagrid test and ReportBuilder.  It seems as though when
23410         we've created a ListManager (or maybe it's if we have a
23411         BindingContext?), when we set the DataSource it clears the
23412         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23413         #79333.
23414
23415 2006-09-11  Chris Toshok  <toshok@ximian.com>
23416
23417         * XplatUIX11.cs: deal with queue being null, which happens in all
23418         the Clipboard functions.  Fixes one of the two problems mentioned
23419         in #78612.
23420
23421 2006-09-11  Chris Toshok  <toshok@ximian.com>
23422
23423         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23424         button on various spots (including outside the menu) works closer
23425         to MS, and doesn't crash.  Fixes #79343.
23426
23427 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23428
23429         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23430         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23431         and the internal comparer is set. When a new ListViewItemSorter is set,
23432         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23433         was specified. No further processing is necessary if SortOrder is set
23434         to it's current value. If Sorting is modified to None, and View is
23435         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23436         (either custom or our internal ItemComparer) to null, on 1.0 profile
23437         only set item_sorter to null if its our internal IComparer. If Sorting
23438         is modified to Ascending or Descending, then use our internal IComparer
23439         if none is set, and if the current IComparer is our internal one then:
23440         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23441         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23442         Enum.IsDefined to verify whether a valid View value is specified in
23443         its setter. Automatically sort listview items when listview is
23444         created. In Sort, do nothing if ListView is not yet created, or if
23445         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23446         to None or ListViewItemSorter was set to null). Added Sort overload
23447         taking a bool to indicate whether the ListView should be redrawn when
23448         items are sorted (we use this in ListViewItemCollection to avoid double
23449         redraws). Modified our internal IComparer to take the sort order into
23450         account. In Add and AddRange methods of ListViewItemCollection, also
23451         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23452         view), but use overload with noredraw option to avoid double redraw.
23453         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23454         true when View is Tile, and do the same when attempting to set View to
23455         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23456         for selected/checked indices, as it involves overhead when sorting is
23457         done while these collections are not used all that often. Instead
23458         we'll build the indices on demand. Modified IList implementation of
23459         CheckedIndexCollection to use public methods if object is int.
23460         Modified CheckedListViewItemCollection to hide checked items if
23461         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23462         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23463         IList implementation in SelectedIndexCollection to use public methods
23464         if object is int. Modified SelectedListViewItemCollection to hide
23465         selected items if listview is not yet created.
23466         * ListViewItem.cs: CheckedIndices list no longer needs to be
23467         maintained separately (see ListView changes). Also clone font, fixes
23468         test failure.
23469
23470 2006-09-11  Mike Kestner  <mkestner@novell.com>
23471
23472         * ComboBox.cs: if we are updating the contents of the currently
23473         selected index, refresh the control or the textbox selection.
23474         [Fixes #79066]
23475
23476 2006-09-11  Mike Kestner  <mkestner@novell.com>
23477
23478         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23479         the 'specified' logic has been moved there.  This seems like a bug 
23480         in Control.cs, since our current SetBoundsCore completely ignores 
23481         the specified parameter.  Peter's commit seems to indicate that is 
23482         the way the MS control implementation works.  [Fixes #79325]
23483
23484 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23485
23486         * XplatUI.cs: Set default_class_name to be composed
23487         of current domain id. This allows MWF to be loaded in multiple
23488         domains on Win32.
23489
23490 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23491
23492         * X11Keyboard.cs: If we are unable to obtain the input method, do
23493         not call CreateXic to create the input context.   Should fix
23494         #78944/79276.
23495
23496 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23497
23498         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23499           Simplified gnome support by adding more pinvokes to get the
23500           icon for a file or mime type.
23501
23502 2006-09-08  Jackson Harper  <jackson@ximian.com>
23503
23504         * MenuAPI.cs: Deslect popup context menu items before closing the
23505         window, so that you don't see the previously selected item
23506         selected when you reopen the menu.
23507         * TextControl.cs: Update the cursor position even if we don't have
23508         focus.  This fixes typing in things like the ComboBox.  I'm not
23509         totally sure we should always set the visibility if we don't have
23510         focus, but couldn't find any corner cases where the cursor showed
23511         up when it shouldn't.
23512
23513 2006-09-08  Chris Toshok  <toshok@ximian.com>
23514
23515         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23516         our arrays are length 256.  & 0xff before indexing.  Fixes the
23517         crash in bug #78077.
23518         
23519 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23520
23521         * ThemeWin32Classic.cs: 
23522         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23523         is true. Handle that check box too.
23524
23525 2006-09-07  Chris Toshok  <toshok@ximian.com>
23526
23527         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23528         79244.
23529
23530 2006-09-07  Chris Toshok  <toshok@ximian.com>
23531
23532         * Control.cs: in set_BackColor only do the work if
23533         background_color != value.
23534
23535         * XplatUIX11.cs: move the clearing of invalid areas (both client
23536         and nc) to the same block of code where we set (nc_)expose_pending
23537         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23538         so things that cause invalidates from within OnPaint will trigger
23539         another call to OnPaint.  Fixes bug #79262.
23540
23541 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23542
23543         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23544         * FileDialog.cs: Fix typo
23545
23546 2006-09-07  Jackson Harper  <jackson@ximian.com>
23547
23548         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23549         for tab pages if they have any.
23550
23551 2006-09-06  Mike Kestner  <mkestner@novell.com>
23552
23553         * Splitter.cs: use the "current" rect when finishing drag handle
23554         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23555
23556 2006-09-06  Mike Kestner  <mkestner@novell.com>
23557
23558         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23559         support offset splitters. [Fixes #79298]
23560
23561 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23562
23563         * Mime.cs: Fixed a bug that could override the global mime type
23564           result.
23565
23566 2006-09-05  Jackson Harper  <jackson@ximian.com>
23567
23568         * TabControl.cs: Better calculation method for setting the slider
23569         pos. Prevents crashes on really wide tabs.
23570         - Draw Image on tab pages if an image list is used.
23571
23572 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23573
23574         * MonthCalendar.cs: When Font changes, the Size should be
23575         updated to fit the new font's space requirements.
23576
23577 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23578
23579         * ListBox.cs: If the items are cleared with Items.Clear set
23580           top_index to 0.
23581
23582 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23583
23584         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23585         fire DateChanged event instead of DateSelected event when
23586         the date was changed by keyboard interaction.
23587
23588 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23589
23590         * DateTimePicker.cs: Handle DateChanged for the associated
23591         month_calendar control, and set month_calendar.Font from 
23592         OnFontChanged method, as well as resize the height of the
23593         control when needed. Make PreferredHeight proportional.
23594
23595 2006-09-01  Chris Toshok  <toshok@ximian.com>
23596
23597         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23598         properties.
23599
23600         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23601
23602 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23603
23604         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23605           for decorations (Fixes #79219)
23606
23607 2006-09-01  Mike Kestner  <mkestner@novell.com>
23608
23609         * ComboBox.cs: first stab at sorting plus some selection handling
23610         fixes to bring us more in line with MS behavior.  Also switches back
23611         to index based selection.  Alternative patches for index-based 
23612         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23613         and latency@gmx.de on bug 78848.  I assume they were similar to this
23614         code I've had simmering in my tree forever.
23615         [Fixes #78848]
23616
23617 2006-09-01  Chris Toshok  <toshok@ximian.com>
23618
23619         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23620         when setting list position guard against ending up with a -1 index
23621         (the other part of the fix for #78812).  Should probably make sure
23622         we don't need the analogous fix in the ItemDeleted case.
23623
23624         * DataGrid.cs:
23625         - in SetDataSource, work around the fact that the way
23626         OnBindingContextChanged is invoked will cause us to re-enter this
23627         method.  I'll remove the hack once I investigate
23628         OnBindingContextChanged.
23629
23630         - fix the logic in set_DataSource and set_DataMember (basically
23631         what to do if the other of the two is null.)
23632         
23633         - in OnListManagerItemChanged, we need to take into account the
23634         edit row when deciding whether or not to call RecreateDataGridRows
23635         (part of the fix for #78812).
23636
23637 2006-09-01  Jackson Harper  <jackson@ximian.com>
23638
23639         * Splitter.cs: Don't do anything if there is no control to affect
23640         (prevents us from crashing in weird tet cases).
23641         * TreeView.cs: Bounding box for the mouse movement reverting
23642         focus/selection back to previously selected node.  This matches
23643         MS, and makes the tree a lot more useable.
23644         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23645         use clipping so they are not drawn.  This fixes when the control
23646         is set to have a transparent background, or if it was over an
23647         image.
23648
23649 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23650
23651         * MimeIcon.cs: Improved handling for reading default icons when
23652           using gnome (2.16 made it necessary). Check and read svg icons
23653           first, then 48x48 and then 32x32 icons.
23654
23655 2006-08-31  Chris Toshok  <toshok@ximian.com>
23656
23657         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23658         visible.
23659
23660         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23661         ProcessKeyPreview.  Fixes part of #77806.
23662
23663         * DataGrid.cs: big patch.
23664
23665         - revert the queueing up of DataSource/DataMember if inside
23666         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23667         its delayed databinding.  Instead, call SetDataSource in
23668         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23669         #78811.
23670
23671         - Also, it wasn't mentioned in #78811, but the test case exhibits
23672         behavior that was lacking in our datagrid implementation - Columns
23673         that have mapping names that don't exist in the datasource's
23674         properties aren't shown.  Yuck.  To fix this I added the bound
23675         field to the column style, and basically any calculation to figure
23676         out anything about columns uses a loop to find the bound columns.
23677         still need to investigate if I can cache an array of the bound
23678         columns or if the indices must be the same.
23679
23680         - When setting CurrentCell, we no longer abort if the cell being
23681         edited was in the add row.  This fixes the other part of #77806.
23682
23683         - The new code also fixes #78807.
23684         
23685         * ThemeWin32Classic.cs: perpetrate the same disgusting
23686         column.bound field hack, and only render bound fields.
23687
23688 2006-08-31  Chris Toshok  <toshok@ximian.com>
23689
23690         * DataGridColumnStyle.cs: add bound field.  this field is true if
23691         the datasource has a property corresponding to the mapping name.
23692
23693         * DataGridTableStyle.cs: set the bound field on the column styles
23694         depending on whether or not we have a column for that property.
23695
23696 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23697
23698         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23699           splitter control (fixes #79228)
23700
23701 2006-08-31  Chris Toshok  <toshok@ximian.com>
23702
23703         * DataGridColumnStyle.cs: we need to delay the assignment of
23704         property descriptor until the last possible moment due to the lazy
23705         databinding stuff in the datagrid.  Also, fix the exceptions
23706         thrown by CheckValidDataSource to match MS.
23707
23708 2006-08-31  Jackson Harper  <jackson@ximian.com>
23709
23710         * Form.cs: When activated select the active control, if there is
23711         no active control, we select the first control.
23712         * XplatUIX11.cs: If there is no focus control when we get a
23713         FocusIn event, find the toplevel form and activate it.  This
23714         occurs when you popup a window, it becomes the focus window, then
23715         you close that window, giving focus back to the main window.
23716
23717 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23718
23719         * MonthCalendar.cs: 
23720         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23721         as StringFormat with Center alignments in MonthCalendar,
23722         instead of creating new ones when drawing the control. 
23723         Also, draw the month name in bold style.
23724
23725 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23726
23727         * Control.cs:
23728           - PerformLayout(): It would seem MS performs the fill even if the 
23729             control is not visible (part of #79218 fix)
23730           - ResetBackColor(): Use the setter to reset the color, to allow
23731             overriders to catch the change.
23732         * Form.cs:
23733           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23734           - CreateHandle(): dito (part of $79218 fix)
23735           - Don't set an icon if we have a dialog
23736         * ScrollableControl.cs:
23737           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23738           - ScrollIntoView(): No need to scroll if control is already visible
23739             (resolves fixme and fixes #79218)
23740
23741 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23742
23743         * MonthCalendar.cs: Change proportions in SingleMonthSize
23744         to match the aspect of the original control.
23745
23746 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23747
23748         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23749           get updated when they get maximized.
23750
23751 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23752
23753         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23754
23755 2006-08-29  Chris Toshok  <toshok@ximian.com>
23756
23757         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23758
23759 2006-08-29  Jackson Harper  <jackson@ximian.com>
23760
23761         * TreeView.cs: Need to track selected node and highlighted node,
23762         they aren't always the same thing, when the mouse is down on a
23763         node it is hilighted, but not selected yet.
23764         - Do the HideSelection stuff right
23765         - Need to focus on rbutton mouse down. And redraw selection when
23766         right click is mouse upped.
23767
23768 2006-08-29  Mike Kestner  <mkestner@novell.com>
23769
23770         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23771         when SubItems.Count < Columns.Count.  [Fixes #79167]
23772
23773 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23774
23775         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23776
23777 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23778
23779         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23780           from X. Only send based on ConfigureNotify if we don't have the
23781           correct location in hwnd (if the window manager moved us)
23782
23783 2006-08-28  Mike Kestner  <mkestner@novell.com>
23784
23785         * ListView.cs: remove a TODO. 
23786         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23787         [Fixes ListView part of #79166]
23788
23789 2006-08-28  Mike Kestner  <mkestner@novell.com>
23790
23791         * ListView.cs: move wheel handler to parent since it is focused
23792         instead of the item_control now.  [Fixes #79177]
23793
23794 2006-08-28  Mike Kestner  <mkestner@novell.com>
23795
23796         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23797         when the control is focused. [Fixes #79171]
23798
23799 2006-08-28  Mike Kestner  <mkestner@novell.com>
23800
23801         * ListView.cs: size the item and header controls for empty and
23802         unscrollable views.
23803         * ThemeWin32Classic.cs: draw disabled backgrounds.
23804         [Fixes #79187]
23805
23806 2006-08-28  Chris Toshok  <toshok@ximian.com>
23807
23808         * Form.cs: remove unused "active_form" static field.
23809
23810         * Hwnd.cs: lock around accesses to static windows collection.
23811
23812         * Application.cs: lock threads in Exit ().
23813
23814 2006-08-28  Chris Toshok  <toshok@ximian.com>
23815
23816         * NativeWindow.cs: lock around accesses to window_collection.
23817         
23818 2006-08-28  Chris Toshok  <toshok@ximian.com>
23819
23820         * Control.cs: err, fix this the right way, by locking on controls
23821         when using it.  not by making it synchronized.
23822
23823 2006-08-28  Chris Toshok  <toshok@ximian.com>
23824
23825         * Control.cs: make the static "controls" field synchronized, as it
23826         gets updated from multiple threads.
23827
23828 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23829
23830         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23831           Prevent other threads from exiting when calling thread sets quit state.
23832         * XEventQueue.cs: Added PostQuitState property
23833
23834 2006-08-27  Chris Toshok  <toshok@ximian.com>
23835
23836         * AsyncMethodData.cs: add a slot for the window handle.
23837
23838         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23839         window (the destination control's window, not the foster window).
23840
23841         * Control.cs (BeginInvokeInternal): store the window's handle in
23842         the AsyncMethodData.
23843         
23844
23845 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23846
23847         * XplatUIX11.cs:
23848           - PostQuitMessage: Removed resetting S.D display handle, we might have
23849             another loop started after calling PostQuitMessage (Fixes #79119)
23850           - Created destructor to reset S.D handle
23851
23852 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23853
23854         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23855
23856 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23857
23858         * TextControl.cs (Insert): Update the caret position even if we don't
23859           have a handle yet, just don't call the driver in that case.
23860         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23861           to the end of the new selection text (Fixes #79184)
23862
23863 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23864
23865         * Form.cs (Activate): Only activate if the handle is created)
23866         * Control.c:
23867           - Mark window as invisible when it's disposed
23868           - Check if window handle is created when setting window visible, 
23869             instead of relying just on the is_created variable
23870           - Check if object is disposed when creating the control (Fixes #79155)
23871
23872 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23873
23874         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23875           when allowing layout again. Otherwise we re-generate the anchoring 
23876           distance to the border again and actually alter what the user wanted
23877           This is ugly, it'd be better if we used DisplayRectangle instead of
23878           ClientRectangle for Control.UpdateDistances, but that causes us to
23879           have other problems (initial anchoring positons would be wrong)
23880           (Fixes #78835)
23881
23882 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23883
23884         * Control.cs:
23885           - The size and location setters shouldn't go directly to 
23886             SetBoundsCore, but to SetBounds, which triggers layout on the
23887             parent, then calls SetBoundsCore. (Related to fix for #78835)
23888           - SetBounds: Moved actual location update code into this function
23889             from SetBoundsCore, to match MS. Added call to PerformLayout if
23890             we have a parent (to trigger resizing of anchored parents if the 
23891             child size has changed (see testcase for #78835) 
23892         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23893           new control code
23894         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23895
23896 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23897
23898         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23899           System.Drawing when a toplevel window gets closed; there might
23900           be other toplevel windows belonging to the same app (Fixes #78052)
23901
23902 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23903
23904         * FileDialog.cs: After reading FileDialog settings from mwf_config
23905           use Desktop prefix only if a real folder doesn't exist anymore.
23906         * FontDialog.cs: Added char sets.
23907           It is now possible to select the font, size or style with the
23908           textboxes.
23909
23910 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23911
23912         * PrintPreviewDialog.cs: Use assembly name constants.
23913
23914 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23915
23916         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23917           scrollbar from whacking it's buttons)
23918
23919 2006-08-24  Chris Toshok  <toshok@ximian.com>
23920
23921         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23922         in this patch (aggregating setting Left/Top/Width/Height to
23923         setting Bounds on the scrollbars), but the crux of the fix is in
23924         Recalculate, where we scroll by the remaining scroll_position if
23925         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23926         serious.
23927
23928 2006-08-24  Jackson Harper  <jackson@ximian.com>
23929
23930         * MdiClient.cs:
23931         * MdiWindowManager.cs: If the form is made a non-mdi window we
23932         need to remove the form closed event so that closing forms works
23933         correctly.
23934
23935 2006-08-24  Jackson Harper  <jackson@ximian.com>
23936
23937         * Control.cs: Make IsRecreating internal so that the driver can
23938         check it
23939         - Temporarily remove the Hide when controls are removed, its
23940         making a whole bunch of things not work because visibility isn't
23941         getting reset elsewhere correctly
23942         * Form.cs: Need to do a full handle recreation when the mdi parent
23943         is set.
23944         * XplatUIX11.cs: If we are recreating handles don't dispose the
23945         HWNDs.  What was happening is the handles were being recreated in
23946         SendWMDestroyMessages, but then flow continued on in that method
23947         and destroyed the new handles.
23948
23949 2006-08-23  Jackson Harper  <jackson@ximian.com>
23950
23951         * Form.cs: MdiClient is always at the back of the bus
23952         * Control.cs: When the order of items in the collection is changed
23953         we need to reset the all_controls array
23954         - do the same sorta setup thats done when adding a control when a
23955         control is set on the collection.
23956
23957 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23958
23959         * TextBoxBase.cs (get_Text): Return an empty array if our document
23960           is empty (fixes #79052)
23961
23962 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23963
23964         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23965           on WM_SYSCHAR messages (fixes #79053)
23966
23967 2006-08-23  Chris Toshok  <toshok@ximian.com>
23968
23969         * DataGrid.cs: fix flickering when scrolling vertically.
23970
23971 2006-08-23  Chris Toshok  <toshok@ximian.com>
23972
23973         * DataGrid.cs (EndEdit): only invalidate the row header when we
23974         need to.
23975
23976 2006-08-23  Chris Toshok  <toshok@ximian.com>
23977
23978         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23979         methods.  fixes the flicker when scrolling around.
23980
23981 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23982
23983         * FileDialog.cs: Making sure the control is created before we get a 
23984           chance to use it with BeginInvoke (Fixes #79096)
23985
23986 2006-08-23  Chris Toshok  <toshok@ximian.com>
23987
23988         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23989         width to use when painting the rows.
23990
23991 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23992
23993         * TextBoxBase.cs:
23994           - Throw ArgumentException if a negative value is passed to SelectionLength
23995           - Update the selection end if start is moved. end needs to be always
23996             after start. (Fixes #79095)
23997           - Track selection length; MS keeps the selection length even if start
23998             is changed; reset on all other operations affection selection
23999
24000 2006-08-22  Jackson Harper  <jackson@ximian.com>
24001
24002         * TreeView.cs: Make sure both scrollbars get displayed and sized
24003         correctly when the other bar is visible.
24004         - Use the original clip rectangle for checking if the area between
24005         the two scrollbars is visible, not the viewport adjusted clipping
24006         rectangle.
24007
24008 2006-08-22  Jackson Harper  <jackson@ximian.com>
24009
24010         * Binding.cs: We don't use IsBinding because it requires the
24011         control to be created, which really shouldn't be necessary just to
24012         set a property on the control.
24013
24014 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24015
24016         * ComboBox.cs: Some CB.ObjectCollection methods must throw
24017         ArgumentNullReferenceException when the argument is null.
24018
24019 2006-08-21  Jackson Harper  <jackson@ximian.com>
24020
24021         * Timer.cs: Track the thread that the timer is started in (NOT
24022         CREATED), this way messages for it will only be triggered on its
24023         queue.
24024         * XEventQueue.cs: Track the timers here, this makes timers per
24025         thread, like MS.
24026         * XplatUIX11.cs: The timers are moved to the XEventQueue.
24027
24028 2006-08-19  Chris Toshok  <toshok@ximian.com>
24029
24030         * XplatUIX11.cs: after further communication with pdb, we get the
24031         best of both worlds.  SetZOrder working for un-Mapped windows, and
24032         no X errors for un-mapped windows.
24033
24034 2006-08-19  Chris Toshok  <toshok@ximian.com>
24035
24036         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
24037         as it was causing pdn toolbars to not have the correct stacking.
24038
24039 2006-08-18  Mike Kestner  <mkestner@novell.com> 
24040
24041         * ListView.cs : guard against negative ClientArea.Width in scrollbar
24042         calculation.  Not sure why control should ever be setting a negative
24043         width though.  Fixes #78931.
24044
24045 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24046
24047         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
24048         null items in ObjectCollection class.
24049         * ListBox.cs.: Likewise.
24050
24051 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
24052
24053         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
24054           as the base method in ThemeWin32Classic should work fine.
24055           Fixed bug #78607.
24056
24057 2006-08-18  Jackson Harper  <jackson@ximian.com>
24058
24059         * Binding.cs: When validating if the value entered doesn't convert
24060         properly reset to the old value.
24061         * RadioButton.cs: Don't fire click when we get focus.
24062
24063 2006-08-18  Jackson Harper  <jackson@ximian.com>
24064
24065         * FileDialog.cs: Paint the selection on the directory combobox the
24066         same way as on MS. 
24067
24068 2006-08-17  Jackson Harper  <jackson@ximian.com>
24069
24070         * ErrorProvider.cs: Don't allow the error control to be selected.
24071         * Control.cs: Don't send the SetFocus messages, the control
24072         activation will do this, and if we do it blindly here validation
24073         does not work.
24074
24075 2006-08-17  Jackson Harper  <jackson@ximian.com>
24076
24077         * Control.cs:
24078         * ContainerControl.cs: Make validation events fire in the correct
24079         order.  TODO: For some reason the first validation event is not
24080         getting fired.
24081
24082 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24083
24084         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
24085
24086 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24087
24088         * ComboBox.cs : implement scroll wheel support for popped-down
24089         state. Fixes #78945. 
24090
24091 2006-08-17  Jackson Harper  <jackson@ximian.com>
24092
24093         * TreeView.cs: Specify treeview actions (old patch that didn't get
24094         committed for some reason).
24095         - Don't let the mouse wheel scroll us too far.  Just want to make
24096         the bottom node visible, not scroll it all the ways to the top.
24097
24098 2006-08-17  Jackson Harper  <jackson@ximian.com>
24099
24100         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24101
24102 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24103
24104         * ComboBox.cs : don't do mouseover selection in simple mode.
24105
24106 2006-08-16  Jackson Harper  <jackson@ximian.com>
24107
24108         * Form.cs: Fire the closing events for all the mdi child windows
24109         when a window is closed.  If the cancel args are set to true, the
24110         main window still gets the event fired, but it doesn't not close.
24111         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24112         handler, instead of when the button is clicked, so cancelling the
24113         close works correctly.
24114         * ComboBox.cs: Send the mouse down to the scrollbar.
24115
24116 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24117
24118         * ListBox.cs: When passing 'null' to SelectedItem,
24119         set SelectedIndex to -1, to unselect items. This is the
24120         observed behaviour in .Net.
24121
24122 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24123
24124         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24125           MS flags saying there won't be any. (fixes #78800)
24126         * Control.cs (HandleClick): Made virtual
24127
24128 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24129
24130         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24131           cultures. Fixed bug #78399.
24132
24133 2006-08-16  Jackson Harper  <jackson@ximian.com>
24134
24135         * Form.cs: Use the MdiClients MdiChildren property to access
24136         MdiChildren instead of creating the array from the child controls.
24137         * MdiClient.cs: Maintain a separate array of the mdi children, so
24138         that insertion order is maintained when the Z-order is changed.
24139
24140 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24141
24142         * ListView.cs : add an ItemComparer and default to it for sorting.
24143         Fixes #79076, but sorting needs a complete overhaul to be compat with
24144         MS.
24145
24146 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24147
24148         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24149
24150 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24151
24152         * Hwnd.cs (Mapped): Properly traverse the tree
24153
24154 2006-08-15  Chris Toshok  <toshok@ximian.com>
24155
24156         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24157         pass manager.Current.GetType() to ParseData.  It has to be the
24158         property type.  So, hold off doing the ParseData until we're in
24159         SetPropertyValue where we know the type.  This fixes the crash in
24160         #78821 but the textbox is still empty.
24161
24162 2006-08-15  Chris Toshok  <toshok@ximian.com>
24163
24164         * DataGrid.cs:
24165         - when we're scrolling, only call Edit() again if the
24166         current cell is still unobscured. Fixes bug #78927.
24167         - when handling mousedown on a cell, ensure the cell is visible
24168         before calling Edit.
24169         - remove the properties from DataGridRow, and remove the
24170         DataGridParentRow class altogether.
24171         
24172
24173 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24174
24175         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24176           fire OnTextChanged by ourselves. There's no point calling base,
24177           we don't set the base value anywhere else. Fixes #78773.
24178
24179 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24180
24181         * ListBox.cs: Call CollectionChanged when modifying
24182         an item from Items indexer, to update the actual items
24183         in the list box.
24184
24185 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24186
24187         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24188         to match .Net behaviour.
24189
24190 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24191
24192         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24193
24194 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24195
24196         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24197
24198 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24199
24200         * MessageBox.cs: Prevent potential NRE exception.
24201         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24202
24203 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24204
24205         * MessageBox.cs: Calculate the owner of a messagebox, also make
24206           it topmost. Fixes #78753
24207
24208 2006-08-14  Chris Toshok  <toshok@ximian.com>
24209
24210         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24211         programmatically move windows.  first, set the PPosition hint as
24212         well as the USPosition hint.  Second include some code from pdb
24213         that sets the window type to NORMAL when we set the transient for
24214         hint.  This is because, in the absence of a window type, metacity
24215         thinks any window with TransientFor set is a dialog, and refuses
24216         to let us move it programmatically.  fascists.
24217
24218 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24219
24220         * XplatUIX11.cs: When setting normal hints, take into consideration
24221           an different hints previously set so we don't delete them (fixes #78866)
24222
24223 2006-08-12  Chris Toshok  <toshok@ximian.com>
24224
24225         * ToolBarButton.cs: make Layout return a boolean, if something to
24226         do with the button's layout changed.
24227
24228         * ToolBar.cs:
24229         - add another parameter to Redraw, @force, which all existing
24230           calls set to true.
24231         - make the Layout function return a boolean which is true if the
24232           layout has actually changed.  Redraw now uses this (and @force)
24233           to determine when to invalidate.  At present the only place
24234           where @force can be false is the call from OnResize, when
24235           background_image == null.  So, resizing a toolbar when the
24236           layout doesn't change results in no drawing.
24237
24238 2006-08-12  Chris Toshok  <toshok@ximian.com>
24239
24240         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24241         the VScrollBar and HScrollbar reversed.  oops.
24242
24243         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24244         scrollbars.  we were assigning them twice (once in
24245         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24246         therefore causing two scrollbar resizes (and redraws?) to happen
24247         per grid resize.
24248
24249 2006-08-12  Chris Toshok  <toshok@ximian.com>
24250
24251         * ToolBarButton.cs: redraw the entire button if the theme tells us
24252         to.
24253
24254         * Theme.cs: add ToolBarInvalidateEntireButton.
24255
24256         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24257         buttons, just the border.
24258
24259         * ThemeNice.cs: redraw the entire toolbar button since we need to
24260         draw the highlight image.
24261
24262         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24263         we need to redraw the entire button (not just the border).
24264
24265 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24266
24267         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24268           for vertical bars. Fixes the mismatches shown by #78513
24269
24270 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24271
24272         * FileDialog.cs: If a saved/remembered path doesn't exist
24273           anymore, fall back to "Desktop".
24274
24275 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24276
24277         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24278           parent. It's apparently legal to not have one
24279         * XplatUIX11.cs:
24280           - SetZOrder: Don't try to set Z-Order on an unmapped window
24281           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24282             it unless the coordinates are negative
24283
24284 2006-08-10  Mike Kestner  <mkestner@novell.com>
24285
24286         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24287         when setting to null per msdn docs.  Fixes #78854.
24288
24289 2006-08-10  Chris Toshok  <toshok@ximian.com>
24290
24291         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24292         flickering by setting a clip rectangle on the Graphics when we
24293         need to redraw just a particular menuitem.  Also, rename "OnClick"
24294         to "OnMouseDown" to reflect what it actually is.
24295         
24296         * Form.cs: track the OnMouseDown change.
24297
24298 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24299
24300         * CommonDialog.cs: Properly inherit the CreateParams from the form
24301           and only change what we need. Fixes #78865
24302
24303 2006-08-10  Chris Toshok  <toshok@ximian.com>
24304
24305         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24306         flickering in flat mode (and most of the flickering in general) by
24307         only invalidating the button border (and not the entire rectangle)
24308         when the state changes.  A couple of cases still flicker:
24309         ToggleButtons, and the dropdown arrow case when the user mouse
24310         ups.
24311
24312 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24313
24314         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24315           for german keyboards. Numlock state shouldn't affect the behaviour
24316           of the Del key. Fixes bug #78291.
24317
24318 2006-08-10  Chris Toshok  <toshok@ximian.com>
24319
24320         * ListControl.cs: remove the items.Clear line from BindDataItems,
24321         as this is the first thing done by both subclasses in their
24322         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24323         passed -1, refresh the list.  This gets databinding working when
24324         the datasource is set on the list before the datasource is
24325         populated (as in wf-apps/ReportBuilder.)
24326
24327         * ComboBox.cs: remove the argument to BindDataItems.  This call
24328         should really go away, and be initiated by the ListControl code.
24329
24330         * ListBox.cs: same.
24331
24332 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24333
24334         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24335           if no data is in the document when the control is displayed
24336
24337 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24338
24339         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24340           yes (fixes #78806)
24341         * TextControl.cs: 
24342           - PositionCaret: Allow positioning of caret but don't call methods 
24343             requiring a handle if the window isn't created yet
24344           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24345           - owner_HandleCreated: Don't position the caret, just update it's 
24346             location. User might have already set a different position
24347
24348 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24349
24350         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24351           windows. Screws up the returned coordinates for child windows. 
24352           Fixes #78825. I'm hoping this doesn't break something, since the
24353           code was explicitly put in 8 months ago, but no bug was attached.
24354           Menus still seem to work properly.
24355
24356 2006-08-08  Chris Toshok  <toshok@ximian.com>
24357
24358         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24359         supposed to do - delay data binding until the EndInit call.  Also,
24360         make the table style collection's CollectionChangeAction.Refresh
24361         work properly.
24362
24363         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24364         (with action = Refresh) when a consituent table's MappingName is
24365         changed.
24366
24367 2006-08-08  Chris Toshok  <toshok@ximian.com>
24368
24369         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24370         Invalidate, since changing the text can change the size of the all
24371         toolbar buttons.
24372
24373 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24374
24375         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24376           we don't have it yet
24377
24378 2006-08-08  Chris Toshok  <toshok@ximian.com>
24379
24380         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24381         dialog, as this causes X errors later on, since we actually
24382         destroy the window.  Instead, .Hide() it.
24383
24384 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24385
24386         * ComboBox.cs: Added focus reflection for popup window
24387         * XplatUIX11.cs: 
24388           - Removed transient setting for non-app windows for now, not sure it
24389             was needed
24390           - Fixed logic checking if we have captions when deciding 
24391             override_redirect, WS_CAPTION is two bits and a 0 check was not
24392             sufficient
24393           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24394             complicated
24395         * Form.cs: 
24396           - AddOwnedForm: Don't just add the form to the list, call the property
24397             to ensure the driver is informed about the ownership as well
24398           - CreateHandle: Set the TopMost status in the driver if we have an owner
24399         * XplatUI.cs: Fixed debug statement
24400
24401 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24402         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24403           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24404           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24405           TrackBarRenderer.cs: Make constructor private.
24406         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24407         * ProfessionalColorTable.cs: Make properties virtual.
24408
24409 2006-08-06  Duncan Mak  <duncan@novell.com>
24410
24411         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24412         is not changing.
24413
24414 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24415         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24416           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24417           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24418           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24419           Initial import of new 2.0 classes.
24420
24421 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24422         * Application.cs: Add 2.0 VisualStyles properties.
24423
24424 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24425         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24426           XplatUIX11.cs: Create property to allow access to existing private
24427           variable "themes_enabled"
24428
24429 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24430
24431         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24432         file size, as otherwise our class libraries fail using windows. Fixes
24433         bug #78759.
24434
24435 2006-08-04  Jackson Harper  <jackson@ximian.com>
24436
24437         * Form.cs:
24438         * XplatUIX11.cs: Move the toolwindow window manager creation into
24439         the X11 driver, this way on win32 we can let windows create/handle
24440         the toolwindows.
24441
24442 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24443
24444         * PrintDialog.cs: Remove some redundant checks, add some others,
24445         clean some code, and move the focus to the text boxes when the
24446         values are incorrect.
24447
24448 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24449
24450         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24451
24452 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24453
24454         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24455           handled correctly. Fixes bug #79001.
24456
24457 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24458
24459         * PrintDialog.cs: The "Copies" numeric up down must have
24460         set the Minimum property to 1; only if the value is bigger
24461         than 1, activate "Collate" check box. This is the behaviour of .Net.
24462         Also modify the Document elements only if it is not null.
24463
24464 2006-08-03  Jackson Harper  <jackson@ximian.com>
24465
24466         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24467         length. (We have a larger array then actual node count).
24468                 
24469 2006-08-03  Jackson Harper  <jackson@ximian.com>
24470
24471         * ComboBox.cs: Don't show selection by default.
24472         - The SelectAll isn't needed here, since the focus code should do
24473         that
24474         - DDL style lists to manual selection drawing, so when they
24475         get/lose focus they have to invalidate.
24476
24477 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24478
24479         * TextBoxBase.cs: Don't always show all selections by default.
24480
24481 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24482         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24483           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24484           Fixed various typos.
24485
24486 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24487
24488         * Control.cs: Removing the controls in a ControlCollection with
24489           Clear now hides the controls as expected. Fixes bug #78804. 
24490
24491 2006-08-03  Jackson Harper  <jackson@ximian.com>
24492
24493         * Control.cs: Revert previous focus patch, it breaks reflector.
24494
24495 2006-08-03  Jackson Harper  <jackson@ximian.com>
24496
24497         * ComboBox.cs: Cleanup selection and focus with the combobox.
24498         This also eliminates some duplicated keyboard code, since now
24499         everything is handled by the main class.
24500         - Make list selection work on mouse up instead of down, to match
24501         MS.
24502
24503 2006-08-02  Jackson Harper  <jackson@ximian.com>
24504
24505         * Control.cs: Setting focus needs to go through the whole
24506         selection mechanism.
24507
24508 2006-08-02  Chris Toshok  <toshok@ximian.com>
24509
24510         * PrintPreviewDialog.cs: change MinimumSize to use
24511         base.MinimumSize so it works.
24512
24513 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24514
24515         * TextControl.cs:
24516           - UpdateCaret: Added sanity check in case caret isn't defined yet
24517           - Line.Delete: Now updating selection and caret markers if we're
24518             transfering a node (Properly fixes #78323)
24519           - SetSelectionEnd: Added sanity check
24520         * TextBoxBase.cs: Removed broken attempt to fix #78323
24521
24522 2006-08-01  Chris Toshok  <toshok@ximian.com>
24523
24524         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24525         Close() call is handled in Form, not here.
24526
24527 2006-08-01  Chris Toshok  <toshok@ximian.com>
24528
24529         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24530         layout/rendering.
24531
24532         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24533         for sizes < 100% zoom.  The code now aggressively attempts to keep
24534         from calling document.Print (), and tries not to use the scaling
24535         g.DrawImage whenever possible (it still does if you scale to >
24536         100%, since usually that involves huge images).
24537
24538         * PrintPreviewControl.cs: hook up the close button.
24539
24540 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24541         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24542           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24543           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24544           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24545           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24546           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24547           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24548           Removed [Serializable] for 2.0 Event Handlers.
24549
24550 2006-07-31  Jackson Harper  <jackson@ximian.com>
24551
24552         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24553         * TextControl.cs: Uncomment out the body of this method.
24554
24555 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24556
24557         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24558           standard cursors.
24559
24560 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24561
24562         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24563           that embed TextBox and need selections visible even if textbox is not
24564           focused to enforce that behaviour.
24565         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24566           selection drawing
24567
24568 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24569
24570         * TextControl.cs:
24571           - Added new SetSelectionStart/SetSelectionEnd overloads
24572           - Fixed viewport width assignment to be accurate
24573           - Adjusted alignment line shift calculations to allow cursor on right
24574             aligned lines to be always visible at the right border (like MS)
24575         * TextBoxBase.cs:
24576           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24577           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24578           - CalculateScrollBars: Use ViewPort size instead of window size, to
24579             properly consider space occupied by the border and scrollbars 
24580             (Fixes #78661)
24581           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24582             calculations; no longer leaves artifacts
24583           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24584             calculation bugs (Still missing right/center align calculations)
24585
24586 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24587
24588         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24589           use of both scroll rect and clip rect, as they do the same.
24590
24591 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24592
24593         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24594           in the event handler (fixes #78912)
24595
24596 2006-07-31  Chris Toshok  <toshok@ximian.com>
24597
24598         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24599         grid.ListManager.Count, since grid.ListManager might be null.
24600         This of course begs the question "why are we drawing rows for a
24601         grid with no list manager (and therefor no rows)?"  Fixes the
24602         crash in bug #78929.
24603
24604 2006-07-31  Chris Toshok  <toshok@ximian.com>
24605
24606         * RelatedPropertyManager.cs: Don't always chain up to the parent
24607         ctor.  instead, call SetDataSource if the parent's position is !=
24608         -1.  Fixes the crash in #78822.
24609
24610 2006-07-31  Chris Toshok  <toshok@ximian.com>
24611
24612         * DataGrid.cs (get_ListManager): use field instead of property
24613         accessors for datasource and datamember.
24614         (RowsCount): make internal again.
24615         (OnMouseDown): end edits before resizing columns/rows.
24616         (OnMouseUp): restart edits after resizing columns/rows.
24617
24618 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24619
24620         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24621           This fixes the situation where the last set cursor is displayed
24622           whenever the mouse is over scrollbars.
24623
24624 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24625
24626         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24627         Document properties, as well as initial values.
24628
24629 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24630
24631         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24632           and ClientEdge results in a 3-pixel border, which is
24633           wrong.
24634
24635 2006-07-28  Jackson Harper  <jackson@ximian.com>
24636
24637         * TreeNodeCollection.cs: Fix the clear method.
24638         - Fix the Shrink also
24639
24640 2006-07-27  Jackson Harper  <jackson@ximian.com>
24641
24642         * TreeView.cs: Make sure the visible order is computed when we
24643         attempt to size the scrollbars (for trees that mess with the
24644         scrolling when they shouldn't.
24645         - Make sure to give the scrollbars valid values.
24646
24647 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24648
24649         * XplatUIX11.cs: Move motion compression code to where it
24650           has less performance impact
24651
24652 2006-07-26  Jackson Harper  <jackson@ximian.com>
24653
24654         * UpDownBase.cs: When the control is selected make the child
24655         controls non selectable, so that a click on them won't do a
24656         focus/unfocus cycle.
24657         - Don't give focus to the text box when the spinner is selected.
24658         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24659
24660 2006-07-26  Chris Toshok  <toshok@ximian.com>
24661
24662         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24663         satisfied with this solution.  If the bitmaps are small, we should
24664         just cache them in the PrintPreviewDialog and draw them here.
24665         Also, the layout is broken for the 2-up and 3-up cases.
24666
24667         * Theme.cs: add PrintPReviewControlPaint.
24668
24669         * PrintPreviewDialog.cs: first pass implementation.
24670
24671         * PrintPreviewControl.cs: first pass implementation.  No
24672         scrollbars yet.
24673
24674         * PrintDialog.cs: only validate fields if that particular portion
24675         of the UI is enabled.  Also, set the document's controller to a
24676         PrintControllerWithStatusDialog wrapping the document's print
24677         controller.
24678
24679         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24680         bring up a SaveFileDialog (i hope we don't want to match the
24681         behavior of the crappy windows file entry) and set the
24682         PrinterSettings.PrintFileName accordingly.
24683
24684 2006-07-26  Jackson Harper  <jackson@ximian.com>
24685
24686         * ContainerControl.cs: Add a field that disables auto selecting
24687         the next control in a container when the container is activated.
24688         * UpDownBase.cs: Don't select the text box when the up down is
24689         selected.
24690
24691 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24692
24693         * XEventQueue.cs: Added methods for peeking (used for compression
24694           of successive events)
24695         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24696           mouse move events (fixes #78732)
24697
24698 2006-07-25  Jackson Harper  <jackson@ximian.com>
24699
24700         * UpDownBase.cs: Use an internal class for the textbox so that we
24701         can control focus.  the updown control should always have focus,
24702         if either the text area or the buttons are clicked.
24703         - Send the key messages to the textbox, since it never actually
24704         has focus
24705         - Activate and decativate the textbox caret.
24706
24707 2006-07-24  Jackson Harper  <jackson@ximian.com>
24708
24709         * Control.cs: Use the directed select when selecting a control,
24710         this way the container controls override will get called and the
24711         whole ActiveControl chain will get triggered.  TODO: probably need
24712         to make sure this gets done everywhere instead of the old
24713         Select(Control).
24714         * ContainerControl.cs: Implement the directed Select method to
24715         find and activate the correct child control.    
24716         
24717 2006-07-22  Mike Kestner  <mkestner@novell.com>
24718
24719         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24720         menu handling code so that clicks without a grab work too.
24721         [Fixes #78914]
24722
24723 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24724
24725         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24726           Added some small optimizations.
24727
24728 2006-07-21  Matt Hargett  <matt@use.net>
24729
24730         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24731
24732 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24733
24734         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24735           tests pass and match MS in some strange border cases.
24736
24737 2006-07-21  Chris Toshok  <toshok@ximian.com>
24738
24739         * ThemeWin32Classic.cs: handle drawing of the relation links and
24740         parent row buttons.
24741
24742         * Theme.cs: change args to DataGridPaintParentRow.
24743
24744         * DataGrid.cs: Don't use controls for the relation links and
24745         parent buttons, so we have to handle all their interactions in
24746         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24747         when we're navigating through child tables, so we can reinstate
24748         selection, expanded state, current cell, etc.
24749
24750 2006-07-20  Chris Toshok  <toshok@ximian.com>
24751
24752         * ToolBar.cs: When we redraw a button, for whatever reason,
24753         there's no reason to redraw the entire toolbar.  Also, don't call
24754         Control.Refresh from within Redraw, as it's much heavier than
24755         Invalidate (which is really what we want).
24756
24757 2006-07-20  Chris Toshok  <toshok@ximian.com>
24758
24759         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24760         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24761         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24762         traces from within a debug IBindingList datasource
24763         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24764         to work in a similar fashion.
24765
24766 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24767
24768         * ListBox.cs: Don't call Sort () when setting 
24769         the Sorted property to false (avoid an unnecessary sort).
24770
24771 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24772
24773         * ListControl.cs: DataSource should throw an ArgumentException
24774         instead of a normal exception when the argument is not of the 
24775         correct type.
24776
24777 2006-07-20  Mike Kestner  <mkestner@novell.com>
24778
24779         * Control.cs: add InternalPreProcessMessage to allow us to steal
24780         key events before MWF gets its paws on them.  Adapted from a
24781         suggestion by eno.
24782         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24783         up/down/left/right navigation. Override the new internal control
24784         method to steal the events since they never make it to WndProc.
24785         * ToolBarButton.cs: don't worry about pushed when setting hilight
24786         since the drawing code prefers pushed to hilight. Invalidate on 
24787         Hilight changes. Fixes #78547 and #78525.
24788
24789 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24790
24791         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24792           the canvas size. Fixes #78868
24793
24794 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24795
24796         * Splitter.cs: Track requested split position until first layout
24797           is performed. Fixes #78871
24798
24799 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24800
24801         * Application.cs: Removed code that forces 1.x for the version
24802           number if the version started with 0. Not sure why that code was
24803           there and I couldn't find any bugs that indicated we needed it.
24804           Fixes #78869
24805
24806 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24807
24808         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24809           ResetDefaults(), just write some output to the console until it's
24810           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24811
24812 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24813
24814         * PropertyGridView.cs: set StartPosition of drop down forms
24815         so they appear in correct initial spot.  Fixes #78190.
24816
24817 2006-07-19  Mike Kestner  <mkestner@novell.com>
24818
24819         * ThemeWin32Classic.cs: use parent background color when drawing
24820         flat toolbars.  Restructure the conditionals to make sure non-flat
24821         non-Divider toolbars are filled too.  Fixes #78837.
24822
24823 2006-07-19  Mike Kestner  <mkestner@novell.com>
24824
24825         * ListBox.cs: Sort on collection changes even if the handle
24826         isn't created yet.  Fixes #78813.
24827
24828 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24829
24830         * ListControl.cs: DisplayMember should never be null,
24831         and now we assign String.Empty when null is passed to it (this
24832         is the .Net way).
24833
24834 2006-07-17  Mike Kestner  <mkestner@novell.com>
24835
24836         * ListViewItem.cs: restructure Font and subitem Font handling 
24837         to hold a specific font and refer back to owner on null.
24838         Fixes #78761.
24839
24840 2006-07-17  Mike Kestner  <mkestner@novell.com>
24841
24842         * ToolBar.cs: bandaid for side-effect of previous patch which was
24843         discarding explicit heights for non-AutoSize toolbars.  Need to
24844         extend my format tester to deal with AutoSize=false. Fixes #78864.
24845
24846 2006-07-15  Jackson Harper  <jackson@ximian.com>
24847
24848         * LabelEditTextBox.cs:
24849         * TreeView.cs: Use a new LabelEdit class for node editing, this
24850         class automatically 'closes' itself when it gets the enter key or
24851         loses focus.
24852         - Use the client rectangle when setting the trees scrollbars, so
24853         border style is taken into account.
24854         
24855 2006-07-14  Jackson Harper  <jackson@ximian.com>
24856
24857         * TreeNode.cs:
24858         * TreeView.cs: Make the editing work similar to MSs, firing the
24859         events correctly and ending edits correctly.
24860
24861 2006-07-14  Mike Kestner  <mkestner@novell.com>
24862
24863         * ToolBarButton.cs:
24864         * ToolBar.cs: layout restructuring and redraw enhancements to support
24865         formatting changes gracefully, like setting TextAlign, ImageList, 
24866         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24867         of the MS controls.  Things like flat toolbars ignoring button size
24868         but becoming constant sized at the largest button's size.  Normal
24869         toolbars with an image set cannot be shrunk smaller than the image,
24870         but text can be clipped/ignored.
24871         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24872         is zero.  Seems like DrawString should be smart enough to not put
24873         anything on screen though. Also trim labels and ellipsize at the char
24874         boundary, not word.
24875         Fixes #78711 and #78483.
24876
24877 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24878
24879         * FolderBrowserDialog.cs: Disable "New Folder" button and
24880           "New Folder" contextmenu menuitem if a folder like "My Computer"
24881           is selected.
24882
24883 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24884
24885         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24886         * FolderBrowserDialog.cs:
24887           - Use MWFConfig to store and read size and position settings
24888           - Added code to create a new folder (button or context menu).
24889             Use TreeView labeledit to change the name of the new folder.
24890
24891 2006-07-14  Jackson Harper  <jackson@ximian.com>
24892
24893         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24894         when the tree is scrolled we end editing.
24895
24896 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24897
24898         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24899           Down arrows
24900
24901 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24902
24903         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24904         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24905         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24906         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24907         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24908         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24909         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24910         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24911         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24912         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24913         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24914         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24915         ListViewItemSelectionChangedEventHandler.cs,
24916         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24917         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24918         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24919         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24920         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24921         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24922         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24923         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24924         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24925         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24926         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24927         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24928         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24929         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24930         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24931         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24932         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24933         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24934         WebBrowserNavigatingEventHandler.cs, 
24935         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24936
24937 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24938
24939         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24940         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24941         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24942         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24943         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24944         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24945         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24946         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24947         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24948         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24949         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24950         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24951         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24952         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24953         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24954         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24955         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24956         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24957         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24958         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24959         ListViewItemStates.cs, MaskFormat.cs: Added
24960
24961 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24962
24963         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24964         Patch from eno for bug 78558.
24965         
24966 2006-07-13  Jackson Harper  <jackson@ximian.com>
24967
24968         * TreeView.cs: When an edit is finished make sure that the
24969         selected node is visible.
24970         - When setting the top/bottom use the scrollbars is_visible, so
24971         everything will be set correctly even if the tree isn't visible
24972         yet.
24973
24974 2006-07-13  Jackson Harper  <jackson@ximian.com>
24975
24976         * ComboBox.cs: Revert the item->index part of my previous patch.
24977         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24978         the edit box has lost focus (duh).
24979         - Just make the edit box not visible when we get return, that will
24980         take the focus, which will call EndEdit
24981         * TreeNode.cs When we start editing, notify the treeview.
24982
24983 2006-07-12  Jackson Harper  <jackson@ximian.com>
24984
24985         * ComboBox.cs: Clear out old items before setting the item list.
24986         This prevents databound controls from having their items added
24987         twice.
24988         - Switch the combobox to use indices whereever possible instead of
24989         using Item's.  This allows usto navigate through lists that have
24990         more then one item with the same string value (ie a, b, b, a).
24991         - Scroll the listboxes scrollbar when a non visible item is
24992         highlighted
24993         - Allow keypress to cycle through all the possible values. For
24994         example if you have b1, b2, b3 and hold down the B key all the
24995         values will be cycled through.
24996         
24997 2006-07-12  Jackson Harper  <jackson@ximian.com>
24998
24999         * TextBoxBase.cs:
25000         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
25001         this using the internal methods.
25002         * Control.cs: Add OnGotFocusInternal.  A new method that allows
25003         controls to "override" OnGotFocus and change focus behavior if
25004         needed.
25005         - Same thing for LostFocus
25006         * ComboBox.cs: Pass off focus to the text control properly.
25007
25008 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
25009
25010         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
25011         * FolderBrowserDialog.cs: Almost a complete rewrite.
25012           - Better support for Environment.Specialfolders
25013           - Added support for MWFVFS
25014           - Made setting SelectedPath work
25015
25016 2006-07-12  Jackson Harper  <jackson@ximian.com>
25017
25018         * Control.cs: Optimze getting all the controls.
25019
25020 2006-07-11  Jackson Harper  <jackson@ximian.com>
25021
25022         * ContainerControl.cs: Override SETFOCUS in the container control,
25023         so that it is not selected on mouse click.
25024
25025 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
25026
25027         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
25028           Hopefully we will have a better way once all of focus is complete.
25029
25030 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
25031
25032         * ThemeWin32Classic.cs: Commented out some debug code and fixed
25033           a compile error with csc.
25034
25035 2006-07-11  Jackson Harper  <jackson@ximian.com>
25036
25037         * Control.cs: When hiding a control only select the next control
25038         if the current control was focused.
25039         - Don't handle enter/leave when setting/killing focus, this is
25040         done by the container control.
25041         - Remove is_selected, it's not needed anymore.
25042         - Add utility methods for selecting a child control, and for
25043         firing the Enter/Leave events.
25044         * ContainerControl.cs: When a control is activated fire the
25045         enter/leave events.
25046         - Don't wrap when processing the tab key, so that focus can be
25047         moved outside of the container.
25048         - Use the correct active control
25049
25050 2006-07-11  Jackson Harper  <jackson@ximian.com>
25051
25052         * ComboBox.cs: Remove some debug code that was blinding me.
25053         * UpDownBase.cs: These controls actually aren't implicit, they are
25054         visible to the user.
25055
25056 2006-07-10  Chris Toshok  <toshok@ximian.com>
25057
25058         * DataGrid.cs: move back to the is_adding boolean field.  god i
25059         hate this is_editing/is_adding/is_changing stuff.
25060
25061 2006-07-10  Chris Toshok  <toshok@ximian.com>
25062
25063         * DataGridTableStyle.cs: just check if the property type is bool.
25064         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
25065         Don't use CanRenderType.
25066
25067         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
25068         if our text == NullText.  Remove CanRenderType.
25069
25070         * DataGridBoolColumn.cs: nuke CanRenderType.
25071
25072         * DataGrid.cs: reenable some code to end the current edit inside
25073         of set_CurrentCell.  This fixes the other 1.1.16 regression.
25074         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
25075         Also, remove the visible_row_count arg from CalcRowHeaders, since
25076         we don't need to worry about the actual height of the area.
25077
25078 2006-07-10  Chris Toshok  <toshok@ximian.com>
25079
25080         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
25081         mode, just return.
25082
25083         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
25084         the real sense of the IsInEditOrNavigateMode property (true =
25085         navigate, false = edit).  Also, update OnKeyPress to reflect this.
25086
25087         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
25088         column style exists, we still need to set its property descriptor
25089         to match up with our list manager.
25090
25091 2006-07-10  Chris Toshok  <toshok@ximian.com>
25092
25093         * ThemeWin32Classic.cs: implement the new row/header painting
25094         approach.  The parent row painting will likely go away and
25095         replaced with label controls, but the rest seems to work ok (and
25096         efficiently).
25097
25098         * Theme.cs: change the way we draw datagrid rows.  we don't draw
25099         the row headers as a block now.  Instead we draw them in the
25100         normal draw-row loop.  Add some calls for drawing parent rows and
25101         relation rows.
25102
25103         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25104         a default table style.  Set the defaults from ThemeEngine.Current,
25105         not SystemColors.  Fix lots of misc issues with property setters.
25106
25107         * DataGrid.cs: move loads of style information out of this class
25108         as it's being duplicated with DataGridTableStyle.  keep track of a
25109         special DataGridTableStyle for the properties we used to mirror
25110         here.  Switch all the style properties to access this table style
25111         instead of instance fields of this class.  Also add a internal
25112         class to represent parent rows (more needs to be stored here, like
25113         the selection state from the parent table, as well as the
25114         expansion state.)  Also, for datasources with relations, do the
25115         right thing for collapse/expand, and add support for the
25116         navigation/parent row buttons.
25117
25118         Lastly, fix the crash in the 1.1.16 build.
25119
25120         * GridTableStylesCollection.cs: make the explicit interface
25121         implementations call the class's methods as opposed to duplicating
25122         them.
25123
25124         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25125         0 so the text doesn't jump around when we move the cursor.
25126
25127 2006-07-10  Jackson Harper  <jackson@ximian.com>
25128
25129         * TextBoxBase.cs:
25130         * ListBox.cs: Match MS's ToString (this makes debugging focus
25131         stuff infinitely easier).
25132
25133 2006-07-10  Jackson Harper  <jackson@ximian.com>
25134
25135         * Control.cs (SelectNextControl): When checking the control's
25136         parent use this instead of ctrl.parent so that null can be passed
25137         to SelectNextControl. (I have unit tests for this).
25138         - Remove unused var.
25139
25140 2006-07-10  Chris Toshok  <toshok@ximian.com>
25141
25142         * CurrencyManager.cs: correct one regression, the removal of the
25143         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25144         Refresh() correctly, and fix some event emission in
25145         ListChangedHandler.
25146
25147 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25148
25149         * FileDialog.cs: Don't use brackets for new folders if they exist
25150           under *nix. Instead use -(number of existing folders +1).
25151
25152 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25153
25154         * FileDialog.cs:
25155           - Fixed really nasty bug #78771
25156           - Don't block the whole GUI when reading directories with a lot of
25157             entries. Use an other thread instead and call BeginInvoke to
25158             update the ListView in MWFFileView
25159
25160 2006-07-07  Chris Toshok  <toshok@ximian.com>
25161
25162         * Control.cs (Dispose): release any Capture when disposing.
25163
25164 2006-07-07  Chris Toshok  <toshok@ximian.com>
25165
25166         * LinkLabel.cs (Select): if we chain up to the parent, set
25167         focused_index to -1 so we'll search for the first available link
25168         the next time the user tabs into us.  Also, if the direction is
25169         backward and focused_index == -1, start the search from the last
25170         element.
25171
25172 2006-07-07  Chris Toshok  <toshok@ximian.com>
25173
25174         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25175         is beyond the end of the text, don't do anything.
25176         (CreateLinkPieces): set our ControlStyles.Selectable based on
25177         whether or not we have any links.
25178         (Link.Invalidate): use a loop instead of foreach.
25179         (Link.set_Start): null out owner.sorted_links so it'll be
25180         recreated by CreateLinkPieces.
25181
25182 2006-07-06  Chris Toshok  <toshok@ximian.com>
25183
25184         * LinkLabel.cs: revert the SetStyle change.
25185
25186 2006-07-06  Chris Toshok  <toshok@ximian.com>
25187
25188         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25189         (OnEnableChanged): s/Refresh/Invalidate
25190         (OnGotFocus): if we have a focused index already, refocus it (so
25191         if we mouse out/in to the window it'll focus the right link).
25192         (OnKeyDown): move the tab handling out of here.
25193         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25194         when we lose focus.
25195         (OnMouseDown): don't Capture here - Control handles it.  Also,
25196         focus the active link.
25197         (OnMouseUp): don't deal with Capture.
25198         (OnPaintBackgroundInternal): remove.
25199         (OnTextAlignChanged): CreateLinkPieces before calling the
25200         superclass's method.
25201         (OnTextChanged): call CreateLinkPieces before calling superclass's
25202         method.
25203         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25204         move around.
25205         (Select): implement this, moving the selection between different
25206         links, and call parent.SelectNextControl if we don't have another
25207         link to focus in the given direction.
25208         (CreateLinkPieces): call Invalidate instead of Refresh.
25209         
25210 2006-07-06  Chris Toshok  <toshok@ximian.com>
25211
25212         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25213         new LinkLabel internals.
25214
25215         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25216         over pieces looking for active/focused/etc links.  also, deal with
25217         runs of text (and links) with embedded \n's in them, and use
25218         MeasureCharacterRanges instead of MeasureString to figure out the
25219         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25220         two-step.
25221
25222 2006-07-04  Jackson Harper  <jackson@ximian.com>
25223
25224         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25225         XKB or key auto repeat, do it manually.  Without key auto repeat,
25226         when a key is held down we get key press, key release, key press,
25227         key release, ... with auto repeat we get key press, key press, key
25228         press ..., and then a release when the key is actually released.
25229
25230 2006-07-03  Jackson Harper  <jackson@ximian.com>
25231
25232         * TabControl.cs:
25233         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25234         rules, they are always control color regardless of the background
25235         color.
25236
25237 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25238
25239         * FileDialog.cs: Added internal class MWFConfig.
25240           Removed Registry support and replaced it with support for the new
25241           MWFConfig class. See MWFConfig comments for more information.
25242
25243 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25244
25245         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25246           rectangle. Added some patches from eno from bug #78490 and fixed
25247           the arrow position for small up and down CPDrawScrollButtons.
25248
25249 2006-06-30  Jackson Harper  <jackson@ximian.com>
25250
25251         * InternalWindowManager.cs: Remove some debug code.
25252         * Form.cs: When an MdiParent is set to null, the window is
25253         "detatched" and becomes a normal window.
25254         * MdiClient.cs: Don't bring the new child form to the front until
25255         it is activated (setting it as active does this), this makes the
25256         previously active forms titlebar get redrawn as inactive.
25257
25258 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25259
25260         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25261           with later controls
25262
25263 2006-06-29  Mike Kestner  <mkestner@novell.com>
25264
25265         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25266         arrow in keynav state.  Fixes #78682.
25267
25268 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25269
25270         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25271           order (fixes #78393)
25272
25273 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25274
25275         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25276           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25277           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25278           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25279           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25280           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25281           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25282           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25283           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25284           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25285           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25286           values)
25287
25288 2006-06-28  Mike Kestner  <mkestner@novell.com>
25289
25290         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25291
25292 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25293
25294         * PropertyGrid.cs,
25295           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25296           item lines from other area (It also makes BackColor consistent and
25297           compatible with .NET). Fixed bug #78564.
25298
25299 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25300
25301         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25302         Patch from Eno for #78555.
25303
25304 2006-06-27  Chris Toshok  <toshok@ximian.com>
25305
25306         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25307
25308         * DataGridColumnStyle.cs: same.
25309
25310         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25311         
25312         * DataGridDrawingLogic.cs: nuke.
25313
25314 2006-06-27  Chris Toshok  <toshok@ximian.com>
25315
25316         * DataGridTableStyle.cs: clean up the constructors, and build the
25317         list of child relations for this table.  I have no idea if this is
25318         where we should be doing it (it probably isn't), but since we're
25319         already iterating over the properties..
25320
25321         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25322         struct and array for keeping track of row information, similar to
25323         what's shown in a hack on
25324         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25325
25326         * Theme.cs: be consistent about the naming of DataGrid methods,
25327         prefering ColumnWidths and RowHeights over columnsWidths and
25328         RowsHeights.
25329
25330         * ThemeWin32Classic.cs: same, and also add support for variable
25331         sized rows (and the +/- expansion icons for related rows).
25332
25333 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25334
25335         * TextBoxBase.cs: Applied Eno's patch from #78660
25336
25337 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25338
25339         * Form.cs (ScaleCore): We don't want to scale our form if it's
25340           state is minimized or maximized, but we still need to scale our
25341           child windows. Also, added try/finally block to ensure layout
25342           gets reset (Fixes #78697)
25343
25344 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25345
25346         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25347
25348 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25349
25350         * Form.cs: Fixed c+p error and added check to resize form if minimum
25351           size is bigger than current size (Fixes #78709)
25352
25353 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25354
25355         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25356
25357 2006-06-26  Mike Kestner  <mkestner@novell.com>
25358
25359         * ComboBox.cs: only do Keypress handling in the combo when there  
25360         are items in the collection. Fixes #78710.
25361
25362 2006-06-26  Chris Toshok  <toshok@ximian.com>
25363
25364         * Binding.cs: make this work bi-directionally.  also, clear up
25365         other mixups between Push/Pull Data (e.g. we're supposed to pull
25366         data when validating).
25367
25368         * BindingManagerBase.cs: trim some fully qualified collection
25369         types.
25370
25371         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25372
25373 2006-06-23  Chris Toshok  <toshok@ximian.com>
25374
25375         * PropertyManager.cs: It appears (according to the unit tests)
25376         that PropertyManager doesn't use
25377         PropertyDescriptor.AddValueChanged to track propery value changes
25378         in its datasource, but uses the same scheme as Binding, where it
25379         looks for a <Property>Changed event and binds to it.
25380
25381         Also, according to the docs, IsSuspended always returns false for
25382         a property manager with a non-null datasource.
25383
25384 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25385
25386         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25387           need to update the actual DialogResult. (Fixes #78613)
25388
25389 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25390
25391         * Form.cs (ShowDialog): Release any captures before running the
25392           new message pump (fixes #78680)
25393
25394 2006-06-22  Mike Kestner  <mkestner@novell.com>
25395
25396         * ListView.cs: Layout column widths properly in details mode even 
25397         if HeaderStyle.None is set.  Fixes #78691.
25398
25399 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25400
25401         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25402
25403 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25404
25405         * Control.cs (ContainsFocus): Using new driver method to get focused
25406           window, instead of trying to use internal tracking var, which can
25407           recursion issues (Fixes #78685)
25408         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25409           XplatUIWin32.cs: Added GetFocus method to return focused window
25410
25411 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25412
25413         * ColorDialog.cs: when the mouse button is pressed inside the color
25414         matrix, don't let the cursor move out of it until the button is
25415         released, which is the behavior on windows. Changed 'colours' by
25416         'colors' to use the same word consistently.
25417
25418 2006-06-21  Chris Toshok  <toshok@ximian.com>
25419
25420         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25421         child relation and back, using a stack).  Also, remove
25422         GetDataSource and the code that calls it - it's not needed.  Also,
25423         track CurrencyManager.ListName's removal.
25424
25425 2006-06-21  Chris Toshok  <toshok@ximian.com>
25426
25427         * CurrencyManager.cs: push some of the original type checking from
25428         BindingContext.CreateBindingManager to here, and remove some of
25429         the finalType stuff.  Need more tests to make sure I've got the
25430         ListName part right, and we might need more in SetDataSource.
25431
25432         * PropertyManager.cs: add a ctor that takes just the datasource,
25433         and no property name.  Make SetDataSource work with a null
25434         property_name, and make Current return the data_source if the
25435         property descriptor is null.  this makes 'string foo = "hi";
25436         BindingContext[foo].Current' return "hi" as it should.
25437
25438         * RelatedCurrencyManager.cs: make this code more generic - there's
25439         no reason the parent manager has to be CurrencyManager, and
25440         there's no reason to pass the DataRelation.  It suffices to use a
25441         BindingManagerBase and PropetyDescriptor.
25442
25443         * RelatedPropertyManager.cs: make a similar change here.
25444         
25445         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25446         flower I knew it could be.
25447
25448 2006-06-20  Chris Toshok  <toshok@ximian.com>
25449
25450         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25451         data in the source has changed and we need to update the control,
25452         so s/PullData/PushData.
25453
25454         * CurrencyManager.cs: Refresh is meant to update the control from
25455         data in the datasource.  So, s/PullData/PushData.
25456
25457         * BindingContext.cs: add more ugliness (we weren't handling the
25458         case where data_source = DataTable and data_member = column_name).
25459
25460         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25461         from the perspective of the datasource.  PullData pulls from the
25462         control, PushData pushes to the control.
25463
25464 2006-06-20  Chris Toshok  <toshok@ximian.com>
25465
25466         * BindingContext.cs: rewrite the CreateBindingManager code to
25467         handle navigation paths more or less properly.  This could
25468         definitely stand some more work, in particular to push the
25469         recursion up to the toplevel.  But that relies on fixes in other
25470         places (System.Data comes to mind).
25471
25472         Also, move to a flat hashtable (and encode the twolevel nature of
25473         the dictionary into the hash key).  This lets us implement the
25474         IEnumerable.GetEnumerator method.
25475
25476         * RelatedCurrencyManager.cs: new class.  Update our view based on
25477         our relation and our parent CurrencyManager's position.
25478
25479         * CurrencyManager.cs: split out some logic from the ctor into
25480         SetView, so it can be called from the new RelatedCurrencyManager
25481         subclass.
25482
25483         * RelatedPropertyManager.cs: new class.  Update our datasource
25484         based on the position of our parent CurrencyManager.
25485
25486         * PropertyManager.cs: split out some logic from the ctor into
25487         SetDataSource, so it can be called from the new RelatedDataSource
25488         subclass.  Also, make the Current getter return the value
25489         of the PropertyDescriptor, not the data_source.
25490
25491         * Binding.cs: no need to duplicate the string splitting code here.
25492
25493 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25494
25495         * Control.cs:
25496           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25497             of the control is not altered, even though  we might be changing the
25498             internal state of the control (#78458)
25499           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25500             OnEnabledChanged, to allow easy altering of any child window state
25501           - OnEnabledChanged: Added code to enable/disable driver window state
25502           - OnParentEnabledChanged: Instead of firing the event, call 
25503             OnEnabledChanged, which will fire the event and also a) set driver
25504             window state and pass the enabled state to any grandchildren (#78458)
25505
25506 2006-06-19  Jackson Harper  <jackson@ximian.com>
25507
25508         * InternalWindowManager.cs: We don't set the cursor explicitly
25509         thats done via the response to NCHITTESTs.
25510         - Don't need to adjust for titlebar heights anymore, the
25511         coordinates are coming in the correct coordinates now (see peters
25512         last patch).
25513
25514
25515 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25516
25517         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25518           being translated relative to whole window, instead of client window.
25519           That caused broken offsets on mouseclick (and caused gas for our
25520           InternalWindowManager)
25521
25522 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25523
25524         * TextControl.cs:
25525           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25526           - Undo(): Added replay of cursor move on DeleteChars action; added
25527             calling Undo() again if a recorded cursor move is invalid (to
25528             ensure that some action is performed on Undo)
25529         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25530
25531 2006-06-16  Jackson Harper  <jackson@ximian.com>
25532
25533         * MdiClient.cs: Instead of just sizing maximized windows when
25534         there is a resize we also have to adjust the Y of minimized
25535         windows, so they stay pinned to the bottom of the mdi container.
25536         - Eliminate separate tracking of the active control, we can just
25537         get this from the controls collection.
25538         - Paint the decorations for the newly activated titlebar so we get
25539         a pretty blue bar.
25540         * InternalWindowManager.cs:
25541         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25542         even if they are a tool window.
25543         
25544 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25545
25546         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25547           undo buffer, these can happen when text was deleted and the cursor
25548           was recorded first. Since we will also have a recorded cursor
25549           after the delete this is not an issue. (Fixes #78651)
25550
25551 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25552
25553         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25554           instead properly track control states internally (allows us to
25555           remove is_selected from Control)
25556
25557 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25558
25559         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25560         whose width is not a multiple of 8.
25561
25562 2006-06-13  Jackson Harper  <jackson@ximian.com>
25563
25564         * MdiClient.cs:  Only maximize the next child if the current one
25565         is maximized.
25566
25567 2006-06-13  Chris Toshok  <toshok@ximian.com>
25568
25569         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25570         modified.  Also, guard against grid or grid_drawing being null in
25571         Invalidate.
25572
25573         * DataGrid.cs: Reformat tons of getters/setters.  In the
25574         DataMember setter, just call SetNewDataSource instead of
25575         duplicating some of its functionality.  In SetNewDataSource, don't
25576         check ListManager for null, since the property getter creates the
25577         object if needed.
25578
25579         * DataGridTableStyle.cs: don't set TableStyle or call
25580         SetDataGridInternal on the column here, it's done in
25581         GridColumnStylesCollection.Add.
25582
25583         * GridColumnStylesCollection.cs: fix all the explicit interface
25584         implementations to just call our methods.  Nuke AddInternal() and
25585         move the body of it to Add().  Also, add a call to
25586         column.SetDataGridInternal to Add().
25587
25588         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25589         base()+duplicate code.  Also, use the Format property instead of
25590         format to generate an Invalidate ala MS.  Lastly, create the
25591         textbox here, unconditionally.
25592         (set_Format): call Invalidate.
25593         (get_TextBox): no need to call EnsureTextBox.
25594         (Commit): remove the message box.
25595         (Edit) remove the call to EnsureTextBox.
25596         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25597         (EnterNullValue): no need to check textbox for null.
25598         (HideEditBox): no need to check textbox for null.
25599         (SetDataGridInColumn): add the textbox to the grid's controls.
25600         (EnsureTextBox): nuke.
25601         
25602 2006-06-13  Jackson Harper  <jackson@ximian.com>
25603
25604         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25605         and redraw the buttons when needed. Unhook when the window is
25606         unmaximized.
25607         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25608         needs this so that it can redraw its buttons when the menu is
25609         repainted.
25610         * InternalWindowManager.cs:
25611         * Form.cs: The method order has changed for DrawMaximizedButtons,
25612         so that it can be a PaintEventHandler.
25613         
25614 2006-06-13  Jackson Harper  <jackson@ximian.com>
25615
25616         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25617         window is activated and maximized, even if it wasn't before.
25618         - When  a new window is activated repaint the decorations of the
25619         old one, so that it no longer has the Active "look" (the blue
25620         titlebar).
25621         * InternalWindowManager.cs: Open up CreateButtons to base classes
25622         so they can recreate the buttons on state changes.
25623         - If a window is maximized give it all three buttons
25624         * MdiWindowManager.cs: Create the titlebar buttons when the state
25625         is changed, this is needed because a toolwindow will not have all
25626         three buttons until it is maximized.
25627
25628 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25629
25630         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25631           Fixed bug #78609.
25632
25633 2006-06-12  Jackson Harper  <jackson@ximian.com>
25634
25635         * KeysConverter.cs: Make sure we handle the Ctrl special case
25636         if its the only key.
25637         
25638 2006-06-12  Jackson Harper  <jackson@ximian.com>
25639
25640         * Theme.cs: Add a method to get the size of a managed window
25641         toolbar button.
25642         * InternalWindowManager.cs: Remove the ButtonSize property, this
25643         should be retrieved from the theme.
25644         * MdiWindowManager.cs: Get the button size from the theme
25645         * ThemeWin32Classic.cs: Make the method to get the managed window
25646         titlebar button size public.
25647         - Handle the different button sizes of maximized toolwindows
25648         (should match any maximized window).
25649         - Get the titlebar height from the theme, not the WM (which gets
25650         it from the theme).
25651
25652 2006-06-12  Jackson Harper  <jackson@ximian.com>
25653
25654         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25655         event down to the mdi window manager.
25656         - Expose some extra stuff to base classes
25657         - Make sure to end the Capture on an NC Mouse up, so that we can
25658         get double clicks properly, and the sizing doens't stick.
25659         - When doing PointToClient contain it in the workable desktop
25660         area, this prevents windows from changing size when the cursor is
25661         pulled outside of the working area while sizing.
25662         * MdiWindowManager.cs: When we get a double click maximize the
25663         window.
25664         - Reset the cursor after handling mode changes.
25665
25666 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25667
25668         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25669           current desktop, instead of just assuming a 0, 0 origin. This
25670           is needed for our internal window manager, to know the top
25671           margin of the desktop
25672
25673 2006-06-12  Chris Toshok  <toshok@ximian.com>
25674
25675         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25676         we need this to get rid of the selected background in the bool
25677         column.
25678         (CancelEditing): move the ConcedeFocus call to above the Abort
25679         call.  Also, set is_changing to false and invalidate the row
25680         header if we were changing before.
25681         (ProcessKeyPreviewInternal): remove, since noone outside this
25682         class calls it anymore.  Roll the code into ProcessKeyPreview.
25683         (EndEdit): remove the internal version.
25684         (InvalidateCurrentRowHeader): make private.
25685
25686         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25687         Keys.Escape handling (and with it the last call to
25688         DataGrid.EndEdit from outside the class.)
25689
25690
25691 2006-06-12  Chris Toshok  <toshok@ximian.com>
25692
25693         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25694         (OnKeyPress): set isedit to true.
25695         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25696         already handled by the grid.
25697
25698         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25699         right.  ugh.
25700         (set_DataSource): SetDataSource always returns true, so stop
25701         putting it in an if statement.
25702         (EndEdit): get rid of some {}'s
25703         (ProcessGridKey): return true in case Keys.Escape.
25704         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25705         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25706         PositionChanged, stopped connecting to CurrentChanged.
25707         (GetDataSource): simplify this a bunch.
25708         (SetDataSource): change return type from bool to void.
25709         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25710         to this, and make sure we don't set ListManager.Position inside
25711         set_CurrentCell.
25712         (OnListManagerItemChanged): if we're passed an actual index,
25713         redraw that row.
25714
25715         * CurrencyManager.cs (set_Position): don't call PullData here.
25716
25717 2006-06-09  Jackson Harper  <jackson@ximian.com>
25718
25719         * TreeNode.cs:  Recalculate the visible order before doing the
25720         Expand/Collapse Below calls, because those calls generate an
25721         expose.
25722         - Reduce calls to the TreeView property, which is mildly expensive
25723         by using a local var.
25724         * Form.cs: Layout the MDI child windows when creating the parent
25725         form.
25726         - Don't use the internal constructor anymore
25727         * MdiClient.cs: use the parent form width/height (if available)
25728         when laying out the child windows, we do this because the
25729         mdiclient isn't docked yet when the initial layout is done.
25730         - Don't need an internal constructor anymore.
25731
25732 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25733
25734         * FileDialog.cs: handle access errors when trying to create a folder
25735         or changing to a directory. No need to initialize out parameters.
25736
25737 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25738
25739         * FileDialog.cs: Append a number when creating a new folder if the
25740           folder already exists (use parenthesis instead of square brackets)
25741
25742 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25743
25744         * FileDialog.cs:
25745           - Disabled registry support for windows and added better registry
25746             error checking for other systems (need to investigate why it
25747             works perfectly on my system)
25748           - If a folder already exist show an error MessageBox instead of
25749             trying to create an indexed name.
25750           - Fixed a non intentional typo.
25751
25752 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25753
25754         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25755
25756 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25757
25758         * FileDialog.cs: When creating a new folder don't crash if the
25759           folder already exists.
25760
25761 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25762
25763         * FileDialog.cs: Allmost a complete rewrite.
25764           - added a "virtual" file system that handles the differences
25765             between unix and windows file systems (especially the directory
25766             structure). Moved most of the directory and file handling code
25767             into the vfs.
25768             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25769             UnixFileSystem and FSEntry.
25770           - Recently used folder/directory, size, location and used file names
25771             (file name ComboBox) are now stored in the registry and get read
25772             before the dialog shows up (fixes part 6 of bug #78446).
25773           - Creation of new folders/directories is now possible (context menu
25774             or ToolBar). Added TextEntryDialog for this that fills in the gap
25775             until ListView.LabelEdit works.
25776           - Fixed cursor handling (bug #78527) and focus handling for
25777             PopupButtonPanel
25778           - Various "Search in" ComboBox enhancements. The content of the
25779             dropdown listbox now almost matches ms.
25780           - Changed the behaviour when the user switches to SpecialFolder
25781             Recent to show the ListView in View.Details.
25782           - Beside using the ToolBar to change the View property of the
25783             file ListView it is now possible to use the context menu too.
25784
25785 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25786
25787         * ComboBox.cs: Don't create a new ObjectCollection when an item
25788           gets inserted. Just insert the item in the existing object_items
25789           ArrayList.
25790
25791 2006-06-08  Jackson Harper  <jackson@ximian.com>
25792
25793         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25794         that the treeview and root node checks are done also, this fixes a
25795         regression i caused in the unit tests.
25796
25797 2006-06-07  Wade Berrier <wberrier@novell.com> 
25798
25799         * RichTextBox.cs: More ISO8859-1 -> unicode
25800
25801 2006-06-07  Mike Kestner  <mkestner@novell.com>
25802
25803         * ComboBox.cs : use items to hold highlight/selection so that
25804         collection insertions don't require synchronization.
25805
25806 2006-06-07  Jackson Harper  <jackson@ximian.com>
25807
25808         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25809         routine.  We now always keep the sized edge at the cursor instead
25810         of computing movement and adjusting rects.  There is one buglet
25811         with this method though when the cursor is moved over area that
25812         the window can not expand too (such as the toolbars on the desktop).
25813
25814 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25815
25816         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25817         here. Fixes crash on startup in AlbumSurfer.
25818
25819 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25820
25821         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25822           values
25823
25824 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25825
25826         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25827         statement to avoid calling XNextEvent which will block if another thread
25828         took the event that we were expecting. Fixes bug #78605.
25829
25830 2006-06-07  Mike Kestner  <mkestner@novell.com>
25831
25832         * ListView.cs : isolated checkbox clicking from the selection logic.
25833         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25834
25835 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25836
25837         * Form.cs: Check that the value passed to Form.DialogResult
25838         is a valid enum value.
25839
25840 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25841
25842         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25843         Computer'. Clicking it in the network view goes to 'My Computer'.
25844         Added CIFS filesystem type. Display the mount point of filesystems.
25845         Avoid duplicate mount points (happens for me with CIFS);
25846
25847 2006-06-06  Jackson Harper  <jackson@ximian.com>
25848
25849         * InternalWindowManager.cs: Draw the maximized windows buttons
25850         when resizing.
25851
25852 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25853
25854         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25855         all other dialogs. Fixes bug #78585.
25856
25857 2006-06-06  Mike Kestner  <mkestner@novell.com>
25858
25859         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25860         Only invalidate checkbox on checkstate changes to avoid flicker.
25861         * ListBox.cs : avoid unselect/select when clicking selected item.
25862         avoid reselection flicker for already multiselected items.
25863         Fixes #78382.
25864
25865 2006-06-06  Jackson Harper  <jackson@ximian.com>
25866
25867         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25868         the parent form so that the menu is removed if needed.
25869
25870 2006-06-06  Mike Kestner  <mkestner@novell.com>
25871
25872         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25873         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25874
25875 2006-06-06  Mike Kestner  <mkestner@novell.com>
25876
25877         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25878
25879
25880 2006-06-06  Jackson Harper  <jackson@ximian.com>
25881
25882         * Control.cs: Use the property (instead of the field) to get the
25883         default cursor so it is instantiated correctly.
25884         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25885         resizes so we need to manually repaint the window decorations here.
25886         - Set the titlebar button locations as soon as they are created,
25887         otherwise they are not set correctly on win32.
25888         
25889 2006-06-06  Chris Toshok  <toshok@ximian.com>
25890
25891         * CurrencyManager.cs (set_Position): call PullData before
25892         OnCurrentChanged.
25893         (AddNew): after calling IBindingList.AddNew, update our
25894         listposition, and call OnCurrentChanged/OnPositionChanged (without
25895         calling PullData).
25896         (OnCurrentChanged): remove the call to PullData from here.
25897         (OnItemChanged): remove the call to PushData from here.
25898         (OnPositionChanged): change the test from == null to != null to
25899         match the other methods.
25900         (ListChangedHandler): the grossest part of the patch.  Implement
25901         this such that it passes the unit tests in CurrencyManagerTest and
25902         the output more or less matches that of MS's implementation.
25903  
25904 2006-06-06  Mike Kestner  <mkestner@novell.com>
25905
25906         * ListView.cs : only update check state on single click.
25907         * ThemeWin32Classic.cs : fix focus drawing for details view without
25908         fullrowselect.  Fixes #78454.
25909         * XplatUIX11.cs : fix for double click emission.
25910
25911 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25912
25913         * PropertyGridView.cs : Applied Atsushi's patch to fix
25914         font dialog bug  (#78197).
25915
25916 2006-06-05  Jackson Harper  <jackson@ximian.com>
25917
25918         * TreeNode.cs: Compute the next node for expanding/collapsing
25919         correctly. We now factor in nodes without a NextNode
25920         correctly. (Fixes somes cases in nunit-gui).
25921         * InternalWindowManager.cs: Set the bounds when updating the
25922         virtual position of a tool window.
25923         
25924 2006-06-05  Chris Toshok  <toshok@ximian.com>
25925
25926         * DataGrid.cs: rename cached_currencymgr to list_manager.
25927         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25928         some.
25929         (CurrentRow, CurrentColumn): single accessors so we can make the
25930         cursor movement code a lot easier to understand.
25931         (CurrentRowIndex): implement this in terms of CurrentRow.
25932         (BeginEdit): clean this up a bit.
25933         (CancelEditing): sort out the is_editing/is_changing/is_adding
25934         stuff a little.
25935         (EndEdit): minor changes.
25936         (OnKeyDown): add a comment about a (most likely) unnecessary
25937         check.
25938         (OnMouseDown): cancel editing when we click on a row header.  And
25939         use the CurrentRow setter, not CurrentCell.
25940         (ProcessDialogKey): directly call ProcessGridKey.
25941         (UpdateSelectionAfterCursorMove): factor out this common block of
25942         code (it's used everywhere that we move the cursor by updating row
25943         or column).
25944         (ProcessGridKey): pretty substantial overhaul.  Use the
25945         CurrentRow/CurrentColumn properties to make the code a lot more
25946         readable.  Only use the CurrentCell property when we have to
25947         modify both row and column at once.  Tab behavior is still broken,
25948         and Delete is untested.
25949         (Select): if we have no selected rows, set selection_start to
25950         @row.
25951         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25952         with CurrentCell as the arg, so drop the arg and rename it.
25953
25954         * DataGridColumnStyle.cs: clean up the constructors a little, and
25955         drop CommonConstructor().
25956
25957         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25958         actually get notified when the user hits it.
25959         (ProcessKeyMessage): *substantially* simplify this method.
25960         There's no reason (that I can see) for the textbox to be making
25961         calls into the datagrid at all.  Remove all of them but the ones
25962         for Enter handling.  those will take some more work.
25963
25964         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25965         calling HideEditBox.
25966         (HideEditBox): if we have an active textbox, render it invisible
25967         without causing a re-layout of the datagrid.
25968
25969 2006-06-05  Mike Kestner  <mkestner@novell.com>
25970
25971         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25972         collection changes by resetting it to Items[0].  Fixes #78587.
25973
25974 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25975
25976         * MessageBox.cs: if the height of the text is larger than the icon_size,
25977         use that. Fixes bug #78575.
25978
25979 2006-06-05  Jackson Harper  <jackson@ximian.com>
25980
25981         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25982         node is basically responsible for drawing its entire horizontal
25983         area.  When drawing a node it draws its parent node lines if
25984         needed.
25985         - Adjust the clip area to the viewport rectangle
25986         - Fix Left/Right key handling to match MS. (It expand/collapses
25987         and moves to parents/first child but does not move selection to
25988         sibling nodes).
25989         - Fix SetTop to work with new bound calculation code
25990         - When scrollbars are no longer needed we need to reset scrolling
25991         vars and recalculate the visible order so the redraw is correct
25992         * TreeNode.cs: We can't expand/collapse nodes with no children.
25993
25994 2006-06-03  John Luke  <john.luke@gmail.com> 
25995
25996         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25997         so the colors work without dev packages
25998         
25999 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
26000
26001         * Control.cs 
26002           - Select: Implemented to just use activate. Seems to match MS 
26003             behaviour closest. Documented to only do actual control walking 
26004             based on it's parameters if in a container control so I moved 
26005             the code there.
26006           - Removed selection check logic from our internal Select() method
26007         * ContainerControl.cs:
26008           - Select: Moved selection logic from Control here, since MS documents
26009             that containers obey the bool arguments. No longer calling base
26010
26011 2006-06-02  Jackson Harper  <jackson@ximian.com>
26012
26013         * TreeView.cs: If the selected node isn't changed when we get
26014         focus update the previously selected node so that we see the
26015         selection box.
26016
26017 2006-06-02  Mike Kestner  <mkestner@novell.com>
26018
26019         * ComboBox.cs: restructure grab and general mouse event handling.
26020         Make the composite control raise mouse events like it was a single
26021         control for leaves/enters/motion/up/down events.  fix dropdown list
26022         coordinate mangling and refactor it into the scrollbar subclass to
26023         reduce code duplication.  Fixes #78282 #78361 and #78457.
26024
26025 2006-06-02  Mike Kestner  <mkestner@novell.com>
26026
26027         * ScrollBar.cs: remove Capture setting/clearing, as it happens
26028         automatically in the Control.WndProc.
26029
26030 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26031
26032         * FileDialog.cs: fix crash when running SharpChess, which sets the
26033         FilterIndex to 2 with only one Filter.
26034
26035 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26036
26037         * ToolBar.cs: add SizeSpecified property.
26038         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
26039         try to figure out our real size, otherwise fallback to what the
26040         container says.
26041
26042 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26043
26044         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
26045         * Control.cs (WndProc): MS always calls the DefWndProc to pass
26046           up the event
26047
26048 2006-06-01  Mike Kestner  <mkestner@novell.com>
26049
26050         * ListView.cs: revamp the focus management in ListView.  It still
26051         causes churn of LostFocus/GotFocus emissions on clicks, but it's
26052         better than not handling focus at all.  Will revisit when pdb feels
26053         the general focus handling is solid.  Fixes #78526.
26054
26055 2006-06-01  Jackson Harper  <jackson@ximian.com>
26056
26057         * TreeView.cs: Set the default border style in the constructor.
26058         - Move painting to use OnPaintInternal instead of capturing
26059         WM_PAINT, this is the correct way of doing things
26060         - UpdateBelow shouldn't invalidate the scrollbar area
26061         - Cap the top on update below in case the node was above the top
26062         of the viewport rectangle.
26063         - ExpandBelow and Collapse below need to obey Begin/End Update.
26064         * TreeNode.cs: Make is_expanded internal so the treenode
26065         collection can change it without firing the whole event chain.
26066         * TreeNodeCollection.cs: When clearing all the child nodes make
26067         sure to recalc the visible order.
26068         - Improve algo for remove the top node
26069
26070 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
26071
26072         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
26073           SendMessage directly calling window procedures, which in turn might
26074           call SetFocus()
26075
26076 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
26077
26078         * Control.cs: Don't handle WM_SETFOCUS if the same window already
26079           has focus (works around X11 sending a FocusIn after our SetFocus)
26080         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
26081
26082 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
26083
26084         * Mime.cs: Fix for the NET_2_0 build.
26085           NameValueCollection needs StringComparer now.
26086
26087 2006-05-31  Chris Toshok  <toshok@ximian.com>
26088
26089         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
26090         return (via an out parameter) the starting X of the column.
26091         (UpdateVisibleColumn): track change to FromPixelToColumn.
26092         (HitTest): add a ColumnResize case here.
26093         (DrawResizeLine): new function, probably poorly named.
26094
26095         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
26096         only need to keep one reference.
26097         (set_ListManager): same.
26098         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
26099         Also, add support for HitTestType.ColumnResize.
26100         (OnMouseMove): add column resize behavior here, and change the
26101         cursor to the correct one as we move around the datagrid.
26102         (OnMouseUp): terminate the column resize if we're resizing.
26103         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26104         for the current cell.
26105         (ConnectListManagerEvents): use cached_currencymgr.
26106         (DisconnectListManagerEvents): fill this in, using
26107         cached_currencymgr.
26108         (SetCurrentCell): remove cached_currencymgr_events handling.
26109         (SetDataMember): only call DisconnectListManagerEvents if
26110         cached_currencymgr is != null.
26111         (SetDataSource): same.
26112         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26113         cached_currencymgr.
26114
26115 2006-05-31  Jackson Harper  <jackson@ximian.com>
26116
26117         * BindingManagerBase.cs: Remove somedebug code that creeped into
26118         SVN.
26119         * TreeNode.cs: We get the indent level dynamically right now, so
26120         don't track it as a member.
26121         * TreeNodeCollection.cs: Make sure all nodes added to the list
26122         have parents, treeviews/topnodes setup properly.
26123         - Don't attempt to track indent level.
26124
26125 2006-05-30  Jackson Harper  <jackson@ximian.com>
26126
26127         * BindingContext.cs: Create the currency manager tables here.
26128         This allows us to more easily create null tables (when bad data
26129         members are used), and more easily create related currency
26130         managers.
26131         * CurrencyManager.cs: All the table creation stuff is done by the
26132         binding context now.
26133         - Current should throw an exception if listposition is -1.
26134         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26135         been bound yet.
26136
26137 2006-05-30  Mike Kestner  <mkestner@novell.com>
26138
26139         * ListView.cs: allow reexpansion of zero-width column headers.
26140         Fixes #78528.
26141
26142 2006-05-28  Chris Toshok  <toshok@ximian.com>
26143
26144         * CurrencyManager.cs (get_Current): after the late binding
26145         listposition = -1 fix, we need to guard against it here and return
26146         null, otherwise we raise an exception (which is swallowed
26147         elsewhere, and breaks datagrid databinding.)
26148
26149 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26150
26151         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26152           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26153
26154 2006-05-26  Jackson Harper  <jackson@ximian.com>
26155
26156         * ControlPaint.cs:
26157         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26158         values, it's faster and it's all we care about (we don't care if
26159         the names aren't equal).
26160         * KeyboardLayouts.cs: Eliminate some dead code.
26161         - Lazy init things
26162         * X11Keyboard.cs: Lazy init keyboard detection.
26163         - Cleanup access modifiers a little.
26164
26165 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26166
26167         * XplatUIX11.cs: Once again, attempting to get layout just right.
26168
26169 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26170
26171         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26172           the sizes of each link section, that will result in sizes that
26173           match DrawString's layout (Fixes #78391)
26174
26175 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26176
26177         * FileDialog.cs: If AddExtension property is true autocomplete the
26178           extensions in SaveFileDialog correctly. Fixes bug #78453.
26179           Set MyNetwork and MyComputer to "C:\" for windows. This should
26180           fix part 8 of bug #78446 for now.
26181
26182 2006-05-26  Chris Toshok  <toshok@ximian.com>
26183
26184         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26185         invalidate the current row header if we need to, but presumably
26186         we'll invalidate the row corrsponding to the bounds or
26187         editingControl.
26188         (GridHScrolled): switch back to this method, as it's part of the
26189         public api.  *sigh*.
26190         (GridVScrolled): same.
26191         (OnMouseWheel): hack up something that more or less works.  Call
26192         GridHScrolled/GridVScrolled directly, instead of duplicating much
26193         of their code here.
26194         (EnsureCellVisibility): reinstate a bunch of this code, since we
26195         can't just set the scrollbar Value and expect to do all the work
26196         in the ValueChanged handler.  Also, Call Update() after scrolling
26197         in one direction so the other XplatX11.ScrollWindow call has the
26198         proper stuff in the proper places.
26199         (EditCell): set is_editing to true before calling .Edit.
26200
26201         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26202         don't bother comparing first.
26203         (OnKeyPress): call grid.ColumnStartedEditing before calling
26204         base.OnKeyPress.  this will set is_changing and invalidate the row
26205         header if necessary.
26206         (ProcessKeyMessage): for WM_CHAR messages, call
26207         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26208         and WM_KEYDOWN.
26209         
26210         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26211         it's done in the DataGrid.
26212         (NextState): call grid.ColumnStartedEditing, which takes care of
26213         invalidating the row header (and setting is_changing).
26214
26215         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26216         here.  it's done in the DataGrid.
26217
26218 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26219
26220         * Control.cs: allow changing the cursor when the mouse position is
26221         out of bounds but Capture is set.
26222         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26223         linklabel but released somewhere else.
26224
26225 2006-05-25  Jackson Harper  <jackson@ximian.com>
26226
26227         * TreeView.cs: When we get focus if there is no selected node make
26228         it the top node
26229         - Remove some uneeded setup code from Draw.
26230         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26231         a new node is inserted make the new node the top.
26232         * XplatUIX11.cs:
26233         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26234         be used (should be faster).
26235         
26236 2006-05-25  Chris Toshok  <toshok@ximian.com>
26237
26238         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26239         problem with the last commit.
26240
26241 2006-05-25  Chris Toshok  <toshok@ximian.com>
26242
26243         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26244         need the invalidate call here, while scrolling right-to-left via
26245         the left arrow key (i.e. moving the editing cell while scrolling).
26246
26247         * DataGrid.cs (.ctor): remove the initialization of
26248         ctrl_pressed/shift_pressed.  We no longer track them using key
26249         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26250         to using ValueChanged handlers on the scrollbars instead of
26251         Scrolled event handlers.  This simplifies a bunch of the scrolling
26252         code.
26253         (GridHValueChanged): rename from GridHScrolled, and change it to
26254         work with the new event args.
26255         (GridVValueChanged): same.
26256         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26257         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26258         selected cell.
26259         (ProcessGridKey): correct all the keyboard navigation stuff I
26260         could find.  Ctrl up/down/left/right/home/end work now.
26261         (EnsureCellVisibility): correct method name spelling.  Also,
26262         simplify this a touch by not explicitly calling the
26263         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26264         scrollbar value.
26265         (OnKeyUpDG): no need for this method now.
26266         
26267 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26268
26269         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26270         Fixes bug #78392.
26271
26272 2006-05-25  Chris Toshok  <toshok@ximian.com>
26273
26274         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26275         r61019.
26276
26277 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26278
26279         * Application.cs: Moved setting of is_modal and closing to before
26280           we create the control, to allow the event handlers called as a
26281           result of creation affect closing. Also removed Gonzalo's previous
26282           change to setting DialogResult, the behaviour has been moved to 
26283           Form.ShowDialog()
26284         * Form.cs: 
26285           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26286             handle it instead
26287           - ShowDialog(): If no dialog result is set, we need to return Cancel
26288           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26289             the close is cancelled
26290
26291 2006-05-25  Jackson Harper  <jackson@ximian.com>
26292
26293         * StatusBar.cs: We only need to update the sizes of the other
26294         panels when we have auto size contents.  Also we are only updating
26295         the contents of the panel, not the borders, so compensate for the
26296         border width (TODO: get this width from the theme somehow).
26297         * TreeView.cs: Scrollable is true by default
26298         - Use invalidate instead of refresh where needed
26299         - Factor the scrollable value into scrollbar updating
26300         - Update the scrollbars if the Scrollable property is altered
26301         - Update the selected node if its ImageIndex is changed
26302         - Handle null nodes in UpdateNode (mainly so we don't have to
26303         check if selected is null when updating it
26304         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26305         are factored into the visible count
26306         - Use VisibleCount for clarity in the code
26307         - When the font is changed we need to recurse through all the
26308         nodes and invalidate their sizes
26309         
26310 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26311
26312         * Application.cs: set the DialogResult to fixed when the main form is
26313         hidden or destroyed while being modal.
26314
26315 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26316
26317         * Theme.cs: Use Tangoified messagebox icons. 
26318
26319         (GetSizedResourceImage): Also cope with width = 0 and do not
26320         trigger a warning in that case (0 means "give me your icon from
26321         the resouce, no special size needed).
26322
26323 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26324
26325         * Application.cs: Leave runloop if the the main modal form is 
26326           hidden (fixes #78484)
26327
26328 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26329
26330         * BindingContext.cs : reject null datasource in Contains() and
26331           Item[].
26332         * CurrencyManager.cs : check data_member validity when data_source
26333           is dataset. When it is late binding, the initial position is -1.
26334
26335 2006-05-24  Jackson Harper  <jackson@ximian.com>
26336
26337         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26338         inserted nodes that aren't visible.  This changes the
26339         max_visible_order which confuses scrollbar settings.
26340         - Use the enumerator to get the prev node instead of duplicating
26341         code.
26342         * TreeView.cs: Use new method for setting scrollbar values
26343         - Don't set the bounds every time the scrollbar is updated
26344         - When updating below the root node use an invalidate instead of a
26345         refresh to prevent the child controls (scrollbars) from being
26346         refreshed. (UpdateBelow still needs to be reworked anyways).
26347         - Reenable SetBottom now that visible orders are set correctly,
26348         added some debug code incase we ever get bad values there again.
26349         - Set the scrollbar max to 2 less then the max value, this
26350         compensates for the max value being one above the node count, and
26351         for scrollbars adding one extra "notch".
26352         - When drawing image nodes if there is an imagelist we draw the
26353         first image in the list if the supplied image index is out of the
26354         image list's bounds.
26355         
26356 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26357
26358         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26359           we receive a size change from the WM (Fixes #78503)
26360
26361 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26362
26363         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26364           rectangle (Fixes #78501)
26365
26366 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26367
26368         * ButtonBase.cs: 
26369           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26370             as a bitfield.
26371           - Fixed MouseMove to no longer switch pressed state unless the left
26372             mouse button is pressed. Atsushi provided the original patch (#78485)
26373           
26374 2006-05-24  Jackson Harper  <jackson@ximian.com>
26375
26376         * ScrollBar.cs: New internal methods that allow us to change a
26377         couple values on the scrollbar (the most common case is maximum
26378         and large change) without getting multiple invalidates.
26379
26380 2006-05-24  Chris Toshok  <toshok@ximian.com>
26381
26382         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26383         (Edit): save off the original state in oldState, and set
26384         grid.is_editing to true.
26385         (OnKeyDown): abort editing if escape is pressed.  also, call
26386         NextState if space is pressed.
26387         (OnMouseDown): call NextState.
26388         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26389         here.  Also, only invalidate the row header once (on the initial
26390         is_changing switch) to save on redraws.
26391
26392 2006-05-24  Chris Toshok  <toshok@ximian.com>
26393
26394         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26395         if the value in the cell is different than it was before.  This
26396         keeps us from triggering a layout when we move around a datarid
26397         with a highlighted cell.
26398         (Edit): suspend layout when creating/positining the text box, and
26399         resume passing false so we don't ever actually re-layout.
26400         (ReleaseHostedControl): same.
26401         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26402
26403         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26404         control-key sequences should go to the datagrid - remove that
26405         lock.  Also, modify the conditions under which we move between
26406         cells when moving the cursor within a cell, and remove the "this"
26407         and "base" from field accesses.  We weren't even consistent, given
26408         they all were in the base class.
26409
26410 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26411
26412         * Binding.cs : (.ctor)
26413           An obvious NRE fix for BindingTest.CtorNullTest().
26414
26415 2006-05-23  Chris Toshok  <toshok@ximian.com>
26416
26417         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26418         them between lines.  This fixes some quirks editing cells in the
26419         datagrid.
26420
26421 2006-05-23  Jackson Harper  <jackson@ximian.com>
26422
26423         * TreeView.cs: Use begin/end update when doing expand/collapse all
26424         so that we don't get flicker on the scrollbar.
26425
26426 2006-05-23  Jackson Harper  <jackson@ximian.com>
26427
26428         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26429         treenode calculations to be independant of the painting code. To
26430         do this nodes track a visible order which is calculated by the
26431         treeview.
26432         - Call new methods for expanding/collapsing nodes.  These methods
26433         use scrollwindow so we don't have to update everything below the
26434         node.
26435         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26436         need to update nodes when drawing anymore or calculate scrollbar
26437         stuff.
26438         - Added new methods for expanding/collapsing nodes. These methods
26439         use ScrollWindow so as to not have to redraw all the nodes below.
26440         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26441         we add/remove nodes or sort.
26442         - Handle removing the selected and the top node properly.
26443
26444 2006-05-23  Chris Toshok  <toshok@ximian.com>
26445
26446         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26447         maybe this should actually happen in the datagrid code?
26448         (EndEdit): no need to invalidate anything, given that
26449         ReleaseHostedControl causes the datagrid to relayout, which
26450         invalidates everything anyway.
26451
26452         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26453         in SetCurrentCell).
26454         (set_SelectionBackColor): call InvalidateSelection instead of
26455         Refresh.
26456         (set_SelectionForeColor): same.
26457         (BeginEdit): Flesh this out a bit.
26458         (CancelEditing): only do any of this if we're editing/adding.
26459         (EndEdit): same.
26460         (OnMouseDown): there's no need to cancel editing here, it's done
26461         in SetCurrentCell.
26462         (SetCurrentCell): only invalidate the current row header if it's a
26463         different row than the new one.
26464         (ShiftSelection): fix this to work like MS does.
26465         (ResetSelection): factor out the invalidation of selected_rows to
26466         InvalidateSelection.
26467         (SetDataSource): cancel any editing that's going on.
26468
26469         * DataGridColumnStyle.cs
26470         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26471         call the non-interface version.
26472
26473         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26474         header rectangle with the clip rectangle so we don't redraw the
26475         entire header for just a small area.  Gets rid of the last flicker
26476         when horizontally scrolling.
26477         (DataGridPaintRow): same.
26478
26479 2006-05-23  Mike Kestner  <mkestner@novell.com>
26480
26481         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26482         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26483         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26484         Critical bug report.
26485
26486 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26487
26488         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26489           and this fixes #78493
26490
26491 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26492
26493         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26494         size is not found.  
26495         
26496         * FileDialog.cs: Do not change the background for the side bar as
26497         it wont work nicely with the theme, and also reduces the artifacts
26498         in rendering the icons (which I want to fix too).
26499
26500         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26501         resources, not resgen resources. 
26502
26503         (PlatformDefaultHandler): Pull images using the new API.
26504
26505 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26506
26507         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26508           a reference to the hwnd and will not remove it unless there are
26509           no pending exposures (fixes #78341)
26510         * XplatUI.cs: Improved debug
26511
26512 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26513
26514         * MenuAPI.cs : don't handle OnClick event when it was not the left
26515           button. Fixed bug #78487.
26516
26517 2006-05-23  Mike Kestner  <mkestner@novell.com>
26518
26519         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26520         prefer submenus to the top menu for item lookup, to avoid popping down
26521         top-row items.
26522
26523 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26524
26525         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26526           Graphics.FillRectangle as the visual results are really bad (even
26527           on win). We now draw perfect arrows (and perfect shadows when the
26528           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26529           Pen.DashPattern to draw the dots of each line.
26530
26531 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26532
26533         * FileDialog.cs: Update the filename combobox when navigating through
26534           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26535
26536 2006-05-22  Mike Kestner  <mkestner@novell.com>
26537
26538         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26539         Fixes #78463.
26540
26541 2006-05-22  Mike Kestner  <mkestner@novell.com>
26542
26543         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26544         requests. Fix a misspelled parameter and a copy paste exception error
26545         in Select.
26546
26547 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26548
26549         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26550           to get the same width/height (5/13) on X11 as the default font has on
26551           win32. This means that our DefaultFont emSize is smaller than the 
26552           the MS SWF equivalent (even thought the width/height stays the same)
26553
26554 2006-05-20  Jackson Harper  <jackson@ximian.com>
26555
26556         * MdiClient.cs:
26557         * MdiWindowManager.cs:
26558         * InternalWindowManager.cs: Make sure to use the border width from
26559         the theme.
26560
26561 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26562
26563         * PrintDialog.cs: Implements printer details
26564
26565 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26566
26567         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26568           Fixes part 1 and 2 of bug #78446
26569
26570 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26571
26572         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26573           instead of sticking to the first ever calculated value
26574
26575 2006-05-19  Mike Kestner  <mkestner@novell.com>
26576
26577         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26578         PointToClient, since Capture is set. Fixes #78344.
26579
26580 2006-05-19  Mike Kestner  <mkestner@novell.com>
26581
26582         * ListView.cs: match MS behavior in Details view where items are not
26583         drawn if Columns.Count == 0. 
26584         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26585         Use a separate pen to draw the check, since changing the width affects
26586         the box as well.  Fixes #78454.
26587
26588 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26589
26590         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26591         exception should throw the name of the invalid argument.
26592
26593         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26594         there are no files listed. 
26595
26596 2006-05-18  Jackson Harper  <jackson@ximian.com>
26597
26598         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26599         up.
26600
26601 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26602
26603         * Control.cs: Brought back our old UpdateZOrder method as a private
26604           function and switched our calls from UpdateZOrder to the new one.
26605           This fixes the Paint.Net canvas disappearing bug.
26606
26607 2006-05-18  Jackson Harper  <jackson@ximian.com>
26608
26609         * Theme.cs:
26610         * ThemeWin32Classic.cs:
26611         * InternalWindowManager.cs: Move the drawing into the theme,
26612         expose everything the theme should need from the window manager.
26613
26614 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26615
26616         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26617           from the call to NativeWindow to avoid walking up the parent chain
26618           further than needed (speeds up setting cursors and avoids setting
26619           the wrong cursor if a parent has another cursor defined)
26620         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26621           the icon as hotspot, not what's contained as hotspot in the icon
26622           file. This fixes the perceived drawing offset seen with Paint.Net
26623         
26624 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26625
26626         * XplatUIX11.cs: 
26627           - Store the calculated rectangle in Hwnd object and use it when 
26628             setting the client size
26629           - Force Toolwindows to always be type Dock, to ensure they're on top
26630
26631 2006-05-18  Mike Kestner  <mkestner@novell.com>
26632
26633         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26634         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26635         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26636         Substantial refactoring to remove confusing nested classes. Coding
26637         standard and Get+Set->property refactorings.  Shift to index based
26638         highlighting in ComboListBox instead of constantly using IndexOf and
26639         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26640         in FileDialog growth.  Draw borders manually since Simple mode needs
26641         to look like two independent controls.  Make listbox border
26642         conditional to DropDownStyle.  Improved OwnerDraw support.
26643
26644 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26645
26646         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26647         Don't set the disposed graphics to null, so we can throw the "right"
26648         exception if the graphics is reused later (added a flag to avoid 
26649         double disposing). Some behaviours are different under 2.0 and are
26650         filled under bug #78448.
26651
26652 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26653
26654         * Control.cs: When double-buffering is enabled, we need to reset
26655           our graphics context between paint calls. Otherwise, any 
26656           transformations and other alterations on the context will 
26657           become cumulative (#77734)
26658
26659 2006-05-18  Mike Kestner  <mkestner@novell.com>
26660
26661         * ListView.cs: do focused item selection like MS on clicks. 
26662         Rework focus handling for ItemControl so LostFocus invalidates as
26663         well.
26664         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26665         the ListView ItemControl has focus.
26666
26667 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26668
26669         * XplatUIX11.cs: If client_window ends up being width or height zero
26670           due to border settings, move it off window inside whole_window (#78433)
26671
26672 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26673
26674         * Mime.cs: Shrink the mime file cache correctly.
26675
26676 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26677
26678         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26679
26680 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26681
26682         * XplatUIX11.cs (AddExpose): More sanity checks
26683
26684 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26685
26686         * XplatUIX11.cs:
26687           - AddExpose: Don't add expose ranges outside the size of our
26688             window
26689           - Cast opacity values to Int32 to avoid crashes with certain
26690             values
26691           - Added disabled code paths that protect against illegal cross-
26692             thread painting (Developers.exe)
26693
26694 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26695
26696         * ProgressBar.cs: Invalidate the control when it's resized
26697           since block size is based on control size. (#78388)
26698
26699 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26700
26701         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26702         of setting the incoming argument to the "reset" value, we set the
26703         this.datamember to string.empty (before we were invalidating the
26704         incoming data).   
26705
26706         Fixes 78420
26707
26708 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26709
26710         * Form.cs: Only apply transparency settings after the form
26711           is created. (Fixes #77800)
26712
26713 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26714
26715         * ApplicationContext.cs: Grab the HandleDestroyed event so
26716           we know when to fire OnMainFormClosed 
26717
26718 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26719
26720         * Application.cs: Introduced sub-class to allow tracking of
26721           threads and centralized triggering of the event mess for
26722           ThreadExit, AppExit, etc..  (#76156)
26723
26724 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26725
26726         * MimeIcon.cs:
26727           - Do not return a null icon index value for a mime subclass.
26728             Instead try the main mime type class too.
26729           - Seems that some newer distributions don't have a link to some
26730             gnome default icons anymore. So check the default gnome dir too.
26731           
26732
26733 2006-05-16  Jackson Harper  <jackson@ximian.com>
26734
26735         * MdiClient.cs: Don't paint the parent background image if we have
26736         our own background image.
26737
26738 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26739
26740         * Control.cs:
26741           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26742             controls, all filled controls are supposed to overlap (#78080)
26743           - UpdateZOrder is supposed to update the control's z-order in the
26744             parent's z-order chain. Fixed to behave like that
26745           - BringToFront: Removed obsolete code
26746           - SendToBack: Simplyfied
26747           - SetChildIndex: Trigger layout calculations when Z-order changes
26748             since layout is done by z-order
26749
26750 2006-05-16  Chris Toshok  <toshok@ximian.com>
26751
26752         [ fixes bug #78410 ]
26753         * DataGrid.cs (set_AlternatingBackColor): use
26754         grid_drawing.InvalidateCells instead of Refresh().
26755         (set_BackColor): call grid_drawing.InvalidateCells.
26756         (set_BackgroundColor): use Invalidate instead of Refresh.
26757
26758         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26759         invalidate the cell area.
26760
26761 2006-05-15  Chris Toshok  <toshok@ximian.com>
26762
26763         [ fixes bug #78011 ]
26764         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26765         on to DataGridPaintRow.
26766         (DataGridPaintRow): take a clip argument, and only draw the cells
26767         which intersect it.  same with the not_usedarea.
26768
26769         * Theme.cs (DataGridPaintRow) add @clip parameter.
26770
26771         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26772         XplatUI.ScrollWindow.
26773         (ScrollToRow): same.
26774
26775         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26776         with last column which was causing a gray swath to appear with the
26777         XplatUI.ScrollWindow code.
26778
26779 2006-05-15  Chris Toshok  <toshok@ximian.com>
26780
26781         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26782         use XplatUI.ScrollWindow.
26783         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26784
26785 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26786
26787         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26788
26789 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26790
26791         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26792           file since there are no equivalent X11 cursors
26793
26794 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26795
26796         * MonthCalendar.cs : DateTimePicker should reflect selected date
26797           on mouse*up*, not mouse*down*. Fixed originally reported part of
26798           bug #76474.
26799
26800 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26801
26802         * TabControl.cs : When argument index is equal or more than tab
26803           count, just ignore. Fixed bug #78395.
26804
26805 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26806
26807         * Control.cs: Dispose all child controls when control is diposed (#78394)
26808
26809 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26810
26811         * ColorDialog.cs: Finally it is possible to select the color with
26812           the text boxes
26813
26814 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26815
26816         * PrintDialog.cs: Fix typo
26817
26818 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26819
26820         * PrintDialog.cs: PrintDialog is not resizable
26821         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26822           color. Made some ToolBar drawing methods protected virtual.
26823
26824 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26825
26826         * PrintDialog.cs: Implementation of the PrintDialog
26827
26828 2006-05-12  Chris Toshok  <toshok@ximian.com>
26829
26830         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26831         thumb, instead use MoveThumb.  This has the side effect of making
26832         most of the other thumb moving machinery use MoveThumb as well.
26833         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26834         need to actually invalidate the rectangle where the new thumb will
26835         go.
26836         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26837         We force an Update() after, so it's not as fast as it could be,
26838         but at least there's zero flicker and no droppings.
26839         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26840         (UpdateThumbPos): add another argument (dirty), which says whether
26841         or not to calculate/add dirty regions which we later invalidate.
26842         For cases where we know we're going to use MoveThumb, we pass
26843         false for this.  Otherwise, pass true.
26844
26845 2006-05-12  Jackson Harper  <jackson@ximian.com>
26846
26847         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26848         the status bar.
26849         
26850 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26851
26852         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26853           and GetClipRegion methods and UserClipWontExposeParent property.
26854         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26855           overriding UserClipWontExposeParent property, setting to false, since
26856           Win32 handles the required expose messages to draw our clipped parent
26857           areas internally
26858         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26859           PaintEventStart to set the user clip region if set.
26860         * Control.cs: 
26861           - Now internally tracking the Region for the control since we need to
26862             store it if the handle is not yet created and only set it when it
26863             becomes created. Before setting the region forced handle creation
26864           - Added code to draw the parents underneath a user-clipped region
26865         * Hwnd.cs: Added UserClip property
26866
26867 2006-05-12  Chris Toshok  <toshok@ximian.com>
26868
26869         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26870         (set_Maximum): same.
26871         (set_Minimum): same.
26872         (set_SmallChange): same.
26873         (OnMouseUpSB): remove the call to refresh when releasing the
26874         thumb.  We shouldn't need it.
26875         
26876 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26877
26878         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26879         AutoSize set to None, we do not need to relayout everything, we
26880         just need to invalidate the current region.
26881
26882         (Draw): Do not draw the entire ClientArea, just redraw the
26883         clip area being passed.
26884
26885         * MdiClient.cs: Make MdiClient constructor with the Form argument
26886         internal. 
26887
26888 2006-05-12  Jackson Harper  <jackson@ximian.com>
26889
26890         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26891         parents background image,  but strangely not their own.
26892         - (DrawStatusBarPanel): Take into account horizontal alignment
26893         when drawing the strings and icons.
26894
26895 2006-05-12  Mike Kestner  <mkestner@novell.com>
26896
26897         * ListBox.cs: avoid invalidations for focus when the collection is
26898         empty. 
26899
26900 2006-05-12  Chris Toshok  <toshok@ximian.com>
26901
26902         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26903         invalidate the entire thumb area.  Call InvalidateDirty which
26904         limits the redraw to the thumb itself and surrounding pixels.
26905
26906         * XplatUIX11.cs (ScrollWindow): optimize copying.
26907         
26908 2006-05-12  Chris Toshok  <toshok@ximian.com>
26909
26910         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26911         Figure out the positioning/layout in a single pass instead of
26912         multiple recursive invocations.  Speeds up the initial display of
26913         the data grid.  Also, make many things private that were
26914         originally public but unused outside this class.
26915
26916 2006-05-11  Jackson Harper  <jackson@ximian.com>
26917
26918         * MdiClient.cs: Improved layout code.
26919
26920 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26921
26922         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26923           not SelectedObject.
26924
26925 2006-05-11  Chris Toshok  <toshok@ximian.com>
26926
26927         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26928         union of that will always be {0,0,width,height}.
26929
26930 2006-05-11  Jackson Harper  <jackson@ximian.com>
26931
26932         * Form.cs: Match MS's DefaultSize for forms (they must have
26933         changed the size in sp2).
26934
26935 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26936
26937         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26938
26939 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26940
26941         * TextControl.cs : Fixed bug #78109. This incorrect position
26942           comparison caused crash on automatic line split.
26943         * TextBoxBase.cs : reduce duplicate code.
26944
26945 2006-05-10  Jackson Harper  <jackson@ximian.com>
26946
26947         * MdiClient.cs: Active form is only sent to the back when using
26948         the Next form functionality, when a form is clicked the current
26949         active shouldn't be sent to the back.
26950         - Layout the mdi windows when the container is first made visible.
26951         * Form.cs: Give the MdiClient a ref to the containing form when we
26952         create it.
26953         
26954 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26955
26956         * LinkLabel.cs : link_font could be uninitialized, so populate one
26957           before actual use. Fixed bug #78340.
26958
26959 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26960
26961         * XplatUIX11.cs : clipboard format native value is IntPtr.
26962           Fixed bug #78283.
26963
26964 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26965
26966         * Control.cs: 
26967           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26968             which is passed up the parent chain by DefWndProc
26969           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26970             to DefWndProc (#77956)
26971         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26972
26973 2006-05-10  Jackson Harper  <jackson@ximian.com>
26974
26975         * MdiClient.cs: We need to remove the controls from the mdi
26976         collection, when we close the window.
26977         * MdiWindowManager.cs: Special handling of closing mdi windows.
26978         * InternalWindowManager.cs: Make the close method virtual so the
26979         mdi window manager can handle it specially.
26980
26981 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26982
26983         * DataGrid.cs:
26984           - Recalculate grid when the data source has changed
26985           - Matches styles provided by user from all data sources types
26986         * DataGridTableStyle.cs: For columns that provided by the user set the
26987         with the preferred value is there was unassigned.
26988         * CurrencyManager.cs: throw OnItemChanged event
26989
26990 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26991
26992         * PictureBox.cs: Don't animate until handle is created. Start animation
26993           when handle is created.
26994
26995 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26996
26997         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26998           current codebase.
26999         * XEventQueue.cs: We don't need to provide the extra info
27000
27001 2006-05-10  Jackson Harper  <jackson@ximian.com>
27002
27003         * MdiClient.cs: If the mdi clients parent form has a background
27004         image set, we draw that background image for the mdi area's
27005         background.
27006
27007 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
27008
27009         * TextBoxBase.cs: Set IBeam cursor (#78347)
27010
27011 2006-05-10  Mike Kestner  <mkestner@novell.com>
27012
27013         * ToolBar.cs: fix some text padding issues with ButtonSize
27014         calculation. Update the default size to match MS documentation.
27015         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
27016         button size. Fixes #78296.
27017
27018 2006-05-10  Mike Kestner  <mkestner@novell.com>
27019
27020         * ListBox.cs: use is_visible for scrollbar positioning in case the
27021         control isn't on screen yet.  Fix off by one with Right vs Width
27022         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
27023         
27024 2006-05-10  Jackson Harper  <jackson@ximian.com>
27025
27026         * X11Dnd.cs: Drop to a control with another control on top of it.
27027         * ToolBar.cs: Work on a copy of the buttons list, so that it can
27028         be modified in click handlers. TODO: Look for similar problems in
27029         other controls.
27030
27031 2006-05-09  Jackson Harper  <jackson@ximian.com>
27032
27033         * Form.cs: Window managers need the old window state when setting
27034         window state now.
27035         * InternalWindowManager.cs: Allow the base mdi window manager to
27036         handle more of the MDI only stuff (like maximize buttons).
27037         * MdiWindowManager.cs: Fix some snafus in changing the window
27038         state.  Add all the menu functionality, for both popup and
27039         maximized menus.
27040         * MdiClient.cs: When a new form is selected the currently
27041         activated form is sent to the back, this matches MS.
27042         - Implement a new method to activate the next mdi child window.
27043
27044 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
27045
27046         * Control.cs: 
27047           - Added new InternalCapture method to allow controls to prevent
27048             the capture behaviour on the click handlers
27049           - Switched to use InternalCapture
27050         * ComboBox.cs:
27051           - Using InternalCapture to prevent mouse captures from being released
27052             on mouse button release (Fixes #78100)
27053         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
27054           returns Form borders if a caption is present. (Fixes #78310)
27055
27056 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
27057
27058         * TreeNode.cs: Changed serialization .ctor to not require every field
27059           to be present. (#78265)
27060         * OwnerDrawPropertyBag.cs: Added serialization .ctor
27061
27062 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
27063
27064         * MimeIcon.cs: for is faster than foreach for strings.
27065
27066 2006-05-05  Mike Kestner  <mkestner@novell.com>
27067
27068         * CheckedListBox.cs: update check handling code to not use selected.
27069         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
27070         behavior for visual feedback, motion response, shift/ctrl handling,
27071         and properly deal with all 4 selection modes. Updates to bounds
27072         handling logic.  Add scroll wheel support. [Fixes #77842]
27073
27074 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27075
27076         * ListView.cs:
27077           - Moved adding of Implicit controls into .ctor. That way, subsequent
27078             creation of the controls will not cause them to think they are 
27079             toplevel windows (fixes #78200 header problem)
27080           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
27081           - Switched visibility setting of header control to use internal field
27082             to avoid triggering handle creation
27083           - Now checking if handle is created before causing a refresh when items
27084             are added (This makes us now match handle creation time with MS)
27085         * Splitter.cs: Removed loading of private splitter cursor, switched to
27086           Cursors version now that that is loading the right ones
27087         * Cursors.cs: Load proper splitter cursors from resources
27088         * Cursor.cs: Added second method of loading resource cursors for the 
27089           VS.Net users amongst us
27090
27091 2006-05-05  Mike Kestner  <mkestner@novell.com>
27092
27093         * ListView.cs: give header_control a minimum size based on the
27094         ListView size.
27095
27096 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
27097
27098         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
27099           window seems to do that with metacity, so set that type. (#78120)
27100
27101 2006-05-05  Mike Kestner  <mkestner@novell.com>
27102
27103         * ListViewItem.cs: fix Details mode checkbox layout bug.
27104         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27105         at the end of the header, if it exists. [Fixes for #78200]
27106
27107 2006-05-04  Jackson Harper  <jackson@ximian.com>
27108
27109         * MdiClient.cs: Add a helper property to get the container form.
27110         * MdiWindowManager.cs: We have to make sure to use the menu origin
27111         when drawing the icons and buttons, this fixes maximized window
27112         icons/buttons on win32.
27113         * InternalWindowManager.cs: Reset the restore captions when a
27114         window goes from Maximized to Minimized and vice versa. Move the
27115         DrawMaximizedButtons into the MdiWindowManager source, tool
27116         windows can't be maximized. NOTE: This could use a little
27117         refactoring if time ever permits.
27118         
27119 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27120
27121         * TextBox.cs: Add MWFCategoryAttributes
27122         * TextBoxBase.cs: Add MWFCategoryAttributes
27123         * Form.cs: Add MWFCategoryAttributes
27124
27125 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27126
27127         * Control.cs: Add MWFCategoryAttributes
27128         * ScrollableControl.cs: Add MWFCategoryAttributes
27129
27130 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27131
27132         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27133           Divider is true. Fix a little glitch in PropertyToolBar
27134           drawing code
27135
27136 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27137
27138         * Control.cs:
27139           - Dispose: Call base.Dispose, this causes the disposed event
27140             to be fired (and probably other, more important stuff)
27141           - SetVisibleCore: Set is_visible to true after creating the
27142             window so that the window still gets created invisible (if
27143             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27144             to generate a WM_ACTIVE message
27145         * Form.cs: Call Dispose when we want to destroy the window, instead of
27146           just destroying the handle (Dispose will do that for us)
27147         * XplatUIX11.cs:
27148           - RootWindow also needs a queue, so we can properly process the
27149             property change events from RootWindow (like Activate)
27150           - Generatic synthetic WM_ACTIVE message when the active window is
27151             being destroyed
27152
27153 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27154
27155         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27156           bounds are changed
27157
27158 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27159
27160         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27161           for determining width and height (image might not be assigned if
27162           we're drawing an imagelist)
27163
27164 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27165
27166         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27167         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27168           height from system
27169         * Theme.cs: No longer returns hardcoded menu height, instead calls
27170           new driver method
27171         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27172           on MS (# 78257)
27173
27174 2006-05-01  Mike Kestner  <mkestner@novell.com>
27175
27176         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27177
27178 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27179
27180         * TextBoxBase.cs: Removed Fixme
27181         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27182
27183 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27184
27185         * XplatUIX11.cs:
27186           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27187             the rectangle relative to the parent, considering borders. We
27188             don't really want that.
27189           - ScrollWindow: Fixed warning to be more understandable
27190         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27191           scrollbars and scroll only the visible area
27192         * RichTextBox.cs: Removed debug output
27193
27194 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27195
27196         * NumericUpDown.cs (Text): Just use base
27197         * UpDownBase.cs: Ensure txtView is created before using it
27198
27199 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27200
27201         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27202           casting to IntPtr to avoid 64bit overflow errors
27203
27204 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27205
27206         * Control.cs:
27207           - AllowDrop: Don't force handle creation.
27208           - CreateHandle: Added call to tell driver if we're allowed to drop
27209
27210 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27211
27212         * FileDialog.cs: Remember the last directory not only for the
27213           current instance but also for new FileDialog instances.
27214
27215 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27216         
27217         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27218           broke sending async messages
27219
27220 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27221
27222         * XplatUIX11.cs:
27223           - ScrollWindow: Fixed method. We finally generate expose events again
27224             for scrolled areas. This was causing 'garbage' when scrolling
27225             textbox and other controls that used ScrollWindow
27226           - Switched from using the regular queue for paint events to the MS 
27227             model of 'generating' paint events when the queue is empty.
27228             We use the new XQueueEvent.Paint subclass to store which windows
27229             need painting.
27230           - AddExpose now takes the x/y/width/height of the exposed area
27231             and inserts the window into the paint queue if not already there
27232           - InvalidateWholeWindow: Switched to use new AddExpose method
27233           - UpdateMessageQueue: Added which queue to monitor for paint events
27234           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27235             the unlikely case nothing above handles it. We reset the expose
27236             pending states to get them off the queue.
27237           - GetMessage: Now pulls a paint event if no other events are in the
27238             queue
27239           - Invalidate: Switched to new AddExpose method
27240           - PeekMessage: Updated to understand pending paint events
27241           - UpdateWindow: Fixed logic bug. We were only updating if the window
27242             didn't need updating. Also switched to sending WM_PAINT directly,
27243             like MS does.
27244         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27245           and random access Remove(). The random access is needed to handle
27246           UpdateWindow() where a WM_PAINT is sent directly without accessing
27247           the queue.
27248         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27249           allow for better feedback when scrolling. Scrollbars are small and
27250           the immediate update should make it 'feel' more responsive without
27251           slowing things down. ScrollBar still needs it's invaliate logic
27252           updated to not always invalidate the whole bar on certain changes.
27253
27254 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27255
27256         * Control.cs:
27257         (BackColor): if the control does not support a transparent background,
27258         return the default backcolor when the parent backcolor is transparent.
27259
27260 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27261
27262         * Application.cs: Updated to new StartLoop/GetMessage API
27263         * RichTextBox.cs: Provide some output on RTF parsing errors
27264         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27265           new queue_id argument to GetMessage and PeekMessage to allow faster
27266           handling of per-thread queues in drivers.
27267         * Hwnd.cs: Added Queue tracking and property
27268         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27269         * XEventQueue.cs: Added thread trackingA
27270         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27271         * XplatUIX11.cs:
27272           - Implemented new per-thread queue
27273           - GetMessage: Fixed return/break behaviour on several cases. We were
27274             returning stale messages in some cases, instead of just processing
27275             the next message
27276
27277 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27278
27279         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27280
27281 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27282
27283         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27284           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27285
27286 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27287
27288         * PropertyGridView.cs: Fix drop down width.
27289
27290 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27291
27292         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27293           a mess in DrawToolBar, so I removed one of them.
27294
27295 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27296
27297         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27298           needed (clip). Otherwise we get artifacts.
27299
27300 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27301
27302         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27303           dimension is fixed
27304         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27305           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27306         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27307           if it matches the scale base font (avoids unneeded scaling)
27308
27309 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27310
27311         * X11DesktopColors.cs: One gtk_init_check should be enough
27312
27313 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27314
27315         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27316           match MS behaviour
27317
27318 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27319
27320         * TextBoxBase.cs: 
27321           - Generate OnTextChanged for Backspace even if we're only deleting
27322             the current selection
27323           - When setting the Text property, only select all text if the
27324             control does not have focus when it is being set. Otherwise
27325             just place the cursor at the beginning of the control
27326
27327 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27328
27329         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27330           Added a little helper to draw PropertyGrid ToolBar with a different
27331           border and a different BackColor.
27332         * PropertyGrid.cs: Some background parts didn't get painted with the
27333           correct background color. Added a class that helps us to draw the
27334           correct border for PropertyGridView and a class that helps us to
27335           draw ToolBars with a different backcolor
27336         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27337
27338 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27339
27340         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27341         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27342
27343 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27344
27345         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27346           into the palette entries. Also, since we're working on a copy
27347           we needed to copy the palette back onto the bitmap.
27348         * Cursor.cs: Same fix as XplatUIWin32.cs.
27349
27350 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27351
27352         * ImageListStreamer.cs: Need to read the var (or we're off)
27353
27354 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27355
27356         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27357           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27358           TextBoxBase.cs: Unused var fixes
27359         * AxHost.cs: Small 2.0 fix
27360         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27361           as it seems that is what at least Metacity expects. This will make
27362           icons show up on 64bit platforms. We still have some 64bit size
27363           issues, though, since the startup app window size still won't match.
27364
27365 2006-04-25  Mike Kestner  <mkestner@novell.com>
27366
27367         * *.cs: cleanup newly reported exception var unused warnings.
27368
27369 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27370
27371         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27372           ms
27373
27374 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27375
27376         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27377           image. The image position is always the same, no matter if the
27378           button is pressed or not.
27379
27380 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27381
27382         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27383           selection and set the correct filename for SaveFileDialog.
27384           Patch by Emery Conrad.
27385
27386 2006-04-24  Mike Kestner  <mkestner@novell.com>
27387
27388         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27389         check for item.X outside the ClientRect instead of item.Y. Fixes
27390         #78151.
27391
27392 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27393
27394         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27395         trust that value blindly and do some sanity check. Fixes bug #77814.
27396
27397 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27398
27399         * ImageListStreamer.cs: save the mask as a 1bpp image.
27400
27401 2006-04-21  Mike Kestner  <mkestner@novell.com>
27402
27403         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27404         pass Checked and Indeterminate to the Theme Engine. Improve
27405         encapsulation with ListBox.
27406         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27407         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27408         nested types.  Move all CheckState functionality to CheckedListBox.
27409         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27410         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27411         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27412         single base list. Fix scrollbar sizing and placement to mirror MS.
27413         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27414         used.
27415         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27416         for CheckedListBox by using new DrawItemState info.  Center the
27417         checkboxes on the items. Use new StringFormat property.
27418
27419 2006-04-18  Jackson Harper  <jackson@ximian.com>
27420
27421         * Form.cs: MdiChildren don't do default locations the same way as
27422         regular forms.  This prevents a crash when trying to position the
27423         mdi windows.
27424
27425 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27426
27427         * PropertyGridTextBox.cs: Formatting, copyright
27428         * PropertiesTab.cs: Formatting
27429         * PropertyGrid.cs: Formatting
27430         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27431           click toggling of values
27432           
27433 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27434
27435         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27436         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27437           every time a control is created
27438         * Application.cs: Removed obsolete EnableRTLMirroring method
27439
27440 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27441
27442         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27443         SelectedIndex to -1. Fixes bug #78121.
27444
27445 2006-04-17  Jackson Harper  <jackson@ximian.com>
27446
27447         * Binding.cs: Handle null values for Current and BindingContext.
27448         This occurs when binding is a little delayed.
27449         * CurrencyManager.cs: return null for Current when there are no
27450         items in the list.
27451         - Hookup to the listchanged event on the DataView and update
27452         bindings when the list is changed.  This fixes late binding of
27453         controls.
27454
27455 2006-04-17  Jackson Harper  <jackson@ximian.com>
27456
27457         * X11Dnd.cs:
27458         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27459         Ringenbach.
27460
27461 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27462
27463         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27464           place
27465         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27466           with the correct ButtonState
27467
27468 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27469
27470         * XplatUIX11.cs: Improved distinguishing between window types to
27471           tell the WM a type closer to what the app wants (Fixes #78107)
27472
27473 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27474
27475         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27476           GrabHandle
27477
27478 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27479
27480         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27481           drawing code to reflect the size grip changes
27482
27483 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27484
27485         * ImageListStreamer.cs: fix handling of the mask that follows the main
27486         bitmap when deserializing and serialize it properly. The generated mask
27487         should better be a 1bpp image, but I'll do that later.
27488
27489 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27490
27491         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27492           path doesn't fit into some of our Current.Places
27493
27494 2006-04-13  Jackson Harper  <jackson@ximian.com>
27495
27496         * ComboBox.cs: Use borders instead of drawing our own decorations,
27497         try to obey correct rules for heights.
27498         * Theme.cs:
27499         * ThemeNice.cs:
27500         * ThemeClearLooks.cs:
27501         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27502         this is now handled by borders.
27503         - Remove unused DrawListBoxDecorationSize method.
27504         
27505 2006-04-13  Mike Kestner  <mkestner@novell.com>
27506
27507         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27508         reported by Alex.
27509
27510 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27511
27512         * ThemeWin32Classic.cs: 
27513           - Fixed CPDrawStringDisabled
27514           - Corrected drawing of disabled menu items
27515           - Fixed drawing of disabled radio buttons (bug #78095)
27516           - Draw check in a disabled CheckBox with color ControlDark 
27517
27518 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27519
27520         * Form.cs: Use the provided width when calculating the menu size;
27521           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27522           and ClientSize.Width won't be updated yet
27523         * Application.cs: Use Visible instead of Show() to make form visible,
27524           this way we create the handle later and menusize is considered
27525
27526 2006-04-12  Mike Kestner  <mkestner@novell.com>
27527
27528         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27529         reporting.
27530
27531 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27532
27533         * TextBox.cs: Implemented context menu
27534
27535 2006-04-12  Mike Kestner  <mkestner@novell.com>
27536
27537         * ListView.cs: implement box selection. fixes #77838.
27538         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27539
27540 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27541
27542         * XplatUIX11.cs: Added setting of window type when transient window
27543           is created (metacity would move it otherwise)
27544         * X11Structs.cs: Added WINDOW_TYPE atoms
27545         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27546           background (the control is Opaque but still wants transparent
27547           backgrounds)
27548
27549 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27550
27551         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27552           that set Opaque but don't mean it (like all ButtonBase-derived
27553           controls) to still draw their background
27554         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27555           the background
27556
27557 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27558
27559         * Control.cs (PaintControlBackground): Set the graphics object
27560           on our PaintEvent to null to prevent it from being disposed
27561           when the PaintEvent gets disposed
27562
27563 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27564
27565         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27566         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27567
27568 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27569
27570         * Control.cs: 
27571           - Added transparency check to BackColor property. Transparent
27572             backgrounds are only allowed if the control styles permit it
27573           - Added recursive painting of parent control background and
27574             foreground if a control with a transparent backcolor is drawn
27575             (Thanks to Tim Ringenback for providing his 'hack' as a base
27576              for this patch) Fixes #77985 and #78026.
27577           - Added Opaque style check before calling OnPaintBackground, no
27578             need to draw the background if the control is opaque
27579           - Removed ControlAccessibleObject owner variable (inherited from
27580             base, no need to define again)
27581           - Added some documentation links explaining the drawing events
27582             and styles
27583
27584 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27585
27586         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27587           that the affected control is the located at the left border of our
27588           parent (Fixes #77936)
27589
27590 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27591
27592         * TextBoxBase.cs: When rendering disabled or readonly controls,
27593           draw the background with 'Control' instead of 'Window' color as
27594           long as the user hasn't specifically set a color
27595
27596 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27597
27598         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27599           since that won't be updated if the user types text (only if it's
27600           programatically set)
27601
27602 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27603
27604         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27605           layout changes do to app-triggered resizes will have the proper
27606           display rectangle for layout
27607
27608 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27609
27610         * ThemeWin32Classic.cs:
27611           - Make use of the SystemBrushes and SystemPens wherever possible
27612           - Corrected some highlight colors
27613           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27614             drawing
27615         * Theme.cs: Added Empty field to CPColor struct
27616
27617 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27618
27619         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27620           is displayed when calculating the display rectangle. Thanks to Mike
27621           for teaching me the err of my ways.
27622
27623 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27624
27625         * ScrollableControl.cs:
27626           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27627             (instead of 0,0) and we now return the real width/height instead of
27628             just the clientrectangle, adjusted for padding. The rectangle is
27629             now cached and created by the new CalculateDisplayRectangle method.
27630           - Created new CalculateDisplayRectange method, which basically does
27631             what get_DisplayRectangle() did originally, but now using the 
27632             right edge instead of DisplayRectangle to determine the size of
27633             our scrollbars
27634           - get_Canvas(): Fixed it to properly calculate canvas for 
27635             right/bottom controls which seem to be placed to the right/bottom
27636             of any controls that have a fixed location
27637           - Removed TODO that's taken care of
27638           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27639             and SetDisplayRectLocation according to new MSDN2 docs
27640           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27641             event when that is called, this is added for compatibility
27642           - ScrollControlIntoView(): Implemented.
27643           - Switched scrollbars to be implicit, they shouldn't be selectable
27644         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27645           call it when the active control is set/changed
27646         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27647         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27648           implicit_control variable (used for native Win32 message generation)
27649         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27650           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27651         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27652         * XplatUIStructs.cs: Added ScrollBarCommands enum
27653
27654 2006-04-10  Jackson Harper  <jackson@ximian.com>
27655
27656         * ButtonBase.cs:
27657         * CheckedListBox.cs:
27658         * ComboBox.cs:
27659         * DataGrid.cs:
27660         * DataGridView.cs:
27661         * Form.cs:
27662         * GroupBox.cs:
27663         * ListBox.cs:
27664         * PrintPreviewControl.cs:
27665         * ProgressBar.cs:
27666         * PropertyGrid.cs:
27667         * Splitter.cs:
27668         * StatusBar.cs:
27669         * TrackBar.cs:
27670         * UpDownBase.cs: Fixup base event overrides.
27671         
27672 2006-04-06  Mike Kestner  <mkestner@novell.com>
27673
27674         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27675         all user-initiated value changes to min <= value <= max-thumbsz+1.
27676         (set_Value): check for vert/horiz when calculating new thumb position.
27677         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27678         like MS does.
27679         (OnMouseMoveSB): refactor the thumb dragging code and refine
27680         invalidation logic to reduce flicker.
27681         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27682         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27683         (UpdateThumbPosition): small code readability cleanup
27684
27685 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27686
27687         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27688           different
27689
27690 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27691
27692         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27693
27694 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27695
27696         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27697         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27698           This dramatically reduces the number of Pen.Dispose calls. 
27699           Where possible call ResPool methods only once instead of calling it
27700           over and over again (for example for the same color).
27701
27702 2006-04-06  Mike Kestner  <mkestner@novell.com>
27703
27704         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27705         Also remove an unused private field on the collection. Fixes #77972.
27706
27707 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27708
27709         * ThemeNice.cs: Added ToolBar drawing code
27710
27711 2006-04-06  Mike Kestner  <mkestner@novell.com>
27712
27713         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27714         I'm assuming that means we need to look up the toplevel for the
27715         provided control. Fixes the crash trace in #77911 but exposes another
27716         crash in some strange reflection usage in NDocGui.
27717
27718 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27719
27720         * ThemeNice.cs: Gave it a little silver touch and added Images
27721           method
27722         * FontDialog.cs: FontDialog is not resizable
27723         * FileDialg.cs: Added SizeGripStyle.Show
27724
27725 2006-04-05  Jackson Harper  <jackson@ximian.com>
27726
27727         * KeyboardLayouts.cs: Remove warning.
27728
27729 2006-04-05  Jackson Harper  <jackson@ximian.com>
27730
27731         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27732         all of our controls instead of Paint +=.
27733         * ListBox.cs:
27734         * ListView.cs:
27735         * MenuAPI.cs:
27736         * MessageBox.cs:
27737         * NotifyIcon.cs:
27738         * ProgressBar.cs:
27739         * ScrollBar.cs:
27740         * Splitter.cs:
27741         * StatusBar.cs:
27742         * TabControl.cs:
27743         * TextBoxBase.cs:
27744         * ToolBar.cs:
27745         * TrackBar.cs:
27746         * UpDownBase.cs:
27747         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27748         use OnPaintInternal. Remove Width/Height and Visible checks in
27749         paint handler, this is done at a higher level now.
27750         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27751         * PaintEventArgs.cs: Add a handled flag so controls that don't
27752         want anymore painting after OnPaintInternal can make sure OnPaint
27753         isn't called.
27754
27755 2006-04-05  Mike Kestner  <mkestner@novell.com>
27756
27757         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27758         state of the form, so that we don't process events when Modal dialogs
27759         are up. Fixes #77922.
27760
27761 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27762
27763         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27764           checking is done.
27765
27766 2006-04-05  Mike Kestner  <mkestner@novell.com>
27767
27768         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27769
27770 2006-04-05  Mike Kestner  <mkestner@novell.com>
27771
27772         * ListView.cs (HeaderMouseMove): null guarding for the over column
27773         when setting up the drag_to_index.  Fixes #78015.
27774
27775 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27776
27777         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27778           in the taskbar. Transient windows seem to accomplish that.
27779
27780 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27781
27782         * Form.cs:
27783           - Re-enabled CreateParams.X/Y code for FormStartPosition
27784           - Added code for manual placement when creating the Control
27785           - Incomplete patch to treat MDI forms differently when
27786             setting the ClientSizeCore. (Still need to figure out handling
27787             x/y coords there)
27788         * XplatUIX11.cs:
27789           - When we're explicitly setting the X/Y position of a non-Child
27790             window, let the WM know. Metacity really wants this.
27791
27792 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27793
27794         * ThemeNice.cs: Added CPDrawButton
27795
27796 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27797
27798         * ThemeNice.cs: Changed the color for focused buttons and activated
27799           the arrows for small scroll buttons.
27800
27801 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27802
27803         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27804           anymore. Changed some method modifiers to protected (virtual)
27805         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27806           changes
27807         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27808           Updated drawing of menus, buttons and progressbars; added
27809           CPDrawBorder3D 
27810
27811 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27812
27813         * ImageListStreamer.cs: implemented serialization/deserialization
27814         of the images.
27815
27816 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27817
27818         * ThemeWin32Classic.cs:
27819           - Removed all the DrawFrameControl stuff; CPDrawButton,
27820             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27821             inside the methods
27822           - Updated and corrected the drawing code of CPDrawButton,
27823             CPDrawCheckBox and CPDrawRadioButton to better match ms
27824           - Updated theme checkbox and radiobutton code to use the CP*
27825             methods
27826
27827 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27828
27829         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27830           bug is fixed
27831
27832 2006-03-31  Jackson Harper  <jackson@ximian.com>
27833
27834         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27835         sometimes.
27836         * UpDownBase.cs: Don't CreateGraphics manually, use a
27837         Refresh. Ideally we would invalidate the correct areas here.
27838
27839 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27840
27841         * XplatUIX11.cs: 
27842           - We now track the mapping state of windows. If a window (or 
27843             one of it's parents) is not mapped we no longer permit
27844             WM_PAINT messages to be generated since we'd otherwise get 
27845             lots of BadMatch X errors. Jackson did all the work figuring
27846             out the problem.
27847           - Destroying the caret if the window it's contained in is 
27848             destroyed. Can't use regular DestroyCaret method since it
27849             might fall into a drawing function (trying to remove the
27850             caret) and with that generate new BadMatch errors. Again,
27851             Jackson tracked this down.
27852           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27853             make sure we send the messages to all windows. (The old code
27854             would send the WM_DESTROY to the window, and then all child
27855             windows would be 'gone' because the WM_DESTROY handle lookup
27856             would no longer find the destroyed window)
27857         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27858         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27859
27860 2006-03-31  Jackson Harper  <jackson@ximian.com>
27861
27862         * ScrollableControl.cs: Dont recalc if we are not visible.
27863
27864 2006-03-31  Mike Kestner  <mkestner@novell.com>
27865
27866         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27867         the visibility branch.
27868
27869 2006-03-31  Jackson Harper  <jackson@ximian.com>
27870
27871         * ScrollBar.cs: Cap values when incrementing/decrementing.
27872
27873 2006-03-31  Mike Kestner  <mkestner@novell.com>
27874
27875         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27876         * ToolTip.cs: guard against timer expirations with no active control.
27877         Not sure why it happened.
27878
27879 2006-03-31  Mike Kestner  <mkestner@novell.com>
27880
27881         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27882         text.
27883         * ToolTip.cs: Position the tooltip based on where the cursor is at
27884         popup time, not at MouseEnter time.  Add a Down state so that we don't
27885         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27886         positioning offset. Lookup DisplaySize at positioning time, since it
27887         can theoretically change during invocation.
27888         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27889         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27890
27891 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27892
27893         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27894           Fixes behaviour when the Text property of the box is String.Empty
27895
27896 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27897
27898         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27899           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27900           a window)
27901
27902 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27903
27904         * FileDialog.cs: Visual enhancement for the popup buttons in 
27905           PopupButtonPanel
27906
27907 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27908
27909         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27910           code
27911
27912 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27913
27914         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27915           highlighted menu items to match ms
27916
27917 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27918
27919         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27920
27921 2006-03-30  Mike Kestner  <mkestner@novell.com>
27922
27923         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27924         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27925         go active to account for HotLight to Selected transition.
27926         * MenuItem.cs: add internal Selected prop. Fill out the Status
27927         property by calculating it from item info. Add HotLight,
27928         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27929
27930 2006-03-30  Mike Kestner  <mkestner@novell.com>
27931
27932         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27933
27934 2006-03-29  Jackson Harper  <jackson@ximian.com>
27935
27936         * Form.cs: Implement TODO.
27937
27938 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27939
27940         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27941           missing proper dialog setup in the constructor
27942
27943 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27944
27945         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27946         * Control.cs:
27947           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27948           - Fixed ResetBindings and removed TODO
27949           - Added check for cross-thread calls to get_Handle()
27950           - Added Marshaller attribute for set_Font to satisfy class status
27951         * FontDialog.cs: Removed TODOs that seemed implemented
27952         * UpDownBase.cs: Removed unneeded TODO and Fixme
27953         * MessageBox.cs: Implemented support for Default button and removed TODO
27954         * FileDialog.cs: Removed obsolete TODO
27955         * DomainUpDown.cs: Removed obsolete TODO
27956         * ButtonBase.cs: Removed obsolete TODO
27957         * XplatUIWin32.cs: Removed obsolete TODO
27958         * Form.cs:
27959           - Removed obsolete TODO
27960           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27961             internal status updates
27962           - Making sure the active control is selected when the control is created
27963         * CurrencyManager.cs: Removed obsolete TODO
27964
27965 2006-03-29  Mike Kestner  <mkestner@novell.com>
27966
27967         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27968         of PrintPreviewDialog and RichTextBox.
27969
27970 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27971
27972         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27973           DarkDark, Light and LightLight colors for a specific color
27974         * ThemeWin32Classic.cs:
27975           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27976             Appearance = Button 
27977           - Make use of the new ResPool helper CPColor
27978           - Draw ProgressBar and StatusBar with correct 3D borders
27979
27980 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27981
27982         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27983
27984 2006-03-28  Mike Kestner  <mkestner@novell.com>
27985
27986         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27987         calculating col/row counts.
27988
27989 2006-03-28  Mike Kestner  <mkestner@novell.com>
27990
27991         * ColumnHeader.cs:
27992         * ListView.cs:
27993         * ListViewItem.cs:
27994         * Menu.cs: 
27995         switch to explicit interface method implementation for some methods
27996         corcompare identifies as inconsistent with MS.
27997
27998 2006-03-28  Mike Kestner  <mkestner@novell.com>
27999
28000         * MainMenu.cs: 
28001         * Menu.cs:
28002         add a few missing methods from the class status output.
28003
28004 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
28005
28006         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
28007           correct.
28008
28009 2006-03-28  Mike Kestner  <mkestner@novell.com>
28010
28011         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
28012
28013 2006-03-27  Mike Kestner  <mkestner@novell.com>
28014
28015         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
28016         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
28017
28018 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
28019
28020         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
28021
28022 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28023
28024         * ThemeWin32Classic.cs:
28025           - GroupBox: Inserted a little gap between the text and the lines
28026             on the right side
28027           - Made the code in CPDrawBorder3D more readable
28028           - Corrected the drawing location of the up and down arrows in 
28029             CPDrawScrollButton
28030
28031 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28032
28033         * ControlPaint.cs: Corrected line widths in DrawBorder for
28034           ButtonBorderStyle Inset and Outset
28035
28036 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28037
28038         * ThemeWin32Classic.cs:
28039           - Rewrote the totally broken CPDrawBorder3D method. That was
28040             one of the main problems for the terrific ThemeWin32Classic
28041             look
28042           - Updated and corrected Button drawing
28043           - Correct the dimensions of the SizeGrip to match ms ones
28044           - Removed a small drawing glitch in DrawComboBoxEditDecorations
28045         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
28046           Border3DStyle.Sunken to match ms.
28047
28048 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
28049
28050         * ThemeWin32Classic.cs: First small part of the "de-uglify
28051           ThemeWin32Classic" effort, SizeGrip
28052
28053 2006-03-24  Jackson Harper  <jackson@ximian.com>
28054
28055         * XplatUIX11.cs: Give a max idle time of one second, this matches
28056         MS and forces an Idle event every second when there are no other
28057         events in the queue.
28058
28059 2006-03-24  Mike Kestner  <mkestner@novell.com>
28060
28061         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
28062         * ListView.Item.cs: fix layout issues with null image lists and images
28063         smaller than checkbox size.
28064         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
28065         mode like MS does.  It's weird, but consistent.  ;-)
28066         Fixes #77890.
28067
28068 2006-03-24  Mike Kestner  <mkestner@novell.com>
28069
28070         * ListView.cs: Scroll wheel support for the item control.  Fixes
28071         #77839.
28072
28073 2006-03-23  Jackson Harper  <jackson@ximian.com>
28074
28075         * ScrollableControl.cs: Special case negative sized areas, not
28076         zero.
28077         * MonthCalendar.cs: Save the rect of the clicked date so we can
28078         use it for invalidation.
28079         - Try to cut down on the number of invalidates
28080         - Invalidate the rect the mouse is over and was over when moving
28081         the mouse, so we get the focus box following the cursor.
28082
28083 2006-03-23  Mike Kestner  <mkestner@novell.com>
28084
28085         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
28086         focus rectangle drawing. Fixes #77835.
28087
28088 2006-03-23  Mike Kestner  <mkestner@novell.com>
28089
28090         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
28091         the if and else if and reverting back to the original == check on the
28092         None conditional.
28093
28094 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28095
28096         * FontDialog.cs: Update the example panel if the selected index of
28097           the fontListBox changes.
28098
28099 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28100
28101         * FileDialog.cs: Make FileDialog remember which directory it was in
28102           last in the same execution.
28103
28104 2006-03-22  Mike Kestner  <mkestner@novell.com>
28105
28106         * FileDialog.cs: make the DropDownMenu on the toolbar display
28107         RadioChecks since they are mutually exclusive and that's what MS does.
28108
28109 2006-03-22  Mike Kestner  <mkestner@novell.com>
28110
28111         * Theme.cs: add Color param to CPDrawMenuGlyph.
28112         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28113         checks and radio marks and arrows are visible on highlighted items.
28114         * ControlPaint.cs: update to use new Theme signature.
28115
28116 2006-03-22  Mike Kestner  <mkestner@novell.com>
28117
28118         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28119         is active. Fixes #77870.
28120
28121 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28122
28123         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28124           to be focused/selected after startup
28125
28126 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28127
28128         * ColorDialog.cs: 
28129           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28130             CustomColors and ShowHelp properties
28131           - Some internal rewrites to get better results when using the
28132             ColorMatrix
28133
28134 2006-03-22  Mike Kestner  <mkestner@novell.com>
28135
28136         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28137         HoverSelection.  Fixes #77836.
28138
28139 2006-03-22  Mike Kestner  <mkestner@novell.com>
28140
28141         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28142         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28143         1, not 0.  Update ButtonSize based on a pixel count of the win32
28144         control.  Adjust the toolbar size/location for new button size.
28145
28146 2006-03-22  Jackson Harper  <jackson@ximian.com>
28147
28148         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28149         true.
28150         * ScrollBar.cs: When doing increments and decrements we need to
28151         set the Value property so that ValueChanged gets raised. A
28152         possible optimization here would be to make an internal SetValue
28153         that doesn't invalidate immediately.
28154         * ToolTip.cs: Tooltips get added to their container (when
28155         supplied) so they get disposed when the container is disposed.
28156         - Don't create tooltips for String.Empty. This prevents all these
28157         little 2-3 pixel windows from showing up when running nunit-gui
28158         and driving me mad.
28159         * Form.cs: Don't set topmost when setting the owner if the handles
28160         haven't been created yet.  The topmost set will happen when the
28161         handles are created.
28162
28163 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28164
28165         * XplatUIX11.cs:
28166           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28167           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28168             visible (to allow them to recalculate their sizes)
28169
28170 2006-03-21  Mike Kestner  <mkestner@novell.com>
28171
28172         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28173         methods. Removed a ton of redundant code.  Still not really happy with
28174         the border rendering, but I think that's mainly because of the
28175         ControlDarkDark being black instead of a dark grey. Depending on how 
28176         close we want to be, we might want to revisit those color choices.
28177         Among the new features added during the refactor were DropDownArrow
28178         pressed rendering, Disabled image rendering.  Proper flat appearance
28179         boundary rendering.  Removed the Divider and Wrapping dividers since I
28180         can't figure out any combination of themes and conditions to make the
28181         MS control draw a horizontal line on a toolbar despite what the
28182         Divider property docs indicate.
28183         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28184         conditions and incorrect layout.  Updated to coding standard.
28185         * ToolBarButton.cs: refactored layout and positioning code from
28186         ToolBar to here.  Invalidate wherever possible instead of forcing
28187         redraws of the whole toolbar. 
28188         (Known remaining issues: explicit ButtonSize smaller than provided
28189         images.)
28190
28191 2006-03-21  Mike Kestner  <mkestner@novell.com>
28192
28193         * ContextMenu.cs (Show): use the position parameter instead of just
28194         showing at the MousePosition.
28195
28196 2006-03-21  Jackson Harper  <jackson@ximian.com>
28197
28198         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28199         control handle this.
28200         * TreeNodeCollection.cs: If we are clearing the root node we need
28201         to reset top_node so calcs can still happen.
28202         * ThemeWin32Classic.cs: This is a Flags so we need to check
28203         properly.
28204         
28205 2006-03-21  Jackson Harper  <jackson@ximian.com>
28206
28207         * DataGrid.cs: Create columns when the binding context has been
28208         changed.
28209         * X11Structs.cs: Keysyms are uints.
28210         - Add size to fix build.
28211
28212 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28213
28214         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28215           XplatUIOSX.cs: 
28216           - Added ResetMouseHover method to allow controls to retrigger
28217             hovering if they need it more than once
28218           - Implemented MouseHoverTime and MouseHoverSize properties
28219         * Timer.cs: Start() must reset the interval
28220         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28221           properties
28222
28223 2006-03-21  Jackson Harper  <jackson@ximian.com>
28224
28225         * X11Keyboard.cs: improved layout detection. Move the nonchar
28226         tables into this file.
28227         * KeyboardLayouts.cs: Move the tables into resource files.
28228
28229 2006-03-21  Mike Kestner  <mkestner@novell.com>
28230
28231         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28232
28233 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28234
28235         * Mime.cs: Various speed optimizations. Looking up mime types
28236           is now 2 times faster than before
28237
28238 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28239
28240         * CreateParams.cs: Added internal menu field
28241         * Control.cs: 
28242           - Switched call order for UpdateBounds; now we always call
28243             the one that also takes ClientSize, and we're calculating the 
28244             client size via driver method in the others. The previous
28245             method of tracking client size by difference wasn't working
28246             for forms where even the starting client size wouldn't match
28247             the overall form size (due to borders) (Part of fix for #77729)
28248           - CreateParams(): Do not use parent.Handle unless the handle is
28249             already created. Causes havoc with Nexxia and throws off our
28250             creation of controls
28251         * XplatUIX11.cs:
28252           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28253           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28254             method (consolidates code)
28255           - Changed RequestNCRecalc to use new PerformNCCalc method
28256           - Added calls to RequestNCRecalc when menus and borders are changed
28257             to allow app to set NC size. (Part of fix for #77729) This matches
28258             when MS send a WM_NCRECALC on Win32 windows.
28259           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28260             (Part of fix for #77729). This matches what MS does, they also
28261             send that message when the form is made visible.
28262           - XException.GetMessage: Improved usability of X errors by including
28263             a translation of the window into Hwnd and Control class
28264           - Improved debug info for window creation, reparenting and destruction
28265           - Created helper method WindowIsMapped() [Currently not used]
28266         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28267         * Form.cs:
28268           - CreateParams: Now setting our menu on the new internal menu field
28269           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28270             avoid calculating the same property twice
28271         * Hwnd.cs:
28272           - Improved usability of ToString() for debugging purposes
28273           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28274             determine the height of the menu, instead of just the font. This
28275             required to also create a graphics context and to keep a bmp 
28276             around (for performance reasons)
28277
28278 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28279
28280         * MenuAPI.cs: Added OnMouseUp method
28281         * Form.cs:
28282           - Now remembering the requested client size, avoids size errors
28283           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28284             instead of base if the menu is active. This is required due to
28285             control now capturing and releasing on down/up and it would
28286             prematurely release our menu capture
28287
28288 2006-03-17  Jackson Harper  <jackson@ximian.com>
28289
28290         * KeyboardLayouts.cs: Add the czech layouts.
28291
28292 2006-03-16  Jackson Harper  <jackson@ximian.com>
28293
28294         * Control.cs: Use the viewport space when sizing not the controls
28295         client size, so things like ScrollableControl that effect the
28296         viewport size (when scrollbars are added) are computed correctly.
28297         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28298         of ManagerEntrys.
28299         - Handle creating BindingManagers for null data sources.
28300         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28301         source, otherwise when rows are added they are added to the 'fake'
28302         datasource and we will crash when trying to set the position in
28303         those rows.
28304         - Use Implicit scrollbars on the datagrid so they arent
28305         selectable.
28306         
28307 2006-03-16  Jackson Harper  <jackson@ximian.com>
28308
28309         * Binding.cs:
28310         * InternalWindowManager.cs:
28311         * MdiWindowManager.cs:
28312         * X11Keyboard.cs: I really want Mike to love me again (fix
28313         compiler warnings).
28314
28315 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28316
28317         * DataGrid.cs:
28318           - OnMouseDown: Switch to editing mode when clicking on the cell
28319                          even if we're clicking on the cell that's currently 
28320                          selected
28321           - ProcessGridKey: Left/Right now wrap like MS.Net does
28322           - ProcessGridKey: Tab now knows to add a new row when tab is
28323                             pressed in the cell of the last column of the 
28324                             last row
28325           - ProcessGridKey: Enter now adds another row  if pressed in the last
28326                             row and selectes the new row, same column cell
28327           - ProcessGridKey: Home/End navigate columns, not rows, like 
28328                             originally implemented
28329           - Broke ProcessKeyPreview code out into an extra Internal method
28330             so it can be called from the edit code
28331         * DataGridTextBox.cs (ProcessKeyMessage):
28332           - Switched to accept Tab keypresses
28333           - Added F2 handling to allow jumping to the end of the edited cell
28334           - Added logic to allow moving caret left/right inside edited cell
28335             and making the edited cell jump when the caret hits cell borders
28336           - Tab and Enter are now passed to the datagrid after being handled
28337         * TextBoxBase.cs:
28338           - Removed capture code now that Control handles it
28339           - set_SelectionStart now ensures caret is visible
28340
28341 2006-03-16  Jackson Harper  <jackson@ximian.com>
28342
28343         * TrackBar.cs: Debackwards the increment/decrement for handling
28344         mouse clicks on the bar with vertical trackbars.
28345         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28346         bottom to match MS.
28347
28348 2006-03-16  Mike Kestner  <mkestner@novell.com>
28349
28350         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28351         consistent with the MS control. Fix a bug in
28352         SelectedListViewItemCollection.Clear that was pissing me off for the
28353         better part of a day because the collection was being altered
28354         underneath us as we walked the list.
28355
28356 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28357
28358         * Control.cs: Not sure how we could miss this so long, but it seems
28359           that MS.Net has Capture set all the way from before calling 
28360           OnMouseDown through sending the mouse events until after
28361           OnMouseUp. This will fix DataGrid's selection being set to end
28362           at the location of the MouseUp.
28363
28364 2006-03-15  Jackson Harper  <jackson@ximian.com>
28365
28366         * BindingContext.cs: Check the binding after its added so that it
28367           can initialize the binding managers and hookup to events.
28368         * Binding.cs: Data members seem to sometimes include rows/cols in
28369           the format Row.Column we now take this into account.
28370           - Hookup to the position changed event so we can update the
28371           control when the position has changed in the data set.
28372         * CurrencyManager.cs: Take into account the row/col naming
28373           convention when creating dataset tables.
28374         * BindingContext.cs: Using a newer better way of storing
28375           datasource/datamember pairs.  Hopefully this better matches MS for
28376           looking up binding managers.
28377
28378
28379 2006-03-15  Jackson Harper  <jackson@ximian.com>
28380
28381         * BindingContext.cs: The currency manager needs the data member
28382         name, if the member is a data set we use the name to find the
28383         correct table.
28384         * CurrencyManager.cs: When creating the list prefer an IList over
28385         an IListSource.
28386         - Attempt to create a DataTable from a DataSet (TODO: might need
28387         some better error checking here, although MS doesn't seem to have much)
28388         - If we have a DataTable create a view and use it as our list.
28389
28390 2006-03-15  Mike Kestner  <mkestner@novell.com>
28391
28392         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28393         keyboard navigation. Support Up/Down/Left/Right selection correctly
28394         for all 4 View modes.
28395         * ListViewItem.cs: add internal row/col fields for icon layouts.
28396
28397 2006-03-15  Jackson Harper  <jackson@ximian.com>
28398
28399         * TabControl.cs: Redraw the tabs when we resize so their newly
28400         calculated sizes are drawn on screen.
28401         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28402         composite characters.
28403         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28404         - filter events so that composite characters can be created
28405         patches by peter
28406         * X11Structs.cs: Add XIMProperties enum.
28407
28408 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28409
28410         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28411           unless it's created
28412
28413 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28414
28415         * Control.cs (PerformLayout): We don't need to consider visiblity
28416           for anchoring, only for docking. This fixes 'whacky' alignment
28417           in listbox and other controls that use implicit scrollbars after
28418           the previous PerformLayout patch
28419         * ListBox.cs: Switched to use implicit scrollbars
28420           
28421 2006-03-14  Mike Kestner  <mkestner@novell.com>
28422
28423         * ToolBar.cs: 
28424         * VScrollBar.cs:
28425         - chain up the "new event" overrides to base and use
28426         OnEvent to raise them.  Part of fix for bug #76509.
28427
28428 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28429
28430         * FileDialog.cs: Do not select an item in the parent directory
28431           on backspace
28432
28433 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28434
28435         * Control.cs (PerformLayout): It would seem that we considered
28436           invisible windows for our layout. Not quite the right thing
28437           to do. Now we don't any longer, thereby fixing bug #76889.
28438
28439 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28440
28441         * Control.cs (CanFocus): I goofed. A control can have focus 
28442           even though it's not selectable. Made it match MS docs.
28443
28444 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28445
28446         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28447           center by default (fixes #76895)
28448         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28449           all uses of Border3DSides.All with the explicit ORd together
28450           Left|Right|Top|Bottom because I assume that nobody was aware 
28451           that All also implies a center fill. Most places I checked had
28452           a fill right above.
28453         * ProgressBarStyle.cs: Added
28454
28455 2006-03-13  Mike Kestner  <mkestner@novell.com>
28456
28457         * ListView.cs: fix breakage in drag shadow header positioning 
28458         from Peter's csc compilation fix.
28459
28460 2006-03-13  Mike Kestner  <mkestner@novell.com>
28461
28462         * ListView.cs: fix NRE produced by backspacing twice in a focused
28463         FileDialog.
28464
28465 2006-03-13  Mike Kestner  <mkestner@novell.com>
28466
28467         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28468
28469 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28470
28471         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28472           be changed
28473         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28474           the allowed size before making programmatic size changes
28475
28476 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28477
28478         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28479           set, metacity is broken and will still use the emty sizes in 
28480           the struct. (Fix for #77089)
28481
28482 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28483
28484         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28485           WindowExStyles and marked both enums as Flags
28486         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28487           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28488           to match WindowStyles split
28489         * XplatUIX11.cs:
28490           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28491           - Updated to match WindowStyles split
28492         * XplatUIWin32.cs:
28493           - Fixed FosterParent creation, was using ExStyle on the Style field
28494             (This should help with Popup focus issues)
28495           - Updated to match WindowStyles split
28496
28497 2006-03-13  Jackson Harper  <jackson@ximian.com>
28498
28499         * MdiWindowManager.cs: Use the system menu height. Fixes some
28500         strange sizing issues.
28501
28502 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28503
28504         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28505         * TextBoxBase.cs:
28506           - Scroll to caret after inserting text (#77672)
28507           - Make scroll range one pixel higher, fixes off-by-one error (and
28508             makes underlines visible on the last line)
28509
28510 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28511
28512         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28513           the keyboard state from being stuck with keys in 'pressed' state when
28514           focus is switched away via keyboard
28515         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28516           reset the keyboard if no X11 KeyUp events are expected to come
28517         * X11Structs.cs: Switched type of Visible to bool to match driver
28518
28519 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28520
28521         * TextControl.cs:
28522           - Switched caret to be just 1 pixel wide, matches MS and looks less
28523             clunky
28524           - Moved caret display 1 pixel down from the top of the control
28525             to improve view
28526           - InsertCharAtCharet: Update the selection start if moving the caret
28527             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28528           - No longer always creating the caret when the caret methods are
28529             called. Only the actual ShowCaret/HideCaret will do that now
28530           - Only setting caret visible if the owner control has focus
28531           - UpdateView: Added invalidation-shortcut logic for center and right 
28532             aligned text. Previously we'd update all according to the left
28533             logic which caused drawing errors. Also fixed height of invalidated
28534             areas, now properly invalidating the whole area (was off-by-one)
28535           - owner_HandleCreated: Always generate the document when the
28536             handle is created; this ensures that 
28537         * TextBoxBase.cs:
28538           - Fixed situation where caret would disappear under the right
28539             window border, also improved scrolling behaviour on left-
28540             aligned textboxes
28541           - Fixed right-aligned textboxes to have a border to the
28542             right instead of the caret being under the right border
28543         * XplatUIX11.cs:
28544           - Switched from 'nested' to simple visible/not visible tracking 
28545             for caret (part of fix for #77671)
28546           - No longer passing through translated FocusIn/FocusOut messages
28547             since we were notifying too often and the wrong windows. Instead
28548             we just notify our focussed window of receiving or loosing focus
28549         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28550           counting for caret to simple visible yes/no behaviour (part of 
28551           fix for #77671)
28552
28553 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28554
28555         * Mime.cs: Remove debug code...
28556
28557 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28558
28559         * MimeGenerated.cs: Removed
28560         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28561           and subclasses) from /usr/(local/)share/mime and
28562           $HOME/.local/share/mime.
28563
28564 2006-03-10  Jackson Harper  <jackson@ximian.com>
28565
28566         * MdiWindowManager.cs: Recalc the NC area when a window is
28567         maximized/restored so that the menu area is drawn on forms that
28568         don't have a menu.
28569
28570 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28571
28572         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28573           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28574           us to force a WM_NCCALCRESIZE message being sent. This is needed
28575           for MDI maximizing.
28576
28577 2006-03-10  Jackson Harper  <jackson@ximian.com>
28578
28579         * Form.cs: We need to use the ActiveMenu when calculating menu
28580         height.
28581         - Fix nullref when the window manager hasn't been created yet.
28582         * Control.cs: Fix nullref when we try to bring a control to the
28583         front that has no parent.
28584         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28585         height.
28586         - Add a dummy item to the maximized menu so it always has the
28587         correct height. Otherwise when there are no menus we don't get our
28588         icon and buttons.
28589         
28590
28591 2006-03-10  Jackson Harper  <jackson@ximian.com>
28592
28593         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28594         stuff.
28595         * Form.cs: Make the window_state internal so the window managers
28596         can track it.
28597         - When an MDI child is maximized let its window manager create the
28598         main menu (so it can add its icon).
28599         - Notify the window managers of state changes
28600         - Let the window manager paint its buttons and handle button
28601         clicks on the menu when it is maximized.
28602         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28603         window manager, since tool windows don't use it, only mdi windows.
28604         - Tell the main form that we don't want it to handle NCPAINT
28605         itself to avoid extra painting.
28606         - Handle clicks on a maximized windows menu.
28607         - Handle window state changes
28608         - Handle minimize/maximize clicks correctly by setting the window state.
28609         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28610         when clicking on the forms icon).
28611         - New method to create a forms maximized menu. This is its normal
28612         menu + an icon.
28613         - Handle window state changes.
28614         - Handle sizing of maximized windows.  Maximized windows are just
28615         drawn bigger then the parent visible area. All controls are still
28616         there, they are just outside the visible area (this matches windows).
28617         * MdiClient.cs: No scrollbars when a child window is maximized.
28618         - Let the children windows figure out how big they should be when
28619         sizing maximized windows.
28620         - Implement a version of ArrangeIconicWindows somewhat similar to
28621         Windows version.  There are some little differences, but I don't
28622         think any app will rely on the layout of minimized mdi windows.
28623
28624 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28625
28626         * Padding.cs: Several fixes to allow compiling with csc 2.0
28627
28628 2006-03-09  Jackson Harper  <jackson@ximian.com>
28629
28630         * Menu.cs:
28631         * MenuItem.cs: Cheap hack so we can add items to the list without
28632         the events being raised.  This allows adding mdi items during
28633         drawing. TODO: Should probably find a better time to add the items.
28634
28635 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28636
28637         * ThemeWin32Classic.cs:
28638           - CheckBox_DrawText: Added logic to not wrap if not enough space
28639             is available (Fix for bug #77727)
28640           - RadioButton_DrawText: Added logic not to wrap if not enough
28641             space is available (Fix for bug #77727). Also removed some
28642             duplicate code, DrawString always drawing the regular text
28643             before hitting the if statement.
28644
28645 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28646
28647         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28648
28649 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28650
28651         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28652         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28653           methods. Moved the new 2.0 properties into alphabetical order with
28654           other properties and added MonoTODO tags
28655
28656 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28657
28658         * AutoScaleMode.cs: Added. Fix build.
28659
28660 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28661
28662         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28663           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28664           and was requiring premature handle creation for calls from above
28665         * Form.cs, Control.cs: Removed handle arguments from calls to
28666           CalculateClientRect()
28667
28668 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28669
28670         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28671           drag_column.column_rect is MarshalByRef and can't be used that way
28672
28673 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28674
28675         * AxHost.cs: Added deserialization constructor for 
28676           AxHost+State (fixes 77743)
28677
28678 2006-03-09  Mike Kestner  <mkestner@novell.com>
28679
28680         * ListView.cs: 
28681         - Added column drag reordering for details view.
28682         - fixed behavior when mouse is dragged off column and
28683         AllowColumnReorder is false.
28684         * ColumnHeader.cs: clone the format too in Clone.
28685         * Theme.cs: add DrawListViewHeaderDragDetails method.
28686         * ThemeWin32Classic.cs:
28687         - impl new method for drawing drag column shadows and targets.
28688         - support column offset for details mode in DrawListViewItem.
28689
28690 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28691
28692         * TextControl.cs: Reset the char_count when the document is cleared
28693           (Fixes bug reported on mono-winforms mailing list)
28694
28695 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28696
28697         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28698           of calling base we simply process the key ourselves, since both
28699           DefWindowProc and the handled method would set m.Result. 
28700           (Fixes #77732)
28701
28702 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28703
28704         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28705           method also moves the window; instead implemented a copy of
28706           Control.ScaleCore (Part of fix for #77456)
28707         * TextBoxBase.cs: 
28708           - Created new CreateGraphicsInternal method to allow providing
28709             a graphics context when no handle is created without triggering
28710             handle creation. (Part of fix for #77456)
28711           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28712         * TextControl.cs: 
28713           - Switched Constructor to require TextBoxBase instead of Control (to
28714             allow uncast access to CreateGraphicsInternal)
28715           - Safeguarded use of owner.Handle property. No longer accessing it
28716             unless the handle is already created.
28717           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28718           - Now triggering a recalc when owning control becomes visible
28719         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28720           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28721           premature handle creation (Part of fix for #77456)
28722         * Control.cs:
28723           - We now only destroy our double-buffering buffers when the
28724             control is resized or disposed, but not when visibility
28725             changes. (The code even re-created them twice every time)
28726           - Now requiring a redraw of the buffer on visibility changes
28727             (fixes bug 77654 part 2)
28728           - Not passing OnParentVisibleChanged up unless the control
28729             is visible
28730           - CanFocus: Fixed to match MS documentation
28731           - Focus: Fixed to return actual focus state and to check if
28732             setting focus is legal before setting it
28733
28734 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28735
28736         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28737           when to draw focus rectangle by looking at parent focus and
28738           selected state instead. This fixes TabPages on Linux sometimes
28739           having none or multiple focus rectangles.
28740         * XplatUIX11.cs (SetFocus): 
28741           - Don't set the focus if the same window already has focus
28742           - Use SendMessage instead of PostMessage (like it's Win32
28743             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28744             to match MS behaviour
28745         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28746           are not selectable.
28747
28748 2006-03-07  Jackson Harper  <jackson@ximian.com>
28749
28750         * PictureBox.cs: Revert line I accidently committed last week.
28751
28752 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28753
28754         * Control.cs: 
28755           - Added new IsRecreating and ParentIsRecreating properties to
28756             allow testing if RecreateHandle has been called on ourselves
28757             or one of our parents
28758           - WndProc(WM_DESTROY): If our control handle is being recreated
28759             we immediately need to create the handle when receiving the
28760             destroy, that way our child windows find a valid parent handle
28761             when they themselves are being recreated upon WM_DESTROY receipt
28762             (fix for bug #77654 part 1)
28763         * XplatUIX11.cs:
28764           - DestroyWindow: WM_DESTROY must be sent to our own window before
28765             notifying any child windows. MS documents that child windows
28766             are still valid when WM_DESTROY is received. (Control now relies on
28767             this behaviour)
28768           - Added some fine-grain debug options
28769
28770 2006-03-06  Jackson Harper  <jackson@ximian.com>
28771
28772         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28773         box and base calculations off this.
28774         * MdiChildContext.cs:
28775         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28776         anymore.
28777         
28778 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28779
28780         * Splitter.cs: In situations where the affected control is added
28781           to the parent's control list after the splitter, we would not
28782           populate affected. Now we try populating it on mousedown, if
28783           it's not already set, and force it to be re-set whenever our
28784           parent changes.
28785
28786 2006-03-03  Matt Hargett  <matt@use.net>
28787
28788         * Control.cs: implement Control.Padding
28789         * Padding.cs: -Padding.All returns -1 when constructing with the
28790         implicit default ctor
28791         -Padding.ToString() matches MS.NET
28792         * ContainerControl.cs: implement
28793         ContainerControl.AutoScaleDimensions
28794         * ListControl.cs: implement ListControl.FormattingEnabled
28795         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28796         * ButtonBase.cs:
28797         * TabPage.cs: Implement UseVisualStyleBackColor.
28798         * PictureBox.cs: Implement PictureBox.InitialImage.
28799
28800 2006-03-03  Mike Kestner  <mkestner@novell.com>
28801
28802         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28803         event declarations to proxy to base event.
28804         * ListViewItem.cs: update to use ItemControl.
28805         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28806         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28807         column header label rendering for 0 width columns.
28808
28809 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28810
28811         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28812           that causes the control to be created. Fixes #77476.
28813
28814 2006-03-02  Jackson Harper  <jackson@ximian.com>
28815
28816         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28817         expose_pending.
28818
28819 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28820
28821         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28822           passed in for the EventArgs (fixes #77690)
28823
28824 2006-03-01  Jackson Harper  <jackson@ximian.com>
28825
28826         * ScrollBar.cs: Refresh afterbeing resized.
28827
28828 2006-02-28  Mike Kestner  <mkestner@novell.com>
28829
28830         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28831         Clean up a tracker compile warning.
28832         * MenuItem.cs: add internal PerformPopup method.
28833         [Fixes #77457]
28834
28835 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28836
28837         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28838           implicit expose) when the text is set to null
28839
28840 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28841
28842         * RichTextBox.cs (FlushText): When newline is true, we always
28843           need to split the line, even if no text is on it and we may
28844           never eat newlines. (Fixes #77669)
28845
28846 2006-02-28  Mike Kestner  <mkestner@novell.com>
28847
28848         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28849         and set Selected instead.
28850         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28851         collections.
28852
28853 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28854
28855         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28856
28857 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28858
28859         * FontDialog.cs:
28860           - Got rid of the panel. All controls are now directly added to
28861             the dialog form
28862           - It is now possible to set a font with the Font property
28863           - MinSize and MaxSize property do now what they should
28864           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28865           - Searching and selecting a font with the font textbox works now,
28866             the same applies to the style and size textbox
28867           - Draw the correct 3D border in the example panel
28868           - Fixed a little mem leak (unused fonts didn't get disposed)
28869           - Many other internal updates/rewrites...
28870           - Fix typo
28871
28872 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28873
28874         * TextControl.cs: 
28875           - InsertRTFFromStream: Added 'number of characters inserted' argument
28876           - set_SelectedRTF: Now using the number of characters to calculate
28877             the new location for the selection and cursor (x/y cannot be used
28878             due to potentially already wrapped text)
28879
28880 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28881
28882         * TextControl.cs: Added property and implemented means to allow 
28883           disabling recalculation of a document (can be used to speed up
28884           multiple inserts and is needed to make RTF inserts predictable, see
28885           bug #77659)
28886         * RichTextBox.cs: Using the new NoRecalc property of Document to
28887           keep x/y insert locations predictable. Also makes it faster inserting
28888           large chunks of RTF
28889
28890 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28891
28892         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28893           it's easier for a child control to handle the other messages without
28894           having to duplicate the special functionality
28895         * TextBoxBase.cs
28896           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28897             code to handle processing the key ourselves, in order to get 
28898             access to the result of KeyEventArgs.Handled. We now only call 
28899             ProcessKey if they key hasn't been handled already. Fixes #77526.
28900           - set_Text: If null or empty string is given, just clear the 
28901             document. Fixes part of #77526
28902
28903 2006-02-27  Jackson Harper  <jackson@ximian.com>
28904
28905         * SizeGrip.cs: Paint the background color before painting the grip
28906         so things look right.
28907         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28908
28909 2006-02-27  Mike Kestner  <mkestner@novell.com>
28910
28911         * ListView.cs:
28912           - Restructure layout and invalidation model to remove a ton of
28913           flicker from the control and speed up performance in general.
28914           - Add manual column resize, flickers like crazy, but I already have
28915           some ideas on how I'll fix that. (#76822)
28916           - Merge the three Icon-based views into a single layout method.
28917           - Move item selection interaction logic from the item since 
28918           interaction with the collections is more appropriate to the view.
28919           - Deselection on non-item clicks.
28920         * ListViewItem.cs:
28921           - Encapsulate most of the layout. Add some internal props to trigger
28922           layout.  Move to a model where Items invalidate themselves instead
28923           of just invalidating the whole control every time something changes.
28924           - Invalidate on Text/Caption changes.
28925           - switch to an offset based layout model to avoid having to absolute
28926           position every element on item moves.
28927           - correct checkbox layout to conform to MS layout.
28928         * ThemeWin32Classic.cs:
28929           - refactor some column header drawing code.
28930           - fix string justification for column headers (#76821)
28931           - make SmallIcon labels top justified for compat with MS impl.
28932         * ThemeClearlooks.cs:
28933           - adjust to new ListViewItem internal checkbox bounds api.
28934
28935 2006-02-27  Jackson Harper  <jackson@ximian.com>
28936
28937         * Control.cs:  Change where implicit controls fall in the zorder.
28938         They are now on top of all children.
28939         - Synced AddImplicit code with Add
28940         - Removed unused enumerator.
28941         * SizeGrip.cs: Remove the TODO as its been TODONE.
28942
28943 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28944
28945         * TextControl.cs(Insert): Combine the last lines unless the insertion
28946           string ends with \n\n, otherwise we leave one line too many (Fixes
28947           something I noticed with the testapp for #77526; the bug itself was
28948           already fixed in the previous checkin)
28949
28950 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28951
28952         * RichTextBox.cs:
28953           - SelectionColor and SelectionFont methods no longer set absolute
28954             styles. Instead, the keep font or color respectively (This 
28955             resolves a long-standing FIXME in the code)
28956           - When flushing RTF text, the insert code now considers text trailing
28957             behind the insertion point (Fixes the bug where when replacing
28958             the selected text via SelectedRTF the remainder of the line behind 
28959             the selection would stay on the first insertion line)
28960         * TextBoxBase.cs:
28961           - AppendText now updates the selection points after inserting text
28962           - AppendText now ensures that the last tag (sometimes 0-length) of
28963             the document is used for the style information (Fixes part of 
28964             bug #77220)
28965         * TextControl.cs:
28966           - Created new FontDefiniton class to allow describing partial style
28967             changes
28968           - StreamLine() now takes a lines argument, to allow it to decide
28969             whether an encountered zero-length tag is the last in the document
28970             (which must be kept to not loose the font/color contained in it,
28971             for later appends)
28972           - Created Combine() and Split() methods for Marker structs, to 
28973             support marker updates due to reformatted documents (soft line
28974             wraps)
28975           - Implemented Document.CaretTag setter
28976           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28977             of the last line (Not the cause, but also exposed by bug #77220)
28978           - Added LineTag argument to InsertString method, to allow callers
28979             to force a certain tag to be used (required to force use of the
28980             trailing zero-length tag of a document)
28981           - Now updating markers in Combine(), to avoid stale tag markers
28982           - Added some method descriptions to aid maintenance
28983           - Implemented new FormatText concept, allowing additive/subtractive
28984             formatting by only specifying the components that are to be 
28985             changed. This was needed for resolving the RTB.SelectedColor/
28986             RTB.SelectedFont fixmes
28987           - Added Break() support method to allow breaking up linetags (used
28988             for partial formatting)
28989           - Added GenerateTextFormat() method. It is used for partial 
28990             formatting and allows to generate a full font/color from given
28991             attributes and an existing tag.
28992
28993 2006-02-26  Jackson Harper  <jackson@ximian.com>
28994
28995         * XplatUIX11.cs:  Use the correct caption height.
28996         - Translate hittest coordinates to screen coords to match MS.
28997         * XplatUIWin32.cs: When we create MDI windows we need to reset
28998         some of the style flags, so we get a nice blank window, and can
28999         draw all the decorations ourselves.
29000         - Set a clipping rectangle on the non client paint event, the
29001         window manager drawing code needs one.
29002         * Form.cs: The window manager needs to know when the window state
29003         has been updated.
29004         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
29005         don't need to factor in border and title sizes in these
29006         methods. TODO: Remove the args and fix the call points.
29007         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
29008         properly.
29009         - Let the driver set the cursors.
29010         - Improve active window handling
29011         - Correct sizes for title bars and buttons.
29012         - Match MS drawing better
29013         * MdiWindowManager.cs: We don't need to handle border style
29014         updates specially anymore.
29015         - Check for scrollbars when windows are done moving
29016         - Handle Active properly.
29017         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
29018         correctly. I am spewing the exception though, so we don't hide the
29019         bugs.
29020         
29021 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
29022
29023         * DataGridViewRowPostPaintEventArgs.cs,
29024           DataGridViewCellPaintingEventArgs.cs,
29025           DataGridViewRowCollection.cs,
29026           DataGridViewRowPrePaintEventArgs.cs,
29027           DataGridViewCell.cs: Clear a few warnings and implement a few
29028           exceptions that should be thrown.
29029
29030 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29031
29032         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
29033           'inheriting' our parent's (non-default) cursor. (Part of
29034            the fix for #77479)
29035
29036 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
29037
29038         * XplatUIX11.cs: Fixed cast to make csc happy
29039
29040 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
29041
29042         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
29043           it's for the client area (part of fix for #77479 and needed
29044           for MDI window cursor handling)
29045         * XplatUIX11.cs
29046           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
29047             the appropriate default cursors and also passing the message
29048             up the parent chain 
29049           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
29050             for non-client areas
29051
29052 2006-02-15  Jackson Harper  <jackson@ximian.com>
29053
29054         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
29055         is a real MDI window
29056
29057 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
29058
29059         * X11DesktopColors.cs: Instead of checking the desktop session
29060           string for "KDE" check if it starts with "KDE"
29061
29062 2006-02-10  Jackson Harper  <jackson@ximian.com>
29063
29064         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
29065         systems).
29066
29067 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29068
29069         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
29070           errors
29071         * ColorDialog.cs:
29072           - Got rid of the panel. All controls are now directly added to
29073             the dialog form
29074           - Changed to mono coding style
29075
29076 2006-02-10  Jackson Harper  <jackson@ximian.com>
29077
29078         * InternalWindowManager.cs: We don't need the set visibility to
29079         false hack anymore now that peter has written beautiful shutdown
29080         code.
29081
29082 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
29083
29084         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
29085           where already explicitly destroyed
29086
29087 2006-02-10  Jackson Harper  <jackson@ximian.com>
29088
29089         * MdiClient.cs: Handle the case where windows are too high or to
29090         the left and we need scrollbars.
29091
29092 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
29093
29094         * MimeIcon.cs: Added some icons
29095         * FileDialog.cs:
29096           - Fixed bug #77477
29097           - Got rid of the panel. All controls are now directly added to
29098             the dialog form
29099           - Changed to mono coding style
29100           - On Linux "My Computer" and "My Network" will now show some
29101             more usefull information. A new class, MasterMount, gathers
29102             this information from /proc/mount. Updated MWFFileView to make
29103             use of this information
29104           - Fixed a bug that caused FileDialog to crash when
29105             ".recently_used" file had a zero size
29106           - FilterIndex does now what it should
29107           - Some Refactoring
29108         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29109             FileDialog changes
29110
29111 2006-02-09  Jackson Harper  <jackson@ximian.com>
29112
29113         * ComboBox.cs: Don't touch if null.
29114
29115 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29116
29117         * Cursor.cs: 64bit safeness fix
29118         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29119
29120 2006-02-09  Jackson Harper  <jackson@ximian.com>
29121
29122         * Form.cs: If a form is made into an MDI form update the styles so
29123         all the props can get set correctly.
29124         - Kill the mdi_container when we dont need it anymore.
29125         * InternalWindowManager.cs: Add missing NOT
29126
29127 2006-02-08  Jackson Harper  <jackson@ximian.com>
29128
29129         * InternalWindowManager.cs: Respek clipping when drawing MDi
29130         decorations.
29131
29132 2006-02-08  Jackson Harper  <jackson@ximian.com>
29133
29134         * Hwnd.cs: Add bits to track non client expose events.
29135         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29136         gives us a proper invalid rect and will allow for some nice
29137         optimizations with NC client drawing
29138         - MDI windows are children windows, so move their style handling
29139         into the child window block.
29140         * InternalWindowManager.cs: Remove a state reset that was
29141         getting invoked at the wrong time. Fixes managed windows getting
29142         into a 'stuck' captured state.
29143
29144 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29145
29146         * TextControl.cs (Document.ctor): Now initializing 
29147           selection_anchor. Fixes #77493
29148
29149 2006-02-07  Jackson Harper  <jackson@ximian.com>
29150
29151         * TrackBar.cs: The increment/decrements were backwards.
29152
29153 2006-02-07  Mike Kestner  <mkestner@novell.com>
29154
29155         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29156         to the instance itself.
29157
29158 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29159
29160         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29161           on ulongs and pointers, the size differs between 32bit and 64bit
29162           systems. 
29163
29164 2006-02-07  Mike Kestner  <mkestner@novell.com>
29165
29166         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29167         for 64 bit platforms to work around a metacity bug. 
29168
29169 2006-02-07  Jackson Harper  <jackson@ximian.com>
29170
29171         * TrackBar.cs: Process the input keys we need, and hookup to
29172         KeyDown instead of using WndProc, so we get key messages.
29173
29174 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29175
29176         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29177           machine we're on. 
29178         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29179           we need to translate the XdndVersion atoms array before sending it
29180
29181 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29182
29183         * XplatUIX11.cs: 
29184           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29185             number of bits for the property, not the number of bytes. The
29186             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29187             but would not crash since it specified 8 bits instead of 4 bits)
29188           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29189             defined as XID -> long in the C headers)
29190           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29191             references since those are now IntPtr to begin with
29192           - Switched all Atom.XXX 'int' casts to IntPtr casts
29193           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29194           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29195           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29196         * X11Structs.cs:
29197           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29198           - Changed atom in HoverStruct to be IntPtr
29199         * X11DnD.cs:
29200           - Removed local DllImports, switched code to use those from XplatUIX11
29201           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29202
29203 2006-02-06  Mike Kestner  <mkestner@novell.com>
29204
29205         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29206         method signatures in the import region.  There may still be some
29207         lingering struct marshaling issues, as I didn't drill down into those.
29208         Yet.
29209
29210 2006-02-06  Jackson Harper  <jackson@ximian.com>
29211
29212         * ComboBox.cs: Dont manually set the top_item, this is computed
29213         when the scrollbar position is set.
29214
29215 2006-02-06  Mike Kestner  <mkestner@novell.com>
29216
29217         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29218         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29219         usage of Atom needs to be mapped to IntPtr for example.  And there are
29220         likely other int/long issues to be addressed.
29221
29222 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29223
29224         * FileDialog.cs: One more...
29225
29226 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29227
29228         * FileDialog.cs: Next try
29229
29230 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29231
29232         * FileDialog.cs: First part of fix for #77464
29233
29234 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29235
29236         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29237           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29238           AcceptButton border drawing.
29239
29240 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29241
29242         * Form.cs: Moved positioning of form after auto scaling is applied,
29243           otherwise it would possibly use wrong form size.
29244
29245 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29246
29247         * Control.cs (RecreateHandle): No need to re-create any child
29248           controls, the child windows will get destroyed automatically by
29249           the windowing system or driver, and re-created when the handle
29250           is being accessed the first time. Fixes #77456
29251         * Form.cs: No longer setting the form to closing if the handle is 
29252           being recreated. This seems like the right thing to do, don't
29253           have a bug or testcase for this, though.
29254
29255 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29256
29257         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29258           controls to avoid unwanted side effects
29259
29260 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29261
29262         * Control.cs: 
29263           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29264             control. Fixes #77416.
29265           - DefaultSize is 0,0 for control
29266         * TextBoxBase.cs: 
29267           - DefaultSize is 100, 20
29268           - SetBoundsCore: Now enforcing the height, no matter if the provided
29269             height is more or less than the preferred one, as long as AutoSize
29270             is on
29271         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29272
29273 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29274
29275         * Control.cs:
29276           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29277             call unless both performLayout is true *and* we have a pending
29278             layout change
29279           - ResumeLayout: MS does not completely nest Suspend and Resume,
29280             they bottom out at 0, fixed our code to match that.
29281           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29282             SetBoundsCore, we were updating even when we shouldn't. This fixes
29283             swf-anchors mis-anchoring when resizing the app fast and lots.
29284           - UpdateDistances: Now only setting the left and top distance if 
29285             we have a parent and are not suspended, this is based on
29286             a suggestion by Don Edvaldson in bug #77355.
29287           - OnVisibleChanged: Fixed logic when to create the control. We may
29288             not create the control if we have no parent or if it's not visible;
29289             switched to using Visible property instead of is_visible field 
29290             since the property also considers parent states. This fixes a bug
29291             when starting Paint.Net
29292
29293 2006-02-02  Jackson Harper  <jackson@ximian.com>
29294
29295         * Form.cs: If the forms handle hasn't been created yet don't call
29296         into xplatui to make it top most, just set the topmost flag on the
29297         form in CreateParams
29298         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29299
29300 2006-02-01  Jackson Harper  <jackson@ximian.com>
29301
29302         * ScrollableControl.cs: Refactored the Recalculate method a
29303         little, this wasn't handling all the variants of bottom and right
29304         bars needed to be added and added/removed based on their
29305         counterparts being added/removed (which changes the drawable
29306         size). Also we special case client widths and heights of 0 and
29307         don't add the scrollbar for those.
29308
29309 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29310
29311         * XplatUIX11.cs: 
29312           - Added method to get AbsoluteGeometry(); currently unused, but might
29313             be used in the future, if we try again to figure out toplevel
29314             coordinates with some more crappy window managers
29315           - Added FrameExtents() method to retrieve the WM set decoration size
29316           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29317             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29318         * Hwnd.cs: 
29319           - Added whacky_wm tracking var for metacity
29320           - Added logic to have default menu height if the actual menu height
29321             has not yet been calculated (part of fix for #77426)
29322         * Form.cs: Keep track whether client size has been set and re-set 
29323           it if a menu is added/removed afterwards (Fixes #77426)
29324
29325 2006-01-31  Jackson Harper  <jackson@ximian.com>
29326
29327         * Control.cs: When a new Site is set on the component attempt to
29328         pull the AmbientProperties from it.
29329
29330 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29331
29332         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29333           in the background of the owning form. Fixes #77332
29334
29335 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29336
29337         * MimeIcon.cs: Fix for #77409
29338
29339 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29340
29341         * XplatUIX11GTK.cs: Initial import
29342
29343 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29344
29345         * FixedSizeTextBox: fixes class signature
29346
29347 2006-01-30  Jackson Harper  <jackson@ximian.com>
29348
29349         * FixedSizeTextBox.cs: New internal class that represents a
29350         textBox that will not be scaled.
29351         * TreeView.cs:
29352         * ComboBox.cs:
29353         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29354         standard TextBox.
29355                 
29356 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29357
29358         * XplatUIX11.cs: Retrieve default screen number instead of
29359           assuming 0. Attempted fix for #77318
29360
29361 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29362
29363         * XplatUIWin32.cs: 
29364           - GetWindowPos: When a window is parented by FosterParent, use 
29365             the desktop instead of FosterParent as the base to get coordinates
29366           - CreateWindow: Don't make FosterParent the parent window for Popups
29367             if we don't want a taskbar entry, Popups automatically don't get one
29368         * Hwnd.cs: Need to call remove to actually remove the key from the
29369           hash table
29370
29371 2006-01-30  Mike Kestner  <mkestner@novell.com>
29372
29373         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29374
29375 2006-01-30  Jackson Harper  <jackson@ximian.com>
29376
29377         * TreeView.cs:
29378         * TreeNode.cs: Raise events no matter how the treenode is
29379         checked. Patch by Don Edvalson.
29380
29381 2006-01-30  Jackson Harper  <jackson@ximian.com>
29382
29383         * TreeNode.cs: Signature fix.
29384
29385 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29386
29387         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29388
29389 2006-01-20  Mike Kestner  <mkestner@novell.com>
29390
29391         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29392         event forwarding when menus are active.
29393         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29394         Most of the patch is pdb's with a little rework.
29395
29396 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29397
29398         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29399           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29400           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29401         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29402         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29403           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29404           the PaintWindowDecorations method
29405         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29406         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29407         * MenuAPI.cs: Made tracker window invisible
29408         * XplatUIWin32.cs:
29409           - Removed GetMenuDC and ReleaseMenuDC methods
29410           - Implemented the client=false path for PaintEventStart and
29411             PaintEventEnd
29412
29413 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29414
29415         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29416         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29417           styles
29418         * Form.cs: 
29419           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29420             the style
29421           - CreateParams: Reworked the styles to match MS look'n'feel,
29422             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29423             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29424
29425 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29426
29427         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29428           window is not mapped, since otherwise every form that's being 
29429           created is considered minimized, which is wrong.
29430         * Form.cs: Catching the exception and returning our internal value
29431           instead
29432
29433 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29434
29435         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29436           SetWindowMinMax() to have means to tell the driver about the minimum,
29437           maximum and maximized state window sizes. (Part of the fix for #76485)
29438         * Form.cs:
29439           - Implemented tracking of minimum and maximum window size, now calling
29440             new SetWindowMinMax() driver method to tell the driver (Part of the
29441             fix for #76485)
29442           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29443             (Completes fix for #76485)
29444           - Calling new SetWindowMinMax driver method when the handle for a 
29445             form is created, to make sure the driver knows about it even if
29446             the values have been set before the window was created
29447           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29448             to avoid messing up our anchoring calculations (partial fix
29449             for #77355)
29450         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29451         * XplatUIX11.cs:
29452           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29453           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29454             (and presumably other freedesktop.org compliant WMs). Left the
29455             assumption unmapped=minimized, needed for SetVisible to work.
29456           - Now setting the window state when creating windows
29457           - Fixed SetVisible to consider/set the window state when mapping
29458             a Form. We cannot set the state before it's mapped, and we cannot
29459             use Form.WindowState once it's mapped (since it would ask the
29460             driver and get 'normal'. Therefore, we grab the state before
29461             mapping, map, and then set state.
29462           - Implmemented SetWindowMinMax method; Metacity does not seem to
29463             honor the ZoomHints, though.
29464         * XplatUIWin32.cs:
29465           - Removed MINMAXINFO (moved to XplatUIStructs)
29466           - Added SetWindowMinMax stub (on Win32 the only way to set that
29467             information is in response to the WM_GETMINMAXINFO message, which
29468             is handled in Form.cs)
29469           - Added logic to SetVisible to set the proper window state when a 
29470             form is made visible (fixes #75720)
29471
29472 2006-01-26  Jackson Harper  <jackson@ximian.com>
29473
29474         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29475         same way we handle them with Invoke.
29476
29477 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29478
29479         * Form.cs:
29480           - Added tracking of window state so CreateParams can return
29481             the appropriate style
29482           - Moved setting of WS_CAPTION style in CreateParams to allow
29483             styles without caption
29484         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29485           control if the TextBox property is accessed. Fixes #77345
29486         * Control.cs:
29487           - get_Created: now uses is_disposed and is_created to determine
29488             return value (suggested by Jackson)
29489           - CreateHandle: No longer exits if the handle is being recreated
29490           - RecreateHandle: If the handle is not yet created call the 
29491             appropriate method to create either control or handle. If the
29492             control is already created CreateHandle will simply exit instead
29493             of just creating the handle
29494         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29495           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29496           is called.
29497         * XplatUIX11.cs: 
29498           - When DestroyWindow is called, instead of waiting for the 
29499             DestroyNotification from X11, we directly post it to the WndProc
29500             and immediately dispose the hwnd object.
29501             Same applies to DestroyChildWindows, and this obsoletes the
29502             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29503             child windows before our own, to avoid X11 errors.
29504           - Removed the direct sending of WM_PAINT on UpdateWindow
29505         * XplatUIWin32.cs:
29506           - Reworked DoEvents and GetMessage to allow access to internal queue
29507             even when trying non-blocking access to the queue.  Fixes #77335. 
29508             Based on a patch suggestion by Don Edvalson. The new private
29509             GetMessage can now also be used as a backend for a PeekMessage
29510             frontend version.
29511         * XplatUI.cs: Improved debug output for CreateWindow
29512
29513 2006-01-25  Jackson Harper  <jackson@ximian.com>
29514
29515         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29516
29517 2006-01-24  Jackson Harper  <jackson@ximian.com>
29518
29519         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29520         when we have a MaxDropItems lower then the selected index.
29521
29522 2006-01-24  Jackson Harper  <jackson@ximian.com>
29523
29524         * Control.cs: Don't allow selection of non visible controls, allow
29525         selection of controls without parents.
29526
29527 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29528
29529         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29530         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29531
29532 2006-01-23  Jackson Harper  <jackson@ximian.com>
29533
29534         * UpDownBase.cs: Make the textbox handle all the selection and
29535         tabbing. This fixes tabing to updown controls.
29536
29537 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29538
29539         * TextBoxBase.cs: fixes exception thown the object was null
29540
29541 2006-01-23  Jackson Harper  <jackson@ximian.com>
29542
29543         * ButtonBase.cs: Just use the base CreateParams. They set
29544         visibility and enabled correctly.
29545         * ComboBox.cs:
29546         * TrackBar.cs:
29547         * MonthCalendar.cs: Lets let the base set as much of the
29548         createparams as possible so we don't have duplicate code all over
29549         the place.
29550
29551 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29552
29553         * ThemeGtk.cs: Added TrackBar and some experimental code to
29554           get double buffering back
29555
29556 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29557
29558         * DataGrid.cs: Allows row number set internally higher than the last
29559         when creating a new row. Restores the editing functionality.
29560
29561 2006-01-20  Mike Kestner  <mkestner@novell.com>
29562
29563         * MimeIcon.cs: delay Image creation until the icons are accessed
29564         instead of creating 190 scaled images on GnomeHandler startup.
29565
29566 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29567
29568         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29569           first call base before processing the event. Fixes #77279
29570
29571 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29572
29573         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29574           that the stride for the GDI bitmap would match the stride of
29575           a DIB or a Cursor.
29576
29577 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29578
29579         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29580
29581 2006-01-19  Jackson Harper  <jackson@ximian.com>
29582
29583         * ComboBox.cs: Hookup the text controls keydown event so we get
29584         those when the text control has the focus.
29585
29586 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29587
29588         * Label.cs: Now using the base events instead of defining new ones;
29589           this allows us to just call the base properties without having to
29590           duplicate all base property logic 
29591
29592 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29593
29594         * Label.cs: A label by default is not a tabstop (Fixes one of our
29595           failing nunit tests)
29596
29597 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29598
29599         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29600         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29601
29602 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29603
29604         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29605           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29606           This fixes #77218
29607         * XplatUIWin32.cs: 
29608           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29609             constructor creates images that can't be saved. Part of the fix
29610             for #76103
29611           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29612           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29613             bug fix for handling window state in forms properly)
29614
29615 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29616
29617         * ThemeGtk.cs: Simplify ScrollBar drawing
29618
29619 2006-01-18  Jackson Harper  <jackson@ximian.com>
29620
29621         * Splitter.cs: Set the default dock style for the splitter control
29622         in the constructor.
29623
29624 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29625
29626         * ThemeGtk.cs: Corrected StateType and ShadowType for
29627           gtk_paint_box
29628
29629 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29630
29631         * Control.cs: Make use of Theme.DoubleBufferingSupported
29632         * ThemeGtk.cs:
29633           - Added drawing for flat style buttons
29634           - Added ScrollBar drawing
29635
29636 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29637
29638         * ThemeClearlooks.cs: Removed some unneeded code.
29639         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29640
29641 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29642
29643         * LinkLabel.cs: We need to update the hover drawing when
29644           leaving the control as well.
29645
29646 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29647
29648         * DataGrid.cs: Clicking on non empty areas in the columns
29649            area was giving an exception
29650
29651 2006-01-17  Jackson Harper  <jackson@ximian.com>
29652
29653         * ThemeWin32Classic.cs:
29654         * ListView.cs: Do not draw/clip the headers when the header style
29655         is None.
29656
29657 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29658
29659         * DataGrid.cs: Fixes 77260
29660         
29661 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29662
29663         * DataGrid.cs: Clicking on a column on a empty grid was giving
29664           an exception
29665
29666 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29667
29668         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29669           or any keypress will crash the grid.
29670
29671 2006-01-17  Mike Kestner  <mkestner@novell.com>
29672
29673         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29674         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29675         invisible/previously-visible items.
29676         [Fixes #76909]
29677
29678 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29679
29680         * ThemeClearlooks.cs:
29681         - Added CL_Draw_Button method; now other theme controls that are 
29682           not derived from button or do not have a button can draw buttons
29683           too
29684         - Updated ComboBox drawing
29685         - Beautified RadioButton drawing
29686         - Corrected drawing of bottom and left tabs
29687         - Beautified DateTimePicker and MonthCalendar
29688         - Added CPDrawButton and CPDrawRadioButton
29689
29690 2006-01-16  Jackson Harper  <jackson@ximian.com>
29691
29692         * ComboBox.cs: Set the initial value of the scrollbar to the
29693         current index. Reduce the numbers of refreshs and IndexOfs called.
29694
29695 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29696
29697         * FileDialog.cs: When the file listview is focused hitting the
29698           backspace key moves the fileview to the parent directory
29699
29700 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29701
29702         * Form.cs: 
29703           - Added RecreateHandle call when changing taskbar visibility to 
29704             trigger reparenting in Win32 driver (Fixes #75719)
29705           - If a window has minimize or maximize buttons, it cannot have
29706             a help button
29707         * XplatUIWin32.cs:
29708           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29709             the toplevel form with FosterParent (A toolwindow not on the
29710             taskbar) (Fixes #75719)
29711           - Made FosterParent a toolwindow
29712
29713 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29714
29715         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29716
29717 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29718
29719         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29720           is currently over that control, make sure that tooltip_window.Text
29721           gets updated
29722
29723 2006-01-13  Mike Kestner  <mkestner@novell.com>
29724
29725         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29726
29727 2006-01-13  Jackson Harper  <jackson@ximian.com>
29728
29729         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29730         value passed.  Also redraw the selected node when we recieve
29731         focus, so tabbing between trees works correctly.
29732
29733 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29734
29735         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29736           ~/.gconf/%gconf-tree.xml, so use
29737           .gconf/desktop/gnome/interface/%gconf.xml
29738
29739 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29740
29741         * TextControl.cs: Draw text in gray if control is disabled
29742
29743 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29744
29745         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29746           make sure it's always visible. Fixes #76680.
29747
29748 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29749
29750         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29751
29752 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29753
29754         * PageSetupDialog.cs: Added.
29755         * PrintDialog.cs: Attributes.
29756         * PrintPreviewControl.cs: Updates.
29757         * PrintPreviewDialog.cs: Updates.
29758         
29759 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29760
29761         * Control.cs: Undid my selection check fix, since it's not needed
29762         * TextBoxBase.cs:
29763           - Now considering the presence of hscroll/vscroll when sizing
29764             vscroll/hscroll respectively. Fixed bug #77077
29765           - Added Left/Up/Down/Right to IsInputKey list to prevent
29766             ContainerControl from stealing them. This fixes what I broke
29767             with my last checkin.
29768
29769 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29770
29771         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29772           I finally understand how the property can be set without a setter :-)
29773
29774 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29775
29776         * Application.cs:
29777           - Switched RunLoop to use static Message.Create to create a 
29778             Message object
29779           - Added PreProcessMessage call in runloop for keyboard events; this
29780             is part of the fix for #77219, I overlooked this originally in the
29781             MSDN doc for PreProcessMessage
29782         * Control.cs:
29783           - Removed call to PreProcessMessage from handling of keyboard 
29784             messages; it's supposed to be done in the message pump
29785           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29786             per MSDN documentation.
29787           - IsInputChar: All chars are input chars by default; removed the 
29788             parent calling chain, MS does not document that
29789           - PreProcessMessage: If IsInputChar is true, we want to return false
29790             to allow dispatching of the message
29791           - When selecting the next control, now also check that we're not
29792             selecting ourselves again and therefore return a false positive.
29793         * TextBoxBase.cs:
29794           - Tried to match return values for IsInputKey and ProcessDialogKey
29795             to what MS returns; moved processing of our special keys outside
29796             ProcessDialogKey since MS does not seem to return true on those.
29797           - Moved code that previously was in ProcessDialogKey into new private
29798             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29799           - Reworked handling of WM_CHAR to not have to duplicate code from
29800             Control.cs anymore, instead we simply call down to base.
29801            
29802 2006-01-12  Jackson Harper  <jackson@ximian.com>
29803
29804         * ComboBox.cs: We always need to refresh the text area when
29805         EndUpdate is called. Fixes the combobox in the file dialog.
29806         * Control.cs: Don't create the creator_thread until the controls
29807         handle is created.  Also in InvokeRequired we check if the
29808         creator_thread is null. This gives the effect of InvokeRequired
29809         returning true if the controls handle is not created yet, and
29810         matches MS.
29811
29812 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29813
29814         * XplatUI.cs:
29815           - Added StartLoop() driver method. This is used to allow drivers to
29816             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29817             loop for a particular thread
29818           - Added EndLoop() driver method. This is called once the message
29819             pump for the thread is shut down
29820           - Added SupportsTransparency method to allow the driver to indicate
29821             opacity support for windows
29822         * Form.cs:
29823           - Removed TODO attribute, completed AllowTransparency property
29824           - Added documented logic to Opacity
29825         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29826           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29827           versions of CompatibleTextRendering
29828         * X11Structs.cs: Added opacity atom to our atom enumeration
29829         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29830           of a form might be set before it's reparented by the WM, and we need
29831           the opacity value without calling up to Form)
29832         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29833           SupportsTransparency() driver methods
29834         * Application.cs: Now calling StartLoop and EndLoop driver methods
29835         * XplatUIX11.cs:
29836           - Added opacity atom registration
29837           - Added StartLoop()/EndLoop() methods. They're empty right now but
29838             will need to get implemented when we switch to a per-thread queue
29839           - Implemented SupportsTransparency() method
29840           - Implemented SetWindowTransparency() method
29841           - Added support for setting the opacity value when a window is
29842             reparented (since the opacity needs to be set on the WM frame)
29843         * XplatUIOSX.cs, XplatUIWin32.cs:
29844           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29845
29846 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29847
29848         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29849
29850 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29851
29852         * FileDialog.cs: Added ToolTip for MWFFileView
29853         * MimeIcon.cs: Rewrote GnomeHandler.
29854           - Get currently used gnome icon theme from
29855             ($HOME)/.gconf/%gconf-tree.xml
29856           - Make use of inherited icon themes
29857           - Support SVG icon themes like Tango via librsvg
29858
29859 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29860
29861         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29862         builds. 
29863         
29864         * Application.cs: Move the use_compatible_text_rendering outside
29865         the NET_2_0 define.  If we ever need to use the
29866         use_compatible_text_rendering on the individual controls they will
29867         access the variable from the common shared code paths.
29868
29869 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29870
29871         * XplatUI.cs:
29872           - Added more granular debug options
29873           - Added method to print both window text and id
29874           - Switched debug output to use new Window() debug method
29875           - Added IsEnabled() driver method
29876           - Added EnableWindow() driver method
29877         * Form.cs:
29878           - Removed end_modal; no longer needed, new loop handles termination
29879             via 'closing' variable
29880           - If form is modal, setting DialogResult will now initiate loop
29881             termination via 'closing' variable
29882           - Added support for is_enabled/WS_DISABLED to CreateParams
29883           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29884             does all the work
29885           - Removed code that's now in RunLoop from ShowDialog()
29886           - Added various documented sanity checks to ShowDialog()
29887           - Added handling of WM_DESTROY message; we set 'closing' on getting
29888             the message to indicate the message pump to terminate
29889           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29890             send by the Application.ExitThread method. (We send the message
29891             to destroy the window after all other events have been
29892             processed through the queue, instead of destroying the handle 
29893             directly)
29894           - Moved code from Close() method to WM_CLOSE handler; added logic
29895             to only send close-related events if the form is not displayed
29896             modal
29897         * Splitter.cs (..ctor): Fixed typo in resource name
29898         * Control.cs:
29899           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29900             brush now
29901           - set_Cursor: Now only setting calling into XplatUI if the handle for
29902             the control is already created; this avoids implict handle creation
29903             or crashes if it's not created
29904           - set_Enabled: Now setting the enabled state via the new driver method
29905             instead of just tracking it
29906           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29907           - CreateControl: Reordered event firing and method calls to more
29908             closely fire events in the order MS does. Now setting the
29909             enabled state in the driver when creating the control.
29910           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29911             match MS order
29912         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29913           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29914         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29915         * Hwnd.cs:
29916           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29917           - Added EnabledHwnd property to easily allow a driver to find the
29918             handle of the first enabled window in the parent chain (this is
29919             used by drivers to pass up input events of disabled windows)
29920         * XplatUIDriver.cs: Added IsEnabled() method
29921         * Application.cs:
29922           - Removed crude and obsolete exiting tracking variable
29923           - Removed internal ModalRun(); replaced by RunLoop()
29924           - Implemented private CloseForms() method to allow closing all 
29925             windows owned by a particular (or all) threads
29926           - Exit() now properly closes all windows without forcing the message
29927             pump to quit
29928           - Removed obsolete InternalExit() method
29929           - Changed Run() methods to use new RunLoop() message pump
29930           - Implemented new RunLoop() method for both modal and non-modal forms
29931         * CommonDialog.cs:
29932           - get_CreateParams: Added setting of WS_DISABLED
29933           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29934             invoked via Form.ShowDialog()
29935         * NativeWindow.cs: We don't remove the window from the collection when
29936           the handle is destroyed; there might still be messages for it in the
29937           queue (mainly the resulting WM_DESTROY); instead it will be removed
29938           when Control calls InvalidateHandle in the WM_DESTROY handler
29939         * XplatUIX11.cs:
29940           - CreateWindow: Added logic to handle the WS_DISABLED window style
29941           - EnableWindow: Implemented based on Hwnd.Enabled
29942           - GetMessage: Reset PostQuitState so the method can be called again
29943           - Implemented support for disabled windows (passing messages to the
29944             first enabled parent) in handling all input messages
29945           - Added optimizations for handling Expose events
29946           - Implemeted new driver method IsEnabled()
29947           - Now always resetting paint pending tracking vars when we start paint
29948           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29949         * XplatUIOSX.cs: Added IsEnabled method stub
29950         * XplatUIWin32.cs: Implemented new IsEnabled() method
29951
29952 2006-01-11  Jackson Harper  <jackson@ximian.com>
29953
29954         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29955         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29956         variables a little.
29957         * ColorDialog.cs: Clear out the old form before adding the new
29958         panel.  
29959
29960 2006-01-11  Jackson Harper  <jackson@ximian.com>
29961
29962         * X11Dnd.cs: Make sure to add all the text formats when adding
29963         strings to the data object.
29964         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29965         do some redrawing too.  Also change the UpdateNode to an
29966         UpdateBelow so the newly added node gets painted.
29967         
29968 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29969
29970         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29971         LinkLabel.cs, PropertyGrid.cs: Implement the
29972         UseCompatibleTextRendering property for 2.x
29973
29974         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29975
29976 2006-01-11  Jackson Harper  <jackson@ximian.com>
29977
29978         * TreeView.cs: Use the property for setting the selected node so
29979         the correct events get raised.
29980         * TreeNode.cs: Update the tree when the fore/back colours of a
29981         node are set.
29982
29983 2006-01-10  Jackson Harper  <jackson@ximian.com>
29984
29985         * TreeView.cs: Allow setting SelectedNode to null.
29986
29987 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29988
29989         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29990
29991 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29992
29993         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29994
29995 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29996
29997         * PrintDialog.cs: Added attributes and set default property values.
29998
29999 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30000
30001         * PrintControllerWithStatusDialog.cs: 
30002         Added PrintControllerWithStatusDialog.
30003
30004 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30005
30006         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
30007         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
30008
30009 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
30010
30011         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
30012
30013 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
30014
30015         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
30016         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
30017
30018 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30019
30020         * MimeIcon.cs: Added internal class SVGUtil.
30021
30022 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
30023
30024         * FileDialog.cs: Don't crash if there are two files with the
30025           same name but different locations.
30026
30027 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
30028
30029         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
30030         dates across multiple month grids. Used to not highlight entire 
30031         month, but does now.
30032         
30033 2006-01-06  Jackson Harper  <jackson@ximian.com>
30034
30035         * MonthCalendar.cs: Removed DoEvents call to prevent a running
30036         message loop. Change timer intervals to numbers that seem more
30037         natural.
30038
30039 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
30040
30041         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
30042           object for location info since screen object is now implemented.
30043
30044 2006-01-05  Jackson Harper  <jackson@ximian.com>
30045
30046         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
30047         * AsyncMethodResult.cs: We no longer use a WeakReference for the
30048         AsyncMethodResult, this is because we ALWAYS want the
30049         ManualResetEvent to get set.
30050         * Control.cs: When disposing use an async invoke to call shutdown
30051         code, so that thigns don't block on the finalizer thread.  Also
30052         check if we even have a message loop before trying to send
30053         messages, if we don't then don't bother sending messages.
30054         - No more weak references for async methods
30055         * XplatUIDriver.cs: No more weak references for async methods.
30056
30057 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30058
30059         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
30060           returns two FontFamily with the same name
30061
30062 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30063
30064         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
30065           drawing disabled text. Instead using the ColorGrayText color
30066
30067 2006-01-04  Jackson Harper  <jackson@ximian.com>
30068
30069         * TreeNode.cs: redraw the node when its image index is changed.
30070
30071 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
30072
30073         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
30074           time I checked there are no others like it.
30075
30076 2006-01-04  Jackson Harper  <jackson@ximian.com>
30077
30078         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
30079         this gives the behavoir I was looking for.
30080         * Control.cs: Special case Invoking EventHandlers, this matches MS
30081         and fixes part of bug #76326.
30082
30083 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30084
30085         * ThemeClearlooks.cs, FileDialog.cs:
30086           - Reflect the latest Theme class changes
30087           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
30088             with DateTime
30089             
30090 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
30091
30092         * Theme.cs: Cache UI resource images and resize them if needed
30093
30094 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30095
30096         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
30097           is called. This fixes the crash in Nexxia when setting the font
30098           attributes in the chat. [However, RTF needs a look-over to make sure
30099           that all SelectionXXX methods handle the special case that selection
30100           is empty and therefore the change must be applied to all text starting
30101           at the cursor/selection start]
30102
30103 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30104
30105         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30106           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30107         * X11Keyboard.cs: Switched to new way of calling PostMessage
30108
30109 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30110
30111         * Theme.cs: Added theme interface for images to allow the theme to
30112           control what images are used for things like FileDialog, MessageBox
30113           icons, etc.
30114         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30115
30116 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30117
30118         * FileDialog.cs:
30119           - Removed some dead code
30120           - Opening a recently used file does work now
30121           - Small UI enhancements
30122           - Refactoring
30123
30124 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30125
30126         * FileDialog.cs: Forgot too add __MonoCS__
30127
30128 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30129
30130         * FileDialog.cs: We are able to read recently used files now let's
30131           go on and write them.
30132
30133 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30134
30135         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30136           button
30137         * MimeIcon.cs: Do a check for the top level media type also
30138
30139 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30140
30141         * ThemeClearlooks.cs:
30142           - Added CPDrawStringDisabled
30143           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30144             some chars if the text doesn't fit into text_rect
30145           - DrawListViewItem: If View = View.LargeIcon center the image;
30146             rewrote the drawing of ListViewItem.Text if View = 
30147             View.LargeIcon
30148
30149 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30150
30151         * MimeIcon.cs: Use default KDE icon theme if there is no
30152           "48x48" directory for the current icon theme, fixes #77114
30153         * Mime.cs: Disable not working and actually not used code. 
30154         * ThemeWin32Classic.cs:
30155           - Replace "new SolidBrush" in GetControlBackBrush and
30156             GetControlForeBrush with ResPool.GetSolidBrush
30157           - Changed DrawListViewItem from private to protected virtual
30158         * FileDialog.cs:
30159           - Added form.MaximizeBox = true
30160           - Don't throw an exception if there is a broken symbolic link
30161
30162 2005-12-23  Jackson Harper  <jackson@ximian.com>
30163
30164         * TabControl.cs: Give the panels focus, keyboard navigation is
30165         fixed so this works correctly now.
30166         - We need these key events also.
30167         * ToolBar.cs: Remove some of the poor mans double buffering.
30168         
30169 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30170
30171         * ComboBox.cs: The internal TextBox now returns the focus.
30172
30173 2005-12-23  Jackson Harper  <jackson@ximian.com>
30174
30175         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30176
30177 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30178
30179         * Control.cs: Removed debug code
30180         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30181           implicit children
30182
30183 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30184
30185         * Control.cs: When creating the control, update the Z-order after
30186           all it's children are created, too. (Fixes nexxia not showing
30187           picturebox bug)
30188
30189 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30190
30191         * Control.cs: Do not update the anchoring distances if layout is
30192           suspended, instead do it once layout is resumed
30193
30194 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30195
30196         * Control.cs: 
30197           - After many hours of debugging, for both Jackson and
30198             myself, it turns out that it helps to set the parent of a control
30199             if you want to actually see it onscreen. In the spirit of that
30200             discovery, we're now setting the parent of the control and
30201             it's children when the control's handle is created. This fix
30202             will make Lutz Roeder's Reflector run happily. 
30203           - now just creating the handle instead of the whole control when
30204             getting a graphics context for the control.
30205
30206 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30207
30208         * ScrollableControl.cs: When calculating the canvas, don't consider
30209           the scrollbar widths. Instead, predict if horizontal scrollbar
30210           will affect canvas when deciding on vertical display and vice versa.
30211
30212 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30213
30214         * RichTextBox.cs: Set default RTF font for documents that don't
30215           have a font table (Fixes #77076)
30216
30217 2005-12-22  Jackson Harper  <jackson@ximian.com>
30218
30219         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30220         clipboard. This prevents a NullRef in that case.
30221         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30222         clipboard. PRIMARY is for the currently selected text only. (We
30223         should implement PRIMARY at some point.
30224
30225 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30226
30227         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30228           a Unicode function with a structure that was defined in Ansi way.
30229           This fixes #76942.
30230
30231 2005-12-21  Jackson Harper  <jackson@ximian.com>
30232
30233         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30234         on. Because thats how it rolls. (and this avoids it using ambient
30235         colours).
30236         * ThemeWin32Classic.cs: Use the proper back color for filling.
30237         * Menu.cs: Use the system menu bar color for drawing menu
30238         bars. Using the window back color will bring ambient colours into
30239         the picture.
30240
30241 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30242
30243         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30244           Bitmaps were created and not disposed.
30245
30246 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30247
30248         * Control.cs (CreateControl): Don't do anything if the control is
30249           already created, otherwise we'd fire the OnCreated event more than
30250           once
30251
30252 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30253
30254         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30255           will always match. Instead return -1. Fixes #76464.
30256
30257 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30258
30259         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30260           neither the beginning nor the end of the line (Fixes bug #76479)
30261
30262 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30263
30264         * Control.cs:
30265           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30266             where handle is invalid
30267           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30268             instead of slower linear search
30269         * NativeWindow.cs: Don't remove the window from the hashtable until
30270           after the driver has destroyed it (since the driver might use
30271           Control.FromHandle to lookup the control object
30272         * Hwnd.cs: Added DestroyPending property to track if a window is 
30273           already destroyed as far as the driver is concerned and only hasn't
30274           yet notified the control
30275         * XplatUIX11.cs:
30276           - Activate(): Check if the window is still valid before using the 
30277             handle
30278           - Implemented DestroyChildWindow() method to mark child windows as
30279             destroyed when a window is destroyed. This prevents situations 
30280             where we might call an X method based on queued events for a
30281             window that already has been destroyed but we haven't yet pulled
30282             the destroy method from the queue.
30283           - Added a call to the new DestroyChildWindow() method to the drivers
30284             DestroyWindow code. Also now marking the destroyed window itself
30285             as pending
30286
30287 2005-12-20  Jackson Harper  <jackson@ximian.com>
30288
30289         * StatusBar.cs:
30290         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30291         anymore. Just do them when needed, also track the rects of panels
30292         so that we can optimize refreshing more in the future.
30293
30294 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30295
30296         * ColorDialog.cs: Fixed focus drawing in small color controls
30297
30298 2005-12-19  Jackson Harper  <jackson@ximian.com>
30299
30300         * InternalWindowManager.cs:
30301         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30302         moving windows works properly.
30303
30304 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30305
30306         * Control.cs: 
30307           - Removed call to InitLayout() from SetBoundsCore(); doc says
30308             it's only called when a control is added to a container
30309           - Split InitLayout logic, moved to separate UpdateDistances() method
30310             since we need to perform those calculations more often than just
30311             when adding the control to a container. (Needed to fix #77022)
30312           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30313           - Reduced the OnBindingContextChanged events count, don't send them
30314             unless the control is created, we still aren't totally matching
30315             MS, but I can't quite figure out some of their rules
30316
30317 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30318
30319         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30320           stripes
30321
30322 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30323
30324         * ThemeClearlooks.cs:
30325           - Updated ProgressBar drawing
30326           - Corrected drawing of ScrollBars and scroll buttons
30327           - Some temporary fixes for minor pixel artefacts
30328
30329 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30330
30331         * Control.cs:
30332           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30333             cause events to be sent in the same order as MS does.
30334           - Added ChangeParent() method to trigger various OnXXXChanged events
30335             that need to be fired when a parent changes (This is a reworking
30336             of the patch from r54254, with the X11 errors fixed)
30337           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30338             since on MS we get OnLayoutChanged events when calling Clear()
30339           - Changed Enabled property to consider parent state as well, if a
30340             parent is not enabled, the control will not be either
30341           - Changed Parent property to simply call Controls.Add() since that
30342             now does all the work required, this way we avoid code duplication
30343           - Threw in a few OnBindingsContextChanged calls to try and match
30344             when MS sends them. We seem to send a few too many, though.
30345           - Added call to CreateControl when adding the control to a parent.
30346             We were never calling CreateControl. Still needs some work, in
30347             some places we treat HandleCreated and ControlCreated as equal, 
30348             which is wrong
30349           - Removed obsolete commented out code from UpdateZOrder()
30350
30351 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30352
30353         * ThemeClearlooks.cs: Updated TrackBar drawing.
30354
30355 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30356
30357         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30358
30359 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30360
30361         * FileDialog.cs: Add the Help button and the open readonly
30362           checkbox only if needed
30363
30364 2005-12-16  Jackson Harper  <jackson@ximian.com>
30365
30366         * Control.cs: Make sure we have an active menu before trying to
30367         process commands on it. Prevents menu-less forms from crashing
30368         when Alt is pressed.
30369         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30370         Dieter Bremes.
30371         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30372         2.0 build.
30373
30374 2005-12-16  Jackson Harper  <jackson@ximian.com>
30375
30376         * InternalWindowManager.cs: Don't translate tool windows screen
30377         coordinates. This fixes windows 'bouncing' around when being moved.
30378
30379 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30380
30381         * TextBoxBase.cs:
30382           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30383             not quite MS compatible, MS uses that number only for single line
30384             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30385             the limit at 2GB)
30386           - Now enforcing the MaxLength limit when entering characters
30387           - Added argument to internal Paste() method to track if it's called
30388             from programatically or via keyboard, since keyboard driven pastes
30389             need to enforce max-length
30390           - Added logic to Paste to only paste as many chars as MaxLength 
30391             allows
30392         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30393         * TextControl.cs:
30394           - Added Length property to return number of characters in document
30395           - Added private CharCount property which only tracks actual chars
30396             in the document (no linefeeds) and fires event when CharCount
30397             changes
30398           - Added tracking of character count to all methods that alter it
30399           - Added LengthChanged event to allow applications to subscribe
30400             to any changes to the document
30401
30402 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30403
30404         * TextBox.cs: 
30405           - Removed local password_char field (moved to TextBoxBase)
30406           - Now setting the document's password var when password is
30407             set
30408         * TextBoxBase.cs:
30409           - Added password_char field (needed here so MultiLine can
30410             access it)
30411           - Added logic to MultiLine property setter to set the document's
30412             variable when password display is allowed
30413           - Removed debug code and made some debug code conditional
30414         * TextControl.cs:
30415           - Added RecalculatePasswordLine() method to handle special password
30416             char only lines
30417           - Added PasswordChar property, also added related tracking vars
30418           - Draw() method now uses local text var for grabbing text to draw,
30419             this var is set to line.text unless we're doing password display,
30420             then it is set to the pre-generated all-password-chars line
30421           - Added calling RecalculatePasswordLine() method for password lines
30422
30423 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30424
30425         * Hwnd.cs: 
30426           - Added Reparented property to allow tracking of Window Manager
30427             reparenting actions (which affect X/Y calculations of toplevel 
30428             windows)
30429           - Made ToString() print window handles in hex
30430         * XplatUIX11.cs:
30431           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30432             determine if X/Y needs offsetting
30433           - AddConfigureNotify(): Fixed offset calculations
30434           - Now adds ReparentNotify messages into the queue
30435           - Now processes ReparentNotify messages and causes a 
30436             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30437             is reparented (as most likely it's X/Y coordinates are changed
30438             due to that)
30439
30440 2005-12-14  Jackson Harper  <jackson@ximian.com>
30441
30442         * XplatUIX11.cs: Tool windows still need to respek focus.
30443
30444 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30445
30446         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30447           have a working release
30448
30449 2005-12-13  Jackson Harper  <jackson@ximian.com>
30450
30451         * Form.cs: Update styles after setting the border style regardless
30452         of whether or not the window is using a window manager.
30453
30454 2005-12-13  Jackson Harper  <jackson@ximian.com>
30455
30456         * Form.cs: We now hook into an internal window manager instead of just an
30457         MDI subsystem, this is so we can have properly behaving tool windows.
30458         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30459         * InternalWindowManager.cs: New internal class that acts as a
30460         window manager for tool windows and as a base for mdi windows.
30461         * MdiWindowManager.cs: New class that acts as a window manager for
30462         mdi windows.
30463
30464 2005-12-12  Jackson Harper  <jackson@ximian.com>
30465
30466         * Control.cs: Updates so we match behavoir for for implicit
30467         controls. Fixes explosions in MDI.
30468
30469 2005-12-12  Jackson Harper  <jackson@ximian.com>
30470
30471         * Control.cs: Implement Invalidate (Region).
30472
30473 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30474
30475         * Control.cs: 
30476           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30477             the same events as MS does. MS fires events for each property 
30478             except, for unknown reasons, Cursor, when the control is reparented. 
30479             I can't seem to totally match add/remove since MS also fires some 
30480             VisibleChanged events, which makes no sense. Consolidated the
30481             parenting code into a separate method so it can be called from
30482             both Add and Remove. set_Parent no longer needs any special logic
30483             as it calls the parent's add method which implicitly fires
30484             all events
30485           - Removed some obsolete code and debug output
30486           - Enabled state is inherited from parents, if this is enabled
30487
30488 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30489
30490         * Form.cs: Removed commented out code
30491
30492 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30493
30494         * Control.cs:
30495           - Added internal version of Invoke, with additional argument 
30496             indicating if we're calling it from a Dispose() handler. That
30497             way we can avoid BeginInvoke throwing an exception if we're
30498             calling for an already destroyed window.
30499           - Added a dispose argument to BeginInvokeInternal, and made the
30500             check if a valid window handle chain exists conditional on
30501             it not being a dispose call
30502           - Removed code in DestroyHandle to destroy our children. Since we
30503             now handle the WM_DESTROY message we will catch all our children
30504             being destroyed.
30505           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30506         * Form.cs:
30507           - Added a field to track the application context of the form.
30508           - No need to set closing variable as response to WM_CLOSE, instead
30509             we destroy the window. We also call PostQuitMessage if the form
30510             has an application context (which makes it the main app form,
30511             which, when closed terminates the app)
30512         * XplatUI.cs:
30513           - Dropped Exit() method, it's naming was confusing
30514           - Added PostQuitMessage() which causes GetMessage to return false
30515             once the message queue is empty
30516         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30517           PostQuitMessage()
30518         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30519           no longer a valid XplatUI method, but left it in since it's used
30520           internally. Added empty PostQuitMessage() method.
30521         * MenuAPI.cs: Replaced call to Exit() with call to
30522           PostQuitMessage, even though this is probably no longer needed.
30523         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30524         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30525         * Application.cs:
30526           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30527           - Removed old debug code that would call XplatUI for exception
30528             display, enabled standard exception handling (Still not enabled
30529             though, until NativeWindow's ExternalExceptionHandler define
30530             is removed
30531         * NativeWindow.cs:
30532           - Added internal method to allow control to update NativeWindow
30533             after a window has been destroyed
30534           - Added handling of already destroyed windows when calling i
30535             DestroyWindow
30536           - Added removal of handle from list on ReleaseHandle
30537         * XplatUIX11.cs:
30538           - Dropped GetMessageResult var and related code
30539           - Added PostQuitState to field to track if PostQuitMessage has been
30540             called
30541           - Dropped Exit() method
30542           - Added PostQuitMessage() method
30543           - GetMessage now will return false if PostQuitState is set and no
30544             more messages are in the queue.
30545           - Expose handler will no longer generate WM_PAINT messages if we are
30546             in PostQuitState since it's very likely any windows have already
30547             been destroyed, and since Hwnd won't get updated until we have
30548             processed the DestroyNotify we'd be causing X errors.
30549         
30550 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30551
30552         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30553           Thanks to Mike for pointing out the err of my ways.
30554
30555 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30556
30557         * Control.cs(PreProcessMessage): Moved menu handling back, but
30558           after all other key handling, to match MS (who handles Menu in
30559           DefWndProc)
30560         * Menu.cs (WndProc): Removed my brainfart
30561
30562 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30563
30564         * Control.cs(PreProcessMessage): Removed special menu handling 
30565         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30566
30567 2005-12-07  Mike Kestner  <mkestner@novell.com>
30568
30569         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30570         state according in tracker.
30571         * Menu.cs : promote tracker field to base class and provide a tracker
30572         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30573         has a tracker. Unparent items that are removed from the collection.
30574         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30575         * Theme*.cs: add always_show_hotkeys field to support configurability
30576         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30577         pressed.
30578
30579 2005-12-07  Jackson Harper  <jackson@ximian.com>
30580
30581         * MdiChildContext.cs: Use Control.ResetCursor.
30582         * Control.cs: ResetCursor needs to set the property so that the
30583         correct XplatUI call gets made.
30584
30585 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30586
30587         * Control.cs: More fixes to make our key events match MS. We
30588           were not setting the modifier state on KeyData, and we were
30589           not generating any events when Alt was pressed with a key
30590           since handling of WM_SYSxxx was missing for the OnKey methods.
30591
30592 2005-12-07  Jackson Harper  <jackson@ximian.com>
30593
30594         * MdiChildContext.cs: reenable the sizing code.
30595         - When the mouse leaves a window reset its cursor.
30596
30597 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30598
30599         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30600
30601 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30602
30603         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30604           widths of Fixed3D borders
30605
30606 2005-12-07  Jackson Harper  <jackson@ximian.com>
30607
30608         * MdiClient.cs: Fix warnings. Earn Mike's love.
30609
30610 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30611
30612         * ThemeClearlooks.cs:
30613           - Adjusted mouse over button color
30614           - Added first parts of CheckBox drawing
30615           - Added correct color for selected text background
30616           - Fixed ComboBox drawing
30617           - Added CPDrawBorder3D and CPDrawBorder
30618
30619 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30620
30621         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30622
30623 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30624
30625         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30626           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30627           alert users via sound. We could add an enum arg with different
30628           types of alerts in the future
30629
30630 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30631
30632         * Control.cs: Fix behaviour problems pointed out by Mike
30633
30634 2005-12-05  Mike Kestner  <mkestner@novell.com>
30635
30636         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30637         prop setters.  Calls parent.Refresh for now, but could be maybe be
30638         optimized with an internal method on StatusBar at some point.
30639         [Fixes #76513]
30640
30641 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30642
30643         * RichTextBox.cs: Implemented get_SelectionColor
30644
30645 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30646
30647         * ThemeClearlooks.cs:
30648           - Removed dead code
30649           - Draw black button border only if button is Form.AcceptButton
30650           - Draw correct button color for pressed RadioButton if the mouse 
30651             has entered the button
30652           - Updated ProgressBar drawing!
30653           - Updated CPDrawSizeGrip drawing
30654           - Updated StatusBarPanel drawing
30655
30656 2005-12-05  Mike Kestner  <mkestner@novell.com>
30657
30658         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30659         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30660
30661 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30662
30663         * ThemeClearlooks.cs: Initial check-in, activate with
30664           export MONO_THEME=clearlooks
30665         * ThemeEngine.cs: Added ThemeClearlooks
30666
30667 2005-12-03  Mike Kestner  <mkestner@novell.com>
30668
30669         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30670         [Fixes #76897]
30671
30672 2005-12-02  Jackson Harper  <jackson@ximian.com>
30673
30674         * Form.cs: If the child form has no menu the default main menu is
30675         used as the active menu.
30676
30677 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30678
30679         * ListBox.cs: Check if any items exist before trying to resolve 
30680           coordinates into items
30681
30682 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30683
30684         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30685           as the second color for the background hatch
30686
30687 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30688
30689         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30690         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30691           sure that what we pass to FormatText is always 1-based. Fixes #76885
30692
30693 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30694
30695         * NumericUpDown.cs (EndInit): When we are done initializing,
30696         reflect any updates on the UI.
30697
30698 2005-12-02  Jackson Harper  <jackson@ximian.com>
30699
30700         * ImplicitHScrollBar.cs:
30701         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30702         their container controls.
30703         * TreeView.cs: Use the new implicit scrollbars.
30704
30705 2005-12-02  Jackson Harper  <jackson@ximian.com>
30706
30707         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30708         can play with it.
30709         * TreeNodeCollection.cs: If we remove the topnode we need to
30710         update topnode to the next node in line.
30711         - When clearing nodes go through the same process as removing
30712         them, so they get depareneted and checked if they are top node.
30713
30714 2005-12-01  Jackson Harper  <jackson@ximian.com>
30715
30716         * TreeView.cs: When imagelists are used the image area is
30717         selectable as well as the text.
30718         - If there are no selected nodes select the first one.
30719         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30720         so don't do it more then we need to.
30721
30722 2005-12-01  Jackson Harper  <jackson@ximian.com>
30723
30724         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30725         that arrows can be scaled.
30726
30727 2005-12-01  Jackson Harper  <jackson@ximian.com>
30728
30729         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30730         fail. Patch by Dieter Bremes
30731
30732 2005-11-30  Jackson Harper  <jackson@ximian.com>
30733
30734         * Form.cs: Property is 2.0 only
30735         * PrintDialog.cs: Signature fix.
30736
30737 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30738
30739         * TextControl.cs: 
30740           - No longer artificially moves text 2 pixels down (now that we have
30741             borders this is no longer needed)
30742           - Added calcs for left, hanging and right indent
30743
30744 2005-11-23  Mike Kestner  <mkestner@novell.com>
30745
30746         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30747
30748 2005-11-30  Jackson Harper  <jackson@ximian.com>
30749
30750         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30751         get cloned as part of CloneMenu ().
30752         * Menu.cs: Make sure the parent of the items get set correctly
30753         when they are added.  And the owners are notified of the changes.
30754         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30755         we can change the menu being displayed/handled by the form without
30756         changing the menu assosciated with the form.
30757         - Don't let Mdi children draw/handle menus.
30758         
30759 2005-11-30  Jackson Harper  <jackson@ximian.com>
30760
30761         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30762         a MenuChanged event. Just to make the API a little more
30763         consistent.
30764         * MainMenu.cs:
30765         * MenuItem.cs: Use the new OnMenuChanged
30766         * MdiChildContext.cs: Handle menu merging.
30767         * Form.cs: Implement MergedMenu.
30768         
30769 2005-11-30  Jackson Harper  <jackson@ximian.com>
30770
30771         * Menu.cs: We were misusing Add. Add goes behind the specified
30772         index according to the docs, and does not replace the specified
30773         index. So I added an Insert method.
30774
30775 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30776
30777         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30778           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30779           is for Jackson
30780         * RichTextBox.cs: Added calls to base for DnD events
30781
30782 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30783
30784         * TextControl.cs:
30785           - Fixed drag-selection related crash; style fixes
30786           - Implemented undo class
30787             o Implemented method to capture document state for specified
30788               range in document tree
30789             o Implemented method to restore captured document state
30790             o Implemented cursor tracking
30791             o Implemented basic undo stack
30792           - Added undo cursor tracking to methods altering cursor location
30793           - Added undo tracking to selection deletion (still missing
30794             other text-altering hookups)
30795         * RichTextBox.cs:
30796           - Added SelectionLength property
30797           - Implemented CanPaste()
30798           - Implemented Paste()
30799           - Added missing protected methods
30800           - Fixed RTF->Document conversion; now uses font index 0 and color 
30801             index 0 as the default font for the parsed text
30802           - Fixed RTF<->Document font size translation
30803           - Fixed RTF generation, now properly handles cross-tag boundaries
30804             for single line selection
30805           - No longer always appends blank line to generated RTF
30806           - Removed TODOs
30807           - Added missing attributes
30808           - Hooked up undo-related methods
30809         * TextBoxBase.cs:
30810           - Implemented Copy()
30811           - Implemented Paste()
30812           - Implemented Cut()
30813           - Fixed caret mis-behaviour on backspace across line-boundaries
30814
30815 2005-11-29  Jackson Harper  <jackson@ximian.com>
30816
30817         * MdiClient.cs: Add a method for activating mdi children. Very
30818         basic right now. I imagine someday it might need more girth.
30819         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30820         children windows names are added to the menu item.
30821         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30822         mdilist. This happens regardless of whether or not there are any
30823         mdi windows to see in the list, and according to my tests happens
30824         before the items are even added. Also happens if there isn't even
30825         an mdi client to get windows from.
30826
30827 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30828
30829         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30830         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30831
30832 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30833
30834         * DataGridTableStyle.cs:
30835           - Create always the styles for the missing columns even if they are
30836             provided by the user (not default table style)
30837         * DataGrid.cs:
30838           - Fixes bug 76770
30839           - Fixes SetDataBinding (always re-attach source)
30840           - Fixes SetNewDataSource (only clear styles if they are not for 
30841             this source)
30842          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30843             and remove properly
30844
30845 2005-11-29  Jackson Harper  <jackson@ximian.com>
30846
30847         * FileDialog.cs: Implement missing bits, remove some dead
30848         code.
30849         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30850         creation of the panel so that the options set on the dialog are
30851         seen when the panel is created.
30852         * TreeView.cs: raise a click when items are clicked.
30853         
30854 2005-11-29  Jackson Harper  <jackson@ximian.com>
30855
30856         * MdiClient.cs: Pass some signature methods through to base.
30857
30858 2005-11-28  Jackson Harper  <jackson@ximian.com>
30859
30860         * ListView.cs: Raise the click event when items are clicked.
30861
30862 2005-11-28  Jackson Harper  <jackson@ximian.com>
30863
30864         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30865         a nullref.
30866
30867 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30868
30869         * ThemeNice.cs: - Removed 1 pixel bitmaps
30870           - Use SmoothingMode.AntiAlias where it makes sense
30871             (ScrollButton arrow for example)
30872           - Enhanced Button focus drawing
30873           - Fixed ComboBox drawing (no artefacts anymore, focus
30874             rectangle is back again, reduced size of ComboButton, etc.)
30875           - Fixed RadioButton focus drawing for Appearence.Button
30876           - Slight ScrollButton redesign
30877           - Some LinearGradientBrush size fixes
30878           - GroupBoxes have now rounded edges
30879           - Fixed StatusBar drawing
30880
30881 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30882
30883         * ThemeNice.cs: - Remove dead code
30884           - use correct background colors for menus, etc.
30885           - Fake pixel drawing with 1 pixel bitmaps
30886
30887 2005-11-24  Jackson Harper  <jackson@ximian.com>
30888
30889         * MdiClient.cs: Size the scrollbars when resizing the window.
30890         - Resize the maximized windows when the client is resized
30891         * Form.cs: Make the child context available
30892         
30893 2005-11-23  Jackson Harper  <jackson@ximian.com>
30894
30895         * MdiChildContext.cs: Don't size windows if they are maximized.
30896
30897 2005-11-23  Mike Kestner  <mkestner@novell.com>
30898
30899         * ContextMenu.cs: use MenuTracker.
30900         * Control.cs: remove menu handle usage.
30901         * Form.cs: remove menu handle usage.
30902         * Hwnd.cs: remove menu handle usage.
30903         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30904         motion and clicks to the new Tracker handlers.
30905         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30906         and handle usage.
30907         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30908         Killed the MENU and MENUITEM data types and associated collections
30909         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30910         MenuTracker class that exposes the leftovers from the old MenuAPI
30911         static methods. Restructured Capture handling so that only one grab is
30912         done for the entire menu hierarchy instead of handing off grabs to
30913         submenus. Tracker now has an invisible control to Capture when active.
30914         * MenuItem.cs: add sizing accessors, kill Create
30915         and handle usage.
30916         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30917         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30918         MENU(ITEM). remove menu handle usage, use Menu directly.
30919         * XplatUIDriver.cs: remove menu handle usage.
30920         * XplatUIOSX.cs: remove menu handle usage.
30921         * XplatUIWin32.cs: remove menu handle usage.
30922         * XplatUIX11.cs: remove menu handle usage.
30923
30924 2005-11-22  Jackson Harper  <jackson@ximian.com>
30925
30926         * Hwnd.cs: Don't compute the menu size for
30927         DefaultClientRectangle.
30928         - Reenable menu sizes being computed for GetClienRectangle.
30929         * Form.cs: Remove comment of trechery
30930         
30931 2005-11-22  Jackson Harper  <jackson@ximian.com>
30932
30933         * Hwnd.cs: The adjustments for the menu bar are made when it is
30934         attached to the form.
30935
30936 2005-11-19  Jackson Harper  <jackson@ximian.com>
30937
30938         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30939         (just like on windows).
30940
30941 2005-11-19  Jackson Harper  <jackson@ximian.com>
30942
30943         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30944         use real buttons anymore because they are in non client area. The
30945         one TODO here is that I need to somehow invalidate a section of
30946         the non client area.
30947
30948 2005-11-18  Jackson Harper  <jackson@ximian.com>
30949
30950         * Control.cs: Put the enum check back in now that MDI doesnt have
30951         to use this to set border styles.
30952         * Form.cs: Only set mdi child windows borders if the handle has
30953         been created.
30954         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30955         this directly on to the driver.
30956         - Get the move start position before adjusting for the titlebar
30957         height, this fixes the windows "skipping" when they are first
30958         moved.
30959
30960 2005-11-18  Jackson Harper  <jackson@ximian.com>
30961
30962         * XplatUIX11.cs: Just compute the mdi borders separately as they
30963         don't totally match up with normal form borders.
30964
30965 2005-11-18  Jackson Harper  <jackson@ximian.com>
30966
30967         * Control.cs: Set WS_ styles for borders, so that the driver does
30968         not have to retrieve the control instance to figure out what kind
30969         of borders it should have.
30970         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30971         driver can know its an mdi child easily.
30972         * XplatUIX11.cs: Get the border styles and whether the window is
30973         MDI from the Styles and ExStyles params instead of having to get a
30974         control. This prevents a chicken and egg problem.       
30975
30976 2005-11-18  Jackson Harper  <jackson@ximian.com>
30977
30978         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30979
30980 2005-11-18  Jackson Harper  <jackson@ximian.com>
30981
30982         * MdiClient.cs: Calculate when to add and remove scrollbars
30983         correctly.
30984         * MdiChildContext.cs: Adjust the y position to take the titlebar
30985         into account.
30986         - No height for FormBorderStyle.None
30987
30988 2005-11-18  Jackson Harper  <jackson@ximian.com>
30989
30990         * Control.cs: Allow non enum values to be used for
30991         InternalBorderStyle.  MDI does this to set a special border style.
30992         - New utility methods for converting points to/from client coords
30993         - Add the newly created control to the Controls collection before
30994         updating its style. This way UpdateStyle can walk the control
30995         heirarchy to find the control if needed.
30996         so I don't need to create a new Point object all the time.
30997         * Form.cs: Let MDI windows handle their border styles.
30998         - Set styles on MDI windows so the correct title style is derived.
30999         * MdiChildContext.cs: Move all the painting and window handling
31000         into the non client area.
31001         - Use correct sizing and put correct buttons on frames based on
31002         the FormBorderStyle.
31003         - Notify the mdi client about scrolling
31004         - Need to handle the buttons ourselves now, because they are all
31005         in non client areas and we can't add controls there.
31006         * MdiClient.cs: Halfway to scrolling, this implementation is
31007         somewhat broken though, we need to check to make sure other
31008         windows aren't causing scrolling before removing the bars. Also
31009         the bars need to be drawn on top, maybe I can switch implicit
31010         controls to be on top.
31011         * Hwnd.cs: caption_height and tool_caption_height are now
31012         properties of an hwnd, this way they can be set by the driver
31013         based on the type of window they are.  In X11 the window manager
31014         handles the decorations so caption_height is zero unless its an
31015         MDI window.
31016         - Add 3 pixel borders for MDI windows (0xFFFF).
31017         - Get rid of some code duplication, have DefaultClientRectanle
31018         just call GetClientRectangle.
31019         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
31020         Hwnd now.
31021         - Set border styles differently for mdi windows.
31022         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
31023         Hwnd now.
31024         
31025 2005-11-15  Mike Kestner  <mkestner@novell.com>
31026
31027         * Menu.cs: when adding an item to the collection, if item is already 
31028         parented, remove it from the parent.
31029
31030 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
31031
31032         * X11DesktopColors.cs: Added KDE support
31033
31034 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
31035
31036         * XplatUIWin32.cs: 
31037           - Clipboard methods now can translate Rtf format
31038           - No longer removes clipboard contents whenever a new format is added
31039             to allow placing multiple formats on the clipboard
31040         * Clipboard.cs: Clipboard now supports getting a IDataObject and
31041           will place all formats contained in it onto the clipboard. Also
31042           now cleans the clipboard before placing a new object onto it
31043         * RichTextBox.cs:
31044           - Implemented set_Rtf
31045           - Implemented set_SelectedRtf
31046           - Created InsertRTFFromStream() method to allow single code base
31047             for all properties and methods that insert RTF into document
31048           - Removed debug output
31049         * TextControl.cs:
31050           - Fixed Delete(int) to fix up line numbers
31051           - Fixed ReplaceSelection to combine start and end line
31052           - Fixed serious DeleteChars bug that would leave the document tree
31053             broken
31054           - Improved DumpTree with several logic checks to detect broken
31055             document trees
31056           - Removed debug lines
31057           - Fixed Caret.WordForward/WordBack moving code, now always also 
31058             updates caret.tag (fixes crash when word-selecting across tag
31059             boundaries via keyboard)
31060           - Added Insert() method for inserting multiline text into documents
31061           - Fixed DeleteChars() calculation errors that would cause a broken
31062             tag chain with multiple tag lines
31063           - DeleteChars() no longer crashes on multi-tag lines if not all tags
31064           - Split() no longer moves caret if split is at caret location
31065           - ReplaceSelection() now updates the cursor and re-displays it
31066           - ReplaceSelection() now uses new Insert() method to avoid code
31067             duplication
31068           - FormatText() can now handle formatting partial lines
31069         * TextBoxBase.cs:
31070           - Append now uses new TextControl.Insert() method (this avoids 
31071             duplicate code)
31072           - Implemented Ctrl-X (Cut) (
31073           - Implemented Ctrl-C (Copy)
31074           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
31075             regeneration when pasting text; roundtripping Copy&Paste within
31076             edit control still fails due to some calculation bugs in GenerateRTF)
31077           - The Delete key will now remove the current selection if it is visible
31078         * TextBox.cs: Removed debug lines
31079         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
31080           driver to be initialized and can't therefore be done via a static ctor)
31081
31082 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
31083
31084         * TextControl.cs: Added backend code for finding char arrays and strings
31085         * TextBoxBase.cs:
31086           - Added mouse wheel scroll support
31087           - Added support for VScroll and HScroll events
31088         * RichTextBox.cs:
31089           - Implemented all seven Find() variants
31090           - Implemented GetCharFromPosition()
31091           - Implemented GetCharIndexFromPosition()
31092           - Implemented GetLineFromIndex()
31093           - Implemented GetPositionFromCharIndex();
31094           - Implemented SaveFile for PlainText and UnicodeText
31095           - Fixed set_Font, now setting a new font applies that font to
31096             the whole document
31097           - Implemented generic Document to RTF converter
31098           - Implemented SaveFile for RichText format (still missing unicode
31099             conversion for non-ansi chars)
31100           - Implemented get_Rtf
31101           - Implemented get_SelectedRtf
31102
31103 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31104
31105         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31106           to allow any captures to be released before triggering OnClick. This
31107           way a click handler may capture the mouse without interference.
31108         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31109           This way we send them even though X may not allow a grab (if the window
31110           isn't visible, for example)
31111
31112 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31113
31114         * DataGridViewRowEventArgs.cs: DataGridView implementation
31115         * DataGridViewElement.cs: DataGridView implementation
31116         * DataGridViewComboBoxCell.cs: DataGridView implementation
31117         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31118         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31119         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31120         * ImageLayout.cs: DataGridView implementation
31121         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31122         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31123         * DataGridViewSelectionMode.cs: DataGridView implementation
31124         * IDataGridViewEditingControl.cs: DataGridView implementation
31125         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31126         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31127         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31128         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31129         * DataGridViewColumnSortMode.cs: DataGridView implementation
31130         * DataGridView.cs: DataGridView implementation
31131         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31132         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31133         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31134         * Padding.cs: DataGridView implementation
31135         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31136         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31137         * DataGridViewRowEventHandler.cs: DataGridView implementation
31138         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31139         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31140         * DataGridViewButtonCell.cs: DataGridView implementation
31141         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31142         * DataGridViewEditMode.cs: DataGridView implementation
31143         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31144         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31145         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31146         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31147         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31148         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31149         * DataGridViewCellEventHandler.cs: DataGridView implementation
31150         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31151         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31152         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31153         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31154         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31155         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31156         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31157         * QuestionEventArgs.cs: DataGridView implementation
31158         * IDataGridViewEditingCell.cs: DataGridView implementation
31159         * DataGridViewTriState.cs: DataGridView implementation
31160         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31161         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31162         * DataGridViewColumnCollection.cs: DataGridView implementation
31163         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31164         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31165         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31166         * DataGridViewColumn.cs: DataGridView implementation
31167         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31168         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31169         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31170         * DataGridViewRow.cs: DataGridView implementation
31171         * DataGridViewImageCellLayout.cs: DataGridView implementation
31172         * DataGridViewImageCell.cs: DataGridView implementation
31173         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31174         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31175         * DataGridViewHeaderCell.cs: DataGridView implementation
31176         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31177         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31178         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31179         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31180         * QuestionEventHandler.cs: DataGridView implementation
31181         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31182         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31183         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31184         * DataGridViewCell.cs: DataGridView implementation
31185         * DataGridViewCellEventArgs.cs: DataGridView implementation
31186         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31187         * DataGridViewCellStyle.cs: DataGridView implementation
31188         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31189         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31190         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31191         * TextFormatFlags.cs: DataGridView implementation
31192         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31193         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31194         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31195         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31196         * DataGridViewButtonColumn.cs: DataGridView implementation
31197         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31198         * HandledMouseEventArgs.cs: DataGridView implementation
31199         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31200         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31201         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31202         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31203         * DataGridViewRowCollection.cs: DataGridView implementation
31204         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31205         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31206         * DataGridViewHitTestType.cs: DataGridView implementation
31207         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31208         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31209         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31210         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31211         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31212         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31213         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31214         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31215         * DataGridViewContentAlignment.cs: DataGridView implementation
31216         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31217         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31218         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31219         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31220         * DataGridViewPaintParts.cs: DataGridView implementation
31221         * DataGridViewCellCollection.cs: DataGridView implementation
31222         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31223         * DataGridViewImageColumn.cs: DataGridView implementation
31224         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31225         * DataGridViewElementStates.cs: DataGridView implementation
31226         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31227         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31228         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31229         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31230         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31231         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31232         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31233         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31234         * DataGridViewTextBoxCell.cs: DataGridView implementation
31235         * DataGridViewBand.cs: DataGridView implementation
31236         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31237         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31238         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31239         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31240         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31241         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31242         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31243         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31244         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31245         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31246         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31247
31248 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31249
31250         * ThemeWin32Classic.cs: 
31251           - Draw the outside focus rectangle around buttons
31252           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31253             doesn't use end caps for every dash of a line anymore. This
31254             workaround ignores the forecolor.
31255
31256 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31257
31258         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31259           endian safe.
31260
31261 2005-11-07  Jackson Harper  <jackson@ximian.com>
31262
31263         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31264
31265 2005-11-07  Jackson Harper  <jackson@ximian.com>
31266
31267         * ScrollableControl.cs: Calculate the maximum and change vars
31268         (more) correctly so that scrollbars appear as a sensible size.
31269
31270 2005-11-04  Jackson Harper  <jackson@ximian.com>
31271
31272         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31273         collection.
31274         * TreeView.cs: When the tree is sorted null out the top_node so
31275         that it is recalculated.
31276         - Use dotted lines instead of dashed lines to match MS better.
31277
31278 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31279
31280         * ListView.cs: 
31281           - Implements key search for items. Useful when browsing files with FileDialog
31282           - When changing view mode or when clear the items reset scrollbar positions
31283
31284 2005-11-04  Jackson Harper  <jackson@ximian.com>
31285
31286         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31287         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31288         as to what the method may do as there is no real way of creating a
31289         derived CurrencyManager and calling the method. 
31290
31291 2005-11-03  Jackson Harper  <jackson@ximian.com>
31292
31293         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31294         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31295         method which seems to just be used internally to refresh the tabs.
31296
31297 2005-11-03  Jackson Harper  <jackson@ximian.com>
31298
31299         * TabControl.cs: Implement the remove method. Fix some broken
31300         comments.
31301
31302 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31303
31304         * DateTimePicker.cs:
31305           - Added missing DateTimePickerAccessibleObject class
31306           - Added missing events
31307           - Added OnFontChanged method
31308         * Form.cs: Added missing attributes
31309         * TreeView.cs: Added missing attributes
31310
31311 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31312
31313         * GridItemCollection.cs: Fix signatures
31314
31315 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31316
31317         * XplatUI.cs: Updated build rev/date
31318         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31319           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31320         * Application.cs: Trigger context-specific ExitThread events
31321
31322 2005-11-03  Jackson Harper  <jackson@ximian.com>
31323
31324         * Menu.cs:
31325         * MainMenu.cs:
31326         * GridTableStylesCollection.cs:
31327         * Timer.cs:
31328         * TabPage.cs:
31329         * HelpProvider.cs:
31330         * StatusBar.cs:
31331         * MonthCalendar.cs: Signature fixes
31332
31333 2005-11-03  Jackson Harper  <jackson@ximian.com>
31334
31335         * TreeNodeCollection.cs: Remove should not be virtual.
31336         * TreeView.cs: Implement the last of the missing methods.
31337
31338 2005-11-03  Jackson Harper  <jackson@ximian.com>
31339
31340         * TreeNodeConverter.cs: Implement to get off my class-status back.
31341
31342 2005-11-03  Jackson Harper  <jackson@ximian.com>
31343
31344         * TreeView.cs: Hookup the bits for drag and drop.
31345         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31346         that nodes can be moved from tree to tree easily this just causes
31347         all sorts of problems.
31348         * TreeNodeCollection: Don't need to give treenodes an index and
31349         treeview anymore when they are added, these are computed on the
31350         fly. Also make sure to remove a node before its added.
31351
31352 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31353
31354         * TextControl.cs:
31355           - Added CaretSelection enum
31356           - Added comparison methods to Marker struct, makes selection code
31357             more readable
31358           - Added SelectionStart and SelectionEnd as 'moveable' location for
31359             the CaretDirection enum and handler
31360           - Added selection_prev variable to track optimized invalidation for
31361             word and line selection
31362           - Added SelectionVisible property (returns true if there is a valid 
31363             selection)
31364           - Switched CaretHasFocus to only display the caret if there is no
31365             visible selection
31366           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31367             using the direct character index; should be much faster
31368           - Added various conditional debug statements
31369           - Fixed invalidation calculation for selection ranges
31370           - Added ExpandSelection() method to support word and line selection
31371           - Switched SetSelectionToCaret to use new Marker compare overloads
31372           - Added central IsWordSeparator() method to determine word 
31373             separators/whitespace and FindWordSeparator() to streamline common
31374             usage of IsWordSeparator()
31375         * TextBoxBase.cs:
31376           - Removed unneeded grabbed variable, it was just mirroring
31377             Control.Capture
31378           - No longer firing OnTextChanged event when Text setter is called,
31379             since the base will fire the event for us
31380           - Added handling of Ctrl-Up/Down selection
31381           - Added handling of Shift-Cursorkey selection
31382           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31383             words
31384           - Added handling of Shift and Ctrl-Shift-Home/End selection
31385           - Removed some debug output
31386           - Added handling for single/double/tripple-click to place caret/
31387             select word/select line respectively (Fixes bug #76031)
31388           - Added support for drag expansion of word/line selection
31389         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31390           current selection
31391
31392 2005-11-02  Jackson Harper  <jackson@ximian.com>
31393
31394         * X11Dnd.cs: If the drag is going to and from a MWF window just
31395         copy the data instead of sending it out through the X Selection
31396         mechanism.
31397
31398 2005-11-02  Jackson Harper  <jackson@ximian.com>
31399
31400         * X11Dnd.cs:
31401         * XplatUIX11.cs: When in a drag we don't want motion notify
31402         messages to get passed on to the other controls. This prevents
31403         mouse move messages from showing up in the drag source.
31404
31405 2005-11-02  Jackson Harper  <jackson@ximian.com>
31406
31407         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31408         the correct button is release to end a drag.
31409         * XplatUIX11.cs: Make the button state internal so the drag system
31410         can access it.  Dragging needs to know about all button releases,
31411         not just left button.
31412
31413 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31414
31415         * Form.cs (Icon): If the icon is null, reset the icon to the
31416         default value. 
31417
31418         * Cursor.cs: When writing the AND-mask bitmap do not include the
31419         number of colors, but hardcode those to two (black and white),
31420         fixes the loading of color cursors (Paint Dot Net).
31421
31422         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31423         turn off autoscaling.
31424
31425         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31426
31427 2005-11-02  Jackson Harper  <jackson@ximian.com>
31428
31429         * X11Dnd.cs: Make sure to send a status message if the pointer
31430         enters a control that can not accept a drop, otherwise the cursor
31431         isn't updated correctly. Also tried to compress the lines of code
31432         a bit.
31433
31434 2005-11-02  Jackson Harper  <jackson@ximian.com>
31435
31436         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31437         set actions correctly.  This isn't perfect as XDND and win32 have
31438         some differences on how you allow actions. I'll clear this up by
31439         adding a path for drag from MWF to MWF windows.
31440         * XplatUIX11.cs: Hook into the dnd system.
31441
31442 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31443
31444         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31445         previously shown but they are no longer need it. Very obvious when 
31446         browsing files with FileDialog.
31447
31448 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31449
31450         * Control.cs: We always need to call OnPaintBackground. We pretty much
31451           ignore AllPaintingInWmPaint and always do the painting there, whether 
31452           it's set or not, since we always ignore the WM_ERASEBKGND message 
31453           (which we don't generate on X11). This fixes #76616.
31454         * Panel.cs: Removed unneeded background painting. This happens properly
31455           in Control.cs already
31456
31457 2005-10-31  Mike Kestner  <mkestner@novell.com>
31458
31459         * Menu.cs: Add items to collection before setting their index.
31460         * MenuItem.cs : add range checking with ArgumentException like MS.
31461         [Fixes #76510]
31462
31463 2005-10-31  Jackson Harper  <jackson@ximian.com>
31464
31465         * ListBox.cs: Invalidate if the area is visible at all not just
31466         contained in the visible rect. Fixes unselection of semi visible
31467         items.
31468
31469 2005-10-31  Jackson Harper  <jackson@ximian.com>
31470
31471         * Control.cs: Consistently name the dnd methods. Make them
31472         internal so we can override them to match some MS behavoir
31473         internally.
31474         * Win32DnD.cs: Use the new consistent names.
31475
31476 2005-10-31  Jackson Harper  <jackson@ximian.com>
31477
31478         * TreeView.cs: Don't draw the selected node when we lose focus.
31479
31480 2005-10-31  Jackson Harper  <jackson@ximian.com>
31481
31482         * X11Dnd.cs: We still need to reset the state even though a full
31483         reset isn't being done, otherwise status's still get sent all over
31484         the place.
31485
31486 2005-10-31  Jackson Harper  <jackson@ximian.com>
31487
31488         * Control.cs: Make the dnd_aware flag internal so the dnd
31489         subsystem can check it. Catch exceptions thrown in dnd handlers to
31490         match MS behavoir.
31491         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31492         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31493         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31494         flags to reduce the number of dnd enters/status's sent.
31495
31496 2005-10-31  Jackson Harper  <jackson@ximian.com>
31497
31498         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31499
31500 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31501
31502         * PictureBox.cs: Fixes 76512
31503
31504 2005-10-28  Jackson Harper  <jackson@ximian.com>
31505
31506         * X11Dnd.cs: Early implementation to support winforms being a drag
31507         source for data on X11. Also restructured the converters so they
31508         can go both ways now.
31509         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31510         
31511 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31512
31513         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31514           clipboard requests
31515
31516 2005-10-27  Jackson Harper  <jackson@ximian.com>
31517
31518         * TreeNode.cs: Implement serialization so my DnD examples will work.
31519
31520 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31521
31522         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31523           TreeView.cs: Don't dispose objects that are not owned.
31524           
31525 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31526
31527         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31528           should retrieve the current cursor and report that, but XplatUI
31529           doesn't (yet) have an interface for that (and I'm not sure I even
31530           can, on X11)
31531         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31532           until any message loop processing is done (and the WM_SETCURSOR
31533           replaces the cursor to the proper one)
31534         * XplatUIX11.cs: 
31535           - Fixed override behaviour, we can't set the cursor globally on X11, 
31536             just for our windows.
31537           - Invalidating the System.Drawing X11 display handle when we are
31538             shutting down
31539         * Control.cs: Fix to make csc happy
31540
31541 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31542
31543         * TextBoxBase.cs: 
31544           - get_Text: Add last line (without trailing newline) to returned
31545             value (Fixes 76212)
31546           - get_TextLength: Count last line in returned length
31547           - ToString: Call Text property instead of duplicating code
31548
31549 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31550
31551         * ImageList.cs: Dispose ImageAttributes objects.
31552
31553 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31554
31555         * ImageList.cs: Use attribute constructors with less arguments where
31556           possible.
31557
31558 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31559
31560         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31561           Use typeof instead of strings when assembly is referenced. Added
31562           some more comments.
31563
31564 2005-10-21  Jackson Harper  <jackson@ximian.com>
31565
31566         * ListView.cs: Raise a double click event. Also tried to somewhat
31567         fix when the selectedindexchanged event is raised. Its still
31568         broken though.
31569
31570 2005-10-21  Jackson Harper  <jackson@ximian.com>
31571
31572         * TreeView.cs: New method to invalidate the plus minus area of a
31573         node without invalidating the whole node (maybe this can be used
31574         in some more places).
31575         * TreeNodeCollection.cs: When adding to an empty node we need to
31576         invalidate its plus minus area so the little block shows up.
31577         
31578 2005-10-21  Jackson Harper  <jackson@ximian.com>
31579
31580         * TreeView.cs: Make sure that when we invalidate a node the bounds
31581         are big enough to cover the selected box and the focus
31582         rectangle. Use a different colour for the lines connecting nodes
31583         so they show up with all themes.
31584
31585 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31586
31587         * NativeWindow.cs: Don't call anything that could call into the driver,
31588           we might be on a different thread.
31589
31590 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31591
31592         * Control.cs(Dispose): Since Dispose might run on a different thread,
31593           make sure that we call methods that could call into the driver via
31594           invoke, to avoid thread issues
31595
31596 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31597
31598         * XplatUI.cs: Removed finalizer
31599         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31600           not allowing to be called on the finalizer thread.
31601
31602 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31603
31604         * ImageList.cs:
31605           - Reverted r51889 and r51891.
31606           - Added ImageListItem class that stores unmodified image items and image
31607             properties required to create list images until handle is created.
31608           - Added AddItem and moved image creation logic to AddItemInternal.
31609           - Added CreateHandle method that creates images based on unmodified items.
31610           - Added DestroyHandle that changes state to store unmodified items.
31611           - Add and AddStrip methods no more create handle.
31612           - ReduceColorDepth has no return value.
31613           - Dispose destroys handle.
31614           - Modified other methods to reflect the above changes.
31615           - Implemented key support.
31616           - Added profile 2.0 members and attributes.
31617           - Added private Reset and ShouldSerialize methods that provide the same
31618             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31619             them as they are private.
31620           - Added some more comments about implementation details.
31621
31622 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31623
31624         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31625
31626 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31627
31628         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31629
31630 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31631
31632         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31633         * DataGridColumnStyle.cs: Remove debug message
31634
31635 2005-10-20  Jackson Harper  <jackson@ximian.com>
31636
31637         * TreeView.cs: We can always get input keys regardless of whether
31638         or not editing is enabled. They are used for navigation.
31639
31640 2005-10-20  Jackson Harper  <jackson@ximian.com>
31641
31642         * TreeNode.cs: Use the viewport rect for determining if a node
31643         needs to be moved for visibility. Don't use Begin/End edit. This
31644         calls a full refresh when its done.
31645         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31646         rect property internal so the treenodes can see it. When clicking
31647         on a node we need to ensure that its visible because it might just
31648         be partly visible when clicked.
31649
31650 2005-10-20  Jackson Harper  <jackson@ximian.com>
31651
31652         * TreeNodeCollection.cs: Remove debug code.
31653
31654 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31655
31656         * Datagrid.cs: Implements column sorting in Datagrid
31657         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31658
31659 2005-10-20  Jackson Harper  <jackson@ximian.com>
31660
31661         * TreeNodeCollection.cs: Remove items properly. Update the correct
31662         area after removing them.
31663
31664 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31665
31666         * Datagrid.cs: Should not call base.OnPaintBackground
31667
31668 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31669
31670         * XplatUIX11.cs (GetMessage):
31671           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31672             window instead of client window
31673           - Now properly calculates NC_xBUTTONUP message coordinates
31674           - ScreenToMenu now properly calculates it's coordinates of whole 
31675             window, since menus are in the whole window, not in the client
31676             window
31677           - Added WholeToScreen coordinate translation method
31678
31679 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31680
31681         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31682           want to return a message, loop back to the beginning of the function
31683           and grab the next real message to process instead.
31684
31685 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31686
31687         * Splitter.cs: Properly set limits if no filler control is used
31688
31689 2005-10-19  Jackson Harper  <jackson@ximian.com>
31690
31691         * ColorDialog.cs: Don't show the help button if it is not enabled
31692         instead of disabling it (this is what MS does). Don't create the
31693         panel until the dialog is run, otherwise the vars (such as
31694         ShowHelp) are not set yet.
31695
31696 2005-10-19  Jackson Harper  <jackson@ximian.com>
31697
31698         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31699         are reduced when adding nodes.
31700         * TreeNode.cs:
31701         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31702         tree.
31703         
31704 2005-10-19  Jackson Harper  <jackson@ximian.com>
31705
31706         * FolderBrowserDialog.cs: End editing our treeview so the window
31707         actually gets refreshed.
31708
31709 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31710
31711         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31712           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31713           inside of WM_PAINT
31714
31715 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31716
31717         * MenuAPI.cs: Returns after Hidding window
31718         * XplatUIX11.cs: Added TODO found while debugging menu issues
31719
31720 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31721
31722         * XplatUIX11.cs: Do not re-map the whole window when it's size
31723           becomes non-zero unless it's supposed to be actually visible
31724
31725 2005-10-18  Jackson Harper  <jackson@ximian.com>
31726
31727         * TreeView.cs: We don't need to keep a count anymore.
31728         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31729         use the Grow method.
31730
31731 2005-10-18  Jackson Harper  <jackson@ximian.com>
31732
31733         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31734         implement it manually here.
31735
31736 2005-10-18  Jackson Harper  <jackson@ximian.com>
31737
31738         * ImageList.cs: Dont kill the list when the colour depth is
31739         changed, just change the colour depth of all the images.
31740         - Same goes for setting the image size. Just resize them all
31741         instead of killing the list softly.
31742
31743 2005-10-18  Jackson Harper  <jackson@ximian.com>
31744
31745         * Control.cs: Don't invalidate empty rectangles.
31746
31747 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31748
31749         * ListViewItem.cs:
31750           - Adds checked item to the Checked/Item lists (where empty before)
31751           - Do not add items to the Selected lists if they are already present
31752         * ListView.cs:
31753           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31754           - When deleting items make sure that we delete them for the Selected
31755           and Checked list also.
31756
31757 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31758
31759         * Label.cs: Dispose objects no longer used
31760         * ThemeWin32Classic.cs: Dispose objects no longer used
31761
31762 2005-10-18  Jackson Harper  <jackson@ximian.com>
31763
31764         * TabControl.cs: Don't refresh the whole control when the tabs are
31765         scrolled, we just need to refresh the tab area.
31766
31767 2005-10-17  Jackson Harper  <jackson@ximian.com>
31768
31769         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31770         after handle when we need it.
31771
31772 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31773
31774         * Control.cs: When the parent size changes, recalculate anchor 
31775           positions. Partial fix for #76462
31776
31777 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31778
31779         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31780           drawn. Fixes #76462
31781
31782 2005-10-17  Jackson Harper  <jackson@ximian.com>
31783
31784         * MonthCalendar.cs: Don't create the numeric up down until our
31785         handle is created. Otherwise our handle is created in the
31786         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31787         yet.
31788
31789 2005-10-17  Jackson Harper  <jackson@ximian.com>
31790
31791         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31792         correctly.
31793
31794 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31795         * TreeNode.cs : small logical fix (was using local var instead of field)
31796         
31797 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31798
31799         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31800
31801 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31802
31803         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31804
31805 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31806
31807         * Control.cs: 
31808           - Re-implemented anchoring code. My first version was really broken.
31809             This fixes bug #76033. Unlike the previous implementation we will
31810             no longer have round errors since all numbers are calculated from
31811             scratch every time. Removed various anchor-related obsolete vars.
31812           - InitLayout no longer causes layout event firing and layout to be 
31813             performed
31814
31815 2005-10-16  Jackson Harper  <jackson@ximian.com>
31816
31817         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31818         which was broken).
31819
31820 2005-10-16  Jackson Harper  <jackson@ximian.com>
31821
31822         * TabControl.cs: Remove debug code.
31823
31824 2005-10-16  Jackson Harper  <jackson@ximian.com>
31825
31826         * XEventQueue.cs: Increase the default queue size (very simple
31827         apps needed to grow the queue).
31828         * Hwnd.cs: No finalizer so we don't need to suppress
31829         finalization. Compute the invalid area manually so a new rectangle
31830         does not newto be created.
31831         * ScrollableControl.cs: Don't set any params (otherwise visibility
31832         isn't set correctly).
31833         * MdiChildContext.cs: New constructor takes the mdi parent so it
31834         doesn't have to be computed and avoids a crash on windows. Draw
31835         the window icon properly, and allow the text to be seen.
31836         * Form.cs: Use new MdiChildContext constructor. Make sure the
31837         child context isn't null in wndproc.
31838         * TabControl.cs: Don't set focus, this is muddling keyboard
31839         behavoir. Expand the tab rows when a window size increase will
31840         allow extra tabs to be seen. Don't allow tabs smaller than the
31841         width of a window to be scrolled out of view.
31842         * TreeNode.cs:
31843         * TreeView.cs: Use measure string to calculate a nodes width, the
31844         width is cached and only updated when the text or the font is
31845         changed. Don't check for expand/collapse clicks on the first level
31846         nodes if root lines are disabled.
31847         
31848 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31849
31850         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31851
31852 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31853
31854         * DataGridBoolColumn.cs: fixes warning
31855
31856 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31857
31858         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31859         to match more to match more precisely the MS Net behavior
31860
31861 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31862
31863         * Hwnd.cs: Added field to track if window is mapped
31864         * XplatUIX11.cs: 
31865           - Unmap windows if they become 0-size, re-map when 
31866             they are >0 again; fixes #76035
31867           - Re-set our error handler after initializing X11Desktop
31868             to override any error handlers Gtk or whatever was called
31869             may have set.
31870
31871 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31872
31873         * CheckedListBox.cs: Removed unused vars
31874         * ListView.cs: Fixed signatures
31875         * RichTextBox.cs: Removed unused vars
31876         * TextBoxBase.cs: Removed unused vars
31877         * XplatUIWin32.cs: Removed unused vars
31878         * XplatUIX11.cs: Removed unused vars
31879         * XplatUI.cs: Updated version and date to latest published
31880
31881 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31882
31883         * Cursor.cs: Added private .ctor to work around a bug in
31884           resourceset (Thanks to Geoff Norton for the help on this)
31885         * SplitterEventArgs.cs: Made fields accessible so we don't
31886           waste boatloads of objects and can reuse the same one
31887           in Splitter
31888         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31889           any captions and borders when generating screen coordinates
31890         * Splitter.cs: Reimplemented control, now fully complete, uses
31891           rubberband drawing, supports and obeys all properties, has
31892           proper cursors
31893
31894 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31895
31896         * Form.cs (Form): Setup default values for autoscale and
31897         autoscale_base_size;  Make these instance variables, not static
31898         variables. 
31899
31900         (OnLoad): on the first load, adjust the size of the form.
31901
31902 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31903
31904         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31905           width argument to DrawReversibleRectangle()
31906         * XplatUIWin32.cs, XplatUIX11.cs: 
31907           - Implemented width for DrawReversibleRectangle()
31908           - Added logic to DrawReversibleRectangle that recognizes a zero
31909             width or height and only draws a line in that situation
31910         
31911 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31912
31913         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31914         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31915         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31916           method (it uses our FosterParent window to get a graphics context)
31917
31918 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31919
31920         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31921           and SetWindowBackground methods
31922         * Control.cs:
31923           - Setting proper ControlStyles
31924           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31925             EraseWindowBackground, instead we draw the window background
31926             ourselves in PaintControlBackground. This behaviour is
31927             required to match MS, where, when OnPaintBackground is not
31928             called, the background is not drawn.
31929           - Removed unneeded Refresh() in set_Text
31930         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31931         * XplatUIX11.cs:
31932           - Created DeriveStyles method to translate from CreateParams to
31933             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31934             matches FormBorderStyle enum values)
31935           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31936             style calculations into single DeriveStyles method
31937           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31938             from redrawing the whole window on any resize or expose.
31939           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31940             all styles were applied to our whole/client window appropriately
31941           - Removed EraseWindowBackground() and SetWindowBackground() methods
31942           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31943             no longer clear/redraw the background through X
31944           - Removed handling of erase_pending bit, we have no use for it (or
31945             so it seems)
31946         * XplatUIOSX.cs:
31947           - Removed generation and handling of WM_ERASEBKGND message
31948           - Removed EraseWindowBackground() and SetWindowBackground() methods
31949           - Removed handling of hwnd.ErasePending flag
31950         * XplatUIWin32.cs:
31951           - Removed EraseWindowBackground() and SetWindowBackground() methods
31952           - We no longer call EraseWindowBackground on PaintEventStart, we 
31953             ignore the fErase flag, erasing is handled in Control in the
31954             background handler
31955         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31956           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31957           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31958           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31959           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31960           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31961           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31962
31963 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31964
31965         * PropertyGrids.cs: Get sub properties
31966         * PropertyGridView.cs: Fix drawing code
31967
31968 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31969
31970         * ListBox.cs: Fixes 76383
31971
31972 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31973
31974         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31975         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31976         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31977
31978
31979 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31980
31981         * ComboBox.cs: Fixes border drawing
31982
31983 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31984
31985         * MimeIcon.cs: Ignore errors if the file can not be read.
31986
31987 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31988
31989         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31990          - Fixed border calculations
31991          - Fixed horizontal scrolling in single column listboxes
31992          - Fixed drawing issues
31993
31994 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31995
31996         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31997           FormBorderStyle enum
31998         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31999           code to determine FormBorderStyles from CreateParams
32000         * Form.cs:
32001           - Fixed bug where we'd set the wrong window styles if we were
32002             not creating an MDI window
32003           - Added call to XplatUI.SetBorderStyle when form borders are set
32004         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
32005         * Hwnd.cs:
32006           - Removed obsolete edge style
32007           - Switched from BorderStyle to FormBorderStyle
32008         
32009 2005-10-10  Jackson Harper  <jackson@ximian.com>
32010
32011         * Form.cs: Use the property to get the window handle instead of
32012         accessing it directly. Prevents a null reference exception.
32013
32014 2005-10-10  Jackson Harper  <jackson@ximian.com>
32015
32016         * TreeView.cs: Don't adjust the rect given to DrawString now that
32017         our libgdiplus draws correctly.
32018
32019 2005-10-08  Jackson Harper  <jackson@ximian.com>
32020
32021         * TreeView.cs: Don't try to find the clicked on node if there are
32022         no nodes in the tree.
32023
32024 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32025
32026         * RichTextBox.cs:
32027
32028           restore
32029
32030 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
32031
32032         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
32033           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
32034           ErrorProvider.cs:
32035           Use ResPool for brushes and dispose System.Drawing objects that
32036           are not used anymore.
32037
32038 2005-10-07  Jackson Harper  <jackson@ximian.com>
32039
32040         * MdiChildContext.cs: Use the new borders instead of drawing them
32041         ourselves.
32042
32043 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32044
32045         * Calling UpdateBounds after changing the window's BorderStyle 
32046         since the style can change the ClientSize
32047
32048 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32049
32050         * Control.cs: Made PaintControlBackground virtual
32051         * Panel.cs: Overriding PaintControlBackground instead of using paint
32052           event; paint event method was interfering with 'real' users of the
32053           event.
32054
32055 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
32056
32057         * ThemeWin32Classic.cs: remove border drawing since it is handled
32058         by the base control class now and was causing double border drawing.
32059
32060 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32061
32062         * Panel.cs: Redraw our background on paint. Not a pretty solution,
32063           but it does seem to match MS behaviour. This fixes bug #75324
32064
32065 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32066
32067         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
32068           somewhat hackish looking
32069
32070 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32071
32072         * TextBoxBase.cs:
32073           - We now accept Enter even if AcceptEnter is false, if the containing
32074             form does not have an AcceptButton configured (fixes bug #76355)
32075           - Calculations are now fixed to no longer use Width/Height, but
32076             ClientSize.Width/Height, since we now support borders (this was
32077             a result of fixing borders and therefore bug #76166)
32078           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
32079             true (fixes bug #76354)
32080         
32081 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32082
32083         * Control.cs: 
32084           - Defaulting BorderStyle and setting it in XplatUI when our window 
32085             is created
32086           - Added enum check to InternalBorderStyle setter
32087         * XplatUIX11.cs: 
32088           - Added drawing of window borders
32089           - Now properly calculates WM decorations offset for toplevel 
32090             windows (fixes bug #74763)
32091         * XplatUIWin32.cs: 
32092           - Implemented BorderStyles for windows (we're letting win32 draw 
32093             the border for us)
32094           - Fixed the signature for SetWindowLong
32095         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
32096           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
32097           setting borders
32098         * UpDownBase.cs: Remove drawing of borders, this is handled by
32099           the driver, outside the client area
32100         * ListView.cs: Removed bogus border calculations. The control should
32101           be oblivious to borders, since those are not part of the client
32102           area. 
32103         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32104         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32105           drawing code
32106
32107 2005-10-06  Jackson Harper  <jackson@ximian.com>
32108
32109         * MdiChildContext.cs: Clear out the old virtual position remove
32110         all the unneeded calls to CreateGraphics.
32111
32112 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32113
32114         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32115
32116 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32117
32118         * Form.cs: 
32119           - Added loading and setting of our new default icon
32120           - Only set icon if window is already created
32121
32122 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32123
32124         * Label.cs:
32125           - Do not explicitly set the foreground and background colors, to
32126             allow inheriting from parents (fixes #76302)
32127           - Use Control's InternalBorderStyle property to deal with borders
32128
32129 2005-10-06  Jackson Harper  <jackson@ximian.com>
32130
32131         * MdiChildContext.cs: Use the new xplatui function to draw a
32132         reversible rect.
32133
32134 2005-10-06  Jackson Harper  <jackson@ximian.com>
32135
32136         * Form.cs: Add the parent before creating the child context cause
32137         we need the parent when setting up the child.
32138
32139 2005-10-06  Jackson Harper  <jackson@ximian.com>
32140
32141         * FolderBrowserDialog.cs: redo the tree population code so a
32142         second thread isn't used. Should be a lot faster and more stable
32143         now.
32144
32145 2005-10-05  Jackson Harper  <jackson@ximian.com>
32146
32147         * TreeView.cs: There are no expand/collapse boxes if the node has
32148         no children.
32149
32150 2005-10-05  Jackson Harper  <jackson@ximian.com>
32151
32152         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32153
32154 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32155
32156         * FileDialog.cs: Fix InitialDirectory
32157
32158 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32159
32160         * ComboBox.cs:
32161                 - Fixes changing between styles
32162                 - Fixes simple mode
32163                 - Fixes last item crashing when navigating with keyboard
32164
32165 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32166
32167         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32168
32169 2005-10-05  Jackson Harper  <jackson@ximian.com>
32170
32171         * TreeView.cs: If updating the root node do a full refresh.
32172         * TreeNode.cs: The root node should be expanded by default. Also
32173         added a utility prop to tell if we are the root node.
32174         * TreeNodeCollection.cs: Only refresh if the node we are being
32175         added to is expanded. Also added a comment on a potential
32176         optimization.
32177         
32178 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32179
32180         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32181           in dispose method. Fixes #76330
32182
32183 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32184
32185         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32186
32187                 - Implements vertical and horizontal scrolling using XplatUI
32188                 - Fixes keyboard navagation
32189                 - Fixes EnsureVisible
32190                 - Drawing fixes
32191                 - Handles and draws focus properly
32192
32193
32194 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32195
32196         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32197           Create handle. NET_2_0: Destroy handle when value is null.
32198
32199 2005-10-03  Jackson Harper  <jackson@ximian.com>
32200
32201         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32202         revert and a new patch to prevent the thumb from refreshing so
32203         much.
32204
32205 2005-10-02  Jackson Harper  <jackson@ximian.com>
32206
32207         * ScrollBar.cs: Don't update position if it hasn't actually
32208         changed. This occurs when you hold down the increment/decrement
32209         buttons and the thumb gets to the max/min.
32210
32211 2005-10-01  Jackson Harper  <jackson@ximian.com>
32212
32213         * Form.cs:
32214         * MdiChildContext.cs:
32215         * MdiClient.cs: Implement ActiveMdiChild in Form.
32216
32217 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32218
32219         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32220
32221 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32222
32223         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32224           be found
32225
32226 2005-09-30  Jackson Harper  <jackson@ximian.com>
32227
32228         * ListBox.cs: Don't do a full refresh unless some data has
32229         actually changed.
32230
32231 2005-09-30  Jackson Harper  <jackson@ximian.com>
32232
32233         * TreeView.cs: Make sure that the checkboxes size is factored in
32234         even when not visible.
32235
32236 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32237
32238         * FileDialog.cs: Fix Jordi's build break
32239
32240 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32241
32242         * FileDialog.cs: 
32243                 - Use standard the Windows colours for the combobox as espected
32244                 - Dispose objects that use resouces when no longer need them
32245
32246 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32247
32248         * X11DesktopColors.cs: Initial incomplete implementation
32249         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32250
32251 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32252
32253         * Theme.cs: 
32254           - Switched Theme color names to match the names defined in 
32255             System.Drawing.KnownColors. Life's hard enough, no need to make 
32256             it harder.
32257           - Added setters to all theme color properties so themes can set
32258             their color schemes. The setters also propagate the color changes
32259             to System.Drawing.KnownColors via reflection
32260         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32261           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32262           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32263           use the new, more logical theme color names
32264         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32265           post-NT colors
32266         * ThemeWin32Classic.cs:
32267           - Removed code to set the old classic Windows colors. Instead it
32268             now relies on the colors returned by System.Drawing.KnownColors
32269             which will be either modern static colors (Unix) or colors
32270             read from the user's configuration (Win32)
32271           - Updated to use the new, more logical theme color names
32272           - Switched DataGrid drawing code to use only Theme colors instead of
32273             a mix of System.Drawing.KnownColors and Theme colors
32274           - DrawFrameControl(): Removed code that fills the button area, the
32275             fill would overwrite any previous fill done by a control. This
32276             fixes bug #75338 
32277           - Added DrawReversibleRectangle() stub
32278         * ScrollableControl.cs: Set visible state to false when scrollbars
32279           are removed (pdn fix)
32280         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32281           DrawReversibleRectangle() method to allow drawing primitive 
32282           'rubber bands'
32283         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32284
32285 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32286
32287         * ImageList.cs: Add(Icon): Create handle.
32288
32289 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32290
32291         * ListView.cs:
32292         * ThemeWin32Classic.cs:
32293                 - Fixes detail mode
32294                 - Sets clippings
32295                 - Issues with drawing
32296
32297 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32298
32299         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32300           source has to be the ImageList.
32301
32302 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32303
32304         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32305
32306 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32307
32308         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32309
32310 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32311
32312         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32313
32314 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32315         * GridItem.cs: Fixed TODOs
32316         * GridItemCollection.cs: Added ICollection interface
32317
32318 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32319
32320         * ImageList.cs: Resize icons when needed.
32321
32322 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32323
32324         * ListViewItem.cs
32325                 - Fixes GetBounds and returns on screen rects
32326         * ListView.cs:
32327                 - Fixes vertical and horzintal scrolling of items
32328         * ThemeWin32Classic.cs:
32329                 - Fixes drawing
32330                 
32331 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32332
32333         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32334
32335 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32336
32337         * ImageList.cs: Added comments about handle creation. Moved Handle,
32338           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32339           Handle is created in Add methods.
32340
32341 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32342          
32343         * DataGridDrawingLogic.cs: 
32344                 - Takes rows into account on Colum calculations
32345                 - Returns the column when clickig
32346         * DataGrid.cs:
32347                 - Fixes default HitTestInfo values
32348                 - Fixes HitTestInfo.ToString
32349                 - Fixes ResetBackColor          
32350         
32351 2005-09-28  Jackson Harper  <jackson@ximian.com>
32352
32353         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32354         sizing or cursor changes). Also added some temp code to draw the
32355         titlebars text (Makes dev a little easier).
32356
32357 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32358
32359         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32360
32361 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32362          
32363         * ListBox.cs: Fixes bug 76253
32364
32365 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32366
32367         * ImageList.cs: Added comments about the current implementation. Added
32368           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32369           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32370           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32371           with Bitmap.LockBits for better performance. Revised the whole file to
32372           match MS.NET behaviour and provide better performance. Non-public
32373           interface members are calling public members even when they throw
32374           NotSupportedException for better maintainability. Moved ColorDepth,
32375           ImageSize, ImageStream and TransparentColor implementations to
32376           ImageCollection for better performance as these properties are not used
32377           by ImageList.
32378         * ImageListStreamer.cs: Added a new internal constructor that takes an
32379           ImageList.ImageCollection and serializes Images based on
32380           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32381           match ImageList property name.
32382
32383 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32384
32385         * ListBox.cs: Fixes IndexFromPoint for last item
32386
32387 2005-09-27  Jackson Harper  <jackson@ximian.com>
32388
32389         * Form.cs: Set the position of new mdi children correctly.
32390
32391 2005-09-27  Jackson Harper  <jackson@ximian.com>
32392
32393         * MdiClient.cs: New mdi children need to be added to the back of
32394         the controls collection so the zorder is set correctly. Also add a
32395         count of all the child windows that have been created.
32396
32397 2005-09-27  Jackson Harper  <jackson@ximian.com>
32398
32399         * Form.cs (CreateParams): Setup MDI forms correctly.
32400
32401 2005-09-27  Jackson Harper  <jackson@ximian.com>
32402
32403         * MdiChildContext.cs:
32404         * MonthCalendar.cs:
32405         * UpDownBase.cs:
32406         * ListBox.cs:
32407         * ListView.cs:
32408         * TextBoxBase.cs:
32409         * TreeView.cs:
32410         * ScrollableControl.cs:
32411         * ComboBox.cs: Add implicit controls using the new implict control
32412         functionality in ControlCollection. Also try to block multiple
32413         control add in a suspend/resume layout to save some cycles.
32414         
32415 2005-09-27  Jackson Harper  <jackson@ximian.com>
32416
32417         * Control.cs: Add functionality to the controls collection to add
32418         'implicit controls' these are controls that are created by the
32419         containing control but should not be exposed to the user. Such as
32420         scrollbars in the treeview.
32421         * Form.cs: The list var of the ControlsCollection is no longer
32422         available because of the potential of implicit controls getting
32423         ignored by someone accessing the list directly.
32424
32425 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32426
32427         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32428           loose it's parent. (Fixed bug introduced in r49103 when we added
32429           setting the child parent to null on Remove)
32430
32431 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32432
32433         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32434         * Splitter.cs: Added missing attributes for BorderStyle property.
32435         * TextBoxBase.cs: Marked Calculate* methods internal.
32436         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32437         MS.NET.
32438
32439 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32440          
32441         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32442
32443 2005-09-25  Jackson Harper  <jackson@ximian.com>
32444
32445         * TreeView.cs: Update the node bounds correctly regardless of
32446         whether the node is visible.
32447
32448 2005-09-25  Jackson Harper  <jackson@ximian.com>
32449
32450         * ImageList.cs: Don't dispose the image after it is added to the
32451         image list. Only reformat images that need to be resized.
32452
32453 2005-09-25  Jackson Harper  <jackson@ximian.com>
32454
32455         * ImageList.cs: Don't set the format when changing the image.
32456
32457 2005-09-25  Jackson Harper  <jackson@ximian.com>
32458
32459         * TreeView.cs: We can't just assume the node has a font. Use the
32460         treeviews font if no node font is available.
32461
32462 2005-09-25  Jackson Harper  <jackson@ximian.com>
32463
32464         * TreeView.cs: Allow the scrollbars to be reset with negative
32465         values.
32466         - Don't add scrollbars to negative sized windows.
32467
32468 2005-09-23  Jackson Harper  <jackson@ximian.com>
32469
32470         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32471         old Mono.Posix. Also remove some stray code that shouldn't have
32472         been committed.
32473
32474 2005-09-23  Jackson Harper  <jackson@ximian.com>
32475
32476         * TreeView.cs: Attempt at proper sizing of the horizontal
32477         scrollbar. Also don't resize the scrollbars unless they are
32478         visible.
32479
32480 2005-09-23  Jackson Harper  <jackson@ximian.com>
32481
32482         * TreeView.cs: We don't need to expand the invalid area when the
32483         selection changes, as this is all drawn in the node's bounding
32484         box. The area needs to be expanded (previous typo was contracting
32485         it) when the focus rect moves.
32486
32487 2005-09-23  Jackson Harper  <jackson@ximian.com>
32488
32489         * TreeView.cs: Display the selection box under the correct
32490         circumstances. We were rendering white text with no selection box
32491         before.
32492
32493 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32494
32495         * TextControl.cs(Split): Now updates selection start/end if it points 
32496           into a line that's being split. Fixes a FIXME and bug #75258
32497
32498 2005-09-23  Jackson Harper  <jackson@ximian.com>
32499
32500         * Binding.cs:
32501         * ListControl.cs: Don't use the path when retrieving binding
32502         managers from the binding context. My bat sense tells me that the
32503         path is only used on insertion.
32504
32505 2005-09-22  Jackson Harper  <jackson@ximian.com>
32506
32507         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32508
32509 2005-09-22  Jackson Harper  <jackson@ximian.com>
32510
32511         * Splitter.cs: There are special cursors used for splitting.
32512         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32513
32514 2005-09-22  Jackson Harper  <jackson@ximian.com>
32515
32516         * Splitter.cs: Change the cursor appropriately when the splitter
32517         is moused over, so the user actually knows there is a splitter
32518         there.
32519
32520 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32521
32522        * Label.cs : Fix ToString method to give same output as MS.NET
32523
32524 2005-09-22  Jackson Harper  <jackson@ximian.com>
32525
32526         * TreeView.cs: Create the scrollbars when the handle is created
32527         and add them right away, just make them invisble. Also account for
32528         the window being shrunk vertically to the point that the vert
32529         scrollbar needs to be added.
32530         - Remove some 0.5 adjustments to get around anti aliasing issues.
32531         
32532 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32533          
32534         * MainMenu.cs: Fixes default value
32535         * MenuItem.cs: Fixes default value
32536
32537 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32538
32539         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32540
32541 2005-09-21  Jackson Harper  <jackson@ximian.com>
32542
32543         * Control.cs: Don't try to set the border style on the window if
32544         it hasn't been created. When the window is created the border
32545         style will be used.
32546
32547 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32548
32549         * Control.cs (Update): Don't call XplatUI if we don't have a
32550           window handle yet
32551
32552 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32553
32554         * ContainerControl.cs: Instead of throwing an exception, print
32555           a one-time warning about Validate not being implemented
32556         * XplatUIWin32.cs: Removed debug output
32557
32558 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32559
32560         * Control.cs: Only set XplatUI background if we expect the windowing
32561           system to handle the background. This stops controls that draw their
32562           own background from flickering
32563
32564         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32565           creation. This allows, amongst other things, using MWF X11 windows 
32566           with OpenGL.
32567
32568 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32569
32570         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32571           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32572           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32573           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32574           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32575           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32576           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32577           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32578           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32579           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32580           GridColumnStylesCollection.cs, 
32581           IDataGridColumnStyleEditingNotificationService.cs,
32582           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32583           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32584           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32585           TreeNodeCollection.cs, AmbientProperties.cs, 
32586           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32587           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32588           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32589           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32590           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32591           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32592           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32593           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32594           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32595           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32596           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32597           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32598           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32599           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32600           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32601           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32602           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32603           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32604           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32605           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32606           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32607           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32608           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32609           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32610           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32611           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32612           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32613           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32614           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32615           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32616           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32617           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32618           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32619           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32620           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32621           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32622           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32623
32624 2005-09-21  Jackson Harper  <jackson@ximian.com>
32625
32626         * TreeNode.cs: Call Before/After Expand not Collapse when
32627         expanding.
32628
32629 2005-09-20  Jackson Harper  <jackson@ximian.com>
32630         
32631         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32632
32633 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32634          
32635         * ListViewItem.cs:
32636                 - Fixes bug 76120
32637                 - Fixes proper storing of subitems
32638                 - Fixes not updated items
32639
32640 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32641
32642         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32643           things if our window handle isn't created yet. Also disabled 
32644           debug for TextBoxBase
32645
32646 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32647
32648         * MenuAPI.cs: Remove filtering of events to allow menu usage
32649
32650 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32651
32652         * Cursor.cs: Allow null to be passed to Cursor.Current.
32653
32654 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32655
32656         * ThemeWin32Classic.cs:
32657           - Change some private methods/fields to protected virtual so that 
32658             they can be accessed and overriden in derived classes
32659           - First refactoring of some methods. Derived themes now don't 
32660             need to duplicate the complete code from ThemeWin32Classic
32661         * ThemeNice.cs:
32662           - Added nice StatusBar
32663           - Derive from ThemeWin32Classic and not Theme
32664           - Removed duplicate ThemeWin32Classic code
32665
32666 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32667
32668         * Control.cs (ControlCollection.Add): If the value null is passed
32669         the control is ignored. 
32670
32671         Optimize this loop.
32672
32673 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32674
32675         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32676           PostQuitMessage state.
32677         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32678
32679 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32680
32681         * Application.cs: Our constructor will never get called, move 
32682           initialization to fields; fixes bug #75933
32683
32684 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32685
32686         * FileDialog.cs :
32687                 - Allow files to be selected properly using file name
32688                 combo box.
32689                 - Add ability to change diretory (absolute / relative)
32690                 using file name combo box.
32691
32692 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32693          
32694         * ListBox.cs: 
32695                 - Fixes Multicolumn listboxes item wrong calculations
32696                 - Allows to click when only one item is in the listbox
32697                 - Fixes crash when no items using keyboard navigation
32698
32699 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32700
32701         * ComboBox.cs: Reverted almost everything from the latest patch which
32702           broke ComboBox
32703
32704 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32705         
32706         * ToolTip.cs:
32707                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32708         * ComboBox.cs:
32709                 - When DropDownStyle is Simple, it does not show scrollbar 
32710                 to the last item of the list.
32711                 - When DropDownStyle is Simple, it crashed when the list was 
32712                 scrolled down with the down cursor key.
32713                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32714                 selected item was not shown.
32715                 - The position of the selected item was not preserved when 
32716                 the next dropdown happened.
32717         * ThemeWin32Classic.cs:
32718                 - Items were wrapped at the right end.
32719         * CheckedListBox.cs:
32720                 - Fixed Add method
32721         * ListBox.cs:
32722                 - Items should be fully shown.
32723                 - When resizing and vertical scrollbar disappeared, the item 
32724                 of index 0 should be on the top of the list.
32725                 - GetItemRectangle should consider the size of ver. scrollbar
32726         * StatusBar.cs:
32727                 - SizingGrip area should not be allocated when it is not 
32728                 displayed.
32729                 - Now it reflects MinWidth of the containing panel and 
32730                 fixed a crash that happens when its width becomes so small.
32731
32732 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32733
32734         * CheckedListBox.cs: Fixes bug 76028
32735         * ListBox.cs: Fixes bug 76028
32736
32737 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32738
32739         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32740         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32741
32742 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32743
32744         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32745
32746 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32747
32748         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32749
32750 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32751
32752         * IRootGridEntry.cs: Added
32753         * PropertyGridCommands.cs: Added
32754         * PropertiesTab.cs: Added missing methods and property
32755         * PropertyGridView.cs: Made class internal
32756         * PropertyGridTextBox.cs: Made class internal
32757
32758 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32759
32760         * MimeIcon.cs: Try to check some other environment variables
32761           if "DESKTOP_SESSION" returns "default"
32762
32763 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32764
32765         * ThemeNice.cs: Corrected background colors (e.g. menus)
32766         * ColorDialog.cs: Use correct background colors for controls
32767
32768 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32769
32770         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32771
32772 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32773
32774         * RichTextBox.cs: Added initial implementation
32775         * lang.cs: Removed. Was accidentally checked in long time ago
32776         * TODO: Removed. Contents were obsolete
32777
32778 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32779                                                                                 
32780         * PropertiesTab.cs : Added
32781
32782 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32783                                                                                 
32784         * PropertyGrid.cs : Update
32785         * PropertyGridView.cs : Update
32786         * System.Windows.Forms.resx : Added images and strings
32787
32788 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32789
32790         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32791  
32792 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32793
32794         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32795           a busy loop right after the Ungrab the X11 display is otherwise 
32796           blocked
32797
32798 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32799
32800         * ThemeWin32Classic.cs: Optimise the use of clipping
32801
32802 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32803
32804         * DataGrid.cs: fixes recursion bug
32805
32806 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32807
32808         * ThemeNice.cs: 
32809           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32810           - Cleanup
32811
32812 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32813
32814         * ThemeNice.cs: Draw nice ProgressBars
32815
32816 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32817
32818         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32819
32820         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32821         bug finder.
32822
32823 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32824
32825         * ThemeNice.cs:
32826           - Added nicer menu drawing
32827           - Updated DrawTab
32828           - some refactoring
32829
32830 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32831
32832         * CreateParams.cs (ToString): Made output match MS
32833         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32834             handle is already created (to avoid forcing window creation)
32835         * XplatUIX11.cs: Set window text to caption after creating window,
32836           in case Text was set before window was created
32837         * Form.cs: Use this.Text instead of a static string as caption
32838
32839 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32840
32841         * NotifyIcon.cs: Don't set the window to visible; this screws
32842           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32843           OnPaint without a bitmap)
32844         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32845           happen very often anyway; we could add the check to the WM_PAINT 
32846           event generation code
32847
32848 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32849
32850         * NotifyIcon.cs: Fill the icon area with a background color, to 
32851           avoid 'residue' when transparent icons are drawn
32852         * XplatUIX11.cs:
32853           - Handle whole_window == client_window when destroying windows
32854           - SystrayAdd(): Set client_window to whole_window value to
32855             get mouse and other events passed to NotifyIcon
32856
32857 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32858
32859         * Form.cs: Set proper default for Opacity property
32860         * NotifyIcon.cs:
32861           - ShowSystray(): Don't bother creating telling the OS
32862             about the systray item if no icon is provided
32863           - Now handles WM_NCPAINT message to deal with whole/client window
32864             split
32865           - Create window as visible to not get caught by Expose optimization
32866         * Hwnd.cs: Removed debug message
32867         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32868           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32869             PaintEventStart/End to use new client argument
32870         * TextBoxBase.cs:
32871           - Commented out debug messages
32872           - Switched PaintEventStart/End to use new client argument
32873         * XplatUI.cs: Added client window bool to PaintEventStart()/
32874           PaintEventEnd() calls, to support drawing in non-client areas
32875         * XplatUIDriver.cs: 
32876           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32877             calls, to support drawing in non-client areas
32878           - Added conditional compile to allow using MWF BeginInvoke 
32879             on MS runtime
32880         * XplatUIX11.cs:
32881           - Added some conditional debug output
32882           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32883             whole/client window split
32884           - Implemented handling of client argument to PaintEventStart()/End()
32885         * Control.cs:
32886           - Throw exception if BeginInvoke() is called and the window handle
32887             or one of the window's parent handles is not created
32888           - Added conditional compile to allow using MWF BeginInvoke on
32889             MS runtime
32890           - get_Parent(): Only sets parent if handle is created. This avoids
32891             forcing window handle creation when parent is set.
32892           - Now fires Layout and Parent changed events in proper order
32893           - Switched to use Handle instead of window.Handle for Z-Order setting,
32894             the get_Parent() patch above causes us to possibly get null for 'window'
32895           - Implemented handling of client argument to PaintEventStart()/End()
32896           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32897             default handling)
32898           - Now sends a Refresh() to all child windows when Refresh() is called
32899
32900 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32901
32902         * Form.cs: Added (non-functional) Opacity property
32903         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32904
32905 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32906         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32907           use export MONO_THEME=nice to activate it.
32908           Currently supported controls:
32909           - Button
32910           - ComboBox
32911           - ScrollBar
32912           - TabControl (TabAlignment.Top only, other will follow)
32913         * ThemeEngine.cs: Add theme nice
32914         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32915           if enabled
32916
32917 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32918
32919         * Splitter.cs: Resize docked control and its neighbor.
32920
32921 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32922         -- Making Windows with Menus layout correctly --
32923         * Form.cs : The first leg of the fix
32924                 Menu setter - adjust Client Size as needed to make space for the menu
32925                 SetClientSizeCore - doesn't call base version to be able to pass the 
32926                         menu handle to XplatUI.CalculateWindowRect
32927         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32928         * XplatUIX11.cs: The critical second leg of the fix
32929                 GetWindowPos needs to use a recalculated client_rect
32930                 so that resizing the window doesn't break layout of child controls. 
32931                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32932                 Lots of \t\n killed
32933
32934 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32935
32936         * Label.cs: Now properly recalculates width and height on Font and Text
32937           changes if AutoSize is set
32938
32939 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32940         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32941
32942 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32943
32944         * ImageList.cs: Makes ToString method compatible with MS
32945
32946 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32947
32948         * MenuAPI.cs: fixes bug 75716
32949
32950 2005-08-11 Umadevi S <sumadevi@novell.com>
32951         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32952
32953 2005-08-11 Umadevi S <sumadevi@novell.com>
32954         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32955
32956 2005-08-10  Umadevi S <sumadevi@novell.com>
32957         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32958
32959 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32960
32961         * Menu.cs: fixes bug 75700
32962         * MenuAPI.cs: fixes navigation issues
32963
32964 2005-08-09  Umadevi S <sumadevi@novell.com>
32965         * CheckedListBox.cs - simple fix for GetItemChecked.
32966
32967 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32968
32969         * ComboBox.cs: Serveral fixes
32970         * ListBox.cs: Serveral fixes
32971
32972 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32973
32974         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32975         * ListBox.cs: Fixes FindString methods
32976
32977 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32978
32979         * DataGrid.cs: fixes bugs exposed by new tests
32980
32981 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32982
32983         * Mime.cs: Compile Mono assembly references only if compiling
32984           with Mono (Allows to build with VS.Net again)
32985
32986 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32987
32988         * Control.cs (PaintControlBackground): Draw background image
32989         corrrectly.
32990         (CheckForIllegalCrossThreadCalls): Stubbed.
32991         
32992         * Form.cs (OnCreateControl): Center when should be centered.
32993         
32994         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32995
32996 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32997
32998         * Binding.cs: Binding to properties should be case unsensitive
32999
33000 2005-07-18 vlindos@nucleusys.com
33001
33002         * DataGrid.cs: fixes setmember order
33003
33004 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
33005
33006         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
33007         * FileDialog.cs: FileDialog is now resizable and uses the new
33008           MimeIconEngine
33009
33010 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
33011
33012         * DataGridTextBoxColumn.cs: default value
33013         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
33014         * GridTableStylesCollection.cs: fixes checking MappingName
33015         * DataGridDrawingLogic.cs: fixes drawing logic issues
33016         * DataSourceHelper.cs: rewritten to make compatible with more data sources
33017         * DataGrid.cs: fixes    
33018
33019 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
33020
33021         * MimeGenerated.cs: Use case sensitive comparer for
33022           NameValueCollections
33023
33024 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
33025
33026         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
33027         * ThemeWin32Classic.cs: bug fixes, code refactoring
33028         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
33029         * DataGrid.cs: bug fixes, code refactoring
33030         * DataGridTextBox.cs: bug fixes, code refactoring
33031         * DataGridColumnStyle.cs:  bug fixes, code refactoring
33032         * Theme.cs:  bug fixes, code refactoring
33033
33034 2005-07-01  Peter Bartok  <pbartok@novell.com> 
33035
33036         * TextControl.cs: Quick fix for the reported crash on ColorDialog
33037           and other text box usage
33038
33039 2005-07-01  Jackson Harper  <jackson@ximian.com>
33040
33041         * TabControl.cs: Make sure the bottom of the tab covers the pages
33042         border.
33043
33044 2005-06-30  Peter Bartok  <pbartok@novell.com> 
33045
33046         * Form.cs (ShowDialog): Assign owner of the dialog
33047         * TextBoxBase.cs: Always refresh caret size when deleting, caret
33048           might have been moved to a tag with different height
33049
33050 2005-06-30  Jackson Harper  <jackson@ximian.com>
33051
33052         * Form.cs: Don't create an infinite loop when setting focus
33053         * MenuItem.cs: Don't dirty the parents if we don't have any
33054
33055 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
33056
33057         * LibSupport.cs: Rename
33058
33059 2005-06-29  Peter Bartok  <pbartok@novell.com>
33060
33061         * TextBoxBase.cs: Re-align caret after deleting a character
33062         * TextControl.cs:
33063           - DeleteChars(): Ensure that tag covers the provided position
33064           - StreamLine(): Drop reference for dropped tag
33065
33066 2005-06-29  Peter Bartok  <pbartok@novell.com> 
33067
33068         * TextControl.cs: 
33069           - Selections now work properly, anchoring at the initial location
33070             and properly extending in either direction (SetSelectionToCaret(),
33071             SetSelectionStart() and SetSelectionEnd())
33072           - No longer redraws the whole control on selection change, now
33073             calculates delta between previous and new selection and only
33074             invalidates/redraws that area
33075           - Fixed FindPos() math off-by-one errors
33076           - Changed DeleteChars() to verify the provided tag covers the
33077             provided position, selections may have a tag that doesn't cover
33078             the position if the selection is at a tag border
33079           - Fixed off-by-one errors in DeleteChars()
33080           - Added missing streamlining check in DeleteChars() to remove
33081             zero-length tags
33082           - Implemented Invalidate() method, now properly calculates exposures
33083             between two given lines/positions
33084           - Implemented SetSelection()
33085           - Obsoleted and removed FixupSelection()
33086           - Improved RecalculateDocument() logic, removing code duplication
33087
33088 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33089
33090         * LibSupport.cs: changes to match different input/output arguments.
33091
33092 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33093
33094         * LibSupport.cs: added libsupport.so init routine.
33095
33096 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
33097         
33098         * ControlBindingsCollection.cs
33099                 - Throws an exception on null datasource when adding
33100                 - Checks for duplicated bindings when adding
33101
33102 2005-06-28  Jackson Harper  <jackson@ximian.com>
33103
33104         * TreeView.cs (OnKeyDown): Support left and right properly
33105         (navigates as well as expanding and collapsing.
33106         - Add support for Multiply, this expands all the selected nodes
33107         children.
33108         - Fix some tabbing.
33109
33110 2005-06-28  Jackson Harper  <jackson@ximian.com>
33111
33112         * TreeView.cs: Implement keyboard navigation, currently supports,
33113         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33114         support for toggling checkboxes with the space bar.
33115
33116 2005-06-28  Jackson Harper  <jackson@ximian.com>
33117
33118         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33119         tree.
33120
33121 2005-06-28  Jackson Harper  <jackson@ximian.com>
33122
33123         * TreeView.cs: Add missing event.
33124
33125 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33126
33127         * TextControl.cs:
33128           - Made line ending size configurable (now allows for counting 
33129             lineendings as \n or \r\n)
33130           - Added margin to viewport to keep caret visible on right side
33131           - Fixed translation routines for line/pos to documentpos to consider
33132             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33133           - Fixed some line-endings to be unix style
33134           - Fixed Document.FormatText to perform it's calculations 1-based
33135           - Added descriptions for a few methods that might otherwise get 
33136             used wrong
33137           - Added NOTE section with some basic conventions to remember at 
33138             the top of the file
33139           - Major fixup for RichTextBox selection drawing:
33140             * Fixed crashes when multiple tags on a single line were selected
33141             * fixed selection box drawing not overlaying text
33142             * fixed bogus offset calculation for tags not starting at index 1
33143             * Switched behaviour from using multiple Substrings of a 
33144               StringBuilder.ToString() to using multiple 
33145               StringBuilder.ToString(start, length) statements, hoping this is
33146               faster (kept original version commented out in the code, in case
33147               original version was faster)
33148         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33149           alignment != Left
33150         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33151           call it as well
33152
33153 2005-06-27  Jackson Harper  <jackson@ximian.com>
33154
33155         * TabControl.cs: Move to the left and right with the arrow
33156         keys. These keys don't cycle beyond first and last like
33157         tab. Refresh all the tabs when scrolling them to the left or
33158         right.
33159
33160 2005-06-27  Jackson Harper  <jackson@ximian.com>
33161
33162         * TabControl.cs:
33163           - ToString: Added method
33164           - CreateParams: Remove TODO and comment
33165           - OnKeyDown: Cycle through bounds properly.
33166           - SelectedIndex: Scroll to the right or left if we need to
33167           display the newly selected tab.
33168
33169 2005-06-23  Jackson Harper  <jackson@ximian.com>
33170
33171         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33172         set.
33173
33174 2005-06-23  Jackson Harper  <jackson@ximian.com>
33175
33176         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33177         CTRL-SHIFT-TAB, and HOME, END are there any others?
33178
33179 2005-06-23  Jackson Harper  <jackson@ximian.com>
33180
33181         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33182
33183 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33184         
33185         * DataGridTextBoxColumn.cs: fixes and enhancements
33186         * ThemeWin32Classic.cs: fixes and enhancements
33187         * DataGridBoolColumn.cs:  fixes and enhancements
33188         * DataGridDrawingLogic.cs:  fixes and enhancements
33189         * CurrencyManager.cs: fixes and enhancements
33190         * DataGrid.cs: fixes and enhancements
33191         * DataGridColumnStyle.cs:  fixes and enhancements
33192
33193 2005-06-22  Jackson Harper  <jackson@ximian.com>
33194
33195         * TabControl.cs: Add some missing methods that just call into the
33196         base. Make the TabPageCollection's IList interface behave in the
33197         same manner as the MS implementation.
33198
33199 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33200
33201         * TextControl.cs: Added sanity check
33202         * TextBoxBase.cs: 
33203           - Fixed wrapping behaviour, don't set wrap on single line controls
33204             (this fixes the breakage of colordialog introduced in an earlier
33205              checkin)
33206           - Added rudimentary support for autoscrolling right-aligned controls
33207             (still needs fixing, also, center alignment scroll is missing)
33208
33209 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33210         
33211         * ScrollBar.cs: Fixes thumbpos on Maximum values
33212
33213 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33214         
33215         * PropertyGridView.cs: Pass context information to UITypeEditors 
33216
33217 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33218
33219         * TextBoxBase.cs:
33220           - Now calling PositionCaret with absolute space coordinates
33221           - Enabled vertical scrolling
33222           - Better tracking of scrollbar changes, tied into WidthChange
33223             event
33224           - Improved cursor tracking
33225           - Removed debug output
33226         * TextControl.cs:
33227           - PositionCaret coordinates are now works in absolute space, not 
33228             the canvas
33229           - Improved tracking of document size
33230           - Added events for width and height changes
33231
33232 2005-06-21  Peter Bartok  <pbartok@novell.com>
33233
33234         * Form.cs: Set focus to active control when form is activated
33235         * TextControl.cs: 
33236           - Added word-wrap functionality to RecalculateLine() 
33237           - Added some short function descriptions for VS.Net to aid in
33238             writing dependent controls
33239           - Added Caret property, returning the current coords of the caret
33240           - Added ViewPortWidth and ViewPortHeight properties
33241           - Added Wrap property
33242           - Added CaretMoved event
33243           - Removed some old debug code
33244           - Split() can now create soft splits
33245           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33246           - Added method to format existing text
33247           - Fixed size/alignment calculations to use viewport
33248           - RecalculateDocument now can handle changing line-numbers while
33249             calculating lines
33250
33251         * TextBox.cs:
33252           - Added some wrap logic, we don't wrap if alignment is not left
33253           - Added casts for scrollbar var, base class switched types to
33254             also support RichTextBoxA
33255           - Implemented handling of scrollbar visibility flags
33256
33257         * TextBoxBase.cs:
33258           - Switched scrollbars type to RichTextBoxScrollBars to support
33259             RichTextBox
33260           - Added tracking of canvas width/height
33261           - Switched scrollbars to be not selectable (to keep focus on text)
33262           - Added central CalculateDocument() method to handle all redraw
33263             requirements
33264           - Added ReadOnly support
33265           - Added WordWrap support
33266           - Fixed handling of Enter key (we now treat it as a DialogKey)
33267           - Fixed caret positioning when h or v scroll is not zero
33268           - Fixed placing/generation of vertical scrollbar
33269           - Added CalculateScrollBars() method to allow updating scrollbar
33270             limits and visibility
33271           - Fixed handling of horizontal scroll
33272           - Added handling of vertical scroll
33273           - Implemented auto-'jump' when caret moves to close to a left or
33274             right border and there is text to be scrolled into view (currently
33275             there's the potential for a stack overflow, until a bug in
33276             scrollbar is fixed)
33277
33278 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33279         
33280         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33281
33282 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33283
33284         * Mime.cs:
33285         - added inodes.
33286         - return application/x-zerosize for files with size zero
33287           (if no extension pattern matches).
33288         - check matches collection for strings too.
33289         - return only the first mime type if the name value
33290           collection has more than one mime type.
33291
33292 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33293         
33294         * PropertyGrid.cs: Cleaned up some TODOs
33295         * PropertyGridView.cs: Added support for UITypeEditors
33296
33297 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33298         
33299         * DataGrid.cs: clears cached value
33300
33301 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33302
33303         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33304         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33305         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33306         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33307         
33308 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33309
33310         * ThemeWin32Classic.cs: fixes colour
33311
33312 2005-06-15  Peter Bartok  <pbartok@novell.com>
33313
33314         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33315         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33316         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33317         * Control.cs: Added some MWFCategory and MWFDescription attributes
33318         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33319
33320 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33321
33322         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33323         usage
33324
33325 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33326
33327         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33328         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33329         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33330         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33331         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33332         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33333
33334 2005-06-13  Jackson Harper  <jackson@ximian.com>
33335
33336         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33337         isn't printed when the user enables dropping. (X11 does accept
33338         drops).
33339         
33340 2005-06-13  Jackson Harper  <jackson@ximian.com>
33341
33342         * TreeView.cs: Remove some TODOS.
33343
33344 2005-06-13  Jackson Harper  <jackson@ximian.com>
33345
33346         * Form.cs: Hook into the mdi framework.
33347         * MdiClient.cs: Use the base control collections add method so
33348         parents get setup correctly. Set the default back colour and dock
33349         style.
33350         * MdiChildContext.cs: New class, this bad actor handles an
33351         instance of an MDI window. Right now there is only basic
33352         support. You can drag, close, and resize windows. Minimize and
33353         Maximize are partially implemented.
33354
33355 2005-06-13  Jackson Harper  <jackson@ximian.com>
33356
33357         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33358         freaky when both vals are negative. NOTE: There are probably other
33359         places in XplatUIX11 that this needs to be done.
33360
33361 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33362
33363         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33364         * DataGridColumnStyle.cs: fixes signature
33365
33366 2005-06-12  Jackson Harper  <jackson@ximian.com>
33367
33368         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33369         windows.
33370
33371 2005-06-11  Jackson Harper  <jackson@ximian.com>
33372
33373         * StatusBarPanel.cs: Signature cleanups. Implement
33374         BeginInit/EndInit.
33375
33376 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33377
33378         * DataGridTextBoxColumn.cs: Honors aligment
33379         * GridColumnStylesCollection.cs: Contains is case unsensitive
33380         * GridTableStylesCollection.cs: several fixes
33381         * DataGridTableStyle.cs: default column creation
33382         * DataGridDrawingLogic.cs: fixes
33383         * CurrencyManager.cs: ListName property
33384         * DataGrid.cs: multiple styles support
33385         * DataGridColumnStyle.cs: fixes
33386         
33387
33388 2005-06-10  Peter Bartok  <pbartok@novell.com>
33389
33390         * Control.cs(Select): Moved SetFocus call to avoid potential
33391           loops if controls change the active control when getting focus
33392         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33393           the up/down buttons
33394
33395 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33396
33397         * ImageListConverter.cs: Implemented
33398
33399 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33400
33401         * MonthCalendar.cs: Wired in NumericUpDown control for year
33402
33403 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33404
33405         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33406           DoubleClick events, since they are not meant to be fired.
33407
33408 2005-06-09  Peter Bartok  <pbartok@novell.com>
33409
33410         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33411           Jonathan's standalone controls into MWF, implemented missing
33412           events, attributes and methods; added xxxAccessible classes
33413         * AccessibleObject.cs: Made fields internal so other classes
33414           can change them if needed
33415
33416 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33417
33418         * UpDownBase.cs: Complete implementation
33419         * NumericUpDown.cs: Complete implementation
33420         * DomainUpDown.cs: Complete implementation
33421
33422 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33423
33424         * DataGridTextBoxColumn.cs: drawing fixes
33425         * DataGridCell.cs: fixes ToString method to match MSNet
33426         * DataGridTableStyle.cs: fixes
33427         * DataGridBoolColumn.cs: fixes, drawing
33428         * DataGridDrawingLogic.cs: fixes, new methods
33429         * DataGridTextBox.cs: Keyboard and fixes
33430         * DataGrid.cs:
33431                 - Keyboard navigation
33432                 - Scrolling fixes
33433                 - Row selection (single, multiple, deletion, etc)
33434                 - Lots of fixes
33435         
33436 2005-06-07  Jackson Harper  <jackson@ximian.com>
33437
33438         * ThemeWin32Classic.cs: Clear the background area when drawing
33439         buttons.
33440
33441 2005-06-06  Peter Bartok  <pbartok@novell.com>
33442
33443         * ImageListStreamer.cs: Fixed signature for GetData
33444         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33445         * ComboBox.cs:
33446           - Added missing ChildAccessibleObject class
33447           - Added missing OnXXXFocus overrides, switched to using those
33448             instead of the event handler
33449         * Control.cs:
33450           - Added Parent property for ControlAccessibleObject
33451           - Fixed signatures
33452           - Fixed attributes
33453           - Added ResetBindings()
33454         * ListBindingConverter.cs: Implemented some methods
33455         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33456         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33457         * ContainerControl.cs: Fixed signature, now subscribing to the
33458           ControlRemoved event instead of overriding the handler, LAMESPEC
33459         * CurrencyManager.cs: Added missing attribute
33460         * MonthCalendar.cs: Added missing properties
33461
33462 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33463
33464         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33465         
33466 2005-06-06  Gaurav Vaish and Ankit Jain
33467
33468         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33469         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33470         
33471 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33472
33473         * Control.cs: fixes CreateParams Width / Height.
33474
33475 2005-06-05  Peter Bartok  <pbartok@novell.com>
33476
33477         * Win32DnD.cs: Removed compilation warnings
33478
33479 2005-06-05  Peter Bartok  <pbartok@novell.com>
33480
33481         * Control.cs (CreateParams): Since we don't know if one of the
33482           properties we use is overridden, lets make sure if we fail accessing
33483           we continue with a backup plan
33484
33485 2005-06-05  Peter Bartok  <pbartok@novell.com>
33486
33487         * Win32DnD.cs:
33488           - Removed debug output
33489           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33490             struct
33491           - Plugged resource leak
33492         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33493           MS size
33494
33495 2005-06-05  Peter Bartok  <pbartok@novell.com>
33496
33497         * XplatUIWin32.cs: Removed DnD code
33498         * Win32DnD.cs: Implemented drop source and drop target functionality
33499
33500 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33501
33502         * UpDownBase.cs: remove duplicate addition of event, enable some code
33503         that was commented out.
33504         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33505         Validate input when a key is pressed. It works fine now for every
33506         combination of Hexadecimal. Only missing some drawing love when sharing
33507         space with other controls.
33508
33509 2005-06-04  Peter Bartok  <pbartok@novell.com>
33510
33511         * Control.cs:
33512           - We need to pass a window for DragDrop, so enable callback events
33513           - Added DnD callback events when being a DragSource
33514         * XplatUI.cs (StartDrag): Added window handle argument
33515         * XplatUIDriver.cs (StartDrag): Added window handle argument
33516         * QueryContinueDragEventArgs: Made fields internally accessible so
33517           drivers can set them
33518         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33519           can set them
33520
33521 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33522
33523         * DataGridTextBoxColumn.cs: column text editing
33524         * DataGridTableStyle.cs: Respect columns styles created by the user
33525         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33526         * DataGridBoolColumn.cs: bool column editing
33527         * DataGrid.cs: fixes to scrolling, properties, etc
33528         * DataGridTextBox.cs: handle keyboard
33529         * DataGridColumnStyle.cs: fixes
33530
33531 2005-06-02  Jackson Harper  <jackson@ximian.com>
33532
33533         * ImageListStreamer.cs: Somewhat broken implementation of
33534         GetObjectData. The RLE needs some work to match MS properly.
33535
33536 2005-06-02  Jackson Harper  <jackson@ximian.com>
33537
33538         * X11Dnd.cs: Attempting to keep at least one file in MWF
33539         monostyled.
33540
33541 2005-06-02  Peter Bartok  <pbartok@novell.com>
33542
33543         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33544           that way
33545
33546 2005-06-02  Peter Bartok  <pbartok@novell.com>
33547
33548         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33549         * XplatUI.cs: Added DoDragDrop() method
33550         * XplatUIDriver.cs: Added DoDragDrop() method
33551
33552 2005-06-02  Jackson Harper  <jackson@ximian.com>
33553
33554         * Splitter.cs: Implement BorderStyle.
33555
33556 2005-06-02  Jackson Harper  <jackson@ximian.com>
33557
33558         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33559         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33560         X11 using XDND.
33561
33562 2005-06-02  Peter Bartok  <pbartok@novell.com>
33563
33564         * DataObject.cs:
33565           - Added Data setter
33566           - Fixed broken insertion code for SetData, now also
33567             overwrites any existing entry of the same format name
33568         * Hwnd.cs: Added list of pointers that automatically gets
33569           freed when the window is disposed
33570         * XplatUI.cs: Call driver initialization method when loading
33571           a driver
33572         * Control.cs:
33573           - OnDragLeave takes EventArgs, not DragEventArgs
33574           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33575             supported
33576           - Forces style update when drop state changes
33577         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33578           not perfect since we cannot (yet) call the IDataObject.GetData()
33579           method, we keep getting 0x80004005 error, dunno why)
33580
33581 2005-06-02  Peter Bartok  <pbartok@novell.com>
33582
33583         * DragEventArgs.cs: Make fields internal so we can cache the
33584           object and re-set the fields from XplatUI
33585
33586 2005-06-02  Jackson Harper  <jackson@ximian.com>
33587
33588         * Control.cs: Add some internal methods so the DnD subsystem can
33589         raise DnD events. Also call into the driver when AllowDrop is set.
33590         * XplatUI.cs:
33591         * XplatUIDriver.cs: New method for setting whether or not a window
33592         is allowed to accept drag and drop messages.
33593                 
33594 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33595         
33596         * ScrollBar.cs: Make sure that values sent in Scroll events
33597         are always between Maximum and Minimum.
33598
33599 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33600
33601         * Menu.cs: Call MenuChanged when menuitem visibility has been
33602         changed.
33603         * MenuItem.cs: Rebuild menu when item is (not) visible.
33604         * MainMenu.cs: MainMenu has special MenuChanged.
33605         * Theme.cs: Caption and FrameBorderSize are not fixed.
33606         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33607         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33608         * XplatUIX11.cs,
33609         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33610         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33611
33612 2005-05-30  Jackson Harper  <jackson@ximian.com>
33613
33614         * DataFormat.cs: We can't statically initialize this stuff because
33615         it calls into the xplatui and could create a loop. So we lazy init
33616         it.
33617
33618 2005-05-28  Jackson Harper  <jackson@ximian.com>
33619
33620         * Control.cs: Proper implementation of Product(Name/Version).
33621
33622 2005-05-27  Jackson Harper  <jackson@ximian.com>
33623
33624         * DataObject.cs: Dont crash if no data is found.
33625
33626 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33627         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33628                 as per status page, guessing it should be set to true
33629
33630 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33631
33632         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33633         * DataGridTableStyle.cs: set proper formatting text, def header text
33634         * ThemeWin32Classic.cs: new themable paramaters
33635         * DataGridBoolColumn.cs: paint check box, get data, fixes
33636         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33637         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33638         * DataGridColumnStyle.cs: fixes
33639         * Theme.cs: new themable paramaters
33640                 
33641 2005-05-26  Peter Bartok  <pbartok@novell.com>
33642
33643         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33644
33645 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33646         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33647
33648 2005-05-24  Peter Bartok  <pbartok@novell.com>
33649
33650         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33651           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33652           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33653           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33654           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33655           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33656           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33657           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33658           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33659           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33660           missing attributes, etc
33661         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33662
33663 2005-05-24  Peter Bartok  <pbartok@novell.com>
33664
33665         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33666           when user tries to get help
33667         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33668           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33669           to suppress warnings
33670         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33671           avoid unreachable code warning
33672
33673 2005-05-20  Peter Bartok  <pbartok@novell.com>
33674
33675         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33676
33677 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33678
33679         * DataGridTextBoxColumn.cs: Basic painting methods
33680         * DataGridTableStyle.cs: Set table style in the column
33681         * ThemeWin32Classic.cs: Use Theme for colors
33682         * DataGridDrawingLogic.cs: Implement more drawing
33683         * DataGrid.cs: drawing, theming, enhacements, fixes
33684         * DataGridColumnStyle.cs: fixes, drawing
33685         * Theme.cs: theming for Datagrid
33686
33687 2005-05-20  Peter Bartok  <pbartok@novell.com>
33688
33689         * Cursor.cs: Implemented GetObjectData() method
33690
33691 2005-05-20  Peter Bartok  <pbartok@novell.com>
33692
33693         * Cursors.cs: Added setting of cursor name
33694         * Cursor.cs:
33695           - Implemented constructors
33696           - Implemented Draw and DrawStretched
33697           - Implemented Current property
33698           - Implemented == and != operators
33699           - Implemented Dispose()
33700           - Implemented ToString
33701           - Added missing attributes
33702         * XplatUIX11.cs:
33703           - Added missing reset for OverrideCursor when DoEvents is called
33704           - Fixed creation of cursor, logic was wrong
33705         * XplatUIWin32.cs:
33706           - Added missing reset for OverrideCursor when DoEvents is called
33707           - Fixed creation of cursor, bit arrays were swapped
33708         * Clipboard.cs: Removed obsolete MonoTODO attribute
33709
33710 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33711
33712         * ComboBox.cs: fixes OnSelectedItemChanged
33713         * ControlBindingsCollection.cs: fixes item range check
33714
33715 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33716
33717         * UpDownBase.cs:
33718                 - Calc preferred height properly
33719                 - Implement missing properties
33720                 
33721         * NumericUpDown.cs: Implement missing events
33722
33723 2005-05-19  Jackson Harper  <jackson@ximian.com>
33724
33725         * TabControl.cs: New method that resizes the tab pages before
33726         redrawing them. This as needed as the control is double buffered
33727         and sizing will not be recalculated unless ResizeTabPages is
33728         called.
33729         * TabPage.cs: Set base.Text instead of Text in the constructor so
33730         that UpdateOwner does not get called. Use the new Redraw method of
33731         TabControl instead of Refresh so the sizing is recalculated.
33732         * ThemeWin32Classic.cs: Draw the text for button tabs.
33733
33734 2005-05-19  Jackson Harper  <jackson@ximian.com>
33735
33736         * Control.cs: Paint control background images. Fix typo where
33737         PaintControlBackground was not getting called correctly.
33738
33739 2005-05-19  Peter Bartok  <pbartok@novell.com>
33740
33741         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33742           I can investigate, apparently I broke FileDialog
33743
33744 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33745
33746         * AxHost.cs: Some simple properties.
33747         * Control.cs: window must be accessible after ctor.
33748         * Form.cs: Added TransparencyKey property.
33749         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33750         * XplatUIWin32.cs: SetBorderStyle implemented.
33751
33752 2005-05-18  Peter Bartok  <pbartok@novell.com>
33753
33754         * DataObject.cs: Entries are not global but particular to the
33755           DataObject, now it behaves that way
33756         * XplatUIWin32.cs: Implemented Clipboard methods
33757         * Clipboard.cs: Implemented
33758         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33759         * XplatUIOSX.cs: Updated to final clipboard prototypes
33760         * XplatUIX11.cs: Implemented Clipboard methods
33761         * XplatUIDriver.cs: Updated to final clipboard prototypes
33762         * XplatUIStructs.cs:
33763           - Added BITMAPINFOHEADER struct
33764           - Added ClipboardFormats enum
33765         * X11Structs.cs:
33766           - Added ClipboardStruct
33767           - Added Atom enum items for clipboard types
33768           - Fixed atom types for Selection event structures
33769         * DataFormats.cs:
33770           - Added internal properties and methods for drivers to enumerate
33771             all known formats
33772           - Switched initialization method to allow drivers to assign their
33773             own IDs even for the MS predefined clipboard IDs
33774         * XplatUI.cs: Updated to final clipboard interface
33775
33776 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33777         * PropertyGridView.cs: Fixed compiler warnings.
33778
33779 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33780         * PropertyGrid.cs: Added some event calls
33781         * PropertyGridView.cs: Change drawing code to use double buffering
33782         * PropertyGridTextBox.cs: Changed Text property name
33783         * GridItem.cs: Added Bounds property.
33784         * GridEntry.cs: Added Bounds property.
33785
33786 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33787
33788         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33789         since GetType() may not return the correct type if the object is
33790         a remoting proxy.
33791
33792 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33793
33794         * TreeNodeCollection.cs: fixes get/set item ranges
33795         
33796 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33797
33798         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33799                 
33800 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33801
33802         * ComboBox.cs: Fix item range comparation
33803         * ListView.cs: Fix item range comparation
33804
33805 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33806
33807         * FontDialog.cs:
33808           - Clear example panel when OnPaint is called
33809           - Better solution for displaying the example panel text
33810           - Select default indexes in the ListBoxes
33811
33812 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33813
33814         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33815
33816 2005-05-11  Peter Bartok  <pbartok@novell.com>
33817
33818         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33819         * SelectionRangeConverter.cs: Implemented
33820         * PropertyGrid.cs: Fixed attribute value
33821         * Control.cs:
33822           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33823           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33824         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33825           that's common to all drivers. First methods to go there are
33826           Sebastien Pouliot's CAS Stack Propagation helper methods
33827         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33828           Sebastien Pouliot for CAS Stack Propagation
33829
33830 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33831
33832         * OSXStructs.cs:
33833           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33834
33835 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33836
33837         * DataGridTextBoxColumn.cs: fixed some members
33838         * GridColumnStylesCollection.cs: indexed column is case insensitive
33839         * DataGridTableStyle.cs: fixes
33840         * ThemeWin32Classic.cs: add new theme parameter
33841         * Theme.cs: add new theme parameter
33842         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33843         * DataGrid.cs: fixes, new internal properties, etc.
33844         * DataGridColumnStyle.cs: allows to set grid value
33845         *
33846
33847 2005-05-10  Peter Bartok  <pbartok@novell.com>
33848
33849         * AccessibleObject.cs:
33850           - Removed MonoTODO attribute on help, method is correct
33851           - Fixed Bounds property
33852         * AxHost.cs: Moved MonoTODO
33853         * ButtonBase.cs: Now setting AccessibleObject properties
33854         * RadioButton.cs: Setting proper AccessibleObject role
33855         * CheckBox.cs: Setting proper AccessibleObject role
33856         * ControlBindingsCollection.cs: Added properties, methods and attributes
33857         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33858           userdefined DataFormats.Format items as well
33859         * ListControl.cs: Removed data_member from the public eye
33860         * OpenFileDialog.cs:
33861           - Made class sealed
33862           - Added missing attributes
33863         * SaveFileDialog.cs: Added missing attributes
33864         * ImageListStreamer.cs: Fixed code that caused warnings
33865         * LinkLabel.cs: Removed unreachable code
33866         * TreeView.cs: Fixed code that caused warnings
33867         * PropertyGridView.cs: Fixed code that caused warnings
33868         * GridColumnStylesCollection.cs: Added missing attributes
33869         * GridTableStylesCollection: Added missing attribute
33870         * PropertyManager: Added .ctor
33871         * SecurityIDType: Added
33872         * DataObject.cs: Implemented class
33873         * LinkArea.cs: Added missing attribute
33874
33875 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33876
33877         * RadioButton.cs: call base method to allow to fire OnClick event
33878         * UpDownBase.cs: OnMouseUp call base method
33879         * CheckedListBox.cs: call base method before returning
33880         * TrackBar.cs: call base method before returning
33881         
33882
33883 2005-05-10  Peter Bartok  <pbartok@novell.com>
33884
33885         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33886           for messages
33887
33888 2005-05-10  Peter Bartok  <pbartok@novell.com>
33889
33890         * DataFormats.cs: Implemented
33891         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33892           XplatUIX11.cs: Added Clipboard APIs
33893         * XplatUIWin32.cs: Implemented Clipboard APIs
33894         * FolderBrowserDialog.cs: Added missing event, attributes
33895
33896 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33897
33898         * CheckBox.cs: call base method to allow to fire OnClick event
33899
33900 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33901
33902         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33903
33904 2005-05-06  Peter Bartok  <pbartok@novell.com>
33905
33906         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33907         * Screen.cs: Implemented
33908         * HelpNavigator.cs: Added
33909         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33910           property
33911         * HelpProvider.cs: Implemented all we can do until we have a CHM
33912           help library (which means that "What's This" does work now)
33913
33914 2005-05-06  Jackson Harper  <jackson@ximian.com>
33915
33916         * XplatUIX11.cs: Fix waking up the main loop.
33917                 
33918 2005-05-05  Peter Bartok  <pbartok@novell.com>
33919
33920         * XplatUI.cs: Updated revision
33921         * Form.cs: Removed enless loop
33922         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33923         * Label.cs (OnPaint): Added call to base.OnPaint()
33924         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33925         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33926         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33927         * AxHost.cs: Added
33928         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33929         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33930           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33931           reuse of ToolTipWindow by other controls
33932         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33933         * XplatUIX11.cs: Now clipping drawing area (experimental)
33934         * PictureBox.cs: Moved base.OnPaint() call to end of method
33935         * Theme.cs: Fixed ToolTip abstracts to match new format
33936         * ErrorProvider.cs: Implemented
33937
33938 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33939
33940         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33941         * LinkLabel.cs:
33942                 - Adds cursors
33943                 - Handles focus
33944                 - Implements LinkBehavior
33945                 - Fixes many issues
33946
33947 2005-05-03  Jackson Harper  <jackson@ximian.com>
33948
33949         * ListView.cs: Calculate the scrollbar positioning on resize and
33950         paint, so they get put in the correct place.
33951
33952 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33953
33954         * ColorDialogs.cs: The small color panels are now handled by
33955           SmallColorControl. This fixes drawing of the focus rectangle
33956           and adds a 3D border.
33957
33958 2005-05-03  Peter Bartok  <pbartok@novell.com>
33959
33960         * Control.cs: Modified version of Jonathan Chamber's fix for
33961           double-buffering
33962
33963 2005-05-03  Jackson Harper  <jackson@ximian.com>
33964
33965         * ListView.cs: Remove redraw variable. Control now handles whether
33966         or not a redraw needs to be done, and will only raise the paint
33967         event if redrawing is needed.
33968
33969 2005-05-03  Jackson Harper  <jackson@ximian.com>
33970
33971         * Splitter.cs: No decorations for the splitter form. Cache the
33972         hatch brush.
33973
33974 2005-05-03  Jackson Harper  <jackson@ximian.com>
33975
33976         * TreeView.cs: Use dashed lines to connect nodes. Use the
33977         ControlPaint method for drawing the focus rect instead of doing
33978         that in treeview.
33979
33980 2005-05-02  Peter Bartok  <pbartok@novell.com>
33981
33982         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33983
33984 2005-04-29  Jackson Harper  <jackson@ximian.com>
33985
33986         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33987         entire image buffer. Just clear the clipping rectangle.
33988
33989 2005-04-29  Jackson Harper  <jackson@ximian.com>
33990
33991         * ThemeWin32Classic.cs: Don't draw list view items that are
33992         outside the clipping rectangle.
33993
33994 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33995
33996         * ListBox.cs: added horizontal item scroll
33997
33998 2005-04-29  Jackson Harper  <jackson@ximian.com>
33999
34000         * ThemeWin32Classic.cs: Remove some old debug code that was
34001         causing flicker with the new double buffering code.
34002
34003 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
34004
34005         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
34006         behave like combobox and comboboxlist (still not sure if this is
34007         correct though).
34008
34009 2005-04-28  Jackson Harper  <jackson@ximian.com>
34010
34011         * ThemeWin32Classic.cs: Don't fill the middle of progress
34012         bars. This fills areas outside of the clip bounds that don't need
34013         to be filled.
34014
34015 2005-04-28  Jackson Harper  <jackson@ximian.com>
34016
34017         * Control.cs: Don't expose functionality to touch the image buffers.
34018         * ProgressBar.cs:
34019         * ListView.cs: We do not need to (and no longer can) manipulate
34020         the image buffers directly. All of this is handled by Control.
34021
34022 2005-04-28  Peter Bartok  <pbartok@novell.com>
34023
34024         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
34025           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
34026           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
34027
34028 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34029
34030         * Combobox:
34031                 - Adjust control's height for non-simple comboboxes (bug fix)
34032                 - Remove dead code
34033         * MenuAPI.cs: remove unused var
34034         * ScrollBar.cs: remove unsed var
34035                  
34036         * ListBox.cs: unselect items when clearing
34037
34038 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
34039
34040         * ListControl.cs: honors OnPositionChanged and default Selected Item
34041         * ListBox.cs: unselect items when clearing
34042
34043 2005-04-27  Jackson Harper  <jackson@ximian.com>
34044
34045         * X11Keyboard.cs: Initialize a default keyboard and give a warning
34046         if a "correct" keyboard is not found. This will make us not crash,
34047         but might give some users bad keyboard layouts...seems to be the
34048         same thing rewind does.
34049
34050 2005-04-27  Jackson Harper  <jackson@ximian.com>
34051
34052         * BindingManagerBase.cs: Attach the current/position changed
34053         handlers to their respective events.
34054
34055 2005-04-27  Jackson Harper  <jackson@ximian.com>
34056
34057         * Control.cs: Make sure that the first WM_PAINT does a full draw,
34058         not just a blit.
34059         * ThemeWin32Classic.cs: Don't fill the background for picture
34060         boxes. This could overright user drawing.
34061         * ComboBox.cs: Just fill the clipping rect not the entire client
34062         rect when drawing the background. This prevents pieces of the
34063         image buffer from getting overwritten and is theoretically faster.
34064
34065 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
34066
34067         * ComboBox.cs: Databinding support fixes, fire missing events
34068         * ListControl.cs: implement missing methods and properties, fixes
34069         * ThemeWin32Classic.cs: Databiding support on Drawing
34070         * CheckedListBox.cs: Databinding support fixes, fire missing events
34071         * ListBox.cs: Databinding support fixes, fire missing events
34072         
34073 2005-04-25  Peter Bartok  <pbartok@novell.com>
34074
34075         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
34076
34077 2005-04-25  Jackson Harper  <jackson@ximian.com>
34078
34079         * TreeView.cs: Use the horizontal scrollbars height not width when
34080         determining how much of the client area is available.
34081
34082 2005-04-25  Jackson Harper  <jackson@ximian.com>
34083
34084         * Control.cs: Double buffering is handled differently now. As per
34085         the spec, the extra buffer is created in the WM_PAINT message and
34086         passed down to the control's drawing code.
34087         * GroupBox.cs:
34088         * Label.cs:
34089         * CheckBox.cs:
34090         * ProgressBar.cs:
34091         * RadioButton.cs:
34092         * ColorDialog.cs:
34093         * ComboBox.cs:
34094         * PropertyGridView.cs:
34095         * UpDownBase.cs:
34096         * MessageBox.cs:
34097         * MenuAPI.cs:
34098         * ListView.cs:
34099         * ButtonBase.cs:
34100         * SizeGrip.cs:
34101         * ScrollBar.cs:
34102         * ListBox.cs:
34103         * TrackBar.cs:
34104         * ToolBar.cs:
34105         * PictureBox.cs:
34106         * DateTimePicker.cs:
34107         * StatusBar.cs:
34108         * TreeView.cs: Update to new double buffering system.
34109         * MonthCalendar.cs: Uncomment block, as Capture is now
34110         working. Update to new double buffering
34111         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34112         * PaintEventArgs.cs: New internal method allows us to set the
34113         graphics object. This is used for double buffering.
34114         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34115         rectangle. The internal paint_area var has been removed from
34116         StatusBar. The clipping rect should be used instead.
34117         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34118         * TabPage.cs: The RefreshTabs method was removed, so just call the
34119         tab controls Refresh method now.
34120         * TabControl.cs: Update to new double buffering. Make sure the
34121         handle is created before sizing the tab pages, otherwise we will
34122         get stuck in a loop.
34123
34124 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34125
34126         * LinkLabel.cs: Fix typo, bug #74719; patch
34127           from Borja Sanchez Zamorano
34128
34129 2005-04-22  Jackson Harper  <jackson@ximian.com>
34130
34131         * TreeNode.cs: Implement Handle stuff.
34132         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34133
34134 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34135
34136         * DataGridTextBoxColumn.cs: call base constructors, fixes
34137         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34138         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34139         * DataGridTableStyle.cs: implements create default column styles
34140         * DataGridBoolColumn.cs: which types can handle
34141         * DataGrid.cs: missing methods, fixes, new functionality
34142         * DataGridColumnStyle.cs: fixes
34143
34144 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34145         * FolderBrowserDialog.cs:
34146         - Use a thread to fill the TreeView
34147         - Adjusted some sizes
34148
34149 2005-04-19  Peter Bartok  <pbartok@novell.com>
34150
34151         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34152           property. Fixes #74360.
34153
34154 2005-04-19  Jackson Harper  <jackson@ximian.com>
34155
34156         * XEventQueue.cs: Lock when getting the lockqueue size.
34157         * PictureBox.cs: Call base OnPaint
34158         
34159 2005-04-19  Peter Bartok  <pbartok@novell.com>
34160
34161         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34162           messages were no longer being processed (this broke BeginInvoke)
34163
34164           
34165 2005-04-18  Jackson Harper  <jackson@ximian.com>
34166
34167         * TreeView.cs: buglet that caused node images to get drawn
34168         regardless of whether or not they were in the clipping rectangle.
34169
34170 2005-04-18  Jackson Harper  <jackson@ximian.com>
34171
34172         * CurrencyManager.cs: There are four rules for GetItemProperties:
34173         - If the type is an array use the element type of the array
34174         - If the type is a typed list, use the type
34175         - If the list contains an Item property that is not an object, use
34176         that property
34177         - use the first element of the list if there are any elements in
34178         the list.
34179         
34180 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34181
34182         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34183         click. This handles offsets for scrolling properly and reduces
34184         memory. Also fixed GetNode to not offset now that TopNode works
34185         properly.
34186         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34187         
34188 2005-04-17  Jackson Harper  <jackson@ximian.com>
34189
34190         * CursorConverter.cs: Initial implementation.
34191
34192 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34193
34194         * ListControl.cs: work towards complex data binding support on ListControl
34195         * CurrencyManager.cs: work towards complex data binding support on ListControl
34196         * ListBox.cs: work towards complex data binding support on ListControl
34197
34198
34199 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34200
34201         * GridTableStylesCollection.cs: fixes name and constructor
34202         * DataGridTableStyle.cs: fixes
34203         * DataGridBoolColumn.cs: fixes names and constructors
34204         * DataGrid.cs: define methods and properties. Some init implementations
34205         * DataGridCell.cs: define methods and properties. Some init implementations
34206         * GridTablesFactory.cs: Define methods and properties
34207
34208 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34209
34210         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34211         graphics port changes.  We still want the coordinates in global screen
34212         coordinates.
34213
34214 2005-04-14  Jackson Harper  <jackson@ximian.com>
34215
34216         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34217         check plus minus or checkbox clicks unless those features are enabled.
34218
34219 2005-04-14  Jackson Harper  <jackson@ximian.com>
34220
34221         * TreeView.cs: Add methods for setting the top and bottom visible
34222         nodes. TreeNode::EnsureVisible uses these methods.
34223         * TreeNode.cs: Implement EnsureVisible
34224
34225 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34226
34227         * Form.cs: Pospone menu assignation if the window has not been created yet
34228         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34229         size and position
34230
34231 2005-04-12  Jackson Harper  <jackson@ximian.com>
34232
34233         * TreeView.cs: Set the TopNode properly when scrolling
34234         occurs. This has the added benifit of reducing the amount of
34235         walking that needs to be done when drawing. Also removed an old
34236         misleading TODO.
34237         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34238         
34239 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34240
34241         * Timer.cs: fixes interval setting when the timer is already enabled
34242         
34243 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34244
34245         * FolderBrowserDialog.cs: First approach
34246
34247 2005-04-09  Peter Bartok  <pbartok@novell.com>
34248
34249         * FolderBrowserDialog: Added
34250
34251 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34252
34253         * LinkLabel.cs: move drawing code into the theme
34254         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34255         * Theme.cs: define DrawLinkLabel method
34256
34257 2005-04-05  Jackson Harper  <jackson@ximian.com>
34258
34259         * BindingContext.cs: Use weak references so these bad actors don't
34260         stay alive longer then they need to.
34261
34262 2005-04-05  Jackson Harper  <jackson@ximian.com>
34263
34264         * ListControl.cs: Basic implementation of complex databinding.
34265         * ComboBox.cs:
34266         * ListBox.cs: Add calls to ListControl databinding methods.
34267
34268 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34269
34270         * FileDialog.cs:
34271           - Don't change PopupButtonState to Normal when the
34272             PopupButton gets pressed several times.
34273           - Renamed ButtonPanel to PopupButtonPanel
34274
34275 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34276
34277         * ColorDialog.cs: Use cached objects instead of creating them
34278         * LinkLabel.cs: Use cached objects instead of creating them
34279         * Splitter.cs: Use cached objects instead of creating them
34280         * FontDialog.cs: Use cached objects instead of creating them
34281         * PropertyGridView.cs: Use cached objects instead of creating them
34282         * MessageBox.cs: Use cached objects instead of creating them
34283         * FileDialog.cs: Use cached objects instead of creating them
34284         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34285         * TreeView.cs: Use cached objects instead of creating them
34286         
34287 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34288
34289         * Control.cs: use Equals to compare the font since no == op
34290         * ScrollBar.cs: use Equals to compare the font since no == op
34291
34292 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34293
34294         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34295
34296 2005-04-01  Jackson Harper  <jackson@ximian.com>
34297
34298         * Binding.cs: Implement IsBinding.
34299         * BindingManagerBase.cs:
34300         * PropertyManager.cs:
34301         * CurrencyManager.cs: Add IsSuspended property.
34302
34303 2005-04-01  Jackson Harper  <jackson@ximian.com>
34304
34305         * Binding.cs: Had some IsAssignableFrom calls backwards.
34306
34307 2005-04-01  Jackson Harper  <jackson@ximian.com>
34308
34309         * Binding.cs: Handle null data members when pulling data.
34310         * PropertyManager.cs: Handle the data member being a property that
34311         does not exist.
34312
34313 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34314
34315         * DataGridTextBoxColumn.cs: fixes signature
34316         * DataGrid.cs: calls right constructor
34317
34318 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34319
34320         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34321         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34322         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34323         * DataGridTableStyle.cs: implements DataGridTableStyle
34324         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34325         * DataGridTextBox.cs: implements DataGridTextBox
34326         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34327
34328 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34329
34330         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34331
34332 2005-03-29  Peter Bartok  <pbartok@novell.com>
34333
34334         * Application.cs:
34335           - Properly implemented CompanyName property
34336           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34337             returns a path that includes CompanyName, ProductName and
34338             Version (fixes bug #70330)
34339
34340 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34341
34342         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34343           fixes bug #72588.
34344
34345 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34346
34347         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34348         
34349           - Added ReadOnly CheckBox
34350           - Further refactoring: moved some code from Open-/SaveFileDialog
34351             to FileDialog
34352
34353 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34354
34355         * OpenFileDialog.cs: Fixed CheckFileExists
34356         * FileDialog.cs:
34357           Moved FileView and DirComboBox outside FileDialog class.
34358           They can now be used outside FileDialog
34359
34360 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34361
34362         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34363         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34364
34365 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34366
34367         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34368           - Added missing CreatePrompt property in SaveDialog
34369           - Overall SaveDialog handling should be better now
34370           - Added non standard ShowHiddenFiles property
34371           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34372           - Added InitialDirectory and RestoreDirectory support
34373
34374 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34375
34376         * FileDialog.cs: Made dirComboBox usable
34377
34378 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34379
34380         * FileDialog.cs: Added Filter support (case sensitiv)
34381
34382 2005-03-24  Jackson Harper  <jackson@ximian.com>
34383
34384         * TabControl.cs: Need a couple more pixels for the lines.
34385
34386 2005-03-23  Jackson Harper  <jackson@ximian.com>
34387
34388         * TabControl.cs: Give the tab page focus when it is selected.
34389
34390 2005-03-23  Jackson Harper  <jackson@ximian.com>
34391
34392         * TabControl.cs: Account for the drawing of tabs borders when
34393         invalidating. If the slider was clicked dont do click detection on
34394         the tabs.
34395
34396 2005-03-23  Jackson Harper  <jackson@ximian.com>
34397
34398         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34399
34400 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34401
34402         * CategoryGridEntry.cs: Added
34403         * GridItem.cs: Added helper properties
34404         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34405         * GridEntry.cs: Updated code for collection
34406         * PropertyGrid.cs: Cleaned up some formatting
34407         * PropertyGridView.cs: Added drop down functionality for enums.
34408         * GridItemCollection.cs: Added enumerator logic
34409         * PropertyGridEntry.cs: Added
34410
34411 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34412
34413         * FileDialog.cs:
34414           - Removed unnecessary commented code
34415           - Fixed handling for entering the filename manually in the combobox
34416
34417 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34418
34419         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34420
34421 2005-03-18  Peter Bartok  <pbartok@novell.com>
34422
34423         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34424           them being touching the border
34425
34426 2005-03-18  Peter Bartok  <pbartok@novell.com>
34427
34428         * TextControl.cs: Quick hack to center text better
34429
34430 2005-03-18  Peter Bartok  <pbartok@novell.com>
34431
34432         * ControlPaint.cs:
34433           - Don't throw NotImplemented exceptions, just print a notice once
34434             instead (requested by Miguel). This makes running existing SWF
34435             apps a bit easier
34436         * Control.cs:
34437           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34438           - Added context menu trigger on right click
34439         * Panel.cs: Trigger invalidate on resize
34440         * StatusBar.cs:
34441           - Removed old double-buffer drawing
34442           - Added ResizeRedraw style to force proper update of statusbar
34443         * ListView.cs:
34444           - Removed debug output
34445         * ThemeWin32Classic.cs:
34446           - Fixed drawing of status bar, now draws Text property if there
34447             are no defined panels
34448
34449 2005-03-18  Jackson Harper  <jackson@ximian.com>
34450
34451         * ImageList.cs: When the image stream is set pull all the images
34452         from it.
34453         * ImageListStreamer.cs: Implement reading image list streams.
34454
34455 2005-03-18  Peter Bartok  <pbartok@novell.com>
34456
34457         * ThemeWin32Classic.cs (DrawPictureBox):
34458           - Fixed calculations for centered drawing
34459           - Fixed drawing for normal mode, not scaling the image on normal
34460
34461 2005-03-18  Peter Bartok  <pbartok@novell.com>
34462
34463         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34464           textbox
34465         * FileDialog.cs:
34466           - Made Open/Save button the accept button for FileDialog
34467           - Tied the cancel button to the IButtonControl cancel button
34468           - Save/Open now properly builds the pathname
34469           - Now handles user-entered text
34470           - Preventing crash on right-click if no item is selected
34471           - Fixed Text property, now uses contents of textbox
34472           - Fixed SelectedText property, now just returns the text part that
34473             is selected in the text box
34474
34475 2005-03-18  Jackson Harper  <jackson@ximian.com>
34476
34477         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34478         rect, make sure to de-adjust the interior rect after drawing the
34479         tab text.
34480
34481 2005-03-18  Peter Bartok  <pbartok@novell.com>
34482
34483         * MenuAPI.cs: Remove menu *before* executing selected action to
34484           prevent the menu from 'hanging around'
34485           
34486 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34487
34488         * XplatUIOSX.cs: Implemented WorkingArea property
34489
34490 2005-03-17  Peter Bartok  <pbartok@novell.com>
34491
34492         * XplatUIX11.cs: Fixed menu coord calculations
34493         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34494           for calculating offsets
34495
34496 2005-03-17  Peter Bartok  <pbartok@novell.com>
34497
34498         * Hwnd.cs: Do not consider menu presence for default client
34499           rectangle location/size
34500         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34501           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34502           translation functions
34503         * FileDialog.cs: Fixed (what I presume is a) typo
34504
34505 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34506
34507         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34508           X access (avoids X-Async errors)
34509
34510 2005-03-16  Jackson Harper  <jackson@ximian.com>
34511
34512         * TabControl.cs: Raise the SelectedIndexChanged event.
34513
34514 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34515
34516         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34517           - Removed vertical ToolBar and replaced it with a custom panel
34518             (desktop and home button already work)
34519           - Added Help button (some controls get resized or relocated then)
34520           - Draw correct text depending on Open or Save.
34521           - Fixed some typos...
34522
34523 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34524
34525         * ScrollBar.cs:
34526           - Only change Maximum and Minimum when need it (bug fix)
34527
34528 2005-03-15  Peter Bartok  <pbartok@novell.com>
34529
34530         * Form.cs: Use Handle for icon, to trigger creation if
34531           the window does not yet exist
34532         * Control.cs:
34533           - CanSelect: Slight performance improvement
34534           - Focus(): Preventing possible recursion
34535           - Invalidate(): Removed ControlStyle based clear flag setting
34536           - WM_PAINT: fixed logic for calling OnPaintBackground
34537           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34538             EraseWindowBackground if the control doesn't paint background
34539         * XplatUIWin32.cs:
34540           - Moved EraseWindowBackground() method to internal methods
34541           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34542             is sent via SendMessage on BeginPaint call on Win32
34543         * XplatUIX11.cs:
34544           - Added EraseWindowBackground() method
34545           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34546             PaintEventStart, which more closely matches Win32 behaviour
34547           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34548           - Fixed SetFocus() to properly deal with client and whole windows
34549         * Hwnd.cs: Added ErasePending property
34550         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34551         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34552
34553 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34554
34555         * XplatUIOSX.cs:
34556           - Fix hard loop when timers exist.
34557           - Fix bugs with middle and right click for 3 button mice.
34558
34559 2005-03-11  Peter Bartok  <pbartok@novell.com>
34560
34561         * XplatUIX11.cs:
34562           - get_WorkingArea: Need to call X directly, GetWindowPos only
34563             returns cached data now
34564           - Added sanity check to GetWindowPos hwnd usage
34565
34566 2005-03-11  Jackson Harper  <jackson@ximian.com>
34567
34568         * BindingManagerBase.cs: This method isn't used anymore as
34569         PullData now updates the data in the control.
34570
34571 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34572
34573         * Form.cs: fixes menu drawing on X11
34574         * MenuAPI.cs:  fixes menu drawing on X11
34575
34576 2005-03-11  Peter Bartok  <pbartok@novell.com>
34577
34578         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34579           from Jonathan Gilbert; should fix bug #73606
34580         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34581           in Screen coordinates. Thanks, Jordi.
34582         * Form.cs: Added missing attribute
34583
34584 2005-03-11  Peter Bartok  <pbartok@novell.com>
34585
34586         * Form.cs:
34587           - Rudimentary Mdi support
34588           - Removed outdated FormParent code
34589           - Implemented lots of missing properties and methods, still missing
34590             transparency support
34591           - Added missing attributes
34592           - Implemented support for MaximumBounds
34593           - Added firing of various events
34594         * XplatUI.cs: Added SetIcon() method
34595         * XplatUIDriver.cs: Added SetIcon() abstract
34596         * XplatUIOSX.cs: Stubbed out SetIcon() method
34597         * XplatUIX11.cs:
34598           - Implemented SetIcon() support
34599           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34600           - Switched to unix line endings
34601         * XplatUIWin32.cs:
34602           - Made POINT internal so for can access it as part of MINMAX
34603           - Implemented SetIcon() support
34604           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34605             native Mdi support again, might have to go managed)
34606         * Control.cs: Now fires the StyleChanged event
34607         * MdiClient.cs: Added; still mostly empty
34608
34609 2005-03-10  Peter Bartok  <pbartok@novell.com>
34610
34611         * SaveFileDialog.cs: Added emtpy file
34612
34613 2005-03-08  Peter Bartok  <pbartok@novell.com>
34614
34615         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34616           in turn triggers OnCreateContro) when creating a handle for the
34617           first time.
34618         * TextControl.cs: Fixed endless loop in certain cases when
34619           replacing the current selection
34620
34621 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34622
34623         * ScrollBar.cs:
34624           - Honors NewValue changes in Scroll events allowing apps to change it
34625           - Adds First and Last Scroll events
34626           - Fixes Thumb events
34627
34628 2005-03-07  Peter Bartok  <pbartok@novell.com>
34629
34630         * Hwnd.cs: Added DefaultClientRectangle property
34631         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34632           more detailed debug information
34633         * XplatUIX11.cs:
34634           - Fixed size-change feedback loop, where we would pull an old size
34635             off the queue and mistakenly change our window's size to an
34636             earlier value
34637           - Now compressing ConfigureNotify events, to reduce looping and
34638             redraw issues
34639         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34640           is called
34641
34642 2005-03-07  Jackson Harper  <jackson@ximian.com>
34643
34644         * Binding.cs: Push data pushes from data -> property. Check if the
34645         property is readonly when attempting to set it.
34646
34647 2005-03-07  Jackson Harper  <jackson@ximian.com>
34648
34649         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34650         instead of IsSubclassOf. Pulling data now sets the value on the
34651         control.
34652         * PropertyManager.cs:
34653         * CurrencyManager.cs: Just need to pull data when updating now,
34654         because PullData will set the value on the control.
34655
34656 2005-03-04  Jackson Harper  <jackson@ximian.com>
34657
34658         * Binding.cs: Implement data type parsing and converting on pulled
34659         data. TODO: Are there more ways the data can be converted?
34660
34661 2005-03-04  Jackson Harper  <jackson@ximian.com>
34662
34663         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34664         controls Validating method so we can repull the data when the
34665         control loses focus.
34666
34667 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34668
34669         * ColumnHeader.cs:
34670           - Fixes null string format
34671           
34672         * ListView.cs:
34673           - Adds enum type checks
34674           - Fixes redrawing and recalc need after changing some properties
34675           - Fixes on focus_item set after the event
34676           - Fixes adding columns after the control has been created
34677           
34678         * ThemeWin32Classic.cs:
34679           - Fixes CheckBox focus rectangle
34680           - Fixes ColumnHeader drawing
34681
34682
34683 2005-03-03  Jackson Harper  <jackson@ximian.com>
34684
34685         * Binding.cs: Bind to <Property>Changed events so we can detect
34686         when properties are changed and update the data.
34687
34688 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34689
34690         * ImageList.cs:
34691           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34692           - Fixes ImageList constructor with ImageList container
34693           - Fixes image scaling (wrong parameters at DrawImage)
34694
34695 2005-02-02  Jackson Harper  <jackson@ximian.com>
34696
34697         * Binding.cs: Make property searches case-insensitive. Eliminate
34698         some duplicated code.
34699
34700 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34701
34702         * ComboBox.cs:
34703                 - Handle focus event
34704                 - Fix scrollbar events
34705                 - Discard highlighted item if remove it
34706                 - Fixes SelectedItem with strings
34707
34708 2005-03-01  Peter Bartok  <pbartok@novell.com>
34709
34710         * Control.cs:
34711           - Fixed Visible property, now follows (once again) parent chain
34712             to return false if any control in the chain is visible=false
34713           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34714           - Fixed several places where is_visible instead of Visible was used
34715           - Implemented FIXME related to focus selection when setting focused
34716             control to be invisible
34717
34718         * XplatUIWin32.cs: Now using proper method to find out if window is
34719           visible. Thanks to Jordi for pointing it out
34720
34721 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34722
34723         * ComboBox.cs: show/hide scrollbar instead of creating it
34724
34725 2005-02-27  Jackson Harper  <jackson@ximian.com>
34726
34727         * CurrencyManager.cs: Add PositionChanged stuff.
34728
34729 2005-02-27  Peter Bartok  <pbartok@novell.com>
34730
34731         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34732         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34733         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34734         * XplatUIX11.cs:
34735           - Implemented GetMenuDC()
34736           - Implemented GetMenuOrigin()
34737           - Implemented ReleaseMenuDC()
34738           - Implemented generation of WM_NCPAINT message
34739           - Implemented generation and handling of WM_NCCALCSIZE message
34740         * Form.cs: Added debug helper message for Jordi's menu work
34741         * Hwnd.cs:
34742           - Modified ClientRect property; added setter, fixed getter to handle
34743             setting of ClientRect
34744           - Added MenuOrigin property
34745
34746 2005-02-26  Peter Bartok  <pbartok@novell.com>
34747
34748         * XplatUIX11.cs:
34749           - Destroys the caret if a window that's being destroyed contains it
34750           - Ignores expose events coming from the X11 queue for windows that
34751             already are destroyed
34752           - Now uses the proper variable for handling DestroyNotify, before we
34753             marked the wrong window as destroyed
34754           - Improved/added some debug output
34755
34756 2005-02-26  Peter Bartok  <pbartok@novell.com>
34757
34758         * X11Keyboard.cs: Fixes to work on 64bit systems
34759
34760 2005-02-26  Peter Bartok  <pbartok@novell.com>
34761
34762         * Control.cs:
34763           - Now calling OnHandleDestroyed from DestroyHandle()
34764             instead of Dispose()
34765           - Removed bogus call to controls.Remove() from DestroyHandle()
34766
34767 2005-02-26  Peter Bartok  <pbartok@novell.com>
34768
34769         * Control.cs: Properly destroy child windows when our handle is
34770           destroyed
34771
34772 2005-02-25  Peter Bartok  <pbartok@novell.com>
34773
34774         * XplatUI.cs:
34775           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34776           - Alphabetized Static Methods and Subclasses
34777
34778         * XplatUIX11.cs:
34779           - Added XException class to allow custom handling of X11 exceptions
34780           - Created custom X11 error handler, tied into XException class
34781           - Added support for MONO_XEXCEPTIONS env var to allow the user
34782             to either throw an exception on X errors or continue running
34783             after displaying the error
34784           - Added handling of DestroyNotify message
34785           - Added handler for CreateNotify message (still disabled)
34786           - Improved (tried to at least) Where method to provide file and lineno
34787         * X11Structs.cs:
34788           - Added XErrorHandler delegate
34789           - Added XRequest enumeration (to suppor translation of errors)
34790
34791 2005-02-25  Jackson Harper  <jackson@ximian.com>
34792
34793         * PropertyManager.cs: Implement editing features
34794         * CurrencyManager.cs:
34795         * Binding.cs: First attempt at UpdateIsBinding
34796         * BindingManagerBase.cs: Call UpdateIsBinding before
34797         pushing/pulling data.
34798
34799 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34800
34801         * MenuAPI.cs: Respect disabled items
34802         * ThemeWin32Classic.cs
34803                 - Caches ImageAttributes creation for DrawImageDisabled
34804                 - Fixes vertical menu line drawing
34805                 - Draws disabled arrows in disable menu items
34806
34807 2005-02-24  Peter Bartok  <pbartok@novell.com>
34808
34809         * Hwnd.cs:
34810           - Added UserData property to allow associating arbitrary objects
34811             with the handle
34812           - Fixed leak; now removing Hwnd references from static windows array
34813         * XplatUIWin32.cs:
34814           - Fixed Graphics leak in PaintEventEnd
34815           - Removed usage of HandleData, switched over to Hwnd class
34816         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34817
34818 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34819
34820         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34821         * ScrollBar.cs: Fixes bug
34822         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34823          keyboard navigation enhancements
34824
34825 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34826
34827         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34828         * GroupBox.cs: Add control styles
34829         * Label.cs: Add control styles
34830         * UpDownBase.cs: Add control styles
34831         * ListBox.cs: Add control styles
34832         * XplatUIWin32.cs: Fixes wrong parameter order
34833
34834
34835 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34836
34837         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34838
34839 2005-02-23  Jackson Harper  <jackson@ximian.com>
34840
34841         * PropertyManager.cs: Implement property binding. This doesn't
34842         seem to work yet though as (I think) there are some bugs in
34843         System.ComponentModel.PropertyDescriptor.
34844         * BindingContext.cs: Use new PropertyManager constructor.
34845
34846 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34847
34848         * ProgressBar.cs: use clip region in ProgressBar
34849         * ThemeWin32Classic.cs: use clip region in ProgressBar
34850
34851 2004-02-22  Jackson Harper  <jackson@ximian.com>
34852
34853         * BindingsCollection.cs: Remove some debug code.
34854
34855 2005-02-22  Jackson Harper  <jackson@ximian.com>
34856
34857         * BindingContext.cs:
34858         * ControlBindingsCollection.cs:
34859         * CurrencyManager.cs:
34860         * Binding.cs:
34861         * BindingManagerBase.cs: Initial implementation
34862         * BindingsCollection.cs: Add an internal contains method that the
34863         BindingManagerBase uses to ensure bindings aren't added twice to
34864         the collection.
34865         * PropertyManager.cs: Stubbed out.
34866         * Control.cs:
34867         * ContainerControl.cs: Hook up databinding
34868         
34869 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34870
34871         * XplatUIOSX.cs:
34872           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34873           Fixed Invalidate/Update chain.
34874           Fixed tons of other minor bugs (this is almost a complete rewrite).
34875
34876 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34877
34878         * ComboBox.cs: do subcontrol creation when the control is created
34879
34880 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34881
34882         * Label.cs: fixes image drawing (image and imagelist)
34883         * ThemeWin32Classic.cs: cache brushes
34884         
34885 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34886
34887         * Form.cs: Move menu drawing code to Theme class
34888         * ComboBox.cs: Move ComboBox drawing code to Theme class
34889         * MenuItem.cs: Move menu drawing code to Theme class
34890         * MenuAPI.cs: Move menu drawing code to Theme class
34891         * ThemeWin32Classic.cs: New methods
34892         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34893         * ListBox.cs: Move Listbox drawing code to Theme class
34894         * Theme.cs: New methods
34895
34896 2005-02-20  Peter Bartok  <pbartok@novell.com>
34897
34898         * Control.cs:
34899           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34900             only process mnemonics on those)
34901           - Fixed event sequence for key handling; first calling
34902             ProcessKeyEventArgs now
34903         * TextBoxBase.cs:
34904           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34905             for processing non-character keys
34906           - Fixed WM_CHAR to generate proper event sequence before processing
34907         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34908           generation
34909
34910 2005-02-19  Peter Bartok  <pbartok@novell.com>
34911
34912         * UserControl.cs: Added TextChanged event; added attributes
34913         * SizeGrip.cs: Implemented resizing and optional display of grip
34914         * Form.cs: Fixed attribute
34915         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34916           Changed meaning of ScrollWindow bool argument; instead of the
34917           clear attribute (which will be true usually anyway), it gives the
34918           option of moving child controls as well.
34919         * XplatUIX11.cs:
34920           - Changed to match new ScrollWindow argument
34921           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34922             now handles the implicit parent window a WM puts around us
34923         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34924           to work)
34925         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34926         * TreeView.cs: Adjusted to new ScrollWindow arguments
34927
34928 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34929
34930         * Form.cs: Menu integration with non-client area
34931         * MenuItem.cs: Menu integration with non-client area
34932         * MenuAPI.cs: Menu integration with non-client area
34933
34934 2005-02-18  Peter Bartok  <pbartok@novell.com>
34935
34936         * MethodInvoker.cs: Added
34937         * MdiLayout.cs: Added
34938         * SendKeys.cs: Started implementation
34939         * ErrorIconAlignment.cs: Added
34940
34941 2005-02-18  Peter Bartok  <pbartok@novell.com>
34942
34943         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34944         * Form.cs: Added handling for Menu-related Non-client messages
34945
34946 2005-02-17  Peter Bartok  <pbartok@novell.com>
34947
34948         * UpDownBase.cs: Fixed typo, compilation errors
34949         * DomainUpDown.cs: Fixed attribute value
34950
34951 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34952
34953         * UpDownBase.cs: Attach entry events.
34954         Propagate events.
34955         Add ForeColor property, Focused, InterceptArrowKeys (interception
34956         does not work yet).
34957
34958 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34959
34960         * Form.cs:
34961                 - Redraw non client are on Setmenu
34962                 - Calc proper menu starting point
34963
34964 2005-02-17  Peter Bartok  <pbartok@novell.com>
34965
34966         * Application.cs: Fixed message_filter check
34967
34968 2005-02-17  Peter Bartok  <pbartok@novell.com>
34969
34970         * Application.cs: Now calls registered message filters
34971         * DockStyle.cs: Fixed attribute
34972         * Form.cs: Fixed attribute
34973         * Menu.cs: Fixed attribute
34974         * ToolTip.cs: Fixed attribute
34975         * TreeNode.cs: Added missing attributes and arranged in regions
34976         * PropertyGrid.cs: Fixed signatures
34977         * TreeNodeCollection.cs: Added attributes
34978         * Splitter.cs: Added missing attributes; arranged into regions
34979         * TabPage.cs: Added missing attributes; arranged into regions
34980         * TextBoxBase.cs: Added missing attributes
34981         * TextBox.cs: Added missing attributes
34982         * ArrangeDirection.cs: Added missing attributes
34983         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34984         * ToolBarButton.cs: Fixed attributes
34985         * AnchorStyles.cs: Fixed attribute
34986         * TrackBar.cs: Fixed attributes
34987         * TabControl.cs: Added missing attributes and arranged into regions
34988         * ToolBar.cs: Fixed attribute
34989         * StatusBar.cs: Fixed signature, organized into regions and added
34990           attributes
34991         * StatusBarPanel.cs: Fixed attributes
34992         * ContentsResizedEventArgs.cs: Implemented
34993         * ContentsResizedEventHandler.cs: Implemented
34994         * DateBoldEventArgs.cs: Implemented
34995         * DateBoldEventHandler.cs: Implemented
34996         * UpDownEventArgs.cs: Implemented
34997         * UpDownEventHandler.cs: Implemented
34998         
34999 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
35000
35001         * Form.cs: first Menu NC refactoring
35002         * MenuAPI.cs: first Menu NC refactoring
35003         
35004 2005-02-16  Peter Bartok  <pbartok@novell.com>
35005
35006         * ImeMode.cs: Added missing attributes
35007         * Menu.cs: Fixed attribute
35008         * GroupBox.cs: Fixed attribute
35009         * Label.cs: Fixed attribute
35010         * ColorDialog.cs (RunDialog): Removed TODO attribute
35011         * ComboBox.cs: Fixed attributes
35012         * ListControl.cs: Added missing attributes
35013         * PropertyGrid.cs: Fixed attributes
35014         * Control.cs: Fixed attributes
35015         * ListViewItem.cs: Added TypeConverter attribute
35016         * NotifyIcon.cs: Fixed attributes
35017         * ListView.cs: Fixed attributes
35018         * ButtonBase.cs: Fixed attribute
35019         * ImageList.cs: Added missing attributes
35020         * ContainerControl.cs: Fixed signature
35021         * CheckedListBox.cs: Fixed attribute; added missing attributes
35022         * Panel.cs: Fixed attributes
35023         * PropertyTabChangedEventArgs.cs: Added missing attribute
35024         * PropertyValueChangedEventArgs.cs: Added missing attribute
35025         * Binding.cs: Fixed attribute
35026         * ListViewItemConverter: Implemented ListViewSubItemConverter class
35027         * ListBox.cs: Fixed attribute; added missing attributes;
35028         * ScrollableControl.cs: Added missing attributes
35029         * PictureBox.cs: Added missing attributes; implemented missing property
35030         * DateTimePicker.cs: Added missing attributes
35031         * Theme.cs (ToolWindowCaptionHeight): Fixed type
35032         * MonthCalendar.cs: Fixed attributes
35033         * StatusBarPanel.cs: Added missing attributes
35034         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
35035
35036 2005-02-16  Peter Bartok  <pbartok@novell.com>
35037
35038         * TextBoxBase.cs: The previous method to enforce height yet remember
35039           the requested high was less than ideal, this is an attempt to do
35040           it better.
35041         * Control.cs: Added comment about possible problem
35042         * Copyright: Updated format
35043         * GridItemType.cs: Fixed swapped values
35044
35045 2005-02-15  Jackson Harper  <jackson@ximian.com>
35046
35047         * BaseCollection.cs: Use property so we never access an
35048         uninitialized list. Also initialize the list in the property.
35049
35050 2005-02-15  Peter Bartok  <pbartok@novell.com>
35051
35052         * GroupBox.cs (ProcessMnemonic): Implemented
35053         * Label.cs (ProcessMnemonic): Implemented
35054         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
35055           hotkeys
35056
35057 2005-02-15  Peter Bartok  <pbartok@novell.com>
35058
35059         * RadioButton.cs (ProcessMnemonic): Implemented
35060         * CheckBox.cs (ProcessMnemonic): Implemented
35061         * Control.cs:
35062           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
35063             handling
35064           - Added internal method to allow calling ProcessMnemonic from other
35065             controls
35066         * ContainerControl.cs:
35067           - Started support for handling validation chain handling
35068           - Implemented ProcessMnemonic support
35069           - Added Select() call to Active, to make sure the active control
35070             receives focus
35071         * Form.cs: Setting toplevel flag for Forms (this was lost in the
35072           FormParent rewrite)
35073         * ThemeWin32Classic.cs:
35074           - DrawCheckBox(): Fixed stringformat to show hotkeys
35075           - DrawRadioButton(): Fixed stringformat to show hotkeys
35076         * CommonDialog.cs: Removed WndProc override, not needed
35077
35078 2005-02-14  Peter Bartok  <pbartok@novell.com>
35079
35080         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
35081           missed those in the rewrite
35082
35083 2005-02-14  Miguel de Icaza  <miguel@novell.com>
35084
35085         * NumericUpDown.cs (Increment, ToString): Add.
35086         (DecimalPlaces): implement.
35087         
35088         Add attributes.
35089         
35090         * UpDownBase.cs: Add the designer attributes.
35091
35092 2005-02-13  Peter Bartok  <pbartok@novell.com>
35093
35094         * Panel.cs: Removed border_style, now in Control
35095         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
35096           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
35097
35098 2005-02-13  Peter Bartok  <pbartok@novell.com>
35099
35100         * MouseButtons.cs: Added missing attributes
35101         * XplatUIStructs.cs: Added enumeration for title styles
35102         * LeftRightAlignment.cs: Added missing attributes
35103         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35104           it compatible with Graphics.FromHwnd()
35105         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35106         * Keys.cs: Added missing attributes
35107         * SelectionRange.cs: Added missing attributes
35108         * SelectionRangeConverter.cs: Added
35109         * XplatUI.cs:
35110           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35111             ReleaseMenuDC methods
35112           - Renamed ReleaseWindow to UngrabWindow
35113           - Added proper startup notice to allow version identification
35114         * Form.cs:
35115           - Added missing attributes
35116           - Removed FormParent concept
35117         * Label.cs: Removed border_style field, now in Control
35118         * RadioButton.cs: Now properly selects RadioButton when focus is
35119           received
35120         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35121         * Control.cs:
35122           - Added missing attributes
35123           - Added borderstyle handling
35124           - Removed FormParent concept support
35125           - Fixed calls to XplatUI to match changed APIs
35126           - Fixed bug that would case us to use disposed Graphics objects
35127           - Removed unneeded internal methods
35128           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35129           - SelectNextControl(): Fixed to properly check common parents
35130         * TextBoxBase.cs: Removed border_style field (now in Control)
35131         * MessageBox.cs:
35132           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35133             fixed calculations for form size
35134           - Added support for localized strings and icons
35135           - Improved form size calculations, added border
35136         * ListView.cs: Removed border_style field (now in Control)
35137         * X11Structs.cs: Moved several structs from X11 driver here
35138         * X11Keyboard.cs: Changed debug message
35139         * Application.cs: Removed FormParent concept support
35140         * CommonDialog.cs:
35141           - Resetting end_modal flag
35142           - Removed FormParent concept support
35143         * NativeWindow.cs: Removed FormParent concept support
35144         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35145           Client area and Non-Client whole window to allow support for WM_NC
35146           messages
35147         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35148           prevent using it until it supports Hwnd as per Geoff Norton's request
35149         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35150         * PictureBox.cs: Removed border_style field, now in Control
35151         * XplatUIWin32.cs: Added new driver methods
35152
35153 2005-02-12  Peter Bartok  <pbartok@novell.com>
35154
35155         * OpacityConverter.cs: Implemented
35156         * Hwnd.cs: Internal class to support drivers that need to emulate
35157           client area/non-client area window behaviour
35158
35159 2005-02-11  Peter Bartok  <pbartok@novell.com>
35160
35161         * KeysConverter.cs: Implemented
35162
35163 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35164
35165         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35166         * LinkLabel: Added missing attributes
35167         * MainMenu.cs: fixes ToString
35168         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35169         * ListBox.cs: fixes event position
35170         * TrackBar.cs: adds missing attributes and events
35171         
35172 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35173
35174         * MenuItem.cs: Use SystemInformation and bug fixes
35175         * MenuAPI.cs: Use SystemInformation and bug fixes
35176
35177 2005-02-09  Jackson Harper  <jackson@ximian.com>
35178
35179         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35180         their keystate otherwise things like VK_MENU get stuck "on".
35181
35182 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35183
35184         * ListBox.cs: Fixes AddRange bug
35185         
35186 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35187
35188         * ProgressBar.cs
35189                 - Add missing attributes
35190                 - Add missing method
35191                 
35192         * CheckedListBox.cs: Added missing attributes
35193                 - Add missing attributes
35194                 - Remove extra method
35195         
35196         * ComboBox.cs: Added missing attributes
35197         * VScrollBar.cs: Added missing attributes
35198         * ScrollBar.cs:  Added missing attributes
35199         * ListBox.cs: Fixes signature, add missing consts
35200         * LinkArea.cs:   Added missing attributes
35201         
35202
35203 2005-02-08  Peter Bartok  <pbartok@novell.com>
35204
35205         * Menu.cs: Added missing attributes
35206         * MainMenu.cs: Added missing attributes
35207         * GroupBox.cs: Added missing attributes
35208         * Label.cs: Added missing attributes
35209         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35210         * ColorDialog.cs:
35211           - Added Instance and Options properties
35212           - Added missing attributes
35213         * Cursor.cs: Made Serializable
35214         * NotifyIcon: Added missing attributes
35215         * MenuItem.cs: Added missing attributes
35216         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35217         * Panel.cs: Added Missing attributes
35218         * MonthCalendar.cs: Fixed CreateParams
35219
35220 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35221         
35222         * LinkLabel.cs:
35223                 - Fixes signature
35224                 - Fixes issues with links
35225                 - Adds the class attributes
35226
35227 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35228         
35229         * ComboBox.cs:
35230                 - Fixes button when no items available in dropdown
35231                 - Fixes repainting problems
35232                 - Adds the class attributes
35233                 
35234 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35235
35236         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35237         the current theme.  Cache these on startup.
35238
35239 2005-02-07  Jackson Harper  <jackson@ximian.com>
35240
35241         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35242         the scrollbar buttons when they are depressed.
35243
35244 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35245
35246         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35247         Get the display size from the main displayid.  We currently dont
35248         support multiple display configurations.
35249
35250 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35251
35252         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35253
35254 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35255
35256         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35257
35258 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35259
35260         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35261
35262 2005-02-04  Jackson Harper  <jackson@ximian.com>
35263
35264         * ThemeWin32Classic.cs: Respect the clipping rect when
35265         drawing. Only fill the intersection of clips and rects so there
35266         isn't a lot of large fills.
35267         * ScrollBar.cs: Pass the correct clipping rect to the theme
35268         engine. Remove some debug code.
35269
35270 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35271         
35272         * DateTimePicker.cs:
35273                 - Fixed crash on DateTime.Parse, use Constructor instead
35274
35275 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35276         
35277         * MenuItem.cs:
35278         * MenuAPI.cs:
35279                 - Owner draw support (MeasureItem and DrawItem)
35280
35281 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35282         
35283         *  Menu.cs:
35284                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35285                 - Fixes MenuItems.Add range
35286         * MenuItem.cs:
35287                 - MergeMenu and Clone and CloneMenu functions
35288
35289 2005-02-03  Jackson Harper  <jackson@ximian.com>
35290
35291         * ScrollBar.cs: Make abstract
35292         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35293         is abstract.
35294
35295 2005-02-03  Jackson Harper  <jackson@ximian.com>
35296
35297         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35298         all the unneeded refreshes and uses invalidates with properly
35299         computed rects.
35300
35301 2005-02-03  Peter Bartok  <pbartok@novell.com>
35302
35303         * ComponentModel.cs: Added
35304         * IDataGridEditingService.cs: Added
35305         * Timer.cs: Added missing attributes
35306         * ToolTip.cs: Added missing attributes
35307
35308 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35309
35310         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35311
35312 2005-02-03  Peter Bartok  <pbartok@novell.com>
35313
35314         * ListBox.cs: Added missing attributes
35315
35316 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35317         
35318         * ListBox.cs:
35319                 - Fixes font height after font change
35320                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35321                 
35322 2005-02-02  Peter Bartok  <pbartok@novell.com>
35323
35324         * HandleData.cs: Introduced static methods to allow class
35325           to be more self-contained and track it's own HandleData objects
35326         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35327           HandleData to use new static methods
35328
35329 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35330
35331         * Combobox.cs:
35332                 - Fixes default size and PreferredHeight
35333                 - Missing events
35334                 - ObjectCollection.Insert implementation
35335                 
35336         * ListControl.cs
35337                 - Fixes signature
35338         * ListBox.cs:
35339                 - Several fixes
35340                 - ObjectCollection.Insert implementation
35341                 - No selection after clean
35342                 - Small fixes
35343
35344 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35345
35346         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35347
35348 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35349
35350         * Combobox.cs:
35351                 - Caches ItemHeight calculation for OwnerDrawVariable
35352                 - Handles dropdown properly
35353                 - Fixes several minor bugs
35354
35355 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35356
35357         * ListBox.cs:
35358                 - Fixes 71946 and 71950
35359                 - Fixes changing Multicolumn on the fly
35360                 - Fixes keyboard navigation on Multicolumn listboxes
35361
35362 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35363         
35364         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35365         crash reporter log.
35366
35367 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35368
35369         * XplatUIOSX.cs: Allow applications to actually exit.
35370
35371 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35372
35373         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35374         their parent at creation time rather than lazily later.  Fixes a major
35375         regression we were experiencing.
35376
35377 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35378
35379         * ThemeWin32Classic.cs: more date time picker painting fixes
35380         * DateTimePicker.cs: more monthcalendar drop down fixes
35381         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35382
35383 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35384
35385         * ScrollBar.cs:
35386                 - When moving the thumb going outside the control should stop the moving
35387                 - Adds the firing of missing events
35388                 - Fixes no button show if Size is not specified
35389                 - End / Home keys for keyboard navigation
35390
35391 2005-01-30  Peter Bartok  <pbartok@novell.com>
35392
35393         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35394           sanity check to prevent theoretical loop
35395         * XplatUIWin32.cs (SetVisible): Removed debug output
35396         * XplatUIX11.cs (SystrayChange): Added sanity check
35397         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35398         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35399           behaviour, valid until the X11 client window rewrite is done
35400         * TextBox.cs (ctor): Setting proper default foreground and background
35401           colors
35402
35403 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35404
35405         * Theme: Added DrawDateTimePicker to interface
35406         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35407         * DateTimePicker.cs: Created (still needs keys and painting code)
35408         * DateTimePickerFormat.cs: added
35409         * MonthCalendar.cs: fixed CreateParams for popup window mode
35410           
35411 2005-01-29  Peter Bartok  <pbartok@novell.com>
35412
35413         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35414           this should also the calculations for ligher/darker
35415         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35416
35417 2005-01-29  Peter Bartok  <pbartok@novell.com>
35418
35419         * ArrangeDirection.cs: Added
35420         * ArrangeStartingPositon.cs: Added
35421         * SystemInformation.cs: Implemented
35422         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35423           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35424           used by SystemInformation class
35425         * X11Strucs.cs: Added XSizeHints structure
35426         * MenuAPI.cs:
35427           - Fixed CreateParams to make sure the menu window is always visible
35428           - TrackPopupMenu: Added check to make sure we don't draw the
35429             menu offscreen
35430
35431 2005-01-29  Peter Bartok  <pbartok@novell.com>
35432
35433         * HandleData.cs: Added method for altering invalid area
35434         * TextBoxBase.cs: Implemented TextLength
35435
35436 2005-01-28  Peter Bartok  <pbartok@novell.com>
35437
35438         * XplatUIX11.cs: Improvement over last patch, not sending
35439           the WM_PAINT directly anymore, instead we scroll any pending
35440           exposed areas and let the system pick out the WM_PAINT later
35441
35442 2005-01-28  Peter Bartok  <pbartok@novell.com>
35443
35444         * SWF.csproj: Deleted, no longer used. Instead,
35445           Managed.Windows.Forms/SWF.csproj should be used
35446         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35447           directly, to avoid a potential race condition with the next
35448           scroll
35449
35450 2005-01-28  Peter Bartok  <pbartok@novell.com>
35451
35452         * XplatUI.cs: Made class internal
35453
35454 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35455
35456         * CheckedListBox.cs:
35457                 - Draw focus
35458                 - Fixed Drawing
35459                 - Missing methods and events
35460
35461 2005-01-27  Peter Bartok  <pbartok@novell.com>
35462
35463         * Application.cs (Run): Don't use form if we don't have one
35464
35465 2005-01-27  Peter Bartok  <pbartok@novell.com>
35466
35467         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35468
35469 2005-01-27  Peter Bartok  <pbartok@novell.com>
35470
35471         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35472         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35473         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35474         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35475         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35476         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35477         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35478         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35479         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35480         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35481         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35482         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35483
35484 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35485
35486         * Combobox.cs:
35487                 - Draw focus on Simple Combobox
35488                 - Fixes drawing issues
35489                 - fixes 71834
35490
35491 2005-01-27  Peter Bartok  <pbartok@novell.com>
35492
35493         * Form.cs:
35494           - Place window in default location, instead of hardcoded 0/0
35495           - Send initial LocationChanged event
35496         * Control.cs:
35497           - UpdateBounds after creation to find out where the WM placed us
35498           - Make sure that if the ParentForm changes location the Form
35499             is notified
35500         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35501             to the root, but to whatever the WM placed around us.
35502             Translate to root coordinates before returning toplevel
35503             coordinates
35504         * XplatUIWin32.cs: Removed debug output
35505         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35506           flag to GetWindowPos, to allow translation of coordinates on X11
35507
35508 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35509
35510         * ListBox.cs: connect LostFocus Event
35511
35512 2005-01-27  Peter Bartok  <pbartok@novell.com>
35513
35514         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35515           XplatUIX11.cs: Extended the Systray API
35516         * Form.cs: Removed debug output
35517         * Application.cs: Fixed focus assignment, always need to call
35518           XplatUI.Activate() since Form.Activate() has rules that may
35519           prevent activation
35520         * NotifyIcon.cs: Should be complete now
35521         * ToolTip.cs: Worked around possible timer bug
35522
35523 2005-01-27  Jackson Harper  <jackson@ximian.com>
35524
35525         * TabControl.cs:
35526         - Only invalidate the effected tabs when the
35527         selected index changes. This reduces drawing and gets rid of some
35528         flicker.
35529         - Only refresh if the tabs need to be shifted, otherwise only
35530         invalidate the slider button.
35531         - On windows the tabs are not filled to right if the slider is
35532         visible.
35533         
35534 2005-01-27  Jackson Harper  <jackson@ximian.com>
35535
35536         * TabControl.cs: Only refresh on mouseup if we are showing the
35537         slider. Also only invalidate the button whose state has changed.
35538
35539 2005-01-26  Peter Bartok  <pbartok@novell.com>
35540
35541         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35542         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35543           and SystrayRemove() methods
35544         * XplatUIOSX.cs: Stubbed Systray methods
35545         * XplatUIX11.cs:
35546           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35547             methods
35548           - Fixed broken XChangeProperty calls (marshalling messed up things)
35549         * X11Structs.cs: Added enums and structs required for Size hinting
35550         * NotifyIcon.cs: Added & implemented
35551
35552 2005-01-26  Jackson Harper  <jackson@ximian.com>
35553
35554         * TabControl.cs: Space vertically layed out tabs properly.
35555
35556 2005-01-26  Peter Bartok  <pbartok@novell.com>
35557
35558         * Form.cs (CreateClientParams): Always set the location to 0,0
35559           since we're a child window.
35560
35561         * Control.cs (SetVisibleCore): Always explicitly setting the location
35562           of a toplevel window, apparently X11 doesn't like to move windows
35563           while they're not mapped.
35564
35565 2005-01-26  Jackson Harper  <jackson@ximian.com>
35566
35567         * TabControl.cs: Implement FillToRight size mode with vertically
35568         rendered tabs.
35569
35570 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35571
35572         * ControlPaint.cs, ThemeWin32Classic.cs
35573                 - Fixes DrawFocusRectangle
35574
35575 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35576
35577         * MenuAPI.cs:
35578                 - MenuBar tracking only starts when item is first clicked
35579                 - Fixes menu hidding for multiple subitems
35580                 - Unselect item in MenuBar when item Executed
35581                 - Fixes bug 71495
35582
35583 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35584
35585         * ListControl.cs:
35586                 - IsInputKey for ListBox
35587         * ListBox.cs:
35588                 - Focus item
35589                 - Shift and Control item selection
35590                 - Implement SelectionMode.MultiExtended
35591                 - Fixes RightToLeft
35592         * ComboBox.cs:
35593                 - IsInputKey implemented
35594                 - Do not generate OnTextChangedEdit on internal txt changes
35595                 
35596 2005-01-23  Peter Bartok  <pbartok@novell.com>
35597
35598         * AccessibleObject.cs: Partially implemented Select()
35599         * MonthCalendar.cs: Added missing attributes and events
35600         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35601           form can properly override CreateParams.
35602         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35603           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35604           Control performs Invalidate & Update
35605         * NativeWindow (CreateHandle): Added special handling for Form
35606           and Form.FormParent classes to allow overriding of From.CreateParams
35607         * Control.cs:
35608           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35609             name 'owner'
35610           - ControlNativeWindow: Added Owner property
35611           - Removed usage of Refresh() on property changes, changed into
35612             Invalidate(), we need to wait until the queue is processed for
35613             updates, direct calls might cause problems if not all vars for
35614             Paint are initialized
35615           - Added call to UpdateStyles() when creating the window, to set any
35616             styles that CreateWindow might have ignored.
35617           - Added support for Form CreateParent overrides to UpdateStyles()
35618         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35619           CreateParams are now properly overridable
35620         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35621           CreateParams are now properly overridable
35622
35623 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35624
35625         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35626         OnTextBoxChanged.
35627
35628         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35629         recursive invocation that I have not figured out yet.
35630
35631         Reset the timer when not using (it was accumulating).
35632
35633
35634         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35635         user has made changes that require validation.
35636
35637         Reset changing to avoid loops.
35638
35639 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35640
35641         * NumericUpDown.cs: Display value at startup.
35642
35643         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35644         ValidateEditText.
35645
35646         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35647         filled in.  Added some basic parsing of text.
35648
35649         Still missing the OnXXX method overrides, and figuring out the
35650         events that must be emitted.
35651
35652         * UpDownBase.cs: Handle UserEdit on the Text property.
35653         
35654 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35655
35656         * ComboBox.cs:
35657           - Fixes IntegralHeight
35658           - ToString method
35659
35660 2005-01-21  Jackson Harper  <jackson@ximian.com>
35661
35662         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35663         is set so that the page visibility is updated and the tabs are
35664         sized correctly.
35665
35666 2005-01-21  Jackson Harper  <jackson@ximian.com>
35667
35668         * TabControl.cs: Use cliping rectangle for blitting. Give the
35669         theme the clipping rect so we can do clipping while
35670         drawing. Remove some debug code.
35671
35672 2005-01-21  Jackson Harper  <jackson@ximian.com>
35673
35674         * TabPage.cs: Add a new method so tab pages can force the tab
35675         control to recalculate the tab page sizes.
35676         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35677         sizes.
35678
35679 2005-01-20  Jackson Harper  <jackson@ximian.com>
35680
35681         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35682
35683 2005-01-20  Jackson Harper  <jackson@ximian.com>
35684
35685         * TreeView.cs: Set the bounds for nodes properly. They were
35686         getting screwed up when checkboxes were not enabled, but images
35687         were.
35688
35689 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35690
35691         * ListBox.cs:
35692                 - Owner draw support
35693                 - Fixes
35694                 
35695 2005-01-20  Jackson Harper  <jackson@ximian.com>
35696
35697         * XplatUIStructs.cs: More misc keys
35698         * X11Keyboard.cs: Ignore some control keys.
35699
35700 2005-01-20  Jackson Harper  <jackson@ximian.com>
35701
35702         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35703         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35704
35705 2005-01-19  Peter Bartok  <pbartok@novell.com>
35706
35707         * Control.cs: Un-selecting the control when it is loosing focus
35708
35709 2005-01-19  Jackson Harper  <jackson@ximian.com>
35710
35711         * TreeView.cs: Hook up to the text controls leave event so we can
35712         end editing when the users clicks outside the text box.
35713         
35714 2005-01-19  Jackson Harper  <jackson@ximian.com>
35715
35716         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35717         get set in the conversion array.
35718
35719 2005-01-19  Peter Bartok  <pbartok@novell.com>
35720
35721         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35722           focus is properly set
35723         * Button.cs:
35724           - Added missing attributes
35725           - removed styles, those are already set in the base class
35726         * ButtonBase.cs:
35727           - Added missing attributes
35728           - Added clip window styles
35729         * CheckBox.cs: Added missing attributes
35730         * CommonDialog.cs:
35731           - FormParentWindow.CreateParams: Added required clip styles
35732         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35733           also filters modifier keys
35734         * MessageBox.cs:
35735           - Added assignment of Accept and Cancel button to enable Enter
35736             and Esc keys in MessageBox dialogs
35737           - FormParentWindow.CreateParams: Added required clip styles
35738         * RadioButton.cs: Added missing attributes
35739         * TextControl.cs: No longer draws selection if control does not
35740           have focus
35741         * TextBoxBase.cs:
35742           - Now draws simple rectangle around test area to make it obvious
35743             there's a control. This is a hack until we properly support borders
35744           - A few simple fixes to support selections better, now erases selected
35745             text when typing, and resets selection when using movement keys
35746
35747 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35748
35749         * UpDownBase.cs: Added some new properties.
35750
35751         * DomainUpDown.cs: Implement a lot to get my test working.
35752
35753 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35754
35755         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35756
35757 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35758
35759         * OSXStructs (WindowAttributes): Fixed csc complaints
35760
35761 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35762
35763         * XplayUIOSX.cs:
35764           OSXStructs.cs: Initial refactor to move enums and consts into
35765           OSXStructs and use them in the driver for greater readability.
35766
35767 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35768
35769         * XplatUIOSX.cs: Initial support for Standard Cursors.
35770         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35771
35772 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35773
35774         * ComboBox.cs: ability to change style when the ctrl is already
35775         created, missing methods and events, bug fixes, signature fixes
35776
35777 2005-01-19  Peter Bartok  <pbartok@novell.com>
35778
35779         * Cursors.cs (ctor): Added ctor to fix signature
35780
35781 2005-01-18  Peter Bartok  <pbartok@novell.com>
35782
35783         * Button.cs: Implemented DoubleClick event
35784         * ButtonBase.cs:
35785           - Fixed keyboard handling to behave like MS, where the press of
35786             Spacebar is equivalent to a mousedown, and the key release is
35787             equivalent to mouseup. Now a spacebar push will give the same
35788             visual feedback like a mouse click.
35789           - Added missing attributes
35790           - Added ImeModeChanged event
35791           - Added support for generating DoubleClick event for derived classes
35792         * CheckBox.cs:
35793           - Implemented DoubleClick event
35794           - Added missing attributes
35795         * CommonDialog.cs: Added missing attribute
35796         * ContextMenu.cs: Added missing attributes
35797         * RadioButton.cs:
35798           - AutoChecked buttons do not allow to be unselected when clicked
35799             (otherwise we might end up with no selected buttons in a group)
35800           - Added missing attributes
35801           - Implemented DoubleClickEvent
35802         * ThreadExceptionDialog.cs: Enabled TextBox code
35803
35804 2005-01-18  Peter Bartok  <pbartok@novell.com>
35805
35806         * Form.cs: Removed debug output
35807         * Button.cs: Added support for DoubleClick method
35808
35809 2005-01-18  Peter Bartok  <pbartok@novell.com>
35810
35811         * Form.cs:
35812           - Added method to parent window that allows triggering size
35813             calculations when a menu is added/removed
35814           - set_Menu: Cleaned up mess from early days of Form and Control,
35815             now properly triggers a recalc when a menu is added/removed
35816           - Added case to select form itself as focused form if no child
35817             controls exist
35818           - Added PerformLayout call when showing dialog, to ensure properly
35819             placed controls
35820         * Control.cs:
35821           - Select(): Made internal so Form can access it
35822           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35823             status
35824         * Application.cs (Run): Removed hack and calls PerformLayout instead
35825           to trigger calculation when Form becomes visible
35826
35827 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35828
35829         * ComboBox.cs: fixes for ownerdraw
35830
35831 2005-01-18  Peter Bartok  <pbartok@novell.com>
35832
35833         * TextControl.cs:
35834           - Sentinel is no longer static, each Document gets it's own, this
35835             avoids locking or alternatively overwrite problems when more
35836             than one text control is used simultaneously.
35837           - Switched to use Hilight and HilightText brushes for text selection
35838
35839         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35840
35841 2005-01-18  Peter Bartok  <pbartok@novell.com>
35842
35843         * Control.cs:
35844           - Hooked up the following events:
35845                 o ControlAdded
35846                 o ControlRemoved
35847                 o HandleDestroyed
35848                 o ImeModeChanged
35849                 o ParentChanged
35850                 o TabStopChanged
35851                 o Invalidated
35852                 o SystemColorsChanged
35853                 o ParentFontChanged
35854                 o Move
35855           - Removed debug output
35856           - Added a call to the current theme's ResetDefaults when a color change
35857             is detected
35858         * Form.cs: Now setting the proper ImeMode
35859         * Theme.cs: Defined a method to force recreation of cached resources
35860           and rereading of system defaults (ResetDefaults())
35861         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35862
35863 2005-01-17  Peter Bartok  <pbartok@novell.com>
35864
35865         * Control.cs: Added missing attributes
35866
35867 2005-01-17  Jackson Harper  <jackson@ximian.com>
35868
35869         * TreeNode.cs: Implement editing. Add missing properties selected
35870         and visible.
35871         * TreeView.cs: Implement node editing. Also some fixes to use
35872         Invalidate (invalid area) instead of Refresh when selecting.
35873
35874 2005-01-17  Peter Bartok  <pbartok@novell.com>
35875
35876         * Control.cs:
35877           - Implemented InvokeGotFocus() method
35878           - Implemented InvokeLostFocus() method
35879           - Implemented InvokePaint() method
35880           - Implemented InvokePaintBackground() method
35881           - Implemented InvokeClick() method
35882           - Implemented FindForm() method
35883           - Implemented RectangleToClient() method
35884           - Implemented ClientToRectangle() method
35885           - Implemented ResetBackColor() method
35886           - Implemented ResetCursor() method
35887           - Implemented ResetFont() method
35888           - Implemented ResteForeColor() method
35889           - Implemented ResetImeMode() method
35890           - Implemented ResetLeftToRight() method
35891           - Implemented ResetText() method
35892           - Implemented Scale() methods
35893           - Implemented ScaleCore() method
35894           - Implemented Update() method
35895           - Removed unused variables
35896           - Stubbed AccessibilityNotifyClients and
35897             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35898             with those yet)
35899           - Now setting proper default for RightToLeft property
35900           - Fixed bug in SetClientSizeCore that would cause windows to get
35901             really big
35902           - Now sending Click/DoubleClick events
35903           - Now selecting controls when left mouse button is clicked on
35904             selectable control
35905         * AccessibleEvents.cs: Added
35906         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35907         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35908         * XplatUIWin32.cs: Implemented UpdateWindow() method
35909         * XplatUIX11.cs: Implemented UpdateWindow() method
35910         * Form.cs: Removed stray semicolon causing CS0162 warning
35911         * ThemeWin32Classic.cs: Fixed unused variable warnings
35912         * ScrollableControl.cs: Now calls base method for ScaleCore
35913         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35914           style to avoid interference with internal click handler (which is
35915           different than standard Control click handling)
35916         * RadioButton.cs:
35917           - Now unchecks all sibling radio buttons when control is
35918             selected (Fixes #68756)
35919           - Removed internal tabstop variable, using the one inherited from
35920             Control
35921
35922 2005-01-17  Jackson Harper  <jackson@ximian.com>
35923
35924         * NavigateEventArgs.cs: Fix base type.
35925         * LinkLabel.cs: Sig fix
35926         
35927 2005-01-17  Jackson Harper  <jackson@ximian.com>
35928
35929         * TreeView.cs: Only invalidate the effected nodes bounds when
35930         selecting nodes.
35931
35932 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35933
35934         * XplatUIWin32.cs: fixes Win32 marshaling
35935         * XplatUIX11.cs: fixes method signature
35936
35937 2005-01-17  Peter Bartok  <pbartok@novell.com>
35938
35939         * XplatUIX11.cs: Clean up resources when we no longer need them
35940
35941 2005-01-17  Peter Bartok  <pbartok@novell.com>
35942
35943         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35944           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35945           and DestroyCursor() methods.
35946         * Cursor.cs: Partially implemented, now supports standard cursors;
35947           still contains some debug code
35948         * Cursors.cs: Implemented class
35949         * Control.cs:
35950           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35951             appropriate cursor
35952           - Implemented Cursor property
35953           - Replaced break; with return; more straightforwar and possibly
35954             faster
35955           - Now properly setting the result for WM_HELP
35956         * X11Structs.cs: Added CursorFontShape enum
35957         * XplatUIStructs.cs:
35958           - Added StdCursor enum (to support DefineStdCursor() method)
35959           - Added HitTest enum (to support sending WM_SETCURSOR message)
35960         * XplatUIX11.cs:
35961           - Now sends the WM_SETCURSOR message
35962           - Implemented new cursor methods
35963         * XplatUIOSX.cs: Stubbed new cursor methods
35964         * XplatUIWin32.cs:
35965           - Implemented new cursor methods
35966           - Added GetSystemMetrics function and associated enumeration
35967
35968 2005-01-15  Peter Bartok  <pbartok@novell.com>
35969
35970         * Control.cs:
35971           - WndProc(): Now handles EnableNotifyMessage
35972           - SelectNextControl(): Fixed bug where if no child or sibling
35973             controls exist we looped endlessly
35974
35975 2005-01-14  Jackson Harper  <jackson@ximian.com>
35976
35977         * TreeView.cs: Recalculate the tab pages when a new one is added
35978         so that the proper bounding rects are created.
35979
35980 2005-01-14  Jackson Harper  <jackson@ximian.com>
35981
35982         * TreeView.cs: Draw a gray box instead of a grip in the lower
35983         right hand corner when there are both horizontal and vertical
35984         scroll bars.
35985
35986 2005-01-14  Jackson Harper  <jackson@ximian.com>
35987
35988         * Control.cs: When erasing backgrounds use FromHwnd instead of
35989         FromHdc when there is a NULL wparam. This occurs on the X driver.
35990         * XplatUIX11.cs: Set the wparam to NULL.
35991
35992 2005-01-13  Jackson Harper  <jackson@ximian.com>
35993
35994         * PictureBox.cs: Implement missing methods (except ToString, need
35995         to test that on windows) and events. When visibility is changed we
35996         need to redraw the image because the buffers are killed. When size
35997         is changed refresh if the sizemode needs it.
35998
35999 2005-01-13  Peter Bartok  <pbartok@novell.com>
36000
36001         * Control.cs (SelectNextControl): Was using wrong method to select
36002           a control
36003
36004 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36005
36006         * ComboBox.cs: fixes dropstyle
36007
36008 2005-01-13  Peter Bartok  <pbartok@novell.com>
36009
36010         * Form.cs:
36011           - Implemented Select() override
36012           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
36013           - Now sets keyboard focus on startup
36014         * Control.cs (SelectNextControl): Now properly handles directed=true
36015         * TextBoxBase.cs:
36016           - WndProc: Now passes tab key on to base if AcceptTabChar=false
36017           - Added (really bad) focus rectangle (mostly for testing)
36018         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
36019           to enforce redraw on focus changes
36020         * ContainerControl.cs:
36021           - Fixed detection of Shift-Tab key presses
36022           - Fixed traversal with arrow keys
36023         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
36024           gonna keep this or if it's complete yet
36025         
36026 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
36027
36028         * ComboBox.cs: missing properties, fixes
36029
36030 2005-01-13  Peter Bartok  <pbartok@novell.com>
36031
36032         * Panel.cs (ctor): Setting Selectable window style to off
36033         * Splitter.cs (ctor): Setting Selectable window style to off
36034         * GroupBox.cs (ctor): Setting Selectable window style to off
36035         * Label.cs (ctor): Setting Selectable window style to off
36036
36037 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
36038
36039         * UpDownBase.cs (InitTimer): If the timer has been already
36040         created, enable it.
36041
36042         Use a TextBox instead of a Label.
36043
36044 2005-01-12  Jackson Harper  <jackson@ximian.com>
36045
36046         * TreeView.cs: Refresh the tree after sorting the nodes. Always
36047         draw the connecting node lines (when ShowLines is true).
36048         * TreeNode.cs: The nodes index can now be updated. This is used
36049         when a node collection is sorted.
36050         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
36051         insert or an existing unsorted node collection can be sorted.
36052         
36053 2005-01-12  Peter Bartok  <pbartok@novell.com>
36054
36055         * ContainerControl.cs: Implemented ProcessDialogKeys()
36056
36057 2005-01-12  Peter Bartok  <pbartok@novell.com>
36058
36059         * Control.cs:
36060           - Implemented SelectNextControl() method
36061           - Several focus related bug fixes
36062           - Fixed Docking calculations to match MS documentation and
36063             behaviour
36064
36065 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
36066
36067         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
36068         bug fixes
36069
36070 2005-01-12  Peter Bartok  <pbartok@novell.com>
36071
36072         * Control.cs:
36073           - Fixed broken Contains() method
36074           - Implemented GetNextControl() method. Finally. This is the pre-
36075             requisite for focus handling.
36076
36077 2005-01-12  Peter Bartok  <pbartok@novell.com>
36078
36079         * OSXStrucs.cs: Added
36080
36081 2005-01-12  Peter Bartok  <pbartok@novell.com>
36082
36083         * XplatUIWin32.cs:
36084           - Removed PeekMessageFlags
36085           - Implemented SetWindowStyle() method
36086         * XplatUIStructs.cs: Added PeekMessageFlags
36087         * X11Structs: Added missing border_width field to XWindowChanges struct
36088         * XplatUIX11.cs:
36089           - PeekMessage: Now throws exception if flags which are not yet
36090             supported are passed
36091           - Implemented SetWindowStyle() method
36092           - Fixed SetZOrder to handle AfterHwnd properly
36093         * XplatUI.cs: Added SetWindowStyle() method
36094         * XplatUIDriver.cs: Added SetWindowStyle() abstract
36095         * Control.cs:
36096           - Implemented UpdateStyles() method
36097           - Implemented UpdateZOrder() method
36098         * XplatUIOSX.cs: Added SetWindowStyle() stub
36099
36100 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36101
36102         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36103         button mouse).
36104
36105
36106 2005-01-11  Jackson Harper  <jackson@ximian.com>
36107
36108         * TreeView.cs: Still need to draw lines to siblings even if out of
36109         the current node is out of the clip.
36110
36111 2005-01-11  Jackson Harper  <jackson@ximian.com>
36112
36113         * TreeView.cs: When setting the hbar/vbar/grip position use
36114         SetBounds so that perform layout is only called once. Also suspend
36115         and resume layout so layout is only done once for all controls.
36116         - Removed some debug fluff
36117         * SizeGrip.cs: Call base implmentation in overriding methods.
36118         - When visibility is changed the drawing buffers are killed so we
36119         need to redraw.
36120
36121 2005-01-11  Jackson Harper  <jackson@ximian.com>
36122
36123         * TreeView.cs: Calculate the open node count while drawing. This
36124         saves us an entire tree traversal for every paint operation. Use
36125         a member var for the open node count so less vars are passed around.
36126
36127 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36128
36129         * MonthCalendar.cs:
36130         - fixed selection to use mousemove, not mouse polling on timer
36131         * ThemeWin32Classic.cs
36132         - removed redundant unused variable "no_more_content"
36133         
36134 2005-01-11  Peter Bartok  <pbartok@novell.com>
36135
36136         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36137           are pending, so it now calls PeekMessage instead of GetMessage;
36138           implemented a incomplete version of PeekMessage
36139         
36140 2005-01-11  Peter Bartok  <pbartok@novell.com>
36141
36142         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36143           I18n issues
36144         * TextBoxBase.cs: Added sending of TextChanged event
36145
36146 2005-01-10  Jackson Harper  <jackson@ximian.com>
36147
36148         * TreeView.cs: Try not to draw outside the clipping rectangle on
36149         each node element.
36150
36151 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36152
36153         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36154
36155 2005-01-10  Jackson Harper  <jackson@ximian.com>
36156
36157         * TreeView.cs:
36158         - Implement fast scrolling. Now only the newly
36159         exposed nodes are drawn and the old image is moved using the
36160         XplatUI::ScrollWindow method.
36161         - Factor in height of nodes when calculating whether or not the
36162         node is in the clipping rect.
36163
36164 2005-01-10  Jackson Harper  <jackson@ximian.com>
36165
36166         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36167
36168 2005-01-10  Peter Bartok  <pbartok@novell.com>
36169
36170         * Application.cs: Added temporary hack to resolve all our resize
36171           required issues on startup. This will get fixed properly at
36172           some point in the future
36173
36174 2005-01-10  Jackson Harper  <jackson@ximian.com>
36175
36176         * SizeGrip.cs: New internal class that is used as a sizing
36177         grip control...hence the name.
36178
36179 2005-01-10  Peter Bartok  <pbartok@novell.com>
36180
36181         * Control.cs: Implemented proper TabIndex handling, now assigning
36182           a tabindex when a control is added to a container
36183         * GroupBox.cs (ctor): Now sets the Container style bit, required
36184           for Control.GetNextControl()
36185
36186 2005-01-09  Jackson Harper  <jackson@ximian.com>
36187
36188         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36189
36190 2005-01-09  Peter Bartok <pbartok@novell.com>
36191
36192         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36193           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36194           an overload for ScrollWindow to allow only scrolling a rectangle
36195
36196 2005-01-09  Peter Bartok <pbartok@novell.com>
36197
36198         * Form.cs:
36199           - Implemented SetDesktopBounds method
36200           - Implemented SetDesktopLocation method
36201
36202 2005-01-08  Jackson Harper  <jackson@ximian.com>
36203
36204         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36205         the node count has changed, this removes to VScroll::Refresh calls
36206         when drawing.
36207
36208 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36209
36210         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36211
36212 2005-01-07  Jackson Harper  <jackson@ximian.com>
36213
36214         * TreeNode.cs: Just update the single node when it is
36215         checked. Don't refresh after toggling, the Expand/Collapse already
36216         handles this.
36217         * TreeView.cs: Respect clipping a little more when drawing. Try
36218         not to redraw things that don't need to be redrawn. Just hide the
36219         scrollbars when they are no longer needed instead of removing
36220         them, so they don't have to be created again and again.
36221         
36222 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36223
36224         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36225         coordinates to window space to place the caret properly, FIXED.
36226         Implement GetWindowState & SetWindowState
36227
36228 2005-01-06  Peter Bartok <pbartok@novell.com>
36229
36230         * Form.cs:
36231           - Implemented ClientSize property
36232           - Implemented DesktopBounds property
36233           - Implemented DesktopLocation property
36234           - Implemented IsRestrictedWindow property
36235           - Implemented Size property
36236           - Implemented TopLevel property
36237           - Implemented FormWindowState property
36238         * Control.cs:
36239           - Implemented GetTopLevel() method
36240           - Implemented SetTopLevel() method
36241         * X11Structs.cs (Atom):
36242           - Added AnyPropertyType definition
36243           - Added MapState definiton and updated XWindowAttribute struct
36244         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36245         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36246         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36247         * XplatUIWin32.cs:
36248           - Implemented GetWindowState() and SetWindowState() methods
36249           - Fixed Win32GetWindowLong return type
36250         * XplatUIX11.cs:
36251           - Introduced central function for sending NET_WM messages
36252           - Implemented GetWindowState() and SetWindowState() methods
36253         * TextBoxBase.cs (set_Lines):
36254           - Now uses Foreground color for text added via Text property (Duh!)
36255           - Added code to remember programmatically requested size (fixes
36256             behaviour when Multiline is set after Size)
36257           - Added AutoSize logic
36258
36259 2005-01-06  Jackson Harper  <jackson@ximian.com>
36260
36261         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36262
36263 2005-01-06  Jackson Harper  <jackson@ximian.com>
36264
36265         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36266         set to less then 0.
36267
36268 2005-01-06  Jackson Harper  <jackson@ximian.com>
36269
36270         * ScrollableControl.cs: Lazy init the scrollbars.
36271         
36272 2005-01-06  Jackson Harper  <jackson@ximian.com>
36273
36274         * Theme.cs: Speed up getting pens and solid brushes, by using
36275         their ARGB as a hash instead of tostring and not calling Contains.
36276
36277 2005-01-06  Peter Bartok <pbartok@novell.com>
36278
36279         * Form.cs:
36280           - Implemented OnActivated and OnDeactivate event trigger
36281           - Implemented Activate() method
36282           - Fixed ShowDialog() to activate the form that was active before
36283             the dialog was shown
36284         * XplatUIX11.cs:
36285           - Added global active_window var that tracks the currently active
36286             X11 window
36287           - Now always grabs Property changes from the root window to always
36288             catch changes on the active window property
36289           - Added code to PropertyNotify handler to send Active/Inactive
36290             messages when state changes. This puts X11 and Win32 en par on
36291             WM_ACTIVATE notifications (except for double notifications when
36292             the user clicks away from our modal window to another one of our
36293             windows)
36294
36295 2005-01-05  Jackson Harper  <jackson@ximian.com>
36296
36297         * ImageList.cs: Implment ctor
36298
36299 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36300
36301         * XplatUIOSX.cs: Implement Activate/SetTopmost
36302
36303 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36304
36305         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36306
36307 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36308
36309         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36310
36311 2005-01-05  Peter Bartok <pbartok@novell.com>
36312
36313         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36314           XplatUIOSX.cs: Added GetActive method to return the currently
36315           active window for the application (or null, if none is active)
36316         * Form.cs:
36317           - Implemented ActiveForm
36318           - Commented out owner assignment for modal dialogs (causes problems
36319             on Win32, since the owner will be disabled)
36320           - Reworked some Active/Focus handling (still incomplete)
36321         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36322           (causes problems on Win32, since the owner will be disabled)
36323         * IWin32Window: Added ComVisible attribute
36324
36325 2005-01-05  Peter Bartok <pbartok@novell.com>
36326
36327         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36328           required XplatUI functions.
36329
36330 2005-01-05  Peter Bartok <pbartok@novell.com>
36331
36332         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36333           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36334           to implement focus and activation handling; still incomplete and
36335           with debug output
36336
36337 2005-01-04  Peter Bartok <pbartok@novell.com>
36338
36339         * TextBoxBase.cs: Changed access level for Document property to
36340           match switch to internal for TextControl
36341
36342 2005-01-04  Peter Bartok <pbartok@novell.com>
36343
36344         * AccessibleObject: Added ComVisible attribute
36345
36346 2005-01-04  Jackson Harper  <jackson@ximian.com>
36347
36348         * X11Keyboard.cs: Remove unneeded var.
36349
36350 2005-01-04  Jackson Harper  <jackson@ximian.com>
36351
36352         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36353         but PAINT.
36354         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36355         ClientMessage. This makes apps exit cleanly (more often).
36356         
36357 2005-01-04  Jackson Harper  <jackson@ximian.com>
36358
36359         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36360         handling focus, return correct colors and fonts,
36361         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36362         handle selection, horizontal scrolling, and mouse interaction.
36363
36364 2005-01-04  Peter Bartok <pbartok@novell.com>
36365
36366         * ICommandExecutor.cs: Added
36367         * IDataGridColumnStyleEditingNotificationService.cs: Added
36368         * IFeatureSupport.cs: Added
36369         * IFileReaderService.cs: Added
36370         * IDataObject.cs: Added ComVisible attribute
36371         * AmbientProperties.cs: Added
36372         * BaseCollection.cs: Added missing attributes
36373         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36374         * BaseCollection.cs: Added missing attributes
36375         * Binding.cs: Added TypeConverter attribute
36376         * BindingContext.cs: Added DefaultEvent attribute
36377         * BindingsCollection.cs: Added DefaultEvent attribute
36378         * Button.cs: Added DefaultValue attribute
36379         * DragEventArgs.cs: Added ComVisible attribute
36380         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36381         * KeyEventArgs.cs: Added ComVisible attribute
36382         * KeyPressEventArgs.cs: Added ComVisible attribute
36383         * MouseEventArgs.cs: Added ComVisible attribute
36384         * NavigateEventArgs.cs: Added
36385         * NavigateEventHandler.cs: Added
36386         * FeatureSupport.cs: Added
36387         * OSFeature.cs: Added
36388         * Theme.cs: Added abstract Version property to support OSFeature
36389         * ThemeWin32Classic.cs: Added Version property to
36390           support OSFeature.Themes
36391         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36392           the proper styles to avoid background drawing are set, also doesn't
36393           match MS signature
36394         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36395         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36396         * ScrollEventArgs.cs: Added ComVisible attribute
36397         * SplitterEventArgs.cs: Added ComVisible attribute
36398         * AccessibleSelection.cs: Added Flags attribute
36399         * Appearance.cs: Added ComVisible attribute
36400         * Border3DSide.cs: Added ComVisible attribute
36401         * Border3DStyle.cs: Added ComVisible attribute
36402         * BorderStyle.cs: Added ComVisible attribute
36403         * DragAction.cs: Added ComVisible attribute
36404         * ErrorBlinkStyle.cs: Added
36405         * ScrollEventType.cs: Added ComVisible attribute
36406         * AnchorStyles.cs: Added Editor attribute
36407         * DockStyle.cs: Added Editor attribute
36408         * HorizontalAlignment.cs: Added ComVisible attribute
36409         * HelpEventArgs.cs: Added ComVisible attribute
36410         * PaintEventArgs.cs: Added IDisposable
36411
36412 2005-01-04  Peter Bartok <pbartok@novell.com>
36413
36414         * TextControl.cs: Switched Line, LineTag and Document classes to
36415           internal
36416
36417 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36418
36419         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36420         Simple mode, fixes, IntegralHeight, etc.
36421
36422 2005-01-04  Peter Bartok <pbartok@novell.com>
36423
36424         * TextBoxBase.cs: Using proper font variable now
36425
36426 2005-01-04  Peter Bartok <pbartok@novell.com>
36427
36428         * Form.cs (ShowDialog): Set parent to owner, if provided
36429         * GroupBox.cs: Removed unused vars
36430         * TextControl.cs:
36431           - Added GetHashCode() for Document and LineTag classes
36432           - Removed unused variables
36433           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36434             to allow translation between continuous char position and line/pos
36435         * CheckBox.cs: Removed vars that are provided by base class
36436         * RadioButton.cs: Removed vars that are provided by base class, added
36437           new keyword where required
36438         * LinkLabel.cs: Added new keyword where required
36439         * Control.cs (WndProc): Removed unused variable
36440         * TextBoxBase.cs:
36441           - Finished SelectionLength property
36442           - Implemented SelectionStart property
36443           - Implemented Text property
36444           - Removed unused vars
36445         * MessageBox.cs: Added new keyword where required
36446         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36447           WndProc signature
36448         * MenuAPI.cs: Added new keyword where required
36449         * ButtonBase.cs: Removed vars that are provided by base class, added
36450           new keyword where required
36451         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36452           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36453           into this)
36454         * Application.cs (Run): Now triggers the ThreadExit event
36455         * CommonDialog.cs: Added new keyword where required; now properly sets
36456           parent (owner) for dialog
36457         * XplatUIX11.cs: Commented out unused vars
36458         * StatusBar.cs: Fixed signature for Text property
36459         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36460
36461 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36462
36463         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36464         TrackBar.cs, MonthCalendar.cs: remove unused vars
36465
36466 2005-01-03  Jackson Harper  <jackson@ximian.com>
36467
36468         * ThemeWin32Classic.cs:
36469         * X11Keyboard.cs: Remove unused vars.
36470
36471 2005-01-03  Peter Bartok  <pbartok@novell.com>
36472
36473         * TextBox.cs:
36474           - set_Text: Tied into TextControl
36475           - set_TextAlignment: Tied into TextControl
36476         * TextControl.cs:
36477           - Added alignment properties and implemented alignment handling
36478             and drawing (still has a bug, not generating proper expose events)
36479           - Added new Line() constructor to allow passing the line alignment
36480           - Fixed selection setting, properly handling end<start now
36481           - Added aligment considerations to RecalculateDocument()
36482         * TextBoxBase.cs:
36483           - Now properly enforces control height for single line controls
36484           - Added support for CharacterCasing
36485           - Added IsInputKey override
36486           - Fixed Keys.Enter logic
36487           - Added SetBoundsCore override
36488           - Fixed mouse selection handling
36489
36490 2005-01-03  Jackson Harper  <jackson@ximian.com>
36491
36492         * TreeView.cs:
36493           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36494           - Checkboxes are always aligned to the bottom of the node,
36495           regardless of item height.
36496           - Use the node bounds to draw the text so we can center it when
36497           the item height is greater then the font height.
36498           - Node::Bounds are only the text part of the node.
36499         * TreeNode.cs: New method to combine collapsing and unchecking all
36500           nodes recursively.
36501
36502 2005-01-02  Jackson Harper  <jackson@ximian.com>
36503
36504         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36505         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36506         tree when a check is changed. TODO: Only refresh the checked node.
36507
36508 2004-12-30  Jackson Harper  <jackson@ximian.com>
36509
36510         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36511         * TreeNode.cs: When collapsing make sure to never collapse the
36512         root node.
36513
36514 2004-12-29  Jackson Harper  <jackson@ximian.com>
36515
36516         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36517         
36518 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36519
36520         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36521
36522 2004-12-28  Peter Bartok  <pbartok@novell.com>
36523
36524         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36525           not yet assigned
36526
36527 2004-12-28  Peter Bartok  <pbartok@novell.com>
36528
36529         * Control.cs (WndProc): Added WM_HELP handler, now generates
36530           HelpRequested event
36531         * Form.cs: Added HelpButton property and required support code
36532         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36533
36534 2004-12-28  Peter Bartok  <pbartok@novell.com>
36535
36536         * CommonDialog.cs:
36537           - Made DialogForm.owner variable internal
36538           - Added check to ensure owner form is set before setting
36539             owner properties in CreateParams
36540
36541 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36542
36543         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36544           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36545           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36546           system to support borderless/titleless windows (implements menus).
36547           Fix GetWindowPos.  Implement initial background color support for
36548           views.
36549
36550 2004-12-28  Peter Bartok  <pbartok@novell.com>
36551
36552         * Form.cs (get_CreateParams): Make sure we have an owner before using
36553           the owner variable. Implement proper default if no owner exists
36554
36555 2004-12-28  Peter Bartok  <pbartok@novell.com>
36556
36557         * In preparation for making Managed.Windows.Forms the default build target
36558           for System.Windows.Forms, the following stubbed files were added.
36559           Dialogs are currently being implemented by contributors and are only
36560           short-term place holders.
36561         * ColorDialog.cs: Initial check-in (minmal stub)
36562         * DataGrid.cs: Initial check-in (minimal stub)
36563         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36564         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36565         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36566         * FontDialog.cs: Initial check-in (minimal stub)
36567         * FileDialog.cs: Initial check-in (minimal stub)
36568         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36569         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36570         * OpenFileDialog: Initial check-in (minimal stub)
36571         * IComponentEditorPageSite.cs: Initial check-in
36572         * Splitter.cs: Initial check-in (for Jackson)
36573         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36574         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36575         * TextBox.cs: Initial check-in; still needs some wiring to
36576           TextControl backend
36577         * Form.cs: Implemented ControlBox property
36578         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36579         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36580         * TextControl.cs: Added selection functionality; added todo header
36581         * TextBoxBase.cs:
36582           - Implemented Lines property
36583           - Implemented TextHeight property
36584           - Implemented SelectedText property
36585           - Implemented SelectionLength property
36586           - Implemented SelectAll method
36587           - Implemented ToString method
36588           - Removed and cleaned up some debug code
36589           - Implemented (still buggy) mouse text selection
36590
36591 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36592
36593         * ComboBox.cs: Complete DropDownList implementation, fixes.
36594
36595 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36596
36597         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36598         * ComboBoxStyle.cs: ComboBoxStyle enum
36599         * ComboBox.cs: Initial work on ComboBox control
36600
36601 2004-12-21  Peter Bartok  <pbartok@novell.com>
36602
36603         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36604           forward so that anything that creates a window gets the default,
36605           also no longer uses Visible property in CreateParams to avoid
36606           walking up the parent chain and possibly get the wrong visible
36607           status. Fixed IsVisible to no longer walk up to the parent.
36608
36609 2004-12-21  Peter Bartok  <pbartok@novell.com>
36610
36611         * Form.cs (ShowDialog): Unset modality for the proper window
36612  
36613 2004-12-20  Peter Bartok  <pbartok@novell.com>
36614
36615         * CommonDialog.cs: Initial check-in
36616
36617 2004-12-20  Peter Bartok  <pbartok@novell.com>
36618
36619         * Control.cs (Visible): Now uses the parent window instead of the
36620           client area window for the property
36621
36622         * Form.cs
36623           - ShowDialog(): Now uses the proper window for modality
36624           - The default visibility state for the form parent is now false. This
36625             will prevent the user from seeing all the changes to the form and
36626             its controls before the application hits Application.Run()
36627           - Removed some stale commented out code
36628
36629         * NativeWindow.cs:
36630           - Added FindWindow() method to have a method to check for existence
36631             of a window handle
36632           - Added ability to override default exception handling (for example
36633             when debugging with VS.Net; to do this the ExternalExceptionHandler
36634             define must be set
36635           - Removed some useless debug output
36636
36637         * XplatUIX11.cs:
36638           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36639             not working as expected
36640           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36641             property to allow switching back to the modal window if focus is
36642             given to another one of our windows (Application Modal)
36643           - Now only sets override_redirect if we create a window
36644             without WS_CAPTION
36645           - Moved EventMask selection before mapping of newly created window
36646             so we can catch the map event as well
36647           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36648           - Added various Atom related DllImports
36649           - Implemented Exit() method
36650           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36651             in the CreateParams
36652
36653         * MessageBox.cs: Now properly deals with the FormParent window by
36654           providing an override the FormParent CreateParams property to
36655           set as POPUP instead of OVERLAPPED window.
36656
36657 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36658
36659         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36660         Minor code cleanup.
36661
36662 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36663         
36664         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36665
36666 2004-12-18  Peter Bartok  <pbartok@novell.com>
36667
36668         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36669           implementing SetModal() method
36670
36671 2004-12-18  Peter Bartok  <pbartok@novell.com>
36672
36673         * X11Structs.cs (XGCValues): Fixed type of function element
36674         * XplatUI.cs: Added ScrollWindow() method
36675         * XplatUIDriver.cs: Added ScrollWindow() abstract
36676         * XplatUIWin32.cs: Implemented ScrollWindow() method
36677         * XplatUIX11.cs: Implemented ScrollWindow() method
36678         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36679
36680 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36681
36682         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36683         Some more keyboard support (INCOMPLETE)
36684
36685 2004-12-17  Peter Bartok  <pbartok@novell.com>
36686
36687         * TextControl.cs:
36688         - Added color attribute to line tags.
36689         - Added color argument to all functions dealing with tags
36690         - Added color argument support to various functions
36691         - Fixed miss-calculation of baseline/shift in certain circumstances
36692
36693         * TextBoxBase.cs: Added new color option to test code
36694
36695 2004-12-17  Jackson Harper  <jackson@ximian.com>
36696
36697         * TreeNode.cs:
36698         * MonthCalendar.cs: Signature fixes
36699
36700 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36701
36702         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36703         keyboard event moved it.  Create a new graphics context for each paint resolves this
36704
36705 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36706
36707         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36708         Make caret exist and go blink blink.  Initial keyboard support.
36709         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36710         works.
36711
36712 2004-12-17  Jackson Harper  <jackson@ximian.com>
36713
36714         * XplatUIStructs.cs: Updated set of virtual keycodes.
36715         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36716
36717 2004-12-17  Jackson Harper  <jackson@ximian.com>
36718
36719         * XplatUIX11.cs: Prune old keyboard code.
36720
36721 2004-12-17  Jackson Harper  <jackson@ximian.com>
36722
36723         * XplatUIX11.cs: When generating mouse wparams get the modifier
36724         keys from the ModifierKeys property.
36725
36726 2004-12-17  Jackson Harper  <jackson@ximian.com>
36727
36728         * X11Keyboard.cs: Send up/down input when generating
36729         messages. Remove some unused vars.
36730
36731 2004-12-17  Jackson Harper  <jackson@ximian.com>
36732
36733         * TabControl.cs:
36734         * TreeView.cs: get rid of warnings.
36735
36736 2004-12-17  Jackson Harper  <jackson@ximian.com>
36737
36738         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36739
36740 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36741
36742         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36743           CheckedListBox.cs: Implementation
36744
36745 2004-12-17  Peter Bartok  <pbartok@novell.com>
36746
36747         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36748
36749 2004-12-16  Peter Bartok  <pbartok@novell.com>
36750
36751         * TextControl.cs:
36752           - InsertCharAtCaret(): Fixed start pos fixup
36753           - CaretLine_get: No longer derives the line from the tag, the tag
36754             could be stale if lines in the document have been added or deleted
36755           - RebalanceAfterDelete(): Fixed bug in balancing code
36756           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36757           - Line.Streamline(): Now can also elminate leading empty tags
36758           - DumpTree(): Added a few more tests and prevented exception on
36759             uninitialized data
36760           - Added Debug section for Combining lines
36761           - Delete(): Now copies all remaining properties of a line
36762           
36763         * TextBoxBase.cs:
36764           - Left mousebutton now sets the caret (and middle button still acts
36765             as formatting tester, which must go away soon)
36766           - Added Debug section for Deleting/Combining lines
36767           - Fixed calculations for UpdateView after Combining lines
36768
36769 2004-12-16  Peter Bartok  <pbartok@novell.com>
36770
36771         * TextControl.cs: Now properly aligns text on a baseline, using the
36772           new XplatUI.GetFontMetrics() method. Simplified several calculations
36773         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36774           defined
36775
36776 2004-12-16  Peter Bartok  <pbartok@novell.com>
36777
36778         * XplatUI.cs: Added GetFontMetrics() method
36779         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36780         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36781           into libgdiplus, our private GetFontMetrics function
36782         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36783         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36784
36785 2004-12-16  Jackson Harper  <jackson@ximain.com>
36786
36787         * XplatUIStruct.cs: Add enum for dead keys
36788         * X11Keyboard.cs: Map and unmap dead keys.
36789
36790 2004-12-16  Jackson Harper  <jackson@ximian.com>
36791
36792         * X11Keyboard.cs: Detect and use the num lock mask.
36793
36794 2004-12-16  Peter Bartok  <pbartok@novell.com>
36795
36796         * Control.cs (CreateGraphics): Added check to make sure the
36797           handle of the window exists before calling Graphics.FromHwnd()
36798
36799 2004-12-16  Peter Bartok  <pbartok@novell.com>
36800
36801         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36802           contains a lot of code that's not supposed to be there for the
36803           real thing, but required for developing/testing the textbox
36804           backend.
36805
36806 2004-12-16  Peter Bartok  <pbartok@novell.com>
36807
36808         * TextControl.cs:
36809         - Fixed Streamline method
36810         - Added FindTag method to Line
36811         - Added DumpTree method for debugging
36812         - Added DecrementLines() method for deleting lines
36813         - Fixed UpdateView to update the cursor to end-of-line on single-line
36814           updates
36815         - Added PositionCaret() method
36816         - Fixed MoveCaret(LineDown) to move into the last line, too
36817         - Added InsertChar overload
36818         - Fixed InsertChar tag offset calculations
36819         - Added DeleteChar() method
36820         - Added Combine() method for folding lines
36821         - Fixed Delete() method, no longer allocates wasted Line object and
36822           now copies all properties when swapping nodes
36823         - Delete() method now updates document line counter
36824
36825 2004-12-15  Jackson Harper  <jackson@ximian.com>
36826
36827         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36828         * X11Keyboard.cs: Expose the currently selected modifier keys
36829         through a property.
36830
36831 2004-12-15  Peter Bartok  <pbartok@novell.com>
36832
36833         * TextControl.cs: Initial check-in. Still incomplete
36834
36835 2004-12-15  Jackson Harper  <jackson@ximian.com>
36836
36837         * TreeNode.cs:
36838         * TreeView.cs: Fix build on csc (second time today ;-))
36839
36840 2004-12-15  Jackson Harper  <jackson@ximian.com>
36841
36842         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36843         is calculated and use this for click testing.
36844         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36845
36846 2004-12-15  Jackson Harper  <jackson@ximian.com>
36847
36848         * TreeView.cs: Pass the nodes image index to the image list when
36849         drawing that image.
36850
36851 2004-12-15  Jackson Harper  <jackson@ximian.com>
36852
36853         * X11Keyboard.cs: Set messages hwnd.
36854         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36855         post_message calls.
36856
36857 2004-12-15  Jackson Harper  <jackson@ximian.com>
36858
36859         * X11Keyboard.cs: Fix to compile with csc.
36860         
36861 2004-12-15  Jackson Harper  <jackson@ximian.com>
36862
36863         * X11Structs.cs: Add key mask values
36864         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36865         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36866         down/up foo into WM_CHAR foo
36867         * KeyboardLayouts.cs: Common keyboard layouts
36868         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36869         post messages into the main queue.
36870
36871 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36872
36873         * Button.cs: implement ProcessMnemonic
36874         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36875           brushes everytime
36876         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36877         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36878
36879 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36880         
36881         * MonthCalendar.cs: Implemented click-hold for next/previous month
36882           and date selection
36883           
36884 2004-12-11  Peter Bartok  <pbartok@novell.com>
36885
36886         * X11Structs.cs:
36887           - Added XKeyboardState (moved from XplatUIX11.cs)
36888           - Added XCreateGC related enums and structures
36889           - Added GXFunction for XSetFunction
36890
36891         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36892
36893         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36894           CaretVisible() calls
36895
36896         * ToolTip.cs: Added code to prevent stealing focus from app windows
36897
36898         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36899           DestroyCaret, SetCaretPos and CaretVisible)
36900
36901         * XplatUIX11.cs:
36902           - Added implementation for caret functions
36903           - Moved hover variables into a struct, to make it a bit easier
36904             on the eyes and to debug
36905           - Removed XKeyboardState (moved to XplatUIX11.cs)
36906           - Moved Keyboard properties into the properties region
36907
36908         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36909           call to get a graphics context for our control
36910
36911         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36912
36913         * TreeView.cs: Fixed bug. No matter what color was set it would always
36914           return SystemColors.Window
36915
36916         * XplatUIWin32.cs: Implemented caret overrides
36917
36918 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36919
36920         * ListBox.cs: fire events, implement missing methods and properties,
36921         sorting.
36922
36923 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36924
36925         * MonthCalendar.cs: invalidation bug fixing
36926         * ThemeWin32Classic.cs: paint fixing
36927
36928 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36929
36930         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36931         prepare the CGContextRef there now.
36932
36933 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36934
36935         * MonthCalendar.cs:
36936           - optimisationL only invalidate areas that have changed
36937         * ThemeWin32Classic.cs:
36938           - only paint parts that intersect with clip_area
36939
36940 2004-12-09  Peter Bartok  <pbartok@novell.com>
36941
36942         * Application.cs: Undid changes from r37004 which cause problems
36943         on X11
36944
36945 2004-12-09  Ravindra  <rkumar@novell.com>
36946
36947         * ToolBar.cs: Added support for displaying ContextMenu
36948         attached to a button on ToolBar.
36949         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36950         property.
36951
36952 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36953
36954         * Label.cs: autosize works in text change and removes unnecessary
36955         invalidate
36956
36957 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36958
36959         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36960         remove warnings
36961
36962 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36963
36964         * XplatUIOSX.cs: Added mouse move/click/grab support
36965         Remove some debugging WriteLines not needed anymore.
36966         Add window resizing/positioning.
36967         Fix visibility on reparenting.
36968
36969 2004-12-08  Peter Bartok  <pbartok@novell.com>
36970
36971         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36972
36973 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36974
36975         * XplatUIOSX.cs: Initial checkin
36976         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36977
36978 2004-12-03  Ravindra <rkumar@novell.com>
36979
36980         * ListView.cs: Added some keybindings and fixed scrolling.
36981         ScrollBars listen to ValueChanged event instead of Scroll
36982         Event. This would let us take care of all changes being
36983         done in the scrollbars' values programmatically or manually.
36984         * ListView.cs (CanMultiselect): Added a check for shift key.
36985         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36986         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36987         of ListViewSubItemCollection as well.
36988
36989 2004-12-06  Peter Bartok <pbartok@novell.com>
36990
36991         * Control.cs (Parent): Added check and exception to prevent
36992         circular parenting
36993
36994 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36995
36996         * ListBox.cs: implemented clipping, selection single and multiple,
36997         bug fixing
36998
36999 2004-12-03  Ravindra <rkumar@novell.com>
37000
37001         * ListView.cs (ListView_KeyDown):
37002         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
37003         when CTRL key is pressed.
37004         * ListViewItem.cs (Selected): Fixed setting the property.
37005
37006 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37007
37008         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
37009
37010         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
37011         MinimizeBox, ShowInTaskbar, TopMost properties.
37012
37013         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
37014         will be implemented).
37015
37016 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
37017
37018         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
37019
37020         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
37021         tests.
37022         
37023         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
37024         
37025         * TreeView.cs: BackColor is Colors.Window.
37026
37027 2004-12-01  Jackson Harper  <jackson@ximian.com>
37028
37029         * TreeView.cs: When resizing the tree if the user is making it
37030         smaller we don't get expose events, so we need to handle adding
37031         the horizontal scrollbar in the size changed handler as well as
37032         the expose handler.
37033
37034 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
37035
37036         * DrawItemState.cs: fixes wrong enum values
37037
37038 2004-12-01  Jackson Harper  <jackson@ximian.com>
37039
37040         * TreeView.cs: Resize the hbar as well as the vbar on resize.
37041
37042 2004-12-01  Jackson Harper  <jackson@ximian.com>
37043
37044         * NodeLabelEditEventArgs.cs:
37045         * NodeLabelEditEventHandler.cs:
37046         * OpenTreeNodeEnumerator.cs:
37047         * TreeNode.cs:
37048         * TreeNodeCollection.cs:
37049         * TreeView.cs:
37050         * TreeViewAction.cs:
37051         * TreeViewCancelEventArgs.cs:
37052         * TreeViewCancelEventHandler.cs:
37053         * TreeViewEventArgs.cs:
37054         * TreeViewEventHandler.cs: Initial implementation.
37055
37056 2004-12-01  Ravindra <rkumar@novell.com>
37057
37058         * ListView.cs (CalculateListView): Fixed scrolling related
37059         calculations. Also, removed some debug statements from other
37060         places.
37061         * ListViewItem.cs: Changed access to 'selected' instance variable
37062         from private to internal.
37063         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
37064
37065 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
37066
37067         * ThemeWin32Classic.cs: remove cache of brush and pens for
37068         specific controls and use the global system, fixes scrollbutton
37069         bugs (for small sizes, disabled, etc)
37070         
37071         * ScrollBar.cs: does not show the thumb for very small controls
37072         (as MS) and allow smaller buttons that the regular size
37073
37074 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
37075
37076         * UpDownBase.cs: Add abstract methods for the interface.
37077         Add new virtual methods (need to be hooked up to TextEntry when it
37078         exists).
37079         Add override methods for most features.
37080         Computes the size, forces the height of the text entry.
37081
37082         * NumericUpDown.cs: Put here the current testing code.
37083
37084         * Set eol-style property on all files that do not have mixed line
37085         endings, to minimize the future problems.  There are still a few
37086         files with mixed endings, and someone should choose whether they
37087         want to move it or not.
37088
37089 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
37090
37091         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
37092         System.Colors
37093         
37094 2004-11-30  Ravindra <rkumar@novell.com>
37095
37096         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
37097         drawing and replaced use of SystemColors by theme colors.
37098         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
37099         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37100         same ListViewItem is being added more than once.
37101
37102 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37103
37104         * MonthCalendar.cs:
37105           - ControlStyles love to make the control not flicker
37106           
37107 2004-11-30  Peter Bartok  <pbartok@novell.com>
37108
37109         * CharacterCasing.cs: Added
37110
37111 2004-11-29  Peter Bartok  <pbartok@novell.com>
37112
37113         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37114           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37115           I am removing these files as they conflict with already completed
37116           work. While it is fantastic to get contributions to MWF, I
37117           respectfully ask that everyone please coordinate their contributions
37118           through mono-winforms-list or #mono-winforms at this time. We're
37119           explicitly avoiding stubbing and don't want controls that don't have
37120           their basic functionality implemented in svn. Please also see
37121           http://www.mono-project.com/contributing/winforms.html
37122
37123
37124 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37125
37126         * Application.cs (ModalRun): Don't hang after exit.
37127
37128         * Theme.cs: New TreeViewDefaultSize property.
37129
37130         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37131         with less hardcoded SystemColors constant.
37132         Implemented TreeViewDefaultSize.
37133
37134         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37135         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37136
37137
37138 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37139
37140         * MonthCalendar.cs:
37141           - Fix NextMonthDate and PrevMonthDate click moving calendar
37142
37143 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37144
37145         * MonthCalendar.cs:
37146           - Fix usage of ScrollChange Property when scrolling months
37147
37148 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37149
37150         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37151          - Fixes menu destroying
37152          - Support adding and removing items on already created menus
37153
37154 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37155
37156         * MonthCalendar.cs:
37157           - Re-worked all bolded dates handling to match win32
37158         * ThemeWin32Classic.cs:
37159           - Fixed rendering with bolded dates
37160
37161 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37162
37163         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37164         - Horizontal scroolbar
37165         - Multicolumn
37166         - Fixes
37167
37168
37169 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37170
37171         * MonthCalendar.cs:
37172           - Fix Usage of MaxSelectionCount from SelectionRange
37173           - Fixed Shift + Cursor Selection
37174           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37175           - Fixed normal cursor selection to be compat with win32
37176           - Fixed Shift + Mouse Click selection
37177
37178 2004-11-24  Peter Bartok <pbartok@novell.com>
37179
37180         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37181         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37182         * XplatUIX11.cs:
37183           - CreatedKeyBoardMsg now updates keystate with Alt key
37184           - Added workaround for timer crash to CheckTimers, Jackson will
37185             develop a proper fix and check in later
37186           - Implemented DispatchMessage
37187           - Removed calling the native window proc from GetMessage (call
37188             now moved to DispatchMessage)
37189
37190         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37191           the keydata (Fixes bug #69831)
37192
37193         * XplatUIWin32.cs:
37194           - (DispatchMessage): Switched to return IntPtr
37195           - Added DllImport for SetFocus
37196
37197 2004-11-24  Ravindra <rkumar@novell.com>
37198
37199         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37200         background drawing.
37201         * ListViewItem.cs: Fixed various properties, calculations
37202         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37203         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37204         and some internal properties. Fixed MouseDown handler and Paint
37205         method.
37206
37207 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37208
37209         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37210
37211 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37212
37213         * ContainerControl.cs: correct accidental check in of local changes
37214
37215 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37216
37217         * ThemeWin32Classic.cs:
37218                 - Fixed Drawing Last month in grid (sometimes not showing)
37219         * MonthCalendar.cs:
37220                 - Fixed title width calculation bug (makeing title small)
37221
37222 2004-11-23  Peter Bartok <pbartok@novell.com>
37223
37224         * XplatUIX11.cs:
37225           - Added generation of WM_MOUSEHOVER event
37226           - Added missing assignment of async_method atom
37227           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37228
37229 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37230
37231         * ThemeWin32Classic.cs:
37232                 - Fixed Drawing of today circle when showtodaycircle not set
37233                 - fixed drawing of first and last month in the grid (gay dates)
37234         * MonthCalendar.cs:
37235                 - Fixed Drawing of today circle
37236                 - Fixed drawing of grady dates
37237                 - Fixed HitTest for today link when ShowToday set to false
37238                 - Fixed DefaultSize to obey ShowToday
37239
37240 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37241
37242         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37243         * System.Windows.Forms/Theme.cs
37244         * MonthCalendar.cs: added for MonthCalendar
37245         * SelectionRange.cs: added for MonthCalendar
37246         * Day.cs: added for MonthCalendar: added for MonthCalendar
37247         * DateRangeEventArgs.cs: added for MonthCalendar
37248         * DateRangeEventHandler.cs: added for MonthCalendar
37249
37250 2004-11-22  Ravindra <rkumar@novell.com>
37251
37252         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37253         property.
37254
37255 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37256
37257         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37258         event handler.
37259         
37260         * NumericUpDown.cs: Added new implementation.
37261         * UpDownBase.cs: Added new implementation.
37262
37263         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37264         implementations.
37265         
37266         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37267         implementations.
37268
37269         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37270         methods.
37271
37272 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37273
37274         * Timer.cs  (Dispose): Should call the base dispose when
37275         overriding.
37276
37277 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37278
37279         * ScrollBar.cs: updates thumb position when max, min or increment
37280         is changed
37281
37282 2004-11-21  Ravindra <rkumar@novell.com>
37283
37284         * ListView.cs: Implemented item selection, activation and
37285         column header style. Fixed properties to do a redraw, if
37286         required. Added support for MouseHover, DoubleClick, KeyDown
37287         and KeyUp event handling and some minor fixes.
37288         * ListViewItem.cs: Fixed constructor.
37289         * ThemeWin32Classic.cs: Improved drawing for ListView.
37290
37291 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37292
37293         * ThemeWin32Classic.cs: initial listbox drawing code
37294         * DrawMode.cs: new enumerator
37295         * ListControl.cs: stubbed class
37296         * ListBox.cs: initial implementation
37297         * Theme.cs: new methods definitions
37298         * SelectionMode.cs: new enumerator
37299
37300 2004-11-17  Peter Bartok  <pbartok@novell.com>
37301
37302         * XplatUIWin32.cs: Added double-click events to the class style
37303         * Control.cs (WndProc):
37304           - Added handling of click-count to MouseDown/ MouseUp events.
37305           - Added handling of middle and right mouse buttons
37306           - Removed old debug code
37307
37308 2004-11-17  Jackson Harper  <jackson@ximian.com>
37309
37310         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37311
37312 2004-11-17  Ravindra <rkumar@novell.com>
37313
37314         * ListView.cs: Added event handling for MouseMove/Up/Down.
37315         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37316         * ThemeWin32Classic.cs: We need to clear the graphics context and
37317         draw column header in a proper state.
37318
37319
37320 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37321
37322         *  Menu.cs: fixes signature
37323
37324 2004-11-16  Peter Bartok  <pbartok@novell.com>
37325
37326         * XplatUIX11.cs (GetMessage): Implemented generation of
37327           double click mouse messages
37328
37329 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37330
37331         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37332         not by menu
37333
37334 2004-11-11  Peter Bartok  <pbartok@novell.com>
37335
37336         * HandleData.cs: Added Visible property
37337         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37338           HandleData
37339         * XplatUIX11.cs: Removed old debug leftovers
37340         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37341         * Control.cs (WndProc): Removed old debug leftovers,
37342           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37343           needed WM_SIZE handling
37344
37345 2004-11-11  Jackson Harper  <jackson@ximian.com>
37346
37347         * OwnerDrawPropertyBag.cs:
37348         * TreeViewImageIndexConverter.cs: Initial implementation
37349
37350 2004-11-10  Jackson Harper  <jackson@ximian.com>
37351
37352         * ThemeWin32Classic.cs:
37353         * TabControl.cs: instead of moving tabs by the slider pos just
37354         start drawing at the tab that is offset by the slider. This way
37355         scrolling always moves by exactly one tab.
37356
37357 2004-11-10  Jackson Harper  <jackson@ximian.com>
37358
37359         * TabControl.cs: You can only scroll left when the slider has
37360         already ben moved right.
37361         
37362 2004-11-10  Jackson Harper  <jackson@ximian.com>
37363
37364         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37365         the clip area.
37366         
37367 2004-11-10  Jackson Harper  <jackson@ximian.com>
37368
37369         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37370         clip area.
37371         
37372 2004-11-09  Jackson Harper  <jackson@ximian.com>
37373
37374         * TabControl.cs (CalcXPos): New helper method so we can determine
37375         the proper place to start drawing vertical tabs.
37376         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37377         
37378 2004-11-09  Jackson Harper  <jackson@ximian.com>
37379
37380         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37381         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37382         and Bottom, left and right are illegal values for this and
37383         multiline is enabled when the alignment is set to left or right.
37384         (DrawTab): Each alignment block should draw the text itself now
37385         because Left requires special love. Also add rendering for Left
37386         aligned tabs.
37387         
37388 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37389
37390         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37391         does not destroy the windows, removes debugging messages
37392
37393 2004-11-09  jba  <jba-mono@optusnet.com.au>
37394
37395         * ThemeWin32Classic.cs
37396         (DrawButtonBase): Fix verticle text rect clipping in windows
37397         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37398         rendering and incorrect text rect clipping
37399         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37400         rendering and incorrect text rect clipping
37401         
37402 2004-11-08  Jackson Harper  <jackson@ximian.com>
37403
37404         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37405         bottom when they are bottom aligned so the bottoms of the tabs get
37406         displayed.
37407         * TabControl.cs (DropRow): Move rows up instead of down when the
37408         tab control is bottom aligned.
37409
37410 2004-11-08 13:59  pbartok
37411
37412         * XplatUIX11.cs:
37413           - Added handling for various window styles
37414           - Added handling for popup windows
37415           - Added SetTopmost handling
37416
37417 2004-11-08 13:55  pbartok
37418
37419         * XplatUIWin32.cs:
37420           - Added argument to SetTopmost method
37421           - Fixed broken ClientToScreen function
37422
37423 2004-11-08 13:53  pbartok
37424
37425         * XplatUIStructs.cs:
37426           - Added missing WS_EX styles
37427
37428 2004-11-08 13:53  pbartok
37429
37430         * XplatUI.cs, XplatUIDriver.cs:
37431           - Added argument to SetTopmost
37432
37433 2004-11-08 13:52  pbartok
37434
37435         * X11Structs.cs:
37436           - Added XSetWindowAttributes structure
37437           - Improved XWindowAttributes structure
37438           - Added SetWindowValuemask enum
37439           - Added window creation arguments enum
37440           - Added gravity enum
37441           - Added Motif hints structure
37442           - Added various Motif flags and enums
37443           - Added PropertyMode enum for property functions
37444
37445 2004-11-08 13:50  pbartok
37446
37447         * Form.cs:
37448           - Fixed arguments for updated SetTopmost method
37449
37450 2004-11-08 13:49  pbartok
37451
37452         * ToolTip.cs:
37453           - Fixed arguments for updated SetTopmost function
37454           - Fixed usage of PointToClient
37455
37456 2004-11-08 13:44  pbartok
37457
37458         * MenuAPI.cs:
37459           - Added Clipping of children and siblings
37460
37461 2004-11-08 13:41  pbartok
37462
37463         * MainMenu.cs:
37464           - Removed SetMenuBarWindow call. We do this in Form.cs
37465
37466 2004-11-08 13:40  jackson
37467
37468         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37469           scrolling jimmi in the correct location with bottom aligned tabs
37470
37471 2004-11-08 13:36  pbartok
37472
37473         * ContainerControl.cs:
37474           - Implemented BindingContext
37475           - Implemented ParentForm
37476
37477 2004-11-08 12:46  jackson
37478
37479         * TabControl.cs: Put bottom rendered tabs in the right location
37480
37481 2004-11-08 07:15  jordi
37482
37483         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37484           removes dead code
37485
37486 2004-11-05 17:30  jackson
37487
37488         * TabControl.cs: When selected tabs are expanded make sure they
37489           don't go beyond the edges of the tab control
37490
37491 2004-11-05 14:57  jackson
37492
37493         * TabControl.cs: Reset show_slider so if the control is resized to
37494           a size where it is no longer needed it's not displayed anymore
37495
37496 2004-11-05 13:16  jackson
37497
37498         * TabControl.cs: Make tab pages non visible when added to the
37499           control
37500
37501 2004-11-05 12:42  jackson
37502
37503         * TabControl.cs: Implement SizeMode.FillToRight
37504
37505 2004-11-05 12:16  jackson
37506
37507         * Control.cs: Do not call CreateHandle if the handle is already
37508           created
37509
37510 2004-11-05 11:46  jackson
37511
37512         * TabControl.cs: Remove superflous call to CalcTabRows
37513
37514 2004-11-05 09:07  jackson
37515
37516         * XplatUIX11.cs: Update for Mono.Posix changes
37517
37518 2004-11-05 07:00  ravindra
37519
37520         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37521           scrolling.
37522
37523 2004-11-04 22:47  jba
37524
37525         * ThemeWin32Classic.cs:
37526           - Fix Button rendering for FlatStyle = Flat or Popup
37527           - Fix RadioButton and CheckBox rendering when Appearance = Button
37528             (normal and flatstyle).
37529           - Correct outer rectangle color when drawing focus rectangle
37530           - Adjust button bounds to be 1 px smaller when focused
37531           - Make button not draw sunken 3d border when pushed (windows compat)
37532           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37533           - Offset the text in RadioButton and Checkbox when being rendered as
37534           a button.
37535           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37536           radiobuttons
37537           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37538           - Fixed disabled text rendering for normally rendered radiobuttons
37539
37540 2004-11-04 10:26  jackson
37541
37542         * TabControl.cs: Recalculate tab rows when resizing
37543
37544 2004-11-04 07:47  jordi
37545
37546         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37547           collection completion, drawing issues, missing features
37548
37549 2004-11-04 05:03  ravindra
37550
37551         * ScrollBar.cs:
37552                 - We need to recalculate the Thumb area when
37553                 LargeChange/maximum/minimum values are changed.
37554           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37555                 than minimum. This is required to handle the case if large_change is
37556                 more than max, and use LargeChange property instead of large_change
37557                 variable.
37558           - We return max+1 when large_change is more than max, like MS does.
37559
37560 2004-11-04 04:29  ravindra
37561
37562         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37563                 - Changed default value signatures (prefixed all with ListView).
37564                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37565                 ListView.
37566           - Fixed calculations for ListViewItem and implemented Clone()
37567           method.
37568
37569 2004-11-04 04:26  ravindra
37570
37571         * Theme.cs, ThemeWin32Classic.cs:
37572                 - Changed default ListView values signatures (prefixed all with
37573                 ListView).
37574           - Fixed default size values for VScrollBar and HScrollBar.
37575                 - Fixed DrawListViewItem method.
37576
37577 2004-11-04 04:05  ravindra
37578
37579         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37580
37581 2004-11-04 04:04  ravindra
37582
37583         * ImageList.cs: Implemented the missing overload for Draw method.
37584
37585 2004-11-03 19:29  jackson
37586
37587         * TabControl.cs: Handle dropping rows on selection properly
37588
37589 2004-11-03 11:59  jackson
37590
37591         * TabControl.cs: remove debug code
37592
37593 2004-11-03 11:52  jackson
37594
37595         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37596           the scrolly widgerywoo
37597
37598 2004-11-02 13:52  jackson
37599
37600         * TabControl.cs: Resize the tab pages and tabs when the tab control
37601           is resized
37602
37603 2004-11-02 13:40  jackson
37604
37605         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37606           selected tab to the bottom
37607
37608 2004-11-02 13:39  jackson
37609
37610         * TabPage.cs: Store the tab pages row
37611
37612 2004-11-02 12:33  jordi
37613
37614         * MenuItem.cs: fixes handle creation
37615
37616 2004-11-02 11:42  jackson
37617
37618         * TabControl.cs: signature fix
37619
37620 2004-11-02 08:56  jackson
37621
37622         * TabControl.cs: Calculate whether the tab is on an edge properly.
37623           Remove top secret debugging code
37624
37625 2004-11-01 19:57  jackson
37626
37627         * TabControl.cs: Add click handling, and proper sizing
37628
37629 2004-11-01 19:47  jackson
37630
37631         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37632           tab controls
37633
37634 2004-11-01 19:39  jackson
37635
37636         * TabPage.cs: add internal property to store the bounds of a tab
37637           page
37638
37639 2004-10-30 04:23  ravindra
37640
37641         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37642           values.
37643
37644 2004-10-30 04:21  ravindra
37645
37646         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37647           fixed calculations.
37648
37649 2004-10-30 03:06  pbartok
37650
37651         * XplatUIX11.cs:
37652           - Removed extension of DllImported libs
37653
37654 2004-10-29 09:55  jordi
37655
37656         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37657           navigation, itemcollection completion, menu fixes
37658
37659 2004-10-27 22:58  pbartok
37660
37661         * XplatUIX11.cs:
37662           - Now throws a nice error message when no X display could be opened
37663
37664 2004-10-26 13:51  jordi
37665
37666         * ListView.cs: removes warning
37667
37668 2004-10-26 03:55  ravindra
37669
37670         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37671           ThemeWin32Classic.cs: Some formatting for my last checkins.
37672
37673 2004-10-26 03:36  ravindra
37674
37675         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37676           control and default values.
37677
37678 2004-10-26 03:35  ravindra
37679
37680         * Theme.cs: Added some default values for ListView control.
37681
37682 2004-10-26 03:33  ravindra
37683
37684         * ToolBar.cs: ToolBar should use the user specified button size, if
37685           there is any. Added a size_specified flag for the same.
37686
37687 2004-10-26 03:33  ravindra
37688
37689         * ColumnHeader.cs: Added some internal members and calculations for
37690           ColumnHeader.
37691
37692 2004-10-26 03:32  ravindra
37693
37694         * ListViewItem.cs: Calculations for ListViewItem.
37695
37696 2004-10-26 03:31  ravindra
37697
37698         * ListView.cs: Added some internal members and calculations for
37699           ListView.
37700
37701 2004-10-22 13:31  jordi
37702
37703         * MenuAPI.cs: speedup menus drawing
37704
37705 2004-10-22 13:16  jackson
37706
37707         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37708           expose event
37709
37710 2004-10-22 11:49  jackson
37711
37712         * Control.cs: oops
37713
37714 2004-10-22 11:41  jackson
37715
37716         * Control.cs: Check to see if the window should have its background
37717           repainted by X when drawing.
37718
37719 2004-10-22 11:31  jackson
37720
37721         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37722           clear is true, this way we do not get flicker from X repainting the
37723           background
37724
37725 2004-10-22 11:28  jackson
37726
37727         * XEventQueue.cs: Queue properly
37728
37729 2004-10-21 09:38  jackson
37730
37731         * XEventQueue.cs: Fix access modifier
37732
37733 2004-10-21 09:36  jackson
37734
37735         * XEventQueue.cs: Don't loose messages
37736
37737 2004-10-21 09:22  jackson
37738
37739         * XEventQueue.cs: Don't loose messages
37740
37741 2004-10-20 04:15  jordi
37742
37743         * BootMode.cs: enum need it by SystemInfo
37744
37745 2004-10-19 21:58  pbartok
37746
37747         * XplatUIWin32.cs:
37748           - Small sanity check
37749
37750 2004-10-19 21:56  pbartok
37751
37752         * Form.cs:
37753           - Added private FormParentWindow class which acts as the container
37754             for our form and as the non-client area where menus are drawn
37755           - Added/Moved required tie-ins to Jordi's menus
37756           - Fixed/Implemented the FormStartPosition functionality
37757
37758 2004-10-19 21:52  pbartok
37759
37760         * Control.cs:
37761           - Removed unneeded locals
37762           - Added code to all size and location properties to understand and
37763             deal with the parent container of Form
37764
37765 2004-10-19 21:33  pbartok
37766
37767         * Application.cs:
37768           - Fixed to deal with new Form subclasses for menus
37769
37770 2004-10-19 17:48  jackson
37771
37772         * XEventQueue.cs: commit correct version of file
37773
37774 2004-10-19 16:50  jackson
37775
37776         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37777
37778 2004-10-19 16:15  jordi
37779
37780         * MenuAPI.cs: MenuBarCalcSize returns the height
37781
37782 2004-10-19 08:31  pbartok
37783
37784         * Control.cs:
37785           - Added missing call to PreProcessMessage before calling OnXXXKey
37786           methods
37787
37788 2004-10-19 00:04  ravindra
37789
37790         * ToolTip.cs: Fixed constructor.
37791
37792 2004-10-18 09:31  jordi
37793
37794         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37795
37796 2004-10-18 09:26  jordi
37797
37798         * MenuItem.cs: fixes MenuItem class signature
37799
37800 2004-10-18 08:56  jordi
37801
37802         * MenuAPI.cs: prevents windows from showing in the taskbar
37803
37804 2004-10-18 00:28  ravindra
37805
37806         * ToolTip.cs: Suppressed a warning message.
37807
37808 2004-10-18 00:27  ravindra
37809
37810         * Control.cs: Default value of visible property must be true.
37811
37812 2004-10-17 23:19  pbartok
37813
37814         * ToolTip.cs:
37815           - Complete implementation
37816
37817 2004-10-17 23:19  pbartok
37818
37819         * XplatUIX11.cs:
37820           - Added EnableWindow method
37821           - Added SetModal stub
37822           - Added generation of WM_ACTIVATE message (still needs testing)
37823           - Added SetTopMost stub
37824           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37825
37826 2004-10-17 23:17  pbartok
37827
37828         * XplatUIWin32.cs:
37829           - Removed VirtualKeys to XplatUIStructs
37830           - Implemented SetTopMost method
37831           - Implemented EnableWindow method
37832           - Bugfix in ScreenToClient()
37833           - Bugfixes in ClientToScreen()
37834
37835 2004-10-17 22:51  pbartok
37836
37837         * XplatUIStructs.cs:
37838           - Added WS_EX styles to WindowStyles enumeration
37839
37840 2004-10-17 22:50  pbartok
37841
37842         * XplatUI.cs, XplatUIDriver.cs:
37843           - Added method for enabling/disabling windows
37844           - Added method for setting window modality
37845           - Added method for setting topmost window
37846
37847 2004-10-17 22:49  pbartok
37848
37849         * ThemeWin32Classic.cs:
37850           - Added ToolTip drawing code
37851
37852 2004-10-17 22:49  pbartok
37853
37854         * Theme.cs:
37855           - Added ToolTip abstracts
37856
37857 2004-10-17 22:47  pbartok
37858
37859         * Form.cs:
37860           - Fixed Form.ControlCollection to handle owner relations
37861           - Added Owner/OwnedForms handling
37862           - Implemented Z-Ordering for owned forms
37863           - Removed unneeded private overload of ShowDialog
37864           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37865             so I hope)
37866           - Fixed Close(), had wrong default
37867           - Added firing of OnLoad event
37868           - Added some commented out debug code for Ownership handling
37869
37870 2004-10-17 22:16  pbartok
37871
37872         * Control.cs:
37873           - Fixed/implemented flat list of controls
37874
37875 2004-10-17 22:14  pbartok
37876
37877         * Application.cs:
37878           - Added code to simulate modal dialogs on Win32
37879
37880 2004-10-17 16:11  jordi
37881
37882         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37883           mouse event
37884
37885 2004-10-17 13:39  jordi
37886
37887         * MenuAPI.cs: menu drawing fixes
37888
37889 2004-10-15 09:10  ravindra
37890
37891         * StructFormat.cs: General Enum.
37892
37893 2004-10-15 09:09  ravindra
37894
37895         * SizeGripStyle.cs: Enum for Form.
37896
37897 2004-10-15 09:08  ravindra
37898
37899         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37900           in Theme for ListView.
37901
37902 2004-10-15 09:06  ravindra
37903
37904         * ColumnHeader.cs: Flushing some formatting changes.
37905
37906 2004-10-15 09:05  ravindra
37907
37908         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37909           style.
37910
37911 2004-10-15 09:03  ravindra
37912
37913         * ListView.cs: Implemented Paint method and fixed coding style.
37914
37915 2004-10-15 07:34  jordi
37916
37917         * MenuAPI.cs: fix for X11
37918
37919 2004-10-15 07:32  ravindra
37920
37921         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37922                 - Renamed Paint() method to Draw() for clarity. Also, moved
37923                 DrawImage() to OnPaint().
37924
37925 2004-10-15 07:25  ravindra
37926
37927         * CheckBox.cs, RadioButton.cs:
37928                 - Removed Redraw (), we get it from ButtonBase.
37929                 - Implemented Paint (), to do class specific painting.
37930
37931 2004-10-15 07:16  ravindra
37932
37933         * ButtonBase.cs:
37934                 - Redraw () is not virtual now.
37935                 - Added an internal virtual method Paint (), so that
37936                 derived classes can do their painting on their own.
37937                 - Modified OnPaint () to call Paint ().
37938
37939 2004-10-15 06:43  jordi
37940
37941         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37942           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37943
37944 2004-10-15 00:30  ravindra
37945
37946         * MessageBox.cs:
37947                 - MessageBox on windows does not have min/max buttons.
37948                 This change in CreateParams fixes this on Windows. We
37949                 still need to implement this windowstyle behavior in
37950                 our X11 driver.
37951
37952 2004-10-14 05:14  ravindra
37953
37954         * ToolBar.cs:
37955                 - Changed Redraw () to do a Refresh () always.
37956                 - Fixed the MouseMove event handling when mouse is pressed,
37957                 ie drag event handling.
37958                 - Replaced the usage of ToolBarButton.Pressed property to
37959                 ToolBarButton.pressed internal variable.
37960
37961 2004-10-14 05:10  ravindra
37962
37963         * ToolBarButton.cs:
37964                 - Added an internal member 'inside' to handle mouse move
37965                 with mouse pressed ie mouse drag event.
37966                 - Changed 'Pressed' property to return true only when
37967                 'inside' and 'pressed' are both true.
37968                 - Some coding style love.
37969
37970 2004-10-14 00:17  ravindra
37971
37972         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37973           public method.
37974
37975 2004-10-14 00:15  ravindra
37976
37977         * ButtonBase.cs: Redraw () related improvements.
37978
37979 2004-10-14 00:14  ravindra
37980
37981         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37982           removed unnecessary calls to Button.Show () method.
37983
37984 2004-10-13 17:50  pbartok
37985
37986         * XplatUIX11.cs:
37987           - Formatting fix
37988           - Removed destroying of window until we solve the problem of X
37989             destroying the window before us on shutdown
37990
37991 2004-10-13 16:32  pbartok
37992
37993         * ButtonBase.cs:
37994           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37995
37996 2004-10-13 14:18  pbartok
37997
37998         * XplatUIX11.cs:
37999           - Added code to destroy the X window
38000
38001 2004-10-13 14:18  pbartok
38002
38003         * XplatUIWin32.cs:
38004           - Added code to destroy a window
38005
38006 2004-10-13 14:12  pbartok
38007
38008         * ButtonBase.cs:
38009           - Added the Redraw on Resize that got dropped in the last rev
38010
38011 2004-10-13 09:06  pbartok
38012
38013         * ThemeWin32Classic.cs:
38014           - Path from John BouAntoun:
38015             * Fix check rendering (centre correctly for normal style, offset
38016               correctly for FlatStyle).
38017             * Fix border color usage (use backcolor) for FlatStyle.Popup
38018             * Use checkbox.Capture instead of checkbox.is_pressed when
38019               rendering flatstyle states.
38020
38021 2004-10-12 21:48  pbartok
38022
38023         * ThemeWin32Classic.cs:
38024           - Removed all occurences of SystemColors and replaced them with the
38025             matching theme color
38026
38027 2004-10-12 21:41  pbartok
38028
38029         * ThemeWin32Classic.cs:
38030           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
38031             him using the function for flatstyle drawing
38032           - Changed functions to use the new version of CPDrawBorder3D
38033
38034 2004-10-12 21:15  pbartok
38035
38036         * ControlPaint.cs:
38037           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
38038             match MS documentation. They need to return defined colors if the
38039             passed color matches the configured control color. Thanks to John
38040             BouAntoun for pointing this out.
38041
38042 2004-10-12 20:57  pbartok
38043
38044         * Control.cs:
38045           - Fix from John BouAntoun: Raise ForeColorChanged event when text
38046             color is changed
38047
38048 2004-10-12 20:46  pbartok
38049
38050         * CheckBox.cs:
38051           - Fix from John BouAntoun: Now properly sets the Appearance property
38052
38053 2004-10-12 20:45  pbartok
38054
38055         * ThemeWin32Classic.cs:
38056           - Fixes from John BouAntoun: now handles forecolors and backcolors
38057             for flatstyle rendered controls much better; It also fixes normal
38058             checkbox rendering when pushed or disabled.
38059
38060 2004-10-08 02:50  jordi
38061
38062         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
38063           work
38064
38065 2004-10-07 08:56  jordi
38066
38067         * ThemeWin32Classic.cs: Removes deletion of cached brushes
38068
38069 2004-10-06 03:59  jordi
38070
38071         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
38072           XplatUIWin32.cs: removes warnings from compilation
38073
38074 2004-10-05 12:23  jackson
38075
38076         * RadioButton.cs: Fix ctor
38077
38078 2004-10-05 11:10  pbartok
38079
38080         * MessageBox.cs:
38081           - Partial implementation by Benjamin Dasnois
38082
38083 2004-10-05 10:15  jackson
38084
38085         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
38086           by John BouAntoun
38087
38088 2004-10-05 03:07  ravindra
38089
38090         * ToolBar.cs:
38091                 - Removed a private method, Draw ().
38092                 - Fixed the ButtonDropDown event handling.
38093                 - Fixed MouseMove event handling.
38094
38095 2004-10-05 03:04  ravindra
38096
38097         * ThemeWin32Classic.cs:
38098                 - Added DrawListView method and ListViewDefaultSize property.
38099                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38100                 - Changed DOS style CRLF to Unix format (dos2unix).
38101
38102 2004-10-05 03:03  ravindra
38103
38104         * Theme.cs:
38105                 - Added DrawListView method and ListViewDefaultSize property.
38106
38107 2004-10-05 02:42  ravindra
38108
38109         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38110           clicks on DropDown arrow.
38111
38112 2004-10-04 22:56  jackson
38113
38114         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38115           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38116           Control handle the buffers, derived classes should not have to
38117           CreateBuffers themselves.
38118
38119 2004-10-04 21:20  jackson
38120
38121         * StatusBar.cs: The control handles resizing the buffers now.
38122
38123 2004-10-04 21:18  jackson
38124
38125         * Control.cs: When resizing the buffers should be invalidated. This
38126           should be handled in Control not in derived classes.
38127
38128 2004-10-04 14:45  jackson
38129
38130         * TabPage.cs: oops
38131
38132 2004-10-04 02:14  pbartok
38133
38134         * LeftRightAlignment.cs:
38135           - Initial check-in
38136
38137 2004-10-04 01:09  jordi
38138
38139         * ThemeWin32Classic.cs: fixes right button position causing right
38140           button not showing on horizontal scrollbars
38141
38142 2004-10-02 13:12  pbartok
38143
38144         * XplatUIX11.cs:
38145           - Simplified the Invalidate method by using an X call instead of
38146             generating the expose ourselves
38147           - Added an expose when the window background is changed
38148           - Implemented ClientToScreen method
38149
38150 2004-10-02 13:08  pbartok
38151
38152         * XplatUIWin32.cs:
38153           - Added Win32EnableWindow method (test for implementing modal
38154           dialogs)
38155           - Added ClientToScreen method and imports
38156
38157 2004-10-02 13:07  pbartok
38158
38159         * XplatUI.cs, XplatUIDriver.cs:
38160           - Added ClientToScreen coordinate translation method
38161
38162 2004-10-02 13:06  pbartok
38163
38164         * KeyPressEventArgs.cs:
38165           - Fixed access level for constructor
38166
38167 2004-10-02 13:06  pbartok
38168
38169         * NativeWindow.cs:
38170           - Changed access level for the window_collection hash table
38171
38172 2004-10-02 13:05  pbartok
38173
38174         * Form.cs:
38175           - Added KeyPreview property
38176           - Added Menu property (still incomplete, pending Jordi's menu work)
38177           - Implemented ProcessCmdKey
38178           - Implemented ProcessDialogKey
38179           - Implemented ProcessKeyPreview
38180
38181 2004-10-02 13:02  pbartok
38182
38183         * Control.cs:
38184           - Added private method to get the Control object from the window
38185           handle
38186           - Implemented ContextMenu property
38187           - Implemented PointToScreen
38188           - Implemented PreProcessMessage
38189           - Implemented IsInputChar
38190           - Implemented IsInputKey
38191           - Implemented ProcessCmdKey
38192           - Completed ProcessKeyEventArgs
38193           - Fixed message loop to call the proper chain of functions on key
38194           events
38195           - Implemented ProcessDialogChar
38196           - Implemented ProcessDialogKey
38197           - Implemented ProcessKeyMessage
38198           - Implemented ProcessKeyPreview
38199           - Added RaiseDragEvent stub (MS internal method)
38200           - Added RaiseKeyEvent stub (MS internal method)
38201           - Added RaiseMouseEvent stub (MS Internal method)
38202           - Added RaisePaintEvent stub (MS Internal method)
38203           - Added ResetMouseEventArgs stub (MS Internal method)
38204           - Implemented RtlTranslateAlignment
38205           - Implemented RtlTranslateContent
38206           - Implemented RtlTranslateHorizontal
38207           - Implemented RtlTranslateLeftRight
38208           - Added generation of KeyPress event
38209
38210 2004-10-02 05:57  ravindra
38211
38212         * ListViewItem.cs: Added attributes.
38213
38214 2004-10-02 05:32  ravindra
38215
38216         * ListView.cs: Added attributes.
38217
38218 2004-10-01 11:53  jackson
38219
38220         * Form.cs: Implement the Close method so work on MessageBox can
38221           continue.
38222
38223 2004-09-30 14:06  pbartok
38224
38225         * XplatUIX11.cs:
38226           - Bug fixes
38227
38228 2004-09-30 11:34  jackson
38229
38230         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38231
38232 2004-09-30 07:26  ravindra
38233
38234         * ListViewItemConverter.cs: Converter for ListViewItem.
38235
38236 2004-09-30 07:26  ravindra
38237
38238         * SortOrder.cs: Enum for ListView control.
38239
38240 2004-09-30 07:25  ravindra
38241
38242         * ColumnHeader.cs: Supporting class for ListView control.
38243
38244 2004-09-30 07:24  ravindra
38245
38246         * ListView.cs, ListViewItem.cs: Initial implementation.
38247
38248 2004-09-30 07:20  ravindra
38249
38250         * ItemActivation.cs: Enum for ListView Control.
38251
38252 2004-09-29 20:29  pbartok
38253
38254         * XplatUIX11.cs:
38255           - Added lookup of pixel value for background color; tries to get a
38256             color 'close' to the requested color, it avoids having to create a
38257             colormap.  Depending on the display this could mean the used color
38258             is slightly off the desired color. Might have to change it to a more
38259             resource intensive colormap approach, but it will work as a
38260           workaround to avoid red screens.
38261
38262 2004-09-29 14:27  jackson
38263
38264         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38265
38266 2004-09-28 12:44  pbartok
38267
38268         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38269           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38270           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38271           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38272           TrackBar.cs, VScrollBar.cs:
38273           - Streamlined Theme interfaces:
38274             * Each DrawXXX method for a control now is passed the object for
38275               the control to be drawn in order to allow accessing any state the
38276               theme might require
38277
38278             * ControlPaint methods for the theme now have a CP prefix to avoid
38279               name clashes with the Draw methods for controls
38280
38281             * Every control now retrieves it's DefaultSize from the current
38282             theme
38283
38284 2004-09-28 12:17  jackson
38285
38286         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38287           drawing
38288
38289 2004-09-24 14:57  jackson
38290
38291         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38292           Gives us a nice little performance boost.
38293
38294 2004-09-24 12:02  jackson
38295
38296         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38297           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38298           Control and supporting classes. Initial checkin
38299
38300 2004-09-23 13:08  jackson
38301
38302         * Form.cs: Temp build fixage
38303
38304 2004-09-23 01:39  ravindra
38305
38306         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38307           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38308           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38309           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38310           EventHandlers needed by ListView Control.
38311
38312 2004-09-22 14:12  pbartok
38313
38314         * ScrollableControl.cs:
38315           - Implemented DockPadding property
38316           - Implemented AutoScroll property
38317           - Implemented AutoScrollMargin property
38318           - Implemented AutoScrollMinSize property
38319           - Implemented AutoScrollPosition property
38320           - Implemented DisplayRectangle property (still incomplete)
38321           - Implemented CreateParams property
38322           - Implemented HScroll property
38323           - Implemented VScroll property
38324           - Implemented OnVisibleChanged property
38325
38326 2004-09-22 14:09  pbartok
38327
38328         * Form.cs:
38329           - Added Form.ControllCollection class
38330           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38331             RemoveOwnedForm (still incomplete, missing on-top and common
38332             minimize/maximize behaviour)
38333           - Added StartPosition property (still incomplete, does not use when
38334             creating the form)
38335           - Added ShowDialog() methods (still incomplete, missing forcing the
38336             dialog modal)
38337
38338 2004-09-22 14:05  pbartok
38339
38340         * Application.cs:
38341           - Added message loop for modal dialogs
38342
38343 2004-09-22 14:02  pbartok
38344
38345         * GroupBox.cs:
38346           - Fixed wrong types for events
38347
38348 2004-09-22 14:00  pbartok
38349
38350         * Shortcut.cs, FormWindowState.cs:
38351           - Fixed wrong values
38352
38353 2004-09-22 12:01  jackson
38354
38355         * Control.cs: Text is never null
38356
38357 2004-09-20 22:14  pbartok
38358
38359         * XplatUIWin32.cs:
38360           - Fixed accessibility level for Idle handler
38361
38362 2004-09-20 18:54  jackson
38363
38364         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38365           XplatUIX11.cs: New message loop that uses poll so we don't get a
38366           busy loop
38367
38368 2004-09-17 10:43  pbartok
38369
38370         * ScrollBar.cs:
38371           - Fixed behaviour of arrow buttons. Now properly behaves like
38372             Buttons (and like Microsoft's scrollbar arrow buttons)
38373
38374 2004-09-17 10:14  pbartok
38375
38376         * ScrollBar.cs:
38377           - Added missing release of keyboard/mouse capture
38378
38379 2004-09-17 06:18  jordi
38380
38381         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38382           Theme.cs: Very early menu support
38383
38384 2004-09-16 17:45  pbartok
38385
38386         * XplatUIWin32.cs:
38387           - Fixed sending a window to the front
38388           - Added overload for SetWindowPos to avoid casting
38389
38390 2004-09-16 17:44  pbartok
38391
38392         * Control.cs:
38393           - Added SendToBack and BringToFront methods
38394
38395 2004-09-16 07:00  ravindra
38396
38397         * Copyright: Added Novell URL.
38398
38399 2004-09-16 07:00  ravindra
38400
38401         * ToolBar.cs: Invalidate should be done before redrawing.
38402
38403 2004-09-15 21:19  ravindra
38404
38405         * ColumnHeaderStyle.cs: Enum for ListView Control.
38406
38407 2004-09-15 21:18  ravindra
38408
38409         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38410           ListView Control.
38411
38412 2004-09-13 18:26  jackson
38413
38414         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38415           properly
38416
38417 2004-09-13 18:13  jackson
38418
38419         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38420           a second thread and post messages into the main threads message
38421           queue. This makes timing much more consistent. Both win2K and XP
38422           have a minimum timer value of 15 milliseconds, so we now do this
38423           too.
38424
38425 2004-09-13 15:18  pbartok
38426
38427         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38428           XplatUIX11.cs:
38429           - Added Z-Ordering methods
38430
38431 2004-09-13 10:56  pbartok
38432
38433         * Form.cs:
38434           - Fixed #region names
38435           - Moved properties and methods into their proper #regions
38436
38437 2004-09-13 10:51  pbartok
38438
38439         * Form.cs:
38440           - Added Accept and CancelButton properties
38441           - Added ProcessDialogKey() method
38442
38443 2004-09-13 08:18  pbartok
38444
38445         * IWindowTarget.cs:
38446           - Initial check-in
38447
38448 2004-09-10 21:50  pbartok
38449
38450         * Control.cs:
38451           - Added DoDragDrop() [incomplete]
38452           - Properly implemented 'Visible' handling
38453           - Added SetVisibleCore()
38454           - Implemented FindChildAtPoint()
38455           - Implemented GetContainerControl()
38456           - Implemented Hide()
38457
38458 2004-09-10 19:28  pbartok
38459
38460         * Control.cs:
38461           - Moved methods into their appropriate #regions
38462           - Reordered methods within regions alphabetically
38463
38464 2004-09-10 18:57  pbartok
38465
38466         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38467           - Added method to retrieve text from window
38468
38469 2004-09-10 18:56  pbartok
38470
38471         * Control.cs:
38472           - Moved some internal functions into the internal region
38473           - Implemented FontHeight
38474           - Implemented RenderRightToLeft
38475           - Implemented ResizeRedraw
38476           - Implemented ShowFocusCues
38477           - Implemented ShowKeyboardCues
38478           - Implemented FromChildHandle
38479           - Implemented FromHandle
38480           - Implemented IsMnemonic
38481           - Implemented ReflectMessage
38482           - All public and protected Static Methods are now complete
38483
38484 2004-09-10 16:54  pbartok
38485
38486         * Control.cs:
38487           - Implemented remaining missing public instance properties
38488           - Alphabetized some out of order properties
38489
38490 2004-09-10 05:51  ravindra
38491
38492         * PictureBox.cs: Added a check for null image.
38493
38494 2004-09-10 00:59  jordi
38495
38496         * GroupBox.cs: remove cvs tag
38497
38498 2004-09-09 05:25  ravindra
38499
38500         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38501
38502 2004-09-09 05:23  ravindra
38503
38504         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38505           parent redraw.
38506
38507 2004-09-09 02:28  pbartok
38508
38509         * ThemeWin32Classic.cs:
38510           - Improve disabled string look
38511
38512 2004-09-09 01:15  jordi
38513
38514         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38515           args and handler
38516
38517 2004-09-08 23:56  ravindra
38518
38519         * ItemBoundsPortion.cs: It's enum, not a class!
38520
38521 2004-09-08 23:47  ravindra
38522
38523         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38524           Enums for Form.
38525
38526 2004-09-08 21:13  ravindra
38527
38528         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38529           ListView control.
38530
38531 2004-09-08 21:03  ravindra
38532
38533         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38534           avoid crash.
38535
38536 2004-09-08 21:01  ravindra
38537
38538         * ScrollableControl.cs: Removed unreachable code.
38539
38540 2004-09-08 06:45  jordi
38541
38542         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38543
38544 2004-09-08 01:00  jackson
38545
38546         * XplatUIX11.cs: Only run the timers when updating the message
38547           queue. This effectively gives X messages a higher priority then
38548           timer messages. Timers still need love though
38549
38550 2004-09-07 14:01  jackson
38551
38552         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38553           this for us and the handle is no longer valid.
38554
38555 2004-09-07 13:59  jackson
38556
38557         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38558           loop that manages to not crash. TODO: Add poll and cleanup timers
38559
38560 2004-09-07 11:12  jordi
38561
38562         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38563
38564 2004-09-07 03:40  jordi
38565
38566         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38567           fixes, methods, multiple links
38568
38569 2004-09-06 06:55  jordi
38570
38571         * Control.cs: Caches ClientRectangle rectangle value
38572
38573 2004-09-05 02:03  jordi
38574
38575         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38576           certain situations
38577
38578 2004-09-04 11:10  jordi
38579
38580         * Label.cs: Refresh when font changed
38581
38582 2004-09-02 16:24  pbartok
38583
38584         * Control.cs:
38585           - Added sanity check to creation of double buffer bitmap
38586
38587 2004-09-02 16:24  pbartok
38588
38589         * ButtonBase.cs:
38590           - Fixed selection of text color
38591           - Fixed handling of resize event; now properly recreates double
38592             buffering bitmap
38593           - Added missing assignment of TextAlignment
38594           - Added proper default for TextAlignment
38595
38596 2004-09-02 14:26  pbartok
38597
38598         * RadioButton.cs:
38599           - Added missing RadioButton.RadioButtonAccessibleObject class
38600
38601 2004-09-02 14:26  pbartok
38602
38603         * Control.cs:
38604           - Added missing Control.ControlAccessibleObject class
38605           - Started to implement Select()ion mechanisms, still very incomplete
38606
38607 2004-09-02 14:25  pbartok
38608
38609         * AccessibleObject.cs:
38610           - Added missing methods
38611
38612 2004-09-02 14:23  pbartok
38613
38614         * AccessibleNavigation.cs, AccessibleSelection.cs:
38615           - Initial check-in
38616
38617 2004-09-02 10:32  jordi
38618
38619         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38620           pool for pens, brushes, and hatchbruses
38621
38622 2004-09-01 15:30  jackson
38623
38624         * StatusBar.cs: Fix typo
38625
38626 2004-09-01 14:44  pbartok
38627
38628         * RadioButton.cs:
38629           - Fixed state
38630
38631 2004-09-01 14:39  pbartok
38632
38633         * Button.cs, RadioButton.cs:
38634           - Functional initial check-in
38635
38636 2004-09-01 14:01  pbartok
38637
38638         * CheckBox.cs:
38639           - Added missing default
38640           - Added missing region mark
38641
38642 2004-09-01 09:10  jordi
38643
38644         * Label.cs: fixes method signatures, new methods, events, fixes
38645           autosize
38646
38647 2004-09-01 07:19  jordi
38648
38649         * Control.cs: Init string variables with an empty object
38650
38651 2004-09-01 04:20  jordi
38652
38653         * Control.cs: fires OnFontChanged event
38654
38655 2004-08-31 20:07  pbartok
38656
38657         * ButtonBase.cs:
38658           - Enabled display of strings
38659
38660 2004-08-31 20:05  pbartok
38661
38662         * Form.cs:
38663           - Added (partial) implementation of DialogResult; rest needs to be
38664             implemented when the modal loop code is done
38665
38666 2004-08-31 19:55  pbartok
38667
38668         * CheckBox.cs:
38669           - Fixed to match the removal of the needs_redraw concept
38670
38671 2004-08-31 19:55  pbartok
38672
38673         * ButtonBase.cs:
38674           - Removed the rather odd split between 'needs redraw' and redrawing
38675           - Now handles the events that require regeneration (ambient
38676             properties and size)
38677
38678 2004-08-31 19:41  pbartok
38679
38680         * Control.cs:
38681           - Added firing of BackColorChanged event
38682           - Added TopLevelControl property
38683           - Fixed handling of WM_ERASEBKGRND message
38684
38685 2004-08-31 12:49  pbartok
38686
38687         * ButtonBase.cs:
38688           - Removed debug
38689           - Minor fixes
38690
38691 2004-08-31 12:48  pbartok
38692
38693         * CheckBox.cs:
38694           - Finished (famous last words)
38695
38696 2004-08-31 04:35  jordi
38697
38698         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38699           scrolling bugs, adds new methods
38700
38701 2004-08-30 14:42  pbartok
38702
38703         * CheckBox.cs:
38704           - Implemented CheckBox drawing code
38705
38706 2004-08-30 14:42  pbartok
38707
38708         * ButtonBase.cs:
38709           - Made Redraw() and CheckRedraw() virtual
38710           - Improved mouse up/down/move logic to properly track buttons
38711
38712 2004-08-30 09:44  pbartok
38713
38714         * CheckBox.cs:
38715           - Updated to fix broken build. Not complete yet.
38716
38717 2004-08-30 09:28  pbartok
38718
38719         * CheckState.cs:
38720           - Initial checkin
38721
38722 2004-08-30 09:17  pbartok
38723
38724         * Appearance.cs:
38725           - Initial check-in
38726
38727 2004-08-27 16:12  ravindra
38728
38729         * ToolBarButton.cs: Added TypeConverter attribute.
38730
38731 2004-08-27 16:07  ravindra
38732
38733         * ImageIndexConverter.cs: Implemented.
38734
38735 2004-08-27 14:17  pbartok
38736
38737         * Control.cs:
38738           - Removed unneeded stack vars
38739           - First attempt to fix sizing issues when layout is suspended
38740
38741 2004-08-25 15:35  jordi
38742
38743         * ScrollBar.cs: more fixes to scrollbar
38744
38745 2004-08-25 14:04  ravindra
38746
38747         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38748           Added the missing divider code and grip for ToolBar Control.
38749
38750 2004-08-25 13:20  pbartok
38751
38752         * Control.cs:
38753           - Control now properly passes the ambient background color to child
38754             controls
38755
38756 2004-08-25 13:20  jordi
38757
38758         * ScrollBar.cs: small bug fix regarding bar position
38759
38760 2004-08-25 12:33  pbartok
38761
38762         * Timer.cs:
38763           - Now only calls SetTimer or KillTimer if the enabled state has
38764           changed
38765
38766 2004-08-25 12:33  pbartok
38767
38768         * XplatUIWin32.cs:
38769           - Fixed timer handling, now seems to work
38770           - Improved error message for window creation
38771
38772 2004-08-25 12:32  pbartok
38773
38774         * Control.cs:
38775           - Fixed generation of MouseUp message
38776
38777 2004-08-25 12:29  jordi
38778
38779         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38780           and fixes for progressbar
38781
38782 2004-08-24 18:43  ravindra
38783
38784         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38785           in ToolBar control.
38786
38787 2004-08-24 17:15  pbartok
38788
38789         * Panel.cs:
38790           - Added #region
38791           - Added missing events
38792           - Alphabetized
38793
38794 2004-08-24 17:14  pbartok
38795
38796         * StatusBar.cs, PictureBox.cs:
38797           - Now uses Control's CreateParams
38798
38799 2004-08-24 16:36  pbartok
38800
38801         * XplatUIX11.cs:
38802           - Fixed background color handling
38803           - Fixed sending of enter/leave events on a grab
38804
38805 2004-08-24 16:35  pbartok
38806
38807         * X11Structs.cs:
38808           - Refined definitions for CrossingEvent
38809
38810 2004-08-24 12:37  jordi
38811
38812         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38813           formmating, methods signature, and adds missing events
38814
38815 2004-08-24 12:24  jordi
38816
38817         * Control.cs: fire OnEnabledChanged event
38818
38819 2004-08-24 11:17  pbartok
38820
38821         * XplatUIWin32.cs:
38822           - Implemented SetTimer() and KillTimer()
38823
38824 2004-08-24 11:16  pbartok
38825
38826         * XplatUIX11.cs:
38827           - Now uses Remove instead of Add to kill the timer
38828
38829 2004-08-24 10:16  jackson
38830
38831         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38832           picture boxes in the theme now. Draw picture box borders and obey
38833           sizing modes
38834
38835 2004-08-24 05:49  jackson
38836
38837         * Timer.cs: Remove top secret debugging code
38838
38839 2004-08-24 05:34  jackson
38840
38841         * PictureBox.cs: Temp hack to make picture boxes draw their full
38842           image
38843
38844 2004-08-24 05:29  jackson
38845
38846         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38847           XplatUIX11.cs: Move timers to the driver level. On X they are
38848           queued by the driver and checked on idle.
38849
38850 2004-08-24 01:07  jackson
38851
38852         * XplatUIX11.cs: Use a queue for async messages instead of passing
38853           them as ClientMessages since that was totally broken. Also simply
38854           check for events and return an idle message if none are found. This
38855           gives us an idle handler, and prevents deadlocking when no messages
38856           are in the queue.
38857
38858 2004-08-23 18:19  ravindra
38859
38860         * XplatUIWin32.cs: Removed the unwanted destructor.
38861
38862 2004-08-23 17:27  pbartok
38863
38864         * ButtonBase.cs:
38865           - Finishing touches. Works now, just needs some optimizations.
38866
38867 2004-08-23 16:53  jordi
38868
38869         * ScrollBar.cs: small fix
38870
38871 2004-08-23 16:45  pbartok
38872
38873         * Application.cs:
38874           - Removed debug output
38875           - Simplifications
38876
38877 2004-08-23 16:43  jordi
38878
38879         * ScrollBar.cs: [no log message]
38880
38881 2004-08-23 16:10  pbartok
38882
38883         * Form.cs:
38884           - Fixed handling of WM_CLOSE message
38885           - Removed debug output
38886
38887 2004-08-23 16:09  pbartok
38888
38889         * Application.cs:
38890           - Added handling of Idle event
38891           - Added handling of form closing
38892           - Fixed reporting of MessageLoop property
38893           - Removed some unneeded code, should provide a bit of a speedup
38894
38895 2004-08-23 15:22  pbartok
38896
38897         * Control.cs:
38898           - Added InitLayout() method
38899           - Added code to properly perform layout when Anchor or Dock property
38900             is changed
38901           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38902             LAMESPEC, tried to do it in a way that makes sense
38903
38904 2004-08-23 14:10  jordi
38905
38906         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38907           properties and methods
38908
38909 2004-08-23 13:55  pbartok
38910
38911         * Control.cs:
38912           - Properly fixed Jordi's last fix
38913           - Now uses Cursor's Position property instead of calling XplatUI
38914           directly
38915
38916 2004-08-23 13:44  jordi
38917
38918         * PaintEventHandler.cs: Adding missing attribute
38919
38920 2004-08-23 13:39  pbartok
38921
38922         * Cursor.cs:
38923           - Implemented Position property
38924
38925 2004-08-23 13:39  pbartok
38926
38927         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38928           - Added method to move mouse cursor
38929
38930 2004-08-23 13:39  pbartok
38931
38932         * XplatUIX11.cs:
38933           - Fixed setting of background color
38934           - Added method to move mouse cursor
38935
38936 2004-08-23 13:16  jordi
38937
38938         * Control.cs: avoids null exception
38939
38940 2004-08-22 17:46  jackson
38941
38942         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38943           PictureBox
38944
38945 2004-08-22 17:40  jackson
38946
38947         * XplatUIX11.cs: Add some missing locks
38948
38949 2004-08-22 15:10  pbartok
38950
38951         * Control.cs, Form.cs:
38952           - Removed OverlappedWindow style from Control, instead it's default
38953             now is child
38954           - Made form windows OverlappedWindow by default
38955
38956 2004-08-22 13:34  jackson
38957
38958         * ScrollBar.cs: Update the position through the Value property so
38959           the OnValueChanged event is raised.
38960
38961 2004-08-22 12:04  pbartok
38962
38963         * SWF.csproj:
38964           - Added Cursor.cs and UserControl.cs
38965
38966 2004-08-22 12:03  pbartok
38967
38968         * Cursor.cs:
38969           - Started implementation, not usable yet
38970
38971 2004-08-22 12:00  pbartok
38972
38973         * UserControl.cs:
38974           - Implemented UserControl (complete)
38975
38976 2004-08-21 19:20  ravindra
38977
38978         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38979
38980 2004-08-21 18:49  ravindra
38981
38982         * ToolBar.cs: Probably this completes the missing attributes in
38983           toolbar control.
38984
38985 2004-08-21 18:03  ravindra
38986
38987         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38988           Fixed toolbar control signatures.
38989
38990 2004-08-21 16:32  pbartok
38991
38992         * LinkLabel.cs:
38993           - Signature Fixes
38994
38995 2004-08-21 16:30  pbartok
38996
38997         * Label.cs:
38998           - Signature fixes
38999
39000 2004-08-21 16:19  pbartok
39001
39002         * Control.cs, Label.cs:
39003           - Signature fixes
39004
39005 2004-08-21 15:57  pbartok
39006
39007         * ButtonBase.cs:
39008           - Added loads of debug output for development
39009           - Fixed typo in method name
39010
39011 2004-08-21 15:52  pbartok
39012
39013         * ToolBarButtonClickEventArgs.cs:
39014           - Added missing base class
39015
39016 2004-08-21 14:53  pbartok
39017
39018         * Control.cs:
39019           - Updated to match new GrabWindow signature
39020
39021 2004-08-21 14:51  pbartok
39022
39023         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39024           - Added method to get default display size
39025
39026 2004-08-21 14:23  pbartok
39027
39028         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39029           - Added method to query current grab state
39030           - Added argument to allow confining a grab to a window
39031
39032 2004-08-21 14:22  pbartok
39033
39034         * Keys.cs:
39035           - Added [Flags] attribute so that modifiers can be used in bitwise
39036           ops
39037
39038 2004-08-21 14:21  pbartok
39039
39040         * TrackBar.cs, ScrollBar.cs:
39041           - Replaced direct XplatUI calls with their Control counterpart
39042
39043 2004-08-21 13:32  pbartok
39044
39045         * Control.cs:
39046           - Implemented Created property
39047
39048 2004-08-21 13:28  pbartok
39049
39050         * Control.cs:
39051           - Implemented ContainsFocus
39052
39053 2004-08-21 13:26  pbartok
39054
39055         * Control.cs:
39056           - Implemented CausesValidation
39057
39058 2004-08-21 13:21  pbartok
39059
39060         * Control.cs:
39061           - Implemented CanFocus
39062           - Implemented CanSelect
39063           - Implemented Capture
39064
39065 2004-08-21 12:35  pbartok
39066
39067         * XplatUIWin32.cs:
39068           - Fixed bug with Async message handling
39069           - Implemented getting the ModifierKeys
39070
39071 2004-08-21 12:32  jackson
39072
39073         * AsyncMethodResult.cs: Make sure we have the mutex before we
39074           release it. Fixes BeginInvoke on windows
39075
39076 2004-08-21 11:31  pbartok
39077
39078         * XplatUIWin32.cs, XplatUIX11.cs:
39079           - Drivers now return proper mouse state
39080
39081 2004-08-21 10:54  jackson
39082
39083         * Control.cs: Implement EndInvoke
39084
39085 2004-08-21 10:48  jackson
39086
39087         * Timer.cs: Remove unneeded finalizer
39088
39089 2004-08-20 19:52  ravindra
39090
39091         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
39092           in mouse event handling in the ToolBar control.
39093
39094 2004-08-20 19:50  ravindra
39095
39096         * ImageList.cs: Changed draw method to use the arguments passed in
39097           to draw the image.
39098
39099 2004-08-20 18:58  pbartok
39100
39101         * XplatUIStructs.cs:
39102           - Added private message for async communication
39103
39104 2004-08-20 17:38  ravindra
39105
39106         * Control.cs: Made RightToLeft property virtual and removed a
39107           Console.WriteLine.
39108
39109 2004-08-20 14:39  jordi
39110
39111         * ThemeGtk.cs: use style_attach
39112
39113 2004-08-20 14:39  pbartok
39114
39115         * XplatUIWin32.cs:
39116           - Added jackson's Async code from X11 to Win32
39117
39118 2004-08-20 14:09  pbartok
39119
39120         * SWF.csproj:
39121           - Added all new files
39122
39123 2004-08-20 14:09  pbartok
39124
39125         * Control.cs:
39126           - Added call to set window background color
39127
39128 2004-08-20 14:03  pbartok
39129
39130         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39131           - Added method for setting the window background
39132
39133 2004-08-20 14:02  pbartok
39134
39135         * XplatUIWin32.cs:
39136           - Added method for setting the background color
39137           - Added handling for erasing the window background
39138
39139 2004-08-20 13:45  jordi
39140
39141         * TrackBar.cs: fixes timer, new properties and methods
39142
39143 2004-08-20 13:34  jackson
39144
39145         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39146           correct thread
39147
39148 2004-08-20 13:22  jackson
39149
39150         * Timer.cs: Timer Tick events are now handed through Controls Async
39151           mechanism so the callbacks are executed in the same thread as X
39152
39153 2004-08-20 13:19  jackson
39154
39155         * XplatUIDriver.cs: Expose functionality to send async messages
39156           through the driver
39157
39158 2004-08-20 13:18  jackson
39159
39160         * Control.cs: Implement Begininvoke
39161
39162 2004-08-20 13:14  jackson
39163
39164         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39165           messages through the driver
39166
39167 2004-08-20 13:12  jackson
39168
39169         * XplatUIX11.cs: Lock before all X operations. Also added Async
39170           method functionality through XSendEvent
39171
39172 2004-08-20 13:11  jackson
39173
39174         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39175           This will screw up on 64 bit systems)
39176
39177 2004-08-20 13:10  jackson
39178
39179         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39180           Async messages through X/Win32
39181
39182 2004-08-19 19:39  pbartok
39183
39184         * XplatUIX11.cs:
39185           - Updated code to match new HandleData.DeviceContext type
39186
39187 2004-08-19 19:38  pbartok
39188
39189         * HandleData.cs:
39190           - Made DeviceContext a generic object to allow usage from various
39191           drivers
39192           - Added support for queueing Windows messages
39193
39194 2004-08-19 19:37  pbartok
39195
39196         * XplatUIWin32.cs:
39197           - Added generation of MouseEnter, MouseLeave and MouseHover events
39198           - Added cleanup on EndPaint
39199
39200 2004-08-19 19:17  pbartok
39201
39202         * Control.cs:
39203           - Added handling of WM_MOUSEHOVER
39204           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39205           code
39206
39207 2004-08-19 18:55  jordi
39208
39209         * ThemeGtk.cs: fixes button order
39210
39211 2004-08-19 18:12  jordi
39212
39213         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39214
39215 2004-08-19 17:09  pbartok
39216
39217         * Control.cs:
39218           - Added Right property
39219           - Added RightToLeft property
39220
39221 2004-08-19 16:27  jordi
39222
39223         * ThemeGtk.cs: experimental GTK theme support
39224
39225 2004-08-19 16:26  jordi
39226
39227         * ITheme.cs, Theme.cs: move themes from an interface to a class
39228
39229 2004-08-19 16:25  jordi
39230
39231         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39232           theme enhancaments
39233
39234 2004-08-19 16:04  pbartok
39235
39236         * XplatUIX11.cs:
39237           - Added colormap basics
39238           - Added a way to re-initialize with a different display handle
39239           - Fixed setting of the window background color
39240           - Added various X11 imports related to colors and colormaps
39241
39242 2004-08-19 15:51  pbartok
39243
39244         * X11Structs.cs:
39245           - Removed packing hints (Paolo suggested this a while back)
39246           - fixed colormap type
39247           - Added default Atom types
39248           - Added Screen and color structs and enums
39249
39250 2004-08-19 15:39  pbartok
39251
39252         * ImageList.cs:
39253           - Added missing Draw() method
39254           - Added missing RecreateHandle event
39255
39256 2004-08-19 15:30  pbartok
39257
39258         * Form.cs:
39259           - Added handling of WM_CLOSE
39260
39261 2004-08-18 13:16  jordi
39262
39263         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39264           a table
39265
39266 2004-08-18 09:56  jordi
39267
39268         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39269
39270 2004-08-17 15:31  ravindra
39271
39272         * SWF.csproj: Updated project.
39273
39274 2004-08-17 15:25  pbartok
39275
39276         * Control.cs:
39277           - Drawing improvement; don't call UpdateBounds if we are not visible
39278             (or have been minimized)
39279
39280 2004-08-17 15:24  pbartok
39281
39282         * XplatUIWin32.cs:
39283           - Finished IsVisible
39284           - Added Win32GetWindowPlacement
39285
39286 2004-08-17 15:08  jackson
39287
39288         * Panel.cs: Initial checkin of the Panel
39289
39290 2004-08-17 14:25  pbartok
39291
39292         * Control.cs:
39293           - Fixed broken handling of default window sizes
39294
39295 2004-08-17 13:29  jackson
39296
39297         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39298           has a large startup time.
39299
39300 2004-08-17 10:25  jackson
39301
39302         * HandleData.cs: union areas properly
39303
39304 2004-08-17 10:12  jackson
39305
39306         * HandleData.cs: union areas properly
39307
39308 2004-08-16 20:00  ravindra
39309
39310         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39311
39312 2004-08-16 18:48  ravindra
39313
39314         * ToolBar.cs: Added attributes.
39315
39316 2004-08-16 17:17  ravindra
39317
39318         * SWF.csproj: Updated project.
39319
39320 2004-08-16 17:16  jackson
39321
39322         * XplatUIX11.cs: Check for more expose events before sending a
39323           WM_PAINT so they can all be grouped together. This makes dragging a
39324           window across another window redraw in a sane way.
39325
39326 2004-08-16 15:47  pbartok
39327
39328         * Control.cs:
39329           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39330             support OnMouseEnter/Leave()
39331           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39332             exposure handling
39333
39334 2004-08-16 15:46  pbartok
39335
39336         * XplatUIStructs.cs, XplatUIX11.cs:
39337           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39338           OnMouseEnter/Leave()
39339
39340 2004-08-16 15:34  jackson
39341
39342         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39343           sure messages get the message field set to WM_NULL if they are not
39344           handled.
39345
39346 2004-08-16 15:24  jackson
39347
39348         * HandleData.cs: HandleData is used for storing message information
39349           for window handles
39350
39351 2004-08-15 17:23  ravindra
39352
39353         * ColorDepth.cs: Added attribute.
39354
39355 2004-08-15 17:23  ravindra
39356
39357         * SWF.csproj: Updated project for ToolBar Control.
39358
39359 2004-08-15 17:20  ravindra
39360
39361         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39362           control and also dos2unix format.
39363
39364 2004-08-15 17:13  ravindra
39365
39366         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39367           ToolBarButtonClickEventArgs.cs,
39368           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39369           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39370
39371 2004-08-15 15:31  pbartok
39372
39373         * ButtonBase.cs:
39374           - First (mostly) working version
39375
39376 2004-08-13 16:15  pbartok
39377
39378         * Control.cs:
39379           - Fixed Anchor default
39380
39381 2004-08-13 15:43  pbartok
39382
39383         * Control.cs:
39384           - Changed GetCursorPos signature
39385
39386 2004-08-13 15:42  pbartok
39387
39388         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39389           - Changed signature for GetCursorPos
39390
39391 2004-08-13 15:25  pbartok
39392
39393         * XplatUIX11.cs:
39394           - Cleanup
39395           - Fixed resizing/exposure handling
39396
39397 2004-08-13 15:22  jordi
39398
39399         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39400           with tickposition
39401
39402 2004-08-13 14:55  jordi
39403
39404         * TrackBar.cs: change from wndproc to events
39405
39406 2004-08-13 13:00  jordi
39407
39408         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39409           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39410
39411 2004-08-13 12:53  pbartok
39412
39413         * XplatUIWin32.cs:
39414           - Changed GetWindowPos to also provide client area size
39415           - Fixed broken prototypes for several win32 functions
39416
39417 2004-08-13 12:53  pbartok
39418
39419         * XplatUI.cs, XplatUIDriver.cs:
39420           - Changed GetWindowPos to also provide client area size
39421
39422 2004-08-13 12:52  pbartok
39423
39424         * XplatUIX11.cs:
39425           - Added generation of WM_POSCHANGED
39426           - Changed GetWindowPos to also provide client area size
39427
39428 2004-08-13 12:52  pbartok
39429
39430         * Control.cs:
39431           - Added Dispose() and destructor
39432           - Fixed resizing and bounds calculation
39433           - Fixed Layout
39434           - Added memory savings for invisible windows
39435
39436 2004-08-13 12:46  jordi
39437
39438         * TrackBar.cs: adds timer and grap window
39439
39440 2004-08-13 10:25  jackson
39441
39442         * Timer.cs: SWF Timer
39443
39444 2004-08-12 16:59  pbartok
39445
39446         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39447           - Implemented method to get current mouse position
39448
39449 2004-08-12 14:29  jordi
39450
39451         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39452           enhancement, fix mouse problems, highli thumb, etc
39453
39454 2004-08-12 13:31  pbartok
39455
39456         * Control.cs:
39457           - Fixed Anchoring bugs
39458
39459 2004-08-12 13:01  jackson
39460
39461         * StatusBar.cs: Don't forget things
39462
39463 2004-08-12 12:54  jackson
39464
39465         * ThemeWin32Classic.cs: Handle owner draw status bars
39466
39467 2004-08-12 12:54  jackson
39468
39469         * StatusBar.cs: Implement missing properties, events, and methods.
39470           Handle mouse clicking
39471
39472 2004-08-12 10:19  jackson
39473
39474         * StatusBarPanelClickEventArgs.cs,
39475           StatusBarPanelClickEventHandler.cs: Classes for handling status
39476           bar panel click events
39477
39478 2004-08-12 10:10  jackson
39479
39480         * Control.cs: Add missing properties
39481
39482 2004-08-12 09:46  pbartok
39483
39484         * BindingsManagerBase.cs:
39485           - Name changed to BindingManagerBase.cs
39486
39487 2004-08-12 09:25  jordi
39488
39489         * ScrollableControl.cs: calls ctrlbase instead of exeception
39490
39491 2004-08-11 16:28  pbartok
39492
39493         * InputLanguageChangingEventArgs.cs:
39494           - Never check in before compiling. Fixes the last check-in
39495
39496 2004-08-11 16:26  pbartok
39497
39498         * InputLanguageChangingEventArgs.cs:
39499           - More signature fixes
39500
39501 2004-08-11 16:20  pbartok
39502
39503         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39504           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39505           ImageListStreamer.cs, InputLanguage.cs,
39506           InputLanguageChangedEventArgs.cs,
39507           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39508           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39509           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39510           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39511           - Signature fixes
39512
39513 2004-08-11 16:16  pbartok
39514
39515         * Application.cs:
39516           - Fixed Signature
39517           - Added .Net 1.1 method
39518
39519 2004-08-11 15:25  pbartok
39520
39521         * SWF.csproj:
39522           - Fixed BindingManagerBase.cs filename
39523
39524 2004-08-11 15:22  pbartok
39525
39526         * BindingManagerBase.cs:
39527           - Was checked in with wrong filename
39528
39529 2004-08-11 14:50  pbartok
39530
39531         * SWF.csproj:
39532           - Updated
39533
39534 2004-08-11 13:41  jordi
39535
39536         * XplatUIWin32.cs: Fixes ClientRect
39537
39538 2004-08-11 13:19  pbartok
39539
39540         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39541           XplatUIX11.cs:
39542           - We had SetWindowPos and MoveWindow to set window positions and
39543             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39544             keep SetWindowPos as matching counterpart
39545           - Added some X11 sanity checking
39546
39547 2004-08-11 12:59  pbartok
39548
39549         * Control.cs:
39550           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39551             (It seems that SetBounds is just a front for SetBoundsCore and
39552              SetBoundsCore updates the underlying window system and
39553              UpdateBounds is responsible for updating the variables associated
39554              with the Control and sending the events)
39555           - Major cleanup of Size handling; we now have two sizes, client_size
39556             and bounds. Bounds defines the window with decorations, client_size
39557             without them.
39558
39559 2004-08-11 12:55  pbartok
39560
39561         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39562           - Added method to calculate difference between decorated window and
39563             raw client area
39564
39565 2004-08-11 12:54  pbartok
39566
39567         * Label.cs:
39568           - Forcing redraw on resize
39569
39570 2004-08-11 11:43  pbartok
39571
39572         * ImageList.cs:
39573           - Removed disposing of the actual images when the list is disposed
39574
39575 2004-08-11 09:13  pbartok
39576
39577         * Control.cs:
39578           - Now properly reparents windows
39579
39580 2004-08-11 08:37  pbartok
39581
39582         * Control.cs:
39583           - Duh!
39584
39585 2004-08-11 07:47  pbartok
39586
39587         * Control.cs:
39588           - Rewrote the collection stuff. Might not be as fast now, not
39589             keeping the number of children around and accessible directly, but
39590             it's more straightforward
39591
39592 2004-08-11 07:44  pbartok
39593
39594         * AccessibleObject.cs:
39595           - Fixed to match ControlCollection rewrite
39596
39597 2004-08-11 07:43  pbartok
39598
39599         * ImageList.cs:
39600           - Added missing creation of the collection list
39601
39602 2004-08-10 20:08  jackson
39603
39604         * StatusBar.cs: Get the paint message from WndProc
39605
39606 2004-08-10 19:31  jackson
39607
39608         * ThemeWin32Classic.cs: Create Brushes as little as possible
39609
39610 2004-08-10 19:20  jackson
39611
39612         * UICues.cs: Add Flags attribute
39613
39614 2004-08-10 19:19  jackson
39615
39616         * StatusBarPanel.cs: Signature cleanup
39617
39618 2004-08-10 19:10  jackson
39619
39620         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39621           Initial implementation of status bar item drawing
39622
39623 2004-08-10 17:27  jordi
39624
39625         * TrackBar.cs: add missing methods, properties, and restructure to
39626           hide extra ones
39627
39628 2004-08-10 16:24  jackson
39629
39630         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39631           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39632           attribute
39633
39634 2004-08-10 13:21  jordi
39635
39636         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39637           enhancements and standarize on win colors defaults
39638
39639 2004-08-10 12:52  jackson
39640
39641         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39642           ThemeWin32Classic.cs: Implement DrawItem functionality
39643
39644 2004-08-10 12:47  jordi
39645
39646         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39647
39648 2004-08-10 12:32  jordi
39649
39650         * Control.cs: throw ontextchange event
39651
39652 2004-08-10 11:43  pbartok
39653
39654         * Control.cs:
39655           - Added more to the still unfinished Dock/Anchor layout code
39656
39657 2004-08-10 11:39  pbartok
39658
39659         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39660           - Added GetWindowPos method
39661
39662 2004-08-10 11:36  pbartok
39663
39664         * XplatUIWin32.cs:
39665           - Implemented several methods
39666
39667 2004-08-10 09:47  jackson
39668
39669         * TrackBar.cs: Allow control to handle buffering
39670
39671 2004-08-10 09:41  jackson
39672
39673         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39674
39675 2004-08-10 09:24  jackson
39676
39677         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39678
39679 2004-08-10 09:09  jackson
39680
39681         * StatusBar.cs: Let Control handle all the buffering.
39682
39683 2004-08-10 09:08  jackson
39684
39685         * Control.cs: Control will now handle the buffering code, so each
39686           control does not have to implement this.
39687
39688 2004-08-10 08:34  jackson
39689
39690         * XplatUIDriver.cs: Use default colors from the theme
39691
39692 2004-08-09 17:12  pbartok
39693
39694         * ImageList.cs:
39695           - Fixed several bugs Ravindra pointed out
39696
39697 2004-08-09 16:11  pbartok
39698
39699         * Control.cs:
39700           - Added incomplete dock layout code
39701           - Added support for mouse wheel
39702
39703 2004-08-09 16:09  pbartok
39704
39705         * XplatUIX11.cs:
39706           - Added handling for middle and right mousebutton
39707           - Added handling for mouse wheel
39708           - Added handling for key state and mouse state and position
39709           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39710           messages
39711
39712 2004-08-09 15:40  jackson
39713
39714         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39715           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39716           checkin
39717
39718 2004-08-09 15:37  jackson
39719
39720         * StatusBar.cs: Initial implementation of StatusBar
39721
39722 2004-08-09 15:36  jackson
39723
39724         * ITheme.cs: Add support for drawing status bar and getting status
39725           bar item sizes
39726
39727 2004-08-09 15:35  pbartok
39728
39729         * MouseButtons.cs:
39730           - Fixed values
39731
39732 2004-08-09 15:34  jackson
39733
39734         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39735           status bar item sizes
39736
39737 2004-08-09 15:21  jackson
39738
39739         * ThemeWin32Classic.cs: Use known colors for default control
39740           colours
39741
39742 2004-08-09 15:12  jackson
39743
39744         * ThemeWin32Classic.cs: Make the default font static, it is static
39745           in control so this doesn't change functionality and creating fonts
39746           is sloooooow.
39747
39748 2004-08-09 14:56  pbartok
39749
39750         * X11Structs.cs:
39751           - Added GrabMode enum
39752
39753 2004-08-09 14:55  pbartok
39754
39755         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39756           - Removed Run method, was only required for initial development
39757
39758 2004-08-09 14:51  pbartok
39759
39760         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39761           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39762           capture
39763
39764 2004-08-09 13:48  pbartok
39765
39766         * XplatUIX11.cs:
39767           - Fixed default sizing for child windows
39768
39769 2004-08-09 12:56  pbartok
39770
39771         * XplatUIX11.cs:
39772           - Added generation of WM_DESTROY message
39773           - Added handling of window manager induced shutdown
39774
39775 2004-08-09 11:31  jackson
39776
39777         * ThemeWin32Classic.cs: New names for control properties
39778
39779 2004-08-09 11:25  jackson
39780
39781         * Control.cs: Use new color names
39782
39783 2004-08-09 11:02  jackson
39784
39785         * XplatUI.cs: Get default window properties from the theme
39786
39787 2004-08-09 11:01  jackson
39788
39789         * ITheme.cs: The theme engine now controls default window
39790           properties
39791
39792 2004-08-09 11:00  jackson
39793
39794         * ThemeWin32Classic.cs: Add default window color properties
39795
39796 2004-08-09 10:17  jackson
39797
39798         * ThemeWin32Classic.cs: Use correct default back color
39799
39800 2004-08-09 10:05  jackson
39801
39802         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39803           the theme now.
39804
39805 2004-08-09 09:56  jackson
39806
39807         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39808
39809 2004-08-09 09:54  jackson
39810
39811         * Control.cs: Get default properties from the theme.
39812
39813 2004-08-09 09:53  jackson
39814
39815         * ITheme.cs: Themes now handle default control properties
39816
39817 2004-08-09 09:53  jackson
39818
39819         * ThemeWin32Classic.cs: Themes now handle default control
39820           properties so coloring will be consistent
39821
39822 2004-08-08 16:54  jordi
39823
39824         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39825
39826 2004-08-08 15:08  jordi
39827
39828         * XplatUIX11.cs: fixes keyboard crash
39829
39830 2004-08-08 13:47  jordi
39831
39832         * Label.cs: add cvs header info
39833
39834 2004-08-08 12:09  jackson
39835
39836         * ThemeWin32Classic.cs: Add pen_buttonface
39837
39838 2004-08-08 11:52  jordi
39839
39840         * Label.cs, LinkLabel.cs: [no log message]
39841
39842 2004-08-08 11:34  jordi
39843
39844         * ThemeWin32Classic.cs: Use Windows Standard Colours
39845
39846 2004-08-07 17:32  jordi
39847
39848         * TrackBar.cs: throw exceptions of invalid enums values
39849
39850 2004-08-07 17:31  jordi
39851
39852         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39853           draw method name
39854
39855 2004-08-07 16:56  jackson
39856
39857         * HorizontalAlignment.cs: Initial checkin
39858
39859 2004-08-07 13:16  jordi
39860
39861         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39862           methods
39863
39864 2004-08-07 13:05  jordi
39865
39866         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39867           GetSysColor defines
39868
39869 2004-08-06 18:01  pbartok
39870
39871         * ThemeWin32Classic.cs:
39872           - Fixed some rounding issues with float/int
39873
39874 2004-08-06 18:00  jackson
39875
39876         * DockStyle.cs, AnchorStyles.cs:
39877
39878                   Add flags and serializable attributes.
39879
39880 2004-08-06 17:46  pbartok
39881
39882         * XplatUIX11.cs:
39883           - Implemented GetParent
39884
39885 2004-08-06 17:18  pbartok
39886
39887         * TrackBar.cs:
39888           - Fixed some rounding issues with float/int
39889
39890 2004-08-06 17:17  pbartok
39891
39892         * X11Structs.cs, XplatUIX11.cs:
39893           - Fixed Refresh and Invalidate
39894
39895 2004-08-06 15:30  pbartok
39896
39897         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39898           - Fixed recursive loop when resizing
39899           - Improved/fixed redrawing on expose messages
39900
39901 2004-08-06 09:53  jordi
39902
39903         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39904           keyboard navigation
39905
39906 2004-08-06 08:02  pbartok
39907
39908         * X11Structs.cs, XplatUIX11.cs:
39909           - Fixed reparenting
39910           - Fixed window border creation
39911
39912 2004-08-05 15:38  pbartok
39913
39914         * XplatUIX11.cs:
39915           - Attempted fix for reparenting problems
39916
39917 2004-08-04 15:14  pbartok
39918
39919         * Control.cs:
39920           - Fixed Invalidation bug (calculated wrong client area)
39921           - Added ClientSize setter
39922
39923 2004-08-04 15:13  pbartok
39924
39925         * Form.cs:
39926           - Added AutoScale properties
39927
39928 2004-08-04 15:13  pbartok
39929
39930         * SWF.csproj:
39931           - Added latest files
39932
39933 2004-08-04 14:11  pbartok
39934
39935         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39936           XplatUIX11.cs:
39937           - Added Invalidate handling
39938
39939 2004-08-03 17:09  jordi
39940
39941         * XplatUIDriver.cs: fixes spelling mistake
39942
39943 2004-07-27 09:53  jordi
39944
39945         * TrackBar.cs: fixes trackbar events, def classname, methods
39946           signature
39947
39948 2004-07-27 09:29  jordi
39949
39950         * ScrollBar.cs: fixes scrollbar events
39951
39952 2004-07-27 04:38  jordi
39953
39954         * Control.cs: changes to be able to run winforms samples
39955
39956 2004-07-26 11:42  jordi
39957
39958         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39959           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39960
39961 2004-07-26 05:41  jordi
39962
39963         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39964           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39965           implementation
39966
39967 2004-07-22 09:22  jordi
39968
39969         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39970           check link overlapping, implement events, and fixes
39971
39972 2004-07-21 10:28  jordi
39973
39974         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39975
39976 2004-07-21 10:19  jordi
39977
39978         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39979           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39980           LinkLabelLinkClickedEventArgs.cs,
39981           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39982           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39983           implementation
39984
39985 2004-07-19 13:09  jordi
39986
39987         * Control.cs, Label.cs: label control re-written: added missing
39988           functionlity, events, and properties
39989
39990 2004-07-19 10:49  jordi
39991
39992         * Control.cs: fixes SetBounds logic
39993
39994 2004-07-19 01:29  jordi
39995
39996         * Control.cs: Call RefreshWindow only if the window has created
39997
39998 2004-07-15 14:05  pbartok
39999
40000         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
40001           - Implemented ImageList and ImageList.ImageCollection classes
40002           - Added ColorDepth enumeration
40003           - Updated SWF VS.Net project
40004
40005 2004-07-15 11:06  jordi
40006
40007         * XplatUIStructs.cs: added MsgButons enum
40008
40009 2004-07-15 11:03  jordi
40010
40011         * Control.cs: added basic mouse handeling events
40012
40013 2004-07-15 03:38  jordi
40014
40015         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
40016           Vertical TrackBar control implementation
40017
40018 2004-07-13 09:33  jordi
40019
40020         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
40021
40022 2004-07-13 09:31  jordi
40023
40024         * Control.cs, Form.cs: commit: new properties and fixes form size
40025           problems
40026
40027 2004-07-09 14:13  miguel
40028
40029         * ProgressBar.cs: Spelling
40030
40031 2004-07-09 11:25  pbartok
40032
40033         * ProgressBar.cs:
40034           - Removed usage of Rectangle for drawing. Miguel pointed out it's
40035           faster
40036
40037 2004-07-09 11:17  miguel
40038
40039         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
40040
40041                 * ProgressBar.cs: Fixed spelling for `block'
40042
40043                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
40044                 style guidelines.
40045
40046                 Avoid using the += on rect.X, that exposed a bug in the compiler.
40047
40048 2004-07-08 23:21  pbartok
40049
40050         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
40051           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
40052           BaseCollection.cs, Binding.cs, BindingContext.cs,
40053           BindingMemberInfo.cs, BindingsCollection.cs,
40054           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
40055           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
40056           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
40057           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
40058           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
40059           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
40060           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
40061           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
40062           FrameStyle.cs, GiveFeedbackEventArgs.cs,
40063           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
40064           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
40065           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
40066           InputLanguageChangedEventArgs.cs,
40067           InputLanguageChangedEventHandler.cs,
40068           InputLanguageChangingEventArgs.cs,
40069           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
40070           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
40071           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
40072           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
40073           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
40074           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
40075           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
40076           QueryAccessibilityHelpEventArgs.cs,
40077           QueryAccessibilityHelpEventHandler.cs,
40078           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
40079           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
40080           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
40081           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
40082           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
40083           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
40084           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
40085           XplatUIX11.cs, lang.cs:
40086           - Initial check-in
40087