2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2009-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * TextBoxBase.cs: Expose the margin top width as a property, to keep
4         the code clean.
5         * ToolStripTextBox.cs: Since we are actually using no border in the
6         default TextBox impl, and we are drawing the border ourselves, we need
7         to manually set the top margin.
8         Fixes part of #507462.
9
10 2009-07-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11
12         * PrintPreviewDialog.cs: Record when left was pressed, so we can
13         simulate Tab+Alt when moving the focus throughout our buttons and
14         controls.
15         Fixes the remaining bits of #509142.
16
17 2009-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18
19         * TabControl.cs: When computing the width of each tab page, use the
20         page's Font instead of the tab control one.
21         Fixes #514368.
22
23 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
24
25         * MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
26         the current menu is specifically a ContextMenu (this is what .net does
27         as well). This way we also avoid a crash caused by MenuTracker trying
28         to use the menu when it was already hidden.
29
30 2009-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
31
32         * PrintPreviewDialog.cs: Remove the code used to handle the
33         DropDown menu, since we are now doing it by default in ToolBar, and
34         just call the base impl as needed.Also, deactivate the dropdown menu
35         before moving the focus to a different button in our toolbar, as .net
36         does.
37         * ContextMenu.cs:
38         * MenuAPI.cs: Make as internal the needed bits to deactivate a
39         ContextMenu, and also to keep some beauty in our api.
40
41 2009-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
42
43         * ToolBar.cs: When handling the key down message, if we are on a
44         drop down button, either show the DropDownMenu or pass the key to its
45         ProcessCmdKey method as needed.
46         Fixes the remaining bits of #509985.
47
48 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
49
50         * ToolBar.cs: Isolate the event logic related to OnButtonClick. Also
51         set current_item when navigating with the keyboard, so we can use it
52         properly later. Finally, handle both Enter and Space to fire
53         OnButtonClick *only*, without any other impact, as .net does.
54         Fixes part of #509985.
55
56 2009-06-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
57
58         * MenuAPI.cs: Close any active menu when we get a simple Alt.
59         Fixes #509299.
60
61 2009-06-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
62
63         * ToolBar.cs: In OnButtonClick only change the Pushed value for
64         buttons with toogle style. We were previously doing it for
65         DropDownButton's buttons, but that's not what .net is doing.
66         Fixes #510030.
67
68 2009-06-26  Atsushi Enomoto  <atsushi@ximian.com>
69
70         * XplatUICarbon.cs : support multi-byte text input.
71           Fixed bug #501276.
72
73 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
74
75         * ListBox.cs: When creating DrawItemEventArgs, pass either
76         Theme.ColorHighlightText or ForeColor depending on the selected state
77         of our item, as .net does.
78         Fixes #512115.
79
80 2009-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
81
82         * ComboBox.cs: When handling WM_CHAR, process the message first, and
83         send it to the textbox only if it wasn't handled.
84         Fixes #507459.
85
86 2009-06-18  Jonathan Pobst  <monkey@jpobst.com>
87
88         * ComboBox.cs: Only do my big sort at the end of AddRange if
89         the combobox is actually set to Sorted.
90
91 2009-06-18 Tom Hindle <tom_hindle@sil.org>
92         
93         * XplatUIX11.cs: Enabled Text to coexist with custom data formats.
94         Fixes #511849.
95
96 2009-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
97
98         * ListBox.cs: When calculating the scrollbars for non MultiColumn
99         mode, force the use of the horizontal scrollbar only if
100         ScrollAlwaysVisible is true as well.
101         Fixes #513029.
102
103 2009-06-17  Jonathan Pobst  <monkey@jpobst.com>
104
105         * ComboBox.cs: When using AddRange on a sorted combobox, don't
106         try to use our inefficient sorted insert method, just append
107         it and sort the whole thing at then end.
108         [Fixes bug #511247]
109
110 2009-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
111
112         * ToolBar.cs: Expose as internal the code used to show a dropdown menu.
113         * PrintPreviewDialog.cs: Handle the down/up arrow keys for our
114         DropDown element.
115         Fixes #509152.
116
117 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
118
119         * DataGridView.cs: Scrolling fixes.
120         [Fixes bug #512816]
121
122 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
123
124         * DataGridView.cs, DataGridViewRowCollection.cs: Clean up a bit and 
125         optimize for batch adding rows.
126
127 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
128
129         * DataGridView.cs: Avoid calling ReBind twice during the initial data 
130         binding.
131         [Fixes bug #512807]
132
133 2009-06-16  Ivan N. Zlatev  <contact@i-nz.net>
134
135         * DataGridView.cs: Suppress invalidation during data binding.
136         [Fixes part of bug #512807]
137
138 2009-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
139
140         * PrintPreviewDialog.cs: Tune the navigation among the buttons and
141         controls that are part of our ToolBar, so we can mimic the behaviour
142         observed in .Net, by handling also the arrow keys and doing the
143         preprocess for them too.
144         Fixes the remaining bits of #509142.
145
146 2009-06-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
147
148         * ToolBar.cs: Expose the current item as internal.
149         * PrintPreviewDialog.cs: Tune the TabStop property for
150         PrintPreviewControl/ToolBar so we match the .net scenario regarding
151         Tab navigation. Also implement support to navigate throughout the
152         items in the ToolBar.
153         Fixes #509142.
154
155 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
156
157         * DataGridViewComboBoxCell.cs, DataGridViewComboBoxColumn.cs: 
158         Implement items syncing in the non-databound scenario.
159         [Fixes bug #494031]
160
161 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
162
163         * DataGridView.cs: Call OnCellValidating and OnCellValidated and 
164         handle the Cancel accordingly.
165         [Fixes bug #506838]
166
167 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
168
169         * DataGridViewBand.cs: Fix a typo in DefaultHeaderCellType.
170         [Fixes bug #506796]
171
172 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
173
174         * DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs, 
175         DataGridView.cs: Fire CollectionChangeAction.Refresh collection 
176         changed when Clearing the collections so that the DataGridView 
177         can know and reset the current cell.
178         [Fixes bug #492549]
179
180 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
181
182         * BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor 
183         with the PropertyDescriptor parameter instead of index, because the 
184         latter will set some irelevant indices. Fixes a bug uncovered by recent
185          fix to ListChangedEventArgs.
186
187 2009-06-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
188
189         * DataObject.cs: When looking for any specific format, do a case
190         insensitive search, as .net does.
191         Fixes #509199.
192
193 2009-06-09  Ivan N. Zlatev  <contact@i-nz.net>
194
195         * CurrencyManager.cs: In AllowNew firstly check if the list is a 
196         IBindingList and proxy to AllowNew. IBindingList has slightly differet 
197         logic and eventhough it's an IList IsReadOnly should not be used in this 
198         case as it might be True but AllowNew could be True as well.
199         Fixes a bug uncovered by a fix to the Array class.
200
201 2009-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
202
203         * ListBindingHelper.cs: In GetListItemType do a null check when
204         looking for IList.Item, since the impl could be explicit, and thus
205         private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
206         Fixes the remaining part of #507120
207
208 2009-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
209
210         * DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
211         to match them in all the cases, as this is exactly what .net does.
212         Fixes #510728.
213
214 2009-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
215
216         * ListBindingHelper.cs: In GetListItemType handle gracefully the case
217         where an instance of IEnumerator returns a null value for its Current
218         property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
219         Fixes #507120.
220
221 2009-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
222
223         * ComboBox.cs: Properly detect whether we need to use our vertical
224         scrollbar or not, specially for DropDownList/DropDown styles,
225         depending on the value of DropDownHeight.
226         Fixes #508541.
227
228 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
229
230         * ToolTip.cs: Call the base implementation in Dispose, but do it
231         before anything else to avoid a regression. This way we do the default
232         routines related to any System.ComponentModel.Container.
233         Fixes #508586.
234
235 2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
236
237         * Clipboard.cs:
238         * XplatUIX11.cs:
239         * DataFormats.cs: Implement support for serializable types in our
240         clipboard.
241         Fixes #357642.
242
243 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
244
245         * ColorDialog.cs: Actually add the help button to the form, so it can
246         be visible.
247         Fixes #478555.
248
249 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
250
251         * PrintPreviewDialog.cs: Don't use Dock.Fill for the
252         PrintPreviewControl, since it will be hidden in the top by our
253         toolbar. Use manual location and anchoring instead.
254         Fixes #474889.
255
256 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
257
258         * FileDialog.cs: When saving the size of the dialog, use the
259         ClientSize instead of Size, so we have always the same size for the
260         form. Patch by Alex Shulgin.
261         Fixes #503064.
262
263 2009-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
264
265         * MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
266         show a beep, similar to what .net does. 
267         Fixes #473725.
268
269 2009-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
270
271         * ContainerControl.cs:
272         * MenuStrip.cs
273         * ToolStrip.cs: Implicit mnemonic processing should happen for every
274         ToolStrip child, not only for MenuStrip, so we are going to do that in
275         ToolStrip.ProcessMnemonic, where we already had that exactly
276         functionality, but we are only just checking that either this instance
277         is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
278         remove the extra code, since we are not going to use it now.
279         Fixes the remaining bits of #503663.
280
281 2009-05-21  Neville Gao  <nevillegao@gmail.com>
282
283         * ContextMenu.cs: Cleaned up UIA properties.
284
285 2009-05-20  Dick Porter  <dick@acm.org>
286
287         * XplatUICarbon.cs: Add more locking around MessageQueue
288         manipulations.
289
290 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
291
292         * DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
293         duplication of code, as well as actually getting the focus back in
294         *any* scenario where the drop down is closed.
295
296 2009-05-18 Tom Hindle <tom_hindle@sil.org>
297         * ScrollableControl.cs: Ignore setting properties HScroll and 
298         VScroll when AutoScroll is true.
299         [Fixes bug #500213]
300
301 2009-05-18  Jonathan Pobst  <monkey@jpobst.com>
302
303         * ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
304         disabled graphics look closer to the ones that .Net produces.
305         [Fixes bug #473660]
306
307 2009-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
308
309         * DateTimePicker.cs: When calculating the max width for the year part,
310         use the current value, since *all* the possible values are exactly a 4
311         digits number. This way we avoid a ArgumentOutOfRangeException trying
312         to check against different values.
313         Fixes #500917.
314
315 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
316
317         * MessageBox.cs: When handling ProcessDialogChar, check that
318         CancelButton is not null before trying to use it, to avoid a null ref
319         exception. We don't need to do that on the ok/yes buttons, since they
320         always exist.
321         Fixes #503935.
322
323 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
324
325         * ListBox.cs: Handle the key down event in WndProc instead of doing it
326         in an event handler, as we need to avoid any operation in case
327         the user has handled it in its own OnKeyDown handler, and this can't
328         be achieved since our handler would be the first one always.
329         * FontDialog.cs: Update the calls since our method handling key down
330         has been renamed.
331         Fixes #503469.
332
333 2009-05-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
334
335         * Application.cs: We should dismiss the active ToolStrip when we
336         receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
337         keyboard short cut can be properly processed by another menu item.
338         Fixes part of #503663.
339
340 2009-05-13  Andreia Gaita  <avidigal@novell.com>
341
342         * HtmlDocument.cs: If the objects are strings, wrap them in ""
343
344 2009-05-13  Andreia Gaita  <avidigal@novell.com>
345
346         * HtmlDocument.cs: Fix InvokeScript call (duh).
347
348 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
349
350         * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
351         * ComboBox.cs: If auto complete is being used, it is needed to update
352         the actual value of the combo box, doing it immediately if the user
353         presses Enter, or doing it when our combo box loses focus. Finally,
354         when handling Enter and Escape keys for the combobox, don't try to
355         hide the listbox if it is not visible in the first place. 
356         Fixes part of #489339.
357
358 2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
359
360         * ToolStripDropDownMenu.cs: Use the height returned by
361         ToolStripItem.GetPreferredHeight to calculate our own height.
362
363 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
364
365         * TreeNode.cs: When setting Checked, do a double null check, since the
366         current node can still get a null parent handling
367         TreeView.OnAfterCheck.
368         Fixes #502567.
369
370 2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
371
372         * Control.cs: When assigning ContextMenu, do a null check before
373         assigning its container field.
374
375 2009-05-08  Brad Taylor  <brad@getcoded.net>
376
377         * DateTimePicker.cs: Add a UIA-specific property to ensure that if
378         is_checkbox_checked is changed, we won't break.
379
380 2009-05-08  Andrés G. Aragoneses  <aaragoneses@novell.com>
381
382         * ToolStripItem.cs: Prevent NRE when our holder is a
383         ToolStripDropDownButton and we get Select()ed.
384
385 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
386
387         * ToolStripControlHost.cs: DefaultSize must return the current size of
388         the Control, not the value returned by GetPreferredSize. Also connect
389         a handle to the control Resize event, and use it to fire
390         OnHostedControlReize.
391         Fixes the remaining bits of #483146.
392
393 2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
394
395         * ToolStripDropDown.cs: When performing the layout, use
396         ToolStripItem.GetPreferredSize ().Height instead of
397         ToolStripItem.Height, since we are already using it that way in this
398         same method.
399         Fixes part of ##483146.
400
401 2009-05-08  Brad Taylor  <brad@getcoded.net>
402
403         * DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
404         OnUIASelectionChanged when ShowCheckbox is true and the checkbox
405         recieves focus.  Part of fix for #502029.
406
407 2009-05-06  Mike Gorse  <mgorse@novell.com>
408
409         * FileDialog.cs: Add UIAFocusedItemChanged to PopupButtonPanel.
410         Add PerformClick and PerformDoubleClick to PopupButton.
411         Fixes #499851.
412
413 2009-05-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
414
415         * TabControl.cs: call Focus() to emit GotFocus event at the
416         proper time when SelectionIndex changes. Fixes #499887.
417
418 2009-05-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
419
420         * MonthCalendar.cs: In SetBoundsCore always do the bounds check to
421         have valid values, even if BoundSpecified is not including
422         Size/Height/Width - this is useful when we are in a control using Dock
423         or Anchor.
424         Fixes part of #483146.
425
426 2009-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
427
428         * ComboBox.cs: When losing the focus, if our textbox is not null,
429         close its auto complete list, if any.
430         Fixes part of #489339.
431
432 2009-04-27  Andrés G. Aragoneses  <aaragoneses@novell.com>
433
434         * ListView.cs: Make OnColumnClick +internal to be used by a11y.
435
436 2009-04-27  Brad Taylor  <brad@getcoded.net>
437
438         * ToolStripButton.cs: Emit an internal event when CheckOnClick is
439         changed.
440
441 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
442
443         * XplatUIX11.cs: Properly support UTF8 when handling the
444         SelectionRequest event - this is helpful supporting some window
445         managers, such KDE, that explictly request the text in utf8, as
446         opposed to gnome, that supports ascii.
447         Fixes #489393.
448
449 2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
450
451         * ToolStripDropDownItem.cs: When assigning a new
452         ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
453         Capture duties performed by Application/ToolStripManager are handled
454         nicely and we don't end up in an inconsisten stat.
455         Fixes #492815.
456
457 2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
458
459         * ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
460         any ToolStripDropDownItem when receiving a mouse down event in an
461         empty area.
462
463 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
464
465         * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.
466
467 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
468
469         * ToolBarButton.cs: rename a method to include UIA prefix.
470
471 2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>
472
473         * ToolBarButton.cs: change visibility of some UIA methods from
474         protected virtual to private.
475
476 2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
477
478         * ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
479         fire OnDropDownOpened/OnDropDownClosed depending on the new
480         visibility. This also ensures that any direct access to this instance
481         will fire the mentioned events for the OwnerItem.
482         * ToolStripDropDownItem.cs: Remove the invocations to
483         OnDropDownOpened/OnDropDownClosed, since they are handled in
484         ToolStripDropDown, as well as updating the
485         OnDropDownHide/OnDropDownShow calls to be in the right order.
486         Fixes #496193.
487
488 2009-04-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
489
490         * Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any 
491         shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the 
492         event is the same as the owner of the menu item. Also set properly 
493         SourceControl for ContextMenuStrip, as well as add an internal field to 
494         contain the control that owns the ContextMenuStrip (we need to know this 
495         even before the public property is assigned).
496         Fixes bits of #393775.
497
498 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
499
500         * StatusStrip.cs: Use the same icon as .net when the mouse is over the
501         size grip.
502         Fixes #492828.
503
504 2009-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
505
506         * ComboBox.cs: When calculating the height of the ComboListBox,
507         specially for the 2.0 profile, use MaxDropDownItems if the
508         DropDownHeight property hasn't been set, and use the later if it has
509         been set. This way we support both properties.
510         Fixes #493308.
511
512 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
513
514         * ThreadExceptionDialog.cs: Draw the error icon, previously missing.
515         Fixes #474253.
516
517 2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
518
519         * ContainerControl.cs: Implement support for Control.CausesValidation,
520         by adding a pending list of controls to be validated in the top
521         container control, and postpone validation as needed. 
522         Also remove any control in the validation chain in case it gets removed 
523         from its owner before the pending validation actually happens.
524         Fixes #457170.
525
526 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
527
528         * ListBox.cs: The default instance StringFormat field used to draw our
529         items should use the StringFormatFlags.NoWrap value, so it doesn't try
530         to put in a different line the text that doesn't fit our bounds, but
531         show it partially.
532         Fixes #475581.
533
534 2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
535
536         * CheckedListbox.cs: When executing OnItemClick check that the index
537         is different to -1 before trying to retrieve an item using that value.
538         Fixes a ArgumentOutOfRangeException thrown when the horizontal
539         scrollbar was visible but not needed, and then a clicked was received
540         on its area.
541
542 2009-04-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
543
544         * MaskedTextBox.cs: If Insert is pressed, change the internal
545         overwrite mode for our default value.
546         Fixes some bits of #477395.
547
548 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
549
550         * ListView.cs: In EnsureVisible avoid any direct access to items if we
551         are using virtual mode - otherwise use the bounds stored in a specific
552         item in a given index. This is specially important when using groups
553         or when items are re-arranged, since the position in the items
554         collection can be different than that one being displayed.
555         Fixes the rest of ##491978.
556
557 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
558
559         * ThemeWin32Classic.cs: Include the previous check for ListView in a
560         2.0 define as needed.
561
562 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
563
564         * ThemeWin32Classic.cs: Don't draw ListView's gridlines if we are using groups.
565         Fixes part of #491978.
566
567 2009-04-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
568
569         * ToolTip.cs: New fields to store the title/icon information.
570         * ThemeWin32Classic.cs: Implement support for tooltip's title and
571         icon.
572         Fixes #491978.
573
574 2009-04-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
575
576         * TabControl.cs: When removing a tab that was previously selected, set
577         internally the value of selected_index to -1, to avoid trying to
578         access the previous one when trying to set the new one (and was
579         already removed from the collection). This is what .net seems to do
580         too.
581         Fixes #490937.
582
583 2009-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
584
585         * XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
586         separated, and we cannot fallback on Text if Rtf is requested but not
587         present.
588         * Clipboard.cs: Actually use the format specified by our user when
589         putting data.
590
591 2009-03-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
592
593         * X11Clipboard.cs: Actually look for the RtfText format when calling
594         GetRftText in our clipboard formats list, instead of using the
595         generical Text format.
596
597 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
598
599         * TextBox.cs: Process auto completion properly when we are using the
600         internal source provided by ComboBox, and also remove some repeated
601         checks.
602         Fixes #489339.
603
604 2009-03-30 Tom Hindle <tom-hindle@sil.org>
605         
606         * DataGridView added Support for Invisible Columns to 
607         AutoFillColumnsInternal method.
608
609 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
610
611         * X11Structs:
612         * X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
613         its own file, since it is adding some functionality and thus is not a
614         simple struct as before.
615         * XplatUIX11.cs: Add support to store different formats that could
616         have been specified by the user when puting data in the Clipboard -
617         this is important when more than one format is supported (such plain
618         text and rtf text). Update in the needed places, as well as simplify
619         the code.
620         Fixes #489625.
621
622 2009-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
623
624         * XplatUIX11.cs: When handling the SelectionRequest event, use
625         SelectionRequestEvent instead of SelectionEvent, so we get the right
626         data for the app asking for clipboard data. Set the member of
627         SelectioneEvent.property to indicate the place where we are storing
628         the information as well - this is specially important for gnome/kde
629         apps using the TARGETS atom to ask for the supported permission before
630         actually asking for a specific format.
631         Fixes #489393.
632
633 2009-03-28  Ivan N. Zlatev  <contact@i-nz.net>
634
635         * DataGridViewCell.cs: We don't support drawing all types of cell borders, 
636         so fallback and at least draw something instead of nothing.
637
638 2009-03-27  Ivan N. Zlatev  <contact@i-nz.net>
639
640         * DataGridView.cs: If the column header isn't visible allow resizing 
641         using the cell column border. Also be sure to reset the cursor properly.
642         [Fixes bug #489929]
643
644 2009-03-26   Carlos Alberto Cortez <calberto.cortez@gmail.com>
645
646         * ToolStrip.cs: When disposing, iterate over the items in reverse
647         order, since disposing the items modifies the collection.
648         * ToolStripItem.cs: Remove from the owner when disposing.
649         Fixes #485769.
650
651 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
652
653         * DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No 
654         longer throws a NotImplementedException.
655           Based on a patch by Tom Hindle <tom_hindle@sil.org>
656         [Fixes bug #488319]
657
658 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
659
660         * DataGridView.cs: Implement IsCurrentRowDirty. No longer throws 
661         NotImplementedException.
662
663 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
664
665         * DataGridViewColumn.cs, DataGridViewTextBoxColumn.cs: 
666         Fix SortMode clash handling.
667         [Fixes bug #488263]
668
669 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
670
671         * DataGridView.cs: Do not show the vertical scrollbar if there is only 
672         one row or less. For the sake of MSNET compatibility.
673         [Fixes bug #487988]
674
675 2009-03-26  Ivan N. Zlatev  <contact@i-nz.net>
676
677         * DataGridView.cs: When the current cell is moved out of the editing row 
678         be sure to reset it back to a place holder row.
679
680 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
681
682         * DataGridView.cs: If IsHandleCreated and the very first row is added 
683         to the grid in a non-databound scenario - select the first cell.
684         [Fixes bug #486881]
685
686 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
687
688         * DataGridView.cs: If we are not databound and empty once the first row 
689         gets added select the first cell.
690         [Fixes bug #486881]
691
692 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
693
694         * DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
695         DataGridView. They do not belong to a DataGridView.
696         [Fixes bug #486645]
697
698 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
699
700         * DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs: 
701         Set indices and associate with DataGridView only after the item is 
702         add to the internal list.
703         [Fixes part of bug #486645]
704
705 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
706
707         * DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount. 
708         FullRowTemplate already contains all the cells.
709         [Fixes part of bug #486645]
710
711 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
712
713         * DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal 
714         to perform Pre and Post removal actions to allow the current cell to be 
715         moved and all events fired properly before the column is removed.
716
717 2009-03-19  Ivan N. Zlatev  <contact@i-nz.net>
718
719         * DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and 
720         Post removal action to allow the current cell to be moved and all events fired 
721         properly before the row is removed.
722
723 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
724
725         * DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
726         [Fixes bug #486640]
727
728 2009-03-18  Jonathan Pobst  <monkey@jpobst.com>
729
730         * XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
731         placement of popup windows on OSX.
732
733 2009-03-18  Matt Guo  <matt@mattguo.com>
734
735         * FontDialog.cs: Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
736         [Fixes bug #482690]
737
738 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
739
740         * DataGridView.cs: Implement the CellMouseDoubleClick event.
741         [Fixes bug #486262]
742
743 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
744
745         * DataGridView.cs: Fix scrolling to take into account that the 
746         scrollbars are actually inside the client area of the datagridview.
747
748 2009-03-18  Ivan N. Zlatev  <contact@i-nz.net>
749
750         * DataGridView.cs: Implement mouse wheel scrolling.
751         [Fixes bug #486159]
752
753 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
754
755         * DataGridView.cs: When DataSource changes the rebinding should happen 
756         not if IsHandleCreated but if BindingContext != null.
757         [Fixes bug #486013]
758
759 2009-03-17  Ivan N. Zlatev  <contact@i-nz.net>
760
761         * DataGridView.cs: Browsable(false) properties should be skipped when 
762         autogenerating the columns.
763         [Fixes bug #486021]
764
765 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
766
767         * DomainUpDown.cs: When ReadOnly is true, all the text entered by the
768         user should use a different handling, trying to use every pressed char
769         as a unique and only one prefix to compare against the items. Also,
770         refactor some input check code to avoid duplication.
771         Fixes #458607.
772
773 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
774
775         * DataGridViewCell.cs: In OwningColumng Handle invalid column index 
776         silently.
777         [Fixes bug #485278]
778
779 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
780
781         * DataGridViewBand.cs: Update our State whenever a property changes.
782         * DataGridView.cs: Don't be so generous in reseting Displayed, because 
783         it will spawn lots and lots of unneeded State changed events.
784         [Fixes bug #484989]
785
786 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
787
788         * DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs: 
789         Add support for invisible rows and columns.
790         [Fixes bug #484951]
791
792 2009-03-16  Ivan N. Zlatev  <contact@i-nz.net>
793
794         * DataGridViewCell.cs: Escape literal { in ToString.
795         * DataGridViewTextBoxCell.cs: Fix ToString.
796         [Fixes bug #484923]
797
798 2009-03-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
799
800         * MenuAPI.cs: When navigating items using the keyboard properly handle
801         the case when no item is selected - this way we should try to select
802         the first or the last item depending on the direction, but no the
803         second or third one, etc.
804
805 2209-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
806
807         * Form.cs: When calling ProcessCmdKey, just after checking for any
808         MainMenu, check if there's an active ContextMenu that is *not* owned
809         by the form - this is needed when a non-focusable control owns a
810         ContextMenu but its ProcessCmdKey method can't be called since it
811         can't receive any input.
812         Fixes #477655.
813
814 2009-03-13  Neville Gao  <nevillegao@gmail.com>
815
816         * ToolBar.cs: Sent ButtonClick events when button style is DropDown.
817         * ContextMenu.cs: Add UIA Framework property UIAVisible to detect if
818         ContextMenu is displayed.
819
820 2009-03-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
821
822         * XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
823         WM_HELP message for the associated window, don't call
824         NativeWindow.WndProc *at all*, since this could send a WM_*
825         key-related to Control.WndProc. Also, return the keypress message, in
826         case it needs to be preprocessed for any menu.
827         Fixes #478476.
828
829 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
830
831         * DataGridView.cs: When removing the first displayed row and moving 
832         the current cell up one we must invalidate the first displayed row 
833         index before calculating the row heights, etc.
834         [Fixes bug #483202]
835
836 2009-03-08  Ivan N. Zlatev  <contact@i-nz.net>
837
838         * DataGridView.cs: Fix three column bugs:
839            - Rows should be cleared (but not removed) if columns become 0.
840            - The current cell should get moved
841            - ColumnCount increase was adding too many columns.
842
843 2009-03-07  Ivan N. Zlatev  <contact@i-nz.net>
844
845         * DataGridView.cs: Fix RowCount decrease which wasn't working well 
846         in both scenarions - with and without editing row.
847
848 2009-03-06  Ivan N. Zlatev  <contact@i-nz.net>
849
850         * DataGridView.cs: Be compatible with MS in that the scroll to 
851         selection has a synchronous effect. The trick here is that in 
852         order to avoid unnecessary calculations each time a row/column 
853         is added/removed we recalculate the whole grid size just before 
854         just before the scroll to selection.
855         [Fixes bug #482478]
856
857 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
858
859         * RichTextBox.cs: LoadFile(string path) should pass by default
860         RichTextBoxStreamType.RichText, without caring about the detection or
861         extension of the file.
862
863 2009-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
864
865         * RichTextBox.cs: When calling LoadFile, remove the extra EOL
866         introduced by StreamReader, since it will convert the EOF to an EOL.
867         Fixes #479646.
868
869 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
870
871         * ToolStripDropDownMenu.cs: Use Math.Max instead of calculating
872         preferred size twice.
873
874 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
875
876         * ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
877         string if we aren't on a ToolStripDropDownMenu.
878
879 2009-03-06  Jonathan Pobst  <monkey@jpobst.com>
880
881         * ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
882         code from Item to Button.  Patch from Alex Shulgin.
883
884 2009-03-05  Jonathan Pobst  <monkey@jpobst.com>
885
886         * ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
887         * ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
888         not a ToolStripDropDown.
889         * ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
890
891 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
892
893         * DataGridView.cs: Fix RowCount/ColumnCount decreasing.
894
895           Based on a patch by Tom Hindle <tom_hindle@sil.org>
896           [Fixes bug #482133]
897
898 2009-03-04  Ivan N. Zlatev  <contact@i-nz.net>
899
900         * DataGridView.cs, DataGridViewElement.cs: 
901            - Always calls OnDataGridViewChanged() if the new DGV is 
902            not the same/null as the current one.
903            - Do not throw NREs when setting TopLeftHeaderCell to null
904            - Unset the DGV for TopLeftHeaderCell when replacing it
905           Based on a patch by Tom Hindle <tom_hindle@sil.org>
906           [Fixes bug #481681]
907
908 2009-03-04  Jonathan Pobst  <monkey@jpobst.com>
909
910         * ToolStripDropDown.cs: When dismissing control due to ESC, don't
911         hit a NRE if we are a ContextMenuStrip and do not have a parent.
912         [Fixes bug #478616]
913
914 2009-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
915
916         * ListView.cs: When removing items from a ListViewItemCollection
917         contained in ListView (not in ListViewGroup), before actually removing
918         the items remove them also from their -if any- associated groups. If
919         the item is present in ListViewGroup.Items but not in ListView.Items,
920         then don't remove it - this is *exactly* what .net seems to do.
921         Fixes the remaining bits of #478689.
922
923 2009-02-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
924
925         * ListView.cs: In our MouseDown handler in ItemControl use the item in
926         the very specific *real* position where the mouse was pressed, using
927         GetItemAtDisplayIndex for that purpose, instead of directly accessing
928         Items - this is specially useful when groups with Details view is
929         used. This is what we do in other places when using groups.
930         Fixes part of #478689.
931
932 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
933
934         * MaskedTextBox.cs: Properly replace selection when a new valid key
935         is pressed - even when IsOverwriteMode is false. This is what .net
936         does.
937
938 2009-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
939
940         * MaskedTextBox.cs: When setting Text and RejectOnFirstFailure is
941         true, use MaskedTextProvider.Set instead of MaskedTextProvider.Replace, 
942         since Set will keep the previous value in case of error (just what we
943         need), but still call MaskedTextProvider.Clear if
944         RejectOnFirstFailure is false - match .net.
945
946 2009-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
947
948         * MaskedTextBox.cs: When setting Text use the very precise algorithm
949         that .net uses: iterate over every char of the new value, trying to
950         use every char, and use a normal call to MaskedTextProvider.Replace
951         call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected 
952         in case of error in both cases, as well.
953         Fixes #477408.
954
955 2009-02-25  Neville Gao  <nevillegao@gmail.com>
956
957         * ColorDialog.cs: Added UIA Framwork Property:
958         UIASelectedSmallColorControl.
959
960 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
961
962         * MaskedTextBox.cs: Forgot to update the call of the new method
963         introduces in the previous patch.
964
965 2009-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
966
967         * MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
968         key. Also create a new method to avoid code duplication between
969         OnKeyDown and OnKeyPress.
970         Fixes #477388.
971
972 2009-02-24  Ivan N. Zlatev  <contact@i-nz.net>
973
974         * DataGridViewCell.cs: Invalidate the datagrid when the cell is selected 
975         or deselected.
976         [Fixes bug #479124]
977
978 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
979
980         * MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
981         actually inversed, so put it the right way. Also, don't automatically
982         look for the next editable item after adding a new one, but way for
983         the next insertion (this is what .net does) - this is not needed when
984         MaskedTextProvider.InsertAt is called however, since it already looks for the
985         next editable position.
986         Fixes the remaining bits of #477383.
987
988 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
989
990         * MaskedTextBox.cs: In OnKeyPress handle backspace by calling
991         MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
992         property after the text was modified, adjust the testPosition value
993         depending on what method was called.
994         Fixes part of #477383.
995
996 2009-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
997
998         * ListView.cs: For EnsureVisible, adjust the view port bounds based on
999         the existence of the column headers, as well as using this information
1000         to adjust the vscrollbar value, so items never get hidden by the
1001         column headers.
1002         Fixes #478498.
1003
1004 2009-02-23  Ivan N. Zlatev  <contact@i-nz.net>
1005
1006         * DataGridView.cs: Make the ScrollBars property work properly.
1007
1008 2009-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009
1010         * TextBox.cs: Some code lifting for AutoComplete's support. First,
1011         when handling non-navigation keys, save the original Text typed by the
1012         user, and don't motify it BEFORE. This was a design mistake, since the
1013         re-assignation happens only when navigating the append/suggest list,
1014         not while creating the matches. Also, process the Delete key just like 
1015         the backspace one. Finally, when handling WM_CHAR, ignore both Escape
1016         and Enter keys.
1017         Fixes some missing bits of #469967.
1018
1019 2009-02-22  Ivan N. Zlatev  <contact@i-nz.net>
1020
1021         * DataGridView.cs: Fix row removal in the data-bound scenario.
1022
1023 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1024
1025         * DataGridViewCell.cs: Use strict equality comparison in order to 
1026         prevent superfluous CellValueChanged events.
1027
1028 2009-02-19  Ivan N. Zlatev  <contact@i-nz.net>
1029
1030         * DataGridView.cs: Do not reset the columns when the data list changes, 
1031         but only the rows. Fixes multiple bugs related to sorting, custom 
1032         column styles being reset and more.
1033
1034 2009-02-19  Jonathan Pobst  <monkey@jpobst.com>
1035
1036         * ThemeWin32Classic.cs: Respect a PictureBox's Padding when
1037         drawing the image.
1038
1039 2009-02-18  Andrés G. Aragoneses  <aaragoneses@novell.com>
1040
1041         * ToolBarButton.cs: Oops, use the correct event (fix r127298).
1042
1043 2009-02-17  Andrés G. Aragoneses  <aaragoneses@novell.com>
1044
1045         * ToolBarButton.cs: Event for Enabled property (needed to fix
1046           UIA #474197).
1047
1048 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1049
1050         * TextBox.cs: When handling WndProc with autocomplete activated,
1051         event if the new text is not causing any change in the look up
1052         algorithm, save it as we normally do when numbers and letters.
1053         Fixes #469967.
1054
1055 2009-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1056
1057         * TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
1058         Invalidate the proper bounds in the TreeView, not only resetting the
1059         width.
1060         Fixes #475542.
1061
1062 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1063
1064         * TreeNode.cs: Don't return TreeView.BackColor when retrieving our own
1065         BackColor property. This is what .net does in both 1.1 and 2.0.
1066         * TreeView.cs: When selected_node is not the same as highlighted_node,
1067         we need to handle the back color in a different way, trying to use the
1068         node's BackColor if it's not Color.Empty.
1069         Fixes #464200.
1070
1071 2009-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072
1073         * TreeView.cs: When canceling selection in our MouseUp handler,
1074         invalidate also the previous selected node bounds.
1075         Fixes #464191.
1076
1077 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1078
1079         * DataGridView.cs: End or if end fails then cancel the current edit 
1080         operation before clearing the data source.
1081
1082 2009-02-07  Ivan N. Zlatev  <contact@i-nz.net>
1083
1084         * DataGridView.cs: Data-bind only after the handle is created.
1085         [Fixes bug #473680]
1086
1087 2009-02-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1088
1089         * TreeView.cs: When handling the MouseMove event, check if
1090         focused_node and selected_node fields are null - usually they are non
1091         null, since we have always a selected node, but canceling selection by
1092         handling BeforeSelect event leaves the two of them as null.
1093         Fixes #470451.
1094
1095 2009-02-06  Neville Gao  <nevillegao@gmail.com>
1096
1097         * TabControl.cs: Control enabled to support accessibility.
1098         [Fixes Bug #472428]
1099
1100 2009-02-05  Ivan N. Zlatev  <contact@i-nz.net>
1101
1102         * DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation: 
1103            - Use ArrayList.Insert instead of the Item property so that the item 
1104            is actually inserted and not an existing item replaced.
1105            - Call DataGridView.OnRowsAddedInternal and drop internal from 
1106            OnRowsAdded for binary compitability. This also fixes several 
1107            redrawing issues.
1108         [Fixes bug #472968]
1109
1110 2009-02-05  Andrés G. Aragoneses  <aaragoneses@novell.com>
1111
1112         * ToolBarButton.cs: Doh, fire OnUIATextChanged *after* setting
1113           the value.
1114
1115 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1116
1117         * ToolBarButton.cs: Add another event (OnUIATextChanged).
1118
1119 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1120
1121         * ToolBarButton: Fix typo in previous commit (r125704).
1122
1123 2009-02-04  Andrés G. Aragoneses  <aaragoneses@novell.com>
1124
1125         * ToolBar.cs, ToolBarButton.cs: Add new UIA events to know
1126         when a button gets focus, firing the events from the ToolBar.
1127         r: jpobst
1128
1129 2009-02-04  Mario Carrion  <mcarrion@novell.com>
1130
1131         * ColumnHeader.cs: Raising ListView.ColumnWidthChanged when setting 
1132         Width.
1133         * ListView.cs: Internal method added: RaiseColumnWidthChanged, used by
1134         ColumnHeader to raise ColumnWidthChanged.
1135         [Fixes Bug #467086]
1136
1137 2009-02-03  Ivan N. Zlatev  <contact@i-nz.net>
1138
1139         * DataGridViewRowCollection.cs, DataGridView.cs: Move row completion 
1140         code in the row collection code, so that the completion happens before 
1141         the CollectionChanged event, also better encapsulation.
1142         [Fixes bug #471987]
1143
1144 2009-02-02  Ivan N. Zlatev  <contact@i-nz.net>
1145
1146         * DataGridView.cs: When editing is finished do not remove the editing 
1147         row, because it has already become a real one. Instead add a new one.
1148         [Fixes bug #471754]
1149
1150 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1151
1152         * TreeView.cs: When drawing the node's image, check that the index
1153         specified by the node is valid for the ImageList.
1154         Fixes #471094.
1155
1156 2009-02-02  Andrés G. Aragoneses  <aaragoneses@novell.com>
1157
1158         * ToolBar.cs: Add new UIAPerformClick method to be called by
1159         UIAutomationWinforms when someone calls Invoke() on the
1160         ToolBarButtonProvider. r: jpobst
1161
1162 2009-02-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1163
1164         * XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
1165         MapNotify/UnmapNotify events - we are already firing those events in
1166         the proper places, so we avoid this way to send the same message two
1167         times. I'm leaving the handling code in case we could break something
1168         in the future, as this change seems dangerous (but needed).
1169         Fixes #467546.
1170
1171 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1172
1173         * DataGridView.cs: Complete incomplete rows when they are added to 
1174         the grid.
1175         [Fixes bug #471068]
1176
1177 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1178
1179         * DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the 
1180         binding is cleared prior to setting it to null. Fixes a regression 
1181         causing exceptions when the DataSource is set to null and then set 
1182         again to a data source.
1183
1184 2009-02-01  Ivan N. Zlatev  <contact@i-nz.net>
1185
1186         * DataGridView.cs, DataGridViewImageColumn.cs, DataGridViewCell.cs: 
1187            - Make Image/Bitmap cells work.
1188            - Handle images with size greater than the cell.
1189            - Default to MiddleCenter alignment for image cells.
1190         [Fixes bug #471101]
1191
1192 2009-01-30  Ivan N. Zlatev  <contact@i-nz.net>
1193
1194         * UpDownBase.cs: Force Height to PreferredHeight.
1195
1196 2009-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1197
1198         * XplatUIX11.cs: We should use utf8 handling clipboard transference
1199         with other x11 applications, and use utf16 when handling clipboard
1200         data in the class library. Update the related points as well.
1201         Fixes #468683.
1202
1203 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1204
1205         * DataGridViewCell.cs: Format strings according to the supplied 
1206         CellStyle.Format.
1207         [Fixes bug #470384]
1208
1209 2009-01-28  Ivan N. Zlatev  <contact@i-nz.net>
1210
1211         * DataGridView.cs: Reset the hover cell if it gets moved due to row(s) 
1212         addition or removal. Fixes multiple crashes in OnMouseMove.
1213
1214 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1215
1216         * DataGridView.cs: Fix a NRE when setting the CurrentCell to null.
1217
1218 2009-01-27  Ivan N. Zlatev  <contact@i-nz.net>
1219
1220         * XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the 
1221         current context.
1222         [Fixes bug #469239]
1223
1224 2009-01-26  Andreia Gaita  <avidigal@novell.com>
1225
1226         * WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
1227         won't be disabled by default.
1228         Fixes #468690
1229
1230 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1231
1232         * DataGridView.cs: Do not clear the rows if we are not databound.
1233
1234 2009-01-26  Ivan N. Zlatev  <contact@i-nz.net>
1235
1236         * DataGridView.cs: Do not be too smart about selecting the first cell 
1237         when the first row is added as this is not what MS does. Fixes the 
1238         failing unit tests.
1239
1240 2009-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1241
1242         * TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
1243         take into account the fact that OpenTreeNodeEnumerator needs to call
1244         MoveNext/MovePrevious to actually put the passed node as the one
1245         retrieved in Current. This way this property should work as really
1246         expected in .net.
1247         Fixes part of #467225.
1248
1249 2000-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1250
1251         * TreeView.cs: When calculating the scrollbars, don't use
1252         TreeNode.Bounds, since it still can have the values of the previous
1253         -and now invalid- layout -which depends on TreeView.skipped_nodes, and
1254         could not have been updated as well-, and use the actual number of
1255         visible number of nodes to compute the height needed to contain all
1256         the nodes. Also reset the value of vbar to 0 when disabled - this way
1257         we make sure that, when re-enabled, it will update the visible area of
1258         the treeview, even if the previous value before disabling it is the
1259         same as now. Finally don't do anything for the vbar.ValueChanged
1260         handler - for the case wheer we manually set the value but don't the
1261         vbar is disabled already.
1262         Fixes part of #467225.
1263
1264 2009-01-23  Jonathan Pobst  <monkey@jpobst.com>
1265
1266         * ToolStrip.cs: Switch from foreach to for, in case the collection
1267         somehow changes while enumerating it.
1268
1269 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1270
1271         * DataGridView.cs, DataGridViewCell.cs: Fix crashes when there is no 
1272         editing control.
1273
1274 2009-01-23  Ivan N. Zlatev  <contact@i-nz.net>
1275
1276         * DataGridView.cs: Fix new row adding/editing in the non-databound 
1277         scenario.
1278
1279 2009-01-21  Mike Gorse  <mgorse@novell.com>
1280
1281         * TrackBar.cs: Make LargeIncrement/Decrement internal so that UIA can
1282           use them.
1283           Added UIAValueParamChangedEvent.
1284
1285 2009-01-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1286
1287         * TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
1288         of trying to set as top node the highest parent of the previous top
1289         node. Moving to the bottom of the TreeView after a call to CollapseAll
1290         is exactly what .net does. This should avoid some nasty issue when
1291         CollapseAll is called and we don't need the vertical scroll bar.
1292
1293 2009-01-21  Mario Carrion <mcarrion@novell.com>
1294
1295         * Form.cs: UIA Support: Internal events added: UIAWindowStateChanged
1296         and UIATopMostChanged.
1297
1298 2009-01-21  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1299
1300         * MenuItem.cs: Add UIACheckChanged, UIARadioCheckChanged,
1301         UIAEnabledChanged, and UIATextChanged events.
1302
1303         * Form.cs: Add UIAMenuChanged event.
1304
1305         * Menu.cs:
1306         * MenuAPI.cs: Note which internal APIs are being used by UIA.
1307
1308 2009-01-21  Neville Gao  <nevillegao@gmail.com>
1309
1310         * ToolBar.cs: Control enabled to support accessibility.
1311         [Fixes Bug #455950]
1312
1313 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1314
1315         * TreeView.cs: When handling mouse up event, check whether
1316         highlighted_node is null or not - usually it should be non-null
1317         alwaays, since the mouse down handler sets it, but some externa
1318         operations, such TreeNodeCollection.Clear, could set it to null.
1319         Fixes #438650.
1320
1321 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1322
1323         * ThemeWin32Classic.cs: Draw the menu item shortcut even if the menu 
1324         item is disabled.
1325
1326 2009-01-19  Ivan N. Zlatev  <contact@i-nz.net>
1327
1328         * MenuAPI.cs: Do not handle shortcuts if the menu item is disabled.
1329         [Fixes bug #467285]
1330
1331 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1332
1333         * MonthCalendar.cs: When handling the selection changes using the
1334         mouse, don't set SelectionRange if the selection range didn't actually
1335         change. This matters because, even if we set the range to the same
1336         previous range, an extra DateChanged event is fired. Just to be clear:
1337         SelectionRage property doesn't check whether the new value is
1338         different to the previous one (by ref equals doesn't work here).
1339         Fixes other bits of #364914.
1340
1341 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1342
1343         * MonthCalendar.cs: Remove the extra OnDateChanged call when handling
1344         selection using the keyboard, since we are already firing this event
1345         when setting SelectionRange. Also don't set SelectionRange if the
1346         previous and the new value are the same (the property, just as .net
1347         does, doesn't check whether the previous value and the new one are the
1348         same). This saves us from firing OnDateChanged event if the selection
1349         range didn't change actually.
1350         Fixes the remaining bits of #364914.
1351
1352 2009-01-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1353
1354         * ListBox.cs: When removing an item and the last item is selected,
1355         remove it from the selection, and if selection mode is One try to
1356         select the new last item.
1357         Fixes #465422.
1358
1359 2009-01-16  Mike Gorse  <mgorse@novell.com>
1360
1361         * Splitter.cs: Make MaxSize internal so that UIA code can use it.
1362
1363 2009-01-16  Mario Carrion <mcarrion@novell.com>
1364
1365         * ColumnHeader.cs: UIA Support: raising internal event UIATextChanged 
1366         when changing Text. 
1367
1368 2009-01-16  Carlos Alberto Cortez <calberto.cortez@ggmail.com>
1369
1370         * X11Structs.cs:
1371         * XplatUIX11.cs: Properly encode/decode the unicode strings we
1372         store/retrieve in the Clipboard. Also, since we try to convert the
1373         data to different formats, separate the source and the result of
1374         it, so we can always fallback to the original and don't mix wrong
1375         conversions.
1376
1377 2009-01-16  Mike Gorse  <mgorse@novell.com>
1378
1379         * TextControl.cs: Add UIASelectionChanged event.
1380
1381 2009-01-16  Ivan N. Zlatev  <contact@i-nz.net>
1382
1383         * DataGridView.cs: Forward the first key events to the editing control.
1384         [Fixes bug #457307]
1385
1386 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1387
1388         * Application.cs: Oops, launch the copied handler of PreRun instead of
1389         the global one (gendarme would bark otherwise). (Improving r123375)
1390
1391 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1392
1393         * XplatUI.cs:
1394         * Application.cs: Move the PreRun event fire to the end of the XplatUI
1395         static ctor (we don't move the PreRun event to this class because its
1396         usage would cause the call to the static ctor). This way we can get
1397         a11y support for dialogs that run without App.Run.
1398
1399 2009-01-14  Andrés G. Aragoneses  <aaragoneses@novell.com>
1400
1401         * ListView.cs: New internal property to know the inner array's length of
1402         the location of items, in order to avoid a try-catch strategy for the
1403         case when this array has not been resized yet (for reference, look at
1404         r123288). r: jpobst
1405
1406 2009-01-13  Andrés G. Aragoneses  <aaragoneses@novell.com>
1407
1408         * Application.cs: Simplify UIA initialization, reducing it from 4 to 1
1409         reflection calls. This requires UIAutomationWinforms r123213.
1410
1411 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1412
1413         * MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
1414         handlers and fire the DateSelected event until MouseUp is reached,
1415         like .net does, instead of firing it for each mouse event.
1416         Fixes part of #364914.
1417
1418 2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1419
1420         * TreeView.cs: When the selection gets canceled using the BeforeSelect
1421         event, invalidate the previous highlighted_node bounds, to show the
1422         user that the item was *not* selected.
1423         Fixes #464191.
1424
1425 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1426
1427         * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
1428         well as -in DropDown and Simple modes- writing in the textbox should
1429         try to set the requested item as the top one, but navigating with the
1430         keyboard and handling mouse selection don't need that behaviour. Also,
1431         when resetting selected_index handling key press events, reset
1432         ComboListBox.HighlightIndex. 
1433         Fixes the remaining bits of #464188.
1434
1435 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1436
1437         * DataGridView.cs: Fix crashes when shortcut keys are pressed, but 
1438         there are no cells:
1439            - CurrentCellAddress should be -1, -1 and not 0, 0.
1440            - Be tolerant and fall back to clearing the current cell if either 
1441            column or row is -1 in MoveCurrentCell.
1442            - Misc. more -1 checks.
1443
1444 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1445
1446         * DataGridView.cs: Preserve the column index. Fixes a regression 
1447         introduced by the data binding position tracking code.
1448
1449 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1450
1451         * DataGridView.cs: If the bottom of the row matches the client height 
1452         do not regard the row as partially visible. Fixes the weird scrolling 
1453         when there is no scrollbar.
1454
1455 2009-01-11  Ivan N. Zlatev  <contact@i-nz.net>
1456
1457         * DataGridViewComboBoxCell.cs: Implement/Fix the data binding.
1458
1459 2009-01-09  Mario Carrion  <mcarrion@novell.com>
1460
1461         * MessageBox.cs: Fixed internal UIAIconRectangle property.
1462
1463 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1464
1465         * DataGridViewCheckBoxCell.cs: Respect the ReadOnly state of the Cell.
1466
1467 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1468
1469         * DataGridView.cs: Track the Position in the CurrencyManager.
1470
1471 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1472
1473         * DataGridView.cs: Implement data-bound new item editing/addition.
1474         * DataGridViewRowCollection.cs: Make it possible for us to internally 
1475         remove the edit row.
1476         [Fixes bugs #457107, #457308, #325240]
1477
1478 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1479
1480         * CurrencyManager.cs: Even if Position is set to a greater value than the 
1481         list count reset it to position of the last item.
1482
1483 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1484
1485         * BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList. 
1486         Fix that in order to make CancelNew to work.
1487
1488 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1489
1490         * BindingSource.cs: When adding a new item try to delegate to the internal 
1491         list first before throwing an exception.
1492
1493 2009-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1494
1495         * ComboBox.cs: When setting the text and adjusting the top_item, do it
1496         *only* if the current item is *not* visible already.
1497         Fixes part of #464188.
1498
1499 2009-01-09  Ivan N. Zlatev  <contact@i-nz.net>
1500
1501         * DataGridView.cs: Requesting the CurrencyManager for the first time can 
1502         lead to unexpected OnBindingContextChanged calls and recursive rebinding. 
1503         Fix that.
1504         [Fixes bug #464493]
1505
1506 2009-01-08  Brad Taylor  <brad@getcoded.net>
1507
1508         * ComboBox.cs: Expose a few private fields as internal UIA properties.
1509
1510 2009-01-07  Mario Carrion <mcarrion@novell.com>
1511         
1512         * DataGrid.cs: CWL removed.
1513
1514 2009-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1515
1516         * RadioButton.cs: When setting Checked, we should first update the
1517         check state of the current RadioButton, as well as invalidating it,
1518         and after that actually update the siblings. This is done to match
1519         .net.
1520         Fixes the remaining bits of #463028.
1521
1522 2009-01-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1523
1524         * RadioButton.cs: Setting Checked to false should set TabStop to stop
1525         as well. Also, when we get the focus and no other RadioButton is
1526         selected in the parent control, we should mark ourselves as Checked.
1527         Fixes part of #463028.
1528
1529 2009-01-05  Mario Carrion <mcarrion@novell.com>
1530
1531         * DataGrid.cs: UIA suppport. internal events: 
1532         UIAGridCellChanged, UIAColumnsHeadersVisibleChanged, 
1533         UIASelectionChanged, UIACollectionChanged. Internal properties: 
1534         UIARowHeight, UIACellsArea, UIACaptionArea, 
1535         UIAColumnHeadersArea, UIASelectedRows, UIACurrentTableStyle, 
1536         UIAVScrollBar and UIAHScrollBar.
1537
1538 2009-01-05  Jonathan Pobst  <monkey@jpobst.com>
1539
1540         * ToolStripSplitStackLayout.cs: Enable the overflow button if any
1541         of the buttons are set to Overflow = Always.
1542         [Fixes bug #463013]
1543
1544 2009-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1545
1546         * BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
1547         based on whether the binding source is availble or not. Fixes #463008.
1548
1549 2009-01-03  Ivan N. Zlatev  <contact@i-nz.net>
1550
1551         * DataGridViewCell.cs: We should return a value even if we are not bound 
1552         to a DataGridView.
1553
1554 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1555
1556         * CurrencyManager.cs, DataGrid.cs: 
1557            - Rename CanAddRows to AllowNew. The CurrencyManager has no 
1558            concept of "rows".
1559            - Add two more internal properties AllowRemove and AllowEdit.
1560         * DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows, 
1561         AllowUserToDeleteRows and cell ReadOnly state to be also checked against the 
1562         CurrencyManager data source.
1563
1564 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1565
1566         * DataGridView.cs: Fix crashes caused by assigning negative values to 
1567         ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than 
1568         the column/row heights/widths.
1569         [Fixes bug #462684]
1570
1571 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1572
1573         * DataGridView.cs: Non-autogenerated columns that have a data property 
1574         set that exists in the current datasource should be set to be data-bound.
1575
1576 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1577
1578         * DataGridView.cs: Fix column sorting for columns containing null 
1579         values. A "null" value is not always "null" (e.g could be String.Empty) 
1580         and thus parsing numeric types throwed an exception for "null" values.
1581
1582 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1583
1584         * DataGridView.cs: Detach the editing control when the edit is 
1585         finished.
1586
1587 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1588
1589         * DataGridView.cs: Multiple fixes to handle last column/row removal 
1590         and cell movement after that instead of throwing exceptions.
1591
1592 2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>
1593
1594         * DataGridViewCellCollection.cs: When cells are removed the column 
1595         indices become invalid if the cell is not the last one and have to 
1596         be refreshed.
1597
1598 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1599
1600         * DataGridView.cs: Return false in CommitEdit if there was an error.
1601
1602 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1603
1604         * DataGridView.cs: Remove a leftover Console.WriteLine.
1605
1606 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1607
1608         * DataGridViewRow.cs: Access the indexer of the data manager directly 
1609         instead of the internal list.
1610
1611 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1612
1613         * DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs: 
1614         Rewrite the value getting, setting, parsing, formatting logic:
1615            - If data-bound value get/set should actually get and set from the 
1616              data source.
1617            - Make proper usage of TypeConverters for value parsing/formatting.
1618            - Raise DataError if setting the new value fails.
1619            - Get rid off the internal valueType field and get/set the ValueType 
1620            property instead.
1621         [Fixes bug #462051]
1622
1623 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1624
1625         * DataGridView.cs: Rewrite the DataBinding layer:
1626            - Get rid off all BindingSource/IBindingList/DataSet/DataTable 
1627            specific code.
1628            - Get rid off the per DataSource type column autogeneration code.
1629            - Use the CurrencyManager for everything that is DataBinding related.
1630
1631 2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>
1632
1633         * CurrencyManager.cs: Do not fire duplicate ListChanged events.
1634
1635 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1636
1637         * DataGridView.cs, DataGridViewRow.cs: Add a new internal property 
1638         DataManager to fetch the CurrencyManager for the DataGridView and to 
1639         spare this logic for the other components to follow.
1640
1641 2008-12-31  Mario Carrion  <mcarrion@novell.com>
1642
1643         * MessageBox.cs: UIA support: new properties: UIAMessage, 
1644         UIAMessageRectangle and UIAIconRectangle.
1645
1646 2008-12-31  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1647
1648         * FileDialog.cs: Add PopupButtonPanel.PopupButton.PerformClick method
1649         and DirComboBox.DirComboBoxItem.ToString override for UIA support.
1650
1651 2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>
1652
1653         * DataGridView.cs: Do not autogenerate duplicate column for a 
1654         data member that has already problematically been assigned one.
1655         [Fixes bug #457305]
1656
1657 2008-12-30  Jonathan Pobst  <monkey@jpobst.com>
1658
1659         * ProfessionalColorTable.cs: Better detection of user's theme.
1660         [Fixes bug #462766]
1661
1662 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1663
1664         * DataGridView.cs: In the case where there are no autogenerated 
1665         columns and the user adds columns problematically we must generate 
1666         the rows after the very first column is added.
1667
1668 2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1669
1670         * DateTimePicker.cs: When increasing/decreasing the value of month
1671         with ShowUpDown set to true, moving from december to january, and
1672         moving from january to december should adjust the year to the next and
1673         the previous year, respectively.
1674         Fixes the remaining bits of #459674.
1675
1676 2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>
1677
1678         * DataGridView.cs: If a new cell is selected edit mode should be 
1679         immediately enabled only if EditOnEnter is set. Whether the mouse 
1680         or not was used to select the cell is irrelevant.
1681
1682 2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>
1683
1684         * DataGridView.cs: Remove a bogus ReBind call, which was causing 
1685         recursive rebinding.
1686
1687 2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1688
1689         * DateTimePicker.cs: Handle the "MMMM" month format.
1690         Fixes #459674.
1691
1692 2008-12-23  Ivan N. Zlatev  <contact@i-nz.net>
1693
1694         * DataGridView.cs: 
1695            - Make ReBind private and refactor various calls to call ReBind 
1696            instead of ClearBinding/DoBinding
1697            - Rebind when the column collection changes
1698         * DataGridViewColumnCollection.cs: 
1699            - Leave the rebinding on change to be handled by the DataGridView.
1700
1701 2008-12-23  Jonathan Pobst  <monkey@jpobst.com>
1702
1703         * DataGridView.cs: Add a ReBind convenience method.
1704         * DataGridViewColumnCollection.cs: Rebind when a column is added.
1705         [Fixes bug #462019]
1706
1707 2008-12-23  Neville Gao  <nevillegao@gmail.com>
1708
1709         * StatusBar.cs: Modified argument variable.
1710         * SplitContainer.cs: Control enabled to support accessibility.
1711         [Fixes Bug #455950]
1712
1713 2008-12-22  Jonathan Pobst  <monkey@jpobst.com>
1714
1715         * ToolStripMenuItem.cs: Guard against an NRE.
1716         [Fixes bug #457110]
1717
1718 2008-12-22  Mario Carrion  <mcarrion@novell.com>
1719
1720         * Control.cs: AccessibleXXXX properties don't return 
1721         AccessibleObject.XXXX, instead a local referece is returned.
1722
1723 2008-12-22  Neville Gao  <nevillegao@gmail.com>
1724
1725         * PrintPreviewControl.cs: Added internal properties to support
1726         accessibility.
1727         [Fixes Bug #459699]
1728
1729 2008-12-19  Mario Carrion  <mcarrion@novell.com>
1730
1731         * Control.cs: Reverted r121561. 
1732
1733 2008-12-19  Andrés G. Aragoneses  <aaragoneses@novell.com>
1734
1735         * X11DesktopColors.cs: Since r121873 we don't need gtk a11y checks here,
1736         it has been moved to the bridge.
1737
1738 2008-12-18  Brad Taylor  <brad@getcoded.net>
1739
1740         * DateTimePicker.cs: Add a few UIA specific events, and a couple
1741         internal methods useful for UIA.
1742
1743 2008-12-18  Mario Carrion <mcarrion@novell.com>
1744
1745         * ListBox.cs: Fixed GetItemRectangle when MultiColumn is true.
1746         [Fixes Bug #455752]
1747
1748 2008-12-17  Mike Gorse  <mgorse@novell.com>
1749
1750         * ListView.cs, ListViewItem.cs: Send OnUIAFocusedItemChanged if an
1751           item's Focused property is set.
1752
1753 2008-12-17  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1754
1755         * TreeView.cs:
1756         * TreeNode.cs:
1757         * TreeNodeCollection.cs: Add events for UIA support:
1758         UIACheckBoxesChanged, UIALabelEditChanged, UIANodeTextChanged, and
1759         UIACollectionChanged.
1760
1761 2008-12-17  Bill Holmes  <billholmes54@gmail.com>
1762
1763         * ListViewItem.cs (ListViewSubItem.ctor): Initalizing the 
1764           SubItemStyle member field. 
1765
1766         Contributed under MIT/X11 license.
1767
1768 2008-12-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1769
1770         * ListBox.cs: In MultiColumn mode don't use top_index to calculate the
1771         y coord, since it's useless in this case, and we need to rely only on
1772         the number of rows and ItemHeight to compute this value.
1773         Fixes part of #257471.
1774
1775 2008-12-15  Mike Gorse  <mgorse@novell.com>
1776
1777         * StatusBar.cs: Send OnUIACollectionChanged in Remove().
1778
1779 2008-12-15  Mario Carrion  <mcarrion@novell.com>
1780
1781         * Control.cs: Accessibility properties instantiate AccessibilityObject when
1782         needed.
1783         [Fixes Bug #459223]
1784
1785 2008-12-15  Brad Taylor  <brad@getcoded.net>
1786
1787         * ToolStripItem.cs: Add a UIA specific event for listening for when a
1788         ToolStripItem becomes selected or deselected.
1789
1790 2008-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1791
1792         * MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
1793         .net does. Use the date in the point of the mouse move coords as the
1794         new range as well, if the left button of the mouse is being pressed.
1795         Fixes #364914.
1796
1797 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1798
1799         * MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
1800         MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
1801         effectively repaint the control.
1802         Fixes the remaining bits of #417961.
1803
1804 2008-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1805
1806         * MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
1807         range to contain only dates within the new possible range.
1808         Fixes part of #417961.
1809
1810 2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1811
1812         * MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
1813         length of the text, but the end position, so we need to substract 1 to
1814         have a valid value. Also, in the same InputText method, don't use
1815         SelectionLength as the length of the text, since the selected text
1816         could actually be empty, but we need to set the value anyway.
1817         Fixes #457370.
1818
1819 2008-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1820
1821         * TextBox.cs: Don't do any auto complete task if the custom source is
1822         null or empty. Also avoid duplication of code.
1823         Fixes #457743.
1824
1825 2008-12-09  Ivan N. Zlatev  <contact@i-nz.net>
1826
1827         * DataGridView.cs: Refresh column sizes when new rows are added.
1828         [Fixes bug #457050]
1829
1830 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
1831         * RichTextBox.cs: When parsing the contents of a rtf file, don't call
1832         Split to create a line - we are already doing this, by _adding_ a new
1833         one when rtf_cursor_x is 0 (this field gets this value just after we
1834         receive the newline param as true). This avoids having a proportional number
1835         of empty lines in the end of the rich text box.
1836         Fixes #396664.
1837
1838 2008-12-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1839
1840         * RichTextBox.cs: When saving the contents as a plain text, don't add
1841         a new line for every Line structure, since the data in Document
1842         already contains the new line characters. This avoids duplicated new
1843         lines using the Save methods.
1844         Fixes #445618.
1845
1846 2008-12-09  Sandy Armstrong  <sanfordarmstrong@gmail.com>
1847
1848         * TreeView.cs: Expose ScrollBars as internal properties, for use by UIA
1849         framework.  Fixes bug #457678.
1850
1851 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1852
1853         * DataGridViewRow.cs: Prevent an exception on a not yet databound grid, 
1854         where datasource is null.
1855         [Fixes exception reported in bug 441240]
1856
1857 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1858
1859         * DataGridView.cs: EndEdit validation fixes.
1860
1861 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1862
1863         * DataGridView.cs: This is the cool patch that adds support for 
1864         actually updating the data in the databinding backend after editing. 
1865         With bonus firing and handling the DataError event.
1866
1867 2008-12-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1868
1869         * Line.cs: When calculating the text tags's Shift value, store it as
1870         pixels instead of points. This way we can actually handle different
1871         fonts in the same RichTextBox, as well as the right size of the caret.
1872         Fixes part of #351938.
1873
1874 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1875
1876         * DataGridViewCheckBoxCell.cs: Fix to make it work. Wrong value was 
1877         casted to CheckState causing InvalidCastExceptions.
1878
1879 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1880
1881         * DataGridView.cs: Fix the DataGridViewEditMode.EditOnEnter behavior 
1882         to not depend on the item being clicked.
1883
1884 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1885
1886         * DataGridView.cs: Implement NotifyCurrentCellDirty, so that it no 
1887         longer throws a NotImplementedException.
1888
1889 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1890
1891         * DataGridView.cs: Set EditingControlFormattedValue when preparing an 
1892         IDataGridViewEditingControl for editing.
1893
1894 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1895
1896         * DataGridViewComboBoxCell.cs: Implement data binding support.
1897
1898 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1899
1900         * DataGridView.cs: Use the CurrencyManager to update the data source 
1901         binding position instead of casting the data sourcde to BindingSource.
1902         This enables position updating for other type of data sources.
1903
1904 2008-12-08  Ivan N. Zlatev  <contact@i-nz.net>
1905
1906         * ComboBox.cs: Update the SelectedIndex before updating the Text 
1907         in OnDisplayMemberChanged.
1908
1909 2008-12-07  Ivan N. Zlatev  <contact@i-nz.net>
1910
1911         * DataGridView.cs: Fix our support for IDataGridViewEditingControl.
1912         [Fixes bug #457112]
1913
1914 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1915
1916         * DataGridView.cs: Sorting fixes:
1917            - Be strict when sorting is enabled.
1918            - If there is a data source delegate the sorting request.
1919
1920 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1921
1922         * Binding.cs: When converting the data also try with the destination 
1923         type typeconverter. This indirectly adds support for Nullable types 
1924         in our databinding layer.
1925
1926 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1927
1928         * DataGridView.cs: When cell editing is finished focus back the 
1929         DataGridView. Fixes keyboard navigation post-editing.
1930
1931 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1932
1933         * DataGridView.cs: Fix the cell editing by delaying the currentCell 
1934         setting to after EndEdit is called for the old cell.
1935
1936 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1937
1938         * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
1939
1940 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
1941
1942         * XplatUIX11.cs: Send WM_HELP only to the focused window.
1943
1944 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1945
1946         * CurrencyManager.cs: Fix exceptions when resetting the data source 
1947         for the same time (e.g. in ComboBox): 
1948            - Do not set the list position if we are still transferring data
1949            - When resetting the list firstly push the data then update the 
1950            binding.
1951         * Binding.cs: Check BindingManager.Position == -1 instead of 
1952         BindingManager.Current == null in order to avoid unexpected 
1953         exceptions.
1954
1955 2008-12-05  Brad Taylor  <brad@getcoded.net>
1956
1957         * MonthCalendar.cs: Add UIA specific events so that we can know when
1958         the selection changes, and when MaxSelectedCount changes.
1959
1960 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1961
1962         * DataGridView.cs: Cleanup rows_displayed out of OnPaint. It's not 
1963         used for anything.
1964
1965 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1966
1967         * DataGridView.cs: Fix scrolling and selection of cells/rows prior
1968         to the control being drawn for the first time by:
1969            - Implement DisplayedRowsCount to not rely on the control being
1970            already painted. Also added support for the partial row flag.
1971            - Fix scrolling to take into account partial rows and scroll to
1972            them.
1973         [Fixes bug #456527]
1974
1975 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1976
1977         * DataGridView.cs: Do not reset the CurrentCell when the handle is
1978         created if the user has already set it.
1979
1980 2008-12-05  Ivan N. Zlatev  <contact@i-nz.net>
1981
1982         * DataGridView.cs: Fix CurrentCell to actually select the cell.
1983
1984 2008-12-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1985
1986         * XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
1987         text and then let the underneath users of IDataObject interpret and
1988         parse by themselves. 
1989         Fixes #439251.
1990
1991 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1992
1993         * DataGridView.cs: Fix my previous commit to actually update what it 
1994         was supposed to.
1995
1996 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
1997
1998         * DataGridView.cs: Ensure that when a row is removed the all the 
1999         current row/column/cell get updated. Fixes multiple exceptions.
2000
2001 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2002
2003         * DataGridView.cs: Fix scrolling to the current cell when key navigation 
2004         is used.
2005         [Fixes bug #443560]
2006
2007 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2008
2009         * DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
2010         * DataGridViewCell.cs: Set the cell as selected prior to setting the 
2011         new state.
2012         [Fixes issue 1 in bug #443560]
2013
2014 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2015
2016         * DataGridView.cs: Invalidate after the current row/column seletion 
2017         chagnes.
2018         [Fixes bug #438434]
2019
2020 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2021
2022         * DataGridView.cs: Refresh the data if the data list is reset, etc.
2023
2024 2008-12-01  Ivan N. Zlatev  <contact@i-nz.net>
2025
2026         * DataGridView.cs: Handle datasource state changes:
2027            - IBindingList - list changes
2028            - BindingSource - list changed and datasource changes
2029
2030 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2031
2032         * DataGridView.cs: Select the first cell when databound. 
2033         Visually select when CurrentCell is set.
2034
2035 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2036
2037         * DataGridView.cs: Set the current cell before raising CellClick.
2038
2039 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2040
2041         * DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter, 
2042         CellLeave events as this is already done in SetCurrentCellAddressCore.
2043
2044 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2045
2046         * DataGridView.cs: Set the minimum size for the columns to be the 
2047         width of their header, so that the columns don't get squashed 
2048         all together.
2049
2050 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2051
2052         * DataGridView.cs: After the data is bound PerformLayout, so that 
2053         the columns get autosized.
2054
2055 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2056
2057         * DataGridView.cs: Move all currentCell setting code into 
2058         one central place - SetCurrentCellAddressCore. That way the 
2059         current cell is properly updated when programatically set.
2060         Fire RowEnter/Leave events.
2061
2062 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2063
2064         * DataGridView.cs: Update the CurrencyManager.Position, so that 
2065         when a BindingSource is used BindingSource.Current will be correct.
2066
2067 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2068
2069         * GroupBoxRenderer.cs: Fix when VisualStyles disabled:
2070            - No caption text is drawn because Color.Empty is used.
2071            - Fix top and height off by 1.
2072
2073 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2074
2075         * DataGridViewRow.cs: Implement DataBoundItem.
2076
2077 2008-11-30  Ivan N. Zlatev  <contact@i-nz.net>
2078
2079         * BindingSource.cs: Return null for Current if there is no data present.
2080
2081 2008-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2082
2083         * MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
2084         menus using the arrow keys. Also when handling the left arrow key, don't 
2085         assign the current menu to the parent one, if the parent is null.
2086         Fixes #446392.
2087
2088 2008-11-24  Everaldo Canuto  <ecanuto@novell.com>
2089
2090         * PrintPreviewDialog.cs: Fix toolbar size, height must be 26. Fixes bug
2091         #413501.
2092
2093 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2094
2095         * Scrollbar.cs:
2096         * ScrollableControl.cs: Simplify the code to manually set the size of
2097         the thum area, avoiding duplication of code, and also preserving the
2098         right value for different code paths - this can happen when size
2099         changes are made to the scrollbar after setting LargeChange, Maximum
2100         or related properties for the ScrollBar.
2101
2102 2008-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2103
2104         * ScrollableControl.cs: When scrolling, don't invalidate the entire
2105         area, and call to XplatUIX11.ScrollWindow instead. This is exactly
2106         what .Net does: copy the visible area, and only invalidate the part of
2107         the area that wasn't visible before scrolling.
2108         Fixes #441738.
2109
2110 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2111
2112         * DataGridView.cs: Listen for a DataTable's TableCleared event so we
2113         can clear ourselves when it is raised, we don't have a newrowindex
2114         if we don't have any columns.
2115         * DataGridViewRowCollection.cs: Ensure we always delete all the rows,
2116         re-index after each delete so the NewRow will have the correct index.
2117         [Fixes bug #448005]
2118
2119 2008-11-24  Jonathan Pobst  <monkey@jpobst.com>
2120
2121         * Form.cs: Don't change min/max size if it is empty.
2122         [Fixes bug #447873]
2123
2124 2008-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2125
2126         * ScrollBar.cs:
2127         * ScrollableControl.cs: When the manual thumb size is used, the
2128         maximum allowed value should depend on that thumb size, instead of
2129         LargeChange (using the maximum - LargeChange + 1 value). But
2130         LargeChange should be used normally when incrementing/decrementing.
2131         Fixes the remaining part of #441546.
2132
2133 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2134
2135         * WebBrowser.cs, WebBrowserBase.cs: Delay loading of DocumentStream 
2136         until an about:blank has been loaded (according to spec). Fix 
2137         ScrollbarsEnabled to set when a document is loaded (since we use js 
2138         for it). Fix url so it reflects the current loading document and not 
2139         the previous one. Send StatusChanged events.
2140
2141 2008-11-23  Andreia Gaita  <avidigal@novell.com>
2142
2143         * Application.cs: If a message comes in for an embedded control
2144         (like webbrowser) when we're capturing the keyboard, release the
2145         capture and continue.
2146         [fixes #429462]
2147
2148 2008-11-22  Andreia Gaita  <avidigal@novell.com>
2149
2150         * XplatUI.cs: Only use PlatformID.MacOSX enum when not building on VS
2151
2152 2008-11-21  Andreia Gaita  <avidigal@novell.com>
2153
2154         * WebBrowser.cs, HtmlDocument.cs: Fixes for #428172
2155         
2156 2008-11-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2157
2158         * ScrollBar.cs:
2159         * ScrollableControl.cs: Set manually the thumb size for the
2160         ScrollableControl scrollbars, so any further changes to the underneath
2161         scrollbars respect the original size.
2162         Fixes part of #441546.
2163
2164 2008-11-21  Geoff Norton  <gnorton@novell.com>
2165
2166         * XplatUI.cs: Ensure that we can run on .net 2.0 with mono 2.2 where
2167         PlatformID.MacOSX now exists.
2168
2169 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2170
2171         * TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
2172         Having something internal abstract isn't very nice for people who want
2173         to inherit from this class.
2174
2175 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2176
2177         * ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
2178         invalid value.  Just return null for the Image, and use the ImageList's
2179         ImageSize for calculations.
2180
2181 2008-11-20  Jonathan Pobst  <monkey@jpobst.com>
2182
2183         * ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
2184         through DroppedDown so the proper events get called and state gets reset.
2185         [Fixes bug #446805]
2186
2187 2008-11-18  Jonathan Pobst  <monkey@jpobst.com>
2188
2189         * DataGridViewColumnCollection.cs: Make sure we re-index the columns after
2190         the collection is modified.
2191
2192 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2193
2194         * DomainUpDown.cs: Remove string cache and reflection optimizations.  They
2195         aren't always correct, and fixing them for every case is not worth the
2196         negligible benefit they provide.
2197         [Fixes bug #445713]
2198
2199 2008-11-17  Jonathan Pobst  <monkey@jpobst.com>
2200
2201         * DataGridView.cs: We should never add actual cells to the RowTemplate.
2202         Internally, use RowTemplateFull to give us a new row with cells.
2203         * DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
2204         * DataGridViewRowCollection.cs: Use RowTemplateFull.
2205
2206 2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2207
2208         * XplatUIX11.cs: Forms without borders should be able to change its
2209         size - specially they should be able to be maximized, adding the
2210         respective MotifFunctions.Resize bit when setting window properties as
2211         well as *not* marking the Hwnd as size fixed.
2212         Fixes #444347.
2213
2214 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
2215
2216         * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
2217         an alpha value.
2218         [Fixes bug #444348]
2219
2220 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2221
2222         * DataGridView.cs: Add internal to OnAutoSizeColumnModeChanged.
2223         * DataGridViewColumn.cs: Recalculate columns when AutoSizeMode changes.  Raise
2224         AutoSizeColumnModeChanged.
2225         [Fixes bug #443609]
2226
2227 2008-11-11  Jonathan Pobst  <monkey@jpobst.com>
2228
2229         * DataGridViewRowCollection.cs: Guard against the user deleting the
2230         NewRow.  Add an internal delete so we can still delete it.
2231         * DataGridView.cs: Use the new internal delete when deleting the NewRow.
2232         [Fixes bug #442181]
2233
2234 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2235
2236         * TextControl.cs: Add some order of operation to our math so
2237         we don't end up with a negative height for our invalidate rect.
2238         [Fixes bug #381889]
2239
2240 2008-11-10  Jonathan Pobst  <monkey@jpobst.com>
2241
2242         * Control.cs: When our enabled changes, notify our implicit children
2243         controls as well as our regular controls.
2244         [Fixes bug #441523]
2245
2246 2008-11-08  Andreia Gaita <shana@jitted.com> 
2247
2248         * HtmlElement.cs: Small code cleanup
2249
2250 2008-11-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2251
2252         * BindingNavigator.cs: MoveFirstItem should be enabled only if
2253         position is larger than 0, not only different than 0. Also Position
2254         and Count items should be enabled if the BindingSource is non null and
2255         non empty.
2256         Fixes #439961.
2257
2258 2008-11-05  Jonathan Pobst  <monkey@jpobst.com>
2259
2260         * TabControl.cs: Don't raise SelectedIndexChanged until we have
2261         actually modified the tab collection, so TabCount will be correct.
2262         [Fixes bug #441896]
2263
2264 2008-11-05  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2265
2266         * ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
2267         NonSerialized to fix serialization of ListViewItem.
2268
2269 2008-11-04  Mike Gorse  <mgorse@novell.com>
2270
2271         * ListView.cs: Call OnUIAFocusedItemChanged after completing the
2272           focus change, and always call in SetFocusedItem.
2273         * ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2274
2275 2008-11-04  Jonathan Pobst  <monkey@jpobst.com>
2276
2277         * ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
2278         mode.  Based on a patch by John Mortlock.
2279         [Fixes bug #436790]
2280
2281 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2282
2283         * ListView.cs: Use the UsingGroups property where needed, instead of
2284         duplicating the check in other places.
2285
2286 2008-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2287
2288         * ListView.cs: When calculating layout, refresh the count of items
2289         belonging to the default item, insteas of doing it only one time. This
2290         was already working fine for icon views, not not for details.
2291         Fixes #438948.
2292
2293 2008-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294
2295         * ListView.cs:
2296         * ListViewItem.cs:
2297         * ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
2298         to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
2299         does.
2300         Fixes #437933.
2301
2302 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2303
2304         * ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2305
2306 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2307
2308         * ListView.cs: Add internal UIAFocusedItemChanged event.  Fixes bug
2309         #441280, patch by Mike Gorse <mgorse@novell.com>.
2310
2311 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2312
2313         * TreeView.cs: When doing ExpandAll, don't scroll to the bottom
2314         if there is no scrollbar.
2315         [Fixes bug #440885]
2316
2317 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2318
2319         * ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
2320         patch from Andy Hume that fixes many issues with ProgressBar.
2321         [See bug #440220]
2322
2323 2008-11-03  Jonathan Pobst  <monkey@jpobst.com>
2324
2325         * Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
2326         [Fixes bug #438866]
2327
2328 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2329
2330         * UpDownBase.cs:
2331         * DomainUpDown.cs:
2332         * NumericUpDown.cs: Internal events added to UpDownBase:
2333         UIAUpButtonClick and UIADownButtonClick.  Patch by Neville Gao
2334         <ngao@novell.com>.
2335
2336 2008-11-03  Sandy Armstrong  <sanfordarmstrong@gmail.com>
2337
2338         * ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2339
2340 2008-11-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2341
2342         * ListView.cs:
2343         * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
2344         Application.EnableVisualStyles hasn't been called.
2345         Fixes part of #437933.
2346
2347 2008-10-31  Andreia Gaita  <shana@jitted.com>
2348
2349         * Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
2350           if the container is not focused already, we need to specifically set
2351           focus to the first available control, or to the form itself if there
2352           are no controls.
2353
2354 2008-10-31  Andreia Gaita  <shana@jitted.com>
2355
2356         activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
2357         WM_ACTIVATE have been processed before returning, so it is guaranteed that
2358         once it returns and the form is visible, it is actually on the screen on X11
2359
2360         * ContainerControl.cs: Only send focus to the control if the top container
2361           is already focused. This is so that, when a form is first shown, all
2362           the enter/leave events are done first before any focus stuff comes in.
2363           If a control has no top container, there's an extra check on Control.Focus
2364           to make sure it gets focused in this particular case.
2365
2366         * Control.cs: Force focus if the control is active but did not receive
2367           focus after being set as active.
2368
2369         * MdiClient.cs: Dispose the form when closing
2370
2371         * XplatUIX11.cs: When mapping and unmapping windows, make sure the call
2372           doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
2373           if the window is a top Form.
2374           Reset all hwnd properties when the window has been destroyed so that
2375           we don't land in any codepaths that might try to do something with it.
2376           Added a bunch of debugging messages. If TRACE is defined, all X calls
2377           are logged through DebugHelper. Set a few missing EntryPoint attributes.
2378
2379 2008-10-29  Mario Carrion <mcarrion@novell.com>
2380
2381         * ListViewItem.cs: Control enabled to support Accessibility:
2382         - Internal events: UIATextChanged, UIASubItemTextChanged.
2383         - Internal event UIATextChanged in ListViewSubItem that triggers
2384         UIASubItemTextChanged.
2385         * ListView.cs: Control enabled to support Accessibility:
2386         - Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged, 
2387         UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
2388         - Internal event UIACollectionChanged in ColumnHeaderCollection.
2389         - Internal event UIACollectionChanged in ListViewItemCollection.
2390         - Internal properties: UIAHeaderControl, UIAColumns, UIARows, 
2391         UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
2392         - Internal methods: UIAGetHeaderBounds.
2393
2394 2008-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2395
2396         * ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
2397         the event from the respective scrollbars.
2398         Fixes #436709.
2399
2400 2008-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2401
2402         * ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
2403         textbox to know whether any navigation key will be handled or not. If
2404         not, don't pass the message to the textbox, and use it here instead. 
2405         * TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
2406         is more precise- than the previous AutoCompleteMatches one.
2407         This should the keyboard navigation in ComboBox when using auto
2408         complete modes.
2409
2410 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2411
2412         * ComboBox.cs: Fix item height calculation based off Font to match .Net.
2413         [Fixes bug #436730]
2414
2415 2008-10-24  Jonathan Pobst  <monkey@jpobst.com>
2416
2417         * ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
2418         overridden methods will get called.
2419         * ToolStripItem.cs: Raise Click before MouseUp.
2420         * ToolStripSplitButton.cs: Fix up some bounding rectangles to take
2421         the item's location into account.
2422         [Fixes bug #437683]
2423
2424 2008-10-24  Neville Gao  <nevillegao@gmail.com>
2425
2426         * NumericUpDown.cs: Control enabled to support accessibility.
2427         [Fiexes bug #438135]
2428
2429 2008-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2430
2431         * TextBox.cs: Check that we actually have items no navigate, select
2432         text when pressing enter, as well as handle direction keys only if
2433         mode is different to Suggest or the suggest listbox is visible.
2434
2435 2008-10-23  Andreia Gaita  <shana@jitted.com>
2436
2437         * WebBrowser.cs: Use the new ContentStream property to retrieve
2438           a stream encoded from the document content
2439
2440 2008-10-23  Andreia Gaita  <shana@jitted.com>
2441
2442         * HtmlDocument.cs,
2443           HtmlElement.cs,
2444           HtmlWindow.cs: Fix GetHashcode for null objects
2445
2446 2008-10-22  Andreia Gaita  <shana@jitted.com>
2447
2448         * HtmlDocument.cs,
2449           HtmlElement.cs,
2450           HtmlWindow.cs: Fix equality operators (fixes #428173)
2451
2452 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2453
2454         * XplatUIWin32.cs: Apply patch from John Mortlock that ensures
2455         mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
2456         [Fixes bug #436772]
2457
2458 2008-10-21  Jonathan Pobst  <monkey@jpobst.com>
2459
2460         * ComboBox.cs: Fire SelectedIndexChanged when the user selects the
2461         same item with the mouse as was already selected.
2462         [Fixes bug #436789]
2463
2464 2008-10-21  Brad Taylor  <brad@getcoded.net>
2465         
2466         * TextControl.cs: Break out code to get the visible range into
2467           GetVisibleLineIndexes to be used in UIA code.
2468         
2469         * Line.cs:
2470         * TextControl.cs:
2471         * TextBoxBase.cs: Add comments indicating that the method or property
2472           is used via reflection from UIA code.
2473
2474 2008-10-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2475
2476         * ListViewItem.cs: Match .net serialization.
2477         Fixes remaining part of #417520.
2478
2479 2008-10-20  Jonathan Pobst  <monkey@jpobst.com>
2480
2481         * ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2482
2483 2008-10-20  Mario Carrion <mcarrion@novell.com>
2484
2485         * ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property 
2486         added: UIAToolTipRectangle.
2487
2488 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2489
2490         * ListViewItem.cs: When deserializing enumerate over the data, instead
2491         of accessing the data directly. This way we handle much better the
2492         cases were we lack information.
2493         Fixes #417520.
2494
2495 2008-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2496
2497         * ListView.cs: When removing an item from a main ListView.Items
2498         collection (and not a ListViewGroupCollection.Items one), remove it
2499         also from the group, as .net does. Patch by Mario Carrion (mario at
2500         novell dot com).
2501         Fixes #436653.
2502
2503 2008-10-19  Andreia Gaita  <avidigal@novell.com>
2504
2505         * Form.cs: Forms that get closed without a handle being created are
2506         disposed in 2.0. Fixes failing FormTest.FormClose and
2507         FormTest.FormClose2 on windows.
2508
2509 2008-10-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2510
2511         * ListView.cs: If both scrollbars are visible, the vertical one
2512         shouldn't extend too far down.
2513         Fixes #435771.
2514
2515 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2516
2517         * DataGridView.cs: Add the ability to resize columns and rows with
2518         the mouse.  Also support double-clicking to autoresize.
2519         * DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
2520         * DataGridViewRow.cs: Invalidate the grid if a row's height changes.
2521         * DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
2522         isn't shown on autoresize.
2523         [Fixes bug #420193]
2524
2525 2008-10-17  Mario Carrion <mcarrion@novell.com>
2526
2527         * ComboBox.cs: Remove UIAListbox.
2528
2529 2008-10-17  Mario Carrion <mcarrion@novell.com>
2530
2531         * ComboBox.cs, ListBox.cs: Using added/removed item in 
2532           OnUIACollectionChangedEvent instead of index.
2533
2534 2008-10-17  Jonathan Pobst  <monkey@jpobst.com>
2535
2536         * ComboBox.cs: When we are sorting the items, if the item's type
2537         doesn't support IComparer, use a default one that compares based
2538         off the item's visible text.
2539         [Fixes bug #436328]
2540
2541 2008-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2542
2543         * ColumnHeader.cs: Invalidate ListView.header_control when setting
2544         ImageIndex/ImageKey.
2545         * ThemeWin32Classic.cs: When drawing the column header, draw a image
2546         for the column if available, and make the required adjustments to the
2547         text location.
2548         Fixes #435105.
2549
2550 2008-10-17  Neville Gao  <nevillegao@gmail.com>
2551
2552         * StatusBarPanel.cs: Control enabled to support accessibility.
2553         [Fixes bug #435988]
2554
2555 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2556
2557         * DataGridView.cs: When a user begins an edit in the 'new row',
2558         make that a real row, and add a new 'new row'.  If the user
2559         cancels the edit, remove the new 'new row' and reset everything.
2560         Also, ensure UserAddedRow and UserRemovedRow events are raised.
2561         [Fixes bug #430954]
2562
2563 2008-10-16  Ivan N. Zlatev  <contact@i-nz.net>
2564
2565         * TableLayoutSettings.cs: Fix NREs when deserializing and 
2566         panel is not yet set.
2567         [Fixes bug #436199]
2568
2569 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2570
2571         * DataGridView.cs: Invalidate after deleting a row.
2572
2573 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2574
2575         * DataGridView.cs: Handle Enter and Escape keys.
2576           - Move call to EndEdit to MoveCurrentCell.
2577           - Remove call to EndEdit from navigation key routines.
2578           - Fire CellLeave and CellEnter.
2579
2580 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2581
2582         * DataGridViewCell.cs: Some fixes to the new cell border
2583         painting code.
2584
2585 2008-10-16  Jonathan Pobst  <monkey@jpobst.com>
2586
2587         * ThemeEngine.cs: Enable visualstyles rendering by default
2588         (on platforms that support it).
2589
2590 2008-10-15  Ivan N. Zlatev  <contact@i-nz.net>
2591
2592         * XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before 
2593         MainForm.OnLoad has completed unless DoEvents is forced.
2594         [Fixes bug #412536]
2595
2596 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2597
2598         * ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2599
2600 2008-10-15  Jonathan Pobst  <monkey@jpobst.com>
2601
2602         * Control.cs: Make our implementation of DrawToBitmap better 
2603         match WmPaint.  [Fixes bug #435579]
2604
2605 2008-10-14  Andreia Gaita  <avidigal@novell.com>
2606
2607         * WebBrowser.cs: Use DocumentElement as the document's root for the
2608         whole content. Should fix DocumentText and DocumentStream problems.
2609
2610 2008-10-14  Jonathan Pobst  <monkey@jpobst.com>
2611
2612         * DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
2613         these will get called in DGV.OnCollectionChanged.  Make sure 
2614         OnCollectionChanged always gets called.
2615         * DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
2616         from every row.  Call this in OnCollectionChanged.
2617         [Fixes bug #433669]
2618
2619 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2620
2621         * ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
2622         textbox if auto complete is used, since we need to navigate over it.
2623         And in this case don't pass this messages to the base impl. Also hide
2624         the auto complete list box when displaying the drop down listbox.
2625         * TextBox.cs: new internal members to expose some of the auto complete
2626         functionality to combobox.
2627
2628 2008-10-13  Ivan N. Zlatev  <contact@i-nz.net>
2629
2630         * XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before 
2631         MainForm.OnLoad has completed.
2632         [Fixes bug #412536]
2633
2634 2008-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635
2636         * TextBox.cs: Apply an old-approved patch that adds autocomplete's
2637         Append support to this controls. We need it to apply new patches.
2638
2639 2008-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2640
2641         * Control.cs: When updating z order in child controls, send to back
2642         the implicit controls. Also, do it explicitly, instead of making
2643         GetAllControls return the implicit controls in a specific order, and
2644         thus avoid depending on that, which could change in the future.
2645         Fixes #434304.
2646
2647 2008-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2648
2649         * X11Dnd.cs: Try to call Application.DoEvents before returning in a
2650         call to StartDrag, since we must fire DragDrop/DragLeave *before*
2651         that, as .net does - instead of firing DragDrop/DragLeave *after* the
2652         call to Control.DoDragDrop has completed. This is needed since at the
2653         point of returning, we have sent related dnd ClientMessages, but we
2654         need to wait for them to fire the wmf respective ones.
2655         Fixes #325076.
2656
2657 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2658
2659         * LinkLabel.cs: Recreate link pieces when change Padding.
2660
2661 2008-10-09  Everaldo Canuto  <ecanuto@novell.com>
2662
2663         * LinkLabel.cs: Take Padding into account when recreate link pieces.
2664         [Fixes bug #412530]
2665
2666 2008-10-08  Everaldo Canuto  <ecanuto@novell.com>
2667
2668         * Control.cs: Implement internal property PaddingClientRectangle, it will be
2669         useful for drawing controls that must take care about Padding property.
2670
2671 2008-10-08  Jonathan Pobst  <monkey@jpobst.com>
2672
2673         * BindingSource.cs: Make item_type internal so we can access it in DGV.
2674         * DataGridView.cs: Add support for autogenerating columns from a
2675         BindingSource.
2676
2677 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2678
2679         * DataGridView.cs: Comment out an exception that is getting thrown
2680         too often currently.
2681
2682 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2683
2684         * DataGridView.cs: Always rebind to the datasource, as things may
2685         have changed in it that we aren't capturing yet.
2686
2687 2008-10-07  Jonathan Pobst  <monkey@jpobst.com>
2688
2689         * DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
2690         drawing mode.  If we are top aligned, give ourselves some top padding.
2691
2692 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2693
2694         * X11Dnd.cs: When firing the default dnd enter/leave events, fire the
2695         events on the control under the mouse pointer, instead of firing them
2696         on the window generating the dnd operation. To achieve this re-use the
2697         code used to get the window under the pointer when getting MouseMove
2698         events.
2699         Fixes #381876.
2700
2701 2008-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2702
2703         * X11Dnd.cs: Don't check that that the window sending the dnd events
2704         is the owner of the selection. Although Gtk+ sets it that way, it's
2705         not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
2706         So, just as Gtk+ does, we set our window sending the dnd events as the
2707         owner of the selection, but don't check it when receiving them. This
2708         should fix interoperability with Qt/Kde.
2709         Fixes #324251.
2710
2711 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2712
2713         * DataGridView.cs: Make sure we take the vertical scrollbar into
2714         account when autosizing columns.
2715
2716 2008-10-06  Jonathan Pobst  <monkey@jpobst.com>
2717
2718         * DataGridView.cs: Handle sorting datetimes.
2719
2720 2008-10-04  Ivan N. Zlatev  <contact@i-nz.net>
2721
2722         * ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs, 
2723         TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup 
2724         compilation warnings.
2725
2726 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2727
2728         * RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs, 
2729         ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs, 
2730         ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs, 
2731         ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup 
2732         compilation warnings.
2733
2734 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2735
2736         * DataGridView.cs, DataGridViewCell.cs, 
2737         DataGridViewCellValidatingEventArgs.cs, 
2738         DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs, 
2739         DataGridViewRow.cs, DataGridViewRowHeaderCell.cs, 
2740         DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2741
2742 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2743
2744         * HtmlElementEventArgs.cs, HtmlWindowCollection.cs: 
2745         Cleanup compilation warnings.
2746
2747 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2748
2749         * XplatUIWin32.cs: Cleanup compilation warnings.
2750
2751 2008-10-03  Ivan N. Zlatev  <contact@i-nz.net>
2752
2753         * PropertyGrid.cs: Cleanup compilation warnings.
2754
2755 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2756
2757         * DataGridViewRow.cs: Only clear the row background if we
2758         are going to paint a new background.
2759
2760 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
2763         DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
2764         use PaintBorder instead.        
2765
2766 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2767
2768         * DataGridView.cs: When CellBorderStyle is set, update the
2769         AdvancedCellBorderStyle to match.
2770
2771 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2772
2773         * DataGridViewCell.cs: Add helper methods to convert Alignment
2774         to TextFormatFlags and align rectangles.
2775         * DataGridViewTextBoxCell.cs: Use Alignment when painting text.
2776         * DataGridViewImageCell.cs: Use Alignment when painting the image.
2777
2778 2008-10-02  Ivan N. Zlatev  <contact@i-nz.net>
2779
2780         * ToolTip.cs: Display tooltips only for controls on the active form.
2781         [Fixes bug #428115]
2782
2783 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2784
2785         * DataGridView.cs: Make OnCellValueNeeded internal.
2786         * DataGridViewCell.cs: Raise the CellValueNeeded event so the
2787         user can supply their own value if they choose.
2788
2789 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2790
2791         * DataGridViewColumnHeaderCell.cs: Create a new style object
2792         so the DefaultCellStyle doesn't get changed.
2793
2794 2008-10-02  Jonathan Pobst  <monkey@jpobst.com>
2795
2796         * ToolStripItem.cs: Check to make sure the owner is actually
2797         changing in InternalOwner before doing any work.  Fixes some
2798         failing tests.
2799
2800 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2801
2802         * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
2803         * DataGridView.cs: Use a column header's inherited style instead
2804         of just using the default.
2805
2806 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2807
2808         * SplitContainer.cs: Raise SplitterMoved when the splitter is
2809         moved through code.
2810
2811 2008-10-01  Mario Carrion <mcarrion@novell.com>
2812
2813         * ScrollBar.cs: Internal property added: UIAThumbPosition.
2814
2815 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2816
2817         * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2818
2819 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2820
2821         * ToolStripItem.cs: When the user sets Owner, we need to remove
2822         it from its previous owner and then add it to the new owner's
2823         item collection.  Also, create InternalOwner, so we can set the owner
2824         that doesn't do this new stuff.
2825         * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2826
2827 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2828
2829         * ToolStripItem.cs: When our parent changes, recalculate our text
2830         size, since we may be getting our Font from our parent.  When our
2831         owner's Font changes, recalculate ourselves as we may be using
2832         that font.
2833
2834 2008-10-01  Everaldo Canuto  <ecanuto@novell.com>
2835
2836         * MenuAPI.cs: Select the first option of a popup when opening the popup via
2837         return key. [Fixes bug #413792].
2838
2839 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2840
2841         * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
2842         ambient properties.  (Get their value from their parents if
2843         values haven't been set.)
2844
2845 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2846
2847         * ToolStripSystemRenderer.cs: Call overridden methods' bases
2848         after our logic, so users can do painting by handling the events.
2849         Currently, we draw over any user painting.
2850
2851 2008-10-01  Jonathan Pobst  <monkey@jpobst.com>
2852
2853         * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
2854         after our logic, so users can do painting by handling the events.
2855         Currently, we draw over any user painting.
2856
2857 2008-09-30  Everaldo Canuto  <ecanuto@novell.com>
2858
2859         * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2860
2861 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2862
2863         * TreeNode.cs, TreeView.cs: Move logic that determines the node
2864         image to draw to TreeNode.  Give Index/Keys put on the node
2865         precedence over the global one for the TreeView.
2866
2867 2008-09-30  Jonathan Pobst  <monkey@jpobst.com>
2868
2869         * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2870
2871 2008-09-29  Mario Carrion <mcarrion@novell.com>
2872
2873         * ListBox.cs: Index fixed.
2874
2875 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2876
2877         * TabControl.cs: When expanding the tab -because it's selected now-,
2878         using Right alignment, instead of adding some selected delta value to
2879         the X origin, substract it, so it gets a location adjacent to the panel, 
2880         instead of be more separated.
2881         Fixes #409170.
2882
2883 2008-09-29  Jonathan Pobst  <monkey@jpobst.com>
2884
2885         * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
2886         own copies of them.
2887
2888 2008-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889
2890         * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
2891         as well as the other static fields, to avoid using their previous
2892         values my mistake when handling the dnd events. This should avoid
2893         handling any status event after the drop has been finalized/cancelled.
2894
2895 2008-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2896
2897         * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
2898         operation, instead of waiting until we get any movement - this will
2899         help us to have the data available in case no movement was detected
2900         and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
2901         Finally add a windows.forms-only fallback to fire the mentioned events
2902         if no movement at all was detected, just like .net does.
2903         Fixes #381876.
2904
2905 2008-09-27  Jonathan Pobst  <monkey@jpobst.com>
2906
2907         * ThemeWin32Classic.cs: When drawing a status bar panel, don't
2908         return early if the text is empty because the icon doesn't get
2909         drawn then.  [Fixes bug #428113]
2910
2911 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
2912
2913         * FileDialog.cs: Implement basic support for sorting by columns in
2914         Details view. Patch by Eric Petit.
2915         Fixes #428006.
2916
2917 2008-09-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2918
2919         * ThemeWin32Classis.cs: When drawing gridlines take into account the
2920         case where ListView.ItemSize hasn't been computed, and provide a
2921         fallback as well. This prevents a division by 0.
2922
2923 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2924
2925         * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
2926         correctly draw tooltip backgrounds.
2927
2928 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2929
2930         * ImageList.cs: Change CopyTo implementation to ensure clones are
2931         created of our images.
2932         [Fixes bug #409169]
2933
2934 2008-09-24  Jonathan Pobst  <monkey@jpobst.com>
2935
2936         * Control.cs: When setting fonts, we need to ensure we change our
2937         reference to the new font object, even if it represents the same
2938         font as before.  If we don't, the original font can get disposed
2939         and we will still try to use it.
2940         [Fixes bug #386450]
2941
2942 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2943
2944         * FileDialog.cs: Take into account Tile view when selecting the view
2945         (2.0 profile).
2946
2947 2008-09-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2948
2949         * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
2950         the item bounds, since we can't iterate over them in virtual mode.
2951         Also fix wrong calculation of the gridlines when using scrolling.
2952         Fixes #400390.
2953
2954 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2955
2956         * XplatUIX11.cs: When handling EnterNotify events, take into account
2957         both the public and implicit controls when trying to detect the
2958         grab/ungrab process. This should fix ListView selection in Details
2959         view.
2960
2961 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2962
2963         * TreeView.cs: Redraw the whole node area when the selected node changes.
2964         Things like state images were not getting redrawn because the invalid
2965         rectangle was too small.
2966         [Fixes bug #428211]
2967
2968 2008-09-23  Mario Carrion  <mcarrion@novell.com>
2969
2970         * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
2971         [Fixes bug #428993]
2972
2973 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2974
2975         * Form.cs: Do not set the Form's icon in the backend if showicon = false.
2976         [Fixes bug #428114]
2977
2978 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2979
2980         * ThemeWin32Classic.cs: Allow tooltips to be multiline.
2981         [Fixes bug #427884]
2982
2983 2008-09-23  Jonathan Pobst  <monkey@jpobst.com>
2984
2985         * StatusBar.cs: Add tooltip support.
2986         [Fixes bug #428113]
2987
2988 2008-09-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2989
2990         * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
2991         alignments of sub items in Details view. Patch by John Mortlock (johnm at 
2992         hlaustralia.com.au).
2993         Fixes #425360.
2994
2995 2008-09-23  Neville Gao  <nevillegao@gmail.com>
2996
2997         * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
2998         [Fixes bug #419079]
2999
3000 2008-09-22  Jonathan Pobst  <monkey@jpobst.com>
3001
3002         * TextBoxBase.cs: Set Text to "" instead of null in Clear().
3003         [Fixes bug #428107]
3004
3005 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3006
3007         * ListView.cs: Don't do anything when EnsureVisible is called inside a
3008         BeginUpdate/EndUpdate block.
3009         Fixes #425049.
3010
3011 2008-09-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3012
3013         * ListViewItem.cs: The semantics for the public .ctor of
3014         ListViewSubItemCollection need us to already have a Text value for the
3015         item, which in our implementation have as available *after* adding the
3016         first sub item. So create an internal .ctor that satisfies our needs
3017         and let the public .ctor have the same semantics as .net.
3018         Fixes #427561.
3019
3020 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3021
3022         * ListControl.cs: Changes in Formatting related values should call
3023         RefreshItems, as .net does.
3024         * ComboBox.cs:
3025         * ListBox.cs: In the respective overrides of RefreshItems calculate
3026         layout as well as refreshing - again, this is what .net does.
3027         Fixes #426168.
3028
3029 2008-09-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3030
3031         * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
3032         since we are already doing that when we change the value of the
3033         scrollbar or force the call to ScrollWindow in the same method. This
3034         way we don't cause a Invalidate call for all the listbox bounds for
3035         methods calling UpdateTopItem with an already updated top item. This
3036         was happening specially calling EnsureVisible with already visible
3037         items.
3038
3039 2008-09-18  Mike Gorse <mgorse@novell.com>
3040
3041         * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
3042           XplatUIStructs.cs: Added KeyFilter
3043         [Fixes bug #427039]
3044
3045 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3046
3047         * RelatedPropertyManager.cs: The properties returned by
3048         GetItemProperties should be that ones of the *actual* object returned
3049         by the property, not the property type - this is very special when the
3050         property exposes a type, but the returned object actually is a child
3051         class and implements more functionality and properties.
3052
3053 2008-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3054
3055         * Binding.cs: Don't look for the property in the data source if the
3056         passed string is empty.
3057
3058 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3059
3060         * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to 
3061         fix unused variable warnings.
3062
3063 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3064
3065         * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
3066         [Fixes bug #427073]
3067
3068 2008-09-18  Ivan N. Zlatev  <contact@i-nz.net>
3069
3070         * XplatUIX11.cs: 
3071          - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this 
3072          leads to the window manager overriding our border style and zorder. 
3073          - Allow the activation of non-modal forms, which are children of a 
3074          modal form.
3075         [Fixes bug #423417]
3076
3077 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3078
3079         * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should 
3080         ask the window manager to do the work instead of changing the property 
3081         directly.
3082         [Fixes bug #423417]
3083
3084 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3085
3086         * CurrencyManager.cs: Check for positon before call ChangeRecordState in
3087         AddNew to fix some navigation for empty datasets. [Fixes #323053]
3088
3089 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3090
3091         * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
3092         InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
3093         border and fixes some drawing issues when resize form.
3094
3095 2008-09-17  Everaldo Canuto  <ecanuto@novell.com>
3096
3097         * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
3098         
3099         * ThemeWin32Classic.cs: We don't need to reduce button size when it is
3100         AcceptButton.
3101
3102 2008-09-17  Ivan N. Zlatev  <contact@i-nz.net>
3103
3104         * TextBoxBase.cs: For standard textbox the scrollbars are always 
3105         visible if Multiline is true.
3106         [Fixes bug #426896]
3107
3108 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3109
3110         * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
3111         patch.
3112         
3113 2008-05-12  Everaldo Canuto  <ecanuto@novell.com>
3114
3115         [Fixes most od DBNull and HeadersVisible problems]
3116         
3117         * DataGrid.cs:
3118         - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
3119         returns the value that we need.
3120         - Fixed FromPixelToColumn method that return zero for first     column and for
3121         row header cell, now it returns -1 for row header cell.
3122         - Fixed HitTest to check row header cell in column header area, it now
3123         returns HitTestType.None. [Fixes #322864]
3124         - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
3125         checks for RowHeadersVisible and other things.
3126         - If an exception occurs when setting CurrentCell and user type 'yes' in
3127         message dialog, invalidade current and new cell and set setting_current_cell
3128         to false to prevent future errors. [Partially fixes #323050]
3129
3130         * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
3131         value (SetColumnValueAtRow), it must be done by grid to properly show 
3132         messages. [Fixes #323050]
3133
3134         * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
3135         better draw column and row header. Also dont draw anything when column
3136         headers is not visible.
3137
3138 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3139
3140         * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
3141         logic.
3142
3143 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3144
3145         * TreeView.cs: Don't start editing a node on right click, only
3146         left click.
3147
3148 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3149
3150         * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
3151         disabled over a year ago.
3152         * Form.cs: Wrap calling Load in a try/catch because it can happen
3153         before the catch-all one in NativeWindow.
3154         [Fixes bug #425414]
3155
3156 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3157
3158         * ToolStripDropDownMenu.cs: Calculate the connected area better
3159         to take into account when the drop down is not directly under the
3160         owner item.
3161         * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
3162
3163 2008-09-16  Mario Carrion <mcarrion@novell.com>
3164
3165         * ScrollBar.cs: New event added: UIAValueChanged, generated when
3166           LargeChange, SmallChange, Maximum or Minimum values are changed.
3167         [Fixes bug #426464]
3168
3169 2008-09-16  Mario Carrion <mcarrion@novell.com>
3170
3171         * ErrorProvider.cs: Component enabled to support accessibility.
3172         * Application.cs: Updated to Initialize UIA in ErrorProvider.
3173         [Fixes bug #426459]
3174
3175 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3176
3177         * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
3178         so we don't highlight on first focus.
3179         [Fixes bug #360869]
3180
3181 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3182
3183         * TextControl.cs: Correctly calculate the height of the area we 
3184         need to invalidate when we have started scrolling and viewport_y
3185         is used.  [Fixes bug #387608]
3186
3187 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3188
3189         * TextControl.cs: When getting the SelectedText, don't add in
3190         NewLine characters, as they are already contained in the lines.
3191         [Fixes bug #388115]
3192
3193 2008-09-16  Jonathan Pobst  <monkey@jpobst.com>
3194
3195         * TextBoxBase.cs: Replace the buggy Lines setter with one that
3196         simply concats the lines and send it to the Text setter.
3197         [Fixes issue #2 and #3 of 388115]
3198
3199 2008-09-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3200
3201         * Binding.cs: The default value of DataSourceNullValue should be
3202         Convert.DBNull actually. Also, the NullValue should only be used *if*
3203         itself is not null, and use the null/Convert.DBNull value instead.
3204
3205 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3206
3207         * TextControl.cs: Add a method to convert a string newline to the
3208         newline enum.
3209         * TextBoxBase.cs: When the user hits enter, insert a native newline.
3210         [Fixes part 1 of bug #388115]
3211
3212 2008-09-15  Mario Carrion <mcarrion@novell.com>
3213
3214         * ToolTip.cs: UnPopup event set to internal to match public API.
3215
3216 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3217
3218         * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
3219         have to remove the Ctrl in order for the focus moving code to kick in.
3220         [Fixes bug #426170]
3221
3222 2008-09-15  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * CheckedListBox.cs: Return the real item index from Add.  It may not be
3225         the last item if the list is sorted.  The user can change the NewValue in
3226         the ItemCheck event, we need to use that value if so.
3227         * ListBox.cs: Return the real item index from a sorted Add.
3228         [Fixes bug #426166]
3229
3230 2008-09-15  Ivan N. Zlatev  <contact@i-nz.net>
3231
3232         * MimeIcon.cs: Add null checks in the GnomeHandler, because it might 
3233         happen that the icons from the theme is missing or the particular size 
3234         unavailable.
3235         [Fixes bug #424981]
3236
3237 2008-09-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3238
3239         * Binding.cs: When assigning null or DBNull depending on value/ref type,
3240         use IsValueType instead to get the precise desired value.
3241         Fixes #424276.
3242
3243 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3244
3245         * TreeNodeCollection.cs: When adding a new node to an opened node,
3246         we have to invalidate everything below the parent node because
3247         every node scoots down and we have to repaint them.
3248         [Fixes bug #411386]
3249
3250 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3251
3252         * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
3253         property into account when drawing.
3254         [Fixes bug #416064]
3255
3256 2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3257
3258         * ListBox.cs: When calling Items.Clear(), call
3259         SelectedIndexCollection.ClearCore instead of normal Clear method, to
3260         not fire any Selected*Changed event - this is done to match .net and
3261         don't have invalid values when changing the DataSourceProperty.
3262         Fixes #424273.
3263
3264 2008-09-12  Mario Carrion  <mcarrion@novell.com>
3265
3266         * HelpProvider.cs: Control enabled to support accessibility.
3267         * Application.cs: Updated to Initialize UIA in HelpProvider.
3268         [Fixes bug #425988]
3269
3270 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3271
3272         * Form.cs: When we are showing a dialog box, if its owner is TopMost,
3273         make the dialog TopMost as well.
3274         [Fixes bug #425984]
3275
3276 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
3279         clipboard data better.
3280         [Fixes bug #414446]
3281
3282 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * TextBoxBase.cs: Applied patch from John Mortlock that ensures
3285         TextChanged and SelectionChanged events fire in the same order as .Net.
3286         [Fixes bug #425725]
3287
3288 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3289
3290         * DataGridView.cs: When sorting a column, if it only contains numbers,
3291         do a numeric sort instead of a string sort.
3292         [Fixes bug #425849]
3293
3294 2008-09-12  Jonathan Pobst  <monkey@jpobst.com>
3295
3296         * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
3297         against NRE's when the settings have a null panel.
3298         * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
3299         the panel gets set.
3300         [Fixes bug #425647]
3301
3302 2008-09-11  Mario Carrion  <mcarrion@novell.com>
3303
3304         * ToolTip.cs: Control enabled to support accessibility.
3305         * Application.cs: Updated to Initialize UIA in ToolTip.
3306         [Fixes bug #425277]
3307
3308 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3309
3310         * Control.cs: Make the custom Enumerator internal to fix build.
3311
3312 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3313
3314         * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
3315         already in edit mode, begin edit mode.  Generally edit mode isn't
3316         started until the second click, but CheckBoxes are special.
3317
3318 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3319
3320         * ErrorProvider.cs: Never try to add our icons to ContainerControl,
3321         since that can be set to anything.  Always add them to the Control's
3322         parent.  [Fixes bug #416058]
3323
3324 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3325
3326         * ListView.cs: Use a custom enumerator for ListViewItemCollection
3327         so items can be deleted in a foreach.
3328         [Fixes bug #425342]
3329
3330 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3331
3332         * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
3333         Store the user set explicit height so that the row can be AutoSized
3334         and then when AutoSize is turned off, it can get its original size back.
3335         * DataGridView.cs: Use the Row's GetPreferredHeight instead of 
3336         duplicating the logic.  When setting AutoSizeRowsMode to None, reset
3337         rows' heights back to their explicit values.
3338         [Fixes bug #415780]
3339
3340 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3341
3342         * DateTimePicker.cs: When getting focus, select the checkbox if we are
3343         already showing it. Also, don't change its value when pressing space
3344         if the checkbox is not visible (ShowCheckBox as false). Finally, the
3345         checkbox should remain selected as long as Checked is false, and the
3346         other parts are disabled.
3347         Fixes #424267.
3348         
3349 2008-09-11  Jonathan Pobst  <monkey@jpobst.com>
3350
3351         * MessageBox.cs: Handle shortcut keys to dialog buttons.
3352         [Fixes bug #425425]
3353
3354 2008-09-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3355
3356         * Binding.cs: When the value retrieved from the control property is
3357         null, don't return Convert.DBNull for Nullable instances, since they
3358         can *actually* get a null value.
3359         Fixes #424265.
3360
3361 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3362
3363         * Control.cs: Add an internal field to force doublebuffering regardless
3364         of what the public mechanisms are set to.  This is because MS's native
3365         controls are doublebuffered even though their .Net bits are set to false.
3366         * ProgressBar.cs: Set force_double_buffer to true.
3367         [Fixes bug #406595]
3368
3369 2008-09-10  Jonathan Pobst  <monkey@jpobst.com>
3370
3371         * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
3372         the cell template.
3373         * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
3374         * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
3375         without EditingControls, paint background selection for types without
3376         EditingControls, reset the EditingCellValueChanged flag when the
3377         cell's value is committed.
3378         * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
3379         have EditingControls, remove a double call to a cell's OnContentClickInternal,
3380         don't do cell changing logic in OnMouseDown if the cell didn't change.
3381         [Fixes bug #420351]
3382
3383 2008-09-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3384
3385         * DateTimePicker.cs: Fix the edition of am/pm specifier.
3386
3387 2008-09-09  Jonathan Pobst  <monkey@jpobst.com>
3388
3389         * TextControl.cs: Add "&" to the list of valid characters in a URL.
3390
3391 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3392
3393         * DateTimePicker.cs: Before incrementing or decrementing any part in
3394         the textbox, end any current edit. Also when ending the current edit
3395         use the editing_part_index field instead of the current selected
3396         value, since they can be out of synch, and we really need to work on
3397         the *real* current edit part. Finally when PartData.Selected changes,
3398         always try to end any ongoing edit.
3399         This should fix some small errors handling mouse navigation and
3400         increase/decrease operations.
3401
3402 2008-09-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3403
3404         * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
3405         respectively) should handled different, since the 12 hours format
3406         needs the value typed by the user to be adjusted depending on the
3407         a.m/p.m value, so it is preserved, and only changed when the value
3408         reaches the 12 value (when it changes from a.m to p.m).
3409         Fixes part of #416555.
3410
3411 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3412
3413         * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
3414         * ToolStripDropDownItem.cs: Don't fire events and such again if
3415         ShowDropDown is called on an already dropped down item.
3416         * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
3417         subitems, the user may add some in the DropDownOpening event.
3418         [Fixes bug #417877]
3419
3420 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3421
3422         * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
3423         [Fixes bug #424270]
3424
3425 2008-09-08  Jonathan Pobst  <monkey@jpobst.com>
3426
3427         * MdiClient.cs: When looking for menustrips on a child form to merge,
3428         look inside ToolStripContainers.
3429         [Fixes bug #424264]
3430
3431 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3432
3433         * ErrorProvider.cs: Unbreak my previous commit.
3434
3435 2008-09-08  Ivan N. Zlatev  <contact@i-nz.net>
3436
3437         * ErrorProvider.cs: Icon should always be 16x16.
3438         [Fixes bug #424380]
3439
3440 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3441
3442         * GridEntry.cs: Invalidate the child items cache when the property 
3443         value changes.
3444
3445 2008-09-07  Ivan N. Zlatev  <contact@i-nz.net>
3446
3447         * GridEntry.cs, PropertyGridView.cs: 
3448            - Update the ReadOnly detection and rendering to finally hopefully 
3449            match the one of MSFT.
3450            - Niceify and move the debug CWLS.
3451         [Fixes bug #409028]
3452
3453 2008-09-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3454
3455         * ListView.cs: Don't call Invalidate at all from SetItemLocation,
3456         since we are already calling Invalidate for the entire control when
3457         needed - and call Redraw() when size changes, since we need to paint
3458         there by ourselved and not anymore from the mentioned method. 
3459         This should improve the layout process. Also clean some not needed calls 
3460         here and there.
3461
3462 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3463
3464         * MenuAPI.cs: Add a null check to the Alt-F4 code.
3465         [Fixes bug #420309]
3466
3467 2008-09-05  Jonathan Pobst  <monkey@jpobst.com>
3468
3469         * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
3470         [Fixes bug #423040]
3471
3472 2008-09-04  Ivan N. Zlatev  <contact@i-nz.net>
3473
3474         * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs, 
3475         PropertyGridView.sc: Implement lazy/delayed propertygrid population 
3476         on item expansion. Improves performance and fixes bug #417955.
3477         [Fixes bug #417955]
3478
3479 2008-09-05  Stephane Delcroix  <sdelcroix@novell.com>
3480
3481         * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
3482         fix the build.
3483
3484 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3485
3486         * TextControl.cs: Add "_" to the list of valid characters in a URL.
3487         [Fixes bug #423408]
3488
3489 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3490
3491         * Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
3492         region gets set.
3493         [Fixes bug #414166]
3494
3495 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3496
3497         * FontDialog.cs: When storing our font size from the starting font,
3498         use SizeInPoints instead of Size in case Size is a different unit
3499         from Points.
3500         [Fixes bug #416489]
3501
3502 2008-09-04  Jonathan Pobst  <monkey@jpobst.com>
3503
3504         * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
3505         don't use it for anything else, check if a directory is highlighted.
3506         If it is, navigate into it.
3507         [Fixes bug #422087]
3508
3509 2008-09-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3510
3511         * Binding.cs: When acquiring a BindingManagerBase for the first time,
3512         check that the specified property actually exists in the data source,
3513         and throw an ArgumentException if that's not the case - this is only
3514         done for this scenario, since for later cases (such Position changes)
3515         we throw different exceptions (match .Net).
3516
3517 2008-09-03  Ivan N. Zlatev  <contact@i-nz.net>
3518
3519         * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs, 
3520           FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs, 
3521           PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs, 
3522           TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs, 
3523           ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs, 
3524           ToolStripStatusLabel.cs: Add missing PerformLayout calls to various 
3525           properties.
3526           [Fixes bug #418684]
3527
3528 2008-09-03  Neville Gao  <nevillegao@gmail.com>
3529
3530         * StatusBar.cs: Control enabled to support accessibility.
3531         [Fixes bug #419079]
3532
3533 2008-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3534
3535         * Binding.cs: When connecting the event handler for the "Changed"
3536         event for the property, only do it for PropertyManager, and not for
3537         CurrencyManager - this is exactly what does .Net, totally ignoring any
3538         change in the property of the elements of a list.
3539         Fixes the tests.
3540
3541 2008-09-02  Jonathan Pobst  <monkey@jpobst.com>
3542
3543         * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
3544         to Windows when creating a window, as we fake MDI stuffs.
3545         [Fixes bug #421858]
3546
3547 2008-09-01  Ivan N. Zlatev  <contact@i-nz.net>
3548
3549         * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the 
3550         change takes effect.
3551
3552 2008-08-24  Ivan N. Zlatev  <contact@i-nz.net>
3553
3554         * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
3555         [Fixes bug #419001]
3556
3557 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3558
3559         * DataGridView.cs: Raise CellContentClick event.
3560         [Fixes part of bug #420351]
3561
3562 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3563
3564         * ScrollBar.cs: Control enabled to support accessibility.
3565         [Fixes bug #416759]
3566
3567 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3568
3569         * ComboBox.cs: Control enabled to support accessibility.
3570         [Fixes bug #416663]
3571
3572 2008-08-27  Mario Carrion  <mcarrion@novell.com>
3573
3574         * ListBox.cs: Control enabled to support accessibility.
3575         [Fixes bug #416640]
3576
3577 2008-08-27  Jonathan Pobst  <monkey@jpobst.com>
3578
3579         * ComboBox.cs: Don't suppress the TextChanged event when changing
3580         the SelectedIndex.
3581         * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
3582         and re-raise it.
3583         [Fixes bug #420673]
3584
3585 2008-08-26  Jonathan Pobst  <monkey@jpobst.com>
3586
3587         * ErrorProvider.cs: Fix a regression NRE when setting properties
3588         for a control before it has a parent.
3589         [Fixes bug #420305]
3590
3591 2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3592
3593         * Binding.cs: Use the BindingManagerBase.Current value to obtain
3594         connect the property "Changed" event, instead of using the data
3595         sources - this is useful when the property specifies actually a
3596         multiple objects path.
3597         Fixes part of #417973.
3598
3599 2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3600
3601         * RelatedPropertyManager.cs: PropertyManager instances associated to a
3602         nested properties should return not the properties of the data source
3603         itself, but the properties of the type of a specific property in the
3604         data source - match .net.
3605
3606 2008-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
3607
3608         * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
3609         AddRange overloads into AddItems method, and added missing NULL check.
3610         Added extra argument check to RemoveAt for compatibility with MS. 
3611         Modified IList implementation of Add, Contains, IndexOf and Remove to
3612         throw an ArgumentException if item is not an int. Modified IList.Insert
3613         to throw a NotSupportException instead of an Exception. Implemented
3614         ICollection.
3615         (ObjectCollection): To avoid duplication, use AddItems method from
3616         AddRange overloads. On 1.0 profile, first perform NULL check on items
3617         in AddItems.
3618
3619 2008-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
3620
3621         * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
3622          #419087.
3623
3624 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3625
3626         * X11Keyboard.cs : comment out some Console.WriteLine().
3627
3628 2008-08-22  Atsushi Enomoto  <atsushi@ximian.com>
3629
3630         * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
3631           even if premises are not filled. Also XLookupString() was not
3632           receiving correct input, which blocked precise input handling
3633           on non-XIM mode.
3634
3635 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3636
3637         * ListView.cs: When calling OnCacheVirtualItems, cast to the right
3638         type of delegate, instead of EventHandler - this was causing a type
3639         cast exception in all apps handling this event.
3640         Fixes #417876.
3641
3642 2008-08-20  Jonathan Pobst  <monkey@jpobst.com>
3643
3644         * ToolStripDropDownItem.cs: Always raise DropDownOpening in
3645         ShowDropDown to give the user a chance to dynamically add
3646         drop down items.  [Step 1 of fixing bug #417877]
3647
3648 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3649
3650         * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
3651         had any mouse motion since the call to StartDrag, to match the dnd
3652         behaviour of .net.
3653         Fixes part of #381876.
3654
3655 2008-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3656
3657         * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
3658         if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
3659         Also, if we are actually moving into a different window after
3660         grabbing, generate a LeaveNotify event for the previous window, since
3661         we need to fire the leave events until the grab ends, not when
3662         actually moving outside of the control.
3663
3664 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3665
3666         * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
3667         events only for client windows was wrong - we need to compare the
3668         client window against the window receiving the EnterNotify event, not
3669         against zero (since client window is never Zero, btw).
3670         This prevents having unnecessary handling of EnterNotify events for
3671         non-client windows when a gran begins.
3672
3673 2008-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3674
3675         * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
3676         MouseMove/MotionNotify events at all (which should only happen after
3677         MouseUp/ButtonRelease, as .Net does).
3678         This avoids firing an extra and unnecessary MouseMove event just after
3679         every MouseDown event.
3680
3681 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3682
3683         * LinkLabel.cs: Always clear any previous links when LinkArea
3684         is set.  [Fixes bug #410709]
3685
3686 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3687
3688         * ToolStripProfessionalRenderer.cs: Revert last change.
3689         * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
3690         for ToolStripDropDownBackground.
3691
3692 2008-08-19  Jonathan Pobst  <monkey@jpobst.com>
3693
3694         * ToolStripProfessionalRenderer.cs: Use Window color for the 
3695         background of dropdowns to match .Net when the user is not
3696         using the default white.  [Fixes bug #418108]
3697
3698 2008-08-19  Atsushi Enomoto  <atsushi@ximian.com>
3699
3700         * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
3701           it caused timer registration twice. Fixed bug #418107.
3702
3703 2008-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3704
3705         [Correction: This is the actual change to X11Dnd issue, not the
3706         previous one, which was actually a different issue.]
3707
3708         * X11Dnd.cs: Increase the interval for the Timer, to not fire our
3709         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3710         when the pointer is actually in motion, but only when the pointer
3711         seems to stop (as .net does).
3712         Fixes part of #381876.
3713
3714
3715 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3716
3717         * ListBox.cs: Fix CopyTo implementation.
3718         [Fixes bug #409169]
3719
3720 2008-08-18  Jonathan Pobst  <monkey@jpobst.com>
3721
3722         * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
3723         drawing a ComboBox's background.  Fixes bad disabled rendering when
3724         the control is not at 0,0.
3725         [Fixes bug #416063]
3726
3727 2008-08-16  Ivan N. Zlatev  <contact@i-nz.net>
3728
3729         * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the 
3730         ComponentModel layer, which will properly prioritize the attributes.
3731         Avoids wrong prioritization of duplicate attributes when retrieving 
3732         the converter and editor.
3733         [Fixes bug #417729]
3734
3735 2008-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3736
3737         * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
3738         pseudo motion HandleMouseOver method so aggresive. Also, don't call it
3739         when the pointer is actually in motion, but only when the pointer
3740         seems to stop (as .net does).
3741         Fixes part of #381876.
3742
3743 2008-08-15  Ivan N. Zlatev  <contact@i-nz.net>
3744
3745         * GridEntry.cs: Perform stricter check for the ParentEntry's 
3746         PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor 
3747         implementation.
3748         [Fixes bug #417567]
3749
3750 2008-08-14  Geoff Norton  <gnorton@novell.com>
3751
3752         * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
3753         Fixes #396983.  Properly fix ActiveWindow trackin and do not
3754         prematurely show POPUP windows.
3755
3756 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
3757
3758         * XplatUIX11.cs: Handle the obscured regions while scrolling using
3759         GraphicsExpose event, processing it just after we copy the scrolled
3760         area. This ensures that the next calls to ScrollWindow will copy
3761         regions already updated, and the scrolling will be smooth. Also remove
3762         the code that was trying to detect the obscured regions, since we are
3763         not using it anymore (too slow).
3764
3765 2008-08-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3766
3767         * ListBox.cs: Fix the -temporary- broken selection in ListBox for
3768         MultiExtended mode, by separating some logic between the ctrl/shift
3769         handling. Also ignore any MouseMove events generated together with
3770         MouseDown events - we are only interested in the real motion event.
3771         Fixes part of #414963.
3772
3773 2008-08-08  Jonathan Pobst  <monkey@jpobst.com>
3774
3775         * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
3776         is selected.  [Fixes bug #414143]
3777
3778 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3779
3780         * GridEntry.cs: Check if current property is a ICustomTypeDescriptor 
3781         and not the parent one (the propertyowner). Fixes the behavior of 
3782         GetConverter/GetEditor.
3783         [Fixes bug #415452]
3784
3785 2008-08-07  Ivan N. Zlatev  <contact@i-nz.net>
3786
3787         * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
3788         [Fixes part of bug #415452]
3789
3790 2008-08-05  Ivan N. Zlatev  <contact@i-nz.net>
3791
3792         * GridEntry.cs: ITypeDescriptorContext should be relative to the parent 
3793         GridEntry, not the current.
3794         [Fixes bug #413896]
3795
3796 2008-08-04  Ivan N. Zlatev  <contact@i-nz.net>
3797
3798         * TextBoxBase.cs: De-internalize max_length field.
3799         * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox 
3800         share the same logic.
3801         [Fixes bug #414454]
3802
3803 2008-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3804
3805         * ListBox.cs: Selection changes made in the MouseDown handler should
3806         use the *Core versions of selection in SelectedIndices collection,
3807         since the SelectedIndexChanged/SelectedValueChanged events are fired
3808         until we get a MouseUp event, and thus we need to separate the logic
3809         from the events, as done in the keyboard navigation. Also, fire those
3810         selection events from keyboard navigation in SelectionMode.None, even
3811         if we don't have a selection, as .Net does.
3812
3813 2008-08-01  Jonathan Pobst  <monkey@jpobst.com>
3814
3815         * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
3816         last change introduced when an item is clicked but isn't on a toolstrip.
3817
3818 2008-07-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3819
3820         * ListBindingHelper.cs: When looking for an object's properties, check
3821         if it implements ICustomTypeDescriptor, in which case we should
3822         resolve the propertu based on its GetProperties method, not in its
3823         actual properties. This is what .Net seems to do.
3824         Fixes a UsingWebBrowser problem during initialization.
3825
3826 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3827
3828         * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
3829         sitting on a MenuStrip.
3830
3831 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3832
3833         * ToolStripButton.cs: If we "click" a top button on a menustrip that has
3834         no children with the keyboard, we need to release the keyboard capture.
3835         [Fixes bug #413567]
3836
3837 2008-07-31  Jonathan Pobst  <monkey@jpobst.com>
3838
3839         * ToolStripMenuItem.cs: If we "click" a top level menu item that has
3840         no children with the keyboard, we need to release the keyboard capture.
3841         [Fixes bug #413567]
3842
3843 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3844
3845         * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
3846         the GTK+-based implementation of VisualStyles.
3847         * ThemeWin32Classic.cs: Exposed various layout values for use in the
3848         GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
3849         ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
3850         ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
3851         TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
3852         TrackBarHorizontalTrackHeight.
3853
3854 2008-07-31  George Giolfan  <georgegiolfan@yahoo.com>
3855
3856         * TabControl.cs: Added hot style handling for the scroll buttons.
3857         right_slider_state, left_slider_state are now of type PushButtonState to
3858         allow for a hot state. Added tracking of the mouse button being held down
3859         on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
3860         LeftScrollButtonArea.
3861         * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
3862         TabControlGetRightScrollRect.
3863
3864 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3865
3866         * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent 
3867         runtime errors.
3868
3869 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3870
3871         * Form.cs: Ensure that we reset the shown_raised flag after 
3872         the form is closed, so that we raise the show events the next 
3873         time the form is shown.
3874         [Fixes bug #413141]
3875
3876 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3877
3878         * Form.cs: Ensure closing events are raised only once.
3879         [Fixes bug #413143]
3880
3881 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3882
3883         * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode, 
3884         so that we can successfully generate the LParam in-place instead of 
3885         in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard 
3886         navigation for menus.
3887
3888 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3889
3890         * MenuAPI.cs: When montion don't set the keyboard navigation state to 
3891         'navigating'. Fixes bug #411356.
3892
3893 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3894
3895         [Fixed remaining issues of #406773 (#1)]
3896         * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
3897
3898         * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
3899         MainMenu (already done) and ContextMenu creation.
3900
3901         * ContextMenu.cs: Create tracker on construction. 
3902
3903 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3904
3905         * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
3906         possible to instantiate MenuTracker without GrabControl.
3907
3908 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3909
3910         * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
3911
3912         * MainMenu.cs: Set GrabControl on SetForm using current form.
3913
3914 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3915
3916         * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
3917
3918 2008-07-30  Everaldo Canuto  <ecanuto@novell.com>
3919
3920         * MenuAPI.cs: Check if menu is activated before deactivate it in 
3921         ProcessShortcut.
3922
3923 2008-07-30  Ivan N. Zlatev  <contact@i-nz.net>
3924
3925         * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs, 
3926         ColumnStyle.cs: 
3927         Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
3928          - One style instance can only participate in a single style collection.
3929          - Styles can request their owner to layout whenever their properties 
3930          change.
3931          [Fixes bugs #412583 and #412582]
3932
3933 2008-07-29  Ivan N. Zlatev  <contact@i-nz.net>
3934
3935         * X11Keyboard.cs: Implement the generation of the LParam for 
3936         all keyboard messages.
3937         [Fixes bug #378728]
3938
3939 2008-07-29  Jonathan Pobst  <monkey@jpobst.com>
3940
3941         * ListBox.cs: Don't let the user set TopIndex so high that it
3942         scrolls up far enough to show empty items.
3943         [Fixes bug #412728]
3944
3945 2008-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3946
3947         * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
3948         (I'm an idiot and forgot to commit the actual changes, as well as
3949         specify the right file, which is this one, not ListView.cs).
3950
3951 2008-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3952
3953         * ListView.cs: Don't draw ListViewSubItem instances from
3954         DrawListViewItem - we need to reuse the main item's drawing for the
3955         first sub item in case owner draw is true, but wants the system to
3956         do the default draw for the first sub item, without incurring in a
3957         recursion problem.
3958         Fixes #410880.
3959
3960 2008-07-28  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * ToolStripButton.cs: Update Checked for CheckOnClick before
3963         raising the Click event.  [Fixes bug #412505]
3964
3965 2008-07-28  Ivan N. Zlatev  <contact@i-nz.net>
3966
3967         * Form.cs: Remove some seems leftover code for non-TopLevel's 
3968         CreateParams, which is breaking ClientSize sizing, because it 
3969         removes the border window styles.
3970
3971 2008-07-27  Ivan N. Zlatev  <contact@i-nz.net>
3972
3973         * PropertyGrid.cs: Invalidate the View when the PropertyTab 
3974         changes.
3975
3976 2008-07-25  Gert Driesen  <drieseng@users.sourceforge.net>
3977
3978         * WebBrowser.cs: Removed debug output.
3979
3980 2008-07-25  Jonathan Pobst  <monkey@jpobst.com>
3981
3982         * FileDialog.cs: Apply patch from Ernesto to clean up some
3983         dialog messages.
3984
3985 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3986
3987         * TableLayoutPanel.cs: Perform layout on GrowStyle change, so 
3988         that the change has an immediate effect.
3989
3990 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3991
3992         * ScrollableControl.cs: Update PerformLayout calls to include 
3993         provide the name of the property that changed.
3994
3995 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
3996
3997         * TableLayoutPanel.cs: Draw relative to the DisplayRectangle 
3998         location. Fixes drawing of border and cell borders if scrollable.
3999
4000 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4001
4002         * ScrollableControl.cs: Perform layouting after the AutoScroll 
4003         properties have changed, so that the changes have immediate 
4004         effect.
4005         [Fixes bug #409090]
4006
4007 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4008
4009         * XplatUIX11.cs: Non Client area is actually Client such in the 
4010         case of NotifyIcon, so double check WholeWindow == ClientWindow 
4011         when adding an expose.
4012         [Fixes bugs #324237 and #357022]
4013
4014 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4015
4016         * TableLayoutPanel.cs: Invalidate after layouting, so that we 
4017         repaint the cell borders.
4018
4019 2008-07-25  Ivan N. Zlatev  <contact@i-nz.net>
4020
4021         * PropertyGridTextBox.cs: Stop filtering messages prior to our 
4022         disposal to avoid unexpected ObjectDisposedExceptions.
4023
4024 2008-07-24  Ivan N. Zlatev  <contact@i-nz.net>
4025
4026         * TableLayoutPanel.cs: Layout on Row/Column count change.
4027
4028 2008-07-22  Gert Driesen  <drieseng@users.sourceforge.net>
4029
4030         * ListViewItem.cs: Changed binary serialization to match MS. Fixes
4031         bug #409351.
4032         * PictureBox.cs: When ImageLocation is set to null or an empty string,
4033         only set image to null if it was previously initialized from an url
4034         (or using ImageLocation). In ImageLocation, load specified image
4035         asynchronously if WaitOnLoad is false. Added support for local file
4036         paths to LoadAsync, and added missing argument check.
4037
4038 2008-07-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4039
4040         * DateTimePicker.cs: 
4041         * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
4042         order to set the value as required (which means: when selection
4043         changes for a part being edited, and not before that if not needed).
4044         Also use an enum to describe which part are we using, and use the
4045         selection as a property in PartData, in order to notify the
4046         DateTimePicker owner that we need to end the current edit.
4047         Fixes #383462.
4048
4049 2008-07-17  Ivan N. Zlatev  <contact@i-nz.net>
4050
4051         * PropertyGridTextBox.cs: Validation should be performed only if we 
4052         are focused. We can lose focus for example if the Return key is used 
4053         to set the entry and there is an error. When the message box is 
4054         displayed we would have validate on click in the message box.
4055
4056 2008-07-16  Ivan N. Zlatev  <contact@i-nz.net>
4057
4058         * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content 
4059         in order to determine that we are expandable is wrong. There was a bug, 
4060         now fixed, in TypeDescriptor that was causing the wrong converter to be 
4061         returned which caused GetPropertiesSupported == false in most cases.
4062         [Fixes bug #409027]
4063
4064 2008-07-15  Jonathan Pobst  <monkey@jpobst.com>
4065
4066         * ImageList.cs: Fix ICollection.CopyTo implementation for
4067         ImageListCollection.  [Fixes bug #409169]
4068
4069 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4070
4071         * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
4072         WorkingArea so that menus can appear on the second monitor
4073         when one has dual monitors.
4074
4075 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4076
4077         * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
4078         Fixes build.
4079
4080 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4081
4082         * TextBox.cs: Implement navigation support for auto complete in
4083         TextBox, as well as refactor the code to show the auto complete window
4084         when receiving a WM_CHAR message, instead of TextChanged, since
4085         autocomplete itself should be able to set the Text a lot of times and
4086         finally only typing should show it, not changes from code.
4087
4088 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4089
4090         * TabControl.cs: When expanding the selected tab, don't adjust the
4091         width if alignment is Right, since it has a different offset than 0,
4092         as opposed to the other alignments.
4093         Fixes the selected tab not being painted at all with alignment = Right
4094         and using FillToRight size mode.
4095
4096 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4097
4098         * TreeView.cs: Fix ToString to match MS.  [Fixes bug #409029]
4099
4100 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4101
4102         * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
4103         values from the textbox to the boundary values.  [Fixes bug #409026]
4104
4105 2008-07-14  Jonathan Pobst  <monkey@jpobst.com>
4106
4107         * TreeNodeCollection.cs: We were copying one too many elements when
4108         doing our array copy.  Fixes a crash when RemoveAt is called.
4109         [Fixes bug #408999]
4110
4111 2008-07-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4112
4113         * TabControl.cs: When doing the layout and need to call FillRow -using
4114         FillToRight size mode-, use the overload receiving a bool param
4115         indicating whether we need to do a vertical or horizontal calculation.
4116         Fixes part of #399583.
4117
4118 2008-07-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4119
4120         * TextBox.cs: When painting, use the value returned by
4121         GetLastVisibleItem instead of using the cached last_item field, since
4122         there could be a desynchronization between the layout and the
4123         painting. Fixes a AOOR exception in auto complete mode.
4124
4125 2008-07-12  George Giolfan  <georgegiolfan@yahoo.com>
4126
4127         * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
4128         NonClientAreaEnabled until our VisualStyles is modified to allow it.
4129
4130 2008-07-12  Gert Driesen  <drieseng@users.sourceforge.net>
4131
4132         * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
4133
4134 2008-07-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4135
4136         * TextBox.cs: When focus is lost, if the auto complete listbox is
4137         visible, hide it.
4138
4139 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4140
4141         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4142         tracking size for tool windows.
4143         * Theme.cs, ThemeWin32Classic.cs : Extracted
4144         ManagedWindowSpacingAfterLastTitleButton.
4145
4146 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4147
4148         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
4149         They are bit-rotted and have always been listed as "unsupported".
4150
4151 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
4152
4153         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
4154
4155 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
4156
4157         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
4158
4159 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4160
4161         * ListBox.cs: Make sure last_item_visible gets reset before we try
4162         to do a layout due to scrollbars appearing or disappearing.
4163         [Fixes bug #408139]
4164
4165 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4166
4167         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
4168         for different window themes.  [Fixes bug #339140]
4169
4170 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4171
4172         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
4173         in ManagedWindowBorderWidth.
4174
4175 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4176
4177         * InternalWindowManager.cs: Change MouseMove to take a point, so
4178         we can use the same point later on.
4179         * MdiWindowManager.cs: Store point sent to MouseMove so we can
4180         later reset to it.  On Windows, the Cursor.Position had already
4181         changed by the time we were resetting to it.
4182         [Fixes bug #363239]
4183
4184 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4185
4186         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
4187         are inactive.
4188         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
4189         user requested it.
4190         [Fixes bug #398686]
4191
4192 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
4193
4194         * MdiWindowManager.cs: Double-clicking on the title bar should not
4195         maximize a MDI form if MaximizeBox = false.
4196
4197 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4198
4199         * ThemeVisualStyles.cs: Fixed a warning.
4200
4201 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4202
4203         * ThemeVisualStyles.cs: Fixed warnings and formatted.
4204
4205 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4206
4207         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
4208         implementation produces a better result.
4209
4210 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4211
4212         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
4213         windows.
4214
4215 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
4216
4217         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
4218         cannot be used from the ThemeEngine constructor.
4219         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
4220         Application.VisualStylesEnabled because it does not work on X11.
4221
4222 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
4223
4224         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
4225         that we did not always check for, as well as fixes to the IList
4226         implementations.  [Fixes bug #402703]
4227
4228 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4229
4230         * IDeviceContext.cs: Added Dispose.
4231
4232 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4233
4234         * Control.cs: Added OnSizeInitializedOrChanged.
4235         * Form.cs: OnLoadInternal: Added a call to
4236         Control.OnSizeInitializedOrChanged.
4237         * InternalWindowManager.cs:
4238          * HandleTitleBarMouseMove: No longer invalidates the parent window.
4239          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
4240          * TitleButton: Added Entered.
4241          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
4242         * MdiWindowManager.cs:
4243          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
4244          move over the maximized title buttons causes a change.
4245          * IsActive: Can now be called before the window is added to a MDI parent.
4246         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
4247         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4248         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
4249         * ThemeWin32Classic.cs:
4250          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
4251          * DrawTitleButton takes a new form parameter.
4252          * Added ManagedWindowTitleButtonHasHotElementStyle,
4253          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
4254
4255 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
4256
4257         * ThemeEngine.cs: ThemeVisualStyles is now selected if
4258         Application.EnableVisualStyles has been called, even if the current system
4259         configuration does not support rendering with Visual Styles.
4260         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
4261         Styles should not be used.
4262
4263 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
4264
4265         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
4266         ComboBox in FormsTest.
4267
4268 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
4269
4270         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
4271         for fixed toolwindows.
4272
4273 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
4274
4275         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
4276
4277 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4278
4279         * Control.cs: CreateControl just returns if the Control is diposed 
4280         and doesn't throw ObjectDisposedException.
4281         [Fixes bug #406566]
4282
4283 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4284
4285         * Control.cs: Do not create the control if the parent isn't created 
4286         yet, e.g in the case of a parented form on which .Show is called.
4287         It will be created when the parent is made visible/created.
4288         Improves #402446.
4289
4290 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4291
4292         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
4293         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
4294         [Fixes bug #406786]
4295
4296 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4297
4298         * Form.cs: When disposed set owner to null. Improves #402446.
4299
4300 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4301
4302         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
4303         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
4304         if not.
4305         * Form.cs: Take the Padding into account for the PreferredSize.
4306         [Fixes bug #402849]
4307
4308 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4309
4310         * TabControl.cs: Since we don't support more than one direction in
4311         TabControl rows alignment (this is, the row becomes the
4312         bottom row when selected), make Direction return always 1. This way
4313         the layout doesn't get confused about a bad calculation.
4314         Fixes #399582.
4315
4316 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
4317
4318         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
4319         so that the wparam is properly set.
4320         Fixes form moving in the test case in bug 402446.
4321
4322 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
4323
4324         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
4325         the full tree instead of nothing.  [Improves bug #406584]
4326
4327 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4328
4329         * ThemeWin32Classic.cs: Adjusted minimized window painting.
4330
4331 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
4332
4333         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
4334         children.
4335
4336 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
4337
4338         * TreeView.cs: Add a null check when using CollapseAll on an
4339         empty tree.  [Fixes bug #406449]
4340
4341 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4342
4343         * Form.cs: Make OnMenuComplete internal so we can call it.
4344         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
4345         [Fixes bug #399321]
4346
4347 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4348
4349         * TabControl.cs: Handle Up and Down keys when TabControl is in
4350         vertical alignment.
4351         [Fixes bug #399585]
4352
4353 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4354
4355         * TabControl.cs: Invalidate when we remove a tab.  Guard against
4356         an AOORE when trying to remove a tabpage that is not owned by the
4357         parent control.
4358         [Fixes bug #399927]
4359
4360 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4361
4362         * ScrollBar.cs: Change the LargeChange calculation to be correct.
4363         Ensure we are using LargeChange instead of large_change so we our
4364         calculations are correct.
4365         [Fixes bug #403122]
4366
4367 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
4368
4369         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
4370         we need to ensure the ColumnCount/RowCount gets set.
4371         [Fixes bug #404851]
4372
4373 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4374
4375         * ListBox.cs: When handling item navigation, if selection mode is
4376         None, call EnsureVisible, since scrolling is normally handled by
4377         selection, that we are not calling in this case.
4378         Fixes #398345.
4379
4380 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4381
4382         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
4383         a null check to our focus walking code.  [Fixes bug #394332]
4384
4385 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
4386
4387         * ComboBox.cs: Case missed in bug 379596 "Support item
4388         navigation by entering text": On _close_ drop-down select
4389         the first item matching the text in the textbox.  [Fixes bug #397265]
4390
4391 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
4392
4393         * DataGridView.cs: Fix a crash when sorting by column headers, 
4394         mentioned in bug #404841.  Remove some dead switch cases.
4395
4396 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4397
4398         * ComboBox.cs:
4399         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
4400         uses the AutoComplete support in the internal TextBox. Also TextBox
4401         can store a reference to ComboBox, in case AutoCompleteSource is set
4402         to ListItems (this is, ComboBox's items, and we don't want to pass an
4403         additional collection).
4404
4405 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4406
4407         * ListViewItem.cs: Restore the initial value of bounds rect to
4408         Rectangle.Empty, and is this value for Layout detection in virtual
4409         mode. Fixes the tests.
4410
4411 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
4412
4413         * XPlatUI.cs: Remove references to "new" X11 backend.
4414
4415 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4416
4417         * Control.cs: Add an internal virtual OnDragDropEnd method 
4418         to allow controls such as ListBox, which depend on a sequence 
4419         of MouseDown+Move+End events, to handle the lack of a MouseUp 
4420         when a DnD operation is started in MouseDown.
4421         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
4422         get a MouseUp, so reset our state whenever a DnD operation ends.
4423
4424 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
4425
4426         * PropertyGrid.cs: Clear the root griditem first thing when 
4427         new object/s is/are selected. Fixes some rare cases where 
4428         the View will get a paint request and won't know that the 
4429         grid is in the process of repopulating.
4430
4431 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4432
4433         * XplatUIX11.cs, InternalWindowManager.cs: 
4434         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
4435         doesn't automagically update the FormBorderStyle, so we must 
4436         double check the CreateParams explicitly to determine if the 
4437         window is a toolwindow.
4438         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
4439         instead of doing custom checks.
4440
4441         Fixes toolwindows for the test case in bug #402446
4442
4443 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4444
4445         * Control.cs: Visibility of the control should be false 
4446         when the handle is destroyed in WmDestroy and not immediately 
4447         in Dispose(). This is effectively where the disposing process 
4448         ends even though the control is marked as Disposed immediately 
4449         after calling Dispose().
4450         [Fixes bug #402446]
4451
4452 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4453
4454         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
4455         when the textbox gets focus.
4456         [Fixes bug #402704]
4457
4458 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
4459
4460         * PropertyGridTextBox.cs, PropertyGridView.cs: 
4461          - Alt + Down should show the drop down editor.
4462          - Focus the editor when showing it
4463         [Fixes bug #402710]
4464
4465 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
4466
4467         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
4468         that are not the first panel.
4469         * StatusBar.cs: Ensure that the X coordinate of panels is always
4470         stored.  Fix IList implementation of StatusBarPanelCollection to
4471         call the regular methods.
4472         [Fixes bug #403599, #402165]
4473
4474 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
4475
4476         * ThemeWin32Classic.cs: Fix position calculation for centered
4477         text on status bar panels.  [Fixes bug #402165]
4478
4479 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4480
4481         * Splitter.cs: Fix Splitter to:
4482          - Work for arbitrary splitter size
4483          - Handle MinSize and MinExtra properly
4484          - Get rid of absolute positioning during drag and use relative
4485          - Multiple other fixes 
4486          [Fixes bug #338966]
4487
4488 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
4489
4490         * Cursor.cs: Show shouldn't hide the cursor.
4491
4492 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4493
4494         * ListViewItem.cs: When invalidating, add some extra space to bounds,
4495         since focus rectangle and selection can add some space and need to
4496         take into account those small offsets - specially in Details view.
4497         * ListView.cs: Instead of invalidate using item Bounds directly, call
4498         item.Invalidate, to have the code centralized.
4499         Fixes focused/selection garbage when selecting and deselecting items
4500         that are close.
4501
4502 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4503
4504         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
4505         mode we can check whether we have to force a Layout or not, and can
4506         cache based on this, instead of avoiding caching all the the time. Do
4507         this check in GetBounds and TextBounds.
4508         Fixes selection in Details view.
4509
4510 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4511
4512         * ListView.cs: Make HeaderControl internal, thus the theme engine can
4513         get its *real* height instead of trying to infere it.
4514         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
4515         get the position of them, since it's in general a bad idea in general,
4516         and because we can't do that in virtual mode. Instead get the first
4517         visible item as well as item height, and draw them.
4518         Fixes #400390.
4519
4520 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
4521
4522         * ToolStripSplitButton.cs: We can't add in extra width if
4523         the button is not AutoSize.  [Fixes bug #401279]
4524
4525 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
4526
4527         * PaddingConverter.cs: 
4528          - Implement conversion to InstanceDescriptor
4529          - Handle "All" in CreateInstance by using the supplied 
4530          ITypeDescriptorContext.
4531          [Fixes bugs #396076 and #396078]
4532
4533          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
4534          Code contributed under MIT/X11 license.
4535
4536 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
4537
4538         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
4539         ButtonBase.cs:
4540         Add Category attributes.
4541         Code is contributed under the MIT/X11 license.
4542
4543 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
4544
4545         * Form.cs: 
4546          - Fix a NRE when unparenting a form.
4547          - Do not recreate or destroy a parented form when 
4548         unparenting. 
4549
4550 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4551
4552         * TextBox.cs: Implement basic support for AutComplete with custom
4553         sources.
4554
4555 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
4556
4557         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
4558         DropDownButtonBounds should be from the origin of the button, not the
4559         ToolStrip.  [Fixes bug #401279]
4560
4561 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
4562
4563         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
4564           running gtk_init_check.  This prevents GAIL from loading
4565           unnecessarily, which was breaking UIA support.  Initial fix for bug
4566           #375987.
4567         * Application.cs: Add UIA support to Winforms.  New static constructor
4568           uses reflection to initialize UIAutomationWinforms assembly.  Added
4569           PreRun event so UIA can initialize before the mainloop starts, and
4570           FormAdded event so UIA can provide a11y support for new Forms in an
4571           Application.
4572
4573 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
4574
4575         * DataGridView.cs: When binding to a dataset, subscribe to table
4576         and column change events.  Unsubscribe to these when we clear bindings.
4577         [Fixes bug #399601]
4578
4579 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
4580
4581         [DataGrid drawing refactory]
4582
4583         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
4584
4585         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
4586         must be handle by Theme, now it call DataGridPaintColumnHeader.
4587
4588         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
4589         test cases must be also fixed because it checks for wrong size.
4590
4591         * ThemeWin32Classic.cs: 
4592                 - Draw the bottom line of grid caption.
4593                 - Prevent to draw caption text when it is empty.
4594                 - Use CPDrawBorder3D for 3D efects to simplify code.
4595                 - Uses 3D (when not flat) to paint corner shared between row and column
4596                 header.
4597                 - Fix header drawing issues on win32, now borders are drawing.
4598                 - Fix column header paint issues to mimic win32.
4599                 - Adjust header drawing for last column, like first one it must be draw
4600                 different.
4601                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
4602                 not an character.
4603                 - DataGridPaintColumnHeader created to draw column headers, it also
4604                 paint stuff right on Win32.
4605                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
4606                 class.
4607
4608         * Theme.cs: 
4609                 - DataGridPaintRowHeaderStar method added.
4610                 - DataGridPaintColumnHeader method added.
4611
4612 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
4613
4614         * Control.cs: Don't reset to Dock style layout if DockStyle is
4615         set to none.  [Fixes bug #399316]
4616
4617 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
4618
4619         * Win32DnD.cs: Fix the check for control not equal null.
4620         Fixes bug #341420 and #381886. 
4621
4622 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4623
4624         * DataGridViewRowCollection.cs: Update the indexes of rows after
4625         one has been removed.
4626         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
4627         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
4628         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
4629         rows for the Rows collection, or deleting rows from the bound DataSet.
4630
4631 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
4632
4633         * DataGridView.cs: Listen to a DataSet's changed event even
4634         when autogeneratecolumns is false.  Refactor the changed event's
4635         add row code to use the same as the existing add row code.
4636         [Fixes bug #399601]
4637
4638 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4639
4640         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
4641         much any time the caret moves and there is text, not just when
4642         the selection changes as one would think.
4643         * RichTextBox.cs: Override RaiseSelectionChanged and fire
4644         SelectionChanged.
4645         [Fixes bug #397271]
4646
4647 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4648
4649         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
4650         instead of trying to duplicate the code.
4651         * ListBox.cs: Make method internal so we can send keyboard events.
4652         [Fixes bug #398344]
4653         
4654 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4655
4656         * TextBoxBase.cs: When pasting and checking the max length,
4657         subtract the selected text length (the text we will be replacing) from
4658         the document length.
4659         * TextControl.cs: Ensure every character insertion is reflected in
4660         charcount, so max length will work properly.
4661         [Fixes bug #398605]
4662
4663 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * ListBox.cs: Ensure scrollbars are updated when a single
4666         column listbox with an already set top-index is created.
4667         [Fixes bug #398342]
4668
4669 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
4670
4671         * FontDialog.cs: Typing in the font/style textboxes should search
4672         the list boxes case-insensitively.  [Fixes bug #398343]
4673
4674 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
4675
4676         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
4677         widths of icon and buttons instead of hard coded values.
4678
4679 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4680
4681         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
4682         as well as generating a SelectedIndexChanged event, just like .Net does
4683         -surprise-.
4684         Fixes #398345.
4685
4686 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4687
4688         * ListBox.cs: When navigating items visually, use FocusedItem as the
4689         reference point instead of SelectedIndex, since even in
4690         SelectionMode.None we need to support navigation, and in that case we
4691         just can't use SelectedIndex.
4692         Fixes part of #398345.
4693
4694 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
4695
4696         * Control.cs: Make a SetBoundsInternal that avoids the new
4697         SetBounds code.
4698         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
4699         SetBoundsInternal instead of SetBoundsCoreInternal.
4700
4701 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
4702
4703         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
4704         SetBounds for the scrollbars.
4705
4706 2008-06-10  Andreia Gaita <avidigal@novell.com> 
4707
4708         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
4709           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
4710           OnMouseMove, OnMouseOver, OnMouseUp
4711         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
4712           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
4713         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
4714           to the WebControl object to pass to new collection objects
4715         * HtmlHistory.cs: Implement support for individual window histories.
4716         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
4717           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
4718           GotFocus, LostFocus, OnLoad, OnUnload
4719         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
4720           ContextMenu
4721         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
4722           security level changes and context menu event support.
4723
4724 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4725
4726         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
4727         as happens with Esc, patch my Andy Hume.
4728         Fixes #396294.
4729
4730 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4731
4732         * MdiWindowManager.cs: DrawMaximizedButtons now uses
4733         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
4734         * Theme.cs: Made MenuButtonSize platform dependent. Added
4735         ManagedWindowButtonSize.
4736         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
4737         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
4738
4739 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4740
4741         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
4742         Added support for rendering with VisualStyles.
4743
4744 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4745
4746         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
4747         support for rendering the border with VisualStyles.
4748
4749 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4750
4751         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
4752         the icon is not shown.
4753         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
4754         its own logic.
4755
4756 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
4757
4758         * InternalWindowManager.cs: Draw minimized windows even if they don't have
4759         borders.
4760
4761 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4762
4763         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
4764
4765 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
4766
4767         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
4768         [Fixes bug #397943]
4769
4770 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4771
4772         * ComboBox.cs: When snaping height -because of IntegralHeight set to
4773         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
4774         if the requested height leaves the listbox area with *less* than the
4775         required are to see one item. We were setting it to PreferredHeight
4776         even for values matching the height for a single item.
4777         Fixes #396297.
4778
4779 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4780
4781         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
4782
4783 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
4784
4785         * DataGridViewCell.cs: Use property instead of field.
4786
4787 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4788
4789         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
4790         null checks.
4791
4792 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4793
4794         * Theme.cs: Added #region around the managed window code. Made the managed
4795         window methods abstract.
4796         * ThemeWin32Classic.cs: Added #region around the managed window code.
4797
4798 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4799
4800         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
4801         if it has borders.
4802         * ThemeWin32Classic.cs: Removed HasBorders checks in
4803         DrawManagedWindowDecorations.
4804
4805 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
4806
4807         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
4808         Extracted ManagedWindowGetTitleBarIconArea.
4809
4810 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4811
4812         * DataGridViewCellStyle.cs: Don't clone the font.
4813
4814 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4815
4816         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
4817
4818 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4819
4820         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
4821         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
4822         in 64 bit machines.
4823
4824 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
4825
4826         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
4827         Use Format/FormatProvider before trying converters.
4828         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
4829         are 'set'.  Change constructor to not use ApplyStyle since it wants
4830         everything applied.  Clone the Font.
4831         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
4832         ApplyStyle the rest.
4833
4834 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4835
4836         * ListView.cs: We need to calculate the scrollbars even if the handle
4837         hasn't been created - this is needed when methods using scrollbars
4838         info, such EnsureVisible, are called before control has been created.
4839         Fixes #397272.
4840
4841 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
4842
4843         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
4844         only if the elements are defined. 
4845
4846 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4847
4848         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
4849         section. Also, when setting bounds, snap height as well as save the
4850         requested height if Dock has any value affecting the height: Left,
4851         Right and Bottom - important if using IntegralHeight as true.
4852
4853 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4854
4855         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
4856         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
4857         instead of doing that only in our SetBoundsCore override, since the 
4858         bounds cached can be the same as saved one and we could not get the
4859         new height applied.
4860         Fixes #396297.
4861
4862 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4863
4864         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
4865         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
4866         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
4867         ToolWindowCaptionButtonSize.
4868         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
4869
4870 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4871
4872         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
4873         hard coded values.
4874         * Theme.cs: Made DoubleClickTime plaform dependent.
4875
4876 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4877
4878         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
4879         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4880         ToolWindowCaptionHeight.
4881
4882 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4883
4884         * InternalWindowManager.cs: The adjustment to ensure positive client area
4885         sizes is now platform dependent (disabled on Windows).
4886         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
4887         RequiresPositiveClientAreaSize.
4888
4889 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4890
4891         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
4892
4893 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
4894
4895         * InternalWindowManager.cs: Changed IconicSize to use
4896         SystemInformation.MinimizedWindowSize.
4897         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
4898         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
4899
4900 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4901
4902         * ComboBox.cs: If the combobox is anchored both on top and bottom,
4903         adjust height if IntegralHeight is true when calling SetBoundsCore (as
4904         likely the height was modified even if Height wasn't specified in
4905         BoundsSpecified parameter).
4906         Fixes part of #396297.
4907
4908 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
4909
4910         * InternalWindowsManager.cs: Changed minimum window size while resizing to
4911         SystemInformation.MinWindowTrackSize.
4912         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
4913         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
4914
4915 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4916
4917         * MenuItem.cs: Fixed Dispose.
4918
4919 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
4920
4921         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
4922         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
4923         EnteredHeaderCell, PressedHeaderCell: Added.
4924         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
4925         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
4926         theme a chance to override default painting.
4927         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
4928         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
4929         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
4930         ListView and DataGridView header rendering.
4931         
4932 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4933
4934         * RichTextBox.cs: GetPositionFromCharIndex should return the 
4935         visual position of the character relative to the viewport.
4936         [Fixes part of bug #396664]
4937
4938 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
4939
4940         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
4941         and not just for the existance of an UITypeEditor. In some cases 
4942         there is an editor associated just to do PaintValue, but which 
4943         doesn't actually support editing.
4944         [Fixes bug #396632]
4945
4946 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4947
4948         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
4949         if needed, instead of 0 - this should help us in the corner case where
4950         we have more than one item but we are only partially showing 1 item.
4951         Fixes part of #374713.
4952
4953 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4954
4955         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
4956         control, return immediately if the any parent control's handle hasn't
4957         been created or isn't visible, as well as avoiding creating the parent
4958         Form if the handle hasn't been previously created.
4959         Fixes tests.
4960
4961 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4962
4963         * TableLayoutPanel.cs: Use border sizes when calculating the
4964         panel's preferred size.  [Fixes part of bug #396433]
4965
4966 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4967
4968         * SplitContainer.cs:
4969          - Fix SplitterDistance to update only if needed. 
4970          - Make it force min and max validation.
4971          - Handle properly mouse moves outside the resizeable area.
4972          [Fixes bug #396232]
4973
4974 2008-06-02  Andreia Gaita <avidigal@novell.com> 
4975
4976         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
4977           (which also suppresses all popup dialogs). Throw NotSupported
4978           exceptions for activex getters/setters.
4979         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
4980           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
4981           StatusText, Version, GoSearch
4982         * HtmlDocument.cs: Add DocType support
4983
4984 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
4985
4986         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
4987         [Fixes bug 396124]
4988
4989 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
4990
4991         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
4992
4993 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
4994
4995         * TableLayoutPanel.cs: When calculating preferred size, use the
4996         actual number of columns and rows, not what the user set them to.
4997         [Fixes bug #396141]
4998
4999 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
5000
5001         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
5002         394311.
5003
5004 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5005
5006         * XplatUIX11.cs: When detecting areas obscured in a control by other
5007         toplevel windows while scrolling, return if the control hasn't a 
5008         container form.
5009         Fixes some tests.
5010
5011 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5012
5013         * XplatUIX11.cs: Properly detect the visible area of a control being
5014         scrolled (obscured by other winforms controls and any X toplevel
5015         windows), to mark as invalid the requested area to be scrolled that
5016         isn't visible and thus can't be copied.
5017         Fixes #324513.
5018
5019 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5020
5021         * ListBox.cs: Compute the precise amount to vertically scroll when
5022         using DrawMode.OwnerDrawVariable.
5023         Patch by jkeymer (j.keymer@gmx.net).
5024
5025 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5026
5027         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
5028         to avoid setting an invalid value for the verticall scrollbar 
5029         when navigating items. And, duh, also remove my silly debug messages
5030         from previous commits.
5031         Fixes #374713.
5032
5033 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5034
5035         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
5036         make it MS compatible.
5037
5038 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
5039
5040         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
5041          - Allow the editing of entries even if their parent is read-only.
5042          - Do not render expandable properties read-only.
5043          - Refactor expansion checks form PropertyGrid into PropertyGrid.
5044
5045 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
5046
5047         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
5048         support for the hover style.
5049
5050 2008-05-29  Andreia Gaita <avidigal@novell.com> 
5051
5052         * ContainerControl.cs: Check for null dead-end when traversing the tree
5053           of parent controls.
5054         
5055           [Fixes #394332, patch by Ernesto Carrea]
5056
5057 2008-05-29  Geoff Norton  <gnorton@novell.com>
5058
5059         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
5060         constant that it is.  Fixes #393981
5061
5062 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5063
5064         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
5065         that the user probably doesn't want to set this.
5066
5067 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
5068
5069         * ThemeWin32Classic.cs: Don't let the text size be bigger than
5070         the control size for CheckBox/RadioBox.
5071         [Fixes part of bug #394645]
5072
5073 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5074
5075         * PropertyGrid.cs: Update the state of the sorting buttons in 
5076         the toolbar if PropertySort is set programatically.
5077
5078 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5079
5080         * GridItemCollection.cs: Add multiple items with conflicting names 
5081         support and also preserve name ordering.
5082         [Fixes #395345]
5083
5084 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
5085
5086         * GridItemCollection.cs: Revert my multiple items with same 
5087         name patch.
5088
5089 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5090
5091         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
5092         or middle ones.
5093         Fixes part of #393908.
5094
5095 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
5096
5097         * ToolStripDrowDown.cs: When using the Show () methods that have a
5098         Control parameter, set the menu owner to that Control.
5099         [Fixes bug #394345]
5100
5101 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
5102
5103         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
5104         [Fixes bug #362756]
5105
5106 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5107
5108         * GridItemCollection.cs: Refactor to support multiple items with the 
5109         same name.
5110         [Fixes bug #394314]
5111
5112 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
5113
5114         * Control.cs: The 2.0 check for illegal cross thread calls in 
5115         Control.Handle were throwing an exception when we were getting
5116         the Handle in order to invoke correctly.  Created a private
5117         version that does not contain this check.
5118         [Fixes bug #394531]
5119
5120 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5121
5122         * PropertyGrid.cs: Respect DefaultTabType.
5123
5124 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5125
5126         * ListView.cs: SPACE selects an item.
5127         [Fixes bug #393023]
5128
5129 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
5130
5131         * ListView.cs: Reset the search string whenever the items are 
5132         modified.
5133         [Fixes bug #393020]
5134
5135 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5136
5137         * ListControl.cs: For the first added item PositionChanged is fired
5138         _before_ ItemChanged, which leave us in a temporary invalid state - so
5139         we need to set the selected index from ItemChanged handler *if* we
5140         know that the first item has just been added *and* the items have been
5141         actually added to the ListControl.
5142         Fixes #369048.
5143
5144 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5145
5146         * TabControl.cs: Only clicks with the left button should be
5147         handled.
5148         Fixes #393908.
5149
5150 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5151
5152         * ComboBox.cs: 
5153         * FIleDialog.cs:
5154         * TextBox.cs: Expose an internal method in TextBox to restore the
5155         original context menu, and call it from ComboBox to re-use it in the
5156         combobox containing the file name in FileDialog.cs.
5157         Fixes part of #393775.
5158
5159 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5160
5161         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
5162         style.
5163
5164 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
5165
5166         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
5167         down button style.
5168
5169 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5170
5171         * ComboBox.cs: Minor correction to previous patch: PageDown should
5172         also *try* to move by one item if the computed offset is negative,
5173         just like the PageUp case.
5174
5175 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5176
5177         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
5178         should be done for at least 1 item, and not stay at the same item.
5179         Fixes part of #374713.
5180
5181 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
5182
5183         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
5184         directories.  [Fixes bug #393931]
5185
5186 2008-05-22  Andreia Gaita <avidigal@novell.com> 
5187
5188         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
5189           Don't fire events until the initial about:blank page has finished
5190           loading. Clean up events.
5191
5192 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5193
5194         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
5195           FocusIn() too. This should fix the issue on switching
5196           scim keyboards.
5197
5198 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
5199
5200         * X11Keyboard.cs : set XIM font size to somewhat reasonable
5201           number (ideally the input textbox size, but that could be
5202           too messy).
5203
5204 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
5205
5206         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
5207         the ToolStripItem's TextChanged.  [Fixes bug #393597]
5208
5209 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5210
5211         * TabControl.cs: When invalidating in SelectedIndex and we need to
5212         inflate to take into account the border of the tabs, make sure that
5213         the invalidated rect doesn't overflow the control bounds, since that
5214         would avoid updating at all.
5215
5216 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5217
5218         * TabControl.cs: Don't substract scroller width from the row width,
5219         since we need to take into account the total width of the control when
5220         calculating the position of the tabs. This avoids showing scroller
5221         when it is actually not needed.
5222         Fixes part of #322325.
5223
5224 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5225
5226         * ThemeVisualStyles.cs: Added support for TextBoxBase.
5227
5228 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5229
5230         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5231         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
5232
5233 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5234
5235         * DataGridView.cs: Only paint the top left header cell if there
5236         are columns.
5237
5238 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5239
5240         * DataGridView.cs: When binding to a BindingSource, get the underlying
5241         list to bind to.  [Fixes bug #345483]
5242
5243 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
5244
5245         * DataGridView.cs: Do not bind to collection properties.
5246         [Fixes bug #337470]
5247
5248 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5249
5250         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
5251
5252 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5253
5254         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
5255         thumb style.
5256
5257 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5258
5259         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
5260
5261 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5262
5263         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
5264         background.
5265
5266 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5267
5268         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
5269
5270 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5271
5272         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
5273         checked styles.
5274
5275 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5276
5277         * TabControl.cs: Extended to handle the hot style.
5278
5279 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
5280
5281         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
5282         Extended UpDownBase code to handle hot and disabled styles.
5283
5284 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5285
5286         * DataGridView.cs: Handle databinding to generic list type things.
5287         [Fixes bug #325239]
5288
5289 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5290
5291         * DataGridViewCellCollection.cs: Add a method to find the cell
5292         with the given DataPropertyName.
5293         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
5294         * DataGridViewColumnCollection.cs: Add a method to clear all
5295         autogenerated columns.
5296         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
5297         columns.
5298         [Fixes bug #348082]
5299
5300 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5301
5302         * DataGridView.cs: Don't try to update the RowTemplate with
5303         a null CellTemplate.
5304
5305 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5306
5307         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
5308         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
5309         * DataGridView.cs: Lots of fixes/enhancements to databinding to
5310         a DataSet.
5311
5312 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
5313
5314         * Control.cs: Remove invalidating implicit child controls when
5315         control is invalidated.  It was causing too many redraws on
5316         controls with implicit scrollbars.
5317         * ListView.cs: Listen to the Invalidated event and invalidate
5318         child controls.
5319
5320 2008-05-20  Andreia Gaita <avidigal@novell.com> 
5321
5322         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
5323         * HtmlDocument.cs: Check for nulls
5324
5325 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5326
5327         * Control.cs: In ControlCollection.RemoveInternal, remove the
5328         internal control before calling PerformLayout and OnControlRemoved,
5329         which was leaving us in an invalid state and causing a X error (bad
5330         match). Observe that Remove () call has the same order.
5331         Fixes an X error changing ComboBoxStyle.DropDownStyle.
5332
5333 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5334
5335         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
5336         being fired if ControlStyles.UserPaint style is activated.
5337         Fixes #371905.
5338
5339 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5340
5341         * GridEntry.cs: Don't be so strict when setting the value - 
5342         do not check if what we set is what we get.
5343         [Fixes bug #389245]
5344
5345 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5346
5347         * XplatUIX11.cs: If there are no timers timeout should be 0
5348         [Fixes bug #363522]
5349
5350 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5351
5352         * Control.cs: As a followup to invalidating implicit children when
5353         a control is invalidated, only invalidate them if they are in the
5354         clip rectangle.
5355
5356 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5357
5358         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
5359
5360 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5361
5362         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
5363
5364 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5365
5366         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
5367         * XplatUIWin32.cs: Made Win32DeleteObject public.
5368
5369 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
5370
5371         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
5372         PropertyDescriptor.ShouldSerializeValue.
5373         [Fixes bug #391924]
5374
5375 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5376
5377         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
5378         in the classic theme.
5379
5380 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5381
5382         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
5383         ThumbPressed.
5384         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
5385         ScrollBarHasPressedThumbStyle.
5386
5387 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5388
5389         * TextRenderer.cs: Included some methods in the 1.1 profile.
5390
5391 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
5392
5393         * Control.cs: When we make a control visible, it may have been
5394         previously visible and while it wasn't visible, the z-order of
5395         things may have been shuffled, so the control needs to have its
5396         z-order updated just in case.  [Fixes bug #391518]
5397
5398 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5399
5400         * ThemeVisualStyles.cs: Added support for GroupBox.
5401
5402 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
5403
5404         * GroupBoxRenderer.cs: Included in the 1.1 profile.
5405
5406 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
5407
5408         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
5409           bug #389996; XSelectInput() behaved as mouse handler robber,
5410           so remove extra call to it.
5411
5412 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5413
5414         * Control.cs: Simplify ControlCollection.Contains method.
5415
5416 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5417
5418         * DataGridViewRow.cs: Implement GetPreferredSize.
5419
5420 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5421
5422         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
5423
5424 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
5425
5426         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
5427         painting and edit control fixes.
5428
5429 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5430
5431         * DataGridView.cs, DataGridViewCell.cs: Work around some external
5432         checks to make sure we are in an actual row/col for top left header cell.
5433         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
5434
5435 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5436
5437         * Control.cs: Use long instead of int when handling WParam from
5438         mousewheel scrolling.  Int was overflowing on Win64.
5439
5440 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5441
5442         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
5443         flow panel without scrolling first, and then calculate the 
5444         scrolling based on the new layout.  [Fixes bug #390149]
5445
5446 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
5447
5448         * ListBox.cs: Invalidate after scrolling up when selected index
5449         changes.  [Fixes bug #390151]
5450
5451 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5452
5453         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
5454         set, default height to 150. I tried first with DefaultSize, but this
5455         is not generating a SetBoundsCore call before handle creation time, so
5456         we can take it into account. This is just what .net does.
5457
5458 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5459
5460         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
5461         as it broke some stuff.  Calberto is filing a bug for eno to
5462         work with.
5463
5464 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5465
5466         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
5467         to 0 is the current value is -1, and if style is not Simple, just
5468         return, like .net does.
5469         Fixes part of #374713.
5470
5471 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
5472
5473         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
5474         progress bar stuffs, use doubles instead of ints to prevent
5475         overflow.  [Fixes bug #389798]
5476
5477 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5478
5479         * XplatUIX11.cs, X11Keyboard.cs :
5480           Significant refactoring on XIM support. Now IM engine UI
5481           should show up, at mostly-correct preedit position.
5482           - Eliminated use of FocusWindow, as it is never mapped
5483             and hence blocks correct preedit position. XIC is now
5484             created per window, and it must be destroyed too when
5485             the window is destroyed.
5486           - WM_QUIT messages should not be filtered even when hwnd
5487             is zombie. Filtering it could cause endless loop.
5488           - Preedit position must move only when the window is alive.
5489           - Make it IDisposable and make sure to release XIM/XICs.
5490
5491 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
5492
5493         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
5494           XplatUIX11.cs, XplatUIWin32.cs :
5495           fix for bug #325033 and #387693;
5496           - WM_QUIT should not be sent when no running application
5497             exists.
5498           - SetTimer/KillTimer (especially on win32) should be
5499             invoked for the window that the timer is/will_be attached.
5500           - There could be unattached timers to a window when it's
5501             started. For those timers, hold pending timers and when
5502             a window is mapped, attach them to it.
5503           - WaitForHwndMessage() could run into loop when
5504             WM_SHOWWINDOW is handled before this method is called.
5505             So, strictly check wm_showwindow state.
5506           - Tick handler should not be invoked while one Tick handler
5507             call is still running (introduced Busy state).
5508
5509 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5510
5511         * WebBrowserBase.cs: Override Internal alternative methods for
5512           SetBoundsCore and OnResize instead of the protected ones.
5513         * Control.cs: Move SetBoundsCore and OnResize implementations to
5514           SetBoundsCoreInternal and OnResizeInternal, so they can be
5515           overriden internally (WebBrowserBase needs to catch them but can't
5516           override the protected methods without api compat problems)
5517
5518 2008-05-13  Andreia Gaita <avidigal@novell.com> 
5519
5520         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
5521
5522 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5523
5524         * Binding.cs:
5525         * ListView.cs: Remove debug messages.
5526
5527 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5528
5529         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
5530         area is empty. Also calculate scrollbars in Simple mode based in area
5531         height and total number of items, not in MaxDropDownItems.
5532         Fixes part of #371991.
5533
5534 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5535
5536         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
5537
5538 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5539
5540         * BindingSource.cs: GetListSortDescription is not public.
5541
5542 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5543
5544         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
5545
5546 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5547
5548         * HtmlElement.cs: Fix parameter names to match MS.
5549         * HtmlWindowCollection.cs: Should not be sealed.
5550
5551 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5552
5553         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
5554         button, because the thumb button will not get drawn if the scrollbar
5555         is disabled.  [Fixes bug #389262]
5556
5557 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5558
5559         * ListBox.cs: Handle End key for multi-column listboxen.
5560         [Fixes bug #389266]
5561
5562 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5563
5564         * ListBox.cs: Fix algorithm to determine which column our item is in.
5565         [Fixes bug #389265]
5566
5567 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5568
5569         * ListBox.cs: Invalidate when the listbox is resized.
5570         [Fixes bug #389256]
5571
5572 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5573
5574         * ListBox.cs: There is always at least one row in the ListBox (if
5575         we are doing these calculations.)  [Fixes bug #389253]
5576
5577 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
5578
5579         * ListBox.cs: There is always at least one column in the ListBox.
5580         [Fixes bug #389250]
5581
5582 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5583
5584         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
5585         ensure in Simple mode that the height is exactly the requested one.
5586         Also add the ComboBoxListControl to the controls collection in Simple
5587         mode even if handle hasn't been created.
5588         Fixes part of #371991.
5589
5590 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5591
5592         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
5593         our ComboBox owner instead of giving it back to the previous control (
5594         as done in other controls). Also remove the empty override of Select
5595         method, since we want to be selected *and* give focus to our owner.
5596         This should let the user do keys-navigation in Simple mode. 
5597
5598 2008-05-10  Geoff Norton  <gnorton@novell.com>
5599
5600         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
5601         problems with rapid scrolling of treeviews. Fixes #381084
5602
5603 2008-05-10  Geoff Norton  <gnorton@novell.com>
5604
5605         * XplatUICarbon.cs: Deactivate the active window before
5606         activating the desired window.  Completes fixing #386504
5607
5608 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5609
5610         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
5611         SmallChange to the item size width plus the padding, to match .net.
5612
5613 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5614
5615         * FileDialog.cs: Apply the custom filter typed by the user in the file
5616         name combobox as much as possible while navigating in the file dialog.
5617         Fixes #385261.
5618
5619 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5620
5621         * Binding.cs: Actually use NullValue if the retrieved value of
5622         data source is null or DBNull. Makes a test pass.
5623
5624 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
5625
5626         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
5627         * MimeIcon.cs: Provide a way to get icons from resources.
5628
5629 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5630
5631         * Binding.cs: When the value retrieved from the control to be assigned
5632         to the data source is null, actually use the 2.0 DataSourceNullValue
5633         value. Make pass a data binding test.
5634
5635 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5636
5637         * Control.cs: We need to invalidate implicit children even when
5638         invalidate is called with invalidatechildren = false.  (Implicit
5639         children are really part of the parent.)
5640         * ListView.cs: Double-buffer internal child controls for less
5641         flicker.
5642         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
5643         owner ListView subitems for greatly increased performance.
5644         [Fixes bug #388477]
5645
5646 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
5647
5648         * FileDialog.cs: When the user types a wildcard character in the
5649         filename combobox, update the contents of the folder using the text as
5650         a filter.
5651         Fixes part of #385261.
5652
5653 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5654
5655         * ListBox.cs: Various fixes for MultiColumn listboxen.
5656         [Fixes bug #388114]
5657
5658 2008-05-08  Andreia Gaita <avidigal@novell.com> 
5659
5660         * HtmlElement.cs: Implement Style property
5661
5662 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
5663
5664         * ListBox.cs: Respect checkboxes when measuring item size.
5665         * ThemeWin32Classis.cs: When drawing list items, don't draw
5666         text outside of the item's bounds to prevent overlapping.
5667         (.Net actually overlaps, but that's just silly.)
5668         [Fixes bug #388117]
5669
5670 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
5671
5672         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
5673         Gert Driesen. Fixes bug #324830. 
5674
5675 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
5676
5677         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
5678         method implemented.
5679
5680 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5681
5682         * BindingSource.cs: When calling IsSynchronized, return the value of
5683         the related IList list.
5684
5685 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5686
5687         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
5688         make a test pass.
5689
5690 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5691
5692         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
5693         navigation to scroll the grid if the current cell is not visible.
5694
5695 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5696
5697         * HtmlElement.cs: Implement TabIndex
5698
5699 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
5700
5701         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
5702         properties, even when there are no items.
5703         [Fixes bug #387611]
5704
5705 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
5706
5707         * NativeWindow.cs: Add support for multiple handles per window.
5708         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
5709         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
5710         directly - use FromHandle instead.
5711         [Fixes bug #374660]
5712
5713 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5714
5715         * HtmlElement.cs: Implement InnerHTML setter
5716
5717 2008-05-07  Andreia Gaita <avidigal@novell.com> 
5718
5719         * HtmlDocument.cs: Implement Focused
5720
5721 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
5724         methods, as well as add messages to the exceptions.
5725
5726 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5727
5728         * BindingSource.cs: Setting DataSource should only reset DataMember if
5729         the previous value was null (make pass a not working test).
5730
5731 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5732
5733         * BindingSource.cs: When EndInit call is postponed and is called until
5734         DataSource.EndInit is called, remove the handler for data source.
5735
5736 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5737
5738         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
5739
5740 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5741
5742         * ToolStripManager.cs: Store references to toolstrips as
5743         weak references so they do not prevent forms from getting collected.
5744         [Fixes bug #386483]
5745
5746 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5747
5748         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
5749         on .Net.  So do the same thing in WndProc.
5750
5751 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5752
5753         * TrackBar.cs: Commit patch from Andy Hume that corrects
5754         the clickable areas to better match .Net.
5755         [Fixes bug #387074]
5756
5757 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * TrackBar.cs: Commit patch from Andy Hume that adds the
5760         ResizeRedraw control flag so the track bar repaints itself
5761         when it is resized.  [Fixes bug #387072]
5762
5763 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
5764
5765         * TrackBar.cs: Commit patch from Andy Hume that adds better
5766         support for keyboard navigation when the TrackBar is vertical.
5767         [Fixes bug #387071]
5768
5769 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5770
5771         * BindingSource.cs: Implement ISupportInitializeNotification support.
5772
5773 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5774
5775         * ThemeVisualStyles.cs: Added support for ToolBar.
5776
5777 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
5778
5779         * ToolBar.cs: Made the Vertical property internal.
5780
5781 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5782
5783         * ThemeVisualStyles.cs: Added support for TrackBar.
5784
5785 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5786
5787         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
5788         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
5789         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
5790         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
5791         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
5792         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
5793
5794 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5795
5796         * ThemeVisualStyles.cs: Added support for UpDownBase.
5797
5798 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
5799
5800         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
5801         Extracted Theme.UpDownBaseDrawButton.
5802
5803 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5804
5805         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
5806         removed from the static toolstrips collection in ToolStripManager
5807         when they are disposed.  Provides a workaround for bug #386483.
5808
5809 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
5810
5811         * GridEntry.cs: Read-only properties with Editor with 
5812         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
5813         [Fixes bug #384184]
5814
5815 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
5816
5817         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
5818         the menu key and there are no items on the menu.
5819         [Fixes bug #386644]
5820
5821 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
5822
5823         * Control.cs: Avoid calling ToString on a string.
5824         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
5825         * GroupBox.cs: In FlatStyle property throw, not just create, the 
5826         exception. Avoid calling ToString on a string.
5827         * ProgressBar.cs: Avoid calling ToString on a string. 
5828         * ScrollBar.cs: Avoid calling ToString on a string. 
5829         [All issues were found using Gendarme]
5830
5831 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5832
5833         * NotifyIcon.cs: Prevent click events to be trigger after double click 
5834         events. Fixes remaining issues of bug #324832.
5835
5836 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
5837
5838         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
5839         to mimic win32 behavior. Partially fixes bug #324832.
5840
5841 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5842
5843         * BindingSource.cs: Implement Find methods.
5844
5845 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5846
5847         * BindingSource.cs: Implement Sort, ApplySort overloads, and
5848         RemoveSort methods.
5849
5850 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5851
5852         * ListBindingHelper.cs: When calling GetListItemProperties and the
5853         passed object is ITypedList, return the result of
5854         ITypedList.GetItemProperties instead.
5855
5856 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5857
5858         * LinkLabel.cs: Set default value of name on constructor of Link class
5859         only for 2.0 profile.
5860
5861 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5862
5863         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
5864         Fixes remaining issues of bug #346154.
5865
5866 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5867
5868         * LinkLabel.cs: Set a default value for name on internal contructor of
5869         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
5870
5871 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
5872
5873         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
5874         and refer all instances to owner.links. Partially fixes #346154.
5875
5876 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5877
5878         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
5879         length equal zero. Also called CreateLinkPieces in constructor. It fixes
5880         the LinkLabel test 'TestLinkArea'.
5881
5882 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5883
5884         * Form.cs: Remove menu before close form to prevent form to be not gaced.
5885         [Fixes #386460]
5886
5887 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5888
5889         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
5890         [Fixes #386463]
5891
5892 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5893
5894         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
5895         [Fixed bug #357004]
5896
5897 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5898
5899         * MenuAPI.cs: Remove unused ProcessCmdKey method.
5900
5901 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5902
5903         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
5904         [Fixes bug #375398]
5905
5906 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5907
5908         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
5909         of bug #367492.
5910
5911 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
5912
5913         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
5914         sometimes we open a conext menu on mouse down of some controls and the mouse
5915         up is dispatched to menu and dont need to. It fix remaining issues of 
5916         #363711 and other problems related to menu mouse click events.
5917
5918 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5919
5920         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
5921         some var names to better fit changes, now we have month_menu and today_menu
5922         vars. Fixes bug #363711.
5923
5924 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5925
5926         * MonthCalendar.cs: Handle every right mouse click to open context menu,
5927         right now the default month menu but it will be change to have "Go to today"
5928         menu.
5929
5930 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5931
5932         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
5933
5934 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
5935
5936         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
5937
5938 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5939
5940         * ThemeVisualStyles.cs: Added support for TreeView.
5941
5942 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5943
5944         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
5945         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
5946
5947 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5948
5949         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
5950
5951 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5952
5953         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
5954         Implement 2.0 SP1 stuffs.
5955
5956 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5957
5958         * FileDialog.cs: Implement 2.0 SP1 stuffs.
5959
5960 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5961
5962         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
5963         Implement CanEnableIme property. (2.0 SP1)
5964
5965 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5966
5967         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
5968         from the 2.0 API.
5969
5970 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5971
5972         * Control.cs: Provide an internal way for a control to override
5973         the setting of Height.
5974         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
5975         set height using new method.
5976
5977 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5978
5979         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
5980
5981 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5982
5983         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
5984         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
5985
5986 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5987
5988         * ThemeVisualStyles.cs: Added support for StatusBar.
5989
5990 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
5991
5992         * DataObject.cs: Add the other IDataObject interface.
5993
5994 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
5995
5996         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
5997         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
5998
5999 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6000
6001         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
6002         * ListView.cs: Hide non-public API.
6003         * MaskedTextBox.cs: Remove extra attribute.
6004
6005 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
6006
6007         * DataGridViewImageCell.cs: Use formatted value instead of value
6008         to calculate preferred size.
6009
6010 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6011
6012         * ListBox.cs: Move some initialization around so that selected_indices
6013         is not accessed before it is created.
6014
6015 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6016
6017         * InputLanguageCollection.cs: Implement the collection better.
6018         [Fixes bug #385506]
6019
6020 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6021
6022         * ToolStripDropDownItem.cs: Get the correct event object for
6023         DropDownItemClicked.
6024         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
6025         [Fixes bug #385475]
6026
6027 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
6028
6029         * DataGridViewRowCollection.cs: We don't currently support shared 
6030         rows.  Should fix test failures caused by previous commit.
6031
6032 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6033
6034         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
6035         datagridview gets set.  Only paint cells in visible columns.
6036         * DataGridViewCell.cs: Draw border after cell content.
6037         * DataGridView.cs: Invalidate after setting some properties.  Only
6038         use visible columns.  Fit hit test bug with areas in the col/row header
6039         area but not in a row or col.  Implement UpdateCell/Row methods.
6040
6041 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6042
6043         * DataGridViewElement.cs: Don't throw NIEX.
6044         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
6045         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
6046         * DataGridViewCheckBoxColumn.cs: Implement ToString.
6047         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
6048         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
6049         if the user filled in the formatting Value, use it.
6050
6051 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
6052
6053         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
6054         to a string.
6055
6056 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6057
6058         * BindingSource.cs: Some corrections to Filter property, as well as
6059         setting it for our list when resetting it.
6060
6061 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
6064         than the maximum.  Fixes reopened bug #384182.
6065
6066 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6067
6068         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
6069         Fixes remaining issues of #367490.
6070
6071 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6072
6073         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
6074         SystemInformation.WorkingArea to get max_screen value.
6075
6076 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6077
6078         * BindingSource.cs: Implement Filter and RemoveFilter.
6079
6080 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6081
6082         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
6083
6084 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6085
6086         * X11Dnd.cs: When trying to convert data and we know we started the
6087         dnd loop, don't try to use the cached data if the loop is not running,
6088         which means that the data has been resetted.
6089         Fixes #378191.
6090
6091 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6092
6093         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
6094         win32 behavior.
6095
6096 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6097
6098         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
6099         it to drawn off screen edge. Fixes bug #367490.
6100
6101 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6102
6103         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
6104         menu position to have only one assignment of Location var.
6105
6106 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
6107
6108         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
6109         for this patch. Fixes bug #384115.
6110
6111 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
6114         the same.  If LargeChange is zero, set a minimum size for the scroll
6115         thumb grip.  [Fixes bug #384182]
6116
6117 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6118
6119         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
6120         [Fixes bug #384181]
6121
6122 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
6123
6124         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
6125
6126 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6127
6128         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
6129         patch from Ernesto).
6130
6131 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6132
6133         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
6134
6135 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6136
6137         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
6138
6139 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6140
6141         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
6142
6143 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
6144
6145         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
6146
6147 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
6148
6149         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
6150
6151 2008-04-27  Andreia Gaita <avidigal@novell.com> 
6152
6153         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
6154           supposed to return a reference to an mshtml interface, which we
6155           don't support).
6156         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
6157           reference to an mshtml interface, which we don't support). Code
6158           formatting cleanup.
6159         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
6160           DomDocument getter (it's supposed to return a reference to an
6161           mshtml interface, which we don't support). Code formatting cleanup.
6162
6163 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6164
6165         * ListView.cs: Ouch, forgot to commit.
6166
6167 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6168
6169         * ListView.cs: 
6170         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
6171
6172 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6173
6174         * ListView.cs: When calculating box selection for virtual mode, don't
6175         look for intersection with item's text, but item bounds, since that
6176         would mean read ListViewItem's text for _every_ item, and that's
6177         something we just can't do in virtual mode (items are only requested
6178         when drawn).
6179
6180 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
6181
6182         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
6183         partial support for managed windows (based on the patch from Ernesto).
6184
6185 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6186
6187         * ListView.cs: When doing a key search use FindItemWithText method
6188         instead of doing the search by ourselves, this way we avoid
6189         duplicating the code and also we handle the special case for virtual
6190         mode. To achieve that make our private overload of FindItemWithText
6191         internal and also have a 'roundtrip' parameter.
6192
6193 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6194
6195         * ListView.cs: When doing the layout don't request the
6196         ListViewItem instance if we are in virtual mode (since we can't request it
6197         until the item is actully drawn).
6198
6199 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6200
6201         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
6202         from Ernesto).
6203
6204 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6205
6206         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
6207         the patch from Ernesto).
6208
6209 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6210
6211         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
6212         * ThemeVisualStyles.cs: Added.
6213
6214 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6215
6216         * IDeviceContext.cs: Added a missing using.
6217
6218 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6219
6220         * ButtonBase.cs: Made IsDefault protected internal.
6221         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
6222
6223 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6224
6225         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
6226         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
6227         RadioButtonRenderer.cs: Included in the 1.1 profile.
6228         * IDeviceContext.cs: Added.
6229         * TextRenderer.cs: Included a member in the 1.1 profile.
6230
6231 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
6232
6233         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
6234
6235 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6236
6237         * ErrorProvider.cs: Make the error icons come after the control
6238         they refer to.  It isn't the way the MS does it, but its better
6239         than what we were doing.  See bug #368587.
6240
6241 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6242
6243         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
6244         from Eric Albright that lazy loads the input language as ensures
6245         everything gets properly initialized.  Fixes bug #373871.
6246
6247 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
6248
6249         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
6250         implicit mnemonics.  [Fixes bug #383000]
6251
6252 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6253
6254         * X11Dnd.cs: When canceling the operation, automatically restore the
6255         default cursor - normally the default cursor is restored when the
6256         mouse buttons are released, but we should be able to restore it even
6257         if the buttons are still pressed (for example, when pressing ESC to
6258         cancel).
6259         Fixes #381894.
6260
6261 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6262
6263         * X11Dnd.cs: When starting a new drad and drop operation, set control
6264         field to null, just as the other fields, to avoid calling any
6265         operation on a previous control. Also, when calling DndLeave on a
6266         control, set it to null, thus we don't fire that event multiple times
6267         for that control.
6268         Fixes #209264.
6269
6270 2008-04-23  Geoff Norton  <gnorton@novell.com>
6271
6272         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
6273         the whole_window object.  Fixes #377084.
6274
6275 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6276
6277         * HtmlElement.cs: Implement RaiseEvent (event injection into the
6278           embedded browser)
6279
6280 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
6281
6282         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
6283
6284 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6285
6286         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
6287           invocation
6288
6289 2008-04-23  Andreia Gaita <avidigal@novell.com> 
6290
6291         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
6292           attaching/detaching
6293
6294 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6295
6296         * X11Dnd.cs: When the drop was cancelled, or could just not be
6297         performed, return DragDropEffect.None always (match .net).
6298
6299 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6300
6301         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
6302
6303 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6304
6305         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
6306
6307 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
6308
6309         * DataGridView.cs: Add support for error icon tool tips.
6310         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
6311         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
6312
6313 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
6314
6315         * X11Structs.cs: Add mouse button masks enum.
6316         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
6317         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
6318         form resize/move operation instead of for each step of it.
6319         [Fixes bug #346529 for the x11 backend]
6320
6321 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6322
6323         * DataGridView*: Implement support for drawing error icons.
6324
6325 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6326
6327         * TreeView.cs: Make vbar and hbar internal.
6328         * TreeNode.cs: If collapsing the node removes one of the TreeView's
6329         scrollbars, invalidate the whole thing.
6330         [Fixes bug #382001]
6331
6332 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6333
6334         * TreeView.cs: Calling Sort() sets Sorted = true.
6335         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
6336         if the nodes need to be sorted.
6337         [Fixes bug #382028]
6338
6339 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
6340
6341         * Form.cs: Fire SizeChanged for both when the form is minimized and 
6342         restored.
6343         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
6344         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
6345
6346 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
6347
6348         * ComboBox.cs: If the combobox is disabled, draw a disabled
6349         background before painting anything else.
6350         [Fixes bug #381729]
6351
6352 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6353
6354         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
6355         forget to send a Leave event to the target window - just as .net does
6356         when cancelling dnd operations.
6357
6358 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6359
6360         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
6361         soon as possible - this happens when we send the drop message to the
6362         target window. This way we avoid firing any DragOver _after_ drop finished.
6363         Fixes #378179.
6364
6365 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6366
6367         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
6368         * Form.cs: Handle form minimization as a special state, where size doesn't 
6369         change, but we have to fire SizeChanged.
6370         [Fixes bug #325122 for the win32 and x11 backends]
6371
6372 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6373
6374         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
6375         if the handle is disabled.
6376         [Fixes bug #371751]
6377
6378 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6379
6380         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
6381         for forms with FormBorderStyle.None.
6382         [Fixes bug #349571]
6383
6384 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
6385
6386         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
6387         WM_EXITSIZEMOVE.
6388         [Fixes bug #346529 for the X11 backend]
6389
6390 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6391
6392         * XplatUIX11.cs: 
6393           - Send a mouse Enter message after say dragging the mouse with a 
6394           button down and then release it in another client.
6395           - Reset the cursor to prevent X11 from remembering it and setting it 
6396           before the control gets WM_SETCURSOR.
6397           - Qeueue a mouse move after a mouse enter like win32.
6398           [Fixes bug #323234]
6399
6400 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6401
6402         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
6403         It's sent when the form gets moved, resized, closed.
6404         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
6405         [Fixes bug #359193 for X11]
6406
6407 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6408
6409         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
6410         the build.
6411
6412 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
6413
6414         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
6415         group. Fixes the 1.1 build.
6416
6417 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6418
6419         * ListView.cs: Use display indexes for selection in Details view, as
6420         well as do the proper layout based on display indexes for that view
6421         too.
6422
6423 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6424
6425         * ListView.cs: Focused item information is now stored as a display
6426         index, and display indexes are used all over the place for selection,
6427         instead of ListViewItem.Index values, which doesn't give us enough
6428         information to modify the selection in groups mode, and was broken.
6429
6430 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
6431
6432         * Control.cs: Do not fire MouseDown if validation of the control has 
6433         failed.
6434         * Form.cs: Validate the form before closing.
6435         [Fixes bugs #330501 and #353310]
6436
6437 2008-04-18  Andreia Gaita <avidigal@novell.com> 
6438
6439         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
6440           CreateWebBrowserSiteBase implementations
6441         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
6442           Style and TabIndex setters
6443
6444 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6445
6446         * ListViewGroup.cs: When returning the actual item count, return the
6447         proper count for default group.
6448         Fix the tests.
6449
6450 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6451
6452         * ListView.cs:
6453         * ListViewGroup.cs: When calculating groups layout, get the actual
6454         number of items per group, since groups added to the group BUT not
6455         added to the ListView are just ignored, and can cause some nasty
6456         exceptions because of the lack of synchronization. Also for
6457         ListViewGroup don't use lazy initialization for items, since we 
6458         the common scenario is to use it always - and it helps us to  refactor
6459         and clean the .ctor overloads.
6460
6461 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6462
6463         * ListView.cs: When adding an item to a ListViewItemCollection
6464         belonging to a group (ListViewGroup.Items), don't generate a redraw if
6465         the added item hasn't beeen previously added to the ListView instance
6466         refered by the group, since it will be ignored. This should avoid some 
6467         really nasty flickering.
6468
6469 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6470
6471         * ListView.cs: When accessing an item in a specific display
6472         position, use the helper method GetItemAtDisplayIndex, instead of
6473         direct access to the reordered_items_indices array. When doing layout
6474         for groups set the correct Items index for the display position (since
6475         in groups mode items don't have the same position as in Items
6476         collection).
6477         * ListViewGroup.cs: Add a field to store the starting item number,
6478         which is later used when calculating the layout.
6479
6480         Fixes #360805.
6481
6482 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
6483
6484         * Application.cs: Fixed ProductVersion to fallback to the assembly
6485         version. Fixes regression for bug #325413.
6486
6487 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6488
6489         * ListView.cs: New helper method to retrieve an item in a _specific
6490         display_ position (the items can be displayed in a different order
6491         than one of Items collection).
6492         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
6493         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
6494         specific display position (again remember that items can be sorted
6495         different than Items).
6496
6497 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6498
6499         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
6500         list and update it when the collection changes.  We were recreating
6501         this several times per row paint and for every pixel the mouse moved
6502         across the grid.
6503         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
6504         changes.
6505
6506 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6507
6508         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
6509         list to use generics.
6510         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
6511         and remove unneccessay casts.
6512
6513 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
6514
6515         * DataGridViewBand.cs: Add internal way to set displayed variable.
6516         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
6517         * DataGridView.cs: Make sure we always keep track of Displayed
6518         rows and columns, and only draw things that are displayed.
6519
6520 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
6521
6522         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
6523           whether the key events are filtered or not. Introduced
6524           PreFilter() process for this purpose. This fixes atokx3/iiimx
6525           shift state issue.
6526
6527 2008-04-16  Andreia Gaita <avidigal@novell.com> 
6528
6529         * HtmlHistory.cs: Implement Length property
6530
6531 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
6532
6533         * DataGridView.cs: Call EndEdit when a sort is performed so we take
6534         away the edit textbox.  Refactor to reuse column sort code.
6535
6536 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
6537
6538         * MenuAPI.cs: Remove the code that save and restore capture status of 
6539         grab_control, this fixes some Menu and Context menu bugs but maybe it can
6540         cause some others, I cant figure the possible problems of this patch but
6541         right now remove the code looks to be better than keep it. This patch fixes
6542         bugs #357638, #378721 and #379570.
6543
6544 2008-04-12  Andreia Gaita <avidigal@novell.com> 
6545
6546         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
6547         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
6548         add missing properties and event handlers.
6549         
6550 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
6551
6552         * ListBox.cs: Make sure the LargeChange we are setting is at least
6553         zero, to prevent an IOORE.  [Fixes bug #379531]
6554
6555 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
6556
6557         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
6558         in DropDownList mode, for each key-press select the next item 
6559         starting with that letter.
6560         For other modes, when no item selected, on arrow-up/-down and open 
6561         drop-down select the first item matching the text in the textbox.
6562
6563 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
6564
6565         * X11Keyboard.cs : Control.FromHandle() could return null
6566           in MoveCurrentCaretPos().
6567
6568 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6569
6570         * ListView.cs: When changing the size in VirtualMode, also Reset the
6571         selection.
6572         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
6573         changing selection info for VirtualMode.
6574         Fixes #372618.
6575
6576 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6577
6578         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
6579         view, don't use LineLimit for the first item - use NoWrap *always*
6580         instead, since ListView.LabelWrap is not used for this view.
6581         Fixes #378054.
6582
6583 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6584
6585         * Binding.cs: Call UpdateIsBinding when setting control - probably
6586         Binding is already usable and we don't need to wait to check the
6587         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
6588         Created, just like 2.0 does.
6589         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
6590
6591 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6592
6593         * Binding.cs: Just realized we don't need to have a handler for
6594         BindingContextChanged, since this info should be now consumed directly
6595         in the BindingManagerBase. And also, the manager.IsBindingSuspended
6596         state info is checked directly, instead of caching it.
6597
6598         * CurrencyManager.cs: IsSuspended should return always false if Count
6599         == 0.
6600
6601 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6602
6603         * Binding.cs: When calling PushData, return if manager.Count == 0,
6604         since we just don't have data to be read. Also, when setting the
6605         Control for binding, hook up some events to refresh the IsBinding
6606         state when BindingContext change or control gets created; use
6607         Control.IsHandleCreated instead of Control.Created check to set
6608         IsBinding state - we *actually* need to modify IsBinding when control
6609         is created, but we don't have any Created event, only HandleCreated.
6610         Fixes part of #349364.
6611
6612 2008-04-11  Geoff Norton  <gnorton@novell.com>
6613
6614         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
6615         warping a null Caret.
6616
6617 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6618
6619         * DataGridView.cs: Implement row/column autosizing methods. Implement
6620         autosorting.
6621         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
6622         * DataGridViewRowCollection.cs: Add an internal sorting method.
6623
6624 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6625
6626         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
6627         value in ListView drawing code.
6628
6629 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
6630
6631         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
6632         is clicked.  Respect the user setting Cancel in FileOk.
6633
6634 2008-04-11  Geoff Norton  <gnorton@novell.com>
6635
6636         * ListView.cs: Avoid setting and resetting control Width/Heights and
6637         calculate the final value and set it once.  Prevents a feedback loop
6638         on the mac.
6639
6640 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6641
6642         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
6643         [Fixes bug #378869]
6644
6645 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
6646
6647         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
6648           Add some on-the-spot code, but it seems we don't need it.
6649
6650 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6651
6652         * Form.cs: Add method for DataGridView to trigger focus cues
6653         even when it handles the tab keypress.
6654
6655 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * DataGridView.cs: More keyboard handling, tab, esc.
6658         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
6659         when at the beginning or end of the text in the text box.
6660
6661 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6662
6663         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
6664
6665 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6666
6667         * DataGridView.cs: Some fixups for showing and adding the edit control.
6668         * DataGridViewButtonColumn.cs: Implement ToString.
6669         * DataGridViewCell.cs: Size and position the control simultaneously.
6670         * DataGridViewTextBoxCell.cs: Use base to position control.
6671
6672 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6673
6674         * DataGridViewCell.cs: Fix up some formatting and painting code.
6675         * DataGridViewImageCell.cs: Implement some NIEX methods.
6676
6677 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6678
6679         * ToolStripItemCollection.cs: What moving an item from one owner
6680         to another, remove from source owner before adding to destination.
6681         [Fixes bug #378109]
6682
6683 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
6684
6685         * PictureBox.cs: Call Load when ImageLocation is set.
6686         [Fixes bug #378308]
6687
6688 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
6689
6690         * X11Keyboard.cs, XplatUIX11.cs :
6691           Implement over-the-spot mode (with some odd offsets).
6692           - set preedit position when caret is set.
6693           - Wrap XMoveResizeWindow() to move preedit position.
6694
6695 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6696
6697         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
6698         array lenght.
6699
6700 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6701
6702         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
6703         and ScanTableIndex public, it fix compilations errors when compiling
6704         WinForms to generate keyboard layout resources.
6705
6706 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
6707
6708         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
6709         different element count than scan table. It prevents some errors in non
6710         standard keyboards.
6711
6712 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6713
6714         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
6715
6716 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
6717
6718         * DataGridView.cs: Call OnContentClick.
6719         * DataGridViewCell.cs: Do a null check on ValueType instead
6720         of valueType.
6721         * DataGridViewCheckBoxCell.cs: Implement.
6722
6723 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6724
6725         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
6726
6727 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6728
6729         * X11Keyboard.cs : Check XGetIMValues() return value in
6730           case it does not return input styles in some environment.
6731
6732 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
6733
6734         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
6735
6736 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6737
6738         * BindingContext.cs: Stub UpdateBinding method.
6739
6740 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
6741
6742         * X11Structs.cs : added couple of structs for XIM support.
6743         * X11Keyboard.cs :
6744           Release XIM in case it failed to create XIC. 
6745           Use consts for XNblah string.
6746           Add support for IM style customization and XIC creation
6747           for preedit-position and preedit-callback.
6748           Right now use MONO_WINFORMS_XIM_STYLE environment variable
6749           (list of: over-the-spot | on-the-spot | root). Only root
6750           mode works so far.
6751
6752           (redoing r99172 with fix.)
6753
6754 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6755
6756         * TreeView.cs: Center the checkbox a little better.
6757
6758 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6759
6760         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
6761         Apply very nice patch from Ernesto Carrea that simplifies our
6762         scrollbar drawing.  [From bug #376146]
6763
6764 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
6765
6766         * TreeView.cs: Correct the location of the root node checkbox when
6767         ShowRootLines = false.  Don't draw the root lines for the root node
6768         when ShowRootLines = false.  [Fixes bug #377535]
6769
6770 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6771
6772         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
6773         Fixed line endings.
6774         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
6775         line endings.
6776         * MaskedTextBox.cs: Added missing attribute. Code formatting.
6777         * PageSetupDialog.cs: Added missing attribute. Code formatting.
6778         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
6779         * ImeMode.cs: Added missing field.
6780         * HtmlWindow.cs: Code formatting. Fixed line endings.
6781         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
6782         warnings.
6783         * HtmlHistory.cs: Code formatting. Fixed line endings.
6784         * HtmlDocument.cs: Code formatting. Fixed line endings.
6785         * ToolStripPanel.cs: Added missing IList implementation.
6786         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
6787
6788 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
6789
6790         * BindingContext.cs: Changed argument names to fix corcompare errors.
6791         * DataGridView.cs: Removed extra explicit interface implementation
6792         of IDropTarget. Code formatting.
6793         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
6794         * ComboBox.cs: Changed argument names to fix corcompare errors.
6795         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
6796         errors.
6797         * GridColumnStylesCollection.cs: Changed argument names to fix
6798         corcompare errors. Removed extra tabs.
6799         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
6800         errors.
6801         * Control.cs: Changed argument names to fix corcompare errors. Code
6802         formatting. Removed extra explicit IList implementation.
6803         * TextBox.cs: Changed argument names to fix corcompare errors. Code
6804         formatting. Use string.Empty instead of "".
6805         * GridItemCollection.cs: Changed argument names to fix corcompare
6806         errors. Code formatting.
6807         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
6808         corcompare errors. Code formatting.
6809         * ImageList.cs: Changed argument names to fix corcompare errors.
6810         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
6811         * DataGridViewRowCollection.cs: Changed argument names to fix
6812         corcompare errors. Code formatting.
6813         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
6814         * DataGridViewSelectedCellCollection.cs: Changed argument names to
6815         fix corcompare errors. Code formatting.
6816         * DataGridViewComboBoxCell.cs: Changed argument names to fix
6817         corcompare errors. Code formatting.
6818         * LinkLabel.cs: Changed argument names to fix corcompare errors.
6819         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
6820         formatting.
6821         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
6822         Code formatting.
6823         * BindingSource.cs: Changed argument names to fix corcompare errors.
6824         Removed extra explicit interface implementations.
6825         * DataGridViewSelectedRowCollection.cs: Changed argument names to
6826         fix corcompare errors. Code formatting.
6827         * ToolStripItemCollection.cs: Removed extra explicit interface
6828         implementation of IList.ReadOnly.
6829         * DataGridViewColumnCollection.cs: Changed argument names to fix
6830         corcompare errors. Code formatting.
6831         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
6832         * ListView.cs:  Changed argument names to fix corcompare errors.
6833         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
6834         errors.
6835         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
6836         errors.
6837         * ListBindingHelper.cs: Changed argument names to fix corcompare
6838         errors.
6839         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
6840         fix corcompare errors. Code formatting.
6841         * ToolStripPanel.cs: Removed extra explicit implementation of
6842         IDropTarget interface.
6843         * ListBox.cs: Changed argument names to fix corcompare errors. Code
6844         formatting. Removed extra tabs and spaces.
6845         * DataGridViewCellCollection.cs: Changed argument names to fix
6846         corcompare errors.
6847         * Help.cs: Changed argument names to fix corcompare errors. Code
6848         formatting.
6849         * TabControl.cs: Changed argument names to fix corcompare errors.
6850         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
6851         errors.
6852         * TableLayoutSettings.cs: Changed argument names to fix corcompare
6853         errors.
6854
6855 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6856
6857         * ListBindingHelper.cs: When returning properties, only return those
6858         that are browsable. Also, don't do a linear search of the properties,
6859         but use the indexer of the PropertyDescriptorCollection class.
6860
6861 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6862
6863         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
6864         Dictionary containing the related (child) currency managers. Also,
6865         when setting DataSource, add datasource to our List if it is not a list.
6866
6867 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6868
6869         * PropertyGridTextBox.cs: Fix background color of the buttons.
6870         * PropertyGridView.cs: Make the entry less jumpy.
6871
6872 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6873
6874         * PropertyGrid.cs: Fix unused variable warnings.
6875
6876 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
6877
6878         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
6879         double-click. It expanded it once in the mouse down and then 
6880         again in the double-click handler.
6881
6882 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6883         
6884         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
6885         TypeConverter and UITypeEditors.
6886
6887 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
6888
6889         * Control.cs: Visibility should be set synchronously, 
6890         so we must also redraw once it is and not rely on layouting or 
6891         other code to repaint.
6892         [Fixes bug #339898]
6893
6894 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
6895
6896         * DataGridViewCell.cs: Respect DataGridView.GridColor.
6897
6898 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6899
6900         * Control.cs: Invalidate when the alpha channel is less than 255,
6901         not only when control is transparent.
6902
6903 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
6906         Implement some painting convenience methods that threw NIEX.
6907
6908 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
6909
6910         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
6911         * DataGridViewLinkCell.cs: Implement.
6912
6913 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6914
6915         * GridEntry.cs: Report the conversion exception error description.
6916         [Fixes bug #375792]
6917
6918 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
6919
6920         * PropertyGridView.cs: Do not scroll to item on resize.
6921         [Fixes bug #375789]
6922
6923 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6924
6925         * BindingContext.cs: When retrieving a BindingManagerBase, if the
6926         dataSource parameter is ICurrencyManagerProvider, then return
6927         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
6928         instead of creating a new one.
6929
6930 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6931
6932         * BindingSource.cs: Implement support for Type instances as
6933         DataSource.
6934
6935 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6936
6937         * DataGridView.cs: Minor cleanups and call CellMouseUp.
6938         * DataGridViewCell.cs: Make some painting routines internally virtual.
6939         * DataGridViewButtonCell.cs: Implement.
6940
6941 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
6942
6943         * Control.cs: We always need to invalidate our children with
6944         transparent backgrounds when we are invalidated.
6945         [Fixes bug #376081]
6946
6947 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6948
6949         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
6950         and CancelCurrentEdit on CurrencyManager respectively. Implement
6951         support for ICancelAddNew too.
6952
6953 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6954
6955         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
6956         call EndNew/CancelNew if list is ICancelAddNew.
6957
6958 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6959
6960         * DataGridView.cs: Guard against an exception while painting
6961         if there are no rows.
6962
6963 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
6964
6965         * DataGridView.cs: Implement a bunch of keyboard commands.
6966
6967 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
6968
6969         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
6970         isn't set, don't call OnPaint.  [Fixes bug #375300]
6971
6972 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6973
6974         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
6975         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
6976         hookup the remaining events related to CurrencyManager, and fire
6977         OnListChanged also for the Clear () method.
6978
6979 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6980
6981         * BindingSource.cs: Use Current and Position implementations in
6982         CurrencyManager instead of using our own routines, since we need 
6983         to be in synch with it. Count should NEVER return a -1 value, and 
6984         also report ListChanged events for both simple IList data 
6985         sources (manually) as well for IBindingList ones (by hooking up an
6986         event handler for it).
6987
6988 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6989
6990         * BindingSource.cs: Make one .ctor call the another, to avoid
6991         duplicate code. Add the CurrencyManager property, and also for AddNew
6992         throw the proper exceptions and show better error messages.
6993
6994 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
6995
6996         * ComboBox.cs: Only adjust selectedindex if Handle has been
6997         created.  Fixes failing test.
6998
6999 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7000
7001         * ComboBox.cs: Adjust selectedindex if we insert a new item
7002         above the current selectedindex in a sorted ComboBox.
7003         [Fixes bug #374654]
7004
7005 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7006
7007         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
7008         [Fixes bug #374712]
7009
7010 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
7011
7012         * DataGridViewTextBoxCell.cs: Implement stuffs.
7013
7014 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7015
7016         * TreeView.cs: Create the scrollbars even earlier to be
7017         double dog certain they are created before they are accessed.
7018
7019 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7020
7021         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
7022
7023 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7024
7025         * ScrollBar.cs: Create an internal safe Value setter so we
7026         won't crash if we try to set a value outside the min and max.
7027         * TextBoxBase.cs: Use safe value setter to guard against a
7028         potential NRE that is being reported by Reflector.
7029
7030 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7031
7032         * TreeView.cs: Create the scrollbars earlier in the constructor
7033         to attempt to guard against an NRE in SetTop in Reflector.
7034
7035 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
7036
7037         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
7038         DataGridViewRowCollection.cs: Do not scroll column and row headers,
7039         show messagebox on data format error, use column display index
7040         correctly, make sure HitTest supports new layout stuff,
7041         make sure scrollbars support new layout stuff.
7042
7043 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7044
7045         * XplatUIX11.cs : Patch by Doug Rintoul.
7046           For some IM engines, keypress events need to delay call
7047           to XPending() and XNextEvent() in the loop so that it
7048           does not mess the orders in XIM commit callback.
7049           Some KeyRelease events such as shift keys need to be
7050           processed both in the IM engine and winforms driver
7051           itself since winforms holds its own state check.
7052
7053           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
7054
7055 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
7056
7057         * X11Keyboard.cs, XplatUIX11.cs :
7058           add primitive support for XIM input support (preedit-
7059           nothing and status-nothing). It requires precise event
7060           capturing (XSelectInput/"filterEvents") and different
7061           call to XFilterEvent against root window.
7062           Get composed string and send dummy WM_IME_COMPOSITION.
7063           Free XIM and XIC instances in finalizer.
7064
7065           (This first patch does not include suggested changes
7066            by Doug Rintoul. It will follow.)
7067
7068 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7069
7070         * DataGridView.cs: When binding to a property, if the property
7071         doesn't have a setter, set the column to readonly.
7072         [Fixes bug #343965]
7073
7074 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7075
7076         * ComboBox.cs: Guard against NRE if an arrow key is hit while
7077         we aren't dropped down.  Support Home/End in DropDownList mode.
7078         [Fixes bug #371990]
7079
7080 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
7081
7082         * TreeNodeCollection.cs: Don't increment count until we've
7083         saved our index to return.
7084         [Fixes bug #373603]
7085
7086 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7087
7088         * Label.cs: Add padding to the label's AutoSize calculation.
7089         [Fixes bug #373792]
7090
7091 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7092
7093         * ListBindingHelper.cs: Actually implement GetListName method.
7094
7095 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7096
7097         * BindingSource.cs: Throw the propert expceptions for some methods, as
7098         well as detect the list item type for Add method if DataSource is null.
7099
7100 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7101
7102         * DataGridViewCell.cs: I don't know why I commented this out,
7103         putting it back for now.
7104
7105 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7106
7107         * DataGridViewCell.cs: Remove storage for owning column, just
7108         use column index.
7109         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
7110         * DataGridViewColumnHeaderCell.cs: If the header text has been
7111         explicitly set, return it.
7112         [Fixes bug #325979]
7113
7114 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
7115
7116         * DataGridViewRowCollection.cs: Disable row sharing when
7117         using data binding.  Its a great feature, but lets work on
7118         getting DGV usable first before we worry about optimizations.
7119
7120 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7121
7122         * BindingSource.cs: When resetting our internal list, compute list
7123         item type information to be used for indirect list access. Also
7124         implement/tune some properties and methods related to the list access
7125         too.
7126         * ListBindingHelper.cs: Add a stub for GetListName method, used from
7127         BindingSource.
7128
7129 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7130
7131         * DataGridView.cs: If RowCount is increased while ColumnCount
7132         is zero, add a column.  [Fixes bug #331649]
7133
7134 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7135
7136         * DataGridViewRowCollection.cs: When adding new rows for
7137         databinding, make sure they are place before the add row.
7138         [Fixes bug #343961]
7139
7140 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7141
7142         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
7143         instead of Index order.
7144
7145 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7146
7147         * DataGridView.cs: If columns are added by increasing ColumnCount,
7148         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
7149         [Fixes bug #325588]
7150
7151 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7152
7153         * DataGridView.cs: Turn off and on the "new row" when 
7154         AllowUserToAddRows is toggled.  When the handle is created,
7155         set current cell and selected cell/row/col.
7156
7157 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
7158
7159         * ComboBox.cs: When navigating the drop down by keyboard, we
7160         need to scroll the list box if our selection moves out of the
7161         currently shown items.  [Fixes bug #371990]
7162
7163 2008-03-24  Luke Page <luke.a.page@gmail.com>
7164
7165         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
7166         on the control. Also now handles unicode compatibility characters and
7167         stores the unicode compatibility length on the stack. Fixes Bugs
7168         #355198 and #366436.
7169
7170 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7171
7172         * BindingSource..cs: Take into account DataMember when re-creating the
7173         List property, and also create a specific kind of list as needed.
7174
7175 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7176
7177         * ListBindingHelper.cs: Add a new case for GetList () method - when we
7178         get an empty IEnumerable, try to detect whether the datamember is
7179         valid or not for that type, if true, return null, and throw exception
7180         otherwise.
7181
7182 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
7183
7184         * ComboBox.cs: Alt-Down should drop down the list, Esc should
7185         retract it.  [Fixes bug #371989]
7186
7187 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7188
7189         * PropertyGrid.cs: Initialize the sorting button as pushed.
7190
7191 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
7192
7193         * PropertyGrid.cs: 
7194          - Visually select the PropertyTab.
7195          - Filter Properties by Attributes properly.
7196
7197 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7198
7199         * MenuItem.cs: Remove menu item from parent when disposed.
7200         [Fixes bug #372845]
7201
7202 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7203
7204         * ToolBar.cs: Don't reset layout_type if Dock = None.
7205
7206 2008-03-21  Andreia Gaita <avidigal@novell.com> 
7207
7208         * UserControl.cs: Select the first available control when we get focus.
7209           Fixes #372616
7210
7211 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7212
7213         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
7214         the content if we are in edit mode.  [Fixes bug #343964]
7215
7216 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
7217
7218         * DataGridViewCell.cs: Fix border painting for column headers.
7219
7220 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7221
7222         * BindingSource.cs: When setting or resetting data source,
7223         use ListBindingHelper.GetList () method, since it will get the list in
7224         case datasource is IListSource.
7225
7226 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7227
7228         * DataGridViewCell.cs: Implement lots more stuffs.
7229
7230 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7231
7232         * PropertyGridView.cs, GridEntry.cs: Implement support for 
7233         UITypeEditor.IsDropDownResizable.
7234
7235 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
7236
7237         * DataGridViewCell.cs: Remove unused variables, improve how
7238         several of the property getters work.
7239         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
7240         get its size from the parent row/col.
7241
7242 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7243
7244         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
7245         user alters manually the PropertyTabs collection via the 
7246         PropertyTabs property.
7247
7248 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7249
7250         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
7251         new tests for them to be sure to be compatible with .net.
7252
7253 2008-03-20  Andreia Gaita <avidigal@novell.com> 
7254
7255         * WebBrowserBase.cs: Fix attributes, add events
7256         * WebBrowser.cs: Fix Padding signature
7257
7258 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
7259
7260         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
7261
7262 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
7263
7264         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
7265         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
7266         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
7267         passes the new suite of tests for it.
7268
7269 2008-03-18  Andreia Gaita <avidigal@novell.com> 
7270
7271         * WebBrowser.cs: Add missing attributes, missing Padding and
7272           DefaultSize properties, remove extraneous getters
7273
7274 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7275
7276         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
7277         method overloads.
7278
7279 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7280
7281         * ComboBox.cs: Move resetting the selected index to keypress
7282         instead of textchanged.  Changing the text programmatically
7283         should not trigger resetting the selected index.  Fixes test.
7284
7285 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7286
7287         * ComboBox.cs: When the user types into the textbox, reset
7288         the selected index to -1.  [Fixes bug #371672]
7289
7290 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
7291
7292         * FileDialog.cs: Support Control-A for selecting everything
7293         in an OpenFileDialog.  [Fixes bug #371564]
7294
7295 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
7296
7297         * DataGridView.cs: When row/column visible/height properties
7298         change, invalidate.  Take the NIEX out of InvalidateRow/Column
7299         etc.  We don't support them yet, but we can just invalidate
7300         everything until we do support them.  (Added MonoTODO).  Set
7301         proper control styles.
7302         * DataGridViewRow.cs: Don't call PaintHeader if row headers
7303         are turned off. 
7304
7305 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7306
7307         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
7308
7309 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7310
7311         * DataGridViewRow.cs: Only paint the white background in
7312         cell bounds, the row bounds extends past the cells if the 
7313         grid width isn't as wide as the DGV.
7314
7315 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
7316
7317         * DataGridView*: Completely revamp the drawing to match the
7318         public API.  Our grids now look better, and call all the
7319         appropriate methods and event to allow users to override
7320         the painting and do their own.
7321
7322 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7323
7324         * ListBindingHelper.cs: Implement 2.0 GetList methods.
7325
7326 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7327
7328         * DataGridView.cs: Implement BorderStyle.
7329
7330 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7331
7332         * FileDialog.cs: Apply patch from Andy Hume: Any time we
7333         are comparing attributes, make sure we only look at the
7334         one we are interested.  These calls were failing if there
7335         were more than one attribute.
7336         [Fixes bug #370385]
7337
7338 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
7339
7340         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
7341
7342 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7343
7344         * PageSetupDialog.cs: Stub EnableMetric.
7345         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
7346         * PrintPreviewDialog.cs: Add ProcessDialogKey,
7347         ProcessTabKey.
7348
7349 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7350
7351         * MonthCalendar.cs: Remove unused variable.
7352
7353 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
7354
7355         * DataGridView*.cs: corcompare stuffs.
7356
7357 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7358
7359         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
7360         The savings aren't worth the extra code to fix the optimization.
7361         [Fixes bug #368585]
7362
7363 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7364
7365         * ToolBar.cs: Always call base.Dock in the Dock override so that
7366         Control's layout_type gets reset correctly.
7367         [Fixes bug #368882]
7368
7369 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
7370
7371         * X11Dnd.cs: End DnD operation also for the middle mouse button.
7372
7373 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7374
7375         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
7376         at the same time we do explicit ones, because we have to give all
7377         other controls on the container a chance to handle explicit ones
7378         first.  If no one has an explicit mnemonic, then we can let the
7379         MenuStrip have a shot at implicit mnemonics.
7380         * MenuStrip.cs: Create an implicit mnemonic function.
7381         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
7382         mnemonics for MenuStrips.
7383         [Fixes bug #368493]
7384
7385 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
7386
7387         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
7388         DataGridColumnStyle.cs: corcompare stuffs.
7389
7390 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7391
7392         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
7393         Details - This is needed after we added the bits to use any available
7394         column also for List and SmallIcon view. 
7395
7396 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7397
7398         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
7399         at the proper place, not only when changing SelectedIndex and changing
7400         the selection using keys/mouse, as .net does.
7401
7402 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7403
7404         * ControlBindingsCollection.cs: Implement last 2.0
7405         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
7406         in the new 2.0 Add methods.
7407
7408 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7409
7410         * ListBox.cs: When calling SelectedIndexCollection.Clear,
7411         return if no items are previously selected - this is done to avoid 
7412         firing OnSelectedIndexChanged without need to do so. Also,
7413         when creating handle ensure that the focused item is visible (as
7414         .net does).
7415
7416 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7417
7418         * ListBox.cs: Rewrote/refactored most of selection code. We require
7419         the following things in selection: a) keep selection sorted (both
7420         indices and items), b) SelectedIndices automatically detect the
7421         selection mode, c) SelectedIndex should be the first selected item
7422         index, d) Need to Focus/adjust scroll bar when selecting a new item,
7423         not only for SelectedIndex, which is specially important in Multi*
7424         selection modes. To achieve this we are moving the selection core to
7425         SelectedIndexCollection and make depend all selection modifications on
7426         it.
7427         Fixes #366438.
7428
7429 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7430
7431         * ToolStrip.cs: Enable implicit mnemonics for drop down
7432         menu strips.  [Fixes part of bug #367692]
7433
7434 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7435
7436         corcompare - fix parameter names [stragglers].
7437         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
7438         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
7439         TabControl.cs.
7440
7441 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7442
7443         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
7444         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
7445         mnemonic, let the ToolStripManager have it even if it doesn't
7446         have a matching mnemonic.
7447         [Fixes bug #367499]
7448
7449 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7450
7451         corcompare - fix warning about implicit implementation
7452         * ToolStrip.cs: Add IToolStripData interface.
7453         * IToolStripData.cs: Add.
7454
7455 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
7456
7457         corcompare - fix warning about implicit implementation
7458         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
7459         * IBounds.cs: Add.
7460
7461 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7462
7463         corcompare - fix parameter names [N-Z].
7464         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
7465         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
7466         PropertyManager.cs, RichTextBox.cs,
7467         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
7468         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
7469         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
7470         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
7471         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
7472         ToolStripContentPanel.cs, ToolStripDropDown.cs,
7473         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7474         ToolStripPanel.cs, ToolStripSeparator.cs,
7475         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
7476         UICuesEventHandler.cs, UpDownBase.cs.
7477
7478 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7479
7480         corcompare - fix parameter names [G-M].
7481         GridColumnStylesCollection.cs, GridItemCollection.cs,
7482         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
7483         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
7484         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
7485         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
7486         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
7487
7488 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
7489
7490         corcompare - fix parameter names [A-F].
7491         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
7492         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
7493         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
7494         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
7495         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
7496         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
7497         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
7498
7499 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7500
7501         * GridEntry.cs: Do not convert not only if the types match, 
7502         but also if the property type is assigneable from the value's
7503         type.
7504         [Fixes bug #366566]
7505
7506 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
7507
7508         * PropertyGridView.cs: 
7509          - Subscribe to the listbox only once and not everytime.
7510          - Update the textbox even if SetValue fails.
7511          - Close the listbox before calling TrySetValue just in case.
7512          [Fixes bug #366569]
7513
7514 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
7515
7516         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
7517
7518 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7519
7520         * ListView.cs: Implement support for custom column width based on
7521         Columns collection (we were previously using this collection only
7522         with Details view).
7523         Fixes #364484.
7524
7525 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7526
7527         * ListViewItem.cs: For Tile view, always set bounds for the first
7528         subitem (which is the main one), and also don't let Width be larger
7529         than ListView.TileSize.Width. Improve code readibility also.
7530         * ThemeWin32Classic.cs: When painting the ListViewItem instances
7531         in Tile view, _always_ use the NoWrap flag.
7532         Fixes #360798.
7533
7534 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
7535
7536         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
7537         in case.
7538         * GridEntry.cs: For MS compitability make all child properties 
7539         readonly if the parent is readonly. Ugh.
7540         [Fixes bug #365945 and #365944]
7541
7542 2008-02-29  Andreia Gaita <avidigal@novell.com> 
7543
7544         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
7545           relative to the history
7546
7547 2008-02-29  Andreia Gaita <avidigal@novell.com>
7548
7549         * HtmlElement.cs: More handlers for mouse and key events
7550
7551 2008-02-28  Andreia Gaita <avidigal@novell.com>
7552
7553         * WebBrowserBase.cs: MouseClick sig changed.
7554         * HtmlHistory.cs: Implement history navigation
7555         * HtmlElement.cs: Add event handlers, and connect them.
7556
7557 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
7558
7559         * GridEntry.cs: 
7560          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
7561            so that DisplayNameAttribute doesn't get ignored.
7562          - Check for ParenthesizeNameAttribute and parenthesize the Label.
7563          - Add support for PasswordPropertyTextAttribute
7564         * PropertyGridView.cs: Check if an entry is a password.
7565         [Fixes bugs #365589, #365586, #365588]
7566
7567 2008-02-28  Andreia Gaita <avidigal@novell.com>
7568
7569         * PropertyGridView.cs: Revert the message filtering change, as we
7570         need it to block after all. Remove block parameter, unnecessary.
7571
7572 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
7573
7574         * UserControl.cs: Better implementation of GetPreferredSize.
7575         First step to fixing bug #361441.
7576
7577 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7578
7579         * Binding.cs: Actually implement data binding support for 
7580         classes implementing IBindableComponent.
7581         * ControlBindingsCollection.cs: Likewise.
7582
7583 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7584
7585         * PropertyGridView.cs: Use a message filter to check when to 
7586         close the dropdown
7587
7588 2008-02-26  Andreia Gaita  <avidigal@novell.com>
7589
7590         * Application.cs: Change the message_filters loop so a filter 
7591         can be removed while looping.
7592
7593 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
7594
7595         * GridEntry.cs: Optimization in ToggleValue so that it caches
7596         the current value.
7597         * PropertyGridView.cs: An optimization so that the property isn't 
7598         re-read twice for each StandardValue added to the drop-down menu.
7599         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
7600         license.
7601         [Fixes bug #362755]
7602
7603 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
7604
7605         * Application.cs: Apply patch from Justin Cherniak to match
7606         MS better for ProductName, ProductVersion, and CompanyName.
7607         [Fixes bug #361709]
7608
7609 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7610
7611         * Binding.cs: Actually implement 2.0 NullValue property. Also
7612         when changing the formatting related properties, only update the state
7613         if formatting_enabled is true (we don't mind otherwise).
7614
7615 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
7616
7617         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
7618         [Fixes bug #364486]
7619
7620 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7621
7622         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
7623         of GetType on the current value as it uses reflection to 
7624         determine the type. This fixes the case where the new value is 
7625         null. 
7626
7627 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
7628
7629         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
7630         past the view.
7631
7632 2008-02-24  Luke Page  <luke.a.page@gmail.com>
7633
7634         * Line.cs, TextControl.cs: Implement offset x and y so that a
7635         document doesn't have to begin  at (0,0) on the viewpoint.
7636         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
7637         bars and switches the text alignment (and therefore is now
7638         implemented for textbox). Fixes #321383.
7639
7640 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7641
7642         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
7643         properties. Also when changing FormattingEnabled update the control
7644         property -as .Net does-.
7645
7646 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
7647
7648         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
7649         * Binding.cs: Add stubs for the overloads of the Add method in
7650         CBCollection.
7651
7652 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7653
7654         * Binding.cs: PullData () returns a false value if we got an exception.
7655         Also when validating the control and we get an error, instead of
7656         setting the value of the previous one, cancel the event (tested in 1.1
7657         and 2.0).
7658
7659 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
7660
7661         * TreeView.cs: Make selected_node and highlighted_node internal.
7662         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
7663         to null when Nodes.Clear is called.
7664         [Fixes bug #363884]
7665
7666 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7667
7668         * FontDialog.cs: Ensure that when the Font is set in code,
7669         all the gui pieces are updated accordingly.
7670         [Fixes bug #361020]
7671
7672 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7673
7674         * TextRenderer.cs: Respect proposed size for MeasureString.
7675         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
7676         autosize, use a proposed width to force wrapping for long text.
7677         [Fixes bug #360981]
7678
7679 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7680
7681         * TreeView.cs: Factor in checkboxes = false and state images in
7682         to HitTest.  [Fixes bug #363360]
7683
7684 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7685
7686         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
7687         when drawing the selected range.
7688         [Fixes bug #363648]
7689
7690 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
7691
7692         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
7693         ResizeRedraw control styles.
7694         [Fixes bug #363555]
7695
7696 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7697
7698         * TreeView.cs: StateImages are basically custom checkboxes, so
7699         factor their size the same as real checkboxes when determining
7700         what got clicked.
7701         [Fixes bug #363367]
7702
7703 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * MessageBox.cs: Make the message box wider if the form caption
7706         is longer than the text in the form.
7707         [Fixes bug #361137]
7708
7709 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7710
7711         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
7712
7713 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7714
7715         * TreeNode.cs: Guard against an NRE when the parent's
7716         StateImageList hasn't been set.
7717         [Fixes bug #363353]
7718
7719 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7720
7721         * SplitContainer.cs: Add SupportsTransparentBackColor and
7722         OptimizedDoubleBuffering control styles.
7723         [Fixes bug #363303]
7724
7725 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7726
7727         * Application.cs: For the app data paths and the registry key paths,
7728         ensure they are created before returning them to the user.
7729         [Fixes bug #361709]
7730
7731 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7732
7733         * Application.cs: Guard against an NRE in CompanyName and
7734         ProductName.
7735
7736 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
7737
7738         * Application.cs: For CompanyName, ProductName, and ProductVersion,
7739         make sure we handle all three cases correctly: attribute is present,
7740         attribute is present but is an empty string, and attribute is not
7741         present.
7742
7743 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
7744
7745         * PropertyGridView.cs: 
7746          - Fix a NRE that caused a test failure
7747          - Another performance improvement - cache the standard values
7748          listbox.
7749
7750 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7751
7752         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
7753         code paths.
7754
7755 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
7756
7757         * PropertyGridView.cs: Fix a big performance bug.
7758
7759 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7760
7761         * SelectionRange.cs: Apply patch from Andy Hume to make
7762         constructor behavior more accurate.  [Fixes bug #362117]
7763
7764 2008-02-19  Andreia Gaita <avidigal@novell.com> 
7765
7766         * Control.cs: Added a new flag is_disposing to track if the
7767         window is currently in the process of being disposed of.
7768         This is used so that, when firing visibility changes triggered
7769         by unparenting controls during Dispose, the control doesn't
7770         get created again.      
7771
7772 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * ComboBox.cs: Set height to preferred height when the handle
7775         is created.  [Fixes bug #360862]
7776
7777 2008-02-18  Andreia Gaita <avidigal@novell.com>
7778
7779         * XplatUIX11.cs: Create FosterParent with border width at 0.
7780         With the previous value of 4, everytime a control got reparented
7781         from parent = null, it's location would be shifted right and 
7782         down by 4, since these coordinates would be offset by the 
7783         FosterParent's border width.
7784
7785 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
7786
7787         * Control.cs: During diposing firstly remove ourselfes from
7788         the parent and *then* destroy our handle, because removing
7789         ourselfes from the parent controls collection causes 
7790         VisibilityChange, etc events, which require a handle and end
7791         up recreating the control.
7792
7793 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
7794
7795         * GridEntry.cs: Set expanded state before notifying that the
7796         expansion has taken place.
7797         * PropertyGridView.cs:
7798          - Set the propertygridtextbox text to the selected 
7799          StandardValue before proceeding to setting it.
7800          - Scrolling bugfixes.
7801
7802 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7803
7804         * GridEntry.cs:
7805          - Fix ValueText to not return null.
7806          - Fix conversion error reporting to actually happen.
7807         * PropertyGridView.cs: Set entry only if the text has changed.
7808         [Fixes bug #362116]
7809
7810 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7811
7812         * GridEntry.cs: 
7813          - Fix handling of a null current value.
7814          - Swallow editor exceptions.
7815         [Fixes bug #362114]
7816
7817 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
7818
7819         * PropertyGrid.cs: Clear current items first thing before 
7820         repopulating subitems.
7821         * GridEntry.cs: 
7822          - Handle null StandardValuesCollection.
7823          - Mark as not editable if there is no PropertyDescriptor and
7824          if the Converter cannot convert from string.
7825         [Part of fix for bugs #360666 and #358332]
7826
7827 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7828         * MaskedTextBox.cs: Now skips non editable characters after a
7829         character has been entered and we are progressing to the next
7830         position in the MaskedTextBox.
7831
7832 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7833         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
7834         that it changes the selection rather than just repositioning the
7835         cursor. Fixes Bug #360873.
7836
7837 2008-02-15  Luke Page  <luke.a.page@gmail.com>
7838         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
7839         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
7840         correctly. See #359330
7841
7842 2008-02-15  Andreia Gaita <avidigal@novell.com>
7843
7844         * XplatUIX11.cs: If the handle is null when posting a message, use the
7845         current thread queue to post instead. Fixes #332409
7846
7847         * SendKeys.cs: Slight optimization
7848
7849 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
7850
7851         * PropertyGrid.cs, PropertyGridView.cs:
7852         Fix multiple scrolling and sizing issues.
7853         [Fixes bug #359199]
7854
7855 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7856
7857         * PropertyGridView.cs: Ensure that drop down editors are shown
7858         in the WorkingArea of the screen.
7859         [Fixes bug #359807]
7860
7861 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
7862
7863         * GridEntry.cs: Fail silently when UITypeEditor is missing.
7864         [Fixes bug #360666]
7865
7866 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7867
7868         * Binding.cs: Implement 2.0 DataSourceNullValue property.
7869
7870 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7871
7872         * PropertyGridView.cs:
7873          - Clear the controls in the drop down form after it is hidden.
7874          - Fix Width sizing of the dropdown editors to match MSFT.
7875
7876 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7877
7878         * PropertyGridView.cs: 
7879          - Fix height for drawing the grid entry
7880          text value, so that it clips multiline text properly.
7881          - Fix unfocusing to match MSFT.
7882
7883 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
7884
7885         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
7886         Fixes a bug where on repopulation after value changed items become
7887         expandable.
7888
7889 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890
7891         * Binding.cs: For the 2.0 profile, look for a 
7892         'PropertyChanged' event in the target control, and add checks for
7893         DataSourceUpdateMode property to change -or not- the data source
7894         from validation/control property change.
7895
7896 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
7897
7898         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
7899           not compare struct with null in 2.0).
7900
7901 2008-02-10  Luke Page <luke.a.page@gmail.com>
7902
7903         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
7904         updates the provider and if not using a provider, uses the internal document
7905         class implementation of password char. Also when showing text, uses display string
7906         from the provider, instead of the actual text.
7907
7908 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7909
7910         * Binding.cs: Ooooops, forgot to take into account the data_source
7911         and binding_member_info null case (it was breaking the Binding tests).
7912
7913 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7914
7915         * Binding.cs: Implement support for data source changes exposed by
7916         'PropertyNameChanged' events, and update the control property as
7917         needed.
7918
7919 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7920
7921         * Binding.cs: Implement 2.0 WriteValue method.
7922
7923 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7924
7925         Commit patch from James Purcell for better AutoScale implementation:
7926
7927         * ScaleControl should call GetScaledBounds with the control's total size rather
7928         than client size.  GetScaledBounds should handle ignoring the borders in its
7929         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
7930         (for the most part they just call the base code now since that is fixed).
7931         * Added ScaleChildrenInternal to allow controls to disable scaling of children
7932         without having to override ScaleChildren (since none of .NET's controls do). 
7933         This is required for most controls in Mono that have scrollbars to prevent the
7934         scrollbars from being moved/resized.
7935         * Nested ContainerControls can have a different scale mode than their parent. 
7936         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
7937         designer produce different results both of which look incorrect).
7938         * Default AutoScaleMode for ContainerControl should be Inherit.
7939         * Simplified workaround for ComboBox scaling issue.
7940         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
7941         1.0 style auto scaling should scale the whole control's size instead of
7942         ignoring the borders (except for Form) and the rounding is done differently to
7943         preserve control alignment.
7944         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
7945         GetAutoScaleSize.
7946         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
7947         * CurrentAutoScaleDimensions should round the estimated character width instead
7948         of truncating.
7949         * ListBox's GetScaledBounds should always use the height it was set to instead
7950         of the height that was passed in.  This prevents rounding errors from
7951         accumulating quickly with IntegralHeight.
7952         [Bug #359098]
7953
7954 2008-02-08  Andreia Gaita <avidigal@novell.com>
7955
7956         * Form.cs: Add a null check (darn it). 
7957
7958 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7959
7960         * MdiClient.cs: Make sure the requesting form actually owns the
7961         control menu items before removing them.  Also, use
7962         Suspend/ResumeLayout when adding or removing items so we only
7963         layout once.
7964         [Fixes bug #359887]
7965
7966 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
7967
7968         * Control.cs: Guard against an NRE in ShowFocusCues.
7969         [Fixes bug #359830]
7970
7971 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7972
7973         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
7974         property, as well as stubbing DataSourceUpdateMode.
7975
7976 2008-02-08  Andreia Gaita <avidigal@novell.com>
7977
7978         * Form.cs: When closing forms, get focus back to the active control of the
7979         active form. [Fixes #341314, corner case]
7980         
7981 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7982
7983         * MdiClient.cs: After we move the scrollbars, invalidate the NC
7984         area, so any old scrollbar artifacts are cleaned up.
7985         [Fixes bug #336305]
7986
7987 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7988
7989         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
7990         for our menus, display that control box menu instead of the 1.1
7991         menu one.
7992
7993 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
7994
7995         * MdiControlStrip.cs: Add property to access the mdi form tied to
7996         each toolstripitem.
7997         * MdiClient.cs: Be smarter about removing and adding toolstripitems
7998         to the implicitly merged menu.  Every time we clicked the form, items
7999         were getting removed and the re-added, causing the form to jump around
8000         as the menu resized.
8001
8002 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
8005         was being reset by the implicit menu merge for menustrips.
8006         [Fixes bug #336296]
8007
8008 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * Form.cs: Don't do the previous change when WindowState = Normal,
8011         or it messes up where the window is placed.  Fixes test failure.
8012
8013 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
8014
8015         * Form.cs: When becoming visible, if we are an MDI child, call
8016         SetWindowState with a dummy old_state so that changes will actually
8017         be made.
8018         [Fixes the 2nd part of bug #325473]
8019
8020 2008-02-07  Andreia Gaita <avidigal@novell.com>
8021
8022         * Control.cs: Reset properties to their pre parent-change values in case
8023         the new parent == null (in which case we're basically removing the control, 
8024         and don't want any events fired due to fake property changes)
8025         [Fixes #355850]
8026
8027 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
8028
8029         * PropertyGridView.cs: 
8030          - Refactor SetValue to allow setting the value
8031         when a custom editor is used, but the entry is not editable.
8032          - Remove the custom editor control on CloseDropDown.
8033         [Fixes #359196]
8034
8035 2008-02-06  Andreia Gaita <avidigal@novell.com>
8036
8037         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
8038         reflection only on 1.1, this property is public on system.drawing on 2.0.
8039         Fixed #359247
8040
8041 2008-02-06  Andreia Gaita  <avidigal@novell.com>
8042         
8043         * WebBrowser.cs: Do a normal page refresh by default.
8044
8045 2008-02-05  Andreia Gaita  <avidigal@novell.com>
8046
8047         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
8048         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
8049         platforms. Fixes #359036
8050         
8051         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
8052         platform-specific flags.
8053
8054 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8055
8056         * Binding.cs: Add 2.0 BindableComponent property - just return control
8057         by now.
8058
8059 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
8060
8061         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
8062         Jonathan for this patch. Fixes #358442.
8063
8064 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
8065
8066         * Form.cs: If we change the active MDI child form, let the others
8067         know they need to repaint their title bar so it will appear inactive.
8068         [Fixes part 1 of bug #325473]
8069
8070 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
8071
8072          * PropertyGridView.cs: Do not trucate custom editors' width
8073          and align them to the left.
8074          [Fixes #358353 and #358349]
8075
8076 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8077
8078         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
8079         Also fix the arguments passed to CollectionChangeEventArgs in the
8080         related methods.
8081
8082 2008-02-04  Geoff Norton  <gnorton@novell.com>
8083
8084         * Hwnd.cs: The conversion to Quartz coordinates happens in
8085         System.Drawing.  Removing this translation from here.
8086
8087 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8088
8089          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
8090          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
8091          GridItemCollection.cs:
8092          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
8093
8094 2008-02-04  Geoff Norton  <gnorton@novell.com>
8095
8096         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
8097         SYSKEYUP if any other key has been pressed in the mean time.
8098         Fixes #324404
8099
8100 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8101
8102         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
8103         when the item in current position is different than 0. Also, save the
8104         item index in the beginning of the operation, instead of getting the
8105         index of the item when the event is actually performed. Lastly clean
8106         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8107         triggered.
8108         [Fixes #357873]
8109
8110 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8111
8112         * Form.cs: Alt-Minus for MDI children system menu should work
8113         with both the minus keys on the keyboard.
8114         [Fixes bug #336295]
8115
8116 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8117
8118         * Control.cs: Don't invalidate on region change.  The WM should
8119         take care of this automagically.  Keeps us out of an infinite
8120         paint loop if someone changes the Region in the OnPaint.
8121         [Fixes bug #358327]
8122
8123 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
8124
8125          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
8126
8127 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8128
8129         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
8130         down the MonthCalendar only on F4, not Alt+F4.
8131         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
8132         [Fixes bug #358340]
8133
8134 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8135
8136         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
8137         if its part of a DateTimePicker, else, use the back color.
8138         [Fixes bug #358339]
8139
8140 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
8141
8142         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
8143         [Fixes bug #358342]
8144
8145 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8146
8147         * CurrencyManager.cs: When we get a ListChanged event from our source,
8148         always fire our own ListChanged event, as .Net does.
8149
8150 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8151
8152         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
8153         #358379.
8154
8155 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8156
8157         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
8158         property. Removed if for richtext property that was always true.
8159         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
8160
8161 2008-02-03  Luke Page  <luke.a.page@gmail.com>
8162
8163         * TextBoxBase.cs - commited patch from James Purcell that
8164         correctly sets the FixedHeight control style when the MultiLine
8165         property is changed on a TextBox control. Fixes bug 358229.
8166
8167 2008-02-02  Luke Page  <luke.a.page@gmail.com>
8168
8169         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
8170         Fixes bug 351938 - caret is positioned correctly when drawn
8171         and when calculating textual position of caret, no longer
8172         has a NRE in certain situations.
8173         
8174 2008-02-01  Geoff Norton  <gnorton@novell.com>
8175
8176         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
8177         get that region removed from the paint event.
8178         * XplatUICarbon.cs: Remove the window mapping after disposing of 
8179         window.  Prevents a crash with handle reuse.  Optimize exposes
8180         only onto visible windows (rare; but possible).
8181
8182 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8183
8184         * UpDownBase.cs: Make sure the internal textbox calls the base's
8185         OnMouseDown and OnMouseUp so the textbox will function correctly.
8186         There were notes saying it doesn't chain up, but its an internal
8187         class, so our implementation may differ.
8188         [Fixes bug #357482]
8189
8190 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8191
8192         * ListBox.cs: Fix a logic error and don't process MouseDown
8193         for mouse buttons other than Left.
8194
8195 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8196
8197         * Control.cs: Remove HeightInternal.
8198         * ListBox.cs: Commit patch from James Purcell that correctly
8199         calculates heights for ListBoxen.
8200         [Fixes bug #357152]
8201
8202 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8203
8204         * Label.cs: Apply patch from James Purcell that corrects the 
8205         signature of the AutoSize property.
8206         [Fixes bug #357605]
8207
8208 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
8209
8210         * ListBox.cs: Don't throw [Mouse]Click events for buttons
8211         other than the left mouse button.
8212
8213 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
8214
8215         * Control.cs: Remove my awesome optimization as it caused some
8216         regressions with control ordering.  :(
8217         [Fixes bug #357467]
8218
8219 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
8220
8221          * PropertyGridView.cs: Fix a NRE on double click when there is no
8222          selected object.
8223
8224 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8225
8226         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
8227
8228 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
8229
8230         * ListBox.cs: Call MouseClick and MouseDoubleClick.
8231         [Fixes bug #357146]
8232
8233 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8234
8235         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
8236         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
8237         instead of Hwnd.bmp_g.
8238
8239 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8240
8241         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
8242         Use the Hwnd one instead.
8243
8244 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8245
8246         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
8247
8248 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8249
8250         * Form.cs: corcompare for RestoreBounds.
8251
8252 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8253
8254         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
8255
8256 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
8257
8258         * Form.cs: Handle Alt-Minus for MDI children forms.
8259         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
8260         Add mnemonics to the control menu.
8261         [Fixes bug #336295]
8262
8263 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8264
8265         * Binding.cs: Initial implementation bits of FormattingEnabled
8266         property and BindingComplete event (2.0). 
8267         * BindingCompleteEventArgs.cs: Internal methods for setting error text
8268         and exception.
8269
8270 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8271
8272         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
8273         table.Location.  [Fixes bug #354672]
8274
8275 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
8276
8277         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
8278         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
8279
8280 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8281
8282         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
8283         of doing all the re-bound work, just invalidate and call SetControlText 
8284         to set the updated text of selected item to our textbox.
8285         Fixes #333750.
8286
8287 2008-01-28  Andreia Gaita <avidigal@novell.com>
8288
8289         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
8290         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
8291         missing properties and methods. Add Load, Unload, Error, GotFocus, 
8292         LostFocus, Resize, Scroll events (only load and unload are connected)
8293
8294 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
8295
8296         * AccessibleObject.cs: Modified argument names to match MS.
8297         * Button.cs: Modified argument names to match MS.
8298         * BindingContext.cs: Modified argument names to match MS.
8299         * BindingMemberInfo.cs: Modified argument names to match MS.
8300         * ButtonBase.cs: Modified argument names to match MS.
8301         * ComboBox.cs: Modified argument names to match MS.
8302         * Control.cs: Modified argument names to match MS.
8303         * CheckedListBox.cs: Modified argument names to match MS.
8304         * CommonDialog.cs: Modified argument names to match MS.
8305         * DataGrid.cs: Modified argument names to match MS.
8306         * CursorConverter.cs: Modified argument names to match MS.
8307         * ControlPaint.cs: Modified argument names to match MS.
8308         * CheckBox.cs: Modified argument names to match MS.
8309         * ControlBindingsCollection.cs: Modified argument names to match MS.
8310         * BindingSource.cs: Modified argument names to match MS.
8311         * DataFormats.cs: Modified argument names to match MS.
8312         * ContainerControl.cs: Modified argument names to match MS.
8313         * CurrencyManager.cs: Modified argument names to match MS.
8314         * Application.cs: Modified argument names to match MS.
8315         * ContextMenuStrip.cs: Modified argument names to match MS.
8316         * ContextMenu.cs: Modified argument names to match MS.
8317         * BindingManagerBase.cs: Modified argument names to match MS.
8318         * WindowsFormsSection.cs: Fixed line ending.    
8319
8320 2008-01-27  Andreia Gaita <avidigal@novell.com>
8321
8322         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
8323         detecting that the dropdown toolwindow is hidden. EndLoop outside the
8324         while.
8325
8326 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
8327
8328         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
8329         MS. Code formatting.
8330
8331 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8332
8333         * Binding.cs: Don't avoid the Format event if the control 
8334         property type is object. Also, if the value retrieved by 
8335         the data source is null _and_ the control proeprty type 
8336         is object, return Convert.DBNull (match .Net).
8337         Fixes part of #324286.
8338
8339 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8340
8341         * ListControl.cs: Since we are getting two BinginContextChanged events
8342         for the same binding context instance (when the control is added to
8343         form, and when the form is actually shown), take it into account only the
8344         first time for a given binding context instance.
8345         Fixes part of #324286.
8346
8347 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8348
8349          * PropertryGridView.cs: Ops.
8350
8351 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
8352
8353          * PropertyGridView.cs: Close dropdown form if the owner form is
8354          moved or minimized.
8355          [Fixes bug #322446]
8356
8357 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
8358
8359          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
8360          RootGridEntry.cs, CategoryGridEntry.cs:
8361          PropertyGrid rewrite.
8362          - Rewrite all of the control logic in PropertyGrid.
8363          - Rewrite all of the ComponentModel logic in GridEntry.
8364          - Rewrite all UI work in PropertyGridView.
8365          - Many bugfixes, etc.
8366
8367 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
8368
8369         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
8370         when all contained controls are autosize or dock-fill.  Also take into
8371         account when the total percentage of column/row sizes is not 100%.
8372         [Fixes bug #354672]
8373
8374 2008-01-24  Andreia Gaita <avidigal@novell.com>
8375
8376         * HtmlDocument.cs:
8377         - Save a reference to the IDocument in the instance and
8378           use that one instead of going to WebHost.Document; the document that the 
8379           WebHost returns might not be the right one (in case of frames).
8380         - Use the hashcode returned from the IDocument interface.
8381         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
8382           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
8383           LinkColor, Url, VisitedColor, Window
8384
8385         * HtmlElement.cs: 
8386         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
8387           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
8388           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
8389           SetAttribute, Equals, equality operators.
8390         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
8391           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
8392         
8393         * HtmlElementCollection.cs: Change implementation to use a generic
8394         collection. Implemented Enumerator and CopyTo
8395
8396         * HtmlHistory.cs: Add constructor, no implementation yet.
8397
8398         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
8399         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
8400         Equals, equality operators.
8401
8402         * HtmlWindowCollection.cs: Implemented. 
8403
8404         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
8405         has been deprecated).
8406
8407         * WebBrowserBase.cs: Use Completed event to track document loading
8408         (Navigated has been deprecated)
8409
8410 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
8411
8412         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
8413         level MenuItems do not respect tabs.
8414         [Fixes bug #355196]
8415
8416 2008-01-23  Geoff Norton  <gnorton@novell.com>
8417
8418         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
8419         FormWindowState.  Finished fixing Fullscreen windows on Carbon
8420
8421 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8422
8423         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
8424         be used as grab_control. Also save status of capture before show ContextMenu
8425         and restore it after close.
8426
8427 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8428
8429         * Control.cs: Internal FindRootParent method added to return high control
8430         in parent tree.
8431
8432 2008-01-23  Geoff Norton  <gnorton@novell.com>
8433
8434         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
8435         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
8436         it work again.  Handle HITTEST events.
8437
8438 2008-01-23  Geoff Norton  <gnorton@novell.com>
8439
8440         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
8441         a crash in certain cases.  Support for fullscreen windows in certain cases.
8442
8443 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
8444
8445         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
8446         [Fixes bug #355703]
8447
8448 2008-01-23  Geoff Norton  <gnorton@novell.com>
8449         
8450         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
8451
8452 2008-01-23  Geoff Norton  <gnorton@novell.com>
8453
8454         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
8455
8456 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8457
8458         * SplitContainer.cs: Remove unused declarations.
8459         * Binding.cs: Remove unused declarations.
8460
8461 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8462
8463         * Form.cs: Remove unused declaration of 'active' in Activate method.
8464         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
8465         prevent compilation warnings.
8466         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
8467         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
8468         * Bindings.cs: Remove unused formatting_enabled declaration.
8469         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8470         warnings.
8471         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
8472         warnings.
8473         * PropertyGridView.cs: Remove usused 'ex' declaration.
8474         * DataGridView.cs: Remove unused declarations.
8475
8476 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8477
8478         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
8479         
8480         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
8481         to Control class, it makes possible to grab menu to controls that can't 
8482         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
8483         WmMouseMove removed since it was used only to track menu events.
8484
8485         * Control.cs:
8486         - Moved all active_tracker stuff from Form.
8487         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
8488         can call this method instead of reimplement all necessary code handle for
8489         menu tracker.
8490         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
8491         and WmMouseMove).
8492         
8493         * MenuAPI.cs: 
8494         - Remove special handle to ToolStripOverflow, now we can grab menu to 
8495         controls that can't reach Form using parent tree.
8496         - Change type of grab_control from Form to Control.
8497
8498 2008-01-22  Geoff Norton  <gnorton@novell.com>
8499
8500         * TextBoxBase.cs: Split up the sizing of controls and placing of 
8501         controls.  Fixes a bug where scrollbars in Reflector could be sized
8502         wrong and have non-working thumbers.
8503
8504 2008-01-23  Geoff Norton  <gnorton@novell.com>
8505
8506         * XplatUI.cs: Refactor environment variables to default support to the
8507         Carbon driver on the Mac.
8508
8509 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
8510
8511         * Label.cs: Uses new LabelPainter for drawing operations.
8512         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
8513         * Theme.cs: DrawLabel and LabelDefaultSize removed.
8514
8515 2008-01-22  Geoff Norton  <gnorton@novell.com>
8516
8517         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
8518
8519 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8520
8521         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
8522         through the normal flat button code and don't draw the checkbox glyph.
8523         * Theme.cs: Button->ButtonBase signature change.
8524         [Fixes bug #324755]
8525
8526 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8527
8528         * LinkLabel.cs: Uses new class LinkLabelPainter.
8529
8530 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
8531
8532         * MessageBox.cs: Adjust right border space, we don't need to add 
8533         "space_border*2" two times.
8534
8535 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8536
8537         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
8538         becomes a wrapper around Padding.
8539         [Fixes a part of bug #354676]
8540
8541 2008-01-22 Geoff Norton  <gnorton@novell.com>
8542
8543         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
8544         acquired.  Also ensure the buffer is large enough to grab the header
8545         we need on linux boxes.
8546
8547 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
8548
8549         * Control.cs: Implement a custom enumerator so people can delete
8550         from the Controls collection while in a foreach.
8551         [Fixes bug #355074]
8552
8553 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8554
8555          * PropertyGridView.cs: Fix focusing behavior:
8556          - Tab should focus the grid text box.
8557          - Clicking on the labels shouldn't focus the grid text box.
8558
8559 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8560
8561          * PropertyGridView.cs: IsValueTypeGridItem should return true 
8562          for Arrays as well.
8563
8564 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
8565
8566          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
8567           - Renamed GridEntry.SelectedObjects to TargetObjects to better
8568           reflect the property name role.
8569           - PropertyGrid.GetTarget is not required as the target is known
8570           (TargetObjects).
8571           - Setting values will handle value types as a special case now and
8572           populate them up in the chain.
8573           [Fixes #354990]
8574
8575 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
8576
8577         * Hwnd.cs: Create a public property for the Graphics we keep around.
8578
8579 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8580
8581          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
8582          when the current object selection changes. 
8583          Fixes failing test SelectedObject_Null2.B5.
8584
8585 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
8586
8587          * PropertyGrid.cs: Process Browsable properties with 
8588          DesignerSerializationVisibilityAttribute.Content as being expandable.
8589          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
8590          will not be expandable. We should be nested components-friendly now.
8591
8592 2008-01-21  Andreia Gaita <avidigal@novell.com>
8593
8594         * WebBrowserBase.cs: Check if control was loaded properly, 
8595         don't bind if it wasn't.
8596
8597         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
8598         GetElementFromPoint, equality operators, OpenNew, Write.
8599         Remove extra set_Body
8600
8601 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8602
8603         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
8604         that makes our AutoScale* stuff more tolerant to different orders
8605         of being set.  [Fixes bug #354669]
8606
8607 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8608
8609          * PropertyGridView.cs, PropertyGridTextBox.cs: 
8610          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
8611          [Fixes #339005 and #348209]
8612
8613 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
8614
8615          * PropertyGridView.cs: Hide the grid text box before adjusting it
8616          for the newly selected GridItem.
8617          [Fixes #338999]
8618
8619 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
8620
8621         * Form.cs: Give MDI children the opportunity to cancel the parent form
8622         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
8623         properly for both the parent and child.
8624         * Application.cs: Signature of internal method changed, pass the previous
8625         default of false.
8626         [Fixes bug #354286]
8627
8628 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8629
8630         * PropertyGridView.cs: Set the property value only if it has changed.
8631         [Fixes bug #338997]
8632
8633 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8634
8635         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
8636         If the mouse hasn't actually moved, ignore these messages so the currently
8637         highlighted menuitem isn't reset to the one under the mouse.
8638         [Fixes bug #333668]
8639
8640 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
8641
8642         * PropertyGridView.cs: When the property changes Invalidate the GridItem
8643         in order for the properties with UITypeEditor.GetPaintValueSupported == true
8644         to reflect the change visually.
8645         [Fixes bug #338998]
8646
8647 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
8648
8649         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
8650         to 2.0 button drawing.
8651         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
8652         the button text is tall enough for one line.  LineLimit says it will
8653         always draw at least one line, but it is a lie.
8654         [Fixes bug #324941]
8655
8656 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
8657
8658         * XplatUIStructs.cs, X11Keyboard.cs :
8659           added some more VK_* keys to be handled.
8660
8661 2008-01-16  Andreia Gaita <avidigal@novell.com>
8662
8663         * Control.cs: Check if there is a container before setting or getting
8664         the validation flag.
8665
8666 2008-01-16  Andreia Gaita <avidigal@novell.com>
8667
8668         * ContainerControl.cs: Add flag to track if a control cancels validation, 
8669         so we don't fire click events.
8670
8671         * Control.cs: 
8672         - (HandleClick) Check if validation was cancelled before  firing the click
8673         events (doubleclicks are fired, but not clicks)
8674         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
8675         ContainerControl.set_ActiveControl, but in the case of non-selectable
8676         controls, like a Label, activecontrol is not set. 
8677
8678         * ButtonBase.cs: Only fire clicks if validation passes.
8679         
8680         Fixes #353310
8681
8682 2008-01-16  Geoff Norton  <gnorton@novell.com>
8683
8684         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
8685         trunk
8686
8687 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
8688
8689         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
8690         SelectedPath, just display the default dialog instead of crashing.
8691         [Fixes bug #348989]
8692
8693 2008-01-16  Geoff Norton  <gnorton@novell.com>
8694
8695         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
8696         AddExpose instead of trusting apples compositing manager which doesn't
8697         work for our use case.  Remove some dead code causing warnings and 
8698         redecorate some other code to prevent warnings.
8699
8700 2008-01-16  Geoff Norton  <gnorton@novell.com>
8701
8702         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
8703         carbon signals us to redraw.  Fixes another portion of the flickering bug
8704
8705 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8706
8707         * Form.cs: Prevent the MdiParent property to be set when value is the same
8708         as value already set. Fixes bug #328019.
8709
8710 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8711
8712         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
8713         it prevents NRE when closing mdi child windows. Fixes bug #325211.
8714
8715 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8716
8717         * InternalWindowManager.cs: Invalidade close button after mouse up when 
8718         mdi form is prevented to close.
8719
8720 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
8721
8722         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
8723         thanks to Andy Hume. Fixes bug #325433.
8724
8725 2008-01-16  Andreia Gaita <avidigal@novell.com>
8726
8727         * LinkLabel.cs: Reset focused_index when resellecting the control.
8728         Fixes #323190
8729
8730 2008-01-15  Geoff Norton  <gnorton@novell.com>
8731
8732         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
8733         messages.
8734
8735 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8736
8737         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
8738         of truncate.
8739
8740 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * ContainerControl.cs: Setting AutoScaleMode to anything should set
8743         Form.AutoScale to false.
8744         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
8745         AutoScaleBaseSize should be changed on Font change unless it has been
8746         explicitly set.
8747         [Fixes bug #353827]
8748
8749 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8750
8751         * MenuAPI.cs: On instance of MenuTracker check if source control is
8752         ToolStripOverflow and use properly method to find form.
8753         [Fixes bug #338511]
8754
8755 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
8756
8757         [Fixes bug #323241 Transparent toolbar support]
8758
8759         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
8760         is flat.
8761
8762         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
8763         defined in control style to mimic win32 behavior.
8764
8765         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
8766         it will be transparent.
8767
8768 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8769
8770         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
8771         CreateParams for ToolBar controls.
8772
8773 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8774
8775         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
8776         FixedToolWindow, SizeableToolWindow, or None for border styles have
8777         different minimum sizes than regular forms.  Implemented to fix
8778         regression in PDN with toolbox being too wide.
8779
8780 2008-01-14  Andreia Gaita <avidigal@novell.com>
8781
8782         * HtmlElementCollection.cs: Implemented
8783
8784         * HtmlElement.cs: Implemented:
8785           - All
8786           - InnerHtml
8787           - InnerText
8788           - Id
8789           - Name
8790           - FirstChild
8791
8792         * HtmlDocument.cs: Implemented GetElementsByTagName.
8793
8794 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8795
8796         * Screen.cs: Stub BitsPerPixel to always return 32.
8797
8798 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8799
8800         * Form.cs: Implement RestoreBounds.
8801
8802 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
8803
8804         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
8805         Sebastien and his fabulous magical problem-finding machine:
8806         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
8807         respect the value set.
8808
8809 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
8810
8811         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
8812         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
8813
8814 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8815
8816         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
8817         messages (to match .Net), we need to remove the capture ourselves.
8818
8819 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
8820
8821         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
8822         will process the message and close our window.
8823         [Fixes bug #324328]
8824
8825 2008-01-10  Geoff Norton  <gnorton@novell.com>
8826
8827         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
8828         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
8829         window manager.
8830
8831 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8832
8833         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
8834         failing test.
8835
8836 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8837
8838         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
8839         Linux doesn't care, having a minimum matches MS and keeps the window
8840         from becoming too small to use window decorations.
8841         [Fixes bug #338996]
8842
8843 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8844
8845         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
8846         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
8847         control.  [Fixes bug #325419]
8848
8849 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
8850
8851         * ComboBox.cs: Guard against an NRE if the user open a new form from a
8852         SelectedIndexChanged event.  This closes the combobox dropdown, and we
8853         were trying to dispose it.  [Fixes bug #352830]
8854
8855 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8856
8857         * Control.cs, Form.cs: Implement the necessary semantics for
8858         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
8859         to determine if a focus rectangle should be drawn.
8860         * PropertyGrid.cs: Fix property visibility to match override.
8861         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
8862
8863 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
8864
8865         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
8866         [Fixes bug #323552]
8867
8868 2008-01-09  Geoff Norton  <gnorton@novell.com>
8869         
8870         * XplatUICarbon.cs: Scroll windows in the correct direction.
8871
8872 2008-01-09  Geoff Norton  <gnorton@novell.com>
8873
8874         * XplatUICarbon.cs: Track all created utility windows so we can hide them
8875         when the app is deactivated or spaces is enabled.
8876
8877 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8878
8879         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
8880         extra separation pixel for the label rect origin if SmallImageList is
8881         null, and thus we don't need that separation between icon and label
8882         rects.
8883         Patch by Ernesto Carrea.
8884         Fixes # 340195.
8885
8886 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
8887
8888         * StatusStrip.cs: Invalidate after completing a layout.  The base
8889         OnLayout does this, but we don't call the base.
8890         * ToolStripItem.cs: Revert the previous change to invalidate after
8891         the item moves.
8892         [Fixes bug #351341 better.]
8893
8894 2008-01-07  Geoff Norton  <gnorton@novell.com>
8895
8896         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
8897         not a notification to exit the application.  Listen for WM_QUIT
8898         instead.
8899
8900 2008-01-07  Andreia Gaita <avidigal@novell.com>
8901
8902         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
8903
8904 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
8905
8906         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
8907         so it can repaint at the correct location.
8908         [Fixes bug #351341]
8909
8910 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8911
8912         * ListControl.cs: SelectedValue should return a null value if
8913         SelectedIndex is -1. Also, when setting it, it should throw an
8914         ArgumentNullException if the value is null, as well as taking
8915         into account the String.Empty value, instead of ignoring it (we have
8916         tests for that now).
8917         Fixes part of #324286.
8918
8919 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
8922         SelectionStart is updated after pressing enter.  Fixes bug #351918.
8923
8924 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8925
8926         * TextControl.cs: Revert a piece r92316 that prevented the fix
8927         from working when there were multiple tags in the text box.
8928         Fixes bug #351881.
8929
8930 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8931
8932         * TextControl.cs: Apply patch from Luke Page that prevents an
8933         NRE when determining the beginning of a paragraph.
8934         Fixes bug #351886.
8935
8936 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8937
8938         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
8939         caret gets moved with clicking away from a selected block of
8940         text.  Fixes bug #351885.
8941
8942 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8943
8944         * TextControl.cs: Apply patch from Luke Page that takes line
8945         alignment into account for mouse selection, so that center and
8946         right aligned text can be selected.
8947         Fixes bug #351881.
8948
8949 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8950
8951         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
8952         issues after loading an RTF file by using the correct line feeds.
8953         Fixes bug #351841.
8954
8955 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
8956
8957         * TextControl.cs: When deleting multiple line selections, we need
8958         to invalidate every line beginning at the first line of the selection.
8959         Patch from Luke Page fixes bug #351791.
8960
8961 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8962
8963         * ListControl.cs: When getting a CurrencyManager.PositionChanged
8964         event, don't set SelectedIndex if the number of items is 1. This is
8965         because, for the first item, PositionChanged is fired _before_
8966         ItemChanged (the place where we actually populate the items), and
8967         leave us in a temporary invalid state (since items collection is
8968         empty).
8969         Fixes #349655.
8970
8971 2008-01-04  Geoff Norton  <gnorton@novell.com>
8972
8973         * XplatUICarbon.cs:  Create native toolwindows instead of
8974         the managed drawing ones.
8975
8976 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8977
8978         * LineTag.cs: If the line doesn't have any characters, return
8979         0 for GetCharIndex.  Fixes an AOORE exception after certain
8980         caret movements.  Fixes bug #351683.  Patch by Luke Page.
8981
8982 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8983
8984         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
8985         is hit when there is selected text, only the selected text gets
8986         deleted, not the character in front of the selection as well.
8987         Fixes bug #351578.
8988
8989 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8990
8991         * ComboBox.cs: When the values are displayed, calculate the
8992         ComboListBox scrollbar's LargeChange based on the visible area's
8993         height and  the actuall ItemHeight, instead of calculating it
8994         based on MaxDropItems value, since it's not used by our _current_ 
8995         2.0 profile.
8996         Fixes #332366.
8997
8998 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
8999
9000         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
9001         Patch from Luke Page that fixes issues with font colors and styles
9002         not showing up in a readonly RichTextBox.  Fixes bug #324354.
9003
9004 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
9005
9006         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
9007         from Luke Page.  This one fixes bug #349926.
9008
9009 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9010
9011         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
9012         an item in the IBindingList source changes with
9013         ListChangedType.ItemAdded. Ignore for now firing the event for other
9014         changes, since we want to have tests for those cases as well.
9015
9016 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9017
9018         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
9019         created.
9020
9021 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9022
9023         * TextBoxTextRenderer.cs: Implement a cache for measuring each
9024         character.  This is effective because the typical usage of a
9025         TextBox is with a limited amount of fonts and characters, and
9026         the current implementation of TextBox measures everything one
9027         character at a time.  Another second or two speedup for bug #347238.
9028
9029 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9030
9031         * Control.cs: Rewrite the Font getter to only query the parent's
9032         Font property once instead of twice.  Since this operation is
9033         recursive, the queries were growing exponentially as the control
9034         tree got deeper.  Another second or two speedup for bug #347238.
9035
9036 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
9037
9038         * Control.cs: Avoid setting a parent (and more importantly, updating
9039         the zorder of all its children) if the parent is already correct in
9040         WmShowWindow.  Decreases the startup time of the test case on bug
9041         #347238 from 35 seconds to 11 seconds.
9042
9043 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9044
9045         * X11Dnd.cs: When the dnd operation has started and we are 
9046         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
9047         This is done to match .Net, which doesn't send those messages after
9048         dnd operation was completed/cancelled.
9049         Fixes #349922.
9050
9051 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9052
9053         * ToolStrip.cs: Previous change should be != null, not == null.
9054         Thanks Gert!
9055
9056 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
9057
9058         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
9059         user may have moved the mouse off the current item during the event.
9060
9061 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9062
9063         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
9064         calling GetItemAt for every MouseMove event by also taking into
9065         account whether any mouse button is pressed (probably dragging); 
9066         if so, we can call GetItemAt, and if not, try to not call it 
9067         (GetItemAt can be quite expensive when used with a large number of items).
9068
9069 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9070
9071         * ListView.cs: Implement -finally- support for dnd, by calling
9072         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
9073         authors list ;-).
9074         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
9075         simple calculation of distances for all the items in the owner
9076         listview.
9077
9078 2007-12-21  Geoff Norton  <gnorton@novell.com>
9079
9080         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
9081         for windows that are originally created as invisible.  Fixes missing
9082         main window in paint-mono.
9083
9084 2007-12-21  Geoff Norton  <gnorton@novell.com>
9085
9086         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
9087         subclass handler for com.novell.mwfview subclassing HIView.  Implement
9088         Pasteboard and Dnd methods.
9089
9090 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9091
9092         * ListBox.cs: When we got focus, give focus to first item if there
9093         wasn't any pervious focused item. Also update navigation to depend on
9094         SelectedIndex rather than FocusedItem, just as .Net does.
9095         Fixes #349174.
9096
9097 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9098
9099         * ListBox.cs: Both FindString and FindStringExact methods must do an
9100         case insensitive search, should allow the last valid index to be
9101         passed in the overload taking an initial index, and should also
9102         continue searching from the top back to the specified index when it
9103         reaches the bottom.
9104
9105 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9106
9107         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
9108         redraw issue, and allows RichTextBox to draw colored text even while
9109         disabled or readonly.
9110
9111 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9112
9113         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
9114         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
9115         and doesn't grey text in a disabled RichTextBox.
9116
9117 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9118
9119         * RichTextBox.cs: Apply patch from Luke Page that adds better support
9120         for many RTF commands: quad alignment, separate formatting for blocks
9121         inside groups, and ParDef support.  Makes the test case from bug #324589
9122         look much better.
9123
9124 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9125
9126         * LineTag.cs: Fix an error in the new Draw method that caused
9127         a crash when rendering the document on bug #324589.
9128
9129 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
9130
9131         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
9132         TextControl.cs: Apply patch from Luke Page that adds support
9133         for URL links in RichTextBox.
9134         [Fixes enhancement #342516]
9135
9136 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
9137
9138         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
9139         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
9140
9141 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9142
9143         * ListBox.cs: When a key gets pressed, try to find a string
9144         if the key is a character or a digit.
9145         Fixes #343971.
9146
9147 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9148
9149         * TableLayoutPanel.cs: Remove some unused variables.
9150
9151 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9152
9153         * DateTimePicker.cs: Commit patch from Luke Page that ensures
9154         we don't end up at an invalid date when we click the up/down
9155         spinner to change the month or year.  Fixes bug #348682.
9156
9157 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
9158
9159         * Application.cs: Calling Exit in 2.0 should chain to the
9160         Exit (CancelEventArgs) version so it can be cancelled.
9161         * Form.cs: Create a flag to allow raising the Closing
9162         events to be skipped.  We raise them once in Application.Exit
9163         and don't want to raise them again when the Form is actually
9164         closed.  [Fixes bug #349073]
9165
9166 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
9167
9168         * ToolStripDropDown.cs: Guard against an NRE when there
9169         hasn't been a mainform set in the application context.
9170         [Fixes bug #349108]
9171
9172 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9173
9174         * ListBox.cs: When SetBoundsCore gets called, besides
9175         calling UpdateScrollBars, update the value of
9176         last_visible_index, since we could need to show more items
9177         than before, and we need to let the paint routines know that.
9178         Fixes #344445.
9179
9180 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9181
9182         * ListView.cs: Add DesignerSerializationVisibility attribute to
9183         InsertionMark property.
9184         * ListViewItem.cs: Add same attribute to Position property.
9185
9186 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9187
9188         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
9189         is 2.0 only.
9190
9191 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
9192
9193         * ThemeWin32Classic.cs: Don't draw the background on a
9194         flat button if there is a background image.
9195         [Fixes bug #348649]
9196
9197 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9198
9199         * ListBox.cs: If we remove the item currently selected,
9200         remove it not only from SelectedItems, but also
9201         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
9202         the items count decreased and focused_item has bigger value than that.
9203
9204 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9205
9206         * Control.cs: Perform our layout after we resize ourselves
9207         if we had to adjust our AutoSize.  Missed commit for bug
9208         #346246.
9209
9210 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
9211
9212         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
9213         we can provide an implementation of AutoSize.
9214         [Fixes bug #346246]
9215
9216 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9217
9218         * ListBox.cs: Add the internal overload Sort (bool paint),
9219         to indicate whether we actually need a paint or we will
9220         call Refresh ourselves. This way we don't request a paint
9221         _before_ having an updated and valid layout.
9222         Fixes #347233.
9223
9224 2007-12-12  Andreia Gaita <avidigal@novell.com>
9225
9226         * XPlatUIX11.cs: Send paint messages when updating a systray icon
9227         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
9228         properly invalidated. 
9229         Fixes #324237
9230
9231 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9232
9233         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
9234         don't simply assign it to our internal group field, but instead 
9235         use our Group property, which should do all the neccessary work
9236         required to support groups. Fixes an issue reported to me (mail) by a 
9237         guy using this new feature.
9238
9239 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
9240
9241         * Control.cs: Use Scale instead of ScaleControl to ensure the
9242         whole hierarchy gets scaled.
9243         [Fixes bug #347282]
9244
9245 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9246
9247         * DateTimePicker.cs: Don't set the internal MonthCalendar's
9248         Parent property.  Doing this causes the control to be hosted by
9249         the Form instead of being a popup window.
9250         [Fixes bug #347665]
9251
9252 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9253
9254         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
9255         at an index higher than Count, just use Add instead of Insert.
9256         [Fixes bug #347669]
9257
9258 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
9259
9260         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
9261         DrawPictureBox, this is handled by Control.PaintBackground.
9262         [Fixes bug #347276]
9263
9264 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
9265
9266         * MenuAPI.cs: When process menu keys return true by default only if menu is
9267         active. Fixes bug #342892.
9268
9269 2007-12-09  Andreia Gaita <avidigal@novell.com>
9270
9271         * Control.cs: check if windows are actually mapped before
9272         trying to zorder. Fixes #342509, #346955
9273
9274 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9275
9276         * ListView.cs:
9277         * ListViewInsertionMark.cs:
9278         * ThemeWin32Classic.cs: Implement the drawing side of the
9279         new 2.0 ListView.InsertionMark property.
9280
9281 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
9282
9283         * CurrencyManager.cs: Silence some debug spew.
9284
9285 2007-12-07  Geoff Norton  <gnorton@novell.com>
9286         
9287         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
9288         masks for our children as well as siblings to avoid having to query
9289         Quartz for this information.
9290         * XplatUICarbon.cs: Implement a delegate based system to pass
9291         information to System.Drawing.  Implement Async methods.  Remove
9292         the hack for the resize thumb and imlpement a transparent Grow Box.
9293         Rework the messaging system to proplery create window's and messages,
9294         fixes TabControl.
9295
9296 2007-12-06  Andreia Gaita <avidigal@novell.com>
9297
9298         * X11Keyboard.cs: Use Xutf8LookupString to support international 
9299         characters under alternate codepages. Patch from #340878
9300
9301 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9302
9303         * ListView.cs: When doing layout computations, set position in the
9304         ListView instances (we cache the position just as .Net does).
9305         * ListViewItem.cs: New internal setter method for Position. Also set
9306         position field as also available in 1.1, since we are going to use it
9307         now in the common case.
9308
9309 2007-12-06  Andreia Gaita <avidigal@novell.com>
9310
9311         * Control.cs: When removing controls, get the actual container
9312         to notify about active control changes. Fixes 341314.
9313
9314 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9315
9316         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
9317
9318 2007-12-05  Andreia Gaita <avidigal@novell.com>
9319
9320         * Control.cs: When updating the zorder, ignore windows that are not
9321         mapped. Fixes #342509
9322
9323 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9324
9325         * ListViewItem.cs: Actually implement serialization on this class.
9326
9327 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
9328
9329         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
9330         LinkCollection. Spaces to tabs, and removed extra tabs.
9331
9332 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9333
9334         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
9335           tests to fail (hopefully).
9336
9337 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9338
9339         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
9340         the image margin so custom renderers can correctly place it.
9341
9342 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9343
9344         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
9345         so custom renderers can correctly place it.
9346
9347 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
9348
9349         * Application.cs: Let WM_CHAR messages flow through to controls
9350         hosted in Strips.  [Fixes bug #343972]
9351
9352 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9353
9354         * ToolStripManager.cs: Guard against an NRE I ran into.
9355
9356 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
9357
9358         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
9359         a Link is manually added to the Links collection, we need to set
9360         its owner, so it can invalidate properly.
9361         [Fixes bug #344012]
9362
9363 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9364
9365         * ListView.cs: When changing ListViewItem.Position (which calls
9366         ListView.ChangeItemLocation), invalidate not only the area
9367         corresponding to the main item, but also to the area occupied
9368         by the items being moved.
9369
9370 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9371
9372         * ListView.cs: When changing the position of a given item,
9373         don't use item bounds, but item areas (which includes the item spacing
9374         between them). Also, use first/last position if the requested
9375         position is outside bounds (as .Net does). Invalidate the previous and
9376         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
9377         in a specific position, instead of directly accessing Items collection
9378         (this is done to get the right item - remember an Item can have a
9379         different position in the grid than in the Items collection).
9380
9381 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9382
9383         * MessageBox.cs: Calculate text area instead of just top left, this rect 
9384         area will be used in DrawString. Fixes bug #343364.
9385
9386 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9387
9388         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
9389         screen width. Partially fixes bug #343364.
9390
9391 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
9392
9393         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
9394         code inside recalculate, it makes code more simple.
9395
9396 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
9397
9398         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
9399         between update or add icon. Fixes bug #324344.
9400
9401 2007-11-21  Andreia Gaita <avidigal@novell.com>
9402
9403         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
9404         window manager, since that stretches the drawing area to include
9405         the window decorations, and they get hidden. Reverts r84444 and fixes
9406         #335849 and #342790 (mdi and pdn3 regression)
9407
9408 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9409
9410         * ListView.cs: When setting focused item, try to give focus to the
9411         previous one _only_ if the previous one remains valid. 
9412         Fixes #342504.
9413
9414 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
9415
9416         * Application.cs: Revert r89650, as it broke a common case to fix
9417         an obscure case.  Fixes bug #342606.
9418
9419 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9420
9421         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
9422
9423 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
9424
9425         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
9426         alignment. [Fixes #324228]
9427
9428 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9429
9430         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
9431         [Fixes bug #342123]
9432
9433 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
9434
9435         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
9436         it prevent problems when empty captions. [Fixes #342141]
9437
9438 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
9439
9440         * Label.cs: Use Size instead of None.  Fixes bug #342077.
9441
9442 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9443
9444         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
9445
9446 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9447
9448         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
9449         but there isn't a MdiContainer.
9450         [Fixes bug #342358]
9451
9452 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
9453
9454         * TextControl.cs: Don't recalculate document if the recalc_start and
9455         recalc_end hasn't changed.
9456         [Fixes bug #342505]
9457
9458 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
9459
9460         * DataGridViewTextBoxCell.cs: Removed CWL.
9461
9462 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9463
9464         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
9465
9466 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9467
9468         * TextControl.cs: Missed some code for bug 341534 to trigger a
9469         recalculation when the font changes.
9470
9471 2007-11-16  Andreia Gaita <avidigal@novell.com>
9472
9473         * Control.cs: When updating the zorder, check if the child to update is
9474         the same control that is set to always be on top (i.e., scrollbars), and 
9475         just put it on top directly. Fixes BadMatch error on pdn3
9476
9477 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9478
9479         * ListView.cs: Throw the needed exceptions for FindNearestItem.
9480
9481 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
9482
9483         * Control.cs: Don't perform a new layout when a label changes its text,
9484         cause label handles its own autosizing.
9485         [Fixes bug #342077]
9486
9487 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9488
9489         * ListView.cs: Implement 2.0 FindNearestItem methods.
9490
9491 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9492
9493         * ToolStripPanel.cs: Make Join at least add the control to the panel,
9494         even if the rest of what Join does isn't supported.  Add some more
9495         support for vertical toolbars.
9496         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
9497         [Fixes the application breaking parts of bug #341998]
9498
9499 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
9500
9501         * ToolStripItem.cs: When determining if we have a check/image margin,
9502         we need to look at ShowCheckMargin as well as ShowImageMargin.
9503
9504 2007-11-15  Geoff Norton  <gnorton@novell.com>
9505
9506         * XplatUIOSX.cs: Rename to...
9507         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
9508         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
9509
9510 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
9511
9512         * KeysConverter.cs: The default values should be an array of Keys, not
9513         strings.  Also, the array has more values for 2.0.
9514         [Fixes bug #341851]
9515
9516 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9517
9518         * Application.cs: Change ExecutablePath to use 
9519         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
9520         [Fixes bug #323552]
9521
9522 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9523
9524         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
9525         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
9526         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
9527         be ignored.  Create a new GetLineEnding that can specify which types of
9528         line endings to look for.  On Insert, only create new lines for \n and \r\n.
9529         [Fixes bug #324274]
9530
9531 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
9532
9533         * TextBoxBase.cs: As we loop through each line changing the font, tell
9534         the document that the line needs to be recalculated.  Fixes bug #341534.
9535
9536 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
9537         [Another round of refactoring]
9538         * Line.cs: Add DeleteCharacters.
9539         * LineTag.cs: Add Delete.
9540         * TextBoxBase.cs: Update to use new methods.
9541         * TextControl.cs: Refactor the Delete* methods.
9542
9543 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
9544
9545         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
9546         the patch. [Fixes #324856]
9547
9548 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9549
9550         * ListView.cs:
9551         * ListViewItem.cs: Add an initial implementation of
9552         2.0 ListViewItem.Position getter.
9553
9554 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9555
9556         * ListView.cs: Add a reordered_items_indices array, to allow us
9557         to have a different sorting than that of Items (the sorting in Items
9558         could not match the actual sorting in screen). This is needed to
9559         implement a pair of 2.0 features.
9560         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
9561         actual position in the ListView grid, since it could have a position
9562         different than its Index (position in ListViewItemCollection). 
9563
9564 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9565
9566         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
9567         not draw partial lines.
9568         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
9569         LineLimit flag from the base is preserved.
9570         Fixes the windows part of bug #338965.
9571
9572 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
9573
9574         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
9575         so that it can be canceled in KeyPress.
9576         Fixes bug #340078.
9577
9578 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9579
9580         * ListView.cs: In ItemControl, reset mouse-handling related
9581         fields even if we dont' have items (we still should reset them when
9582         we had items but then called Items.Clear). Partially based in a patch
9583         by George Giolfan.
9584         Fixes #338399.
9585
9586 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
9587
9588         * Application.cs: In ProductVersion first try AssemblyFileVersion
9589         before falling back to assembly version. Fixes bug #339787.
9590
9591 2007-11-08  Andreia Gaita <avidigal@novell.com>
9592
9593         * HtmlElement.cs: Implement InnerText setter.
9594         * WebBrowserBase.cs: Implement Navigated event support.
9595         Add flag to track when the browser "document" is ready to be retrieved.
9596         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
9597         Make sure browser document is ready before retrieving it.
9598         Clean up cached objects (document) when moving to a new page through
9599         any of the navigation methods.
9600         Use the new Mono.WebBrowser.INavigation interface to control navigation.
9601         Implement OnNavigated event.
9602
9603 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
9604
9605         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
9606         DrawLinkLabel, this is handled by OnPaintBackground.
9607         Fixes bug #339565, part II.
9608
9609 2007-11-07  Andreia Gaita <avidigal@novell.com>
9610
9611         * Control.cs: Revert r88915. Selecting text on a textbox depends on
9612         getting a Select call on click, so this call needs to be here for now.
9613         Unfixes #325809
9614
9615 2007-11-07  Geoff Norton  <gnorton@novell.com>
9616
9617         * OSXStructs.cs: Add the kEventClassApplication constants.
9618         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
9619         application is deactivated otherwise Menu overlays linger on top of
9620         other application windows.
9621
9622 2007-11-07  Geoff Norton  <gnorton@novell.com>
9623
9624         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
9625         dont support cursors yet anyways.  This allows Reflector to run.
9626
9627 2007-11-07  Geoff Norton  <gnorton@novell.com>
9628
9629         * XplatUIOSX.cs: Implement DragSize.
9630
9631 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9632
9633         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
9634         ItemControl, request the focus, as .Net does. This is needed after 
9635         Control does not request focus anymore when it receives a
9636         WM_LBUTTONDOWN.
9637
9638 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
9639
9640         * Label.cs: Make DrawImage internal so it can be called from Theme code.
9641         Remove the DrawImage call from OnPaint.
9642         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
9643         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
9644         but before we draw the text for DrawLabel and DrawLinkLabel.
9645         Fixes bug #339565.
9646
9647 2007-11-05  Andreia Gaita <avidigal@novell.com>
9648
9649         * Control.cs: Remove select call on click. Fixes #325809
9650
9651 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9652
9653         * ListViewItem.cs: Add 2.0 Position property getter.
9654
9655 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9656
9657         * ListView.cs: Add 2.0 BackgroundImageTiled property.
9658         Also, to make it work properly, change item's BackColor and
9659         BackgroundImageLayout as needed.
9660         * ThemeWin32Classic.cs: Don't fill any background rectangle 
9661         in ListView.ItemControl when drawing items; just let the Control
9662         base implementation fill it.
9663
9664 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9665
9666         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
9667         as well as adding a custom 'dummy' Converter, as .net does.
9668
9669 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9670
9671         * PropertyGridView.cs: When clicking drop-down button,
9672         select an index in the listbox only if our standard values collection 
9673         has one or more items.
9674
9675 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9676
9677         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
9678         property.
9679
9680 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9681
9682         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
9683         the value is not changed. This ensure a pushed button remains in that
9684         state when clicked again. When switching the value of PropertySort
9685         between Categorized and CategorizedAlphabetical, do not update the
9686         grid items and do not fire a PropertyChangedEvent. When clicking the
9687         sorting buttons, do not modify the PropertySort value when switching
9688         between Categorized and CategorizedAlphabetical but only update the
9689         button state.
9690
9691 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
9692
9693         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
9694         formatting.
9695         * PropertyGrid.cs: Also put Categorized button in pushed state when
9696         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
9697         for help description label.
9698
9699 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9700
9701         * ListView.cs: When calculating the biggest item for a given column,
9702         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
9703         the item's width.
9704
9705 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
9706
9707         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
9708         value for PropertySort on 1.0 profile. PropertySortChanged event
9709         should only be fired on 2.0 profile. Fixed NullReferenceException
9710         in UpdateSortLayout when PropertyGrid contains no items.
9711
9712 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
9713
9714         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
9715         [Fixes bug #338554]
9716
9717 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9718
9719         * ListViewItem.cs: Implement 2.0 IndentCount property.
9720
9721 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9722
9723         * X11Dnd.cs: When sending status in a dnd operation, compare current
9724         effect with the 'allowed' field instead of 'drag_data.Allowed', since
9725         the later is only created when a Winforms application is both the
9726         source and the target, but not when we are the target only.
9727         Fixes part of #324251.
9728
9729 2007-11-01  Geoff Norton  <gnorton@novell.com>
9730
9731         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
9732         order of Z-Order.
9733         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
9734         children out of the drawing view on mac.
9735         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
9736         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
9737         
9738 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9739
9740         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
9741         on the non-hosted-control part of it shouldn't do anything.
9742         Fixes part of bug #327498.
9743
9744 2007-11-01  Andreia Gaita <avidigal@novell.com>
9745
9746         * WebBrowserBase.cs: revert previous change, resize can be called anytime
9747
9748 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
9749
9750         * Application.cs: When a toolstrip has the keyboard input loop, let messages
9751         it does not use flow through to controls that are hosted in menus.
9752         Same with mouse clicks.
9753         * Form.cs: Don't close all menus on click if the click is on a
9754         control hosted in a menu.
9755         Fixes part of bug #327498, and part of bug #325969.
9756
9757 2007-10-31  Andreia Gaita <avidigal@novell.com>
9758
9759         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
9760
9761 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
9762
9763         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
9764         Addresses an issue raised in bug #336218.
9765
9766 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
9767
9768         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
9769         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
9770
9771 2007-10-30  Andreia Gaita <avidigal@novell.com>
9772
9773         * ContainerControl.cs: Check if the active control is a
9774         child of a removed control and update active_control accordingly.
9775         Fixes #329718
9776
9777 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9778
9779         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
9780         or the MaxDate.  Fixed bug #337693.
9781
9782 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9783
9784         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
9785         after calling SetWindowLong for a form, to force an immediate NC refresh.
9786         Fixes first part of bug #325150.
9787
9788 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9789
9790         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
9791         simple.  Fixes the last part of bug #322668.
9792
9793 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
9794
9795         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
9796         needs to be TopMost as well, or else the MessageBox is under the form.
9797         Patch by George fixes bug #325300.
9798
9799 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9800
9801         * X11Dnd.cs: When starting a new drag operation, reset the static
9802         'dropped' field to false (previously the implementation didn't reset
9803         it and got confused after the first drag).
9804         Fixes #325071.
9805
9806 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9807
9808         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
9809         items instead of re-creating them all. For this purpose we now cache
9810         both CategoryGridEntry items and the GridEntries for the main object's
9811         properties.
9812         * GridItem.cs: Make SetParent method abstract.
9813         * GridEntry.cs: Override the SetParent method (already there, but now
9814         we override it).
9815         Fixes #324866.
9816
9817 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9818
9819         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
9820         depending on its depth (as .Net does). Update the needed values in
9821         MouseDown handler. Also draw the plus/minus rect after the label,
9822         so we don't draw on top of it.
9823
9824 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
9825
9826         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
9827         processed by forms or controls when menu is active. [Fixes #333548]
9828
9829 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9830
9831         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
9832         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
9833         focus on mouse over.
9834
9835 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9836
9837         * TextControl.cs: Code cleaning, simplifying.
9838
9839 2007-10-24  Geoff Norton  <gnorton@novell.com>
9840
9841         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
9842         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
9843
9844 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
9845
9846         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
9847         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
9848
9849 2007-10-24  Andreia Gaita <avidigal@novell.com>
9850
9851         * SendKeys.cs: apply jpobst's patch to bug #332409
9852
9853 2007-10-23  Andreia Gaita <avidigal@novell.com>
9854
9855         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
9856         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
9857         for some reason
9858
9859 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9860
9861         * PropertyGridView.cs: If a property has an UIEditor available,
9862         make the drop-down/editor button available only if the property
9863         is _not_ read only.
9864
9865 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9866
9867         * PropertyGridView.cs: Don't make the grid item textbox 
9868         editable when a drop-down control is available, but 
9869         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
9870         true. The same bur the color of the grid item value's label.
9871
9872 2007-10-22  Geoff Norton  <gnorton@novell.com>
9873
9874         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
9875         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
9876         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
9877         driver.  Padd the bottom of all real windows so the resize thumb doesn't
9878         obscure scroll/status bars.
9879
9880 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
9881
9882         * WindowsFormsSection.cs: Implement.
9883
9884 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9885
9886         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
9887         closed see #325434 patch.
9888
9889 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
9890
9891         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
9892         see #325434 patch.
9893
9894 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9895
9896         * PropertyGridView.cs: When showing the textbox for a grid item,
9897         have two local variables to store the read-only and non-editable
9898         status of a grid item (we were previously using just one variable
9899         to do this, when actually they are slightly different).
9900         Fixes part of #325023.
9901
9902 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9903
9904         * PropertyGridView.cs: When showing a drop-down list, try to get the
9905         values using TypeConverter.ConvertTo (to convert to a string). Fixes
9906         part of #325023.
9907
9908 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9909
9910         * PropertyGrid.cs: When updating a property and populating sub grid
9911         items, remove the previous ones, and invalidate the specific area.
9912         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
9913         area behind a grid item.
9914         * GridItemCollection.cs: Add an internal Clear method, to allow us to
9915         clean the items if needed (specially for controls implementing 
9916         ICustomTypeDescriptor and returning a variable number of properties).
9917         Fixes #324865.
9918
9919 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
9920
9921         * TextControl.cs: Clean up and document the Insert function.
9922
9923 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9924
9925         * TextControl.cs: Make sure we know our start point for updating the view
9926         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
9927         update the view.
9928
9929 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9930
9931         * ListView: Couple of corcompare fixes.
9932
9933 2007-10-17  Geoff Norton  <gnorton@novell.com>
9934
9935         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
9936         the title caption of real window.
9937
9938 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9939
9940         * ErrorProvider.cs: Add the error provider's internal window to a 
9941         containercontrol when the parent changes.  [Fixes bug #329714]
9942
9943 2007-10-17  Geoff Norton  <gnorton@novell.com>
9944
9945         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
9946         When we make a new window; restore the old active window - fixes dialogs.
9947
9948 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9949
9950         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
9951         when modifying a property, and if found then invalidate as
9952         requested.
9953         Fixes part of #324865.
9954
9955 2007-10-17  Geoff Norton  <gnorton@novell.com>
9956
9957         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
9958         highly experimental.  Fixed coordinate translation.  Fixed window locations.
9959         Initial support for clipping. Implemented NC areas and menus.  Support for
9960         launching from command line from Will Johansson (wjohansson@atacomm.com).
9961         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
9962         wjohansson@atacomm.com)
9963         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
9964         Hwnds now track the existence of all of their children for Mac clipping.
9965     * XplatUI.cs: Re-enabled the native driver on the Mac.
9966
9967 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
9968
9969         * Line.cs: Move the InsertString function to here.
9970         * TextControl.cs: Cleanup some duplicate code, move some InsertString
9971         functionality to Line.
9972
9973 2007-10-17  Geoff Norton  <gnorton@novell.com>
9974
9975         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
9976
9977 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
9978
9979         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
9980         always setting value to true.
9981         * Form.cs: When changing AcceptButton, notify new and original button.
9982
9983 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
9984
9985         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
9986         a custom control that implements IButtonControl instead of an actual
9987         button.  [Fixes bug #334244]
9988
9989 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
9990
9991         * Form.cs: Change SelectActiveControl to internal, we need to call it in
9992         MdiWindowManager.
9993         
9994         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
9995         active control when activate a new mdi window.
9996         
9997         [Fixes bug #330495]
9998
9999 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
10000
10001         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
10002         is already added.
10003         [Fixes bug #333617]
10004
10005 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10006
10007         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
10008         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
10009         so we always recalculate the whole document instead of just the new part.
10010         [Fixes bug #325082]
10011
10012 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10013
10014         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
10015         when the mouse was to the left of the first character in the line.
10016
10017 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
10018
10019         * TextBox.cs, TextBoxBase.cs: When setting the document's password
10020         character, use the property instead of the variable so that the
10021         UseSystemPasswordChar property is taken into account.
10022         [Fixes bug #333748]
10023
10024 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10025
10026         * FolderBrowserDialog.cs: When a node is right clicked and the "New
10027         folder" contex menu appears, actually add the new folder to it, even
10028         if the node is not currently selected. Still use SelectedNode in case 
10029         there wasn't found a node under the pointer.
10030         Fixes #325452.
10031
10032 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10033
10034         * ListViewItem.cs: When retrieving the focused state, the index check
10035         should be done only when ListView is in virtualmode, as it is an
10036         expensive check for normal mode.
10037
10038 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10039
10040         * ListViewItem.cs: Make the focus state information be stored
10041         in the ListView, not in the items. This is done to match the MS
10042         behaviour for items that are not yet part of a ListView control;
10043         besides that, since just one item can be focused at the same time,
10044         we save a little space in our items.
10045         Fixes part of #331643.
10046
10047 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10048
10049         * ComboBox.cs: When focus is lost, deselect the text. When setting
10050         text of control, select all text. Do not hide selection when control
10051         does not have focus. Fixes bug #333663.
10052
10053 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10054
10055         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
10056         instead of ArgumentException when SelectionLength is set to negative
10057         value. Added same check to SelectionStart. Code formatting.
10058
10059 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
10060
10061         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
10062         or SelectionStart. Code formatting.
10063
10064 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10065
10066         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
10067         indicating that there was not a previous drag-and-drop operation going
10068         on.
10069         Fixes part of #325071.
10070
10071 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10072
10073         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
10074         AllowedEffect, don't let the drop operation happen. 
10075         Fixes #32580.
10076
10077 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10078
10079         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
10080
10081 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10082
10083         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
10084         is called.
10085
10086 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
10087
10088         * Line.cs: Add a method that finds the tag that contains an x-coord.
10089         * LineTag.cs: Add a method that finds the character at an x-coord using
10090         a binary search, the old way was a linear search.
10091         * TextControl.cs: Change FindCursor to use the above new methods.
10092
10093 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10094
10095         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
10096         value different than AllowedEffect). This should be possible to
10097         indicate that dragging is not possible in some control/area.
10098
10099 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
10100
10101         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
10102         descent internally when font changes instead of outside code being responsible
10103         for setting it.
10104         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
10105         instead of accessing internal variables.
10106
10107 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
10108
10109         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
10110         remove special treatment for ArrangeIcons since it is already arranged.
10111
10112 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10113
10114         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
10115         the Win32 backend uses Color.
10116         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
10117         Refactor to store a Color instead of a Brush for Color.
10118
10119 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10120
10121         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
10122         away.  I didn't realize I needed this when I refactored these earlier.
10123
10124 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10125
10126         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
10127         store a Color structure and use the ResPool for back color instead of
10128         holding onto brushes.
10129
10130 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
10131
10132         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
10133         [Fixes bug #325592]
10134
10135 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10136
10137         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
10138         to recalculate its size.  Fixes a part of bug #331052.
10139
10140 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10141
10142         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
10143         button.  Fixes a part of bug #331052.
10144
10145 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10146
10147         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
10148         the CreateParams.
10149         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
10150         decorations.
10151         [Fixes bug #330986]
10152
10153 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10154
10155         * TextBoxTextRenderer.cs: Don't make this a static class, as static
10156         doesn't exist in 1.1.  (Thanks jb!)
10157
10158 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
10159
10160         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
10161         class to allow us to use different backends on different platforms.
10162         Linux uses the current [Draw|Measure]String backend.  Windows uses
10163         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
10164         of GDI+.  This leads to better looking text and more accurate measurements
10165         on Windows, fixing many of the reported issues.
10166         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
10167
10168 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10169
10170         * FolderBrowserDialog.cs: When running on Windows,
10171         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
10172         since we must match both "C:" and "C:\" forms. A little hackish, but
10173         works.
10174         Fixes #325247.
10175
10176 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10177
10178         * ListView.cs: When calling EndEdit (after editing an item),
10179         create a new instance of LabelEditEventArgs to keep clean the fields
10180         in case we get a new call to BeginEdit; also do Application.DoEvents
10181         to have focus in synch. This is a fix similar to TreeView's #325244.
10182
10183 2007-10-07  Andreia Gaita <avidigal@novell.com>
10184
10185         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
10186         * WebBrowserBase.cs: Added dialog support, calling the
10187           WebBrowserDialogs classes for each specific dialog type.
10188
10189 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10190
10191         * ListView.cs: When the last item is focused and is removed,
10192         move the focus to the previous item (in Items order). This is what MS
10193         does.
10194         Fixes #330415.
10195
10196 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10197
10198         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
10199         instead of the opposite (RemoveAt call Remove). This is a better
10200         approach since we don't need to to a pair of traversals when using
10201         RemoveAt.
10202
10203 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10204
10205         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
10206         check that the node actually has nodes, and if not, move to the
10207         parent node instead. 
10208         Fixes #325265.
10209
10210 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10211
10212         * TreeView.cs: Move the previous change to the general case (to
10213         call Application.DoEvents in cases where the method was called by
10214         different places).
10215
10216 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10217
10218         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
10219         call Application.DoEvents. This is neccessary when we get a call to
10220         BeginEdit from an AfterLabelEdit handler, because the focus always
10221         goes to the TreeView, even if we try to give it to our
10222         LabelEditTextBox. The call do Application.DoEvents seems to
10223         synchronize the focus, basically.
10224         Fixes #325244.
10225
10226 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10227
10228         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
10229         should be false. This also removes some nasty recursive paths. Fixes
10230         part of #325244.
10231
10232 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
10233
10234         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
10235         state to normal. Also resize window when cascading. Fixes #325433. 
10236
10237 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10238
10239         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
10240         DefaultForeColor, as drawing empty colored lines isn't very useful.
10241         [Fixes the not drawn lines part of bug #324358]
10242
10243 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
10244
10245         * TextControl.cs: Move Line and LineTag classes into separate files to
10246         make things easier to find.
10247         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
10248         * RichTextBox.cs: Capitalize LineTag.Length property access.
10249         - This is purely an organizational/formatting change, no logic changed. -
10250
10251 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10252
10253         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
10254         text is empty.
10255
10256 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10257
10258         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
10259         text is empty.
10260
10261 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10262
10263         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
10264         prevent calling of OnBackColorChanged. Fixes #325321.
10265
10266 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
10267
10268         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
10269         because control can be disabled because owner is disabled.
10270
10271 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10272
10273         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
10274         string.Empty, test failed from previous change.
10275
10276 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
10277
10278         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
10279         is null, not String.Empty.  See bug #323038.
10280
10281 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
10282
10283         * TextControl.cs: Change the margins to match MS a little better.
10284         Still not perfect for X11 due to some DrawString differences, but
10285         is still an improvement over the old stuff.
10286         Partially fixes #324467.
10287
10288 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10289
10290         * FolderBrowserDialog.cs: When using MyComputer as 
10291         RootFolder, let absolute paths be considered as valid ones. Also, use
10292         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
10293         for Windows compatibility.
10294         Partially fixes #325247.
10295
10296 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10297
10298         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
10299         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
10300         method, since it causes the dialog to not select folders directly
10301         under the root path (when setting SelectedPath property).
10302
10303 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10304
10305         * TreeNode.cs: When calling Expand/Collapse and need to call 
10306         ExpandBelow/CollapseBelow respectively, take into account
10307         partially visible nodes (previously Expanding/Collapsing
10308         a partially visible node in the bottom was not updating its +- sign).
10309
10310 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10311
10312         * TreeView.cs: When calling Expand on a TreeNode, and we need to
10313         expand nodes below (ExpandBelow), scroll the entire Viewport
10314         area if the node is above it and not visible (instead of scrolling
10315         the area from node's Bottom, which applies only when the node is
10316         visible).
10317         Fixes #325266.
10318
10319 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10320
10321         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
10322         node in the bottom area (as .Net does). This is done to preserve the
10323         scroll position when ExpandAll is called before handle is created for
10324         the 1.1 profile (bottom area, as opposed to top area in 2.0).
10325         Fixes #324103.
10326
10327 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10328
10329         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
10330         bottom area if we are in fact not using the vertical scroll bar.
10331         Fixes #324824.
10332
10333 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10334
10335         * Control.cs: Comment out a double buffering optimization that doesn't
10336         take into account invalidates created in OnPaint, causing the control
10337         to never be redrawn.  It would take quite a bit of work to work around
10338         this, but I left it commented with an explanation for later possible
10339         optimization.
10340         [Fixes bug #328681]
10341
10342 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
10343
10344         * Control.cs: Ask parent to perform a layout if control is AutoSize and
10345         the text changes.
10346         * RadioButton.cs: Implement GetPreferredSizeCore.
10347         [Fixes bug #328672]
10348
10349 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10350
10351         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
10352         corcompare stuffs.
10353
10354 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
10355
10356         * Application.cs: Move the sync context stuff to Run instead of RunLoop
10357         so that it doesn't get uninstalled on modal forms.
10358         * Control.cs: Install a sync context when a control is created.
10359         * WindowsFormsSyncronizationContext.cs: Create a private static control
10360         to invoke on.  This is easier than trying to find a created control we
10361         can use.
10362         [Fixes bug #327608]
10363
10364 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
10365
10366         * Application.cs: Install a WindowsFormsSynchronizationContext in the
10367         run loop, and uninstall it when done.
10368         * WindowsFormsSynchronizationContext.cs: Implement.
10369         [Fixes the common case in bug #327608]
10370
10371 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
10372
10373         * DataGridViewCellCollection.cs: Added argument checks for indexers.
10374         Use case-insensitive lookup of column name in indexer. Code
10375         formatting.
10376
10377 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10378
10379         * TreeNode.cs: When collapsing or expanding a node, check whether its
10380         change will affect the visible area (we were previously doing a
10381         IsVisible check, but that check is not enough since children nodes
10382         could be still visible). Fixes part of #325266.
10383
10384 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10385
10386         * TreeView.cs: Always select the first node when the TreeView gets
10387         focus if there is no currently selected node.
10388         [Fixes bug #324279]
10389
10390 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
10391
10392         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
10393         node being selected is null.
10394         [Patch from Yves Bastide fixes bug #326858]
10395
10396 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10397
10398         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
10399         whether all the parent nodes are expanded.
10400         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
10401         call RecalculateVisibleOrder if all previous nodes are expanded.
10402         Before that we were doing a IsVisible check, but sometimes the node
10403         is not in the visible area, but _should_already be ready, because of
10404         all previous nodes are expanded. Fixes #325259.
10405
10406 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10407
10408         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
10409         portion of the item is clicked.
10410
10411 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10412
10413         * TextControl.cs: Do not tell the system to move the cursor if the
10414         textbox isn't focused.  Fixes part of bug #322668.
10415
10416 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10417
10418         * ComboBox.cs: When there are no items, do not show the dropdown if
10419         the down arrow is clicked.  Fixes part of bug #322668.
10420
10421 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
10422
10423         * ToolStripComboBox.cs: Manually set the size of this control in the
10424         constructor, as it doesn't seem to be the same as DefaultSize.
10425         Fixes a failing monobuild test.
10426
10427 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10428
10429         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
10430         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
10431
10432 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
10433
10434         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
10435         Desktop.  This lets it work for people who have moved their desktops
10436         from the default location on windows.  For people who have not, both
10437         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
10438
10439 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10440
10441         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
10442         but when the base constructor sets this, the control is null.  Set it
10443         again in the constructor.  Fixes a failing monobuild test.
10444
10445 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10446
10447         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
10448         get called.
10449         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
10450         called.
10451
10452 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10453
10454         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
10455         will handle it themselves.
10456         * ToolStripItem.cs: When deciding what the text of a tooltip should
10457         be, use the Text property instead of the text field.
10458         * ToolStripTextBox.cs: Handle tooltips.
10459         [Fixes bugs #325417 and #325973]
10460
10461 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10462
10463         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
10464         left click.  Fixes the easy part of bug #325969.
10465
10466 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
10467
10468         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
10469         bug #325406, but set a minimum for StatusStrip to 22 to keep
10470         bug #325390 fixed.  I think this minimum would have been figured
10471         up automatically if the grip was actually a ToolStripItem, but it
10472         currently is not.
10473
10474 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10475
10476         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
10477         as this is apparently the actual value used by .Net. Also apply
10478         ItemPadding in Details view only, and decrease the general width padding,
10479         to have only the needed. This should fix #324340 in Windows too.
10480
10481 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10482
10483         * ListViewItem.cs: Don't Invalidate item if parent is inside
10484         a BeginUpdate/EndUpdate block. This prevents to have differences
10485         between the ListView and items state, as well as avoid some exceptions
10486         there.
10487         * ListView.cs: Make 'updating' field internal.
10488
10489 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10490
10491         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
10492         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
10493         size if appropriate.
10494         Fixes reopened bug #325414.
10495
10496 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10497
10498         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
10499         * ToolStripItem.cs: Invalidate before and after our new autosize when
10500         text changes.
10501         Fixes reopened bug #325390.
10502
10503 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10504
10505         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
10506         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
10507         #325044.
10508
10509 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
10510
10511         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
10512
10513 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10514
10515         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
10516         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
10517         #82734.
10518
10519 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10520
10521         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
10522         item to select when the ToolStrip is selected.
10523         * ToolStripControlHost: Realign the control when the bounds or visibility
10524         change.
10525         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
10526         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
10527         preferred height.
10528         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
10529         base.OnPaint.  Was causing text not to be drawn.
10530
10531 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
10532
10533         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
10534
10535 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10536
10537         * TreeView.cs: When creating the label edit text box,
10538         set is initially to Visible = false. This is done to
10539         prevent a confusion in the layout which makes it to lose
10540         focus when shown the first time. Fixes part of #82592.
10541
10542 2007-09-13 Andreia Gaita <avidigal@novell.com>
10543
10544         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
10545
10546 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10547
10548         * ToolStrip.cs: Take Margin into account when calculating preferred
10549         size.  Also, allow preferred size to get smaller than the explicit
10550         size.
10551         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
10552         First step towards fixing bug #82747.
10553
10554 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10555
10556         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
10557         full row select background over the plus/minus glyph.  Also, turn
10558         off the focus rectangle for full row select since MS doesn't seem
10559         to ever paint it.  [Fixes bug #81839]
10560
10561 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10562
10563         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
10564         This was causing keyboard opened dropdowns to lose focus.
10565         [Fixes bug #82803]
10566
10567 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10568
10569         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
10570         ClientRectangle instead.  [Fixes bug #82838]
10571
10572 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
10573
10574         * SplitContainer.cs: We can't reset Visible on every layout because
10575         someone may have set Visible = false explicitly on a SplitterPanel.
10576         Make sure when we switch orientation the SplitterDistance does not
10577         change.  Fixes two failing tests.
10578
10579 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10580
10581         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
10582         TextRenderer, since the latter is only available in 2.0.
10583
10584 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
10585
10586         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
10587         * SplitContainer.cs: Implement FixedPanel layouting.
10588
10589 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10590
10591         * WebBrowserBase.cs: setup shutdown routine
10592
10593 2007-09-12  Andreia Gaita  <avidigal@novell.com>
10594
10595         * Application.cs: Let keyboard events that are targetted 
10596                 to non-mwf windows hosted inside mwf (as in, webbrowser),
10597                 propagate properly. Fixes keyboard handling on the webbrowser.
10598
10599 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10600
10601         * ListView.cs: When handling MouseUp event and we are 
10602         highligting a node with the mouse right button, don't trigger
10603         Before/AfterSelecting event, since we are not actually selecting
10604         the node.
10605
10606 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10607
10608         * TreeView.cs: When editing a node, modify the edit text box
10609         depending on the text length (as you are typing), like MS does.
10610
10611 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10612
10613         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
10614         Override GetPreferredSizeCore to perform calculations.  Remove custom
10615         autosize logic.  [Fixes bug #82739]
10616
10617 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
10618
10619         * TextBoxBase.cs: Modified should default to false.
10620
10621 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10622
10623         * Control.cs: Update the anchoring distances even when layout is supspended.
10624         Patch provided by George fixes bug #82805.
10625
10626 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10627
10628         * Control.cs: Provide a setter for ExplicitHeight.
10629         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
10630         remove the hacks in here for requested_height.
10631         [Fixes bug #82749]
10632
10633 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10634
10635         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
10636         Maximum to lower that its current Value caused an ArgumentException by setting
10637         the Value to the new Maximum.
10638
10639 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10640
10641         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
10642         handle moves to the closest tick when it is being dragged.
10643         [Fixes bug #82751]
10644
10645 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
10646
10647         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
10648         can't let them count as real items when calculating where to merge in the
10649         user's items.  [Fixed bug #82786]
10650
10651 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10652
10653         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
10654         who want to add a menu item directly onto a toolstrip.
10655         [Fixes bug #82775, part II]
10656
10657 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10658
10659         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
10660         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
10661         don't set it to available.
10662         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
10663         [Fixes bug #82727, part II]
10664
10665 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10666
10667         * StatusStrip.cs: Change item placement to None if not visible.
10668         * ToolStripItem.cs: Invalidate when InternalVisible changes.
10669         These should have been committed to fix 82723, but I missed them.
10670
10671 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
10672
10673         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
10674         Click, and that it is only called once.
10675         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
10676         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
10677         dropped down.
10678         [Fixes bug #82775]
10679
10680 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10681
10682         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
10683         to match .Net.
10684         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
10685         instead of 8, just like above. Partially fixes #82734.
10686
10687 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10688
10689         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
10690         fixes #82734.
10691
10692         * ListView.cs: Remove extra space between rows in Details view (match
10693         .Net). 
10694         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
10695         the DefaultFont.
10696
10697 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
10698
10699         * Application.cs: Modified ProductVersion to return value of
10700         AssemblyInformationVersion if available, and fallback to assembly
10701         version. Fixes bug #82746. Code formatting.
10702         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
10703         instead.
10704
10705 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10706
10707         * Control.cs: When updating ZOrder for a child control,
10708         take into account the implicit ones (we need it in our controls
10709         using them). Fixes #82642.
10710
10711 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10712
10713         * ToolStripItem.cs: Add support for animated images.
10714         [Fixes bug #82726]
10715
10716 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
10717
10718         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
10719         visible.  [Fixes bug #82727]
10720
10721 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10722
10723         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
10724         so we repaint using the new size.  [Fixes bug #82723]
10725
10726 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10727
10728         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
10729         option.  [Fixes bug #81779]
10730
10731 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10732
10733         * TreeView.cs: Override HandleClick because the StandardClick style is
10734         set to false.  According to MSDN (and testing), the click events should
10735         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
10736
10737 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10738
10739         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
10740         the border will disappear.  Fixes reopened #82653.
10741
10742 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10743
10744         * Control.cs: If the control is autosize, and its preferred size changes
10745         when it lays out its children, tell its parent so it can be re-layed out.
10746         Fixing some of the fallout from r85433.
10747
10748 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10749
10750         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
10751         and CheckBox share some code.
10752
10753 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10754
10755         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
10756         the TrackBar, not every mouse move.  [Fixed bug #82718]
10757
10758 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10759
10760         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
10761         under 2.0 rendering.  [Fixes bug #82657]
10762
10763 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10764
10765         * TreeView.cs: If we found a TreeNode to display a context menu, but
10766         it doesn't have one to show, let the TreeView display its menu
10767         instead.  [Fixes bug #82680]
10768
10769 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
10770
10771         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
10772         OnPaintInternal instead.  Give the internal TextBox a Border property
10773         so it can draw itself more correctly.  [Fixes bug #82653]
10774
10775 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
10776
10777         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
10778
10779 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10780
10781         * ComboBox.cs: Adjust combobox button state to reflect current state when
10782         back to enabled = true. Fixes first issue of #82654.
10783
10784 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10785
10786         * Control.cs: Fix last patch regression, prevent forms to update zorder when
10787         setting visible property.
10788
10789 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
10790
10791         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
10792         fix zorder for controls initially created as non visible. Fixes #82667.
10793
10794 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
10795
10796         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
10797         mimic win32 look. Fixes #82656.
10798
10799 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
10800
10801         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
10802         Stubs for new net 3.5 classes.
10803
10804 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10805
10806         * ListViewItem.cs: In ListViewItemCollection operations calculate
10807         Layout for owner as well as invalidate it. Fixes part of #82642.
10808
10809 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
10810
10811         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
10812         when returning Enabled.  [Fixes bug #82651]
10813
10814 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
10815
10816         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
10817
10818 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10819
10820         * ListView.cs: Put item padding info in a single place
10821         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
10822         columns again.
10823         * ThemeWin32Classic.cs:
10824         * Theme.cs: Likewise.
10825
10826 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10827
10828         * ListView.cs: When a ListViewSubItem instance is invalidated,
10829         invoke Invalidate on parent ListViewItem, not parent ListView.
10830         Fixes #81570.
10831
10832 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10833
10834         * ListView.cs, ListViewItem.cs: corcompare stuffs.
10835
10836 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10837
10838         * BindingMemberInfo.cs: Implement == and != operators.
10839
10840 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
10841
10842         * HtmlElementEventArgs.cs: Implement properties.
10843
10844 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10845
10846         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
10847
10848 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10849
10850         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
10851         Add (string,string,string) to implement the imagekey.  It turns out, we
10852         use the requested imagekey whereas .Net does not.  So I broke ours to match
10853         theirs.  :(
10854
10855 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10856
10857         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
10858
10859 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
10860
10861         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
10862
10863 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
10864
10865         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
10866         up-to-date. Fixes bug #82618.
10867
10868 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
10869
10870         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
10871         reflect document changes. Fixes #82367.
10872
10873 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10874
10875         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
10876         as well as add new ones. This should make work the BackgroundImage
10877         property for ListView again.
10878
10879 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10880
10881         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
10882         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
10883         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
10884
10885 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10886
10887         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
10888         IsKeyLocked.
10889
10890 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10891
10892         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
10893         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
10894
10895 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
10896
10897         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
10898         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
10899
10900 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10901
10902         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
10903
10904 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
10905
10906         * GridEntry.cs: Implement GetService.
10907
10908 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
10909
10910         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
10911         for label editting, make sure we focus back on the TreeView.
10912         [Fixes bug #82590]
10913
10914 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10915
10916         * ListView.cs: Add some 2.0 overrides.
10917
10918 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10919
10920         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
10921         because getter dont returns right value before handle creation. Thanks 
10922         to George. Fixes #82569.  
10923
10924 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10925
10926         * Theme.cs: Revert last patch, it causes error under win32. 
10927
10928 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
10929
10930         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
10931         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
10932         logical Desktop rather than the physical file system location. Fixes #82603. 
10933
10934 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
10935
10936         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
10937         for the patch. Fixes #82568.
10938
10939 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10940
10941         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
10942         methods.
10943
10944 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10945
10946         * ListViewInsertionMark.cs: New stubbed class.
10947
10948 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10949
10950         * FolderBrowserDialog.cs: When adding folder, immediately create the
10951         directory with temporary name and rename the directory when editing
10952         finishes. This matches MS. Ensure the node for the new folder is 
10953         selected and LabelEdit is disabled, when editing is either finished
10954         or cancelled.
10955
10956 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10957
10958         * TreeView.cs: When editing label of node, ensure node is visible.
10959
10960 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
10961
10962         * PropertyGridView.cs: Set the value only if it has changed.
10963
10964 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10965
10966         * ListView.cs: Some more code refactoring to add support sorting
10967         with groups (now for Details view). Remove unused code also.
10968
10969 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10970
10971         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
10972         Not a big fan of reacting immediately to a field in an EventArg, but that's
10973         the way it's done.  (This is part of the previous commit that got left out.)
10974
10975 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
10976
10977         * FolderBrowserDialog.cs: Removed need for separate description field.
10978         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
10979         has focus when dialog box is displayed again, regardless of what
10980         button was pressed the previous time. Set RootFolder and SelectedPath
10981         each time dialog box is displayed. This ensures the treeview is
10982         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
10983         when it does not have focus. Added support for more special folders.
10984
10985 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
10986
10987         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
10988         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
10989         it resets the edit_args.
10990         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
10991         [Fixes bug #82577]
10992
10993 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
10994
10995         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
10996         button to match MS. Provide more meaningful exception message for
10997         invalid RootFolder value. Use zero-length string when SelectedPath
10998         is set to null. Allow non-rooted paths in SelectedPath, but ignore
10999         them in FolderBrowserTreeView. Allow folders to be created in
11000         RootFolder. Fixes bug #82576.
11001
11002 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11003
11004         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
11005         since we need to take into account the group headers and the margin
11006         between them.
11007         * ListViewGroup.cs: Add a rows field to store the number of rows per
11008         group.
11009
11010 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11011
11012         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
11013           Anyways, let's just follow the lead.
11014
11015 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11016
11017         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
11018         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
11019         controls in GetPreferredSizeCore.
11020         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
11021         [Fixes bug #82488]
11022
11023 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
11024
11025         * PrintDialog.cs: Need to instantiate the form variable here too.
11026
11027 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11028
11029         * ListView.cs: Do some reorganization to support sorting in groups,
11030         by doing the layout sequentially in ListView.Items. Also add support
11031         for the Default Group, which should be available for items with no
11032         group assigned.
11033         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
11034         for storing layout info also.
11035         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
11036         collection, as well as providing internal members to do a traversal
11037         including the default group (needed when doing layout/drawing).
11038         * ThemeWin32Classic.cs: When drawing group headers use internal
11039         ListViewGroupCollection members to take into account the default
11040         group.
11041
11042 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
11043
11044         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
11045
11046 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11047
11048         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
11049         been created.  If handle is created, we want arror keys.  If we are editing
11050         a node, we want things like enter, esc, home, end, page up, page down.
11051         Allows Esc to work for FolderBrowserDialog.
11052
11053 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11054
11055         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
11056         they close when ESC is pressed.  Thanks Andy!
11057
11058 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11059
11060         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
11061         This way we can tell if this is a CommonDialog provided with mono, or one
11062         that is being implemented outside by a developer.  If it is an external one,
11063         the developer is responsible for showing their own form.  We were showing
11064         our blank form after the developer showed his.
11065         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
11066         PageSetupDialog.cs: Instantiate form variable in our constructor.
11067         [Fixes bug #82531]
11068
11069 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11070
11071         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
11072         and always return true.  [Fixes bug #81616]
11073
11074 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
11075
11076         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
11077         TextBox.  [Fixes bug #82549]
11078
11079 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
11080
11081         * FileDialog.cs: When Save/Open is clicked and no filename is selected
11082         or entered then do not close the dialog. Fixes bug #82539. Removed
11083         CWLs.
11084
11085 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
11086
11087         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
11088         code to this method. It is calling every time filter changes. This method
11089         will help to fix the bug #80887.
11090
11091 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11092
11093         * CheckBox.cs: Implement AutoSize calculation.
11094
11095 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
11096
11097         * CheckBox.cs: Use new 2.0 rendering for 2.0.
11098         * Theme.cs: Method declarations for 2.0 rendering path.
11099         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
11100
11101 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11102
11103         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
11104
11105 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11106
11107         * ListViewGroupCollection.cs: Implement AddRange the right way, to
11108         only call Redraw on the parent one time.
11109
11110 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11111
11112         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
11113           GetClipboardContent.
11114         * DataGridViewCell.cs: Implemented GetClipboardContent,
11115           GetEditedFormattedValue, GetFormattedValue.
11116         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
11117
11118 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11119
11120         * TableLayoutStyleCollection.cs: corcompare fix.
11121
11122 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11123
11124         * DataObject.cs: Implemented retrieval of convertible / not convertible
11125           objects.
11126
11127 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
11128
11129         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
11130         ourselves.  This ensures the entire old bounds are repainted, in case our new
11131         size is smaller.  [Fixes bug #82518]
11132
11133 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
11134
11135         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
11136         flag to make fast handle of mouse events, without this the mouse move is
11137         handled in some manner, whether it is a mouse move or not. Fixes #81588.
11138
11139 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11140
11141         * ListView.cs: When doing layout calculations don't use a ref
11142         param to keep the current item; instead use its Index value (this 
11143         is specially important when doing the layout with Groups
11144         and Items being sparse). Also don't take into account items added to
11145         the Group but not yet added to the main ListView.Items collection.
11146
11147 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11148
11149         * ListViewGroupCollection.cs: Forgot to mimic an issue
11150         in the indexer (don't assign the ListView owner for new values).
11151
11152 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11153
11154         * ListViewGroupCollection.cs: Make the string indexer use
11155         the int based indexer to re-use code, instead of duplicate the code.
11156         Also Redraw as needed and take into account null values.
11157
11158 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11159
11160         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
11161         [Fixes bug #82481]
11162
11163 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
11164
11165         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
11166         when other buttons are clicked or navigated to.
11167
11168 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11169
11170         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
11171           it's XplatUIX11 that attaches them.
11172
11173 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11174
11175         * DataGridView.cs: If a column has been added, recreate the editing row.
11176           Fixes #82226.
11177
11178 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11179
11180         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
11181           of the tag to draw. Makes disappearing text show up again.
11182
11183 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11184
11185         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
11186           Contents. Fixes #82487.
11187
11188 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11189
11190         * Added HtmlElement.cs, HtmlElementCollection.cs, 
11191           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
11192           
11193 2007-08-19  Andreia Gaita  <avidigal@novell.com>
11194
11195         * BindingSource.cs: Implement this, dispose and getenumerator.
11196         * DataGridViewRowCollection.cs: Move the InvalidOperationException
11197         out of AddInternal, throw it only on public Add calls. The 
11198         UsingWebBrowser sample was blowing up with this when setting the
11199         DataSource after adding DataBindings, so it's likely that .net
11200         only throws this exception when Add is called directly. 
11201         
11202         * ToolStripControlHost.cs: Return the hosted control's text
11203         property, and not the ToolStripItem one (it would always return
11204         the initial value).
11205         
11206         * HtmlDocument.cs: Implement GetElementById and All
11207         * WebBrowser.cs: Remove exception on set_DocumentStream.        
11208
11209 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11210
11211         * Form.cs: Fix the max and min value for opacity (0~1).
11212
11213 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11214
11215         [Fixes #80118]
11216         * DataGridTableStyle.cs: Default header font is now null, on getter it 
11217         returns datagrid font when is null. On setter permits null.
11218
11219         * DataGrid.cs:
11220         - When ResetHeaderFont set header font to null.
11221         - On EndInit set grid_style.DataGrid.
11222
11223 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11224
11225         * TabControl.cs: Fix regression in default padding x.
11226
11227 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11228
11229         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
11230
11231 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
11232
11233         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
11234         not 2. Fixes #82229.
11235
11236 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11237
11238         * TabControl.cs: Fix tab size when image height is less than text height.
11239         Partially fixes #81837.
11240
11241 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11242
11243         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
11244         "alt + tab". It works only for Win32, for X11 theres no way to remove window
11245         from taskbar and keep it on "alt_tab". Fixes #81722.
11246
11247 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11248
11249         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
11250         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
11251         Fixes #80877 and #79418.
11252
11253 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11254
11255         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
11256         between position and one of the screen borders. Fixes #82349.
11257
11258 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11259
11260         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
11261         the MessageBox in the taskbar. Fixes #82457.
11262
11263 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
11264
11265         * MessageBox.cs: Fix form size when icon is set and text height is bigger
11266         than icon. Fixes #82468.
11267
11268 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11269
11270         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
11271         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
11272           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
11273           Refactored HandleNCCalcSize somewhat to avoid code duplication.
11274         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
11275           FormBorderStyle to decide if we're calculating a new size from the
11276           client size or not. CreateParams: Don't fake tool windows, only the X11
11277           backend manages toolwindows manually.
11278
11279 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11280
11281         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
11282         ObjectDisposedException.
11283
11284 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11285
11286         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
11287         in OnLoad should not have any effect.  [Fixes bug #82470]
11288
11289 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11290
11291         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
11292         paint for controls that create their own ToolTipWindow instead of
11293         going through ToolTip.
11294
11295 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11296
11297         * ToolTip.cs: Make Hide internal instead of public to match MS API.
11298
11299 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11300
11301         * ListViewGroupCollection.cs: Use generic List instead of an
11302         ArrayList, since this collection is 2.0 only.
11303
11304 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
11305
11306         * ToolTip.cs (Hide): Made public to make the build work (should
11307         this not be public?).
11308
11309 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11310
11311         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
11312         ToolTipWindow.
11313         * ToolTip.cs: Add an internal Visible property to facilitate transition.
11314
11315 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
11316
11317         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
11318         PopupEventHandler.cs: Make these internal for 1.1.
11319         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
11320         use ToolTipWindow internals.
11321         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
11322         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
11323
11324 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11325
11326         * X11Dnd.cs: Add a null check.
11327
11328 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11329
11330         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
11331           nothing else succeeds. Fixes #82453.
11332
11333 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11334
11335         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
11336           rectangle if we're painting to another window than the one the paint
11337           message was generated on. Simplify the code somewhat, which makes
11338           PaintEventEnd also simpler.
11339
11340 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11341
11342         * Control.cs: When changing parent of a form, let the form decide whether
11343           XplatUI.SetParent should be called or not.
11344         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
11345           recreating the handle. If the new parent's handle isn't created, don't
11346           recreate our handle, just destroy it. CreateParams: Check if the
11347           parent's handle is created before fetching it.
11348
11349 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11350
11351         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
11352           Update calls to PaintEventStart/End to take a Message argument.
11353         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
11354           take a Message argument.
11355         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
11356           Message argument, and handle the case where we don't paint to the window
11357           for which the paint message was generated.
11358
11359 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11360
11361         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
11362           Marshal.GetLastWin32Error. Plug nasty memory leak in
11363           PaintEventStart/End, we were creating a DC we weren't releasing.
11364
11365 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11366
11367         * ListView.cs: Add Groups support in Details view. Also have a small
11368         method to do the layout of the group header. Don't use a separate
11369         method to do the groups calculation in Icons view, since our methods
11370         are now a little simpler.
11371         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
11372         `Bounds'.
11373         * ThemeWin32Classic.cs: Likewise.
11374
11375 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11376
11377         * Application.cs: Add FilterMessage method and rework our message loop
11378         logic to use it.
11379
11380 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
11381
11382         * Application.cs: Add some methods and stub a few methods that are
11383         pretty much never used.
11384
11385 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
11386
11387         * TreeNode.cs: Add some serialization methods.
11388
11389 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11390
11391         * ListView.cs: In ListViewItemCollection have a 
11392         'is_main_collection' field to not modify ListViewItem.ListView
11393         when using it as ListViewGroup.Items (and not ListView.Items)
11394         and also don't modify selection state (.Net behaviour). 
11395         Instead, set group for items contained in a ListViewGroup.Items collection.
11396         * ListViewItem.cs: Simplify some code in Group setter.
11397         * ListViewGroup.cs: use the new .ctor to pass the current instance
11398         to the ItemsCollection.
11399         * ListViewGroup.cs: Set the ListView property for ListViewGroup
11400         instances when adding/removing. Also make Remove use RemoveAt, which
11401         should perform better.
11402
11403 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11404
11405         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
11406         that crept into the 1.1 profile.
11407
11408 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11409
11410         * ToolBarButton.cs: Implement ImageKey.
11411
11412 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
11413
11414         * ToolBar.cs: Implement ScaleControl/ScaleCore.
11415
11416 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11417
11418         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
11419           created, it might have gotten destroyed since we last checked. Fixes
11420           #82405.
11421
11422 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
11423
11424         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
11425         tooltip will hide when mouse is moved off the control.
11426         [Fixes bug #82407]
11427
11428 2007-08-11 Andreia Gaita <avidigal@novell.com>
11429
11430         * WebBrowserBase.cs, WebBrowser.cs: add implementation
11431         using Mono.Mozilla for loading and navigating webcontrol
11432         with xulrunner.
11433         The initial implementation was done on 
11434         /trunk/mozembed/tests/browser , and copied here.
11435
11436 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
11437
11438         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
11439         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
11440
11441 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11442
11443         * DataGridView.cs: Add support for an editing row. Fixes #82226.
11444           RowTemplateFull: throw an exception if a column doesn't have a template.
11445         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
11446           add the row just before it.
11447         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
11448           selected.
11449         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
11450           DataGridView field to be able to reach the grid's editing row.
11451
11452 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11453
11454         * ToolTip.cs: If the control's handle hasn't been created when it has a
11455         tooltip set on it, don't check to see if we need to show the tooltip.  This
11456         check was causing the control's handle to be created.
11457         [Fixes bug #82399]
11458
11459 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11460
11461         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
11462                                         1.1             2.0
11463         Handle Not Created      -1              0
11464         Handle Created          0               0
11465         [Fixes bug #82371]
11466
11467 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
11468
11469         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
11470         [Fixes bug #82348]
11471
11472 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11473
11474         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
11475         * ToolTip.cs: Implement some properties and owner draw.
11476
11477 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11478
11479         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
11480           show them again, since setting visibility causes a paint, causing an
11481           endless loop (instead use a temporary and set it all when it's known if
11482           they should be shown or not). Fixes #79265.
11483
11484 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11485
11486         * DataGridView.cs: Only do a full column/row selection if a header was
11487           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
11488           isn't pressed, deselect everything before selecting something.
11489
11490 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11491
11492         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
11493           behaviour according to bug #81075 - they are returned in the order they
11494           are selected. Fix HitTest to check if the point is within any of the
11495           headers. Allow for row/column selection when in ColumnHeader or
11496           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
11497           the row and column to call when their selected state changes, and
11498           updated selected_[rows|columns] whenever SetSelected* is called.
11499         * DataGridViewBand.cs: Initialize isRow correctly. Call
11500           SetSelected[Row|Column]CoreInternal when the selected state changes, and
11501           add a SelectedInternal to avoid StackOverflows.
11502         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
11503           ReadOnly no matter what.
11504         * DataGridViewSelectedColumnCollection.cs,
11505           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
11506           the items in reverse order (just as MS does...)
11507
11508 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
11509
11510         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
11511         itself, not part of a mnemonic.  [Fixes bug #82378]
11512
11513 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11514
11515         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
11516         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
11517           the DGV, the column, the row, or the cell itself is readonly.
11518
11519 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11520
11521         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
11522         OSVersion.Platform.
11523         * FileDialog.cs: Same.
11524         * TextRendered.cs: Same.
11525         * FolderBrowserDialog.cs: Same.
11526         * TextBoxBase.cs: Same.
11527         * Application.cs: Same.
11528         * Cursors.cs: Same.
11529         * ThemeClearLooks.cs: Same.
11530
11531 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
11532
11533         * XplatUI.cs: Added RunningOnUnix property to be used by controls
11534         instead of duplicating these checks everywhere.
11535         * FileDialog.cs: Use case-insensitive comparison for populating the
11536         DirComboBox when not running on unix. Fixes bug #82385.
11537         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
11538         "Look in".
11539
11540 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11541
11542         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
11543           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
11544           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
11545           cell and column selection with ctrl and shift pressed. Call the correct
11546           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
11547           the corresponding virtual method (PaintBackground to paint background,
11548           etc).
11549         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
11550           either the column, row or the cell itself is selected.
11551         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
11552           OnRowsAdded.
11553         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
11554           here. When the row is selected, don't select all cells. Each cell now
11555           queries the row to see if the row is selected.
11556
11557 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11558
11559         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
11560           SelectionMode.
11561
11562 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11563
11564         * ListView.cs: In ListViewItemsCollection check that owner is
11565         not null before trying to access it (this happens quite often
11566         using Groups). Also don't duplicate calls by calling CollectionChanged
11567         method.
11568
11569 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11570
11571         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
11572         when we are dismissed to clear keyboard mnemonics.
11573         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
11574         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
11575         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
11576         was activated by keyboard or the OS tells us to always draw them.
11577         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
11578         [Fixes bugs #82376, #82377]
11579
11580 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11581
11582         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
11583         shot at having it because Alt was pressed.
11584         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
11585         the first real menu item.
11586         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
11587         a mnemonic if Text is null.
11588         [Fixes bug #82374]
11589
11590 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11591
11592         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
11593         search do check whether the item is already contained in the
11594         collection or not; instead check if the owner of the item is the same
11595         as ours. Also, remove a redundant check in the same method. 
11596
11597 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
11598
11599         * Control.cs: Allow the clip region to be set back to null.
11600         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
11601         [Fixes button still showing up in bug #82370 when Show Through is turned off]
11602
11603 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11604
11605         * GridEntry.cs: Add a null check.
11606         * PropertyGrid.cs: When checking for existing grid entries, ignore category
11607           entries. Fixes #82297.
11608
11609 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11610
11611         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
11612         for 2.0.
11613
11614 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
11615
11616         * ListBox.cs: Implement ScaleControl.
11617
11618 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11619
11620         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
11621           have a menu strip.
11622         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
11623           parent has a menu strip. Fixes #81689.
11624
11625 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11626
11627         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
11628           moments, so apply some fuzzy logic to determine if the mouse is still
11629           inside a control or not. Fixes #82288 (for the third time).
11630
11631 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11632
11633         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
11634           Don't create the child if it has been disposed already (may happen if
11635           the user closes the form the Load event).
11636
11637 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11638
11639         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
11640           #82288.
11641
11642 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11643
11644         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
11645           might call us after we've been destroyed, in which case our own private
11646           parent field is null. Fixes #82326.
11647
11648 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11649
11650         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
11651         check for setting the dropdown's owner.
11652
11653 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
11654
11655         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
11656         before removing system menu items.
11657
11658 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
11659
11660         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
11661         folding.
11662         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
11663         folding.
11664         * ToolStrip.cs: Add a null check to mnemonics.
11665         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
11666         no ConnectedArea.
11667         [Fixes most of bug #81689]
11668
11669 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11670
11671         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
11672
11673 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11674
11675         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
11676
11677 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11678
11679         * DataGridViewCell.cs: EditType: returns
11680           DataGridViewTextBoxEditingControl always.
11681
11682 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
11683
11684         * TextRenderer.cs: Remove the LineLimit string format flag from the
11685         DrawString fallback method so that things like buttons that aren't
11686         tall enough to draw a full line will still draw part of the text.
11687         [Fixes part of bug #82272]
11688
11689 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11690
11691         * DataGridView.cs: Implemented AutoResizeColumn(s).
11692         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
11693           according to the Alignment.
11694         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
11695           Implement alignment and padding when painting.
11696         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
11697           exists.
11698         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
11699           way.
11700         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
11701           a column is added.
11702
11703 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11704
11705         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
11706         which is internal.
11707
11708 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11709
11710         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
11711         hide GetPreferredSize from public API.
11712         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
11713         * ToolStripItem.cs: Stub out drag and drop methods and events.
11714         * ToolStripManager.cs: Stub out Save/LoadSettings.
11715         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
11716         * ToolStripPanel.cs: Fix corcompare error.
11717         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
11718         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
11719         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
11720
11721 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
11722
11723         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
11724         bounds height instead of PreferredHeight.  Puts things back the way 
11725         they were for height while still fixing the width.  Fixes broken unit
11726         tests.
11727
11728 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11729
11730         * Binding.cs: Implement 2.0 constructors and add a null check.
11731
11732 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11733
11734         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
11735           and fix row index (off by one).
11736
11737 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11738
11739         * PropertyGridView.cs: Remove debug output.
11740
11741 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11742
11743         * Control.cs: We need to reset the is_created flags when the handle is
11744           destroyed. Fixes #82187.
11745         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
11746           client coordinates if the window doesn't have a parent.
11747           Win32GetParent returns the parent or the owner, and for top-level
11748           windows with no parent (but with an owner) we were calculating the
11749           location from the location of the owner.
11750         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
11751           form has been disposed.
11752         * MdiClient.cs: Add a null-check.
11753
11754 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11755
11756         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
11757         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
11758         so we can provide an implementation that returns the current width
11759         and preferred height.  Allows anchor = right to work with TextBox 2.0.
11760         [Fixes bug #82233]
11761
11762 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11763
11764         * ListView.cs: Add support for navigating items in Groups mode, by
11765         creating a big matrix containing all rows and cols of all groups. When
11766         are in other mode than Details, pressing Up should have a similar
11767         behaviour as that one of Down (moving to the next available column if
11768         current one doesn't have an item in the requested row). Also, don't
11769         proceed to use groups if ShowGroups is false.
11770         * ListViewGroup.cs: Add an internal int field to store the starting
11771         row of the group (used by the big matrix used for navigating the
11772         ListView).
11773         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
11774         false.
11775
11776 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
11777
11778         * ToolStripDropDown.cs: When we do Show, start with the 
11779         DefaultDropDownDirection, but if our popup menu is going to off-screen,
11780         modify the direction to keep it on screen.  [Fixes bug #82210]
11781
11782 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
11783
11784         * FileDialog.cs: Accept any FilterIndex value, and store it
11785         unmodified. When FilterIndex is less than 1, or greater than number
11786         of filters, then default to first filter. Only add filter extension to
11787         file if user did not specifiy an extension. When type of dialog is
11788         OpenFileDialog and DefaultExt is set, then only use filter extension
11789         if: CheckFileExists is true and no file wih the default extension
11790         exists, or CheckFileExists is false, and user specified file does not
11791         exist. When CheckFileExists is true, then add first extension of 
11792         selected filter that matches existing file. Perform checks for
11793         existing file, overwrite and create after extension has been added to
11794         file name. When CheckFileExists is true and type is SaveFileDialog,
11795         then only consider first filter extension if DefaultExt is set.
11796         When CheckFileExists is true, then ignore DefaultExt if file with that
11797         extension does not exist. Also perform check for existing file when
11798         type is SaveFileDialog. Changed some field to constants.
11799
11800 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11801
11802         * ListView.cs: Take into account the region used by header
11803         control when doing the vertical scroll (this way we invalidate
11804         the precise area, and don't get any dirty one).
11805
11806 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
11807
11808         * FileDialog.cs: Check for valid filterIndex on button open/save. 
11809         Fixes #82184.
11810
11811 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11812
11813         * ListView.cs: Update some layout calculations in details view
11814         and clean the code in a pair of assignations.
11815
11816 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11817
11818         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
11819         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
11820         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
11821         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
11822
11823 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11824
11825         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
11826         performance of thread-safe Graphic methods.  (Thanks rolf!)
11827
11828 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11829
11830         * ListView.cs: When doing the layout calculations, don't calculate
11831         scroll bars before handle is created. This is unnecessary and also
11832         calculating them before handle creation item causes a number of random
11833         bugs (which begin to appear after Chris' big patch for handle creation
11834         fixes). 
11835
11836 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
11837
11838         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
11839         for things that don't have a Graphics object.  Currently, things just use
11840         the static Hwnd.bmp_g which is not thread safe.
11841
11842 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11843
11844         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
11845           dialog. Fixes #82187.
11846
11847 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11848
11849         * DataGridViewElement.cs: Initialize state.
11850         * DataGridView.cs: Forward a few Mouse events to cells. Add
11851           GetRowInternal and GetCellInternal that doesn't unshare rows.
11852           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
11853           don't use the index, but look it up. Add
11854           DataGridViewControlCollection.RemoveInternal to remove controls
11855           that Remove won't remove (scrollbars, edit control).
11856         * DataGridViewColumn.cs: Initialize State correctly.
11857         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
11858           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
11859           implementing this.
11860         * DataGridViewRowCollection.cs: Implemented shared rows.
11861         * DataGridViewRow.cs: Throw exceptions as MS do.
11862         * DataGridViewCell.cs: A few properties are implemented by a
11863           Get<Property> method, so move implementation there and remove the
11864           NIEX in the method. Add a bunch of OnXInternal that DataGridView
11865           calls when necessary.
11866         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
11867           complicates matters.
11868         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
11869           unshare any rows.
11870
11871 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11872
11873         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
11874         the children controls.  Instead, we will just set up the proper docking for the
11875         children controls so we don't have to worry about it.  [Fixes bug #82188]
11876
11877 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11878
11879         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
11880         canceling and correct Before/AfterLabelEdit properties as layed out in bug
11881         81847.  [Fixes bug #81847]
11882
11883 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
11884
11885         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
11886         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
11887         an explicit size based on the design-time size of the text.  Since our fonts
11888         may not match this explicit size, we tend to cut off the ends of people's labels.
11889
11890 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
11891
11892         * Menu.cs: Add some missing methods to MenuItemCollection.
11893
11894 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11895
11896         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
11897         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
11898         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
11899         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
11900         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
11901         * DataGridViewElement.cs: State defaults to Visible.
11902         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
11903         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
11904
11905 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11906
11907         * Control.cs: Minor 1.1 corcompare fix.
11908
11909 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11910
11911         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
11912         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
11913
11914 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11915
11916         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
11917           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
11918           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
11919           DataGridViewSelectedColumnCollection.cs,
11920           DataGridViewSelectedRowCollection.cs: Corcompare work.
11921
11922 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11923
11924         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
11925         it is autoset by VS2005 designer and the effect is barely noticeable.
11926
11927 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
11928
11929         * TreeView.cs: Implement HitTest.
11930
11931 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11932
11933         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
11934           manually adding and removing the control from the Controls
11935           collecftion.
11936         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
11937           EditingControlInternal property that tracks the editing control.
11938           Always keeping the scrollbars in the Controls collection, as MS
11939           testing confirms is the right behaviour.
11940
11941 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11942
11943         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
11944           according to MSDN and new test.
11945
11946 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11947
11948         * TreeNode.cs: Implement ToolTipText.
11949         * TreeView.cs: Implement tooltips, NodeMouse* events.
11950
11951 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11952
11953         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
11954
11955 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11956
11957         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
11958         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
11959
11960 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
11961
11962         * Control.cs, Form.cs, ContainerControl.cs,
11963         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
11964         for misc properties.
11965
11966 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
11967
11968         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
11969         * TreeView.cs: Implement StateImageList.
11970
11971 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11972
11973         * Form.cs: Don't check if the current form is the active form before
11974           activating it. Fixes #81904.
11975
11976 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11977
11978         * Form.cs: Don't check if the current form is the active form before
11979           activating it. Fixes #81904.
11980
11981 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11982
11983         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
11984
11985 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11986
11987         * Form.cs: Don't try to position the form after loading if the form was
11988           disposed. Fixes #81969.
11989
11990 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11991
11992         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
11993           properties. Had to change ToolBar into ToolStrip, which required a
11994           few #ifs.
11995
11996 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11997
11998         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
11999           resized, fixes part of #79829 (vertical lines in toolbar).
12000           PropertyGrid: Refactored Populate* to something that's easier to
12001           follow at least for me, as well as splitting it up into several new
12002           methods, required to update only subitems when something has
12003           changed by a popup editor or listbox. Don't use events to check
12004           when any values are changed, since the events are unreliable (we're
12005           changing the objects the events are registered with, and if the
12006           event handling requires the objects to be immutable (objects stored
12007           in hashtables for instance), the events will never be raised).
12008         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
12009           everytime we change a value, since events are unreliable.
12010           DropDownButtonClicked: For the same reason don't compare objects to
12011           check if it has changed or not, it would require all objects to
12012           derive Equals. Fix dialog location on windows, MS is doing weird
12013           things when creating parented forms.
12014         * GridEntry.cs: Add a SelectedObject setter.
12015
12016 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12017
12018         * TreeNode.cs: Add some corcompare attributes.
12019         * TreeNodeCollection.cs: Implement 2.0 stuffs.
12020         * TreeView.cs: Implement some 2.0 stuffs.
12021
12022 2007-07-18  Andreia Gaita  <avidigal@novell.com>
12023
12024         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
12025         for moma.
12026
12027 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
12028
12029         * ListBox.cs: Implement custom tab offsets.
12030
12031 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12032
12033         * ToolStripContentPanel.cs: Support System renderer.
12034         * ToolStripControlHost.cs: Set RightToLeft to default to No.
12035
12036 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12037
12038         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
12039
12040 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12041
12042         * CheckBox.cs: Chain TextAlign to base implementation instead of
12043         maintaining another one.
12044
12045 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12046
12047         * ButtonBase.cs: Fix an incorrect string constant.
12048
12049 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12050
12051         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
12052         of creating one for measuring strings.
12053
12054 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
12055
12056         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
12057         Implement MaxItemSize.
12058
12059 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12060
12061         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
12062         for DeviceContext.  Instead, use the static one available in Hwnd.
12063         Informal tests show this saves about 500k on formtest.exe.
12064
12065 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
12066
12067         * ContainerControl.cs: Implement 2.0 AutoScaling.
12068
12069 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12070
12071         * ComboBox.cs: Work around bug #82120 (bug in mcs).
12072
12073 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12074
12075         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
12076         Darken the focus color.
12077
12078 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
12079
12080         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
12081         for the checkbox.
12082         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
12083         X, Y instead of a rect for drawing text.
12084         - For ControlPaint.DrawCheckBox, center the check a little better when the
12085         checkbox is odd width.  When drawing a flat checkbox, use a white background
12086         when state != inactive.
12087         [Fixes bugs #82097, 82100]
12088
12089 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
12090
12091         * ListControl.cs: When changing CurrencyManager, disconnect event
12092         handlers from previous one. Fixes bug #81771. Code formatting.
12093
12094 2007-07-15  Andreia Gaita <avidigal@novell.com>
12095
12096         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
12097         full preview invalidation from layout invalidation, and only invalidate
12098         the layout when setting zoom or other properties. Invalidation should
12099         always be done even when resetting properties with the same values as
12100         what is there. Fixes #81744 and #79830.
12101
12102 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12103
12104         * ListView.cs: Implement initial support for Groups. Split some of the
12105         LayoutIcons code to render a partial list of the items (needed by
12106         items contained in ListViewGroup instances). Let the
12107         ListViewItemsCollection.ListView property be modifiable (needed when
12108         using Groups, too).
12109         * ListViewGroup.cs: Use a Bounds property rather than a Location
12110         one. Also invalidate the bounds when they get changed.
12111         * ThemeWin32Classic.cs: When drawing items, also draw the group header
12112         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
12113         method as well.
12114
12115 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12116
12117         * ListView.cs: When space gets pressed and CheckBoxes is true, 
12118         don't invoke the Begin and EndUpdate methods. We are generating 
12119         a redraw of the entire control without need to do so.
12120
12121 2007-07-13  William Holmes <billholmes54@gmail.com> 
12122
12123         * Control.cs: Changing logic in FindFlatForward and 
12124           FindFlatBackward to handle multiple Controls with 
12125           the same TabIndex.  
12126           This fixes bug 81687.
12127
12128 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
12129
12130         * OSFeature.cs: Enable IsPresent.
12131
12132 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12133
12134         * Control.cs: Don't do anything in WmShowWindow if the control has been
12135           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
12136           control is created, put on a form, the control is disposed (the
12137           form is never shown), and then we get a MapNotify, triggering a
12138           WM_SHOWWINDOW.
12139         * Form.cs: Exclude the current form when sending Deactivate to all
12140           MdiChildren.
12141         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
12142           there was a race condition because assigning the handle raises
12143           events, we can get more messages, therefore trying to assign the
12144           handle again, which would fail if any of those event handlers
12145           closed/disposed the control.
12146
12147 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12148
12149         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
12150
12151 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12152
12153         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
12154         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
12155
12156 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12157
12158         * DateTimePicker.cs: If there's no part format specifier, return an
12159           empty string.
12160
12161 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
12162
12163         * FlatButtonAppearance.cs: Throw NotSupportedException for a
12164         Transparent BorderColor.
12165
12166 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12167
12168         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
12169           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
12170           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
12171           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
12172           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
12173           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
12174           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
12175           Remove warnings.
12176         * X11Structs.cs: Remove warnings, add ToString implementations.
12177
12178 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12179
12180         * XplatUIX11.cs: Translate min/max size according to the actual min/max
12181           size, and not the current size. Fixes #81798.
12182
12183 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12184
12185         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
12186           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
12187           to the control yet).
12188
12189 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12190
12191         * PropertyGridTextBox.cs: Add a method that sends any forwarded
12192           mousedowns to the contained textbox.
12193         * X11Structs.cs: More ToString implementation.
12194         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
12195           #81791.
12196
12197 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12198
12199         * PropertyGridView.cs: Add a null-check, fixes a few tests.
12200
12201 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12202
12203         * TableLayoutPanelCellPosition.cs: TypeConverter.
12204
12205 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12206
12207         [ Fixes #79761]
12208         
12209         * PropertyGridTextBox.cs: Propagate any color changes to all contained
12210           controls.
12211         * PropertyGridView.cs: A few color fixes.
12212
12213 2007-07-10  Jackson Harper  <jackson@ximian.com>
12214
12215         * TextControl.cs: Remove some old unused text formatting stuff.
12216
12217 2007-07-10  Jackson Harper  <jackson@ximian.com>
12218
12219         * TreeView.cs: Update full row select invalidation to match the
12220         newer DrawSelection... method.
12221         - Make sure to invalidate the entire width when selecting a new
12222         node, if we have full row selection enabled.
12223
12224 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12225
12226         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
12227           display of properties again.
12228
12229 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
12230
12231         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
12232         to existing collections.
12233
12234 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12235
12236         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
12237         that changed between 1.1 and 2.0.
12238
12239 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12240
12241         * PowerStatus.cs: Added.  This is just a data class, it is filled
12242         in by SystemInformation.
12243
12244 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12245
12246         * Message.cs: Add op_Equality and op_Inequality.
12247
12248 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12249
12250         * MenuStrip.cs: Finish corcompare work.
12251
12252 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12253
12254         * LinkArea.cs: Add op_Equality and op_Inequality.
12255
12256 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12257
12258         * Application.cs: Add MessageLoopCallback delegate.
12259
12260 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12261
12262         * ListBox.cs: First set of 2.0 stuffs.
12263
12264 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
12265
12266         * Control.cs: Make an internal Height property we can override
12267         without messing up the public API.
12268         * ListBox.cs: Override HeightInternal to always return the size
12269         the user set.  [Fixes bug #80466]
12270
12271 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
12272
12273         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
12274         paint cell borders if we haven't calculated where they go yet.
12275         [Fixes bugs #82040 and #82041]
12276
12277 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12278
12279         * ListView.cs: In Details view, set the location of item_control
12280         in the (0,0) position (and the header_control is thus on the
12281         item_control). This way the Bounds of the Items are relative to the
12282         ListView control (before this, they had a Bounds value without the
12283         header_control offset, which wasn't matching .Net). Fixes #82004.
12284
12285 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12286
12287         * ListControl.cs: When DataSource is set to null, pass an empty
12288         array of object to SetItemsCore. This is done to clean the items
12289         in the ListContol children. Fixes #81788.
12290
12291 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12292
12293         * ListControl.cs: Add 2.0 stuffs.
12294
12295 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12296
12297         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
12298         Refresh is overkill for just about every repaint request.
12299
12300 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12301
12302         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
12303         so remove my custom Get method and fix the property getter.
12304
12305 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12306
12307         * Label.cs: DefaultMargin for 2.0.
12308
12309 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12310
12311         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
12312         reported issue where other controls with mnemonics would steal strokes
12313         from a selected ComboBox.
12314
12315 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
12316
12317         * ScrollOrientation.cs: Make internal for 1.1.
12318         * ScrollEventArgs.cs: Add 2.0 stuffs.
12319
12320 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
12321
12322         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12323         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
12324         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
12325
12326 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12327
12328         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
12329
12330 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12331
12332         * ListView.cs: Implement the so-incredibly broken 2.0 
12333         VirtualItemsSelectionRangeChanged event.
12334
12335 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12336
12337         * ListView.cs: When enter is pressed and selection is non empty,
12338         an OnItemActivate event must be fired.
12339
12340 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12341
12342         * ListView.cs: Store the FocusedItem information as an
12343         int instead of a ListViewItem (needed by VirtualMode).
12344         Update the calls to SetFocusedItem to pass an index instead of
12345         an item.
12346         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
12347         the Focused state from the owner ListView. 
12348
12349 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12350
12351         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
12352         property. Also, invalidate previous focused item in the mentioned
12353         property (match .Net).
12354
12355 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12356
12357         * ListView.cs: Implement 2.0 FocusedItem property setter.
12358
12359 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12360
12361         * ListView.cs: Implement 2.0 TopItem property setter.
12362
12363 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
12364
12365         * StatusStrip.cs: The default renderer is System.
12366         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
12367         if the user specifies it.
12368         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
12369         if we are ManagerRenderMode.
12370         * ToolStripMenuItem.cs: Calculate our text color better.
12371         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
12372         from Professional to the base class based off working with the System renderer.
12373         * ToolStripSystemRenderer.cs: Added.
12374
12375 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12376
12377         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
12378
12379 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
12380
12381         * ToolTip.cs: Implement 2.0 Tag property.
12382
12383 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12384
12385         * ListView.cs: Implement 2.0 HitTest methods.
12386
12387 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12388
12389         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
12390         item is under the pointer or not (sugar). Also remove the TODO
12391         regarding to the cursor changes in OneClick activation.
12392         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
12393         the subitems use the parent's HotFont if UseItemStyleForSubItems is
12394         true; otherwise don't show the underline style.
12395
12396 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12397
12398         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
12399         the code to retrieve the item at position only one time. Also
12400         change cursor when Activation is ItemActivation.OneClick as well
12401         as invalidate the item if HotTracking is true (to show/hide the
12402         underline style). Add an internal HotItemIndex property to retrieve
12403         the current hot item's index.
12404         * ListViewItem.cs: Add an internal HotFont property to cache the
12405         font used when HotTracking is true and the pointer moves within the
12406         item's borders.
12407         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
12408         HotFont depending on the hot state of the item.
12409
12410 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12411
12412         * ListView.cs: Implement 2.0 HotTracking property.
12413
12414 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12415
12416         * ToolStripControlHost.cs: If our hosted control never got created,
12417         don't try to dispose it.  [Fixes bug #81909]
12418
12419 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12420
12421         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
12422
12423 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
12424
12425         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
12426
12427 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12428
12429         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
12430         Details view.
12431         * DrawListViewColumnHeaderEventArgs.cs:
12432         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
12433         using the DrawText () methods.
12434
12435 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
12436
12437         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
12438         background which got erased in my changes yesterday.
12439
12440 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12441
12442         * ListViewItem.cs: Actually set bounds for subitems in Details view
12443         (2.0 feature).
12444         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
12445         can invoke from the owner draw routines if we need it. Also, add
12446         support for Owner draw in Details view.
12447
12448 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12449
12450         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
12451         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
12452         ShowImageMargin setting, properly align text in a ToolStripLabel
12453         hosted on a ToolStripDropDown.
12454
12455 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12456
12457         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
12458         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
12459
12460 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12461
12462         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
12463
12464 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
12465
12466         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
12467         location to match ToolStripMenuItems.
12468
12469 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12470
12471         * DrawListViewColumnHeaderEventArgs.cs:
12472         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
12473         column headers in ListView. 
12474
12475 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12476
12477         * UserControl.cs: Implement AutoSize.
12478
12479 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12480
12481         * DrawListViewItemEventArgs.cs:
12482         * ListView.cs:
12483         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
12484         ListView.
12485
12486 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
12487
12488         * ToolStripDropDownItemAccessibleObject.cs: Added.
12489         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
12490         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12491         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
12492         ToolStripTextBox.cs: corcompare work.
12493
12494 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12495
12496         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
12497         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
12498         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
12499                 corcompare.
12500
12501 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
12502
12503         * OSFeature.cs: Add IsPresent.
12504         * PrintPreviewControl.cs: Add RightToLeft.
12505         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
12506         * SplitterPanel.cs: Add AutoSizeMode.
12507
12508 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12509
12510         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
12511         * MdiClient.cs: Add 2.0 ScaleControl.
12512         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
12513         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
12514
12515 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12516
12517         * Form.cs: Implement some scaling methods, stub some RTL methods,
12518         corcompare work.
12519
12520 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12521
12522         * Control.cs: corcompare work.
12523         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
12524
12525 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
12526
12527         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
12528         ControlPaint 2.0 stuffs.
12529
12530 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12531
12532         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
12533
12534 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12535
12536         * UpDownBase.cs: Add 2.0 stuffs.
12537
12538 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12539
12540         * NumericUpDown.cs: Add 2.0 stuffs.
12541
12542 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12543
12544         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
12545
12546 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12547
12548         * ErrorProvider.cs: Implement 2.0 stuffs.
12549
12550 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12551
12552         * DomainUpDown.cs: Implement 2.0 stuffs.
12553
12554 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12555
12556         * CheckedListBox.cs: Fix RefreshItems signature.
12557
12558 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
12559
12560         * PictureBox.cs: Implement 2.0 stuffs.
12561
12562 2007-06-12  Andreia Gaita  <avidigal@novell.com>
12563         
12564         * TabControl.cs: Check if there are tabpages before checking
12565         the selected index - fix #81802 (font changes raise a ResizeTabs
12566         call on controls.add, which blew up nicely with no tabpages)
12567
12568 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12569
12570         * ListView.cs:
12571         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
12572
12573 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12574
12575         * ListView.cs:
12576         * ListViewItem.cs: In VirtualMode the selection information
12577         resides in the ListView, rather than in the Items. Also, throw
12578         InvalidOperationExceptions when VirtualMode is being used and
12579         CheckedItemCollection is accessed.
12580
12581 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12582
12583         * ComboBox.cs: Add ScaleControl.
12584
12585 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12586
12587         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
12588
12589 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12590
12591         * GroupBox.cs: Add 2.0 stuffs.
12592
12593 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
12594
12595         * Panel.cs: Add autosize properties/event.
12596
12597 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12598
12599         * Control.cs:
12600         - When we remove a control, remove it from the collection before performing the layout.
12601         - Setup an internal property for explicit_bounds.
12602         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
12603         - Perform a layout when we set a new AutoSizeMode.
12604
12605 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
12606
12607         * ScrollableControl.cs: Add 2.0 stuffs.
12608
12609 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12610
12611         * ScrollBar.cs: Add 2.0 stuffs.
12612
12613 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12614
12615         * Splitter.cs: Add 2.0 stuffs.
12616
12617 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12618
12619         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
12620         to have BindingContext simply use base implementation.
12621
12622 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12623
12624         * ColumnHeader.cs: corcompare fix.
12625
12626 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12627
12628         * Button.cs: corcompare fixes.
12629         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
12630
12631 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
12632
12633         * Button.cs: Override GetPreferredSizeCore.
12634         * ButtonBase.cs: PerformLayout after changing properties that can affect
12635         AutoSize.  Simplify some mouse/keyboard code.
12636         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
12637         * MouseEventArgs.cs: Make Location internal for 1.1.
12638         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
12639         * Theme.cs: Add CalculateButtonAutoSize.
12640         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
12641
12642 2007-06-05  Miguel de Icaza  <miguel@novell.com>
12643
12644         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
12645
12646 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12647
12648         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
12649         since we can get different item instances every time we retrieve it.
12650
12651 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12652
12653         * ListView.cs: Work around for #81602, since an unkown an pretty
12654         infrequent condition appears only in some systems (old linux boxes, it
12655         seems).
12656
12657 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12658
12659         * Button.cs: Completely reformat and a little refactor to bring
12660         this closer to Mono circa 2007.
12661
12662 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12663
12664         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
12665         to be ButtonBase.Invalidate.
12666
12667 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12668
12669         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
12670
12671 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
12672
12673         * ButtonBase.cs: Completely reformat and a little refactor to bring
12674         this closer to Mono circa 2007.
12675
12676 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
12677
12678         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
12679         values for autosize. Fixes #80137.
12680
12681 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12682
12683         * Control.cs: Don't perform layout when AutoSize changes.
12684         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
12685         directly when autosizing, use SetBounds with BoundsSpecified.None.
12686         Fixes unit tests my last commit broke.
12687
12688 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12689
12690         * Control.cs: Perform layout when AutoSize changes.
12691         * Form.cs: Implement AutoSizing.
12692
12693 2007-06-01  Chris Toshok  <toshok@ximian.com>
12694
12695         * DataGrid.cs: remove the XXX'ed check at the top of
12696         ProcessGridKey.  fixes #80464.
12697
12698 2007-06-01  Chris Toshok  <toshok@ximian.com>
12699
12700         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
12701         adding idempotent (add/remove in Edit()), and also make sure we
12702         don't add it until after we set the text, so it's not tripped in
12703         Edit().  Fixes unit test regression.
12704
12705 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
12706
12707         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
12708         change is user explicit, not when the layout engine moves stuff.  Fixes
12709         anchoring to bottom and right.  [Fixes bug #81790]
12710
12711 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12712
12713         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
12714
12715 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12716
12717         * ContainerControl.cs: 
12718         Fire enter event for common ancestor if it is not a ContainerControl.
12719         Send focus to the active_control and not the 'value', the active 
12720         control might have been changed in one of the events fired.     
12721         Definitely fixes #80159.
12722
12723 2007-06-01  Andreia Gaita  <avidigal@novell.com>
12724
12725         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
12726
12727 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12728
12729         * PropertyGrid.cs: Anchor the help description to the bottom of the
12730           help panel and refactor SelectGridItem into a
12731           SelectGridItemInternal that can be set to null (and update it to
12732           clear the help texts when it is set to null). Set root item to null
12733           when there's no SelectedObject. Fixes #80438.
12734         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
12735           when we're recalculating after a resize (only).
12736
12737 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12738
12739         * ListView.cs: Implement 2.0 RedrawItems method.
12740
12741 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12742
12743         * ListControl.cs: Disconnect PositionChanged and ItemChanged
12744         handlers from previous data manager when DataSource is set to
12745         null. Fixes #81771.
12746
12747 2007-05-31  Jackson Harper  <jackson@ximian.com>
12748
12749         * TextBoxBase.cs: These seem to be the correct values.
12750
12751 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
12752
12753         * FileDialog.cs: When close dialog with ok set filterindex using combobox
12754         value. Fixes #81784.
12755
12756 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
12757
12758         * Control.cs: Implement 2.0 scaling methods.
12759
12760 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12761
12762         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
12763           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
12764           corcompare issues.
12765
12766 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12767
12768         * ProgressBar.cs: Implemented missing 2.0 members.
12769
12770 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12771
12772         * Control.cs: Corcompare issues.
12773         * MessageBox.cs: Implemented missing 2.0 functions.
12774
12775 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12776
12777         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
12778           Implemented more 2.0 members.
12779
12780 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12781
12782         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
12783           null (strange, but it seems to happen when running unit tests).
12784
12785 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12786
12787         * ContainerControl.cs: Set active_control even earlier, before 
12788         firing any events, and undo it if validation returns false.
12789
12790 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12791
12792         * ContainerControl.cs: Raise Validation and Enter/Leave events
12793         even if there is no Form and set active_control earlier, just
12794         before firing Enter events (toshok's patches). Fixes #80647.
12795
12796 2007-05-30  Jackson Harper  <jackson@ximian.com>
12797
12798         * TextControl.cs: Redid the pageup/pagedown a little to simplify
12799         things and fix bug #81311.
12800
12801 2007-05-30  Jackson Harper  <jackson@ximian.com>
12802
12803         * X11Dnd.cs: Now that we have our own event loop, we need to
12804         cancel when we get a mouseup but it won't be accepted.
12805
12806 2007-05-30  Chris Toshok  <toshok@ximian.com>
12807
12808         * DataGrid.cs (set_CurrentCell): guard against negative
12809         column/row.
12810
12811         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
12812         array index syntax instead of looping over the property names.
12813
12814         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
12815         and set IsInEditOrNavigateMode to false there.
12816
12817 2007-05-30  Jackson Harper  <jackson@ximian.com>
12818
12819         * TreeView.cs: Make sure we don't get a bad visible order when
12820         setting to the top node.  Fixes some misc crashing in
12821         ControlInspector.
12822
12823 2007-05-30  Andreia Gaita  <avidigal@novell.com>
12824
12825         * UserControl.cs: Add 2.0 AutoSizeMode
12826
12827 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12828
12829         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
12830
12831 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12832
12833         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
12834         lines. Fixes #80285. 
12835
12836 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12837
12838         * DataGridColumnStyle.cs: Add char trimming column header text format. 
12839
12840 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
12841
12842         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
12843         Fixes #80147.
12844
12845 2007-05-29  Jackson Harper  <jackson@ximian.com>
12846
12847         * TreeNode.cs: Fix off by one on calculating whether or not a node
12848         is visible.
12849
12850 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12851
12852         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
12853         * ScrollableControl.cs: Force an UpdateDistances when we move the
12854         scrollbars.
12855         [Fixes bug #80605]
12856
12857 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12858
12859         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
12860         update the page setup screen.
12861
12862 2007-05-29  Andreia Gaita  <avidigal@novell.com>
12863
12864         * PageSetupDialog.cs: Fix landscape mode.
12865
12866 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12867
12868         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
12869         IconSizeHorizontalSpacing.
12870
12871 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12872
12873         * ListView.cs: The declaration of prev_tooltip_item should be inside
12874         a NET_2_0 conditional (avoid a warning).
12875
12876 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12877
12878         * PageSetupDialog.cs: Implement PrintPreview control to display
12879         the preview thumbnail. Change unit conversion to use 
12880         PrinterUnitConvert methods.
12881         
12882         Note: there is a huge bug in ms.net where the default margins are 
12883         interpreted as centimeters (?), when in fact they are set in inches. When 
12884         loading the page setup dialog initially (ms.net), the default margins 
12885         are set to 1 inch, and the dialog shows them with value 10, when in fact 
12886         it should be 25 (properly converted). Our dialog doesn't have this bug.
12887         
12888         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
12889         RectangleF.
12890         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
12891
12892 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12893
12894         * ListView.cs:
12895         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
12896         items.
12897
12898 2007-05-28  Andreia Gaita  <avidigal@novell.com>
12899
12900         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
12901         an IntPtr on csc (it builds fine on mcs, could it be a compiler
12902         bug?), convert the ptr to Int32 first.
12903
12904 2007-05-28  Jackson Harper  <jackson@ximian.com>
12905
12906         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
12907         recieved, we will exit the dnd tracking loop.
12908
12909 2007-05-28  Jackson Harper  <jackson@ximian.com>
12910
12911         * X11Dnd.cs: Keep tracking until the xdnd finished event is
12912         recieved. TODO: I should probably stick a timer on the dropped
12913         event, and finish the drag if the XDND Finished event never shows
12914         (because some apps don't seem to send it).
12915
12916 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
12917
12918         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
12919         #81733.
12920
12921 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12922
12923         * MonthCalendar.cs: Only mark the keypresses we actually handle as
12924           handled.
12925
12926 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12927
12928         * MonthCalendar.cs: Set the size after initializing all the relevant
12929           variables. Fixes #81742.
12930
12931 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12932
12933         * KeyEventArgs.cs: Fix typo.
12934
12935 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
12936
12937         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
12938         to match MS. Fixed MinDate to only accept value less than or equal
12939         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
12940         Removed TODO's that are now verified by unit tests.
12941
12942 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
12943
12944         * TreeNodeCollection.cs: Minor corrections to exceptions to match
12945         MS.
12946
12947 2007-05-25  Jackson Harper  <jackson@ximian.com>
12948
12949         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
12950         it's own message loop.
12951         * XplatUIX11.cs: Remove some of the dnd hooks
12952
12953 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
12954
12955         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
12956         instead of MinimizedWindowSize.
12957
12958 2007-05-25  Jackson Harper  <jackson@ximian.com>
12959
12960         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
12961
12962 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12963
12964         * KeyEventArgs.cs: Added SuppressKeyPress.
12965         * Control.cs: Added support for SuppressKeyPress.
12966
12967 2007-05-24  Andreia Gaita  <avidigal@novell.com>
12968
12969         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
12970         problems with PieChart. suppress_validation should not be a counter,
12971         if there are several BeginInit calls, the first EndInit will 
12972         activate validation. Fix exceptions thrown by set_Value.
12973         * UpDownBase.cs: ValidateText only if it's the user editing it.
12974
12975 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12976
12977         * ListControl.cs: FilterItemOnProperty should return the filtered
12978         item proeprty even if DataSource is null. The same applies for
12979         GetItemText. Fixes #80427.
12980
12981 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12982
12983         * Control.cs: If a control doesn't have a parent when it's Dock is
12984         set, but it has children, it needs to do a layout.  Fixes some nested
12985         controls issues.  [Fixes bug #81199]
12986
12987 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12988
12989         * ComboBox.cs: If there are few items in the drop down list, make it
12990           the exact size the items need, no bigger. Fixes #81612.
12991
12992 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
12993
12994         * Application.cs: When we have captured the keyboard for a menu,
12995         check for mouse down events in case we need to close the menu.
12996         * Control.cs, Form.cs: Remove mouse down checks for menus.
12997
12998 2007-05-24  Jackson Harper  <jackson@ximian.com>
12999
13000         * TextControl.cs: Handle tabs in non multiline mode a little
13001         differently.
13002
13003 2007-05-24  Jackson Harper  <jackson@ximian.com>
13004
13005         * TextControl.cs: We need to manually break apart tabbed text and
13006         move the tabs, since the system.drawing tabbing mechanism relies
13007         on tab stops.
13008         * TextBoxBase.cs: Move the caret properly when the user enters a
13009         tab.
13010
13011 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
13012
13013         * ContainerControl.cs: Don't check CanSelect before calling
13014         ProcessMnemonic.
13015         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
13016         release a KeyboardActive on click if it's not ours.
13017
13018 2007-05-23  Andreia Gaita  <avidigal@novell.com>
13019
13020         * ColumnHeader.cs: Add TypeConverter
13021
13022 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13023
13024         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
13025
13026 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13027
13028         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
13029
13030 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13031
13032         * LinkLabel.cs: Implement public Padding property.
13033
13034 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13035
13036         * LinkLabel.cs: Implement public FlatStyle.
13037
13038 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
13039
13040         * Control.cs: Apply patch from George to call parent.PerformLayout
13041         when Visible is changed.  [Fixes bugs #81118, 81718]
13042
13043 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13044
13045         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
13046
13047 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13048
13049         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
13050
13051 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13052
13053         * ContextMenu.cs: Implement Collapse.
13054
13055 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
13056
13057         * ToolBarButton.cs: Implement Name.
13058
13059 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13060
13061         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
13062         use current_item, it prevents some NRE. Fixes #81675.  
13063
13064 2007-05-22  Andreia Gaita  <avidigal@novell.com>
13065
13066         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
13067         without updating the text.
13068
13069 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13070
13071         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
13072         without calling DeleteObject.  [Should fix bug #81709]
13073
13074 2007-05-22  Jackson Harper  <jackson@ximian.com>
13075
13076         * RichTextBox.cs: Set the line endings correctly, when flushing
13077         RTF text.
13078
13079 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
13080
13081         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
13082          {Width=0,Height=0}.
13083
13084 2007-05-22  Jackson Harper  <jackson@ximian.com>
13085
13086         * TreeView.cs: Setting top with a null node should set to the very
13087         top.
13088
13089 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13090
13091         * Form.cs: ShowDialog: destroy the handle when message loop is
13092           finished, matches MS behaviour. Refactor parts of WmClose into
13093           RaiseCloseEvents, that only raises events if they haven't already
13094           been raised. Fixes #81688 and #81521.
13095         * Application.cs: Don't call close on the form when exiting a modal
13096           loop, it will raise all the (Form)Closed/Closing events again if
13097           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
13098           which doesn'r raise any events it they have been raised before.
13099
13100 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
13101
13102         * Control.cs: Add OnPrint.
13103         * ToolStrip.cs: Add GetChildAtPoint.
13104         * ToolStripContainer.cs: Add OnRightToLeftChanged.
13105         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
13106
13107 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
13108
13109         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
13110
13111 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13112
13113         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
13114           isn't visible anymore. Fixes #81651.
13115
13116 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13117
13118         * Control.cs: WmShowWindow: Update children's z-order after setting
13119           their parent. SetParent may show the window, thereby corrupting
13120           z-order, since the window will be shown on top.
13121         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
13122           multiple (and redundant) WM_SHOWWINDOW messages.
13123         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
13124           event has already been raised.
13125         * Form.cs: Change is_changing_visible_state to a counter, since
13126           SetVisibleCore can be called recursively. CreateHandle: when
13127           creating mdi children, send (De)Activated events.
13128         * MdiClient.cs: Update use of is_changing_visible_state.
13129         * Application.cs: OnThreadException: Surround exception handling with
13130           try/finally to ensure we always reset the error-handling state
13131           before leaving.
13132
13133 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13134
13135         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
13136           (#81704).
13137
13138 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13139
13140         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
13141         SmallIcon views, now that we have a standarized horizontal spacing.
13142
13143         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
13144         4, just like the other views (Match .Net).
13145
13146 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
13147
13148         * Control.cs: Delay calculating anchor distances until we actually layout.
13149         Always query the WM for the actual size and location it put us at instead of
13150         only when we send negative values.
13151         [Fixes bugs #81694, 81695]
13152
13153 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13154
13155         * Application.cs: Avoid a possible stack overflow when trying to exit
13156           the application.
13157
13158 2007-05-19  Marek Safar  <marek.safar@gmail.com>
13159
13160         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
13161         enum value.
13162
13163 2007-05-19  Andreia Gaita  <avidigal@novell.com>
13164
13165         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
13166         * NumericUpDownAcceleration.cs, 
13167           NumericUpDownAccelerationCollection.cs: Added 2.0
13168           implementation.
13169
13170 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
13171
13172         * RichTextBox.cs: Recalculate the document after the ScrollBars
13173         property is changed. Fixes bug #81681.
13174
13175 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13176
13177         * DataObject.cs: Implement 2.0 methods.
13178
13179 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13180
13181         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
13182         in the center of the checkbox, not in the left-top corner. 
13183         Fixes #80037.
13184
13185 2007-05-18  Jackson Harper  <jackson@ximian.com>
13186
13187         * RichTextBox.cs: Recalculate the document after the scrollbars
13188         property is changed.
13189         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
13190         81486.
13191
13192 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13193
13194         * CreateParams.cs: Make HasWindowManager marginally faster.
13195         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
13196           into Hwnd so that other drivers can use it as well.
13197         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
13198           the default location from Hwnd. Fixes MDI client windows always
13199           showing up at (0,0) in Windows (Win32 won't set the default
13200           location since the window styles aren't correct).
13201
13202 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
13203
13204         * TreeView.cs: Modified DoubleBuffered to just use the base
13205         implementation.
13206
13207 2007-05-18  Jackson Harper  <jackson@ximian.com>
13208
13209         * TreeView.cs: Set the top node to the last child node when
13210         expanding all
13211         - When we get focus, if there is no selected node, use the top
13212         node.
13213
13214 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
13215
13216         * KeysConverter.cs: Add CanConvertTo.
13217         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
13218         * LinkConverter.cs: Added.
13219
13220 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13221
13222         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
13223         it prevents error when file dont have write access. Fixes #81669 and #81667.  
13224
13225 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13226
13227         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
13228         button text. Fixes #79640.  
13229
13230 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13231
13232         * Control.cs: According to MSDN controls created in the designer theres 
13233         keyboard accelerators visible by default. So included check for design
13234         in ShowKeyboardCuesInternal.  
13235
13236 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13237
13238         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
13239         text. Fixes #81621.  
13240
13241 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
13242
13243         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
13244         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
13245
13246 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13247
13248         * Control.cs: Finish implementation of UI State using WmChangeUIState
13249         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
13250         in some controls to check for show_keyboard_cues to draw accell keys "_".  
13251
13252 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13253
13254         * ListBox.cs: When calculating the horizontal scrollbar
13255         in single column mode, don't use values less than 0 for
13256         Maximum. Fixes #81474.
13257
13258 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13259
13260         * ListBox.cs: Throw the some missing exceptions in
13261         ListBox.ObjectCollection methods.
13262
13263 2007-05-17  Jackson Harper  <jackson@ximian.com>
13264
13265         * TextBoxBase.cs: Recalculate the document when the word wrap
13266         value has changed. This fixes 81488.
13267
13268 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13269
13270         * Clipboard.cs: Implement missing GetText overload.
13271
13272 2007-05-17  Chris Toshok  <toshok@ximian.com>
13273
13274         * Control.cs (CheckDataBindings): remove the binding_context arg
13275         to binding.Check.
13276
13277         * CurrencyManager.cs (OnItemChanged): fix this now that
13278         BindingManagerBase is fixed. also remove the comment telling where
13279         the fix should go.  We set transfering_data to true/false around
13280         the call to PushData to keep UpdateIsBinding from being called.
13281         (ListChangedHandler): remove the extra OnMetaDataChanged call for
13282         PropertyDescriptorAdded in the 1.1 case.  The extra call is
13283         actually generated by System.Data generating 2 metadata changed
13284         events of its own per column add.  The fix should go there.  Add a
13285         comment to that affect in our test's Assert.Ignore.
13286
13287         * BindingManagerBase.cs: Rework PullData and PushData slightly.
13288         we keep a boolean flag (transfering_data) that keeps us from
13289         calling UpdateIsBinding multiple times if we re-enter either of
13290         them.
13291
13292         * ControlBindingsCollection.cs (AddCore): remove the
13293         binding_context arg to binding.Check.
13294
13295         * Binding.cs (IsBinding): don't check if we're binding here, just
13296         return our cached value.  we update it in UpdateIsBinding.
13297         (Check): don't take the binding_context arg, we'll just use our
13298         control's.  Also, for some reason MS doesn't use the data member
13299         field when getting the bindingmanager for this binding.  it just
13300         uses the datasource.  Make this method callable multiple times,
13301         and only do the is_null_desc stuff if manager.Position != -1 (so
13302         we don't get an exception accessing manager.Current).
13303         (UpdateIsBinding): move the code from IsBinding here.
13304         (PositionChangedHandler): call Check here to we can initialize
13305         things that require a non- -1 position.
13306
13307 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13308
13309         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
13310         control.
13311
13312 2007-05-17  Andreia Gaita  <avidigal@novell.com>
13313
13314         * TabControl.cs: Add 2.0 methods and events, including
13315         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
13316         * TabPage.cs: Add 2.0 methods
13317
13318 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
13319
13320         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
13321         keyboard_cues is properly handled by message method.  
13322
13323 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13324
13325         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
13326
13327 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
13328
13329         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
13330
13331 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
13332
13333         * Control.cs: 
13334         - WmUpdateUIState added to handle state changes, it make call to
13335         OnChangeUICues event.
13336         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
13337         SystemInformation.
13338
13339 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
13340
13341         * ImageKeyConverter.cs: Added.
13342         * TreeViewImageKeyConverter.cs: Added.
13343
13344 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13345         
13346         * ToolTips.cs: Update Text if SetToolTip is called for a control
13347         already showing the tooltip, as well as restarting its timer; show
13348         tooltip if we are inside the control bounds by the time of calling
13349         SetToolTip. Inside ShowTooltip remove the check to not show the 
13350         tooltip again for the active control (it is allowed by .Net to 
13351         show the tooltip on the same control multiple times).
13352
13353 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13354
13355         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13356
13357 2007-05-16  Andreia Gaita <avidigal@novell.com> 
13358
13359         * ContainerControl.cs: only process tab key if there are no 
13360         modifier keys present, otherwise the control does the 
13361         tab processing, if it needs to. Fixes #81622
13362         * TabControl.cs: Fixes calculation for which tab to select on
13363         shift+ctrl+tab.
13364
13365 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13366
13367         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
13368
13369 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
13370
13371         * Control.cs: Make IsInputCharInternal to allow controls to
13372         override it and still match MS API.
13373         * TextBoxBase.cs: Override IsInputCharInternal and always
13374         return true.
13375         [Fixes bug #81616]
13376
13377 2007-05-15  Jackson Harper  <jackson@ximian.com>
13378
13379         * TextBox.cs: Disable some of the menu options when using a
13380         readonly textbox.
13381
13382 2007-05-15  Jackson Harper  <jackson@ximian.com>
13383
13384         * TextBox.cs:
13385         * TextBoxBase.cs:
13386         * RichTextBox.cs: Some new 2.0 methods
13387
13388 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
13389
13390         * FileDialog.cs: On 1.0 profile, do not support multidotted 
13391         extensions.
13392
13393 2007-05-14  Jackson Harper  <jackson@ximian.com>
13394
13395         * TextBoxBase.cs: Implement some of the new 2.0 methods.
13396         * RichTextBox.cs: We need to override these methods on 2.0.
13397         * MaskedTextBox.cs: These are implemented now
13398         * TextControl.cs: This was off by one.
13399
13400 2007-05-14  Jackson Harper  <jackson@ximian.com>
13401
13402         * TextControl.cs: Because the line endings are including in the
13403         text, we don't need to add them in anymore.
13404
13405 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13406
13407         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
13408         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
13409
13410 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13411
13412         * ToolBar.cs: Adjust size to default size when button theres no text and
13413         image, it fixes remaining issues from #81524.
13414
13415 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13416
13417         * ToolBar.cs: 
13418         - When not flat call redraw to recalculate sizes on creare handle to match
13419         win32 behavior.
13420         - Revert 77220 because it causes some regressions in toobar
13421         button.
13422
13423 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13424
13425         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
13426           now actually enters a usable state.
13427
13428 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13429
13430         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
13431         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
13432         3 buttons.
13433
13434 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13435
13436         * ToolBar.cs: Save default_size on create handle to use later for buttons
13437         without text, needed to mimic win32 behavior.
13438
13439 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
13440
13441         * ToolBar.cs: Fix button layour to best fit width or height according to
13442         vertical or not. Fixes #81524.
13443
13444 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13445
13446         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
13447         toolbar size info because different styles theres different sizes.
13448         Fixes #81522.
13449
13450 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13451
13452         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
13453         if we are using checkboxes, checked is true, and we have less
13454         than two images in StateImageList; for the 1.1 in the same scenario
13455         draw the first image if we have at least one image in StateImageList.
13456         Fixes part of #81191.
13457
13458 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13459
13460         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
13461         the owner's Items collection on merge.
13462
13463 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13464
13465         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
13466         * ToolStripItemCollection.cs: Lots of fixes to when events get called
13467         and parent/owner gets changed based on gert's unit tests.
13468
13469 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13470
13471         * MaskedTextBox.cs: Started implementing parts of it.
13472
13473 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13474
13475         * ListView.cs: When clicking the checkbox on the items
13476         take into account the double clicks even if we have only
13477         one image in StateImageList (only for 1.0/1.1). Also 
13478         generate an extra change of checked state when we receive
13479         the second click on checkbox (match .Net behaviour). 
13480         Fixes part of #81191.
13481
13482 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
13483
13484         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
13485
13486 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
13487
13488         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
13489         even if OnLoad is overriden and base.OnLoad is not called.
13490         [Fixes bug #81582]
13491
13492 2007-05-10  Andreia Gaita  <avidigal@novell.com>
13493
13494         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
13495         shame. (I blame my ever-persisting and annoying cold)
13496
13497 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13498
13499         * ListView.cs: Don't eat navigation keys.  Let them flow through to
13500         KeyDown/KeyPress routines.  [Fixes bug #81569]
13501
13502 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13503
13504         * ListView.cs: When handling keys for selecting the item based off
13505         keyboard input, do not consider keys pressed with Alt or Control.  Also,
13506         correctly handle keys when the Shift key is down. [Fixes bug #81578]
13507
13508 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13509
13510         * Control.cs: When using UseWaitCursor, we have to store the requested
13511         Cursor to use when UseWaitCursor is turned off.
13512
13513 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
13514
13515         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
13516         to false.
13517         * Application.cs: Use PreProcessControlMessage instead of
13518         PreProcessMessage.
13519         * PreProcessControlMessage.cs: Make internal for 1.1.
13520
13521 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13522
13523         * Control.cs: Add InternalContains focus property, which hast the same
13524         functionality of ContainsFocus, but also including implicit controls.
13525         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
13526         since we need to know if the focus is contained in our implicit
13527         ItemControl when calculating Layout. Fixes part of #80888.
13528
13529 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
13530
13531         * ToolTip.cs: Remove center form string alignment as it must be align to
13532         left.
13533
13534 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
13535
13536         * ToolStripItemCollection.cs: Set the new item's parent and owner
13537         in Insert like we do in Add.  [Fixes bug #81568]
13538
13539 2007-05-08  Jackson Harper  <jackson@ximian.com>
13540
13541         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
13542         - Off by one error in SetTop
13543         - Disable DoubeBuffering
13544         
13545 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13546
13547         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
13548           control as much as necessary in order to make it entirely visible,
13549           instead of centering the control in the container (matches MS
13550           behaviour). CalculateCanvasSize: we need to take the current scroll
13551           position into account when calculating the maximum canvas,
13552           otherwise the following scenario will fail: resize so that the
13553           scrollbars appear, use the scrollbars to scroll, resize again
13554           smaller, and now the canvas size is too small. Recalculate: when
13555           showing scrollbars make sure they start off at 0, and try to scroll
13556           the active control into view. Fixes #79540. HandleScrollBar: don't
13557           scroll anywhere if the scrollbar isn't visible.
13558
13559 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13560
13561         * ListView.cs: When focus changed, call Layout/Invalidate
13562         in the focused item to update the selected state (should show
13563         entire label when ListView is focused, and a part of it if is not).
13564         * ListViewItem.cs: When doing layout for LargeIcon, take into account
13565         for displaying the entire label not only the Focused state of the
13566         item, but also the Focused state of the ListView (match .Net
13567         behaviour).
13568
13569 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13570
13571         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
13572         Implement UseWaitCursor. 
13573
13574 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13575         Applying contributed patch from Sergey Volk.
13576
13577         * Clipboard.cs: Implement SetDataObject retry logic and new overload
13578         of SetDataObject.
13579         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
13580
13581 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13582
13583         * Control.cs: Implement DrawToBitmap.
13584
13585 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13586         Applying contributed patch from Stefan Noack.
13587         
13588         * Control.cs: Add [Get|Set]AutoSizeMode.
13589
13590 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13591
13592         * MdiClient.cs: Unmerge menus when the last child is closed.
13593
13594 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
13595
13596         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
13597         * ToolStripManager.cs: Call Merge on DropDowns.
13598         [Fixes bug #81477]
13599
13600 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13601
13602         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
13603           uints.
13604         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
13605           visibility. We can't create forms visible, since we have to set the
13606           owner before making the form visible (otherwise Win32 will do
13607           strange things with task bar icons). The problem is that we set the
13608           internal is_visible to true before creating the control, so
13609           is_changing_visible_state is the only way of determining if we're
13610           in the process of creating the form due to setting Visible=true -
13611           this works because SetVisibleCore explicitly makes the form
13612           visibile afterwards anyways. Fixes #80775.
13613
13614 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13615
13616         * ThemeWin32Classic.cs: When drawing ListViewItems,
13617         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
13618         or LargeIcon _and_ item is not focused (match .Net behaviour).
13619
13620 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13621
13622         * Control.cs, Form.cs: Fix some obsolete method warnings.
13623
13624 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
13625
13626         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
13627         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
13628
13629 2007-05-04  Andreia Gaita  <avidigal@novell.com>
13630
13631         * ContainerControl.cs: Fix active_control attribution when going
13632         up the parent chain so that the first parent container gets the control
13633         and the rest of the parent containers get the child containers (skips
13634         non-containers). Fixes #80729
13635
13636 2007-05-04  Randolph Chung  <tausq@debian.org>
13637
13638         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
13639         [Fixes bug #81499]
13640
13641 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13642
13643         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
13644           takes a size parameter, since the CreateParam's size isn't true for
13645           minimized forms. Fixes #81518,
13646
13647 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13648
13649         * Form.cs: Add OnDeactivateInternal.
13650         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
13651
13652 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13653
13654         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
13655           accessing the parent. Fixes #81508.
13656
13657 2007-05-03  Chris Toshok  <toshok@ximian.com>
13658
13659         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
13660         2.0 block, pass listposition + 1 to ChangeRecordState when a row
13661         was added before the current listposition.  Fixes the
13662         TestInsertRowBeforeCurrent unit test.
13663
13664 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
13665
13666         * Application.cs: Add RaiseIdle.
13667         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13668         XplatUIX11.cs: Implement RaiseIdle.
13669
13670 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
13671         corcompare work: N - Z
13672         * NotifyIcon.cs
13673         * ProgressBar.cs
13674         * RadionButton.cs
13675         * ScrollableControl.cs
13676         * SplitContainer.cs
13677         * SplitterPanel.cs
13678         * StatusBar.cs
13679         * SystemInformation.cs
13680         * TabControl.cs
13681         * TableLayoutControlCollection.cs
13682         * TableLayoutPanel.cs
13683         * TabPage.cs
13684         * ToolBar.cs
13685         * ToolBarButton.cs
13686         * ToolStrip.cs
13687         * ToolStripComboBox.cs
13688         * ToolStripContainer.cs
13689         * ToolStripContentPanel.cs
13690         * ToolStripDropDown.cs
13691         * ToolStripDropDownItem.cs
13692         * ToolStripDropDownMenu.cs
13693         * ToolStripItem.cs
13694         * ToolStripItemCollection.cs
13695         * ToolStripMenuItem.cs
13696         * ToolStripPanel.cs
13697         * ToolStripSplitButton.cs
13698         * ToolTip.cs
13699         * TreeNode.cs
13700         * TreeNodeCollection.cs
13701         * TreeNodeMouseHoverEventArgs.cs
13702         * TreeView.cs
13703
13704 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
13705
13706         * ContextMenu.cs: Add public method Show with alignment property to 2.0
13707         stuff. Thanks aatdark for the patch. 
13708
13709 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13710
13711         * GridItem.cs: Implement 2.0 Tag property.
13712
13713 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
13714
13715         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
13716         count instead of Nodes.Length.  [Fixes bug #81448]
13717
13718 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13719
13720         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
13721         [Fixes bug #81506]
13722
13723 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13724         corcompare work: A - M
13725         * BindingNavigator.cs
13726         * Button.cs
13727         * ButtonBase.cs
13728         * CheckBox.cs
13729         * Control.cs
13730         * FlowLayoutPanel.cs
13731         * Form.cs
13732         * Label.cs
13733         * LinkLabel.cs
13734         * ListView.cs
13735
13736 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
13737
13738         * Application.cs: Give toolstrips a chance to process mnemonics.
13739         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
13740         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
13741         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
13742
13743 2007-05-01  Jackson Harper  <jackson@ximian.com>
13744
13745         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
13746         wider area too.
13747         - Don't set the BoundsSpecified
13748
13749 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13750
13751         * Application.cs: When using the toolstrip shortcut mechanism, allow the
13752         message to pass through to a regular control if it hosted by a toolstrip.
13753         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13754         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
13755
13756 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13757
13758         * TextRenderer.cs: Use the flags argument when using the MeasureString
13759         fallback algorithm.
13760
13761 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
13762
13763         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
13764         the MDI menu item.  [Fixes bug #81483]
13765
13766 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
13767
13768         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
13769         string. When setting Name to null, use zero-length string instead.
13770
13771 2007-04-29  Andreia Gaita  <avidigal@novell.com>
13772
13773         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
13774         DeselectTab). Implement missing 2.0 TabPageCollection methods
13775         (Add, ContainsKey, RemoveByKey, IndexOfKey)
13776
13777 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
13778
13779         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
13780
13781 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
13782
13783         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
13784         Fixes bug #81479. Include details of exception when LoadFile fails.
13785
13786 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
13787
13788         * DrawListViewSubItemEventArgs.cs: Added missing setter
13789
13790 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13791
13792         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
13793         Hide methods (not complete). Implement missing 2.0 OnPopup event.
13794
13795 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13796
13797         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
13798         removed in ly last commit (it was breaking the Label edit feature).
13799
13800         * ThemeWin32Classic.cs: When drawing a ListViewItem use
13801         StringAlignment.Near for LineAlignment (match .Net).
13802
13803 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13804
13805         * TabControl.cs: Change SetTab so it adds the tabpage to the list
13806         of controls if it isn't already there - was blowing up when doing
13807         tabcontrol.TabPages[i]=new TabPage(). 
13808         SetTab now does a replace by removing the page at the index. 
13809         Add a new InsertTab method that inserts a page in a given index 
13810         instead of replacing. 
13811         Implements TabPageCollection.Insert(int, TabPage).
13812
13813 2007-04-27  Chris Toshok  <toshok@ximian.com>
13814
13815         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
13816         internal handler that can be invoked from our subclasses.)  Also,
13817         add a comment to PushData about how we need to fix it.
13818
13819         * CurrencyManager.cs: tons of changes here.  trying to get things
13820         matching the behavior of .net wrt event orders (ItemChanged,
13821         CurrentChanged, PositionChanged.)  I've implemented a private .net
13822         symbol (ChangeRecordState) that appears in stack traces because
13823         it's actually easier to do this than to effective inline all its
13824         various behaviors at every call site.
13825
13826         * RelatedPropertyManager.cs: guard against an exception here by
13827         not using parent.Current if the position is set to -1 (if the
13828         parent datasource is cleared, for instance).
13829
13830         * Binding.cs: don't parse data in PushData (this might be wrong,
13831         but it jives with MS's behavior.)  Also, don't call PushData when
13832         we get a CurrentChanged event.
13833
13834 2007-04-27  Andreia Gaita  <avidigal@novell.com>
13835
13836         * WebBrowser.cs,
13837           WebBrowserBase.cs,
13838           WebBrowserSiteBase.cs,
13839           HtmlDocument.cs: Added stubbed out classes, no real implementations 
13840           yet.
13841
13842 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13843
13844         * MainMenu.cs: In draw method without parameters call draw method with 
13845         PaintEvent, another one (just rect) adjust rectangle and we dont need it
13846         as Rect property is already adjusted. Fixes #80694.
13847
13848 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
13849
13850         * Application.cs: Need to handle keyboard menu deselection here.
13851         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
13852         navigation, allowing keyboard to work on X11.
13853         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
13854
13855 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13856
13857         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
13858         menu bar. It fixes some drawing issues in menu bar.
13859
13860 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
13861
13862         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
13863         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
13864         when <alt> key is pressed.
13865
13866 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13867
13868         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
13869         example just set visible to false and make this prevent from other problems.
13870         In SystrayAdd always remove pending expose. Fixes #81072.
13871
13872 2007-04-26  Marek Safar  <marek.safar@gmail.com>
13873
13874         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
13875         value is set.
13876
13877 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13878
13879         * ListView.cs: Added three missing 2.0 events and corresponding
13880         EventHandlers. Added the OwnerDraw property.
13881         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
13882
13883 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13884
13885         * DrawListViewItemEventArgs.cs
13886         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
13887
13888 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
13889
13890         * TextControl.cs: Fixed typo in constructor
13891
13892 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
13893
13894         * Application.cs: Create a shortcut path so that currently selected
13895         MenuStrips can intercept keyboard events without having focus.
13896         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
13897         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
13898         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
13899         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
13900         generate WM_SYSCOMMAND message in X11 for other platforms.
13901         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
13902         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
13903         * ToolStripSplitButton.cs: Add DefaultItem property.
13904         
13905 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
13906
13907         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
13908         fixes some menu draw problem on Windows with border diferent from default
13909         it also fixes #81403.
13910
13911 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13912
13913         * Form.cs: Refactor WndProc into separate methods, just like Control is
13914           doing it.
13915
13916 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13917
13918         * Control.cs: set_Text: move the call to the driver into a seperate
13919           virtual method so that Form can override it.
13920         * MaskedTextBox.cs: Corcompare fixes.
13921         * Form.cs: Override UpdateWindowText and only update the styles if the
13922           form has been shown (fixes #81405).
13923
13924 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13925
13926         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
13927         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
13928         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
13929         the form lost focus or another control was clicked.
13930
13931 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
13932
13933         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
13934         fixed.
13935
13936 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13937
13938         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
13939           DrawListViewItemEventHandler.cs,
13940           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
13941           Added.
13942         * X11Structs.cs: More ToString implementation.
13943
13944 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
13945
13946         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
13947         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
13948
13949 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13950
13951         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
13952           handle.
13953         * FormCollection.cs: Don't add a form if it's already in the
13954           collection.
13955         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
13956           according to behaviour and MSDN. The ownerWin32 is the active
13957           window at the moment when we call ShowDialog, not the context's
13958           main form (the context's main form may open another form that opens
13959           a form with ShowDialog, the win32 owner is the second form). Add
13960           and remove forms to the Application.OpenForms in other places to
13961           better match MS behaviour. Add an IsActive property that raises
13962           On(de)Activated only if the active state has changed (we were
13963           raising OnDeactivated before OnActivated while creating forms).
13964         * Application.cs: Refactor Enabling/Disabling of windows for modal
13965           dialog loops out to separate methods, and restore the thread
13966           context when we quit the method. Fixes #81407.
13967
13968 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13969
13970         * ListView.cs: In ItemControl.HandleClicks, also fire 
13971         2.0 MouseClick or MouseDoubleClick events on the parent,
13972         not only the Click/DoubleClick events.
13973
13974 2007-04-24  Andreia Gaita  <avidigal@novell.com>
13975
13976         * TableLayoutSettings.cs: 
13977         - Added a GetControls method and a support structure to help the 
13978         TypeConverter to enumerate the controls for     serialization. 
13979         - Added a new serialization constructor. 
13980         - Added a isSerialized flag initialized to true on the 
13981         serialization constructor so that the TableLayoutPanel.LayoutSettings 
13982         setter does not throw the designed NotSupportedOperation exception
13983         when the object is built through deserialization.
13984         - Implemented GetObjectData
13985         
13986         * TableLayoutPanel.cs: Added check on LayoutSettings.
13987
13988 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13989
13990         * ListView.cs: Report Click and DoubleClick events to the parent
13991         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
13992         from breaking the click count state when using dialog forms (Control
13993         reports the clicks in a similar fashion). In the previous behaviour
13994         the last WM_LBUTTONUP message in a  double click was sent to the
13995         ListView's form, instead of the ListView, which was breaking the click
13996         count for it. Fixes #80387.
13997
13998 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
13999
14000         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
14001
14002 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14003
14004         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
14005         us from created dropdowns for menu items that do not have subitems.
14006         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
14007         Check HasDropDownItems before calling DropDown so a dropdown will not be
14008         created if it isn't needed.
14009
14010 2007-04-24  Jackson Harper  <jackson@ximian.com>
14011
14012         * TreeView.cs: Set the first node to the selected node when we get
14013         focus if there is no selected node.
14014
14015 2007-04-24  Andreia Gaita  <avidigal@novell.com>
14016
14017         * MimeIcon.cs: remove using blocks so that image streams are
14018         not disposed of. Fixes #80151
14019
14020 2007-04-24  Jackson Harper  <jackson@ximian.com>
14021
14022         * TextBoxBase.cs: Fixup the height of textboxes when the control
14023         is created.
14024
14025 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
14026
14027         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
14028         for each ToolStripItem when the parent's RightToLeftChanged is called.
14029
14030 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14031
14032         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
14033           Fixes #80163.
14034         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
14035           property, so that the setter can be overriden too.
14036         * TextBox.cs: Change GetContextMenuInternal() to use
14037           ContextMenuInternal.
14038
14039 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14040
14041         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14042           #81406.
14043
14044 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14045
14046         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
14047           #81406.
14048
14049 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14050
14051         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
14052           avoid duplicate work. Mostily skeleton code, it's not working at
14053           all yet.
14054
14055 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
14056
14057         * NotifyIcon.cs : stub for MouseClick event
14058         * Application.cs: stub for SetUnhandledExceptionMode
14059
14060 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
14061
14062         * BindingNavigator.cs : Initial (partial) implementation
14063
14064 2007-04-23  Jackson Harper  <jackson@ximian.com>
14065
14066         * TreeView.cs: Do not create the treeview's handle when setting
14067         the scroll position.
14068         - ExpandAll needs to compute the scrollbars so it knows which
14069         position to set the bar too.
14070         * TreeNode.cs: 
14071         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
14072
14073 2007-04-23  Jackson Harper  <jackson@ximian.com>
14074
14075         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
14076         key. Fixes #81408.
14077
14078 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
14079
14080         * ToolStripItem.cs: Make GetImageSize internal.
14081         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
14082         need to draw an item.  Fixes a reported issue where images on menus
14083         that were not 16x16 were drawing incorrectly.
14084
14085 2007-04-21  Miguel de Icaza  <miguel@novell.com>
14086
14087         * Padding.cs: Use the converter, fixes the resgen2 issue with
14088         XMLNotePad. 
14089
14090 2007-04-21  Jackson Harper  <jackson@ximian.com>
14091
14092         * TreeView.cs: Dont try to unhighlight the selected node if there
14093         isn't a selected node.
14094
14095 2007-04-21  Jackson Harper  <jackson@ximian.com>
14096
14097         * UpDownBase.cs:
14098         * TextBoxBase.cs:
14099         * ListView.cs:
14100         * ListBox.cs:
14101         * TreeView.cs: Use the InternalBorderStyle property to set the
14102         initial border style, this forces the client rectangle to be sized
14103         correctly.
14104
14105 2007-04-20  Jackson Harper  <jackson@ximian.com>
14106
14107         * TreeView.cs: Simplify scrolling to the last node after expanding
14108         all.
14109         - Fix some off by ones with setting the bottom.
14110
14111 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14112
14113         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
14114         that.  We were incorrectly doing it the other way around.  Also,
14115         update ClientSize if we change the BorderStyle before the control
14116         is created.
14117
14118 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14119
14120         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14121         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14122         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
14123         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
14124         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
14125         Caption to CaptionHeight.
14126         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
14127         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
14128         and FixedFrameBorderSize to return value from current XplatUI driver.
14129         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
14130         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
14131         and FixedFrameBorderSize using win32 API. Renamed Caption to
14132         CaptionHeight.
14133         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
14134         * SystemInformation.cs: Fixed typo in BorderSize.
14135
14136 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
14137
14138         * XplatUI.cs: Added MenuAccessKeysUnderlined.
14139         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
14140         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
14141         returning false.
14142         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
14143         value from XplatUI driver.
14144         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
14145         SystemParametersInfo.
14146         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
14147         override.
14148         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
14149         returning false.
14150
14151 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14152
14153         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
14154
14155 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14156
14157         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
14158
14159 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
14160
14161         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
14162         MenuStrips that contain ToolStripSeparators.
14163
14164 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14165
14166         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
14167           DefineStdCursorBitmap.
14168         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
14169           has been created off a standard cursor. This is used to get a
14170           bitmap of the standard cursor when Draw or DrawStretched is called
14171           in order to draw the cursor.
14172         * X11Structs.cs: Added XcursorImage and XcursorImages.
14173         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
14174           DefineStdCursorBitmap.
14175         * Cursors.cs: Update all relevant creations of Cursor to use the new
14176           internal constructor.
14177
14178 2007-04-19  Jackson Harper  <jackson@ximian.com>
14179
14180         * TextBox.cs: Move the has_been_focused into the base control, so
14181         some of the text adding methods can manipulate it (probably time
14182         for a better name for this flag too).
14183         - Call a new version of selectall that doesn't scroll
14184         * TextBoxBase.cs: When we append text, if the document is empty,
14185         don't scroll.  If the document has text already, we scroll to the
14186         end of the appended text.
14187         - When the text is changed, we reset the has_been_focused, so the
14188         next time the control gets focused, all the text is selected.
14189
14190 2007-04-19  Jackson Harper  <jackson@ximian.com>
14191
14192         * TextControl.cs: Move the margins to the document, add a method
14193         so the margin sizes can be updated.
14194         * TextBoxBase.cs: When the border style is changed, update the
14195         border sizes.
14196
14197 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
14198
14199         * Control.cs: Respect DefaultPadding.
14200         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
14201         padding into account.
14202         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
14203
14204 2007-04-19  Jackson Harper  <jackson@ximian.com>
14205
14206         * TextControl.cs: Oops, we need to use the ClientRect not the
14207         bounds here.
14208
14209 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14210
14211         * ListView.cs: In ItemControl.ItemsMouseDown, take into
14212         account the double clicks when CheckBoxes are used and
14213         the pointer is inside the checkbox. Fixes part of #81191.
14214
14215 2007-04-18  Jackson Harper  <jackson@ximian.com>
14216
14217         * TextControl.cs: Pressing the end key shouldn't move the caret
14218         past the line ending.
14219         * TextBoxBase.cs: We can still delete if we are in the line
14220         ending and the combine will just kill the existing line ending.
14221
14222 2007-04-18  Jackson Harper  <jackson@ximian.com>
14223
14224         * TextControl.cs: We can't move lines, then invalidate their
14225         bounds, we need to get the old bounds and combine that with the
14226         new bounds.
14227         * TextBoxBase.cs: Before combining two lines for a delete, we need
14228         to invalidate the area of the old line, since that will be moved
14229         in the combine operation.
14230
14231 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
14232
14233         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
14234         with transparent background. Fixes #80482.
14235
14236 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
14237
14238         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
14239         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
14240         [Fixes bug #81391]
14241
14242 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14243
14244         * CreateParams.cs: Add a couple of helper methods and do a less string
14245           concatenation in ToString.
14246         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
14247           overload that takes a Control parameter, since this method may be
14248           called before a control is assigned to the hwnd (from
14249           CreateWindow), and update CreateWindow to use the new overload. In
14250           GetMenuOrigin subtract the title bar from the y position if the
14251           form has a window manager (since we're painting it and not X).
14252         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
14253           CreateParams to calculate the origin (since border sizes may vary).
14254           In ScreenToMenu only subtract the title height if we actually have
14255           a title.
14256         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
14257           mdi children never have menus of themselves.
14258         * InternalWindowManager.cs: Implement menu handling like form does.
14259           Added GetMenuOrigin to calculate the menu origin, can't use the
14260           CreateParams from the form like normally since it's lying.
14261         * Hwnd.cs: Implement GetBorderSize better (in the sense more
14262           windows-like) and add Inflate and comparison operators to the
14263           Borders type. When calculating MenuOrigin and it's a form with a
14264           window manager, use the window manager to calculate it.
14265
14266 2007-04-17  Chris Toshok  <toshok@ximian.com>
14267
14268         * Control.cs (CreateControl): turns out in 2.0 we don't need this
14269         OnBindingContextChanged thing here.  It's only generated from
14270         ContainerControl.OnCreateControl.  Fixes a newly written unit test
14271         - BindingTest.BindingContextChangedTest4.
14272         
14273 2007-04-17  Jackson Harper  <jackson@ximian.com>
14274
14275         * ScrollBar.cs: When setting values, make sure the current
14276         position stays within the new values range.
14277
14278 2007-04-17  Chris Toshok  <toshok@ximian.com>
14279
14280         * Control.cs (CreateControl): talk about a bizarre corner case.
14281         Don't emit OnBindingContextChanged here if we're a parentless
14282         control (i.e. if we're a form.).  Fixes
14283         BindingTest.BindingContextChangedTest2.
14284
14285 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14286
14287         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
14288         from win32. Fixes #81255.
14289
14290 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
14291
14292         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
14293         already present in CalculateButtonTextAndImageLayout.
14294
14295 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14296
14297         * XplatUIX11.cs: When setting min/max size for a window we need to
14298           translate the coordinates to x coordinates. Create an overload of
14299           SetWindowMinMax that takes a CreateParams handling this, and change
14300           SetWMStyles to call this function (can't use Control.FromHandle in
14301           the SetWindowMinMax to get the control/CreateParams from the handle
14302           because the handle might not have been assigned to the control
14303           yet). Fixes #81371.
14304
14305 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14306
14307         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
14308         if StateImageList is non-null and it has less than two items (match MS
14309         behaviour). Also, in HandleNavKeys handle the Space key, calling
14310         the new ToggleItemsCheckState method, which tries to change the
14311         checked state of the selected items. Fixes part of #81191.
14312
14313 2007-04-16  Jackson Harper  <jackson@ximian.com>
14314
14315         * RichTextBox.cs: namespace cleanup.
14316
14317 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14318
14319         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
14320
14321 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
14322
14323         [Fixes #79447]
14324         * Control.cs: Call invalidate in set_Region.
14325
14326         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
14327         it dont works here.
14328
14329 2007-04-16  Jackson Harper  <jackson@ximian.com>
14330
14331         * TextBoxBase.cs: When enter is pressed, we need to update all
14332         lines below the current.
14333
14334 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
14335
14336         * MdiClient.cs: Implement implicit menu merging for MDI
14337         children.  When a child form is active, if it has a menustrip
14338         and the parent form has a MainMenuStrip, automatically merge
14339         the menus.
14340
14341 2007-04-15  Andreia Gaita  <avidigal@novell.com>
14342
14343         * TabControl.cs: Refactored sizing methods to not repeat
14344         code all over the place. Tab bounds are now calculated
14345         as if alignment is top and single line, and only when 
14346         setting the bounds are the positions adjusted according
14347         to alignment. Replaced hardcoded positions, spacings and
14348         paddings by getting the values the ThemeEngine. 
14349         Fixes #79619.
14350         
14351         * Theme.cs: Change TabControl properties and methods so
14352         that all start with TabControl*. Added more properties
14353         to help remove hardcoded values on tabcontrol.
14354         Add CPDrawBorder3D declaration so the Theming classes
14355         can access it.
14356         
14357         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
14358
14359         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
14360         on the Theming namespace, and call the appropriate methods here.
14361         Change CPDrawBorder3D to public.
14362
14363 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14364
14365         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
14366         the control after firing the OnMouseUp event, instead of sending
14367         the message before the mentioned event. This is so we can match the
14368         MS behaviour. Fixes part of #80385.
14369
14370 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14371
14372         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
14373         RightToLeft property.
14374
14375 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
14376
14377         * ToolStrip.cs: Add properties and internal methods to support merging.
14378         * ToolStripItem.cs: Add MergeAction and MergeIndex.
14379         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
14380         not trigger reparenting or layouts.
14381         * ToolStripManager.cs: Add Merge and RevertMerge methods.
14382         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
14383         is hosting the overflow menu.
14384
14385 2007-04-13  Jackson Harper  <jackson@ximian.com>
14386
14387         * TextControl.cs: Set the line ending correctly for the first
14388         inserted line.
14389
14390 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
14391
14392         * Theme.cs: Update GetMethod to get the new definition for 
14393         KnownColors.Update (and fix theme color updates).
14394
14395 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
14396
14397         * MessageBox.cs: Fix some test and button position.
14398
14399 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14400
14401         * Form.cs: Consider the implicit controls in
14402         GetRealChildAtPoint. We need it since this method
14403         is called on Form when handling the some messages in
14404         WndProc, and need to consider those implicit ones too.
14405         Fixes #80385.
14406
14407 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
14408
14409         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
14410         if there are no ShortcutKeys set.
14411         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
14412         set, use it when painting.
14413
14414 2007-04-12  Jackson Harper  <jackson@ximian.com>
14415
14416         * TextControl.cs: Fix some off-by-one issues in line duplication
14417         and insertion in the undo manager. Also, overwrite the first tag
14418         of a line on insert, if it is just a zero lengthed tag. This
14419         prevents us from getting an extra stranded tag at the beginning of
14420         the first line.
14421
14422 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
14423
14424         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
14425         to calculated proper size including when handle was not created yet.
14426
14427 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14428
14429         * MdiWindowManager.cs: When moving a form, allow the form to be moved
14430           when the mouse is outside of it's parent's client rectangle. Fixes
14431           #79982 (take 3, part 2).
14432
14433 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14434
14435         * X11Structs.cs: Add a few ToString() overrides.
14436         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
14437           the window location in a window-manager independent way. Reworked
14438           FrameExtents, it now actually works. Reworked AddConfigureNotify
14439           and ReparentNotify handling to use GetTopLevelWindowLocation
14440           instead of the earlier, more hacky solution. Reworked SetWMStyles,
14441           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
14442           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
14443           for all other windows (fixes #81281 part 1), a toolwindow is hidden
14444           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
14445           and generally refactored to do as few calculations as possible
14446           inside the lock.
14447
14448 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
14449
14450         * Theme.cs: Change "reflective-contract" between MWF and SD to 
14451         minimize # of calls, avoid Color serialization and avoid updating 
14452         every "known colors" each time a single one is updated.
14453
14454 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14455
14456         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
14457         when not readonly and the text is explicitly set. Code style updates.
14458         * DataGridTableStyle.cs: Removed extra line.
14459         * DataGrid.cs: Code style updates. Removed extra whitespace.
14460         * DataGridColumnStyle.cs: Code style updates. Removed extra 
14461         whitespace.
14462
14463 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14464
14465         * XplatUIX11.cs: Added comment that "fixes" #80021.
14466
14467 2007-04-09  Jackson Harper  <jackson@ximian.com>
14468
14469         * TextControl.cs: We don't need this -1 on the line count anymore.
14470
14471 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
14472
14473         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
14474         entered value to underlying type, and convert it back to a string to
14475         apply formatting. Modified GetFormattedValue to use TypeConverter
14476         if available.
14477
14478 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
14479
14480         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
14481         Use SubItems property when we want to ensure there's at least one
14482         subitem. Modified SubItems property to ensure there's always at least
14483         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
14484         the NRE's reported by MS.
14485
14486 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
14487
14488         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
14489         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
14490         Spaces to tabs. Removed extra tabs.
14491
14492 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
14493
14494         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14495         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
14496
14497 2007-04-06  Jackson Harper  <jackson@ximian.com>
14498
14499         * TextBoxBase.cs: When a delete removes a line, recalculate all
14500         lines below that line (they need to get offsets setup correctly)
14501         and invalidate.
14502
14503 2007-04-05  Jackson Harper  <jackson@ximian.com>
14504
14505         * TextControl.cs: We need to invalidate across the width of the
14506         document when we are invalidating multiple lines.
14507         * TextBoxBase.cs: Don't delete into the line ending.
14508
14509 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14510
14511         * ListView.cs: Restore the check for the MouseHover event
14512         in ListView. It looks like the ListView fires more than one MouseHover
14513         event when HoverSelection is true  _only_ in weird-corner scenarios, but
14514         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
14515         event.
14516
14517 2007-04-05  Mike Kestner  <mkestner@novell.com>
14518
14519         * ListView.cs : raise MouseDown before updating selection.
14520         [Fixes #80373 tab 1&3]
14521
14522 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14523
14524         * ToolStripRenderer.cs: Add static method to mirror image.
14525         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
14526         and RightToLeftAutoMirrorImage.
14527         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
14528
14529 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
14530
14531         * ToolStripSplitStackLayout.cs: Support Alignment property.
14532         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
14533
14534 2007-04-05  Jackson Harper  <jackson@ximian.com>
14535
14536         * TextControl.cs: Move around the line endings when crossing line
14537         boundaries.
14538         - When combining lines, strip the ending text off the first line.
14539
14540 2007-04-05  Jackson Harper  <jackson@ximian.com>
14541
14542         * TextControl.cs:
14543         * TextBoxBase.cs: Try to never move the cursor into the line
14544         ending.
14545         
14546 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14547
14548         * ToolStripItem.cs: Make sure we aren't firing mouse events when
14549         the item is disabled.  Also add a few missing methods.
14550
14551 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14552
14553         * ListView.cs: We don't need the MouseEnter/MouseLeave check
14554         to fire just one MouseHover event when HoverSelection is true, since
14555         .Net does fire more than one MouseHover event in that scenario. Also,
14556         fix the selection in HoverSelection, by invoking UpdateMultiSelect
14557         if MultiSelect is true, instead of only setting ListViewItem.Selected.
14558         Finally, we need to reset the Hover logic in MouseMove, even when we
14559         don't have a selected item.
14560
14561 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14562
14563         * ToolStrip.cs: Add several missing methods, properties, and events.
14564
14565 2007-04-04  Chris Toshok  <toshok@ximian.com>
14566
14567         * DataGridTextBoxColumn.cs: set the bounds of the text box to
14568         (0,0,0,0) in Commit, as MS does.
14569
14570         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
14571         make sure we set CurrentRow on a row header click *before* calling
14572         Select.  This moves the current cell (and the textbox) to the new
14573         row.  The call to Select then hides the textbox, giving us the
14574         correct behavior.  Fixes #80362.
14575
14576         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
14577         (ListChangedHandler): reorder the position/current changed events,
14578         and call UpdateIsBinding in the ItemAdded case.
14579
14580         * GridColumnStylesCollection.cs: add some columns events, one of
14581         which raises the CollectionChanged event.
14582
14583 2007-04-04  Jackson Harper  <jackson@ximian.com>
14584
14585         * TextControl.cs: When we delete multiple selection lines
14586         invalidate the selection area, don't need to do that for single
14587         lines because the final update view will handle it.
14588
14589 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
14590
14591         * Control.cs: When we CreateControl, we need to also create all of the
14592         control's children.  The child's OnLoad must also fire before the parent's
14593         OnLoad.  Fixes the toolbox size in PDN.
14594
14595 2007-04-04  Jackson Harper  <jackson@ximian.com>
14596
14597         * TextBoxBase.cs: When the user presses enter, insert a line
14598         ending into the text. (Maybe this would be a good spot for
14599         Environment.NewLine).
14600         * TextControl.cs: Remove undo manager hack, line endings get
14601         inserted properly now.
14602         
14603 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14604
14605         * MenuAPI.cs: 
14606         - Remove unneeded parameters in UpdateCursor.
14607         - Fix UpdateCursor to check if menu is active.
14608         - Call UpdateCursor when menu deactivate my click.
14609         [Fixes remaining issues from #80410]
14610
14611 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
14612
14613         * Control.cs: GetRealChildAtPoint method added, it make an
14614         recursive child control search for the point. 
14615
14616         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
14617         menu.
14618
14619         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
14620
14621 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14622
14623         * Form.cs: Fix mouse position when send back mouse event after closes
14624         menu.
14625
14626 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
14627
14628         * Form.cs: Simplify the BUTTONDOWN for active tracker.
14629
14630 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14631
14632         * Control.cs: Fix an issue where if a user resized a control inside
14633         a sizing method like OnResize, we would overwrite their explicit
14634         value.  Also, only call DefaultSize once in the constructor instead
14635         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
14636         nothing actually changed.
14637
14638 2007-04-03  Jackson Harper  <jackson@ximian.com>
14639
14640         * TextControl.cs: Don't attempt to copy text for lines with no
14641         text in them (technically this shouldn't happen, but we aren't
14642         always inserting line endings when we should be).
14643
14644 2007-04-03  Jackson Harper  <jackson@ximian.com>
14645
14646         * TextBoxBase.cs: Calculate the scrollbars before calculating the
14647         document, because this sets some of the document size properties
14648         that are needed.
14649
14650 2007-04-03  Jackson Harper  <jackson@ximian.com>
14651
14652         * TextBoxBase.cs: We need to calculate maximums even if this is
14653         not a multiline control, because the maxs are used for scrolling.
14654         - Display the caret after doing a page up/down, we need to
14655         manually display it because a proper CaretMoved event isn't
14656         triggered (this is because of the way the math is done to
14657         determine how far to scroll).
14658
14659 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
14660
14661         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
14662         (ToolBar was relying on SetBoundsCore to default the values sent 
14663         base off of BoundsSpecified.)
14664
14665 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14666
14667         * DateTimePicker.cs: Change Text so that when a null value or empty
14668           string is assigned to the test we always raise ValueChanged and
14669           TextChanged (earlier implementation would only raise ValueChanged
14670           if the current date value was different from DateTime.Now).
14671
14672 2007-04-03  Andreia Gaita <avidigal@novell.com> 
14673
14674         * ButtonBase: Call update after invalidation, fixes #80194
14675
14676 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14677
14678         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
14679           #79335.
14680
14681 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14682
14683         * XplatUIX11.cs: SetWMStyles: If the control is a form with
14684           FormBorderStyle = None, don't give the window any decorations.
14685           Fixes #81276.
14686
14687 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14688
14689         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14690         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
14691           to check for is a mix of several styles (such as WS_CAPTION for
14692           instance).
14693         * Control.cs: Don't paint an area bigger than the client area when
14694           painting the background colour. Add an internal GetCreateParams.
14695           Update calls to XplatUI.CalculateWindowRect due to API change.
14696         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
14697           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
14698           the size if it hasn't been handled by any windows. When creating
14699           and moving windows, X wants the location of the entire window, but
14700           the size of the client window, so add
14701           TranslateClientRectangleToXClientRectangle,
14702           TranslateWindowSizeToXWindowSIze and
14703           TranslatedXWindowSizeToWindowSize to cope with this, and call them
14704           before every window creation and move. Update CalculateWIndowRect
14705           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
14706           In AddConfigureNotify don't do anything if the hwnd is a zombie
14707           (fixes the BadWindow we were getting while running the tests),
14708           always calculate the offsets when it's a parentless window, not
14709           only when reparented, and translate the window size, since we're
14710           getting the client size of the whole window, excluding entire
14711           window.
14712         * Theme.cs: Added BorderSizableSize.
14713         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14714           anymore. Update calls to XplatUI.CalculateWindowRect due to API
14715           chang
14716         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
14717           change. Fake the window styles here instead of in XplatUIWin32 so
14718           that all back-ends get the same window styles (and it's Form that's
14719           deciding when to use wm, not the Win32 backend anyways)
14720         * Hwnd.cs: Completely reworked GetWindowRectangle and
14721           GetClientRectangle - they are now passed a CreateParams and they
14722           only use Style and ExStyle to determine the rectangles (they should
14723           now work just like Win32AdjustWindowRectEx - though quite a few
14724           special cases are probably missing). They should also be 100%
14725           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
14726           == rect), and all numbers (borders, menu sizes) are taken from the
14727           current theme. Added a GetBorders helper function that will return
14728           the borders for any given CreateParams (including captions and
14729           menus), and GetBorderSize that returns the given border size only.
14730         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14731           Hwnd.GetClientRectangle.
14732
14733 2007-04-02  Chris Toshok  <toshok@ximian.com>
14734
14735         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
14736         logic between the values we present to the user and the values
14737         which are stored in the column's property.  Also, don't call
14738         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
14739
14740 2007-04-02  Jackson Harper  <jackson@ximian.com>
14741
14742         * TextBoxBase.cs: Scroll faster!
14743
14744 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14745
14746         * StatusStrip.cs: Layout fixes for PDN.
14747         * ToolStrip.cs: Set item's available to true, and placement to main when
14748         added.
14749         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
14750         changing in setter before doing any work, add InternalVisible.
14751         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
14752         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
14753         infinite loop.
14754
14755 2007-04-02  Jackson Harper  <jackson@ximian.com>
14756
14757         * TextBox.cs: LBUTTON does not make the textbox select all of it's
14758         text on focus.
14759
14760 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14761
14762         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
14763           Makes ToolStripComboBoxes show up again.
14764
14765 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14766
14767         * ListView.cs: Add a hover_pending field in ListView
14768         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
14769         cycle (we are resetting the MouseHover logic in XplatUI
14770         to handle HoverSelection). Fixes #80429.
14771
14772 2007-04-02  Jackson Harper  <jackson@ximian.com>
14773
14774         * TextControl.cs: Make sure the attributes get set on the last
14775         tag.
14776         - Still have to do the end tag if we have stepped all the ways to
14777         the end.
14778
14779 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
14780
14781         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
14782         on an internal libgdiplus call when the information is already 
14783         available via the public API.
14784
14785 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14786
14787         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
14788           control is removed from a control collecftion.
14789         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
14790           Fixes FormPropertyTest (failed on rare occasions).
14791         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
14792           of Win32SetParent (when changing from no parent to a parent it
14793           might add the new parent's location in screen coordinates to this
14794           window's location).
14795         * Form.cs: Rework ChangingParent once again, now the handle is
14796           recreated whenever a FormWindowManager is added or removed (that is
14797           whenever a normal form is parented or abandoned). Also change
14798           CreateParams so that all non-toplevel windows always get the
14799           specified sice (StartupPosition is never considered for
14800           non-TopLevel forms).
14801         * ContainerControl.cs: Add ChildControlRemoved, the container control
14802           needs to be notified when a control is removed from it's
14803           collection, in the case the removed control is the active control.
14804
14805 2007-04-02  Jackson Harper  <jackson@ximian.com>
14806
14807         * RichTextBox.cs: Use the new methods for setting the font and
14808         color, these methods set the specified attribute without
14809         overriding the other attributes.
14810
14811 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
14812
14813         * ToolStripPanel.cs: Fixes for better layouts in PDN.
14814
14815 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
14816
14817         * TextBox.cs: Added internal ChangeBackColor method to special-case
14818         Color.Empty. Added check for invalid ScrollBars value.
14819         * TextBoxBase.cs: Added internal ChangeBackColor method.
14820         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
14821         internal ChangeBackColor method to special-case Color.Empty. Added
14822         check for invalid ScrollBars value.
14823
14824 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
14825
14826         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
14827
14828 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14829
14830         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
14831         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
14832         [Based on submitted patch from Olivier Duff.]
14833
14834 2007-03-30  Jackson Harper  <jackson@ximian.com>
14835
14836         * TextBox.cs: Only select all on initial focus if the user has not
14837         specified a selection area.
14838
14839 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
14840
14841         * UserControl.cs: Override CreateParams.
14842
14843 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14844
14845         [ Fixes #80995 ]
14846
14847         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
14848         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
14849           check for is a mix of several styles (such as WS_CAPTION for instance).
14850         * Control.cs: Don't paint an area bigger than the client area when painting
14851           the background colour. Add an internal GetCreateParams. Update calls to
14852           XplatUI.CalculateWindowRect due to API change.
14853         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
14854           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
14855           hasn't been handled by any windows. When creating and moving windows, X
14856           wants the location of the entire window, but the size of the client
14857           window, so add TranslateClientRectangleToXClientRectangle,
14858           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
14859           to cope with this, and call them before every window creation and move.
14860           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
14861           removing DeriveStyles). In AddConfigureNotify don't do anything if the
14862           hwnd is a zombie (fixes the BadWindow we were getting while running the
14863           tests), always calculate the offsets when it's a parentless window, not
14864           only when reparented, and translate the window size, since we're getting
14865           the client size of the whole window, excluding entire window.
14866         * Theme.cs: Added BorderSizableSize.
14867         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
14868           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
14869         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
14870           Fake the window styles here instead of in XplatUIWin32 so that all
14871           back-ends get the same window styles (and it's Form that's deciding when
14872           to use wm, not the Win32 backend anyways)
14873         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
14874           they are now passed a CreateParams and they only use Style and ExStyle
14875           to determine the rectangles (they should now work just like
14876           Win32AdjustWindowRectEx - though quite a few special cases are probably
14877           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
14878           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
14879           sizes) are taken from the current theme. Added a GetBorders helper
14880           function that will return the borders for any given CreateParams
14881           (including captions and menus), and GetBorderSize that returns the given
14882           border size only.
14883         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
14884           Hwnd.GetClientRectangle.
14885
14886 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
14887
14888         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
14889           layout of the mdi children is handled by CreateParams. Fixes
14890           #79964,
14891
14892 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14893
14894         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
14895         processed.
14896
14897         * Form.cs: When active tracker mouse down is not processed, send event 
14898         back to control inside mouse position. [Fixes #81227]
14899
14900 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14901
14902         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
14903         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
14904         stealing focus from the active form on Windows.  (Control will be made
14905         visible in ShowWindow.)
14906
14907 2007-03-29  Mike Kestner  <mkestner@novell.com>
14908
14909         * ImageList.cs : add internal Changed event.
14910         * ListView.cs : hook up to StateImageList.Changed to perform
14911         invalidations when the the state icon list changes. [Fixes #81191]
14912
14913 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
14914
14915         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
14916         to prevent tooltips from stealing focus from the active form on Windows.
14917
14918 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14919
14920         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
14921
14922         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
14923
14924 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14925
14926         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
14927         balloons.
14928
14929 2007-03-29  Jackson Harper  <jackson@ximian.com>
14930
14931         * TextControl.cs: When deleting text from non multiline textboxes,
14932         we need to update the entire document, because line offsets will
14933         be shifting.
14934
14935 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
14936
14937         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
14938         added to theme, now we can create themes that uses diferent notify engines
14939         like notification-daemon from galago project or growl for Mac OS.
14940
14941 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14942
14943         * NotifyIcon.cs: Prevent Balloon to show in task bar.
14944
14945 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14946
14947         * XplatUIX11.cs: Prevent system to open more than one balloon.
14948
14949         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
14950         some compiler warning messages.
14951
14952 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
14953
14954         [Fixes #79149]
14955
14956         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
14957
14958         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
14959         implemented, this methods is used by NotifyIcon.BalloonWindow class.
14960
14961         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
14962         systems.
14963
14964 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14965
14966         * ListViewItem.cs: Forgot to make Invalidate internal.
14967
14968 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14969
14970         * ListView.cs: Add a InvalidateSelection method to
14971         invalidate methods which are currently selected, and call
14972         it when setting FullRowSelect and HideSelection, instead of
14973         calling Redraw.
14974
14975 2007-03-28  Chris Toshok  <toshok@ximian.com>
14976
14977         * XplatUIX11.cs (UnmapWindow): reindent this block.
14978
14979         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
14980         the selection_start if we're moving the selection (that is, not
14981         extending it). Fixes bug #80461.
14982
14983 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14984
14985         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
14986         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
14987         create private ControlCollection.
14988
14989 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14990
14991         * Control.cs: We need to call OnVisibleChanged for our implicit
14992         children as well as our normal children.  Fixes scrollbars in
14993         comboboxes not showing up.
14994
14995 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
14996
14997         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
14998         the check for IsHandleCreated first.  The check in CreateHandle is not
14999         good enough because CreateHandle can be overriden, and the override 
15000         should not be called if the handle is already created.
15001
15002 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
15003
15004         * ToolStrip.cs: Remove MonoTODO for tooltips.
15005         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
15006         * ToolStripContainer.cs: Add custom ControlCollection class.
15007         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
15008         * ToolStripDropDown.cs: Add some missing properties/methods.
15009         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
15010         * ToolStripItem.cs: Remove MonoTODO for tooltips.
15011         * ToolStripManager.cs: Add IsShortcutDefined.
15012         * ToolStripOverflow.cs: Override LayoutEngine.
15013         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
15014         * ToolStripSeparator.cs: Add ImageKey.
15015
15016 2007-03-28  Jackson Harper  <jackson@ximian.com>
15017
15018         * TextControl.cs: If a char delete removes a line ending, we need
15019         to update the ending style.
15020         - Make sure the line ending calcs get called.
15021
15022 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15023
15024         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
15025           it was making the new code not work. Fixed a typo in the new code
15026           as well. Fixes #79826.
15027
15028 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15029
15030         * XplatUIWin32.cs:
15031         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
15032         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
15033         - SystrayBalloon method implemented.
15034         [Add support for notifyicon balloon on win32, #79149]
15035
15036 2007-03-27  Mike Kestner  <mkestner@novell.com>
15037
15038         * ThemeWin32Classic.cs : update StateImageList selection to mirror
15039         the ms behavior when only one image is added to the list.
15040         [Fixes #81191]
15041
15042 2007-03-27  Jackson Harper  <jackson@ximian.com>
15043
15044         * TextControl.cs: Improvements to non multiline line ending
15045         drawing/measuing.
15046
15047 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15048
15049         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
15050
15051 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15052
15053         * NotifyIcon.cs: 
15054         - Balloon message handling added.
15055         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
15056
15057         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15058         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
15059         to SystrayBalloon to me like other Systray method, also a
15060         handle parameter added.
15061
15062 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15063
15064         * ListView.cs: Show scrollbars even when items.Count == 0
15065         but the columns Width is bigger than the ListView.Width.
15066         Also, when columns.Count == 0 set layout_wd and layout_ht
15067         to the ClientRectangle values, so we don't show any scrollbar
15068         in that case.
15069
15070 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15071
15072         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
15073
15074 2007-03-27  Jackson Harper  <jackson@ximian.com>
15075
15076         * RichTextBox.cs: The RTF library decodes the text properly for us
15077         now.
15078
15079 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15080
15081         * ListView.cs: Display HeaderControl even when columns.Count == 0.
15082         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
15083         ListView header (HeaderControl), instead of Control.BackColor.
15084
15085 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15086
15087         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
15088         Fixes tab control issues where controls would not show up because they
15089         never received their OnVisibleChanged call.
15090
15091 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
15092
15093         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
15094         BalloonTipShown).
15095
15096 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
15097
15098         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
15099         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
15100         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
15101         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
15102         the handle.  Fix WindowState by using the internal variable until we are 
15103         sure that we've been shown.
15104         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
15105         max or min.
15106         [Fixes bug #81198]
15107
15108 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15109
15110         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
15111           (at least borders). Fixes #79386 on Linux (with a small difference
15112           in behaviour: when trying to resize a caption-less window metacity
15113           shows the sysmenu. Resizing is still possible though).
15114         * XplatUIWin32.cs: When setting window styles send request an extra
15115           WM_NCCALCSIZE when it's a form without title (due to no text and no
15116           caption), since Win32 seems to calculate it wrong the first time we
15117           get the message, though the second time things work as they should.
15118         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
15119           newly reparented window might show up unparented. Update
15120           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
15121           there's no title text. Fixes #79386.
15122
15123 2007-03-27  Mike Kestner  <mkestner@novell.com>
15124
15125         * ListBox.cs : don't perform invalidations if the handle hasn't been
15126         created.  [Fixes #80753]
15127
15128 2007-03-27  Mike Kestner  <mkestner@novell.com>
15129
15130         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
15131         [Fixes #80428]
15132
15133 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15134
15135         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
15136         needed to implement Balloon.
15137
15138 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15139
15140         * ListViewItem.cs: In the constructors that take
15141         an array of strings, don't use ListViewSubItemCollection.AddRange
15142         method to add items, since we need to have a different behaviour (in
15143         the constructors we add an item for each null string, opposed to
15144         the behaviour of AddRange, which adds nothing).
15145
15146 2007-03-26  Andreia Gaita  <avidigal@novell.com>
15147
15148         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
15149
15150 2007-03-26  Jackson Harper  <jackson@ximian.com>
15151
15152         * TextControl.cs: Draw and measure line endings when in non
15153         multiline mode.
15154         - When searching the text, count the end of the last line as a
15155         word boundary.
15156
15157 2007-03-26  Jackson Harper  <jackson@ximian.com>
15158
15159         * RichTextBox.cs: The selection_start and selection_end don't
15160         really track the correct tags for the selection. So we'll manually
15161         compute the correct tag here.
15162
15163 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15164
15165         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
15166           and Continuous styles. Fixes #79469.
15167
15168 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15169
15170         * ToolStrip.cs: Implement Tooltips.
15171         * ToolStripItem.cs: Create internal method for determining tooltip.
15172
15173 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
15174
15175         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
15176
15177 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15178
15179         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
15180         it prevents a problem thak keeps icon visible after application 
15181         closes on win32.
15182
15183 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
15184
15185         * NotifyIcon.cs: Balloon properties and methods created.
15186
15187         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15188         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
15189
15190 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
15191
15192         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
15193
15194 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15195
15196         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
15197         parameter indicates which aspects were explicit/user-set.
15198         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
15199
15200 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
15201
15202         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
15203         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
15204         SmallChange, and Value (2.0).
15205         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
15206
15207 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15208
15209         * ListView.cs: Always set item_control.Width in LayoutDetails
15210         if View is Details. Setting it later in CalculateScrollBars
15211         in a not-so-corner scenario (the sum of columns width is
15212         not bigger than the ListView width when handle is created, and then
15213         that sum gets bigger by increasing the width of the columns)
15214         causes a very weird recursion path (which shouldn't be happening,
15215         since header_control sets it in CalculateScrollBars too). This bug
15216         appeared after Chris' fixes for handle created issues, so probably
15217         it's related to some handle-creation time.
15218
15219 2007-03-23  Chris Toshok  <toshok@ximian.com>
15220
15221         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
15222         case where there's an add row, just so we don't end up in a case
15223         where it's not displayed (this happens when the row is partially
15224         obscured).  Fixes bug #79574.
15225
15226 2007-03-23  Jackson Harper  <jackson@ximian.com>
15227
15228         * TextControl.cs:
15229         * TextBoxBase.cs:
15230         * RichTextBox.cs: Preserve line endings in the lines text buffer,
15231         also added an enum that represents the line ending type. 
15232
15233 2007-03-23  Andreia Gaita  <avidigal@novell.com>
15234
15235         * NumericUpDown.cs: Fix logic so Text and Value properties are not
15236         messed with in every method call, but only from DownButton, 
15237         UpButton, UpdateEditText() and ValidateText. Fixes #80346
15238
15239 2007-03-23  Chris Toshok  <toshok@ximian.com>
15240
15241         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
15242         format objects if the format spec is "".  Fixes bug #80889.
15243
15244 2007-03-22  Miguel de Icaza  <miguel@novell.com>
15245
15246         * ToolStripPanel.cs (Join): added stubs to build PDN3
15247
15248         * Control.cs (AutoScrollOffset): Add.
15249
15250         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
15251         property, its only implemented for Win32, on X11 it defaults to
15252         some hardcoded value.
15253
15254         * ToolStripItem.cs (AllowDrop): Add property
15255
15256 2007-03-22  Mike Kestner  <mkestner@novell.com>
15257
15258         * ListView.cs : in FullRowSelect Details mode, only enable box
15259         selection if the user clicks over the "item" column outside of the
15260         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
15261
15262 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15263
15264         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
15265           handle is not created yet.
15266         * Form.cs: Select: Don't call CreateHandle if the handle is already
15267           created, avoids a stack overflow on Windows when we are recreating
15268           controls.
15269         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
15270           they are made visible, and override AfterTopMostControl to keep
15271           them on top when other controls are brought to front.
15272           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
15273           or force_*scroll_visible is true (old implementation always shows
15274           scrollbars when needed, no matter what auto_scroll was set to).
15275         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
15276           IsHandleCreated check.
15277
15278 2007-03-22  Andreia Gaita  <avidigal@novell.com>
15279
15280         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
15281         row or col separator.
15282         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
15283
15284 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15285
15286         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
15287
15288 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15289
15290         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
15291         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
15292         every time. Fixes #80410.
15293
15294 2007-03-22  Chris Toshok  <toshok@ximian.com>
15295
15296         * BindingSource.cs (AddNew): partially implement.
15297
15298         remove a couple of NotImplementedException's
15299         to get bug #81148 closed.
15300
15301 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
15302
15303         [Fixes #80380]
15304         
15305         * Control.cs:
15306         - UpdateCursor method added to update the screen cursor.
15307         - GetAvailableCursor method added to return cursor for enabled tree,
15308         it searches for cursor on control and it's parent's for enabled control.
15309         - Call UpdateCursor method on setter of Cursor property.
15310         - On setter of Enabled call UpdateCursor when it is false, we need to
15311         change cursor to normal (or to this parent cursor) because cursor 
15312         setting theres no effect to disabled controls.
15313         - Some minor source changes to follow the coding style guidelines.
15314
15315         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
15316         controls.
15317
15318 2007-03-22  Chris Toshok  <toshok@ximian.com>
15319
15320         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
15321         generates.
15322
15323 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15324
15325         * XplatUIX11.cs: Implement default locations for forms.
15326         * Form.cs: Completely rework startup location for forms. Fixes #79964.
15327         * Hwnd.cs: Add previous_child_startup_location (to track the current
15328           startup location for any child forms of the current form) and
15329           previous_main_startup_location (to track the startup location for
15330           the current toplevel form).
15331
15332 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15333
15334         * Control.cs: Don't trigger a layout if an implicit control is added
15335         that isn't visible.  Also, don't notify the owner when an implicit control
15336         is added.  (Owners shouldn't even know about their implicit controls.)
15337
15338 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15339
15340         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
15341         to save some re-layouts.
15342
15343 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
15344
15345         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
15346         [Fixes #81203]
15347
15348 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
15349
15350         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
15351         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
15352
15353 2007-03-21  Mike Kestner  <mkestner@novell.com>
15354
15355         * ListView.cs : disable selection update for non-left button clicks
15356         with mods and over selected items.  [Fixes #80524]
15357
15358 2007-03-20  Jackson Harper  <jackson@ximian.com>
15359
15360         * TextControl.cs:
15361         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
15362         \r\r\n, \n.
15363
15364 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15365
15366         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
15367           very probably a more complicated calculation there. Update the
15368           textbox' ForeColor and BackColor when the ComboBox' colors are
15369           changed. Change the border change in LayoutComboBox to only affect
15370           the textbox, not all the calculations there. Seems to fix most of
15371           #79436.
15372
15373 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15374
15375         * ComboBox.cs: Handle Home and End keys as well as all combinations of
15376           modifiers + navigation keys as input keys, enables advanced text
15377           selection in the combobox (like Shift+Left Arrow for instance).
15378           ComboTextBox now overrides Focused and returns whatever
15379           ComboBox.Focused returns, since it really should be focused
15380           whenever the ComboBox is. Fixes #80795. Also make the border around
15381           the text box one pixel bigger, as mentioned in #79436.
15382
15383 2007-03-20  Jackson Harper  <jackson@ximian.com>
15384
15385         * TreeView.cs: Don't offset the images, this was causing some
15386         artifacts when expanding/collapsing with images that were the
15387         exact height of the treenode.
15388
15389 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15390
15391         * TrackBar.cs: Query the theme for the correct value when the mouse
15392           moves and the thumb is pressed. 
15393         * Theme.cs: Added TrackBarValueFromMousePosition
15394         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
15395           implementation was updating the trackbar value when drawing, now
15396           the drawing methods only draw. Fixes #80900. Refactored the
15397           calculations out to TrackBarValueFromMousePosition and
15398           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
15399           according to the mouse position whenever it wants to. Changed the
15400           light coloured pen when drawing the thumb from ControlLight to
15401           ControlLightLight, because the ControlLight is the same colour as
15402           the background so the 3D effect is lost. 
15403
15404 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15405
15406         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
15407         defined. Fixes #80784.
15408
15409 2007-03-20  Marek Habersack  <mhabersack@novell.com>
15410
15411         * ContextMenuStrip.cs: align with the change introduced in
15412         revision 74664.
15413
15414 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15415
15416         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
15417         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
15418         in SetTopmost.
15419
15420 2007-03-19  Chris Toshok  <toshok@ximian.com>
15421
15422         * Control.cs (WmPaint): don't make use of the Handle property
15423         after an event is emitted, as the user could have closed the
15424         form/destroyed the control.  Store the Handle in a local variable
15425         and make use of that.  Fixes bug #80768.
15426
15427 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15428
15429         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
15430         behavior in X11 environments.
15431
15432 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15433
15434         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
15435         because on setter of topmost we dont call SetTopmost when handle is not
15436         created.
15437
15438 2007-03-20  Jackson Harper  <jackson@ximian.com>
15439
15440         * TextControl.cs: Need to use SelectionLength () not
15441         selection_length, since that var is reset to -1.
15442         - Draw the caret when we don't have focus.
15443         * TextBox.cs: The selectall actually doesn't occur until the first
15444         focus.
15445         * TextBoxBase.cs: Need to update the caret position after a
15446         selectall.
15447         
15448 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15449
15450         * ListView.cs: Enable scrolling when using Tile view.
15451
15452 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
15453
15454         [Fixes #80902]
15455
15456         * XplatUIDriver.cs: Abstract SetOwner method created.
15457
15458         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
15459         must be implemented and was masked as todo.
15460
15461         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
15462         GWL_HWNDPARENT.
15463
15464         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
15465         cheking for null owner to remove transient. The SetTopmost will be change
15466         on a decond step.
15467
15468         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
15469         SetTopmost. Now owned forms will work properly in win32 and X11.
15470
15471 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15472
15473         * MdiWindowManager.cs: Update function name.
15474         * Form.cs: After closing a form MdiParent is always null.
15475         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
15476           better what it should do: necessary book-keeping when the form is
15477           closed, it should not close the form itself.
15478
15479 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15480
15481         * ListViewItem.cs: Fix back and fore color. The subitems only
15482         use their own colors if they are set, otherwise use the listview's
15483         colors. Don't set default colors on constructor for subitem.
15484         Fixes #79315.
15485
15486 2007-03-19  Mike Kestner  <mkestner@novell.com>
15487
15488         * ListView.cs : make box selection for Details views with 
15489         FullRowSelect conform to MS behavior when clicking in the "item" 
15490         column and clicking outside the defined columns.
15491         [Fixes case 5-6 of #80374]
15492
15493 2007-03-19  Chris Toshok  <toshok@ximian.com>
15494
15495         * ScrollableControl.cs: create the controls from within the ctor,
15496         but don't actually add them until our handle is created.  this
15497         fixes a NRE possibility jpobst found (if you override OnLayout in
15498         a subclass, it's called before your ctor).  Also, add a
15499         IsHandleCreated guard to UpdateSizeGripVisibility as well.
15500
15501 2007-03-19  Jackson Harper  <jackson@ximian.com>
15502
15503         * TextBox.cs: Reduce the amount of invalidation we do.
15504         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
15505         some of them are true by default on MS.
15506         - Add some functions to reduce the amount of invalidates we do.
15507         * TextControl.cs: Less invalidation.
15508
15509 2007-03-19  Chris Toshok  <toshok@ximian.com>
15510
15511         [ Fixes #81773, and *seems* to fix #81553 as well ]
15512
15513         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
15514         AccumulateDestroyedHandles.  We need to do it *after* we send
15515         WM_DESTROY, as the user's code can access Control.Handle in
15516         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
15517         move the WM_DESTROY/zombie handling to before the call to
15518         XDestroyWindow.  For some reason without this ordering
15519         FormTest.RecreateHandle hangs.  This ordering is semantically
15520         equivalent, however, as XDestroyWindow is async anyway.
15521
15522 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
15523
15524         * RichTextBox.cs: Reset backcolor_set after setting default.
15525
15526 2007-03-19  Chris Toshok  <toshok@ximian.com>
15527
15528         * ScrollableControl.cs: the scroll position should not effect the
15529         canvas size.  commit patch from georgegiolfan@yahoo.com, which
15530         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
15531         
15532 2007-03-19  Chris Toshok  <toshok@ximian.com>
15533
15534         * ScrollableControl.cs: clean this up a bit.  create the
15535         scrollbars in the ctor and just show/hide them as needed.  Also,
15536         make hscroll_visible/vscroll_visible internal to Recalculate, and
15537         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
15538         everywhere else.  This seems to fix the scrollbars appearing
15539         beneath the content for me (i have *no* idea why that is,
15540         however.)
15541
15542 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15543
15544         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
15545         some redundacy for stuff in Anchor and Dock that base will take care of.
15546         [Fixes #80762]
15547
15548 2007-03-19  Mike Kestner  <mkestner@novell.com>
15549
15550         * ListView.cs : make box selection for Details views without 
15551         FullRowSelect dependent on the text bounds, not item bounds.
15552         * ListViewItem.cs : add an internal property to obtain the TextBounds
15553         in Details view.  [Fixes case 1-4 of #80374]
15554
15555 2007-03-19  Andreia Gaita  <avidigal@novell.com>
15556
15557         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
15558         we're < 2.0. #78448 && #80316
15559
15560 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
15561
15562         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
15563         have the same style available as the previously selected one.  Also,
15564         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
15565
15566 2007-03-19  Jackson Harper  <jackson@ximian.com>
15567
15568         * TextControl.cs: Add an alignment property that all new lines
15569         will be given.
15570         - Make sure to use the align shift when calculating the line's X
15571         position.
15572         * TextBox.cs: Set the alignment on the document as well as on all
15573         the document lines.
15574
15575 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15576
15577         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
15578           throw if setting the parent of an mdichild that already has an
15579           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
15580           AssemblyProductAttribute in the assembly, use the type's namespace (as
15581           MS seems to do). CreateControl: don't create the handle if the control
15582           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
15583           create handle if the control is not a form. Change FocusInternal to
15584           virtual so that it can be overriden by Form.
15585         * TextBox.cs: Update call to FocusInternal.
15586         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
15587           form is not a toplevel form when it's a mdi child, so update is_toplevel
15588           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
15589           hasn't been created. Show (IWin32Window): Don't allow this overload for
15590           toplevel windows. CenterToParent/CenterToScreen/Select: create the
15591           handle as MS does. SetVisibleCore: if called on a MdiChild and the
15592           parent isn't visible yet, save the visibility and restore it when the
15593           parent is made visible.
15594         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
15595           methods, since the visibility of the scrollbars can be changed from
15596           several places, not only from AutoScroll.
15597           [Fixes #81179]
15598
15599 2007-03-19  Jackson Harper  <jackson@ximian.com>
15600
15601         * RichTextBox.cs: Enable shortcuts by default.
15602         * TextBoxBase.cs: Add conditional shortcuts.  
15603
15604 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15605
15606         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
15607
15608 2007-03-19  Chris Toshok  <toshok@ximian.com>
15609
15610         [ Fixes bug #80604]
15611         
15612         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
15613         swallow the message we're waiting on, instead of delivering it, as
15614         this is only used for the WM_SHOWWINDOW raised from
15615         MapWindow/UnmapWindow, and the message needs to be generated
15616         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
15617         before doing the Map/Unmap.  Also make sure that the Hwnd is still
15618         alive after the message has been handled.
15619
15620         *before* the window is shown.
15621
15622         * Control.cs (CreateControl): guard a few more things inside the
15623         if (!is_created) block, as we might end up being called again -
15624         yay .net.
15625         (WmShowWindow): call CreateControl if we're showing the control.
15626
15627 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15628
15629         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
15630           controls without a handle if they have any parent with a handle. In
15631           Dispose add a check whether the handle is created or not before
15632           calling BeginInvoke, this removes the need of the extra disposing
15633           parameter (which was bogus anyway since it didn't prevent the
15634           invoke from happening, it only skipped the check for an existing
15635           handle, meaning that the invoke would call on an inexistent
15636           handle).
15637
15638 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
15639
15640         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
15641         appears in taskbar.
15642
15643 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15644
15645         * MessageBox.cs:
15646         - Fixed a problem that dont show help button for messages with 3 buttons.
15647         - Refactory button size and position calculations, now dont use fixed 
15648         values, also fixed button sizes (#80043) and form's border space.
15649         - AddButton method created, now all other AddButton methods call this one.
15650         - Some other source code cosmetic changes.
15651
15652 2007-03-18  Jackson Harper  <jackson@ximian.com>
15653
15654         * RichTextBox.cs: Don't do this all fonts must match check if
15655         there is only one char selected.
15656
15657 2007-03-18  Jackson Harper  <jackson@ximian.com>
15658
15659         * TreeView.cs: ScrollWindow works properly now, so we don't need
15660         to screw around with the scroll area.  This fixes some artifacts
15661         when expanding and collapsing.
15662
15663 2007-03-18  Jackson Harper  <jackson@ximian.com>
15664
15665         * TextBoxBase.cs: Allow updating the selection position when the
15666         cursor is outside the textarea, but we have a capture.
15667         * TextControl.cs: A special case for when the cursor is outside
15668         the bounds of the TB.
15669         
15670 2007-03-18  Jackson Harper  <jackson@ximian.com>
15671
15672         * TextBoxBase.cs: Remove image pasting code for now.  There is no
15673         way to get an image on the clipboard right now anyways.
15674         * TextControl.cs:
15675         * RichTextBox.cs: Use the new RTF Picture class for pictures.
15676
15677 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
15678
15679         * MessageBox.cs:
15680         - Set window properties in constructor intead of on CreateParams.
15681         - Remove topmost from Window ExStyle.
15682         - Set ShowInTaskbar to false.
15683         - Set form border to FixedDialog.
15684         - Some cosmetic changes and remove unneeded comments.
15685         - It fixes itens 2,3 and 4 of bug #80043.
15686
15687 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
15688
15689         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
15690         none was explicitly set. Fixes part of bug #79949.
15691
15692 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15693
15694         * ToolStripComboBox.cs: Add AutoComplete*.
15695
15696 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
15697
15698         * ToolStripComboBox.cs: Add FlatStyle.
15699
15700 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
15701
15702         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
15703         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
15704
15705 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15706
15707         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
15708           CheckBox.cs, RadioButton.cs, BindingSource.cs,
15709           DataGridColumnStyle.cs: Remove warnings.
15710
15711 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15712
15713         * Menu.cs: MergeMenu: Check menu argument for null before looping over
15714           it.
15715         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
15716           visibility of mdi child forms. FormSizeChangedHandler: update the
15717           maximized size if size has changed while maximized.
15718         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
15719           creating the handle.
15720         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
15721           avoid creating the handle if not created.
15722         * XplatUI.cs: Update debug output.
15723         * XplatUIStructs.cs: Added ToString's for a couple of structs.
15724
15725 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
15726
15727         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
15728         ProcessCmdKey().
15729         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
15730         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
15731         Implement keyboard shortcuts.
15732
15733 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15734
15735         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
15736         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
15737         ColorDialog and all derived classes.
15738
15739 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
15740
15741         [ Fixes bug #79828 ]
15742
15743         * ToolBar.cs:
15744         - Rename ToolBarButtonInfor to ToolBarItem.
15745         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
15746         - Maintain an array of ToolBarItem, used instead of ToolBarButton
15747         collection to be able add same button more than one time on a toolbar.
15748         - Refactory all properties and methods to use ToolBarItem. 
15749
15750         * ToolBarButton.cs: 
15751         - Remove all propeties and methods that is now in ToolBarItem.
15752         - Rectangle propery now gets the rectangle from first ToolBarItem to
15753         mimic win32 behavior.
15754         - Size calculation and layout methods also removed.
15755
15756         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
15757         ToolBarItem instead of ToolBarButton to right drawing buttons when
15758         same button/separator was added more than one time to ToolBar.
15759
15760         * ThemeNice.cs: Same as above. 
15761
15762 2007-03-15  Andreia Gaita  <avidigal@novell.com>
15763
15764         * XplatUIX11.cs: Fire extra MouseMove events right after
15765         MouseDown and MouseUp, emulating win32's <censored> behaviour
15766         for apps that rely on it.
15767
15768 2007-03-15  Jackson Harper  <jackson@ximian.com>
15769
15770         * TextControl.cs:
15771         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
15772         it is drawn on the controls client window and there is no NC
15773         area.
15774         - Set the background color to gray on 2.0 when we are readonly.
15775
15776 2007-03-15  Chris Toshok  <toshok@ximian.com>
15777
15778         [ Fixes bug #81144 ]
15779         
15780         * XplatUIX11.cs: implement VirtualScreen independently of
15781         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
15782         property.
15783
15784 2007-03-15  Chris Toshok  <toshok@ximian.com>
15785
15786         * Hwnd.cs: add an internal field for the cached_window_state.
15787
15788         * XplatUIX11.cs: cache the window state, invalidating the cache
15789         (and thus re-querying the X server) only when we see an update to
15790         the _NET_WM_STATE property.
15791
15792 2007-03-15  Chris Toshok  <toshok@ximian.com>
15793
15794         * BindingSource.cs: get a lot of the unit tests working.
15795
15796 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15797
15798         * Control.cs: Modify UpdateStyles to store distances when bounds >=
15799         0 instead of just bounds > 0.  [Fixes bug #80912]
15800
15801 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
15802
15803         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
15804         and methods.
15805
15806 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
15807         
15808         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
15809         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
15810         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
15811         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
15812
15813 2007-03-15  Chris Toshok  <toshok@ximian.com>
15814
15815         [ Fixes #81101 ]
15816         
15817         * Control.cs: add Ivan's fix for 81101, with a slight modification
15818         - you can set control.Target to null.
15819
15820 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
15821
15822         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
15823         HideDropDown, use Hide instead to prevent an NRE.
15824         [Fixes bug #81147]
15825
15826 2007-03-14  Jackson Harper  <jackson@ximian.com>
15827
15828         * TextBoxBase.cs: Mess with the creation stuff a little. We need
15829         to calculate the document before the handle is created, in some
15830         cases. (Actually just one case).
15831
15832 2007-03-14  Jackson Harper  <jackson@ximian.com>
15833
15834         * TextBoxBase.cs: Need to display the caret after letting the base
15835         wndproc handle the focus methods, because the caret display
15836         methods check the focus state.
15837         - Try to display the caret after updating it's position with SelectWord.
15838         - Don't need to do an immediate update on this recalc, since there
15839         will be an invalidate anyways.
15840
15841 2007-03-14  Jackson Harper  <jackson@ximian.com>
15842
15843         * TreeView.cs: Some workarounds so that we can match event order a
15844         little better.
15845
15846 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
15847
15848         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
15849         #80803. Avoid NullReferenceException when Control does not have
15850         parent. Fixed different blinkstyle issues. Only subscribe to Tick
15851         event a single time. Only draw error icon when control is created and
15852         visible. Fixes failing unit tests.
15853
15854 2007-03-14  Andreia Gaita  <avidigal@novell.com>
15855
15856         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
15857         Selecting events. Fire Leave and Enter events when changing tabs.
15858
15859 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
15860
15861         * TreeView.cs: Add TreeViewNodeSorter.
15862         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
15863
15864 2007-03-14  Chris Toshok  <toshok@ximian.com>
15865
15866         * Form.cs: go ahead and remove the RecreateHandles that jpobst
15867         removed earlier and I had him add back it.  It turns out metacity
15868         *does* in fact handle the MOTIF_WM_HINTS property changing, it
15869         just doesn't redraw the window titlebar until you resize the
15870         window.  This also means we aren't recreating the entire window
15871         hierarchy on X when you change this property.  And it looks better
15872         on windows, too.
15873
15874 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15875
15876         * ListViewItem.cs:
15877         * ListView.cs: Collecting selection information
15878         is now done in SelectedIndexCollection rather than in
15879         SelectedListViewItemCollection. This is done so we can
15880         have the selection information code in one single place
15881         (virtual mode selection information entirely depends on
15882         SelectedIndexCollection).
15883
15884 2007-03-13  Miguel de Icaza  <miguel@novell.com>
15885
15886         * ErrorProvider.cs: Add stubs for ISupportInitialize
15887
15888 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15889
15890         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
15891         in the right order with the right values, from the Checked property, 
15892         just as MS does (instead of triggering them from ListView).
15893
15894         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
15895
15896 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15897
15898         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
15899         the correct handler in OnItemCheck method (ItemCheckEventHandler 
15900         instead of EventHandler). This used to throw an InvalidCastException.
15901
15902 2007-03-13  Jackson Harper  <jackson@ximian.com>
15903
15904         * TextBoxBase.cs: Calculate the document before the handle is
15905         created, so there isn't an extra invalidate called.
15906
15907 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
15908
15909         * Form.cs: Don't set owner in ShowDialog until we are sure
15910         that we aren't going to throw an exception.  [Fixes bug #80773]
15911
15912 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
15913
15914         * TreeView.cs: Make it compile.
15915
15916 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15917
15918         * Control.cs: Another place we don't call SizeFromClientSize.
15919         * Form.cs: Another place we don't call SizeFromClientSize.
15920         [Fixes bug #81125]
15921
15922 2007-03-12  Jackson Harper  <jackson@ximian.com>
15923
15924         * TreeView.cs: Basically emulating some strangness here with
15925         exanding nodes and setting node positions when windows aren't
15926         created.
15927         - Also attempting to walk the node tree less than previously, and
15928         just use visible order calculations for determining offsets.
15929         - oops made scrolling backwards.
15930         * TreeNode.cs: We need to start nodes with a zero visible order,
15931         because the order calcs are based on the first nodes order.
15932
15933 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15934
15935         * Form.cs: Don't exit the program if RecreateHandle is called on
15936         the main form.
15937
15938 2007-03-12  Chris Toshok  <toshok@ximian.com>
15939
15940         * XEventQueue.cs: remove the use of PostQuitState.
15941
15942         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
15943         WM_QUIT message in GetMessage, return false (and if we're in the
15944         nested WaitForHwndMessage, repost the WM_QUIT message).
15945
15946 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15947
15948         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
15949         or the MaximizeBox properties.  [Part of bug #80640]
15950
15951 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
15952
15953         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
15954         no links.
15955
15956 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15957
15958         * ToolStripItem.cs: Fix some tests I broke by checking Visible
15959         instead of visible.
15960
15961 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
15962
15963         * FileDialog.cs: Use text of File name combobox to determine what
15964         files the user selected. Added tokenizer to parse the file names.
15965         Fixes bug #81123.
15966
15967 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
15968
15969         * Control.cs: We can't call SizeFromClientSize in the constructor,
15970         but we still need to do the same work, so make an internal version.
15971         [Fixes bug #80621]
15972
15973 2007-03-12  Jackson Harper  <jackson@ximian.com>
15974
15975         * TreeView.cs:
15976         * TreeNode.cs:
15977         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
15978         IsExpanded.
15979
15980 2007-03-12  Jackson Harper  <jackson@ximian.com>
15981
15982         * TextBoxBase.cs: Now that the handles are being created a little
15983         later, we need to make sure that the document is recalculated when
15984         the handle is created.
15985
15986 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
15987
15988         * Theme.cs: GetLinkFont abstract method added.
15989         
15990         * LinkLabel.cs: 
15991         - Remove CalcTrimRectangle, no longer needed.
15992         - Factor also remove, position issues must be fixed in libgdiplus.
15993         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
15994         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
15995         care about font used to draw links.
15996         - Set TabStop to true when control is "Selectable", control is selectable
15997         when have one or more links. Fixes #80501 (test case is also added).
15998         - Set the LinkArea values after links change, LinkArea values must be
15999         based in first link position and size, a test case was created.
16000         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
16001         the attribute must be true LinkArea.Length > 0. The same was applied to
16002         TabStop.
16003         
16004         * ThemeWin32Classic.cs: 
16005         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
16006         in draw method.
16007         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
16008         color change.
16009         - Draw focus rectangle for every parts focused, including parts that 
16010         is on another line, its because regions returns various rectangles
16011         and not only one. Needed to mimic W32 look.
16012         - Uses Graphics.Clip to delimite region painted, it mean that now 
16013         complete text is passed to DrawString, with this we solve layout
16014         issues without create another text renderer.
16015         - Uses Region.Intersect to fix some flickers problems, now only needed
16016         parts will redrawed.
16017         - This changes fixes #79614 and some other unreported issues, on Linux 
16018         some layout problems still remain, the problem is under 
16019         MeasureCharacterRanges but it is an libgdiplus bug.
16020
16021 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
16022
16023         * TextBox.cs: Set for foreground color.
16024         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
16025         this is already done in Control.
16026
16027 2007-03-10  Jackson Harper  <jackson@ximian.com>
16028
16029         * TextBox.cs: Set the background color, but reset the
16030         backcolor_set flag which is just for the user setting the
16031         background color.
16032
16033 2007-03-09  Chris Toshok  <toshok@ximian.com>
16034
16035         * Control.cs: really remove the call to XplatUI.SetVisible from
16036         CreateHandle(), like I said I did when I merged the branch.
16037
16038         * BindingSource.cs: implement some more of this stuff.
16039
16040 2007-03-09  Jackson Harper  <jackson@ximian.com>
16041
16042         * TextBox.cs: Don't explicitly set our background colors.
16043         * TextControl.cs:
16044         * TextBoxBase.cs: Draw readonly text.
16045         - Need to invalidate when backcolor or readonly are changed.
16046         
16047 2007-03-09  Jackson Harper  <jackson@ximian.com>
16048
16049         * TextBoxBase.cs: Don't set the forecolor until the handle is
16050         created.
16051         - Do not raise OnPaint, and removed some old debug code.
16052
16053 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
16054
16055         * ScrollableControl.cs: Fix mouse wheel scrolling.
16056
16057 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16058
16059         * Control.cs: Wire up MouseDoubleClick event.
16060
16061 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
16062
16063         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
16064         top or bottom.
16065         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
16066         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
16067         item is added.  This logic was moved to ToolStrip.OnItemAdded.
16068         [Fixes bug #81090]
16069
16070 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16071
16072         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
16073
16074 2007-03-08  Jackson Harper  <jackson@ximian.com>
16075
16076         * TreeView.cs: Show the correct image for selected node (this used
16077         to work, not sure how the code got deleted). Also implemented 2.0 feature
16078         SelectedImageKey.
16079
16080 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16081
16082         * ListView.cs:
16083         * ListViewItem.cs: Cache index in items when retrieving them
16084         in VirtualMode.
16085
16086 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16087
16088         * ToolStripItem.cs: Don't return the explicit_size if we are using 
16089         AutoSize.  Fixes invalidation issue when user has explicitly set a
16090         size and has AutoSize = true.
16091
16092 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16093
16094         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
16095
16096 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16097
16098         * DataGridView.cs: Remove event handler from DataView when a
16099         DataTable is used as DataSource.
16100
16101 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
16102
16103         * Control.cs: Create internal setter for client_size to allow it to be
16104         set without triggering resizing code.
16105         * Form.cs: Calculate client_size in constructor, only change client_size
16106         in FormBorderStyle property if Handle has been created.
16107         [Fixes #80574, #80791]
16108
16109 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
16110
16111         * SystemInformation.cs: Add TerminalServerSession.
16112
16113 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16114
16115         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
16116         TreeView code.
16117
16118 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16119
16120         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
16121         Handle before we were supposed to.  Now checks ActivateOnShow property
16122         in Control.
16123         * Control.cs: Add internal ActivateOnShow property.
16124         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
16125         for ActivateOnShow.
16126         * Hwnd.cs Remove no longer needed no_activate field.
16127
16128 2007-03-07  Jackson Harper  <jackson@ximian.com>
16129
16130         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
16131         2.0 properties
16132         * DrawTreeNodeEventHandler.cs: Add
16133         * DrawTreeNodeEventArgs.cs: Correct default value.
16134         
16135 2007-03-07  Chris Toshok  <toshok@ximian.com>
16136
16137         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
16138         to be called before NativeWindow.WndProc.  Put the HwndCreating
16139         magic there to hook up our Hwnd's to handles.
16140
16141 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
16142
16143         * DataGridView.cs: Comment out debug code.
16144
16145 2007-03-07  Chris Toshok  <toshok@ximian.com>
16146
16147         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
16148         to make the rest of the world happy]
16149
16150         * Control.cs (CreateHandle): there's no need to call
16151         XplatUI.SetVisible here, it's effectively done by
16152         XplatUI.CreateWindow on X now, and always was on windows.
16153
16154         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
16155         shortcircuit out of the loop if we have a message loop running on
16156         this thread.
16157
16158         [Changelog from merge]
16159
16160         2007-03-05  Chris Toshok  <toshok@ximian.com>
16161
16162                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
16163                 causes handle creation.
16164
16165         2007-02-28  Chris Toshok  <toshok@ximian.com>
16166
16167                 * ApplicationContext.cs: Add a flag to make sure we only raise the
16168                 ThreadExit event once (ExitThreadCore can be indirectly called
16169                 from a few places.)  I don't like the additional flag, but it
16170                 makes the event ordering/count correct.
16171
16172                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
16173                 without locking the collection.  An enumerator doesn't give us any
16174                 protection from modification anyway.  Lock the thread hash and
16175                 replace the complicated enumerator loop with a foreach.
16176                 (Application.CloseForms): make internal so it can be called from
16177                 ApplicationContext.  This should probably be moved to MWFThread.
16178                 (Application.ExitThread): don't call MWFThread.Current.Exit()
16179                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
16180                 when the runloop exits (in response to WM_QUIT.)
16181                 (Application.RunLoop): add a comment (and check) for
16182                 context.MainForm being null after setting context.MainForm.Visible
16183                 = true.  This is because you're perfectly free to dispose of a
16184                 form in VisibilityChanged.  Chalk this up to another case where we
16185                 need to synchronously generate WM_ACTIVATE from Control.Show.
16186                 Also, add handling for WM_QUIT here so we'll exit the loop.
16187                 
16188                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
16189                 fact that we don't wait if we're only unmapping the whole_window
16190                 makes me a bit nervous, but it doesn't seem to cause any problems
16191                 yet.
16192
16193                 also, add a comment about the stupid, broken and wrong resetting
16194                 of PostQuitState to false in GetMessage().
16195
16196                 In PostQuitMessage, we need to add a WM_QUIT message to the
16197                 thread's queue.  We use the FosterParent to get the right
16198                 handle/hwnd/queue.
16199
16200                 Lastly, in SetVisible, we need to unmap both windows, since the
16201                 waiting only happens when we're unmapping the client window.  So
16202                 now, the *only* time we unmap just the whole_window is in the hack
16203                 for resizing a control to 0,0.
16204                 
16205         2007-02-21  Chris Toshok  <toshok@ximian.com>
16206
16207                 * Application.cs (CloseForms): rewrite this so that we don't
16208                 modify the list while we're traversing it.
16209
16210         2007-02-20  Chris Toshok  <toshok@ximian.com>
16211
16212                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
16213                 of OnHandleCreated.
16214                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
16215                 handle is created.  otherwise we'll create it here.
16216                 (VerticalScrollEvent): same here.
16217
16218                 * Application.cs (CloseForms): call Form.Dispose, don't post
16219                 WM_CLOSE_INTERNAL.
16220
16221                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
16222                 here. Application should Dispose() of the Form's.
16223
16224                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
16225                 WM_DESTROY as well.
16226                 (MapWindow,UnmapWindow): only actually do the waiting for
16227                 SHOWWINDOW if the control we're dealing with is a Form.
16228                 (CreateWindow): if the control isn't a form, SendMessage
16229                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
16230
16231                 * Control.cs (SetVisibleCore): always use is_visible here, not
16232                 value.  If we use value, we can end up re-setting something
16233                 visible if, for instance, you do Control.Hide() in a delegate
16234                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
16235
16236         2007-02-20  Chris Toshok  <toshok@ximian.com>
16237
16238                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
16239                 the message we need.  PeekMessage returning false should not be a
16240                 condition under which we exit the loop.
16241
16242         2007-02-15  Chris Toshok  <toshok@ximian.com>
16243
16244                 * Control.cs (Refresh): only refresh if we've got a handle and are
16245                 visible.
16246                 (CreateAccessibilityInstance): CreateControl() here.
16247                 (UpdateChildrenZOrder): complicate the code loop even more by
16248                 taking into account controls that haven't had their handle
16249                 created, and those that aren't visible.  But on the flip side,
16250                 simplify the code by splitting it into two loops.  one which
16251                 builds up the list of child controls we're interested in, and the
16252                 other that sets the z order of those children.
16253
16254         2007-02-14  Chris Toshok  <toshok@ximian.com>
16255
16256                 * Control.cs: Control.AccessibilityObject causes the control to be
16257                 created, not just the handle.
16258
16259         2007-02-14  Chris Toshok  <toshok@ximian.com>
16260
16261                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
16262                 problem on X where a window might have its handle created (and be
16263                 visible) while the window is unmapped.  calling XConfigureWindow
16264                 on an unmapped window is bad, and generates X errors.
16265
16266         2007-02-13  Chris Toshok  <toshok@ximian.com>
16267
16268                 * Control.cs (CreateHandle): don't loop over our children setting
16269                 their parent here.  do it when in WndProc when we're shown.
16270                 (UpdateChildrenZOrder): make this internal so we can call it from
16271                 ScrollableControl.
16272                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
16273                 creating its handle.  Also, remove the calls to PerformLayout from
16274                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
16275                 OnVisibleChanged only seems to be called directly here for the
16276                 toplevel control.  It's propagated down the window hierarchy by
16277                 calls to child.OnParentVisibleChanged.
16278                 (OnVisibleChanged): don't do layout here - it's done (oddly
16279                 enough, according to a glance at stack traces on ms.net..) in
16280                 ScrollableControl.
16281                 
16282                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
16283                 z order of our children before calling PerformLayout.
16284
16285         2007-02-12  Chris Toshok  <toshok@ximian.com>
16286
16287                 [big change, fixes #80020]
16288                 
16289                 * AccessibleObject.cs: we need to make owner internal again to fix
16290                 some of ControlAccessibleObject.
16291
16292                 * Control.cs: lots of changes here.  add support for WM_CREATE,
16293                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
16294                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
16295                 we create child controls.  leave the MonoTODO's for the
16296                 accessibility calls, but fix the exceptions so the tests pass.
16297
16298                 Add the InvalidOperationExceptions to Invoke methods, and remove a
16299                 couple of InvokeInternal methods we aren't using.
16300                 
16301                 Also, add a couple of CreateHandle calls in places where we know
16302                 the handles are being created but our code doesn't reference
16303                 .Handle.
16304
16305                 Make SetVisibleCore call OnVisibleChange if the handle isn't
16306                 created.  If the handle is created, we rely on XplatUI.SetVisible
16307                 generating the event synchronously.
16308                 
16309                 Lastly, make sure we don't use this.Handle inside CreateHandle,
16310                 because we can call back into client (and that code can dispose of
16311                 the control).
16312
16313                 * XplatUIStructs.cs: misc/cleanup.
16314
16315                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
16316                 although we don't populate the wParam properly.
16317                 (CreateWindow): generate WM_CREATE.
16318                 (MapWindow,UnmapWindow): make these calls synchronous, at great
16319                 performance expense (particularly in the unmap case), to match
16320                 win32 behavior.
16321
16322                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
16323                 to call it.
16324                 (set_MdiParent): don't recreate the handle unless it's been
16325                 created already.
16326                 
16327                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
16328                 it's created.
16329
16330                 * NativeWindow.cs: this is probably the weirdest part of the
16331                 patch.  We need a way to link up the window being created to the
16332                 WM_CREATE message.  Since we can only be creating one window at a
16333                 time on a given thread, we keep track of a per-thread reference so
16334                 we can dispatch it properly.  We also need to keep track of the
16335                 Hwnd currently being created so that the win32 backend doesn't
16336                 have problems.
16337                 
16338                 * XplatUIWin32.cs: a similar change to the one we made in
16339                 NativeWindow.cs.
16340
16341 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
16342
16343         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
16344         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
16345         to draw the menu shortcut string.
16346
16347 2007-03-07  Jackson Harper  <jackson@ximian.com>
16348
16349         * TreeNode.cs: Add the 2.0 collapse method.
16350
16351 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16352
16353         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
16354
16355 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16356
16357         * DataGridView.cs: Change DataSource will clear column and row
16358         lists. Call Invalidate() to reflect DataSource change.
16359
16360 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16361
16362         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
16363         and a new row is added to it.
16364
16365 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
16366
16367         * DataGridView.cs: Add columns when DataSource is en empty list but
16368         is a System.Data.DataView (from a System.Data.DataTable).
16369
16370 2007-03-06  Andreia Gaita  <avidigal@novell.com>
16371
16372         * Label.cs: Implement AutoEllipsis (2.0)
16373
16374 2007-03-06  Jackson Harper  <jackson@ximian.com>
16375
16376         * TreeView.cs: Implement 2.0 TopNode setter property.
16377         - Use a local var instead of the skipped_nodes field for computing
16378         how many nodes to skip.  Otherwise we won't scroll because the
16379         valuechanged handler checks if skipped_nodes is equal to the new
16380         value.
16381         - Implement 2.0 Sort method.
16382         - Add useless 2.0 DoubleBuffer property
16383         - Implement 2.0 LineColors property.  Lets you change the color of
16384         the lines in the tree. Terribly useful for creating non cohesive
16385         desktops.
16386         - Implement 2.0 image key feature.
16387
16388 2007-03-06  Jackson Harper  <jackson@ximian.com>
16389
16390         * TreeView.cs: We can't get the bounds of the nodes before raising
16391         the AfterSelect event, because that event could change the node's
16392         bounds (scrolling, font change, etc).
16393
16394 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16395
16396         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
16397         * Form.cs: Don't recreate handle when creating FormWindowManager, just
16398           update window styles. In CreateParams us VisibleInternal instead of
16399           VIsible to get the actual visible flag set for this form.
16400         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
16401           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
16402           handle the case when the form is already maximized, in which case
16403           it should be restored. Fixes #81043.
16404
16405 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16406
16407         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
16408
16409 2007-03-05  Jackson Harper  <jackson@ximian.com>
16410
16411         * TreeViewHitTestInfo.cs: implement.
16412
16413 2007-03-05  Jackson Harper  <jackson@ximian.com>
16414
16415         * InternalWindowManager.cs: class status fix.
16416
16417 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16418
16419         * InternalWindowManager.cs: All windows that have a parent
16420         are confined to their parent when they're being moved.
16421         Fixes #80822.
16422
16423 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
16424
16425         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
16426         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
16427
16428 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16429
16430         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
16431           buttons invisible before deciding which ones should be visible
16432           (fixes minimize/maximize buttons showing up in toolwindows). Remove
16433           an unused variable.
16434         * InternalWindowManager.cs: Remove warning.
16435
16436 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16437
16438         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
16439         to throw an InvalidOperationException is virtual mode is being used.
16440
16441 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16442
16443         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
16444         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
16445         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
16446         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
16447         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
16448         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
16449
16450 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16451
16452         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
16453           driver.KeyboardDelay from XplatUI.KeyboardDelay 
16454         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
16455           (patch by Sergey Volk)
16456
16457 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16458
16459         * ToolWindowManager.cs: Added, contains logic for
16460           tool windows.
16461         * CreateParams.cs: Add a few helper methods and an
16462           internal variable to know which control the CreateParams belongs
16463           to.
16464         * Control.cs: Call Form.ChangingParent when the
16465           parent is about to be changed.
16466         * XplatUIX11.cs: DeriveStyles (): Set
16467           caption_height for all windows that have captions and are children.
16468           Update to use ToolWindowManager instead of InternalWindowManager
16469           for ToolWindows.
16470         * XplatUIWin32.cs: Set fake window styles for all
16471           windows that have window managers.
16472         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
16473           now duplicated for mdi windows when they are
16474           maximized, first for the buttons the window itself has, then for
16475           the buttons that appear in the menu bar. Makes things a little
16476           easier). Updated UpdateWindowDecorations, SetWindowState and the
16477           mouse eventhandlers accordingly.
16478         * Form.cs: Add ChangingParent (), contains the
16479           logic of what should happen when the parent changes. In MdiParent
16480           don't set things that ChangingParent () is doing. When handling
16481           WM_CLOSE, we can close the form if there are any other modal forms
16482           and the current form is a descendent of the modal form.
16483         * InternalWindowManager.cs: A lot of refactoring,
16484           the title buttons are now extracted to a separate container class
16485           that takes care of all button code (clicks, tooltips, etc). Moved
16486           Iconic|Maximized|Normal Bounds properties to this class from
16487           MdiWindowManager, so that the window state logic can succeed for
16488           other than mdi wm's. Implemented general window state change logic.
16489           Moved CreateButtons to ThemeWin32Classic, since the theme might
16490           override which buttons are available when as well as the exact
16491           location.
16492         * FormWindowManager.cs: Added, contains logic for
16493           normal forms.
16494         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
16495           which buttons go where (and if they are at all visible). 
16496           Removed special handling of maximized windows, since they aren't special. 
16497           In DrawManagedWindowDecorations don't try to draw the text if it is
16498           empty.
16499         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
16500           use whatever the wm gives us.
16501
16502 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
16503
16504         * ButtonBase.cs: Add 2.0 properties.
16505         * Button.cs: Override Draw for 2.0.
16506         * Control.cs: Add Entered and Selected properties.
16507         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
16508         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
16509         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
16510         buttons.
16511         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
16512
16513 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16514
16515         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
16516
16517 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
16518
16519         * XplatUIWin32.cs: Register a new class with Windows each time we get
16520         a new ClassStyle.  [Fixes bugs #79432, #80817]
16521         * Controls.cs: Set the correct ClassStyle in CreateParams.
16522         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
16523
16524 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
16525
16526         * ListView.cs: Add fireEvent argument to ReorderColumn since the
16527         ColumnReordered event must not be signaled when modifying DisplayIndex
16528         of a ColumnHeader. Added internal ReorderColumns method which takes
16529         care of drawing, and updating the internal DisplayIndex of the
16530         ColumnHeader. Added AddColumn method which is invoked from
16531         ColumnHeaderCollection when adding or inserting columns, and which
16532         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
16533         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
16534         Recalculated dispay indices after removing a ColumnHeader.
16535         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
16536         match MS. Allows last display index to be returned after ListView
16537         is disposed. Update actual location of ColumnHeader when DisplayIndex
16538         is modified.
16539
16540 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
16541
16542         * LinkLabel.cs: Improve CalcTrimRectangle.
16543         
16544         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
16545
16546 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16547
16548         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
16549         get rectangle as a result value.
16550
16551 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
16552
16553         * LinkLabel.cs: Theres some diferences between rectangle return from 
16554         MeasureCharacterRanges and the area used for DrawString to fix this 
16555         CalcMeasurementFactor method was created, it calcules the diferences
16556         to be use later to adjust rectangle in draw operations. Fixes #80473.
16557         
16558         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
16559         to adjust draw rectangle.
16560
16561 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16562
16563         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
16564         text and some other changes to reduce and optimize source code.
16565
16566 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16567
16568         * RadioButton.cs: Implement 2.0 event.
16569         * RelatedImageListAttribute.cs: Implement new class.
16570
16571 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
16572
16573         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
16574
16575 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
16576
16577         * CheckBox.cs: Implement 2.0 functionality.
16578
16579 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16580
16581         * ListView.cs: Refactor Add and AddRange methods of
16582         ListViewItemCollection, to not update the ListView
16583         everytime an item is added in AddRange. Also move the update
16584         code to a new CollectionChanged method, and call it
16585         from other methods that need it as well (this should also fix some
16586         bugs when Sorting is used).
16587
16588 2007-02-27  Jackson Harper  <jackson@ximian.com>
16589
16590         * TextControl.cs: Try to never let the caret stay in a non-text
16591         tag.
16592         * TextBoxBase.cs: Update the caret.
16593
16594 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
16595
16596         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
16597         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
16598         delete POINT structure, duplicate of one in XplatUIStructs.
16599         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
16600
16601 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
16602
16603         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
16604         edit box since otherwise the Label would immediately be set (even if
16605         the user did not modify the label). In OnKeyDown set Handled to true
16606         if Return or Escape was pressed. In ColumnHeaderCollection unlink
16607         columns that are to be removed. In ListViewItemCollection unlink items
16608         that are to be removed.
16609
16610 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
16611
16612         * TextRenderer.cs: If we set a GDI clip region, we need to clear
16613         it when we are done.  [Fixes bug #80949]
16614
16615 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16616
16617         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
16618
16619 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16620
16621         * ListView.cs: I forgot to commit the changes for ListView 
16622         in my previous patch.
16623
16624 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16625
16626         * Clipboard.cs: Partially implement an overload of SetDataObject.
16627         * Form.cs: Implement ShowWithoutActivation.
16628         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
16629
16630 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16631
16632         This is a first set of changes to make the Virtual mode works,
16633         by avoiding the retrieval of ListViewItem instances until
16634         draw time.
16635
16636         * ListView.cs: Store item position in the ListView instead of the
16637         ListViewItem, this way we don't request the Bounds property of
16638         ListViewItem inside the ListView calculations, as well as cache the item
16639         size in item_size field. Store indexes instead of ListViewItem
16640         instances in the matrix used by icon view. Add a ItemMatrixLocation
16641         struct to hold the row and col info of the matrix info.
16642
16643         * ListViewItem.cs: Don't store the location anymore, and only cache
16644         the rectangles for GetBounds. Use the ListView.GetItemLocation
16645         method to retrieve the actual location.
16646
16647 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16648
16649         * TextRenderer.cs: Add clipping support, thanks to George.
16650         [Fixes bug #80949]
16651
16652 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16653
16654         * ListViewItem.cs: Cancel label edit when item is removed from 
16655         ListView.
16656         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
16657         event before the edit textbox is displayed.  Added CancelEdit method
16658         which is used end to editing while ignoring the value set by the
16659         user. In EndEdit, set focus to ListView to avoid losing focus to
16660         other controls. In ListViewItemCollection.Clear, cancel editing of
16661         any of the items.  In Remove, cancel editing of item being removed.
16662         Avoid udplicate code by modifing RemoveAt to invoke Remove.
16663
16664 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16665
16666         * FileDialog.cs: Update FSEntry when move is successful. Fixes
16667         bug #80948.  
16668
16669 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16670
16671         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
16672         compatible with non X11 systems. Fixes #80901.
16673
16674 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
16675
16676         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
16677         whether the item should be unselected and reselect. We do no want this
16678         when we're starting to edit the label. Do not fire the 
16679         SelectedIndexChanged event from ListView when its already been fired
16680         by modifying ListViewItem.Selected. Fixes bug #80943.
16681
16682 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16683
16684         * TextRenderer.cs: Previos commit logic was backwards.
16685
16686 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
16687
16688         * TextRenderer.cs: Don't add padding on MeasureText if we were
16689         sent the NoPadding flag.
16690
16691 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16692
16693         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
16694         after DrawButton. To prevent image overlaps button borders SetClip and 
16695         ResetClip added before and after draw image. Fixes #79129.
16696
16697 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
16698
16699         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
16700         window size, it fix problem when you run under win32 that theres
16701         Size diferent than ClientSize. Also fix controls size and positions
16702         to mimic Win32. Fixes #80837.
16703
16704 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
16705
16706         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
16707         menu area to fix some problems for non X11 systems. Fixes #80613.
16708
16709 2007-02-22  Jackson Harper  <jackson@ximian.com>
16710
16711         * TreeNode.cs: When a node is expanded, set its is_expanded flag
16712         even if it doesn't have any children.
16713
16714 2007-02-22  Jackson Harper  <jackson@ximian.com>
16715
16716         * TreeView.cs: Calculate the top node 'on the fly', this
16717         eliminates issues where you need to click on the tree before
16718         scrolling it to get the top node computed correctly.
16719         * TreeNodeCollection.cs: We don't need to mess with the top node
16720         anymore.
16721
16722 2007-02-22  Jackson Harper  <jackson@ximian.com>
16723
16724         * DataGridViewRow.cs: Fix typo so height can actually be set.
16725         Patch by Peter Grimm.
16726
16727 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16728
16729         * FileDialog.cs: Fixed support for renaming files and directories.
16730         * ListView.cs: Do not lose focus when edit is canceled. Process
16731         Escape as regular key (to prevent closing of dialogs).
16732
16733 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16734
16735         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
16736         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
16737
16738 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
16739
16740         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
16741         did not modify label.
16742         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
16743         modified the text. Reset Label when user presses Escape in edit mode.
16744         Move focus to ListView after having cancelled or finished editing the
16745         label.
16746
16747 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
16748
16749         * ComboBox.cs: Removed unnecessary initializations. Marked items field
16750         private. Clear textbox when Text is set to null and SelectedIndex is
16751         already -1.
16752         * FileDialog.cs: Removed unnecessary initializations. Removed 
16753         workarounds for ComboBox bugs that are now fixed. Modified
16754         DefaultExt, InitialDirectory and Title property to change null to
16755         zero-length string in getters. Avoid directly accessing fields.
16756
16757 2007-02-20  Jackson Harper  <jackson@ximian.com>
16758
16759         * TextControl.cs: Remove RecalAlignments call, that was some
16760         debugging leftovers.
16761         - Don't use the line indent when we shouldn't.
16762         * RichTextBox.cs: Add support for paragraph left indents.
16763
16764 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16765
16766         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
16767         Seems like the class status pages doesn't catch params differences.
16768
16769 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16770
16771         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
16772
16773 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
16774
16775         * ComboBox.cs: Setting Text should have no effect if item text of
16776         selected item exactly matches value. First lookup text using
16777         case-sensitive comparison, and fallback to case-insensitive comparison.
16778         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
16779         allow startIndex to be last index. Changed ArgumentOutOfRangeException
16780         paramname to match MS. Restart from first item if string is not found
16781         after startIndex. Fixed paramname of ArgumentNullException that is
16782         thrown for null value in ObjectCollection.Contains.
16783
16784 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16785
16786         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
16787
16788 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16789
16790         * ListControl.cs: In SelectedValue use value.Equals to compare for
16791         equality instead of ==, otherwise it will fail for strings.
16792         Fixes #80794.
16793
16794 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16795         
16796         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
16797         since the caret won't show up unless ShowSelection is true. 
16798         Fixes #80795.
16799
16800 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16801
16802         * Application.cs: When disabling all forms but the main form, do not
16803           disable any descendants of the main form (such as mdi children or
16804           other parented forms). Fixes #80822 on Windows.
16805         * Form.cs: If we have a parent, set the WS_CHILD style.
16806         * Control.cs: Update the window styles if the control whose parent has
16807           changed is a form (the WS_CHILD style has to be switched).
16808
16809 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
16810
16811         * XplatUIStructs.cs: MsgUIState structure added.
16812
16813 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16814
16815         * FileDialog.cs: Removed need for separate fileName field. On 2.0
16816         profile, do not check filename(s) for illegal character if filename(s)
16817         were set non-interactively but always check on 1.0 profile. Fixed NRE
16818          in DefaultExt and only strip off first leading dot. Improve exception
16819         message when invalid Filter is set. Do not ignore InitialDirectory if
16820         it does no exist. Store specified Title, and if empty use default
16821         title (depending on type of dialog). Added an internal DialogTitle 
16822         property for retrieving dialog title. Fixed logic of displayed dir to
16823         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
16824         string as its buggy.
16825         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
16826         FileName is a zero-length string (it can never be null). Override 
16827         DialogTitle property to set default title of dialog box.
16828         * SaveFileDialog.cs: Override DialogTitle property to set default
16829         title of dialog box.
16830
16831 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
16832
16833         * FileDialog.cs: Modify default text of filename and filetype labels
16834         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
16835         after we've updated the SelectedIndex. Fixes part of bug #80887.
16836         * SaveFileDialog.cs: Set text of filetype label.
16837
16838 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16839
16840         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
16841         label field. Needed by latest Jackson's fixes for ListView.
16842
16843 2007-02-16  Andreia Gaita  <avidigal@novell.com>
16844
16845         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
16846         print preview images.
16847
16848 2007-02-16  Jackson Harper  <jackson@ximian.com>
16849
16850         * ListView.cs: Make AfterLabelEdit work correctly.
16851         * FileDialog.cs: After changing the name of the folder, we have to
16852         make sure that it is created, or that we pop up an error because
16853         it already exists.
16854
16855 2007-02-16  Jackson Harper  <jackson@ximian.com>
16856
16857         * X11Dnd.cs: Implement aliases on mime handlers, so things like
16858         System.String are mapped to text.
16859         - Handle dataobjects, getting all the possible formats out of them
16860         - We dont need the drag event args before we give feedback. This
16861         allows feedback cursors to be immediate before selections have
16862         been converted.
16863
16864 2007-02-16  Jackson Harper  <jackson@ximian.com>
16865
16866         * TextBoxBase.cs: Modified the method for inserting images to
16867         taking a line and position instead of tag and position.
16868         * RichTextBox.cs: Handle PngBlip data by inserting the png image
16869         into the RTF file.
16870         * TextControl.cs: Allow images to be inserted as the first tag of
16871         a line.
16872         - Fix some off by one issues when we assume the first tag is a
16873         text tag, not an image tag.
16874
16875 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16876
16877         * ListView.cs: Set focus to ListView when ItemControl gets a
16878         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
16879         Fixes part of #80467.
16880
16881 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16882
16883         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
16884           validate Text input (if null or empty string reset Value to default
16885           value). Fixes #80830.
16886
16887 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16888
16889         * ListView.cs: Set owner as null for columns and items when
16890         Dispose is invoked. Fixes #80607.
16891
16892 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
16893
16894         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
16895         showing DropDowns, don't show a Grip when doing Flow layout.
16896         [This fixes the toolbox in PDN 2.72.]
16897         * ToolStripItem.cs: Add Anchor property and some internal properties to
16898         reduces needed changes to FlowLayout.
16899         * ToolStripOverflow.cs: Remove unused variable.
16900         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
16901         use it in the layout calculations.
16902
16903 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16904
16905         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
16906         reported in #79640.
16907         
16908         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
16909         size calculation.
16910
16911 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16912
16913         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
16914         MeasureString format, it can make button very large in some cases, it is
16915         strange but is what win32 do.
16916
16917 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16918
16919         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
16920         size calculation.
16921
16922         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
16923         rendering, the value is based on MenuAccessKeysUnderlined.
16924
16925 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
16926
16927         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
16928         for most themes.
16929         
16930         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
16931         
16932         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
16933         and use MenuAccessKeysUnderlined instead.
16934
16935 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16936
16937         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
16938         A selected control would not get a Focus call if:
16939                 - the default active control of the container is the same as
16940                   the one that was selected
16941                 - we are switching from one container to another
16942         Under these conditions, the container being selected already has
16943         an active_control, which is the same as the one being activated, 
16944         so set_ActiveControl would always return and not send the Focus
16945         call. Fix to check if the currently active control of the container
16946         is actually focused.
16947
16948 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
16949
16950         * StatusStrip.cs: Implement the spring layout.
16951         * ToolStripControlHost.cs: Make sure the hosted control's visibility
16952         always matches the host.
16953         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
16954         and TextAfterImage.
16955
16956 2007-02-13  Andreia Gaita  <avidigal@novell.com>
16957
16958         * Control.cs: Code reorganization only.
16959           - Reorganize the WndProc cases so that each case has it's own handling method, 
16960           to help with the no-line-numbering stack traces.
16961           - Formatting changes (it's vstudio's fault, really :p)
16962
16963 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16964
16965         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
16966           Thread.CurrentUICulture to match DateTimePicker's (and MS)
16967           behaviour.
16968
16969 2007-02-12  Jackson Harper  <jackson@ximian.com>
16970
16971         * RichTextBox.cs:
16972         * TextBox.cs: By default we have a non multiline document
16973         - use the multiline property instead of the internal variable
16974         * TextBoxBase.cs: Treat multiline and non multiline the same in
16975         most places.
16976         - Use the documents multiline flag instead of tracking it ourself
16977         * TextControl.cs: Attempt at getting multiline to match MS
16978         behavior.  Lines now track an offset, which is either their X or Y
16979         offset depending on whether or not we are in multiline mode.
16980         - Update all the methods to understand that lines have an X value.
16981         - Fix crash in Undo::Duplicate when empty lines are deleted.
16982
16983 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16984
16985         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
16986         code moved to properties PreferredHeight and PreferredWidth. It solve the
16987         all problems when preferred sizes must be recalculated. Fixes #80801.
16988
16989 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
16990
16991         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
16992         font height when compatible_text_rendering is false. Partially fix #80801.
16993
16994 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16995
16996         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
16997
16998 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
16999
17000         * Form.cs: Improved exception messages in ShowDialog.
17001
17002 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
17003
17004         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
17005         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
17006         if not set. Fixes bug #80764. Avoid accessing current_settings field
17007         directly.
17008
17009 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
17010
17011         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
17012         false.
17013
17014         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
17015         public in 2.0 and for easy maintenance and dont break compatibility it is 
17016         internal in 1.1.
17017         
17018 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17019
17020         * ToolStripItem.cs: Implement using images from ImageList.
17021
17022 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17023
17024         * DateTimePicker.cs: Change default date-formatting culture from
17025           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
17026           seems to be the way MS does it.
17027
17028 2007-02-08  Andreia Gaita  <avidigal@novell.com>
17029
17030         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
17031         (the 6 was cut off on the right side)
17032
17033 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17034
17035         * Form.cs: Tell MenuStrips to close when the form is clicked.
17036         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
17037         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
17038         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
17039         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
17040         support for Overflow, where items that do not fit are automatically
17041         reparented to a drop down menu.
17042         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
17043         Also: fixes bug #80747.
17044
17045 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17046
17047         * ComboBox.cs: Remove warning (unused code).
17048         * ScrollableControl.cs: Remove warning for 1.1 profile.
17049
17050 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17051
17052         * Form.cs: Remove a warning.
17053
17054 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17055
17056         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
17057           'g' specifier, not documented anywhere, but seems to always show up
17058           as a single space (might have something to do with the DateTime 'g'
17059           specifier, which is the era format, but since DateTimePicker can't
17060           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
17061           won't crash if the format has an unmatched quote. Now shows
17062           single-character formats correctly. Fixes #80744.
17063
17064 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
17065
17066         * StatusStrip.cs: Stretch property needs to call base.Stretch,
17067         not this.Stretch to fix stack overflow. [Fixes bug #80760]
17068
17069 2007-02-07  Chris Toshok  <toshok@ximian.com>
17070
17071         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
17072         background color.  it overwrites the background image we've
17073         already painted.  Fixes #80599.
17074
17075 2007-02-07  Chris Toshok  <toshok@ximian.com>
17076
17077         * DataGrid.cs: return immediately from Edit() when there are no
17078         columns.  Fixes #80662.
17079
17080 2007-02-07  Chris Toshok  <toshok@ximian.com>
17081
17082         * MessageBox.cs: fix #80625.  don't always show the Help button in
17083         2.0.  use the displayHelpButton parameter to determine if we
17084         should show it. Also, make the internal show_help field private.
17085
17086 2007-02-07  Chris Toshok  <toshok@ximian.com>
17087
17088         * Control.cs (SetVisibleCore): check in the proposed patch for
17089         80604, and set is_visible before calling CreateControl.
17090
17091 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
17092
17093         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
17094         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
17095         on it.
17096
17097 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
17098
17099         * MenuAPI.cs: hotkey_active internal field added, it is required because
17100         we need to know when hotkeys must be draw, before this change a keystate
17101         Navigating was used but we can have menu in navigating state without
17102         hotkeys. Fixes #80694.
17103         
17104         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
17105
17106 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17107
17108         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
17109           corresponding events and methods to be internal for 1.1 profile and
17110           public for 2.0 profile (required by SizeGrip).
17111         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
17112           implicit control list). Don't set the size nor the location of the
17113           SizeGrip anymore as it's not needed.
17114         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
17115           draw directly on the captured control (fixes #80656). Removed
17116           ShowGrip (it wasn't used anywhere), redraw (always true), added
17117           GetDefaultSize and GetDefaultRectangle to calculate defaults.
17118         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
17119           be called from SizeGrip.
17120
17121 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17122
17123         * Timer.cs: Throw ArgumentException if Interval <= 0.
17124
17125 2007-02-05  Jackson Harper  <jackson@ximian.com>
17126
17127         * TreeView.cs: We need to check scrollbar visibility when window
17128         visibility is updated, because non visible trees don't ever add
17129         scrollbars.
17130         * Cursor.cs: We want the override cursor to be reset to NULL when
17131         we set current cursor to the default cursor.
17132
17133 2007-02-05  Jackson Harper  <jackson@ximian.com>
17134
17135         * TextControl.cs: Don't have crlfs when we are non multiline.
17136         - Consolidate the line position.
17137
17138 2007-02-05  Jackson Harper  <jackson@ximian.com>
17139
17140         * X11Keyboard.cs: BACK+CTRL gets a special char code.
17141
17142 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17143
17144         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
17145           handling LeaveNotify->NotifyUngrab in order to send
17146           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
17147           after calling XUngrabPointer, so we call WindowUngrabbed directly
17148           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
17149         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
17150           MouseCaptureChanged correctly. Also create handles if changing
17151           Capture (matches MS behaviour).
17152
17153 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17154
17155         * SizeGrip.cs: Make the last change 2.0 only.
17156
17157 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17158
17159         * SizeGrip.cs: If resizing and the capture is lost, revert any size
17160           changes to initial size (fixes #80597).
17161
17162 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17163
17164         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
17165
17166 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17167
17168         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
17169           background) and only allow dragging if enabled. This way the
17170           sizegrip can be used to fill the open square that otherwise would
17171           have been shown in the bottom right corner of ScrollableControl
17172           when ScrollableControl is not suppose to support sizing.
17173         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
17174           sizegrip is shown and enabled, and hook up with necessary events.
17175
17176 2007-02-01  Chris Toshok  <toshok@ximian.com>
17177
17178         * DataGridTextBoxColumn.cs: clean up the
17179         GetFormattedString/GetColumnValueAtRow combination of functions.
17180         Also fix UpdateUI, and the initial state of
17181         IsInEditOrNavigateMode.
17182
17183         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
17184         aren't supposed to scroll the textbox here, we're supposed to
17185         scroll the datagrid.
17186
17187 2007-02-01  Chris Toshok  <toshok@ximian.com>
17188
17189         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
17190         setting the position.
17191
17192 2007-02-01  Chris Toshok  <toshok@ximian.com>
17193
17194         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
17195         here, since the most recent focus fixes keep us from generating
17196         the Leave event when our textbox gets focus.
17197         (Edit): we should be passing null for the column style's
17198         instantText parameter.
17199         
17200 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
17201
17202         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
17203         raised.  Fixes menu text/icons not showing up in PDN.
17204
17205 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17206
17207         * Control.cs: Remove code in constructor that makes every
17208         control with WS_CHILD set have initial location -1, -1.
17209
17210 2007-01-31  Jackson Harper  <jackson@ximian.com>
17211
17212         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
17213         XplatUIX11.
17214         * XplatUIX11.cs: Give teh keyboard to teh dnd.
17215
17216 2007-01-31  Jackson Harper  <jackson@ximian.com>
17217
17218         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
17219         - Remove some debug code.
17220
17221 2007-01-31  Jackson Harper  <jackson@ximian.com>
17222
17223         * XplatUIX11.cs: If you set the override cursor during a grab, it
17224         should actually override the grab cursor.  This comes into play
17225         when you are setting custom cursors in a DND feedback method.
17226
17227 2007-01-31  Jackson Harper  <jackson@ximian.com>
17228
17229         * X11Dnd.cs: Add support for handling the QueryContinue and
17230         GiveFeedback events.
17231         - Cancel drag and drop actions when the escape key is clicked.
17232         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
17233         can handle the ESCAPE key.
17234         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
17235         done when dnd events are continued after the button is released.
17236         - Add a new helper method so that dnd can translate key events.
17237
17238 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
17239
17240         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
17241         make it more obvious what is happening.
17242
17243 2007-01-30  Jackson Harper  <jackson@ximian.com>
17244
17245         * XplatUIX11.cs: Don't break when handling button release in drag
17246         and drop operations. We need that BUTTONUP message to get through
17247         so capture is released.
17248         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
17249         this is handled automatically when the mouse is down.
17250
17251 2007-01-30  Jackson Harper  <jackson@ximian.com>
17252
17253         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
17254         is closed, so we need to make sure that we aren't changing the
17255         dialog result when the OK (Open or Save) button has been clicked
17256         and we are closing the window ourselves.  Note we don't need to
17257         worry about the cache being written in this case, because it was
17258         already done in the previous FilOk call.
17259
17260 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17261         
17262         * DateTimePicker.cs: Remove a warning.
17263         * ComboBox.cs: Remove a couple of warnings.
17264
17265 2007-01-29  Chris Toshok  <toshok@ximian.com>
17266
17267         * XplatUIX11.cs: don't crash, and remove the icon if the user has
17268         set one, if SetIcon is passed a null icon.
17269
17270 2007-01-29  Andreia Gaita  <avidigal@novell.com>
17271
17272         * TextBox.cs: Redraw when the password characters changes
17273         * TextControl.cs: Check if textbox has a password char and draw 
17274         a line of password chars instead of the text in the line. LineTag gets 
17275         an extra Draw() method which allows document.Draw to override the text 
17276         that will be drawn. Removes 1024 char limitation on length of passworded 
17277         lines.
17278
17279 2007-01-29  Jackson Harper  <jackson@ximian.com>
17280
17281         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
17282         single chars is not.
17283
17284 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
17285
17286         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
17287         one pixel.  Fix a StackOverflowException caused by an overload wrongly
17288         calling itself.
17289
17290 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
17291
17292         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
17293         also remove ProcessArrowKey and put the code inside ProcessKeys.
17294
17295 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
17296
17297         * PaddingConverter.cs: Added.
17298
17299 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17300         
17301         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
17302         ShowPanels is false (fixes #80600). Only draw up to 127 characters
17303         of text (fixes #80601). For panels clip the text to draw to the
17304         panel (fixes #80603).
17305
17306 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17307
17308         * ComboBox.cs: Fixed implementation of ResetText.
17309
17310 2007-01-25  Jackson Harper  <jackson@ximian.com>
17311
17312         * TextControl.cs: For the last char of a line we need to use the
17313         line size, not that chars width, since it won't actually be
17314         computed since the right side of a char is based on the start of
17315         the left side of the next char, and the next char does not exist.
17316
17317 2007-01-25  Chris Toshok  <toshok@ximian.com>
17318
17319         * Splitter.cs: fix the new unit tests, and reindent some switch
17320         statements.
17321
17322 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17323
17324         * ComboBox.cs: Implemented 2.0 methods and events.
17325         * TextBoxBase.cs: Added OnTextUpdate, so that
17326         ComboBox.ComboTextBox can inform ComboBox of it.
17327
17328 2007-01-25  Jackson Harper  <jackson@ximian.com>
17329
17330         * TextControl.cs: Respect ShowSelection when deciding whether or
17331         not to display the caret, this allows comboboxes to have carets
17332         when the combotextbox does not have focus.
17333
17334 2007-01-25  Jackson Harper  <jackson@ximian.com>
17335
17336         * TextControl.cs: Add a Suspend/Resume for updating, basically the
17337         same as the Suspend/Resume for recalc, except this will do actual
17338         Invalidates.
17339         - New Undo manager, works much like the MS version.
17340         - Implemented Redo
17341         * TextBoxBase.cs: The Cut operation is undoable.
17342
17343 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17344         
17345         * TextBoxBase.cs: Don't antialias text. Makes it look way better
17346         on Windows (no difference on Linux).    
17347
17348 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17349
17350         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
17351         we don't want to activate any windows. Fixes #79433.
17352
17353 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
17354
17355         - ButtonBase.cs: Fix capitalization of parameter: disposing.
17356         [Fixes bug #80609]
17357
17358 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
17359
17360         * FileDialog.cs:
17361         - Move to using System.ComponentModel.EventHandlerList
17362         - Replace Refresh with Invalidate
17363         - Clear the mime filecache on closing
17364         - Some other memory reducing work. After beeing closed FD now uses
17365           only about 300 KB for the fdo mime stuff plus the memory of the
17366           cached icons.
17367         * Mime.cs: Changed coding style and removed unnecessary commented
17368         code. Some more memory memory reducing work.
17369
17370 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17371
17372         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
17373         a few other missing 2.0 properties.
17374         * Theme.cs: Added DrawFlatStyleComboBox.
17375         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
17376
17377 2007-01-24  Chris Toshok  <toshok@ximian.com>
17378
17379         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
17380         wake_waiting flag, not just when there's data to be read.  if we
17381         don't, then future wakeup's won't reach us and we'll be doomed to
17382         wait for the entire 1 second timeout forever (unless there are X
17383         events to be had).
17384
17385 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17386
17387         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
17388         until you pass Items.Count, not Items.Count - 1 like 1.1.
17389
17390 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
17391
17392         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
17393
17394 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
17395
17396         * ToolStripContainer.cs: The recent Dock fix exposed that I was
17397         adding the panels in the wrong order.
17398
17399 2007-01-24  Jackson Harper  <jackson@ximian.com>
17400
17401         * TextBoxBase.cs: When we move the caret we also need to move the
17402         selection, this fixes some random crashing after doing select
17403         text, unselect, delete a char, paste.
17404
17405 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17406
17407         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
17408
17409 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17410
17411         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
17412         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
17413         * ToolBar.cs: Force redraw in BackgroundImageChanged.
17414
17415 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17416
17417         * ToolBar.cs:
17418         - Implement support for vertical toolbars. Fixes #80539;
17419         - Call LayoutToolBar when resize, it fix some other problems in layout.
17420         - Rename requested_height to requested_size, as we can have width on it
17421         when toolbar is vertical.
17422         - Create a private property "Vertical" that uses Dock to verify when 
17423         toolbar is vertical or not.
17424         - Set ControlStyles when change Dock property.
17425         - Refactory in LayoutToolBar to have better variables names and to support
17426         vertical toolbars.
17427         - Fixes default value for ButtonSize when button count is equal zero, size
17428         must be (39, 36) test case writed.
17429
17430 2007-01-23  Chris Toshok  <toshok@ximian.com>
17431
17432         * Control.cs: fix the checks so that they work correctly for mdi
17433         parents/children.
17434
17435 2007-01-23  Chris Toshok  <toshok@ximian.com>
17436
17437         * Control.cs: ControlCollection seems to have super-secret
17438         abstraction breaking knowledge of Mdi containers.  allow MdiClient
17439         to add toplevel controls.
17440
17441 2007-01-23  Chris Toshok  <toshok@ximian.com>
17442
17443         * Control.cs: throw an ArgumentException if a toplevel control is
17444         added to our control collection from ControlCollection.Add, as
17445         well as from ControlCollection.IList.Add.  This fixes the
17446         ControlSetTopLevelTest.TestTopLevelAdd unit test.
17447
17448         Also, in ControlCollection.IList.Add, don't through an
17449         ArgumentNullException, throw an ArgumentException, when value ==
17450         null.  This matches MS.
17451
17452 2007-01-23  Chris Toshok  <toshok@ximian.com>
17453
17454         * BindingSource.cs: initial, incomplete, implementation of
17455         BindingSource.
17456
17457 2007-01-23  Jackson Harper  <jackson@ximian.com>
17458
17459         * TextControl.cs:
17460         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
17461         that I can fix a broken unit test (TextBoxTest::ClearUndo)
17462         
17463 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
17464
17465         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
17466
17467 2007-01-23  Andreia Gaita  <avidigal@novell.com>
17468
17469         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
17470         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
17471         IndexOfKey() for 2.0
17472
17473 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17474
17475         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
17476         to prevent it from changing z-order.
17477         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
17478         leave UI updates in MdiWindowManager.
17479         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
17480         1 sized (NC handling goes weird on Linux otherwise).
17481         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
17482         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
17483         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
17484         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
17485         and SetWindowState(s) to allow for changing the size of an activated child
17486         before activating it (reduces a lot of flicker).
17487
17488 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17489
17490         * Form.cs: Changing FormBorderStyle has different semantics based
17491         on whether the Form is visible or not.  If not visible, don't change
17492         the Size.  But InvalidateNC needs to be called to force the window
17493         to pick up the changes and redraw itself.  [Fixes bug #80574]
17494
17495 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
17496
17497         [Moma work]
17498         * ContainerControl.cs: ProcessCmdKey.
17499         * ErrorProvider.cs: new constructor.
17500         * Form.cs: fix AutoValidateEvent compiler warning.
17501         * Label.cs: fix OnAutoSizeChanged compiler warning.
17502         * MenuStrip.cs: fix CanOverflow compiler warning.
17503         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
17504         * TextBox.cs: Dispose.
17505         * ToolStrip.cs: CanOverflow, re-enable double buffering.
17506         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
17507         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
17508         * ToolStripItem.cs: Overflow, RightToLeft properties.
17509
17510 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17511
17512         * Form.cs: Move the layout of the main form to MdiWindowManager.
17513         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
17514         do a layout of the main window to update MdiClient's client area to
17515         the right area. Fixes #80533. Remove the calculation of nc size, 
17516         it was just wrong and the correct one is the same as for 
17517         InternalWindowManager. 
17518
17519 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
17520
17521         * Control.cs: Setting Anchor or Dock needs to reset the other
17522         to its default.  [Fixes bug #80556]
17523
17524 2007-01-20  Chris Toshok  <toshok@ximian.com>
17525
17526         * CheckedListBox.cs: class status changes.
17527
17528         * ScrollableControl.cs: same.
17529
17530         * RichTextBox.cs: same.
17531
17532         * ContainerControl.cs: same.
17533
17534         * ListView.cs: same.
17535
17536         * NotifyIcon.cs: same.
17537
17538         * MenuStrip.cs: same.
17539
17540         * RadioButton.cs: same.
17541
17542         * CheckBox.cs: same.
17543
17544         * PrintPreviewDialog.cs: same.
17545
17546         * Form.cs: same.
17547
17548 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
17549
17550         * TreeNode.cs: Apply Alan's patch for Name property.
17551
17552 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17553         
17554         * Form.cs: Implemented SizeGripStyle.
17555         * SizeGrip.cs: Check for minimum and maximum size for the
17556         control being resized and only resize if size has actually
17557         changed.
17558
17559 2007-01-19  Chris Toshok  <toshok@ximian.com>
17560
17561         * DataGridColumnStyle.cs: stop setting _readonly in the
17562         PropertyDescriptor setter.  fixes a unit test failure.
17563
17564         also, rename ParentReadOnly to TableStyleReadOnly, and have it
17565         just consult our table style (if we have one).  We don't need to
17566         consult the datagrid readonly attribute because that's passed in
17567         as the _ro arg to Edit.  this simplifies things a little.
17568         
17569         * DataGrid.cs: use CurrentColumn instead of
17570         current_cell.ColumnNumber just to simplify some of the code.
17571
17572         switch the order of some things in the CurrentCell setter to keep
17573         the previous cell from getting a textbox again -
17574         EnsureCellVisibility causes scrolling to happen, which calls Edit.
17575         So we need to set the new cell before calling it.
17576         
17577         call Edit in OnEnter, as does Microsoft.
17578         
17579         also, make sure the current table style isn't the one we create
17580         initially when checking to see if it's different than the one
17581         we're setting it to in BindColumns (this fixes #80421).
17582
17583         * GridTableStylesCollection.cs: table styles can have "" for a
17584         mapping name.  part of the fix for #80421.
17585
17586         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
17587         Edit significantly.
17588
17589 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17590
17591         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
17592         and less GDI object leaky-er.
17593
17594 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17595
17596         * LinkLabel.cs: Add opaque control style
17597
17598 2007-01-18  Jackson Harper  <jackson@ximian.com>
17599
17600         * TextControl.cs: Calculate width properly.
17601         - Don't store the tag's X offset, this can be figured out very
17602         easily.
17603         - When getting the caret tag make sure to get the last empty tag.
17604
17605 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17606
17607         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
17608         [Fixes bug #79959]
17609
17610         * Control.cs: Color.Empty shouldn't count for previous transparent
17611         redraw changes.
17612
17613 2007-01-18  Jackson Harper  <jackson@ximian.com>
17614
17615         * TextBox.cs:
17616         * RichTextBox.cs:
17617         * TextControl.cs: Starting to merge in some pieces of my older
17618         undo work.  Basically just some slight cleanup of the undo API.
17619
17620 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17621
17622         * TrackBar.cs: Fix signature of RightToLeftLayout.
17623         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
17624         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
17625         * Application.cs: Implemented UseWaitCursor.
17626
17627 2007-01-18  Jackson Harper  <jackson@ximian.com>
17628
17629         * TextControl.cs: We can't skip tags if any part of the tag is
17630         visible.
17631
17632 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17633
17634         * ContainerControl.cs: Override OnLayout.
17635
17636 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17637
17638         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
17639
17640         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
17641         everything else.
17642
17643 2007-01-18  Chris Toshok  <toshok@ximian.com>
17644
17645         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
17646         (leftover from the container_selected days, I'd wager).  fixes bug
17647         #80546.
17648
17649 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17650
17651         * Control.cs: Apply patch from George to fix the new testcase on
17652         bug #80451.  We can't just check for Color.Transparent, we need 
17653         to check if the back color's alpha channel is < 255.
17654
17655 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
17656
17657         * Form.cs: Move setting show_icon = true to before the constructor
17658         so that the base constructor has that information when it calculates
17659         the form's size.  Was causing forms to be (6, 6) bigger than they
17660         were supposed to be.  Thanks for catching this Rolf!
17661
17662 2007-01-18  Jackson Harper  <jackson@ximian.com>
17663
17664         * TextControl.cs: When replacing a selection we need to invalidate
17665         from the initial selection start, because selection start is moved
17666         to the end of the replacement.
17667
17668 2007-01-18  Andreia Gaita  <avidigal@novell.com>
17669
17670         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
17671
17672 2007-01-18  Chris Toshok  <toshok@ximian.com>
17673
17674         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
17675         I just added.
17676
17677 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
17678
17679         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
17680         layout methods and properties from ToolBarButton must be available
17681         into ToolBarButtonInfo.
17682
17683 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17684
17685         * Control.cs: If the control has a transparent background, we
17686         need to refresh it when it moves and when it's parent's background
17687         image changes.  [Fixes bug #80451]
17688
17689 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17690
17691         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
17692
17693 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
17694
17695         * XplatUIWin32.cs: Implement proper double buffering for Windows.
17696         [Fixes bug #80447, and probably speeds up things as well]
17697
17698 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17699
17700         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
17701         * XplatUIWin32.cs: We need to recalculate NC size after changing 
17702         window style to toolwindow (otherwise the client rectangle will be
17703         3 pixels to small for some reason).
17704         * MdiWindowManager.cs: Revert NC size calculations to match how
17705         they are calculated only based on window styles (to match
17706         Win32AdjustWindowRectEx, since otherwise when setting size or 
17707         location, Control will call Win32AdjustWindowRectEx to update client 
17708         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
17709         calculate a different value of client size causing another paint 
17710         (and flickering))
17711         * InternalWindowManager.cs: When moving or resizing a window only
17712         update size or location if they actually changed.
17713         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
17714         (seems to match Windows behaviour better). Cleaned up 
17715         ManagedWindowDecorations to draw what's needed and nothing else
17716         (was drawing borders and lines where they shouldn't be)
17717         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
17718         (style = 0xFFFF) and takes into account caption height when 
17719         calculating window rectangle.   
17720
17721 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17722
17723         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
17724         can be added to toolbar multiple times, we need to maintain a list of 
17725         button information for each positions.
17726
17727 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
17728
17729         * ToolBar.cs: Some small stetic changes.
17730
17731 2007-01-16  Jackson Harper  <jackson@ximian.com>
17732
17733         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
17734         that allow us to have nested recalc = false blocks.
17735         - Add paste support for images in the RichTextBox
17736         * RichTextBox.cs: flush the text after the color is changed, so
17737         the change takes effect.
17738         - Use SuspendRecalc
17739         - Some extra debugging info
17740         * TextControl.cs: Tags no longer track their length, it is just
17741         computed from the next tags length, this makes things a little
17742         simpler and reduces places that we have to track length changes.
17743         - Refactored the linetag class a little so we could make it
17744         a base class for different kinds of tags
17745         - Created a image tag, a tag that can have a single image inserted
17746         into it
17747         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
17748         that we can call suspend multiple times.
17749         - Add some debugging methods
17750
17751 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17752
17753         * MdiClient.cs: Add ActivatePreviousChild for 
17754         mdi child window navigation.
17755         * Form.cs: Use MdiClient.ActivateNextChild/
17756         ActivatePreviousChild instead of Form.SelectNextControl
17757         to select the next/previous child since 
17758         SelectNextControl doesn't do it in the same order
17759         as mdi children should do it.
17760
17761 2007-01-16  Chris Toshok  <toshok@ximian.com>
17762
17763         * Control.cs: remove container_selected field.
17764
17765 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17766
17767         * MdiClient.cs: Update main form's ActiveChild when
17768         updating keyboard focus for the mdi child.
17769
17770 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
17771
17772         * Control.cs: PreferredSize fix.
17773
17774         * Form.cs: Add several 2.0 events, properties, and methods.
17775
17776 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
17777
17778         * Form.cs: Provide meaningful message when MdiParent is assigned a
17779         Form that is not an MdiContainer.
17780
17781 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17782
17783         * MdiClient.cs: Update main form's ActiveChild when
17784         activating a mdi child.
17785
17786 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17787
17788         * MdiWindowManager.cs: Fix NRE when merging menus and main form
17789         doesn't have a menu.
17790
17791         * Form.cs: Request NCRecalc after creating a mdi child window.
17792         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
17793         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
17794         
17795         * MdiClient.cs: Add new method SendFocusToActiveChild that either
17796         sends keyboard focus to the active child, or to the MdiClient
17797         if there are no child forms.
17798         
17799 2007-01-15  Chris Toshok  <toshok@ximian.com>
17800
17801         * ListView.cs: drop the *Internal overrides, just do our work in
17802         ItemControl's WndProc instead.
17803
17804         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
17805         of the various controls, and forward the events properly (in the
17806         same manner as MS) from the textbox to the UpDown.  Also the
17807         ActiveControl of the UpDownBase gets set properly now.  Finally,
17808         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
17809
17810         * NumericUpDown.cs: set Text in the ctor.
17811
17812         * DomainUpDown.cs: call UpdateEditText in the ctor.
17813         
17814         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
17815         so even a Selectable = false textbox can be focused if you click
17816         in it.  Go figure.
17817
17818         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
17819         just add their handling in their respective WndProc's.  Also add
17820         an explicit FocusInternal method that doesn't consult CanFocus
17821         before calling Select(this).
17822
17823         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
17824         do our work in WndProc instead.
17825
17826         * TabControl.cs: same.
17827
17828         * ComboBox.cs: same.
17829
17830 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17831
17832         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
17833         Fixes #80006.
17834
17835 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17836
17837         * ListViewItem.cs:
17838         * ThemeWin32Classic.cs: Don't draw the item text outside
17839         item bounds in Details view, as well as use trimming.
17840         Fixes bug #80376.
17841
17842 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17843
17844         * Form.cs: Implement Form.ShowIcon.
17845         
17846         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
17847         null, which when combined with the DlgModalFrame window style removes
17848         the icon from the title bar.
17849
17850 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17851
17852         * Control.cs: Call OnMouseClick after OnClick. (2.0)
17853
17854 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17855
17856         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
17857         menu when mdi child windows theres a menu, uses insert to get icon
17858         at first position. Partially fix #80006.
17859
17860 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
17861
17862         * Clipboard.cs: Implement 2.0 methods.
17863
17864 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
17865
17866         * Menu.cs: Implement Insert method of MenuItemCollection class
17867         to fix MenuMerge.
17868
17869 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17870
17871         * ListView.cs: Implement 2.0 FindItemWithText method.
17872
17873 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17874
17875         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
17876         to calculate menu bar size. Fixes #80290.
17877
17878 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
17879
17880         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
17881
17882 2007-01-11  Chris Toshok  <toshok@ximian.com>
17883
17884         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
17885         initial form.
17886
17887 2007-01-11  Chris Toshok  <toshok@ximian.com>
17888
17889         * LinkLabel.cs: make sure to call base.Select in our Select method
17890         if it turns out we're going to be selected (i.e. if we have a link
17891         that is going to receive focus).  That way our container's
17892         ActiveControl is updated properly.
17893
17894 2007-01-11  Chris Toshok  <toshok@ximian.com>
17895
17896         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
17897         they have 1 or more links.  this fixes the crash gert reported.
17898
17899 2007-01-11  Andreia Gaita  <avidigal@novell.com>
17900
17901         * ContainerControl.cs: Remove ContainerSelected flag, not needed
17902         anymore.
17903
17904         * Control.cs (Controls.Add): Check if control to be added to the collection
17905         is a top level control, and throw an ArgumentException if it is.
17906         Remove ContainerSelectedFlag, not needed anymore.
17907
17908         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
17909         top most control doesn't activate the form. This fixes a problem in the
17910         MessageBox, where the default button wouldn't get focus because the form
17911         was activated before being Loaded - when the Owner is set, SetTopMost is
17912         called, and it would activate it.
17913
17914 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
17915
17916         * Button.cs: When clicked and setting the parent form's DialogResult,
17917         use FindForm instead of Parent, since parent could be a container
17918         control and not the Form.  Fixes bug #80495.
17919
17920 2007-01-10  Chris Toshok  <toshok@ximian.com>
17921
17922         * Form.cs: move the call to SendControlFocus into the same
17923         is_loaded check.
17924
17925 2007-01-10  Chris Toshok  <toshok@ximian.com>
17926
17927         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
17928         It breaks in the face of the new ActiveControl stuff, and should
17929         be unnecessary.
17930
17931         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
17932         activecontrol's focus if it's not already set, after we set
17933         ActiveControl, but before we call OnActivated.  Re-fixes #79667
17934         after the previous focus/active control fixes regressed it.
17935
17936         * Control.cs: reindent some code.
17937         
17938 2007-01-10  Chris Toshok  <toshok@ximian.com>
17939
17940         * Splitter.cs: clearing some outstanding changes from my tree.
17941         Replace all accesses (not writes) to the internal dock_style field
17942         with the Dock property.
17943
17944 2007-01-10  Chris Toshok  <toshok@ximian.com>
17945
17946         * Control.cs: make FireEnter, FireLeave, FireValidating, and
17947         FireValidated virtual.
17948
17949         * Form.cs: override and don't chain up calls to FireEnter and
17950         FireLeave.
17951
17952 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17953
17954         * ListView.cs: Add more text padding space when using
17955         auto resize for columns (the previous value didn't work fine).
17956
17957         * ThemeWin32Classic.cs: Update text position inside columns,
17958         to match the appeareance of .Net.
17959
17960         * ColumnHeader.cs: When using auto resize, only the Width should
17961         depend on the sub items, not the Height. Also, set width after
17962         auto resizing (the value of Width should never remain as -1 or -2).
17963
17964 2007-01-10  Chris Toshok  <toshok@ximian.com>
17965
17966         * Application.cs: fix compilation errors when debug is enabled.
17967
17968 2007-01-10  Chris Toshok  <toshok@ximian.com>
17969
17970         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
17971         add some nice ascii art pictures and explanation of the process).
17972         (GetMostDeeplyNestedActiveControl): new utility function we need
17973         because our ActiveControl can refer to a child container with its
17974         own ActiveControl.
17975
17976         * Form.cs (OnActivated): remove the call to SelectActiveControl
17977         from here, since you can override this method and not chain up,
17978         and winforms still sets the active control.
17979         (OnCreateControl): also remove the unnecessary SelectActiveControl
17980         call from here.
17981         (WndProc): it's actually called from the WM_ACTIVATE block, just
17982         before calling OnActivated.
17983
17984         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
17985         inside the else.  the ActiveControl setter will end up setting
17986         focus on @control.  This keeps us from setting it again (and
17987         generating an extra LostFocus/GotFocus pair).
17988         (Select (bool, bool)): reindent.
17989
17990 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
17991
17992         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
17993         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
17994         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
17995         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
17996         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
17997         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
17998         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
17999         ToolStripTextBox.cs: Another wave of corcompare work.
18000
18001 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18002
18003         * ColumnHeader.cs: Implement 2.0 AutoResize method using
18004         the Width property.
18005
18006         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
18007         methods by callling Column.AutoResize method on columns.
18008
18009 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18010
18011         * Control.cs: Provide proper implementations of PreferredSize
18012         and GetPreferredSize (2.0).
18013
18014 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
18015
18016         * Form.cs: Remove one character (!) to make my previous OnClosing
18017         stuff work for modal windows like MessageBox.
18018
18019 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18020
18021         * ListView.cs:
18022         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
18023         ListView.Columns to get the last displayed column. Fixes #80452.
18024
18025 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
18026
18027         * Label.cs, LinkLabel.cs: Source code identation fixes.
18028
18029 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
18030
18031         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
18032         we dont need to invalidate only borders because when we invalidate four
18033         border lines the invalidate's generates a complete redraw of button, 
18034         because it now invalidate a complete rect some other redraws operations
18035         are fixed. Fixes #80196.
18036         
18037         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
18038         Remove ToolBarInvalidateEntireButton as it is not used.
18039
18040 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18041         
18042         * Form.cs: Make sure that both OnClosing and OnFormClosing are
18043         called for 2.0 profile.
18044         * CloseReason.cs: Make class internal for 1.1.
18045
18046 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
18047
18048         * ToolStripManager.cs: Implement FindToolStrip functionality.
18049         * ToolStrip.cs: Register and unregister with ToolStripManager.
18050
18051 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18052
18053         * Control.cs: This was messy.  2.0 moves much of ControlCollection
18054         to ArrangedElementCollection.  Implemented this with as few #if's as 
18055         possible (which is still too many).
18056
18057 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
18058
18059         * Control.cs: Implement SizeFromClientSize() [2.0].
18060
18061 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
18062
18063         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
18064         use Theme.BorderSize to calculate area instead of static value 1, 
18065         by the way use new BorderStaticSize instead     Border3DSize when 
18066         border_static is true. Fixes #79537.
18067         
18068         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
18069         
18070         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
18071         it is not needed.
18072
18073 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18074
18075         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
18076
18077 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
18078
18079         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
18080         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
18081         
18082         * Hwnd.cs: 
18083         - border_static field added, it will used to define when a control 
18084         theres 3D border but it must be static (thin).
18085         - In GetWindowRectangle use Theme.BorderSize to calculate area 
18086         instead of static value 1, by the way use new BorderStaticSize instead
18087         Border3DSize when border_static is true.
18088
18089         * XplatUIX11.cs, XplatUIOSX.cs: 
18090         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
18091         
18092         * Theme.cs: BorderStaticSize field added.
18093
18094 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18095
18096         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
18097
18098 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
18099
18100         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
18101         mimic same behavior than win32 that set border only in CreateParams,
18102         it fix problems under CreateParams overrides. Fix #79442 and partial
18103         fix #79537.
18104         
18105         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
18106         of thi control you must call recreate handle. 
18107         
18108         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
18109         need to do anything as RecreateHangle will take care about borders.
18110
18111 2007-01-05  Mike Kestner  <mkestner@novell.com>
18112
18113         * ListView.cs: hack to eliminate Lost/Got focus notifications on
18114         cycles between the ItemControl and parent.  Fixes #80388.
18115
18116 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
18117
18118         * Control.cs: Lazy init layout engine. Do not directly use 
18119         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
18120
18121 2007-01-05  Chris Toshok  <toshok@ximian.com>
18122
18123         * DataGrid.cs: don't forceably rebind columns in SetDataSource
18124         unless our list manager has changed (i.e. unless we have reason to
18125         believe our columns have changed).  Fixes #80422.
18126         
18127         also, disable the call do BindColumns in
18128         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
18129         1.1 the event isn't raised in response to a column addition on a
18130         table.)
18131
18132 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18133
18134         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
18135         that inheritors can not call it if they choose.  Fixes bug #80456.
18136
18137 2007-01-05  Andreia Gaita  <avidigal@novell.com>
18138
18139         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
18140         doesn't blow up with a null exception on marshalling.
18141         
18142 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
18143
18144         * Control.cs: Implement several 2.0 protected properties and methods.
18145         Ensure that all necessary events are being called when properties
18146         are set.
18147
18148 2007-01-05  Mike Kestner  <mkestner@novell.com>
18149
18150         * ListView.cs: implement PgUp/PgDn for Details view.  Also
18151         fixes First/LastVisibleIndex to use the item_control.ClientRect 
18152         instead of the parent control.  Fixes #80378.
18153
18154 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
18155
18156         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
18157           determine whether to use yard-pound or not (bug #78399).
18158
18159 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
18160
18161         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
18162         problems. So it is time to bring back the old popupbutton colors.
18163
18164 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18165
18166         * ColumnHeader.cs:
18167         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
18168         property by using the internal information of the
18169         columns order in ListView.
18170
18171 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
18172
18173         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
18174         Add 2.0 Tag properties.
18175
18176         * LinkArea.cs: Add 2.0 ToString method.
18177
18178 2007-01-03  Chris Toshok  <toshok@ximian.com>
18179
18180         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
18181         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
18182         when we're editing, which fixes #80047.
18183
18184 2007-01-03  Chris Toshok  <toshok@ximian.com>
18185
18186         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
18187         #80404.
18188
18189 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
18190
18191         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
18192         property and implementation.
18193
18194         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
18195         for MdiWindowListItem property.
18196
18197         * ToolStripDropDown.cs: Don't consider hidden menu items while
18198         laying out the menu.
18199
18200 2007-01-03  Andreia Gaita  <avidigal@novell.com>
18201
18202         * SendKeys.cs: window handle is not needed in win32, so just
18203         get the active window for X after parsing keys and don't use
18204         it when building the message; it is passed by parameter to the 
18205         Xplat method and used there to build the message instead. Also,
18206         wait for events to be processed on SendWait, as opposed to Send,
18207         which doesn't wait :) Playing with threads and Send() completely 
18208         hangs on ms.net, only SendWait() works.
18209         
18210         XplatUIX11.cs
18211         X11Display.cs: Check for valid window handle.
18212
18213 2007-01-03  Jackson Harper  <jackson@ximian.com>
18214
18215         * TextControl.cs: Need to prevent wrap calculations when replacing
18216         text (this was there before i removed it accidently).
18217         - Don't update the cursor during the positioning, just set it to
18218         selection_start at the end of the operaion.
18219
18220 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18221
18222         * Control.cs:
18223         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
18224         
18225 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18226
18227         * MonthCalendar.cs: Added Click and DoubleClick events again,
18228         but this time they only hide Control's Click and DoubleClick.
18229         
18230 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
18231
18232         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
18233         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
18234
18235 2007-01-02  Jackson Harper  <jackson@ximian.com>
18236
18237         * TextBoxBase.cs: We move the caret with the split now, so we
18238         don't need to explicitly move the caret after splitting.  This
18239         fixes the caret bumping down an extra line on Enter.
18240
18241 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18242
18243         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
18244         2.72). 
18245
18246         * ScrollableControl.cs: Add Scroll event.
18247
18248 2007-01-02  Mike Kestner  <mkestner@novell.com>
18249
18250         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
18251         to fix all hdr height padding codepaths.  Fixes #80207.
18252
18253 2007-01-02  Chris Toshok  <toshok@ximian.com>
18254
18255         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
18256         setting it to the Control defaults anyway, and it being after the
18257         Dock set was screwing up layout.
18258         (set_Dock): don't short circuit out of setting base.Dock.  Also,
18259         no need to call UpdateStatusBar here, as it'll be re-layed out if
18260         it needs to be.
18261
18262 2007-01-02  Mike Kestner  <mkestner@novell.com>
18263
18264         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
18265         to header height for width == -1. Fixes the rest of #80207.
18266
18267 2007-01-02  Mike Kestner  <mkestner@novell.com>
18268
18269         * ListView.cs: rework the mouse event forwarding everaldo added
18270         to translate the coordinates to the parent control not
18271         raise the parent events until after we've done our work. Hover
18272         needs more work, in the case where HoverSelection is on, because
18273         the item control receives more than one MouseHover per Enter
18274         event, so we need to ensure only the "first" hover gets forwarded.
18275         Opening a minor bug for that.
18276
18277 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
18278
18279         * CheckedListBox.cs: Fixed SelectionMode to match MS.
18280         * ListControl.cs: Implemented AllowSelection property. Removed extra
18281         tabs.
18282         * ListBox.cs: Implemented AllowSelection property.
18283
18284 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18285
18286         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
18287         SelectedItem, it prevent for errors when you must disable item
18288         before perform click. Fixes #80409.
18289
18290 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18291
18292         * MenuAPI.cs: Prevent second level and beyond submenus to close
18293         until first level when move out side of popup.
18294         
18295 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18296
18297         * MenuAPI.cs:
18298         - Down submenu positin in three pixels.
18299         - Closes sub menu when mouse leaves from menu. Fixes #80402.
18300
18301 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
18302
18303         * ThemeWin32Classic.cs:
18304         - Fix popup menu size adding one pixel on the top.
18305         - Down menu item border from two to one to mimic Win32.
18306         - Some source identation fixes. 
18307
18308 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18309
18310         * ThemeWin32Classic.cs: Use float numbers to calculate size and
18311         position of menu arrows, it fix wrong arrow size.
18312
18313 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
18314
18315         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
18316         instead of line, it simplify draw operation and fix it using 3D
18317         borders to mimic Win32.
18318
18319 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
18320
18321         * StatusStrip.cs: Add implementation of the sizing grip.
18322
18323         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
18324         StatusStrip rendering.
18325
18326 2006-12-31  Chris Toshok  <toshok@ximian.com>
18327
18328         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
18329         override the layout style (anchor/dock) of the control.  assign to
18330         Dock instead.  Fixes bug #80416.
18331
18332         * ToolStrip.cs: same.
18333
18334 2006-12-31  Andreia Gaita  <avidigal@novell.com>
18335
18336         * ContainerControl.cs: Use ContainerSelected flag to check if 
18337         a Container is directly selected, or if Select is called on a 
18338         non-container. If a container is directly selected, focus events 
18339         should not be raised.
18340         Apply #80411 patch to throw exception on set_ActiveControl if 
18341         control is the same as the current one.
18342         
18343         * Control.cs: Use ContainerSelected flag (see above).
18344         Add invalidation check to raise event but not invalidate if 
18345         dimensions are 0.       
18346         Apply #80411 patch.
18347         
18348
18349 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
18350
18351         * MenuAPI.cs: After click, dont close popup menu when menu is
18352         ContextMenu. Fixes #80399.
18353
18354 2006-12-30  Chris Toshok  <toshok@ximian.com>
18355
18356         * ContainerControl.cs: make sure we throw the exception if the
18357         container control doesn't contain the control we're setting
18358         ActiveControl to.
18359
18360 2006-12-30  Chris Toshok  <toshok@ximian.com>
18361
18362         * Control.cs (SetTopLevel): fix the exception raised by
18363         SetTopLevel for child controls.
18364         (set_Anchor): call UpdateDistances when setting the anchor type.
18365         This fixes bug #80336.
18366
18367 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18368
18369         * Theme.cs: For now, revert back to 8pt font.
18370
18371 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
18372
18373         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
18374         Fixes #80395.
18375
18376 2006-12-29  Chris Toshok  <toshok@ximian.com>
18377
18378         * Control.cs: reorder the code in OnResize to give the same event
18379         ordering as MS.
18380
18381 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18382
18383         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
18384         TileHorizontally and TileVertically.
18385         
18386 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
18387
18388         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
18389         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
18390         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
18391         Corrected copyright and email adress.
18392
18393 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18394
18395         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
18396         of Exception in FullPath property if no TreeView is associated with
18397         the TreeNode.
18398
18399 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
18400
18401         * Theme.cs: Marked default_font as private, and initialize it in ctor
18402         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
18403         on 2.0 profile.
18404         * ThemeGtk.cs: Removed default_font intialization.
18405         * ThemeWin32Classic.cs: Removed default_font initialization.
18406
18407 2006-12-28  Chris Toshok  <toshok@ximian.com>
18408
18409         * Control.cs: fix a couple of place where we were creating handles
18410         more aggressively than we should be.  Fixes ControlRefresh unit
18411         tests.
18412
18413 2006-12-28  Chris Toshok  <toshok@ximian.com>
18414
18415         * Control.cs: contrary to what the comment said, Control.Dock does
18416         not supercede Control.Anchor - the last one you assign to decides
18417         the layout behavior.  so we need to keep track of which was the
18418         last set.  Also, fix some of the affected property arguments in
18419         PerformLayout calls, and remove an redundant parent.PerformLayout
18420         call in OnResized.
18421
18422         Add a VisibleInternal property, which returns is_visible.  We
18423         can/should get rid of all the usage of this field elsewhere.
18424
18425 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18426         
18427         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
18428         control style, not DoubleBuffer. Added UseDoubleBuffering property
18429         that indicates whether doublebuffering is enabled and supported.
18430         (comment from and code based on Gert Driesen's patch in #80324).
18431         Fixes #80324.
18432
18433 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18434         
18435         * Control.cs: Fixed a NRE.
18436
18437 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18438
18439         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
18440         for 2.0.
18441
18442 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18443
18444         * Control.cs: Rewrote double buffering, now a seperate
18445         class handles all the buffering, no Graphics is disposed of
18446         until the painting is finished (earlier implementation 
18447         would crash if the control was resized in the OnPaint, 
18448         since it would cause the double buffer to be recreated
18449         and the old one disposed), a separate Graphics is 
18450         created for every paint (MS behaviour and anyways the state
18451         of the Graphics would have to be saved and restored otherwise)
18452         
18453         * XplatUIDriver.cs: 
18454         * XplatUIX11.cs:
18455         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
18456         so that we can get the graphics for the back buffer without
18457         having to create a new one and remove the offscreen_dc parameter
18458         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
18459         
18460 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18461
18462         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
18463         Also make virtual all the key-related methods.
18464
18465         * ListViewItem.cs: Make virtual the key related methods for
18466         ListViewSubItemCollection.
18467
18468 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18469
18470         * ListView.cs:
18471         * ListViewItem.cs:
18472         * ThemeWin32Classic.cs:
18473         * Theme.cs: Initial support for Tile view in ListView,
18474         as well as the implementation of the required bits for it (Item
18475         and Subitem).
18476
18477 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18478
18479         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
18480         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
18481         Provide useful exception messages.
18482
18483 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18484
18485         * TrackBar.cs: Remove a warning.
18486         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
18487         when used by DateTimePicker, fixes #80287. This also requires that 
18488         MonthCalendar implements it's own drawing for the yearly updown control,
18489         otherwise the Capture tracking would be too complicated. Removed the Click 
18490         and DoubleClick events (according to comments they were hiding the base class
18491         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
18492         raise these events, not that they cannot be raised. It is possible to raise 
18493         them by calling OnClick and OnDoubleClick). Added two internal fields in 
18494         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
18495         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
18496         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
18497         event, no longer needed.
18498         
18499 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18500
18501         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
18502         true if new value differs from current value.
18503
18504 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18505
18506         * Control.cs: ControlCollection.Count must be public. Fixed build of
18507         unit tests.
18508
18509 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18510
18511         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
18512
18513 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
18514
18515         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
18516
18517 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18518
18519         * Control.cs: Invalidates control including when Width and Height is 
18520         equal zero or is not visible, only Paint event must be care about 
18521         this. Fixes #79913.
18522
18523 2006-12-26  Chris Toshok  <toshok@ximian.com>
18524
18525         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
18526         more corcompare work.
18527
18528         * DataGridView.cs: fix compiler warning.
18529
18530         * ColumnHeader.cs: some corcompare work, and also take the
18531         opportunity to make the internal fields private.
18532
18533         * ListView.cs: fix the fallout from the above field change.
18534
18535 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18536
18537         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
18538         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
18539         ToolStripTextBox.cs: Fixes to events and corcompare.
18540
18541 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
18542
18543         * ListView.cs: Call owner.OnMousexx event to propagate events from
18544         item to ListView. Fixes #80367.
18545
18546 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18547
18548         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
18549         if value is less than one. ItemHeight should not be set to a value
18550         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
18551         Removed extra tabs.
18552
18553 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
18554
18555         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
18556         * ToolStripStatusLabel.cs: Add Spring for Moma.
18557
18558 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18559
18560         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
18561         Fixed code formatting. Removed debug code.
18562         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
18563
18564 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
18565
18566         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
18567         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
18568         ArgumentOutOfRangeException if ColumnCount is negative. In 
18569         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
18570         less than 4 or higher than 32768.
18571         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
18572         Fixed FormatProvider to return CurrentCulture unless explicitly set.
18573         Fixed IsFormatProviderDefault to return true if FormatProvider has
18574         not been explicitly set.
18575
18576 2006-12-25  Chris Toshok  <toshok@ximian.com>
18577
18578         * Application.cs: add a couple of 2.0 events.
18579
18580 2006-12-25  Chris Toshok  <toshok@ximian.com>
18581
18582         * Control.cs: fix compiler warning.
18583
18584         * AxHost.cs: corcompare fixes.
18585
18586         * ApplicationContext.cs: corcompare fixes.
18587
18588 2006-12-25  Chris Toshok  <toshok@ximian.com>
18589
18590         * Control.cs: only update dist_right/dist_bottom if the
18591         width/height is > 0.  this fixes anchored controls being resized
18592         smaller until they disappear and then resized larger again.
18593
18594 2006-12-25  Chris Toshok  <toshok@ximian.com>
18595
18596         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
18597         since they're nothing more than X/Left and Y/Top, respectively.
18598
18599         Also, move back to a per-control Bitmap/Graphics for
18600         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
18601         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
18602         Height.
18603
18604 2006-12-25  Miguel de Icaza  <miguel@novell.com>
18605
18606         * MessageBox.cs: Implemented overload that takes a new "bool
18607         displayHelpButton" by adding a new internal field "show_help".
18608         When clicked this will raise the HelpRequested on the owner or the
18609         main form. 
18610
18611         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
18612         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
18613
18614         * ListView.cs: Add support ColumnWidthChanged and
18615         ColumnWidthChanging. 
18616
18617         Add support for ColumnReordered event.
18618         (ReorderColumn): Add NET_2_0 specific support for cancelling the
18619         reorder.
18620
18621         Very nice codebase!
18622
18623         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
18624
18625         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
18626
18627 2006-12-24  Chris Toshok  <toshok@ximian.com>
18628
18629         * GridTablesFactory.cs: 2.0 corcompare work.
18630
18631         * ToolStripContainer.cs: add "override" to
18632         ContextMenuStripChanged, and remove the local event object.
18633
18634         * ToolStripDropDown.cs: same with a couple properties.
18635
18636         * ToolStripPanel.cs: same with AutoSizeChanged event.
18637
18638         * TextBoxBase.cs: add "override" to AutoSizeChanged.
18639
18640         * Form.cs: add the remaining 2.0 events, and do some corcompare
18641         attribute work.
18642
18643         * DateTimePicker.cs: add "new" to padding.
18644
18645         * ButtonBase.cs: use Control's use_compatible_text_rendering.
18646
18647         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
18648
18649         * DataGridView.cs: PaddingChanged is overridden.
18650
18651 2006-12-24  Chris Toshok  <toshok@ximian.com>
18652
18653         * Control.cs: corecompare work here too.
18654
18655         * DataGridViewElement.cs, DataGridView.cs,
18656         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
18657         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
18658         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
18659         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
18660         work.
18661
18662 2006-12-24  Miguel de Icaza  <miguel@novell.com>
18663
18664         * Control.cs: Switched the error message on the console for a
18665         todo.  A review of the code will have to cope with this anyways
18666         (since its a large feature, it is in our radar) and it was
18667         producing too much output when running PDN.
18668
18669         * ToolStripComboBox.cs: Set the text when the SelectedIndex
18670         changes.  Applications depend on this (PDN 2.72)
18671
18672 2006-12-23  Chris Toshok  <toshok@ximian.com>
18673
18674         * TableLayoutSettings.cs: finish up the corcompare work for this
18675         class.
18676
18677 2006-12-23  Chris Toshok  <toshok@ximian.com>
18678
18679         * Control.cs: make SetImplicitBounds internal, do some futzing
18680         with LayoutEngine so that it's available in 1.1, and remove the
18681         entire duplicated code mess from PerformLayout.  Use
18682         System.Windows.Forms.Layout.DefaultLayout instead.
18683
18684         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
18685
18686 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18687
18688         * Form.cs: Add MainMenuStrip property.
18689
18690 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
18691
18692         * Control.cs: Add ContextMenuStrip property and implementation.
18693         Fix ContextMenu implementation to show menu centered on control when
18694         activated using the keyboard instead of showing at screen (0,0).
18695
18696         * ToolStripDropDown.cs: Fix needed overload of Show ().
18697
18698 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18699
18700         * Menu.cs: Name property added for 2.0 profile.
18701         
18702 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18703
18704         * Menu.cs: Update information about FindMenuItem, method to be
18705         implemented soon.
18706
18707 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18708
18709         * MenuAPI.cs: When deselect items deselect also selected subitems.
18710         
18711 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
18712
18713         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
18714         FindSubItemByCoord to found itens that is not active, also an
18715         cheking added to FindSubItemByCoord to search for items only 
18716         in visible popup windows. Fixes #80274.
18717
18718 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
18719
18720         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
18721         internal property, it be care about change ExStyle. 
18722
18723 2006-12-22  Andreia Gaita  <avidigal@novell.com>
18724
18725         * ContainerControl.cs: set activeControl for parent forms up the 
18726         tree when the new activecontrol is a container.
18727         When validating the active control, if it is a container, also
18728         raise up the validation for it's active control. Fixes #80280
18729         
18730         * Control.cs: Add internal property flag and check to prevent
18731         Focus events from getting raised when Select() is called for
18732         a ContainerControl. There are still too many focus events being
18733         raised at the moment though.
18734         Cleaned up the code a bit.
18735
18736 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18737
18738         * Control.cs: Added all missing 2.0 events.and
18739         fixed a couple of corcompare issues.
18740         * TrackBar.cs: Implemented missing 2.0 bits.
18741         * MonthCalendar.cs, 
18742         * DateTimePicker.cs, 
18743         * MdiClient.cs: Fixed some corcompare issues.
18744
18745 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18746
18747         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
18748         SplitterPanel.cs: corecompare work.
18749
18750 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18751
18752         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
18753         Clean up warnings for BackgroundImageChanged and PaddingChanged
18754         events now that they are implemented in Control.cs.
18755
18756 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
18757
18758         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
18759         
18760         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
18761         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
18762         of TableLayoutPanel and supporting cast.
18763
18764 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18765
18766         * XplatUIWin32.cs: 
18767         - GrabWindow now confines the mouse pointer to the confine window.
18768         - Added Win32ClipCursor and Win32GetClipCursor.
18769
18770         * Control.cs: 
18771         - Added CaptureWithConfine to be able to capture and confine 
18772         mouse pointer.
18773         
18774         * InternalWindowManager.cs: 
18775         - Call CaptureWithConfine instead of Capture if we're an
18776         MdiChild (fixes #79982).
18777
18778 2006-12-21  Chris Toshok  <toshok@ximian.com>
18779
18780         * DataGrid.cs: guard against the initial state of selection, where
18781         selection_start == -1.  make sure we only select from index >= 0.
18782         Fixes bug #80291.
18783
18784 2006-12-21  Chris Toshok  <toshok@ximian.com>
18785
18786         * Control.cs: we don't need to be so draconian with
18787         UpdateDistances, and we thusly don't need to call it before
18788         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
18789
18790 2006-12-21  Daniel Nauck  <dna@mono-project.de>
18791
18792         * ComboBox.cs,
18793         TextBox.cs: Implemented AutoComplete properties.
18794
18795 2006-12-20  Chris Toshok  <toshok@ximian.com>
18796
18797         * DataGridView*.cs: some corecompare work.
18798
18799 2006-12-20  Jackson Harper  <jackson@ximian.com>
18800
18801         * XplatUIX11.cs: We need to hide the caret when deleting it,
18802         otherwise you get carets left lying around everywhere.
18803         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
18804         prevents getting some weird half drawn caret tracers when
18805         scrolling.
18806         * TextControl.cs: Attempt to reduce the number of times we need to
18807         recreate the caret.
18808
18809 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
18810
18811         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
18812
18813 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18814
18815         * DateTimePicker.cs:
18816         - Implemented missing 2.0 bits.
18817         - Changed some default values to match MS.
18818         
18819 2006-12-20  Jackson Harper  <jackson@ximian.com>
18820
18821         * TextBoxBase.cs: When changing the font across the document we
18822         can't recalculate after changing each line, since that will cahnge
18823         the line count.
18824         - PreferredHeight is a little different than i thought.
18825         - When backspacing, move the caret before we do the actual char
18826         delete, because when that delete crosses a wrap boundary the
18827         positional information will change.
18828
18829 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18830
18831         * Control.cs: Added some missing 2.0 bits: 
18832         BackgroundImageLayout, BackgroundImageLayoutChanged, 
18833         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
18834         add IBindableComponent and IDropTarget implementation.
18835         
18836         * MonthCalendar.cs: 
18837         - Added all missing 2.0 features:
18838         BackgroundImageLayout, RightToLeftLayout, 
18839         OnHandleDestroyed, RightToLeftLayoutChanged, 
18840         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
18841         PaddingChanged.
18842         - Rewrote all the BoldDate code, it was completely broken.
18843         - Fixed all the tests (the tests can now be re-enabled, the
18844         problems were not with the tests, but with the control, it was
18845         mostly broken).
18846         
18847         * DateTimePicker.cs: Changed the location where the 
18848         MonthCalendar is shown.
18849         
18850 2006-12-19  Chris Toshok  <toshok@ximian.com>
18851
18852         * DataGridView.cs: add IDropTarget implementation.
18853
18854         * ToolStripPanel.cs: add IDropTarget implementation.
18855
18856 2006-12-19  Jackson Harper  <jackson@ximian.com>
18857
18858         * TextControl.cs: soft now means something different than what it
18859         used to mean, we want to move the caret regardless of whether or
18860         not this break was soft (would we really have wanted the caret
18861         to not move with the break in the old context?)
18862         * TreeView.cs: Make sure we factor in the vert scrollbar when
18863         calculating the horizontal scrollbar's maximum.
18864
18865 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18866
18867         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
18868         check for keywords in alternate casing, close bug #80049.
18869
18870 2006-12-19  Chris Toshok  <toshok@ximian.com>
18871
18872         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
18873         methods (which all do nothing).
18874
18875         * IDropTarget.cs: add the 4 missing methods.
18876
18877 2006-12-19  Chris Toshok  <toshok@ximian.com>
18878
18879         * TableLayoutRowStyleCollection.cs: corcompare work.
18880         
18881         * TableLayoutSettings.cs: same.
18882
18883         * TableLayoutStyle.cs: same.
18884
18885         * TableLayoutColumnStyleCollection.cs: same.
18886
18887 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
18888
18889         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
18890         TableLayoutPanel I've had in my local tree for way too long.
18891
18892 2006-12-19  Miguel de Icaza  <miguel@novell.com>
18893
18894         * TableLayoutSettings.cs: Finish the public API (still needs all
18895         the logic to update on changes). 
18896
18897         * TableLayoutPanelCellPosition.cs: new file.
18898         
18899         * TableLayoutRowStyleCollection.cs,
18900         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
18901         TableLayoutSettings.cs: Track the final 2.0 table api.
18902
18903 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18904
18905         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
18906         and Image List 2.0 members for ColummnHeader.
18907         * ListView.cs: Add key-related 2.0 methods for
18908         ColumnHeaderCollection.
18909
18910 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18911
18912         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
18913         ArgumentNullException if items argument is null. Ignore null item in
18914         arrays. Removed extra tabs.
18915
18916 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
18917
18918         * MonthCalendar.cs: Fixed InvalidCastException.
18919
18920 2006-12-19  Jackson Harper  <jackson@ximian.com>
18921
18922         * TextControl.cs: Don't increment the position here.
18923         - When calculating char positions only add in the line break size
18924         for hard line breaks.
18925
18926 2006-12-19  Andreia Gaita  <avidigal@novell.org>
18927
18928         * SendKeys.cs: Changed some things to match ms.net behaviour
18929         when parsing shifted capital letters.
18930         
18931         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
18932         Add window handle as parameter to SendInput. X11 needs the 
18933         window handle, and the handle being passed      to it in the keys 
18934         queue is the active control handle (which windows needs), not 
18935         the window handle.
18936         
18937         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
18938         to support SendKeys on X.       
18939         
18940         * X11Keyboard: Implement helper method to lookup a linux keycode
18941         given the virtual keycode. Added table of keycode-2-virtualkey
18942         values to support this.
18943
18944 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18945
18946         * ListView.cs: Add support for SelectedIndexCollection
18947         and SelectedItemCollection 2.0 methods. Implement support
18948         for ImageKey too.
18949         * ListViewItem.cs: Add support for ListViewSubItemCollection
18950         2.0 methods. Also, fix an incorrect behavior of AddRange method
18951         (it shouldn't call Clear).
18952         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
18953
18954 2006-12-19  Jackson Harper  <jackson@ximian.com>
18955
18956         * RichTextBox.cs: 
18957         * TextBoxBase.cs: New args for FormatText
18958         * TextControl.cs: Rewrote the main drawing method, this version
18959         feels a little easier to understand and debug to me.  Hopefully it
18960         does to others also
18961         - Fix FormatText to OR in the new formating values.  Added
18962         FormatSpecified param, basically this works in the same way as
18963         BoundsSpecified in Control.
18964         - Set the caret properties when the caret is positioned.
18965         - When wrapping text make sure that we calculate the width of the
18966         last character
18967         - when calculating alignments we might have wrapped down to the
18968         next line, so don't search for an individual tag, search for the
18969         end of the line
18970         - We need to invalidate the selection area when we replace the
18971         selection.
18972         
18973 2006-12-19  Daniel Nauck  <dna@mono-project.de>
18974
18975         * Application.cs: add Restart () 2.0 support
18976
18977 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18978
18979         * MenuItem.cs: Invalidate menu item rectangle after change Enable
18980         property. Fixes #80268.
18981         
18982 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18983
18984         * MenuAPI.cs: Dont trigger select event when closes top menu
18985         item. Fixes #80270.
18986
18987 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
18988
18989         * MenuAPI.cs: When you click on menuitem only trigger onselect
18990         event for top menu itens. Fixes #80271.
18991         
18992 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18993
18994         * MdiWindowManager.cs: Make IconicBounds depend on
18995         the bottom of MdiClient, not the top (fixes #80267)
18996         
18997 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
18998
18999         * MdiClient.cs: Added missing 2.0 attribute
19000
19001 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19002
19003         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
19004         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
19005
19006 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
19007
19008         * MenuAPI.cs: Fix click when menuitem is not popup,
19009         this regression was caused by last commit (#80272).
19010
19011 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
19012
19013         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
19014         fire click event or close menu. Fixes #80272.
19015
19016 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19017
19018         * ListViewHitTestInfo.cs: add
19019
19020 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19021
19022         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
19023         * FlatButtonAppearance.cs: add
19024         * DockingAttribute.cs: add
19025
19026 2006-12-17  Chris Toshok  <toshok@ximian.com>
19027
19028         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
19029         and rebind our columns when it does - this way, if you make
19030         changes to the DataTable (or set the Table attribute on a DataView
19031         after setting it as the DataGrid's DataSource, the changes are
19032         made visible.)  Fixes bug #80107.
19033
19034 2006-12-17  Daniel Nauck  <dna@mono-project.de>
19035
19036         * ListViewGroup.cs: add internal Location property for layouting.
19037         * Theme.cs: add abstract ListViewGroupHeight function.
19038         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
19039
19040 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19041
19042         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
19043         Added reset of selected index to 0 when adding first tab page.
19044         Fixes #80264
19045         
19046         * NumericUpDown.cs: Fix NET_2_0 check
19047
19048 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19049
19050         * ListViewGroup.cs: fixed DefaultValueAttribute value
19051
19052 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19053
19054         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
19055
19056 2006-12-15  Miguel de Icaza  <miguel@novell.com>
19057
19058         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
19059         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
19060         ScrollableControl.cs: Add a handful of methods that are
19061         overwritten in 2.0 
19062
19063 2006-12-15  Chris Toshok  <toshok@ximian.com>
19064
19065         * XplatUIWin32.cs: initial implementation of the Reversible
19066         drawing functions.  there are some problems.  DrawReversibleFrame
19067         doesn't seem to work at all for Dashed FrameStyle, and in the
19068         Thick case there are drawing errors at the corners (we probably
19069         need to bind Rectangle instead of doing moveto/lineto's.)
19070
19071 2006-12-16  Andreia Gaita  <avidigal@novell.com>
19072         
19073         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
19074         to send blocks of key messages. Send accumulates keys to send with Flush, 
19075         while SendWait sends all keys immediately.
19076                 
19077         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
19078         XplatUIX11.cs,  XplatUIX11-new.cs:
19079         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
19080         to Win32 SendInput.
19081         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
19082         
19083         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
19084         testing for ms.net on this class is very tricky, as the tests run too fast 
19085         to allow the hook to release, essentially freezing the keyboard and the 
19086         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
19087         category :p
19088
19089 2006-12-16  Daniel Nauck  <dna@mono-project.de>
19090
19091         * Padding.cs: fixed serialization compability to MS ("_var" field names),
19092                         added missing attributes.
19093  
19094 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19095
19096         * ListViewGroup.cs: Added missing attributes.
19097         * ListViewGroupCollection.cs: Added missing attributes.
19098
19099 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19100
19101         * ListViewItem.cs: fixed ListViewSubItem text property.
19102
19103 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19104         
19105         * Control.cs: Added missing 2.0 attributes
19106         
19107 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19108         
19109         * MdiClient.cs: Added missing 2.0 attribute.
19110         * MonthCalendar.cs: Added some missing 2.0 attributes 
19111         and properties.
19112         
19113 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19114
19115         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
19116
19117 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
19118
19119         * MainMenu.cs: Add the new 2.0 constructor to help out people
19120         using the MainMenu in VS2005.
19121
19122 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19123         
19124         * MdiChildContext.cs: Removed it, no longer used.
19125         * MdiClient.cs: Added missing 2.0 attributes.
19126         
19127 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19128         
19129         * InternalWindowManager.cs: Fix a NullRef with previous 
19130         changes for toolwindows.
19131         
19132 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19133
19134         * Control.cs: 
19135         - Added AfterTopMostControl to allow for certain controls 
19136         to always stay on top when normal controls are brought to 
19137         front.
19138         
19139         * XplatUIWin32.cs: 
19140         - (DrawInversibleRectangle): Get window rectangle from Win32 
19141         in stead of from control, since Win32 doesn't calculate
19142         screen coords correctly from control's Location if it 
19143         have docked siblings.
19144         
19145         * MdiWindowManager.cs:
19146         - Correct the control menu popup location when clicked on
19147         the maximized form icon. (fixes #80223.1)
19148         - Don't show moving rectangle if mouse hasn't moved from
19149         the original clicked point.
19150         - Removed FormGotFocus handler (not used).
19151         - Calculate the control buttons location from the main
19152         window's size and not client size (fixes #79770).
19153         - Form is now closed when the form icon is double-clicked
19154         (fixes #79775). 
19155         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
19156         
19157         * InternalWindowManager.cs:
19158         - Moved some MDI-only methods to MdiWindowManager.
19159         - Removed unused properties and methods.
19160         - Unified method naming for methods handling wm messages.
19161         - Moved all message handling to seperate methods for
19162         each message.
19163         
19164         * ThemeWin32Classic.cs:
19165         - DrawManagedWindowDecorations now draws the title bar 
19166         with a gradient brush.
19167         - Add a CPDrawButtonInternal that allows us to specify
19168         light, normal and dark colors for the buttons (control 
19169         buttons for MDI children were drawn with the same light
19170         color as the background, therefore loosing the 3D effect).
19171         
19172         * SizeGrip.cs:
19173         - Add a CapturedControl property that is used to 
19174         determine the control to resize (defaults to parent). 
19175         Needed for MdiClient, since its SizeGrip's parent is
19176         MdiClient, but the control to resize is the main form.
19177         
19178         * MdiClient.cs:
19179         - Set SizeGrip's CapturedControl to the main form in order
19180         to resize the main form and not the MdiClient.
19181         - Override AfterTopMostControl to leave the scrollbars 
19182         always on top.
19183
19184 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19185
19186         * ListView.cs: fixed ListViewItemCollection AddRange and
19187                         implemented ListViewItemCollection AddRange 2.0 support.
19188
19189 2006-12-15  Daniel Nauck  <dna@mono-project.de>
19190
19191         * ListViewGroup.cs: Add.
19192         * ListViewGroupCollection.cs: Add
19193         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
19194         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
19195                                 stub for ImageKey 2.0 support.
19196
19197 2006-12-14  Mike Kestner  <mkestner@novell.com>
19198
19199         * ListView.cs: add text padding to the autocalculation for columns
19200         of width -2.  Fixes #80207.
19201  
19202 2006-12-14  Mike Kestner  <mkestner@novell.com>
19203
19204         * ListView.cs: add some index guarding for partial row navigation 
19205         logic.  Fixes #80250.
19206
19207 2006-12-14  Mike Kestner  <mkestner@novell.com>
19208
19209         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
19210         are added or inserted to the collection.  Fixes #81099.
19211
19212 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
19213
19214         * MenuAPI.cs: Closes menu when right click out side of popup
19215         it fix problem in ContextMenu and MainMenu. Fixes #80252.
19216
19217 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19218
19219         * ListViewItem.cs: Fix dumb error.
19220
19221         * ListView.cs: Add Find and ContainsKey methods in 
19222         ListViewItemCollection, and also return true for IsReadOnly
19223         and IsFixedSize (changes for 2.0). 
19224
19225 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
19226
19227         * Control.cs: Allow Region to be set to null.
19228
19229 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19230
19231         * MdiWindowManager.cs: Remove unused (commented out) code.
19232         * Form.cs: When the MdiChild is maximized, the form needs 
19233         WM_NCMOUSELEAVE, so request it.
19234         * InternalWindowManager.cs: 
19235         - Added tooltips to control buttons.
19236         - Removed duplicated control button handling code.
19237         - Removed unused (commented out) code.
19238         
19239 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
19240
19241         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
19242         was used because we must set cursor without trigger ChangeCursor event
19243         and without change Cursor control property. Fixes #79963.
19244
19245 2006-12-12  Andreia Gaita  <avidigal@novell.com>
19246         
19247         * Control.cs: Check if Region setter value is null, and ignore
19248
19249 2006-12-12  Jackson Harper  <jackson@ximian.com>
19250
19251         * TextControl.cs: We were almost always drawing one more line then
19252         needed, since the GetLineByPixel will return the last line found
19253         at that pixel. In most cases though, we were invalidating up to
19254         the junction between two lines.
19255         - Improve debug code.
19256
19257 2006-12-12  Chris Toshok  <toshok@ximian.com>
19258
19259         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
19260         and FillReversibleRectangle.
19261
19262         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
19263         and FillReversibleRectangle.
19264
19265         * XplatUIWin32.cs: add stubs which do nothing for
19266         DrawReversibleFrame, DrawReversibleLine, and
19267         FillReversibleRectangle.
19268
19269         * XplatUIOSX.cs: add stubs which raise NIE for
19270         DrawReversibleFrame, DrawReversibleLine, and
19271         FillReversibleRectangle.
19272
19273         * XplatUIX11.cs: add working implementation for
19274         DrawReversibleFrame, DrawReversibleLine, and
19275         FillReversibleRectangle.
19276         
19277         * ControlPaint.cs: implement DrawReversibleFrame,
19278         DrawReversibleLine, and FillReversibleRectangle, by calling into
19279         the appropriate XplatUI method.
19280
19281 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19282
19283         * Form.cs: Make MdiClient have the focus even if it's
19284         not selectable, since it should receive WM_KEY* and WM_MOUSE 
19285         messages. Fixes #79907.
19286         
19287 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19288
19289         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
19290         queried after the window is created.
19291         
19292         * XplatUIX11.cs: Added SendParentNotify to implement 
19293         WM_PARENTNOTIFY logic. Fixes #79965.
19294         
19295         * Control.cs: Added MakeParam.
19296         
19297 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19298
19299         * MdiClient.cs: Resume Layout before setting window
19300         states (fixes #80201).
19301
19302 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19303
19304         * MenuAPI.cs: Deselect a menu item after performing
19305         the click (fixes #80197).
19306
19307 2006-12-11  Jackson Harper  <jackson@ximian.com>
19308
19309         * TextBoxBase.cs: We need to cap this value, since Maximum -
19310         ViewPortHeight can be less than zero.
19311         - Only do selection with the left mouse button.
19312         * TextBox.cs: Don't tell the world that we have a context menu.
19313         * Control.cs: New method so that we can control whether or not the
19314         context menu is visible outside MWF.
19315
19316 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19317
19318         * ToolBarButton.cs: Fix text positon. 
19319
19320 2006-12-11  Miguel de Icaza  <miguel@novell.com>
19321
19322         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
19323
19324         * Control.cs (DoubleBuffered): Add implementation.
19325
19326         * Application.cs (OpenForms): Add.
19327
19328 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19329
19330         * Form.cs: Use opacity instead of Opactiy to determine if we need
19331         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
19332
19333 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
19334
19335         * Control.cs: Fix NRE if Control.Site was set to null.
19336
19337 2006-12-11  Chris Toshok  <toshok@ximian.com>
19338
19339         * Control.cs: ControlCollection.Remove should return if the arg is
19340         null, and ControlCollection.SetChildIndex should raise a ANE.
19341
19342 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
19343
19344         * Control.cs: Verify value set for Dock property. Code formatting
19345         updates.
19346
19347 2006-12-11  Jackson Harper  <jackson@ximian.com>
19348
19349         * TextControl.cs: Draw the caret and the selection when a flag is
19350         set on the owner.
19351         * TextBoxBase.cs: We want to draw the caret and the selection for
19352         TextBox but not for TextBoxBase.
19353         - If the window is resized and scrolling is no longer needed (the
19354         whole doc is visible) set the scroll position to zero.
19355         - The default SelectWord (the one TextBox uses) should move the
19356         caret to the end of the word.
19357         - SelectAll moves the caret to the end of the selection.
19358         * TextBox.cs: We don't selectall on focus, we just do it when the
19359         control is created.
19360         
19361 2006-12-11  Mike Kestner  <mkestner@novell.com>
19362
19363         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
19364
19365 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19366
19367         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
19368         2.0 support.
19369         * ListViewItem.cs: Add Name 2.0 property.
19370
19371 2006-12-11  Andreia Gaita  <avidigal@novell.com>
19372
19373         * TabControl.cs: Set visibility on selected or default tab 
19374         when tabcontrol handle is created, so that it's contents
19375         actually show up (duh). Fixes #80193
19376         Don't redraw the control if there is no handle created, as
19377         the selected index might be completely invalid. Added some tests
19378         to check for this.
19379
19380 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
19381
19382         * ToolBar.cs: Uses maximun width and height of all buttons as 
19383         button rectangle when ButtonSize specified, it looks strange but
19384         is what happens in Win32. Fixes #80189.
19385
19386 2006-12-11  Jackson Harper  <jackson@ximian.com>
19387
19388         * TextControl.cs: Need to track undo levels ourself, since
19389         compound actions will mess them up.
19390
19391 2006-12-10  Andreia Gaita  <avidigal@novell.com>
19392
19393         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
19394         SelectedIndex value is changed (even if it's not valid).
19395         Reset SelectedIndex to 0 when the handle is created and if
19396         the current index is invalid.
19397         Fixes SelectdeIndex unit tests and #80128
19398
19399 2006-12-08  Chris Toshok  <toshok@ximian.com>
19400
19401         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
19402         calls EndEdit, it needs to be called before we set current_cell to
19403         its new value.  Otherwise, we end up committing the value in the
19404         textbox to the new cell as well.  Fixes bug #80160.
19405
19406 2006-12-08  Chris Toshok  <toshok@ximian.com>
19407
19408         * Form.cs (set_CancelButton): if the button's DialogResult is
19409         None, set it to Cancel.  Fixes bug 80180.
19410
19411 2006-12-08  Jackson Harper  <jackson@ximian.com>
19412
19413         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
19414         to watch ourselves when setting the canvas size and setting the
19415         scrollbar values.
19416
19417 2006-12-08  Chris Toshok  <toshok@ximian.com>
19418
19419         * DataGrid.cs: comment out the two MakeTransparent calls for the
19420         time being so people using trunk (and not 1.2.2) on windows can
19421         actually use the datagrid.  This deals with bug #80151.
19422
19423 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19424
19425         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
19426         Graphics.DrawImage (image, int, int, int, int) overload instead
19427         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
19428         the dpi difference and was blurring images it drew.
19429         [Fixes bug #79960]
19430
19431 2006-12-08  Chris Toshok  <toshok@ximian.com>
19432
19433         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
19434         rowcnt is 0 (such as with an empty datasource), and make sure we
19435         initialize not_usedarea.Y to cells.Y, so we don't draw over the
19436         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
19437
19438 2006-12-08  Chris Toshok  <toshok@ximian.com>
19439
19440         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
19441         grid.
19442
19443 2006-12-08  Chris Toshok  <toshok@ximian.com>
19444
19445         [ Fixes bug #80167 ]
19446         
19447         * ThemeWin32Classic.cs: don't draw the image if the button's flat
19448         style is FlatStyle.System.
19449
19450         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
19451         ButtonBase.flat_style private, and switch uses of it to the public
19452         property.
19453         
19454 2006-12-08  Chris Toshok  <toshok@ximian.com>
19455
19456         [ Fixes bug #80121 ]
19457         
19458         * ThemeWin32Classic.cs: center the caption text in the datagrid
19459         when we draw it.
19460
19461         * DataGrid.cs: lessen the amount we add to the caption height from
19462         6 to 2.  6 was making it huge.
19463
19464 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19465
19466         * UpDownBase: Handle MouseWheel call directly instead of capturing
19467         the inner textbox's OnMouseWheel. Fixes #80166
19468
19469 2006-12-08  Jackson Harper  <jackson@ximian.com>
19470
19471         * TextControl.cs: We need to invalidate the textbox when we empty
19472         it (how had this not been discovered before?)
19473
19474 2006-12-08  Jackson Harper  <jackson@ximian.com>
19475
19476         * TextBoxBase.cs: Reworked the mouse down code so I could get it
19477         to behave like MS, we now ignore the eventargs.Click and just
19478         track state ourself, which we were already doing anyways.
19479         - Constrain the double click handler to the double click size.
19480         
19481 2006-12-08  Chris Toshok  <toshok@ximian.com>
19482
19483         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
19484         direction if that scrollbar isn't shown.  fixes bug #80158.
19485
19486 2006-12-08  Andreia Gaita  <avidigal@novell.com>
19487
19488         * NumericUpDown.cs: Update value on getter. Fixes #79950
19489
19490 2006-12-08  Chris Toshok  <toshok@ximian.com>
19491
19492         * MenuItem.cs: add back in the event cloning code.  I didn't know
19493         how to do it in the face of the EventHandlerList work i'd done
19494         last week.  Fixes bug #80183.
19495
19496 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
19497
19498         * Control.cs: Add an invalidate to the BackgroundImage setter.
19499         [Fixes 80184]
19500
19501 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19502
19503         * ToolStrip*: Add some small properties reported by MoMA, fix event
19504         firing and default properties based off of unit tests, and add some
19505         attributes based off of the class status page.
19506
19507 2006-12-07  Jackson Harper  <jackson@ximian.com>
19508
19509         * TextBoxBase.cs: Take HideSelection into account when determining
19510         whether or not to show the selection.
19511         * RichTextBox.cs: After inserting the RTF into the document move
19512         the cursor to the beginning of the document.
19513
19514 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
19515
19516         * Control.cs: Remove static ArrayList "controls" which maintained
19517         a reference to every control created.
19518         * Application.cs: Create a static FormCollection to maintain a reference
19519         to every form created.  Use it in places that formerly enumerated through
19520         the controls one looking for forms.
19521         * Form.cs: Add and remove self from above FormCollection.
19522
19523 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
19524
19525         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
19526           not libgdk (though it makes me wonder why I didn't have any
19527           problems)
19528
19529 2006-12-07  Chris Toshok  <toshok@ximian.com>
19530
19531         [ you had to know this was coming after that last commit...]
19532         
19533         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
19534         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
19535         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
19536         XCopyArea).
19537
19538 2006-12-07  Chris Toshok  <toshok@ximian.com>
19539
19540         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
19541         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
19542         all the behavior we need for double buffering.
19543
19544         * XplatUIDriver.cs: implement the 3 double buffer methods using a
19545         client side Bitmap, just like the old Control-based double buffer
19546         code did.  The methods are virtual, so each XplatUI driver
19547         subclass can replace the implementation to use a faster, platform
19548         specific approach.
19549
19550         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
19551         double buffer code, and clean things up a bit in the process.
19552
19553 2006-12-06  Chris Toshok  <toshok@ximian.com>
19554
19555         * Control.cs: reindent WndProc.
19556
19557 2006-12-06  Chris Toshok  <toshok@ximian.com>
19558
19559         [ I wanna be like BenM when I grow up ]
19560         
19561         * Hwnd.cs: create a single static Graphics object on the static
19562         Bitmap we create.  use this for our text measurements.
19563
19564         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
19565         This was causing us to allocate a backbuffer for every control,
19566         even when it wasn't flagged as double buffered.  Instead use the
19567         single graphics instance.  This might have implications for
19568         multithreaded applications.  If we run into problems we can switch
19569         to creating 1 Graphics per control, on the static Hwnd bitmap.
19570
19571         this change nets us a 7M savings in private dirty mappings when
19572         running FormsTest.exe.
19573
19574 2006-12-06  Chris Toshok  <toshok@ximian.com>
19575
19576         * ListView.cs: the BackgroundImage override is just to set
19577         attributes.  chain up to base.BackgroundImage.
19578
19579         * RichTextBox.cs: same.
19580
19581         * ToolBar.cs: same, but we need to also redraw the toolbar when it
19582         changes, so instead a handler for BackgroundImageChanged.
19583         
19584         * Control.cs: make background_image private.
19585
19586 2006-12-06  Chris Toshok  <toshok@ximian.com>
19587
19588         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
19589         sure we even need this assignment, but roll with it for now.
19590
19591         * Control.cs: make the cursor field private.
19592
19593 2006-12-06  Chris Toshok  <toshok@ximian.com>
19594
19595         * Form.cs: we don't need to explicitly set ImeMode to
19596         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
19597         behavior in the face of ImeMode.Inherit.
19598
19599         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
19600         change the ctor's assignment to use ImeMode instead of ime_mode.
19601
19602         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
19603         ImeModeInherit.  Only check for the parent's imemode (and return
19604         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
19605         This fixes the button unit test, which sets both ImeMode and
19606         DefaultImeMode to ImeMode.Disable.
19607
19608         also make the ime_mode field private.
19609
19610 2006-12-06  Chris Toshok  <toshok@ximian.com>
19611
19612         * Control.cs: make control_style private.
19613
19614         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
19615         setting the styles to true, then setting them to false instead of
19616         reverting to their previous values.
19617
19618         also, call SetStyle on the scrollbars instead of using
19619         control_style directly.
19620
19621 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
19622
19623         * FormCollection.cs: Implement. [2.0]
19624
19625 2006-12-06  Chris Toshok  <toshok@ximian.com>
19626
19627         * Control.cs: make tab_stop private.
19628
19629         * Label.cs: set TabStop, not tab_stop.  reformat some event
19630         add/remove methods to make them more compact.
19631
19632 2006-12-06  Chris Toshok  <toshok@ximian.com>
19633
19634         * RadioButton.cs: fix TabStop handling.
19635
19636 2006-12-06  Chris Toshok  <toshok@ximian.com>
19637
19638         * TextBox.cs: remove the explicit assignments to has_focus.
19639         Control does that.
19640
19641         * ButtonBase.cs: remove the assignment to has_focus.  Control will
19642         manage that.
19643         
19644 2006-12-06  Chris Toshok  <toshok@ximian.com>
19645
19646         * ButtonBase.cs: remove all uses of is_enabled from this code.
19647         it's always true when any of the code containing the checks is
19648         executed.
19649
19650 2006-12-06  Chris Toshok  <toshok@ximian.com>
19651
19652         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
19653         with different semantics (some are present in both 1.1 and 2.0
19654         profiles) so that we match MS's behavior in our unit tests.
19655
19656 2006-12-06  Jackson Harper  <jackson@ximian.com>
19657
19658         * TextControl.cs: Make this operation undoable.
19659         * TextBoxBase.cs: Factor the border width into the preferred
19660         height.
19661         - implement Modified as per the spec.
19662
19663 2006-12-06  Chris Toshok  <toshok@ximian.com>
19664
19665         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
19666
19667 2006-12-06  Chris Toshok  <toshok@ximian.com>
19668
19669         * Control.cs: make right_to_left and context_menu fields private.
19670
19671 2006-12-06  Chris Toshok  <toshok@ximian.com>
19672
19673         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
19674         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
19675         Control.child_controls private.  switch all uses over to
19676         Control.Controls.
19677
19678 2006-12-06  Chris Toshok  <toshok@ximian.com>
19679
19680         * System.Windows.Forms/GroupBox.cs,
19681         System.Windows.Forms/AccessibleObject.cs,
19682         System.Windows.Forms/ErrorProvider.cs,
19683         System.Windows.Forms/Control.cs,
19684         System.Windows.Forms/UpDownBase.cs,
19685         System.Windows.Forms/ScrollBar.cs,
19686         System.Windows.Forms/DateTimePicker.cs,
19687         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
19688         System.Windows.Forms/ToolTip.cs,
19689         System.Windows.Forms/RadioButton.cs,
19690         System.Windows.Forms/LinkLabel.cs,
19691         System.Windows.Forms/Splitter.cs,
19692         System.Windows.Forms/TextBoxBase.cs,
19693         System.Windows.Forms/ToolStripTextBox.cs,
19694         System.Windows.Forms/ContainerControl.cs,
19695         System.Windows.Forms/ThemeWin32Classic.cs,
19696         System.Windows.Forms/SizeGrip.cs,
19697         System.Windows.Forms/ToolStripDropDown.cs,
19698         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
19699         private.  switch all uses over to Control.Parent.
19700
19701 2006-12-06  Chris Toshok  <toshok@ximian.com>
19702
19703         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
19704         Control does this before calling emitting these events.
19705
19706         * TabControl.cs: same.
19707
19708         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
19709         Control.client_rect.
19710
19711         * ButtonBase.cs: use the ClientSize property instead of the
19712         client_size field.
19713
19714         * ScrollableControl.cs: same.
19715
19716         * Control.cs: another pass at making properties private.  also,
19717         move the initialization of tab_stop to the ctor.
19718
19719 2006-12-05  Andreia Gaita <avidigal@novell.com>
19720
19721         * TabControl.cs: Let the selected index be set freely if the 
19722         control handle is not yet created.
19723
19724 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19725
19726         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
19727         internal until I can rewrite DefaultLayout.
19728         * ToolStrip.cs: Fix build error and some general cleaning.
19729         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
19730         Fix build errors caused by making some of Control's fields private.
19731
19732 2006-12-05  Jackson Harper  <jackson@ximian.com>
19733
19734         * TextControl.cs: Redo Insert a little so that it use IndexOf
19735         instead of Split, this prevents it from messing up on things like
19736         \n\n\n. Also more effecient since the split array doesn't need to
19737         be created.
19738         * TextBoxBase.cs: AppendText doesnt handle multiline and non
19739         multiline text differently, this is the first of many fixes that
19740         will make multiline/non-multiline the same thing as far as the
19741         TextBoxBase is concerned.
19742         - Don't split the text and insert lines, this can lose some line
19743         endings (like is the last line a soft or hard break). Instead use
19744         the new Insert.
19745         - Fix an off by one when combining all the lines in the Text
19746         getter.
19747         - Remove separate multiline handling from the Text getter/setter.
19748
19749 2006-12-05  Chris Toshok  <toshok@ximian.com>
19750
19751         * ButtonBase.cs: a few changes:
19752
19753         - don't reinitialize internal Control fields in the ctor when they
19754         have the same values as Control sets them.
19755
19756         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
19757         this before calling those methods.
19758
19759         - we don't need to call Refresh for anything.  use Invalidate
19760         instead.
19761
19762         - OnEnabledChanged doesn't need to redraw at all - Control.cs
19763         calls Refresh in its OnEnabledChanged.
19764         
19765         - several of the events we were registered for in the ctor to
19766         redraw ourselves already include calls to Invalidate in the
19767         property setters that raise the events.  remove the extra
19768         invalidation.
19769
19770         - reformat a switch statement that was 83274658 columns wide.
19771         
19772 2006-12-05  Mike Kestner  <mkestner@novell.com>
19773
19774         * ComboBox.cs: fix a unit test regression from a TextBox
19775         SelectionLength return of -1 when there's no selection.  
19776
19777 2006-12-05  Chris Toshok  <toshok@ximian.com>
19778
19779         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
19780         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
19781         cleaning up some of the internal Control fields being used by
19782         subclasses.
19783
19784 2006-12-05  Mike Kestner  <mkestner@novell.com>
19785
19786         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
19787         listbox after AddImplicit calls since it defaults to hidden. Add a 
19788         hack to preserve requested heights across DropDownStyle changes.
19789
19790 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
19791
19792         * PropertyGrid.cs: Hide FindFirstItem method from public API.
19793
19794 2006-12-05  Chris Toshok  <toshok@ximian.com>
19795
19796         * DataGridView.cs: fix compiler warnings.
19797
19798         * PrintControllerWithStatusDialog.cs: same.
19799
19800         * ToolBar.cs: same.
19801
19802         * FolderBrowserDialog.cs: same.
19803
19804         * Splitter.cs: same.
19805
19806         * DataGridViewComboBoxCell.cs: same.
19807
19808         * XplatUIWin32.cs: same.
19809
19810         * PictureBox.cs: same.
19811
19812         * Win32DnD.cs: same.
19813
19814         * PageSetupDialog.cs: same.
19815
19816         * FileDialog.cs: same.
19817
19818         * PrintDialog.cs: same.
19819
19820         * DataGridTextBoxColumn.cs: same.
19821
19822         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
19823
19824 2006-12-05  Chris Toshok  <toshok@ximian.com>
19825
19826         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
19827         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
19828         System.ComponentModel.EventHandlerList work.
19829
19830 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
19831
19832         * DrawTreeNodeEventArgs.cs: Added.
19833
19834 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19835         
19836         * InternalWindowManager.cs: Remove an unused field.
19837         
19838 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19839
19840         * InternalWindowManager.cs:
19841         - Save the point where the title bar is clicked.
19842         
19843         * MdiWindowManager.cs:
19844         - Only allow moving of the window as long as the 
19845         clicked point on the title bar does not get out of
19846         MdiClient's rectangle. Fixes #79982.
19847         
19848         * MdiClient.cs:
19849         - Added Horizontal/VerticalScrollbarVisible.
19850         - Simplified the scrollbar sizing algorithm.
19851         - Cache the difference in scrolled value in
19852         H/VBarValueChanged and move the calculation out
19853         of the for loop.
19854
19855 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
19856
19857         * Control.cs: Make the Console.WriteLine in WndProc 
19858         write more info.
19859
19860 2006-12-05  Chris Toshok  <toshok@ximian.com>
19861
19862         * ToolStripManager.cs, ToolStripButton.cs,
19863         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
19864         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
19865         ToolStripSplitButton.cs, ToolStripSeparator.cs,
19866         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
19867         ToolStripProgressBar.cs, ToolStripContainer.cs,
19868         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
19869         to using System.ComponentModel.EventHandlerList.
19870
19871 2006-12-04  Chris Toshok  <toshok@ximian.com>
19872
19873         * LinkLabel.cs: fix up compiler warnings.
19874
19875         * TableLayoutSettings.cs: same.
19876
19877         * TreeView.cs: same.
19878
19879         * ToolBar.cs: same.
19880
19881         * TabControl.cs: same.
19882
19883         * RichTextBox.cs: same.
19884
19885         * ListViewItem.cs: same.
19886
19887         * PropertyGrid.cs: same.
19888
19889         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
19890
19891         * ToolTip.cs same.
19892
19893         * TextRenderer.cs: fix up compiler warnings.
19894
19895         * Label.cs: same.
19896
19897         * Form.cs: corcompare fixes.
19898
19899         * PictureBox.cs: fix up compiler warnings.
19900
19901         * ImageListStreamer.cs: same.
19902
19903         * TrackBar.cs: corcompare fix.
19904
19905         * Control.cs: fix up compiler warnings.
19906
19907         * SplitterPanel.cs: same.
19908
19909         * NumericTextBox.cs: same.
19910
19911         * ImageList.cs: same.
19912
19913         * StatusStrip.cs: same.
19914
19915         * ProgressBar.cs: corcompare fix.
19916
19917         * ToolStripButton.cs: fix up compiler warnings.
19918
19919         * ToolStripStatusLabel.cs: same.
19920
19921         * ToolStripSplitButton.cs: same.
19922
19923         * ToolStripSeparator.cs: same.
19924
19925         * ToolStripProgressBar.cs: same.
19926
19927         * ToolStripDropDownMenu.cs: same
19928
19929         * ToolStripDropDown.cs: same.
19930
19931         * ToolStripDropDownButton.cs: same.
19932
19933         * ToolStrip.cs: same.
19934
19935         * ToolStripControlHost.cs: same.
19936
19937         * ToolStripContentPanel.cs: same.
19938
19939         * ToolStripDropDown.cs: same.
19940
19941         * ToolStripContainer.cs: same.
19942
19943         * ToolStripPanel.cs: same, and add "new" where we need it to work
19944         with the new ArrangedElementCollection.
19945
19946         * ToolStripItemCollection.cs: add "new" where we need it to work
19947         with the new ArrangedElementCollection.
19948
19949 2006-12-04  Andreia Gaita <avidigal@novell.com>
19950
19951         * TabControl.cs: Fix default tab selection to after TabControl
19952         gets focus and not before. Fixes #80128
19953
19954 2006-12-04  Chris Toshok  <toshok@ximian.com>
19955
19956         * DataGridTableStyle.cs: remove the gross calling of
19957         datagrid.Refresh from here.  It's a broken idea and it doesn't
19958         work anyway.
19959
19960         * DataGrid.cs: instead, just register/unregister from the
19961         DataGridTableStyle events in CurrentTableStyle.  we play it
19962         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
19963         even though some would most likely not require it.  Fixes bug
19964         #80115 (and one portion of #80117 as a side effect).
19965
19966 2006-12-04  Chris Toshok  <toshok@ximian.com>
19967
19968         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
19969         so the textbox (if any) goes away.  Fixes bug #80117.
19970
19971 2006-12-04  Chris Toshok  <toshok@ximian.com>
19972
19973         * DataGridColumnStyle.cs: set the column's readonly property
19974         initially based on the property descriptor's IsReadOnly.  Fixes
19975         bug #80044.
19976
19977 2006-12-04  Chris Toshok  <toshok@ximian.com>
19978
19979         * ComboBox.cs: wrap the dropdown style changing work in
19980         SuspendLayout/ResumeLayout.  Fixes bug #79968.
19981
19982 2006-12-04  Jackson Harper  <jackson@ximian.com>
19983
19984         * TextBoxBase.cs: Fix off by one, since these are one-based.
19985         * TextBox.cs: Select all the text when we get focus.  The TextBox
19986         does this but the RTB does not.
19987
19988 2006-12-04  Chris Toshok  <toshok@ximian.com>
19989
19990         * DataGridTextBoxColumn.cs: remove some spew.
19991
19992         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
19993         but some part of me is saying "it shouldn't be here.."  At any
19994         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
19995         setting the value.
19996
19997 2006-12-04  Chris Toshok  <toshok@ximian.com>
19998
19999         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
20000         to reassign the propertydescriptor.
20001
20002 2006-12-04  Jackson Harper  <jackson@ximian.com>
20003
20004         * TextBoxBase.cs:
20005         * TextControl.cs: Remove some unused variables.  Maybe this will
20006         patch things up between mike and I.
20007         - don't split lines less then one char wide, if the viewport is
20008         that small text won't be visible anyways.
20009         
20010 2006-12-04  Jackson Harper  <jackson@ximian.com>
20011
20012         * TextBoxBase.cs: Default selection length is -1, need to do some
20013         more testing on windows to see when this is used for the property.
20014         - Redid the Lines [] property to that we properly remove soft line
20015         breaks
20016         - added support for preserving carriage returns
20017         -  CanUndo is not a variable like 'is undo enabled' it just returns
20018         true if there is undo operations available.
20019         - AppendText doesn't need to grab the last tag itself anymore,
20020         this happens automatically when we move the cursor.
20021         * TextControl.cs: Add CompoundActions to the undo class. This
20022         allows combining the other operations into one big option.  ie a
20023         paste will combine { delete old, insert new, move cursor }
20024         - Add InsertString undo operation
20025         - New method for deleting multiline text
20026         - Add carriage returns to lines. So we can preserve carriage
20027         returns when text is 'roundtripped'
20028
20029 2006-12-04  Chris Toshok  <toshok@ximian.com>
20030
20031         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
20032         minimum 0.  Fixes the scrollbar exception in bug #80136.
20033
20034 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20035
20036         * MdiClient.cs: 
20037         * MdiWindowManager: Removed unused fields and methods.
20038         
20039 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20040         
20041         * StatusBar.cs: Update all panels when a AutoSize=Contents
20042         panel needs updating.
20043         
20044         * StatusBarPanel.cs: Remove twidth and only use initialize.
20045         Fixes #80031.
20046                 
20047 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20048
20049         * Form.cs: When a form's MdiParent is set add it directly
20050         on top of the z-order in stead of relying on MdiClient's
20051         ActivateChild to do it. Fixes #80135.
20052         
20053         * MdiClient.cs: 
20054         - Remove original_order, mdi_child_list is already doing
20055         the same thing.
20056         - Create mdi_child_list on construction in
20057         stead of first use (avoids a few null checks).
20058
20059         * MenuItem.cs: Use an already existing list of mdi children
20060         to get the correct order of children and remove the other
20061         redundant list.
20062
20063 2006-12-04  Chris Toshok  <toshok@ximian.com>
20064
20065         * PropertyGridView.cs: cached_splitter_location is only used in
20066         !DOUBLEBUFFER code.
20067
20068         * PropertyGrid.cs: implement the ComComponentNameChanged event
20069         using Events, hoping that would fix the warning.  Looks like a
20070         compiler bug instead (#80144).
20071
20072         * PropertyManager.cs: remove unused method.
20073
20074 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
20075
20076         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
20077         include parentesis to fix expression evaluation. Fixes #79634.
20078
20079 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
20080         
20081         * MenuAPI.cs:
20082         - Changes to fix behavior in Menu control, some reported in #80097
20083         and other detected during behavior refactory like a select event
20084         problems.
20085         - Remove unneded "if's" conditions.
20086         - Created an internal to flag when popup is active in control, we need 
20087         it because in .NET you can have menu active but without popup active
20088         when you active menu using popup without visible items.
20089         - Mimic win32 behavior for Select and Popup events.  
20090         - Dont open popup menu when you dont have visible subitems.
20091         - Do nothing when click on disabled menu item.
20092         - Some small changes to follow the coding style guidelines.
20093         - Unselect menu only when another control gives focus. Fixes #80097.
20094         - Remove unused code.
20095         
20096         * MenuItem.cs: internal VisibleItems method to check if menu
20097         theres visible subitems, it will be usefull to fix some 
20098         behavior in Menu control.
20099         
20100 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20101         
20102         * Timer.cs: Tag property for 2.0 profile.
20103         
20104 2006-12-01  Chris Toshok  <toshok@ximian.com>
20105
20106         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
20107         
20108         * Win32DnD.cs: comment out some unused fields.
20109
20110         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
20111         some unused properties/methods.
20112
20113         * XplatUIX11.cs: fix MousePosition so we override the base class's
20114         property instead of conflicting with it.
20115
20116         * PictureBox.cs: comment out some unused fields
20117
20118         * OSXStructs.cs: make some struct fields public.
20119
20120         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
20121         MousePosition so we override the base class's property instead of
20122         conflicting with it.
20123
20124         * X11Dnd.cs: comment out some unused fields
20125
20126         * X11DesktopColors.cs: fix some struct field visibility to quiet
20127         the compiler.
20128
20129         * X11Dnd.cs: remove some debug code.
20130
20131         * ThemeClearlooks.cs: comment out unused field.
20132
20133         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
20134
20135         * ThemeGtk.cs: comment out some unused pinvokes.
20136
20137         * Timer.cs: remove some unused fields.
20138
20139         * ThemeClearlooks.cs: comment out unused field.
20140
20141         * UpDownBase.cs: comment out unused field.
20142
20143         * DataObject.cs: comment out unused field.
20144
20145         * DataGridBoolColumn.cs: reomve unused field.
20146
20147         * DataGrid.cs: remove unused field.
20148
20149         * Cursor.cs: remove old ToBitmap code.
20150
20151         * ControlPaint.cs: remove unused method.
20152
20153         * ScrollBar.cs: remove unused fields.
20154
20155         * ComboBox.cs: remove unused field, and chain up to
20156         AccessibleObject ctor.
20157
20158         * ListBox.cs: remove unused field.
20159
20160         * ButtonBase.cs: wrap a couple fields in NET_2_0.
20161
20162         * GridEntry.cs: remove unused fields.
20163
20164         * Binding.cs: remove unused fields.
20165
20166         * AxHost.cs: remove unused method.
20167
20168         * ContainerControl.cs: remove unused field.
20169
20170         * ScrollableControl.cs: remove unused fields.
20171
20172 2006-12-01  Chris Toshok  <toshok@ximian.com>
20173
20174         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
20175         the Where/WhereString stuff.  it's easy enough to CWL
20176         Environment.StackTrace.
20177
20178         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
20179         unused private fields.
20180
20181 2006-12-01  Jackson Harper  <jackson@ximian.com>
20182
20183         * TextControl.cs: Do not update the view while inserting multiline
20184         text. If we update the view we might wrap lines, before entering
20185         the new lines, which causes the new line insertion calculations to
20186         be totally fubared.
20187         - Remove an old TODO
20188         - Make debug output a little nicer
20189         
20190 2006-12-01  Chris Toshok  <toshok@ximian.com>
20191
20192         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
20193
20194 2006-12-01  Chris Toshok  <toshok@ximian.com>
20195
20196         [ fix the majority of the CS0108 warnings we've been suppressing ]
20197         
20198         * TreeView.cs: mark BackgroundImageChanged as 'new'.
20199
20200         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
20201         to "LayoutToolBar" to quiet mcs.
20202         
20203         * TabControl.cs: mark our ControlCollection class as 'new'.
20204
20205         * TextBoxBase.cs: mark some events as 'new'.
20206
20207         * Splitter.cs: TabStop is 'new'.
20208
20209         * ControlBindingsCollection.cs: mark a few methods as new since
20210         they change the visibility from protected to public.
20211
20212         * RadioButton.cs: DoubleClick -> base class, and remove unused
20213         HaveDoubleClick.
20214
20215         * MonthCalendar.cs: ImeMode property -> base class, and mark many
20216         events as new.
20217
20218         * NumericUpDown.cs: TextChanged -> base class.
20219
20220         * CheckedListBox.cs: mark our ObjectCollection class as new to
20221         quiet mcs.
20222
20223         * FolderBrowserDialog.cs: make HelpRequest event new and have it
20224         muck with the base class.
20225
20226         * StatusBar.cs: fix some mcs warnings about Update being the same
20227         name as a base class method.
20228
20229         * RichTextBox.cs: mark some events as new, and make them do things
20230         to the base class impl.
20231
20232         * UserControl.cs: mark TextChanged as new, and have it manipulate
20233         base.TextChanged.
20234
20235         * UpDownBase.cs: mark some things new.
20236
20237         * CheckBox.cs: mark DoubleClick "new", and add some text about
20238         what we need to look at.
20239
20240         * Panel.cs: make the events "new", and manipulate the base
20241         version.  these are just here for attributes.
20242
20243         * AccessibleObject.cs: make owner private.
20244
20245         * Control.cs: deal with AccessibleObject.owner being private.
20246         cache our own copy if we need it.
20247
20248         * Button.cs: add "new" to the DoubleClickEvent.
20249
20250         * ListBox.cs: no need to track our own has_focus here.  let
20251         Control.has_focus do it for us.  Also some other work to clear up
20252         warnings about not overriding base class methods of the same name.
20253         
20254         * ComboBox.cs: clear up some warnings about not override base
20255         class methods of the same name.
20256
20257 2006-12-01  Chris Toshok  <toshok@ximian.com>
20258
20259         * Form.cs: flag a few things as "new" to quiet some of the mcs
20260         warnings.
20261
20262         * AxHost.cs: same.
20263
20264         * PrintPreviewDialog.cs: same.
20265
20266         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
20267         now DGV isn't so horrible on the class status page.  also, move
20268         all events to using System.ComponentModel.EventHandlerList.  my
20269         wrists hurt.
20270
20271 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20272
20273         * MdiWindowManager.cs:
20274         - Set form to active mdi child if shown,
20275         and update the active mdi child to the next 
20276         remaining child in the z-order if the form is hidden.
20277
20278         * Form.cs: 
20279         - Track if the form has been visible and if its 
20280         visibility is beeing changed, so that the MdiClient
20281         can properly decide the ActiveMdiChild. The MdiClient 
20282         cannot track this since the form can change visibility 
20283         before MdiClient is created.
20284
20285         * MdiClient.cs:
20286         - Don't activate anything of the parent form is changing
20287         its visibility.
20288         - Rework ActiveMdiChild to only return visible mdi 
20289         children and take into account several other corner 
20290         cases.
20291
20292 2006-12-01  Chris Toshok  <toshok@ximian.com>
20293
20294         * IBindableComponent.cs: new 2.0 interface.
20295
20296 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
20297
20298         * DataGrid.cs: Font for caption area is bold by default.
20299
20300 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
20301
20302         * Menu.cs: Tag property for 2.0.
20303         
20304 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
20305
20306         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
20307         
20308 2006-12-01  Chris Toshok  <toshok@ximian.com>
20309
20310         * TreeView.cs: doh, the Begin* events should be
20311         TreeViewCancelEventHandler.
20312
20313 2006-12-01  Chris Toshok  <toshok@ximian.com>
20314
20315         * Form.cs: Form.ControlCollection already stores off the
20316         form_owner field.  don't access the base class's internal "owner"
20317         field.
20318
20319         * Control.cs: make all the fields in Control.ControlCollection
20320         private.  there's no need for any internal fields here.
20321
20322 2006-12-01  Chris Toshok  <toshok@ximian.com>
20323
20324         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
20325         OnHandleCreated.  Fixes bug #80109.
20326
20327 2006-12-01  Chris Toshok  <toshok@ximian.com>
20328
20329         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
20330         SplitContainer.cs, Control.cs, StatusStrip.cs,
20331         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
20332         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
20333         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
20334         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
20335         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
20336         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
20337         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
20338         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
20339         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
20340         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
20341
20342         do most of the work to convert our code over to use
20343         System.ComponentModel.Component.Events for
20344         adding/removing/dispatching events.
20345
20346
20347 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20348
20349         * DataGridView.cs: Fix an ArgumentNullException reported 
20350         twice today in IRC.
20351
20352 2006-11-30  Mike Kestner  <mkestner@novell.com>
20353
20354         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
20355         grabbed listbox.  Fixes #80036 and #80101.
20356
20357 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20358
20359         * Message.cs: Changed ToString() to match MS.
20360         
20361 2006-11-30  Jackson Harper  <jackson@ximian.com>
20362
20363         * TextBoxBase.cs: You can still change the selected text on a read
20364         only textbox.
20365         * TextControl.cs: Lower magic number for wrap calculations. This
20366         lets text get closer to the right (far) edge.
20367
20368 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
20369
20370         * Control.cs: Tweak 2.0 layout properties.
20371         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
20372         * TextRenderer.cs: Add a new overload.
20373         * ToolStrip*: Huge amount of changes and new features.
20374
20375 2006-11-30  Mike Kestner  <mkestner@novell.com>
20376
20377         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
20378         scroll range correct.  Fixes #79994.
20379
20380 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
20381
20382         * MdiWindowManager.cs: Update main form's text when
20383         a form is closed. (fixes #80038)
20384         
20385 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
20386
20387         * ToolBar.cs:
20388         - Fix an regression in ButtonSize.
20389         - Get ImeMode default value change to "Disable".
20390         - Get ShowTooltips default value change to true, default value is 
20391         "false" but after make a test in .NET we get "true" result as default.
20392         
20393 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
20394
20395         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
20396
20397 2006-11-29  Chris Toshok  <toshok@ximian.com>
20398
20399         * XplatUIWin32.cs (GetWindowTransparency): check return value of
20400         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
20401         SetWindowTransparency hasn't been called.
20402
20403 2006-11-29  Chris Toshok  <toshok@ximian.com>
20404
20405         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
20406         if it's supported.
20407         (set_AllowTransparency): reorder things a little so that the
20408         WS_EX_LAYERED style is removed properly.
20409
20410 2006-11-29  Chris Toshok  <toshok@ximian.com>
20411
20412         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
20413         
20414         * Form.cs: only call the XplatUI transparency method (get/set) if
20415         SupportsTransparency says it's supported. Otherwise fallback to
20416         doing nothing (in the set case) or returning the instance field we
20417         cache (in the get case).
20418
20419         * XplatUIStructs.cs: add TransparencySupport flag enum.
20420         
20421         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
20422         change to SupportsTransparency.
20423
20424         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
20425         TransparencySupport.None from SupportsTransparency.
20426
20427         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
20428         TransparencySupport.Set from SupportsTransparency.
20429
20430         * XplatUIWin32.cs: implement GetWindowTransparency calling
20431         GetLayeredWindowAttributes, and implement SupportsTransparency by
20432         checking whether or not both
20433         GetWindowTransparency/SetWindowTransparency are available
20434         entrypoints.  We need to do this since SetWindowTransparency is
20435         available as of win2k, but GetWindowTransparency requires winxp.
20436         yay win32 api.
20437
20438         * XplatUI.cs: Add GetWindowTransparency, and change
20439         SupportsTransparency to allow for either/both Get/Set.
20440
20441 2006-11-29  Chris Toshok  <toshok@ximian.com>
20442
20443         * DataGrid.cs: keep from going into an infinite loop redrawing a
20444         datagrid that has no datasource.  Fixes bug #80033.
20445
20446 2006-11-29  Chris Toshok  <toshok@ximian.com>
20447
20448         * MenuItem.cs: fix the NRE when we assign text (and therefore call
20449         Invalidate) before the mainmenu has been assigned to a control.
20450
20451 2006-11-29  Chris Toshok  <toshok@ximian.com>
20452
20453         * DataGrid.cs: detect when we should be double the double click
20454         row/column autosize stuff, although that codepath has yet to be
20455         written.  part of the work for bug #79891.
20456
20457 2006-11-29  Chris Toshok  <toshok@ximian.com>
20458
20459         * Binding.cs (SetControl): fix unit test.
20460
20461 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20462
20463         * PageSetupDialog.cs: Validate the margins and set them in
20464         PageSettings. 
20465         * NumericTextBox.cs: New class to mimic the behavior of the
20466         textboxes used in the printing dialogs.
20467
20468 2006-11-29  Andreia Gaita  <avidigal@novell.com>
20469         
20470         * Form.cs: Revert previous change (remove call UpdateBounds
20471         from form constructor), because it messes with the handle creation
20472         order, and that one needs lots and lots of love.
20473         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
20474         for valid printer and throw InvalidPrinterException if document
20475         is set but printer not valid), adding a MonoTODO. Once 
20476         handle creation is done properly, we can put this back in.
20477
20478 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20479
20480         * MenuItem.cs: Create a invalidate method for menu item, to be
20481         calling from set text, it make text changes to imadiate update
20482         on screen. Fixes #80013. 
20483         
20484 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20485
20486         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
20487         fixes bug #80070 and some other problem on toolbar buttons
20488         layout.
20489
20490 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
20491
20492         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
20493         with dotted brush.      Fixes #79564
20494         
20495 2006-11-28  Andreia Gaita  <avidigal@novell.com>
20496
20497         * Form.cs: Removed call to UpdateBounds on Form
20498         constructor, it was causing a call to CreateHandle
20499         before it was supposed to.
20500         * PrintControllerWithStatusDialog: Applied patch
20501         by Chris Toshok to hide controller when there are
20502         no printers available.
20503         PrintDialog.cs: initialize printer settings to 
20504         null - correct DefaultValues test #5
20505         * PrintPreviewControl.cs: Move PrintController
20506         initialization to GeneratePreview
20507         * PrintPreviewDialog.cs: 
20508         - Remove Preview generation     from Document_set(). It is 
20509         called on OnPaint
20510         - Throw InvalidPrinterException on CreateHandle if
20511         a Document is set but there are no printers or 
20512         printer is not valid.
20513         * ThemeWin32Classic: don't paint PrintPreviewControl
20514         if there is nothing to paint    
20515
20516 2006-11-28  Miguel de Icaza  <miguel@novell.com>
20517
20518         * Form.cs: Add another popular method.
20519
20520         * TabPage.cs: ditto.
20521
20522 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20523
20524         * MenuItem.cs: Fixed a warning.
20525         * InternalWindowManager: Fixed a warning.
20526
20527 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20528
20529         * MenuItem.cs:
20530         - When cloning a menu also clone MdiList and clone the 
20531           window menu items properly (as the forms and menuitems
20532           are kept in an internal hashtable, these need updating 
20533           as well)
20534         - Rewrote the window menu code, menu items are added in the
20535           order the forms were added to their parent, and they are
20536           updated every time the window menu is shown (before the
20537           list was only generated once, in the current order of the
20538           forms, and would never be updated). A checkmark is shown
20539           next to the item corresponding to the active mdi child.
20540
20541 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20542
20543         * XplatUIStructs.cs: 
20544         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
20545         
20546         * XplatUIWin32.cs: 
20547         - Added TME_NONCLIENT to TMEFlags.
20548         - Handles WM_NCMOUSEMOVE in GetMessage to 
20549           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
20550
20551         * MdiWindowManager:
20552         - Now merges mdi child menu to parent menu when maximized.
20553         - Recalculate NC areas of both mdi child and mdi parent. 
20554           Fixes #79757 (4).
20555           on window state and size changes.Fixes #79844 (3).
20556         - Handle WM_NCCALCSIZE to properly calculate borders.
20557
20558         * Form.cs:
20559         - Add/remove to the mdi containers list of mdi children 
20560           in the order they are added.
20561         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
20562           to the maximized mdi child.
20563         
20564         * InternalWindowManager.cs:
20565         - Only execute a click on the control buttons on the mouse up,
20566           not on the mouse down. Show the state of the button 
20567           (was only showing Normal state, never Pressed state). The
20568           pressed button now follows the mouse (if you click the Close 
20569           button and move the mouse over the Maximize button, the 
20570           Maximize button will be shown as pressed). Since Win32 does
20571           not generate WM_NCLBUTTONUP if you release the button outside
20572           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
20573           it as a mouse up.
20574         
20575         * ThemeWin32Classic.cs:
20576         - Draw a missing border around mdi child forms. Fixes #79844 (2).
20577
20578         * MdiClient.cs:
20579         - Added a list of forms which contains the order the forms are
20580           added to the mdi parent.
20581         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
20582         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
20583         - If the active form changes set the scrollbars to the top
20584           of the Z order, otherwise the form could hide them.
20585         - Scrollbars are now sized according to ClientSize, not 
20586           to Size, and they take into account the other scrollbar
20587           to determine maximum.
20588         
20589 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
20590         
20591         * XplatUI.cs:
20592         * XplatUIDriver.cs:
20593         * XplatUIX11.cs:
20594         * XplatUIWin32.cs:
20595         * XplatUIOSX.cs:
20596         - Added RequestAdditionalWM_NCMessages for windows to 
20597           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
20598           Currently only implemented in XplatUIWin32.
20599
20600 2006-11-27  Chris Toshok  <toshok@ximian.com>
20601
20602         * Hwnd.cs: only add the hwnd to the windows hash in
20603         set_WholeWindow and set_ClientWindow if whole_window/client_window
20604         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
20605
20606 2006-11-27  Mike Kestner  <mkestner@novell.com>
20607
20608         * ComboBox.cs: remove redundant OnDropDown call.  It is called
20609         from the ComboListBox.ShowWindow code. Fixes #79969.
20610
20611 2006-11-27  Chris Toshok  <toshok@ximian.com>
20612
20613         * Hwnd.cs: remove the setters for ExposePending and
20614         NCExposePending - noone uses them.
20615
20616 2006-11-27  Jackson Harper  <jackson@ximian.com>
20617
20618         * TextControl.cs: new param for ReplaceSelection which determines
20619         whether we select the new selection, or set the cursor to the end
20620         of the new selection.
20621         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
20622         pasting, select the new text.
20623         * RichTextBox.cs: Use new param for ReplaceSelection.
20624
20625 2006-11-27  Jackson Harper  <jackson@ximian.com>
20626
20627         * TextBoxBase.cs: Set the selection to the caret after the caret
20628         is moved, otherwise they get out of sync.
20629
20630 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20631
20632         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
20633         it fixes #80015
20634
20635 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
20636
20637         * ThemeWin32Classic.cs: 
20638         - Fix toolbar drop down arrow position.
20639         - Fix drop down appearance when ToolBar.Appearance is normal,
20640         it fixes #80018.
20641         
20642 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
20643
20644         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
20645         * Control.cs: Same.
20646         * UpDownBase.cs: Same.
20647         * ButtonBase.cs: Same.
20648         * ScrollBar.cs: Same.
20649         * TrackBar.cs: Same.
20650         * PictureBox.cs: Same.
20651         * UserControl.cs: Same.
20652         * Label.cs: Same.
20653         * ListControl.cs: Same.
20654         * TextBoxBase.cs: Same.
20655         * ListView.cs: Same.
20656         * RichTextBox.cs: Same.
20657         * TreeView.cs: Same.
20658
20659 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
20660
20661         * PrintDialog.cs:
20662         - Text label for where 
20663         - Text label comment was not shown
20664
20665 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
20666
20667         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
20668
20669 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20670
20671         * InternalWindowManager.cs: 
20672         - Handle WM_PARENTNOTIFY to activate the form
20673         if any child control is clicked.
20674         - The form is only sizable if not minimized.
20675
20676         * MdiWindowManager.cs:
20677         - Save the IconicBounds if the form is moved.
20678         - Rework SetWindowState, now the window bounds 
20679         are stored only if the old window state is Normal.
20680         
20681         * MdiClient.cs:
20682         - In SetWindowStates store the old window state if 
20683         the window is maximized and restore window state if
20684         the window looses focus.
20685         - Don't handle any scrollbar value changes if 
20686         initializing the scroll bars. Fixes #79771.
20687         - Reworked ArrangeIconicWindows. Current algorithm
20688         tests bounds agains all other minimized windows, if
20689         any intersections create new bounds (going left to 
20690         right, bottom to top) and then test again. When 
20691         successful the bounds are saved and never computed
20692         again. Fixes #79774.
20693
20694 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20695
20696         * InternalWindowManager.cs: Added HandleTitleBarUp.
20697
20698 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20699
20700         * NumericUpDown.cs: In .NET 1.1, user entered text is still
20701         hexadecimal in ParseUserEdit.
20702
20703         
20704 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
20705
20706         * MdiWindowManager.cs: 
20707         - Handle a click on the form's icon to show the 
20708         system menu (when maximized). Fixes #79775.
20709         - Change the existing click handler for the form's
20710         icon when not maximized to show on MouseUp.
20711         Fixes #79776.
20712
20713         * Form.cs: In OnResize only layout the mdi child's
20714         parent if it actually has a parent. Might not if
20715         the window is closing.
20716
20717
20718 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20719
20720         * MdiClient.cs: Ignore active MDI client for text of parent, if
20721         child has no text set.
20722
20723 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
20724
20725         * ToolBar.cs: Fixed ToString to match MS.
20726
20727 2006-11-22  Andreia Gaita  <avidigal@novell.com>
20728
20729         * NumericUpDown: 
20730         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
20731         update inner values on set. Fixes #79966.
20732         - Override OnLostFocus to update value on NET 2. Fixes #79950.
20733         - Fix hexadecimal parsing.
20734         
20735         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
20736         parent. Fixes #79957
20737
20738 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20739
20740         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
20741         the actual size has to be queried, since if height /
20742         width is negative Win32 changes it to 0. 
20743         Fixes #79999 on Windows.
20744         
20745         * XplatUIX11.cs: Set height / width to 0 if negative
20746         in SetWindowPos. Fixes #79999 on Linux.
20747         
20748 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20749
20750         * ThemeWin32Classic.cs: Fix text redenring when button is
20751         pressed.
20752
20753 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
20754
20755         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
20756         and later navigate by mouse. Fixes #79528.
20757
20758 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20759
20760         * ToolBar.cs: Set default value for TabStop to false in
20761         constructor, it fixes remaining behavior of bug #79863.
20762
20763 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20764
20765         * MdiWindowManager.cs:
20766         * InternalWindowManager.cs:
20767         - Moved a few methods specific to Mdi from 
20768         InternalWindowManager to MdiWindowManager.
20769         Fixes #79996.
20770         
20771 2006-11-21  Chris Toshok  <toshok@ximian.com>
20772
20773         * XplatUIOSX.cs: stub out InvalidateNC.
20774
20775         * XplatUIWin32.cs: implement InvalidateNC using the call I found
20776         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
20777
20778         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
20779
20780         * XplatUIDriver.cs: add InvalidateNC abstract method.
20781
20782         * XplatUI.cs: add InvalidateNC.
20783
20784 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
20785
20786         * ToolBar.cs: Invalidate complete button area when pressed status 
20787         was changed.
20788         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
20789         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
20790         by 1 when button is pressed.
20791
20792 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20793
20794         * ToolButton.cs: Invalidate middle of DropDown button when
20795         ToolBar theres DropDownArrows.
20796         * ThemeWin32Classic.cs: Change position of DropDown arrow and
20797         fix DropDown drawing operations.
20798
20799 2006-11-20  Chris Toshok  <toshok@ximian.com>
20800
20801         * NativeWindow.cs: fix the formatting of functions ('{' on the
20802         following line), and enable the thread exception dialog.
20803
20804         * Application.cs: remove the duplicate exception catching from
20805         here.
20806
20807 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20808
20809         * Toolbar.cs: Triggers button click event when click on icon
20810         of dropdown ToolBarButton. Fixes #79912.
20811         
20812 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20813
20814         * Theme.cs:
20815         * ThemeWin32Classic.cs:
20816         - Added a property WindowBorderFont to enable themeing
20817           of mdi child windows' Text.
20818           
20819 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
20820
20821         * InternalWindowManager.cs:
20822         * Form.cs:
20823         * MdiClient.cs:
20824         * MdiWindowManager.cs: 
20825         - If mdi child is maximized, set mdi parent's
20826           text to "Parent - [Child]". Fixes #79770.
20827         - If there is any maximized mdi child windows, only the active 
20828           window (and any new windows) is maximized, the rest are normal.
20829         - On a WindowState change only save mdi child's window bounds 
20830           if the old window state was normal. Fixes #79774.
20831         - The scroll bars are now calculated on hopefully all
20832           necessary events. Fixed #79771 / #79844->6 / #79906.
20833         - MdiClient.SizeScrollBars() now takes into account docked 
20834           controls in the parent when calculating available space.
20835         - InternalWindowManager now always repaints the entire title
20836           area. Fixes #79844->1/4/5.
20837         - Added RequestNCRecalc on mdi child windowstate changes.
20838           Fixes #79772.
20839
20840 2006-11-20  Mike Kestner  <mkestner@novell.com>
20841
20842         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
20843         in the MouseUp handler of the listbox and move the return handling
20844         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
20845
20846 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
20847
20848         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
20849
20850 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20851
20852         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
20853           working in 1.2.x anymore. So, updated.
20854
20855 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
20856
20857         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
20858         NumberGroupSeparator of current culture instead of assuming en-US.
20859         Fixed bug #79967.
20860
20861 2006-11-17  Mike Kestner  <mkestner@novell.com>
20862
20863         * Control.cs: Add the concept of implicit bounds setting so that
20864         dock/undock round trips preserve explicitly set size/locations.
20865         Fixes #79313.
20866
20867 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
20868
20869         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
20870           can't handle those filters. (Fixes bug #79961)
20871
20872 2006-11-17  Chris Toshok  <toshok@ximian.com>
20873
20874         [ fixes the exit/crashes associated with #79835.  it's clearly
20875         suboptimal though, we need to figure out a better way to solve
20876         this. ]
20877         
20878         * PrintPreviewControl.cs: deal with the new invalid printer
20879         exceptions.
20880
20881         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
20882         and return false (so CommonDialog.ShowDialog doesn't actually show
20883         the form.)
20884
20885         * PrintDialog.cs: enable/disable the Ok button depending on
20886         whether or not the printer is valid.
20887
20888         * CommonDialog.cs (ShowDialog): only actually show the form if
20889         RunDialog returns true.
20890
20891 2006-11-17  Jackson Harper  <jackson@ximian.com>
20892
20893         * TextControl.cs: When soft splitting a line, mark it as a soft
20894         split line. Also carry over the current line break to the next
20895         line.
20896
20897 2006-11-17  Chris Toshok  <toshok@ximian.com>
20898
20899         * XplatUIX11.cs: when scrolling a window with an invalid area, we
20900         only want to shift the part of the invalid area that overlaps the
20901         area we're scrolling.  we also don't want to clear the invalid
20902         area unless the invalid area was entirely contained within the
20903         scrolling area.
20904
20905 2006-11-16  Chris Toshok  <toshok@ximian.com>
20906
20907         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
20908         also make sure to free the memory returned by XGetWindowProperty
20909         in GetText().
20910
20911         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
20912
20913 2006-11-16  Chris Toshok  <toshok@ximian.com>
20914
20915         * XplatUI.cs: add a new super secret way to get at the totally
20916         unsupported X11 backend.
20917
20918 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
20919
20920         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
20921
20922 2006-11-16  Jackson Harper  <jackson@ximian.com>
20923
20924         * TreeView.cs: Allow more explicit setting of top node position
20925         for scrollbars. Slower algo, but more accurate.
20926         - CollapseAll should maintain the current top node.
20927         * TextBoxBase.cs: When positioning the caret, use the line, pos
20928         method, since the x, y method does not grab the correct tag, and
20929         the caret height never gets set correctly. (Maybe I should just do
20930         away with the caret having its own height, and always use the
20931         carets current tag for height).
20932
20933 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
20934
20935         [Fixes 79778, 79923]
20936
20937         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
20938         Parent to the FosterParent instead.
20939
20940 2006-11-16  Jackson Harper  <jackson@ximian.com>
20941
20942         * TreeView.cs: Need to recalc the topnode when we expand or
20943         collapse. The scrolling methods can't handle this on their own,
20944         since they use differences between the last scroll position, and
20945         those difference get completely messed up since we are expanding
20946         nodes.  This problem should probably be fixed in the scrolling
20947         methods, so they can figure out exactly where they are, but this
20948         will slow things down a little.
20949         * ThemeWin32Classic.cs: Special case for groupboxes with empty
20950         strings, makes nunit-gui look a lot nicer.
20951
20952 2006-11-16  Chris Toshok  <toshok@ximian.com>
20953
20954         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
20955         the broken multithreaded event handling we have in here.  File
20956         this entry under "Why we should move to the new X11 backend".
20957
20958         Any thread can make it into UpdateMessageQueue, which gets events
20959         from the X socket - some of which could belong to hwnds being
20960         managed by a different thread.  We can also have multiple threads
20961         in UpdateMessageQueue at the same time, with each one reading from
20962         the X socket.  This leads to many problems, with the following
20963         solutions:
20964
20965         We can't use hwnd.Queue.Enqueue anywhere in here and must use
20966         EnqueueLocked.
20967
20968         The MotionNotify compression we do can't work across threads
20969         (without locking the entire queue, perhaps) since we call
20970         hwnd.Queue.Peek, so we just punt and don't compress motion events
20971         unless the owning thread is the one which got the X event.
20972
20973         ConfigureNotify is another fun one, since it modifies the hwnd's
20974         bounds and then enqueues the event.  We add a lock to Hwnd which
20975         is held when setting configure_pending to true (and enqueuing the
20976         event).
20977
20978         There is a race wrt the wake socket.  we need to make sure that
20979         only 1 thread is waiting on that socket, or else a thread could
20980         sleep waiting for data that never comes.  It's difficult (but not
20981         impossible) to make happen, because it seems to require something
20982         like the following:
20983
20984             1. Thread 1 polls on wake_receive
20985         
20986             2. poll returns saying there's data to be read on
20987                wake_receive.
20988         
20989             3. Thread 2 polls on wake_receive and immediately returns
20990                saying there's data to be read.
20991
20992             4. Thread 2 reads the wakeup byte from wake_receive
20993
20994             5. Thread 1 attempts to read the wakeup byte from
20995                wake_receive.
20996
20997             6. Thread 2 exits (due to a form closing, perhaps).
20998
20999             7. Thread 1 blocks forever.
21000         
21001         Fun, eh?
21002
21003         Fixing the Expose handling isn't done yet, and the races inherent
21004         in that piece of code are responsible for the drawing mistakes you
21005         see when generating expose events in a MT app (like NPlot).  This
21006         one is the likely to be the hardest to bandaid, and it doesn't
21007         appear to cause anything but drawing problems.  The other issues
21008         caused apps to exit or hang.
21009
21010         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
21011         called from a different thread than the one that should be calling
21012         these functions.
21013
21014         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
21015
21016 2006-11-15  Chris Toshok  <toshok@ximian.com>
21017
21018         * Application.cs: null out the context's MainForm when we exit
21019         RunLoop.  Fixes a newly checked in unit test as well as the last
21020         ODE from bug #79933.
21021
21022 2006-11-15  Chris Toshok  <toshok@ximian.com>
21023
21024         * Form.cs (set_Owner): allow a null value so we can clear the
21025         form's owner.
21026         (Dispose): set all our owned_form's Owner properties to null, and
21027         clear the owned_forms collection.
21028         (WM_CLOSE): clean up this a little bit.. still not right though.
21029
21030         * ApplicationContext.cs: OnMainFormClosed should only call
21031         ExitThreadCore if the main form isn't recreating.  Fixes unit
21032         test.
21033
21034 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21035
21036         [Fixes 78346]
21037
21038         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
21039
21040 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21041
21042         [Fixes 79433]
21043
21044         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
21045         keep popup window types from stealing focus from the main form
21046         on Windows.
21047
21048         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
21049
21050         * MenuAPI.cs: Set above flag to true.
21051
21052 2006-11-15  Chris Toshok  <toshok@ximian.com>
21053
21054         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
21055         the button being released is not in wParam.
21056
21057 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
21058
21059         * Form.cs: Add the released button to MouseEventArgs.Button
21060         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
21061         on Win32.
21062
21063 2006-11-15  Chris Toshok  <toshok@ximian.com>
21064
21065         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
21066         GetText().  untested because it's unused in our implementation.
21067         Control.Text always caches the text, even if
21068         ControlStyles.CacheText is not set.
21069
21070         fixes bug #79939.
21071
21072 2006-11-15  Chris Toshok  <toshok@ximian.com>
21073
21074         [ fixes #79933 ]
21075         
21076         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
21077         message.  no hiding, no disposing.
21078
21079         in the WM_CLOSE handler, hide the form if it's modal.
21080
21081 2006-11-15  Chris Toshok  <toshok@ximian.com>
21082
21083         * XplatUIX11.cs: use AddExpose instead of sending a message.
21084         fixes textbox border drawing.
21085
21086 2006-11-15  Chris Toshok  <toshok@ximian.com>
21087
21088         * PropertyGridView.cs: keep from crashing on mouse move/down when
21089         the property grid is empty.
21090
21091 2006-11-14  Jackson Harper  <jackson@ximian.com>
21092
21093         * TextControl.cs: Make PageUp and PageDown more like the MS
21094         versions.
21095         * TextBoxBase.cs: When we set the text property position the
21096         cursor at the beginning of the document.
21097
21098 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21099
21100         * Form.cs: if a mdi child's WindowState has changed
21101         before it's creation, it would display wrong control
21102         buttons.
21103         
21104 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
21105
21106         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
21107           (Fixes bug #79927)
21108
21109 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
21110
21111         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
21112         the window gets to paint its borders even if the window is
21113         getting smaller.
21114         
21115         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
21116         otherwise the old control buttons would still be painted 
21117         if the window gets bigger.
21118         
21119         * PaintEventArgs.cs: add an internal method so that the clip 
21120         rectangle can be changed.
21121         
21122 2006-11-13  Chris Toshok  <toshok@ximian.com>
21123
21124         [ fixes bug #79745 ]
21125         
21126         * NotifyIcon.cs: lots of cleanup.
21127
21128         * X11Structs.cs: add an enum for XEMBED messages.
21129
21130         * XplatUIX11.cs: reindent one of the giant switch statements, it
21131         was taking up an additional tab stop, and this file is already way
21132         too wide for my laptop's screen.
21133
21134         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
21135         we get it, resize the hwnd to the WMNormalHints max_width/height.
21136
21137 2006-11-13  Jackson Harper  <jackson@ximian.com>
21138
21139         * TextBoxBase.cs: Compute the value changes for the mouse wheel
21140         teh simple way.
21141
21142 2006-11-13  Chris Toshok  <toshok@ximian.com>
21143
21144         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
21145         #79898.  force a reference to the Region to stick around so the
21146         unmanaged object isn't collected (rendering our handle in the MSG
21147         stale).
21148
21149 2006-11-13  Chris Toshok  <toshok@ximian.com>
21150
21151         * XplatUIX11.cs: fix #79917 for window managers which support
21152
21153         using XStoreName on the raw utf8, and we need to convert to
21154         COMPOUND_TEXT if it's non-latin1.
21155
21156 2006-11-13  Chris Toshok  <toshok@ximian.com>
21157
21158         * Form.cs (set_DialogResult): we need to set closing to false if
21159         we're setting our result to None.  fixes bug #79908.
21160
21161 2006-11-13  Jackson Harper  <jackson@ximian.com>
21162
21163         * TextControl.cs: When formatting text, compute the adjusted tag
21164         lengths correctly, using FindTag for the end tag instead of trying
21165         to figure it out outselves.
21166         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
21167         the item, ItemHeight doesn't work, because trees with large
21168         imagelists use those for their height
21169         * TreeView.cs: ActualItemHeight factors in the image height
21170         - compute left edge of checkboxes correctly
21171         - when expanding/collapsing move the bottom down one pixel, so we
21172         aren't moving part of the node
21173
21174 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21175
21176         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
21177         stack in PaintEventStart so that it won't get disposed by the gc
21178         before reaching PaintEventEnd.
21179
21180 2006-11-13  Jackson Harper  <jackson@ximian.com>
21181
21182         * TextBoxBase.cs: Don't select the word if we are on a line with
21183         no text.
21184         - We don't need to position the caret on mouse up, since the mouse
21185         move handler should be doing this
21186         - When double clicking a blank line, the caret is advanced to the
21187         next line.
21188
21189 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
21190
21191         * TreeNodeCollection.cs: Avoid duplicating indexer code.
21192
21193 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
21194
21195         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
21196         Fixes part of bug #79910.
21197
21198 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
21199
21200         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
21201           (bug #79903). Some minor string updates to match ms.
21202
21203 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21204
21205         * FileDialog.cs: Don't add an extension if the filename
21206           already ends with that extension.
21207
21208 2006-11-10  Jackson Harper  <jackson@ximian.com>
21209
21210         * TreeView.cs: Use the currently highlighted node for the
21211         BeforeSelect event.
21212         * TextBoxBase.cs: There is no need to expand selection on
21213         MouseMove.
21214         - CanUndo means 'is there any undo operations', not 'is undo
21215         allowed on this textcontrol. Fixed ClearUndo unit test.
21216
21217 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
21218
21219         * Button.cs: only perform click when button is Selectable (so as 
21220         not to activate default buttons when they're disabled)
21221         
21222         * Control.cs: Rewrite of the SelectNextControl and related 
21223         methods. HandleClick now selects next control if the current one
21224         is being disabled.
21225         
21226         * Form.cs: OnActivated selects next active control only if Load 
21227         has already occurred. If Load hasn't run, there's no point in 
21228         selecting here, Load might change the state of controls.
21229         
21230         * FocusTest.cs: Tests marked as working again for these fixes
21231
21232 2006-11-10  Chris Toshok  <toshok@ximian.com>
21233
21234         * XplatUIX11.cs: a couple of fixes.
21235
21236         - use XInternAtoms with almost all the atoms we need to register,
21237         instead of many, many calls to XInternAtom.  should help a bit on
21238         startup time, at the expense of making the code look a little
21239         worse.
21240
21241         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
21242         isn't reparented (which seems to be a clue that we're running fon
21243         compiz) and they have an Owner form.  This fixes the tool windows
21244         in paint.net when running under compiz.
21245
21246         - when setting the opacity of a window, support both the case
21247         where the window has been reparented and also when it hasn't been.
21248         Since compiz/beryl doesn't seem to reparent windows, and these are
21249         the only window managers which support translucency, I'm not sure
21250         why we need the hwnd.reparented case at all.. but leave it in.
21251         now we get translucent windows in paint.net under compiz/beryl.
21252
21253 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21254
21255         * FileDialog.cs: Always return the value for FilterIndex that
21256           was set. Internally convert it to values that make sense.
21257
21258 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21259         
21260         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
21261
21262 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
21263
21264         * Toolbar.cs: Change default value of DropDownArrows to true, the 
21265         signature still using false to make it compatible with MS but the 
21266         initial value is true. Fixes #79855.
21267
21268 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
21269
21270         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
21271           only available on Linux.
21272
21273 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
21274
21275         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
21276         reduce number of calls to redraw method during toolbar creation.
21277
21278 2006-11-09  Mike Kestner  <mkestner@novell.com>
21279
21280         * ListView.cs : raise SelectedIndexChanged when an item is selected
21281         programmatically via the Item.Selected property.  Gert's nice 
21282         ListViewSelectedIndexChanged test fixture now runs clean.
21283
21284 2006-11-09  Mike Kestner  <mkestner@novell.com>
21285
21286         * ListView.cs : raise SelectedIndexChanged when a selected item is
21287         removed from the item collection using Remove or RemoveAt.
21288
21289 2006-11-09  Mike Kestner  <mkestner@novell.com>
21290
21291         * ListView.cs : raise SelectedIndexChanged once per selected item
21292         for compat with MS.  Fixes #79849+.
21293
21294 2006-11-09  Chris Toshok  <toshok@ximian.com>
21295
21296         * TabControl.cs: initialize row_count to 0, and set it to 1 when
21297         we need to (if we have any tab pages).  Fixes unit test.
21298
21299 2006-11-09  Chris Toshok  <toshok@ximian.com>
21300
21301         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
21302         width is 0, not 3.  Fixes a unit test.
21303
21304 2006-11-09  Mike Kestner  <mkestner@novell.com>
21305
21306         * ListView.cs : use Implicit scrollbars so that focus isn't 
21307         stolen from the listview when they are clicked. Fixes #79850.
21308
21309 2006-11-09  Chris Toshok  <toshok@ximian.com>
21310
21311         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
21312         have a root item.  Fixes #79879.
21313
21314 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
21315
21316         * FileDialog.cs:
21317           - Fix ToString ()
21318           - An ArgumentException is now thrown if a wrong filter
21319             is applied (matches ms). The previous filter doesn't change
21320             anymore if an exception is thrown.
21321           - Changing the FileName property also affects FileNames
21322         * ColorDialog.cs: The length of the CustomColors array is always
21323           16. It doesn't matter if we use a smaller array or null to update
21324           or change the custom colors property.
21325         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
21326           for RootFolder if we get a undefined value.
21327
21328 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21329
21330         * StatusBarPanel.cs: 
21331         - Width is set to MinWidth if Width is smaller than
21332         MinWidth. Fixes #79842.
21333         - MinWidth now always overrides Width (MSDN says MinWidth
21334         is set to Width when AutoSize = None, but they do not 
21335         behave like that).
21336         - Style has now the the correct default value.
21337         
21338 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21339  
21340         * TrackBar.cs: 
21341         - The control is completely invalidated on 
21342         Got/LostFocus to draw the focus rectangle correctly.
21343         - When AutoSize then height is always 45 (width for 
21344         vertical controls).
21345         
21346         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
21347         on the mouse when moved and it doesn't move when grabbed
21348         until the mouse moves as well. Also fixed some wrong 
21349         calculations when clicking on the thumb (control thought
21350         click was outside of thumb and didn't grab it).
21351         Fixes some of the issues in #79718.
21352
21353 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
21354
21355         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
21356
21357 2006-11-08  Chris Toshok  <toshok@ximian.com>
21358
21359         * PropertyGridView.cs: only call ToggleValue if the item is not
21360         readonly.
21361
21362 2006-11-08  Jackson Harper  <jackson@ximian.com>
21363
21364         * TextBoxBase.cs: The RichTextBox and textbox have very different
21365         word selection methods.  Implement the textbox's simple word
21366         selection here, and let the RichTextBox override and provide it's
21367         own.
21368         - Don't do extra selection on mouseup
21369         * RichTextBox.cs: Use the documents word selection algorithm, I
21370         think ideally, this function will be pulled into the
21371         RichTextBox.cs code someday.
21372
21373 2006-11-08  Chris Toshok  <toshok@ximian.com>
21374
21375         * RootGridEntry.cs: new class to represent GridItemType.Root.
21376
21377         * CategoryGridEntry.cs: reformat, and add boilerplate.
21378         
21379         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
21380         returns the UI parent anyway, and we need special handling to
21381         implement the GetTarget method in the face of it.  Also, implement
21382         Select().
21383
21384         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
21385         a root grid item, and use that instead of PropertyGrid.grid_items.
21386         Also, make use of TypeConverters (and add limitted support for
21387         ICustomTypeDescriptors) when initially populating the grid.
21388         Arrays now show up more or less properly.
21389
21390 2006-11-08  Chris Toshok  <toshok@ximian.com>
21391
21392         * Application.cs: set the modal dialog to non modal after we close
21393         it.  Fixes bug #79866.
21394
21395 2006-11-08  Jackson Harper  <jackson@ximian.com>
21396
21397         * TextControl.cs: When combining lines carry over the line end
21398         style from the end line.
21399         - Invalidate the selected area when setting it, if it is visible.
21400         * TextBoxBase.cs: Only rich text box can do full line selects.
21401         - Make sure to set the cursor position when there is a click,
21402         otherwise two clicks in separate areas could cause a large chunk
21403         to be selected.
21404
21405 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21406
21407         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
21408         Fixes #79863.
21409
21410 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21411
21412         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
21413         time. Remove tooltips when ToolButton click events.  Fixes #79856.
21414
21415 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21416
21417         * MenuAPI.cs: Ignore right click for menu actions and fixes
21418         menu border when clicked.  Fixes #79846.
21419
21420 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21421
21422         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
21423         MouseState after create wParam for message, this fixes mouse button 
21424         equal none in mouse up events.
21425         
21426 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
21427
21428         * Control.cs : Focus() now calls Select to set the Container's
21429         Active Control and to give it focus. To avoid infinite recursion
21430         (because ActiveControl also calls Focus at one point), a check 
21431         is made in Focus with the help of a new internal variable
21432         is_focusing.
21433
21434 2006-11-07  Mike Kestner  <mkestner@novell.com>
21435
21436         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
21437         if there's a selection.  Fixes #79849.
21438
21439 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
21440
21441         * PropertyGrid.cs: Avoid fixed height of help description label.
21442         Fixes part of bug #79829.
21443
21444 2006-11-07  Chris Toshok  <toshok@ximian.com>
21445
21446         * XplatUIX11.cs: fix #79790 again, by using the
21447         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
21448
21449 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21450
21451         * ToolBar.cs: Fix left click checking.
21452
21453 2006-11-07  Chris Toshok  <toshok@ximian.com>
21454
21455         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
21456
21457 2006-11-07  Chris Toshok  <toshok@ximian.com>
21458
21459         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
21460         PropertyManager unit tests.
21461
21462         * PropertyManager.cs: make property_name internal.
21463
21464 2006-11-07  Chris Toshok  <toshok@ximian.com>
21465
21466         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
21467         pass a unit test.  Also, don't set image_index to anything in
21468         response to setting the ImageList property.
21469
21470 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
21471
21472         * ToolBar.cs: Ignore click events when mouse button is not a
21473         left button, only accepts other button for dropdown menus.  
21474         Fixes #79854.
21475
21476 2006-11-07  Chris Toshok  <toshok@ximian.com>
21477
21478         * DataGrid.cs: make the back and parent row buttons a little less
21479         ugly.
21480
21481 2006-11-07  Jackson Harper  <jackson@ximian.com>
21482
21483         * TextBoxBase.cs: When converting to Text don't put line breaks in
21484         for soft line breaks.
21485         * TextControl.cs: There is an initial "fake" line in the document,
21486         this is now a soft break line, so that an extra line feed doesn't
21487         get added to the end of documents.
21488
21489 2006-11-07  Chris Toshok  <toshok@ximian.com>
21490
21491         [ fix bug #79778 ]
21492         
21493         * CurrencyManager.cs: if the list is readonly, don't bother
21494         checking if IBindingList.AllowNew is true.
21495
21496         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
21497         for non-DataRowView datasources..  or rather, make it not crash.
21498         (DataGridPaintRelationRow): make sure we limit the row painting to
21499         the area not covered by the row header, and make our cell width at
21500         least large enough to cover the relation area.  This allows grids
21501         that have relations but no rows to render correctly.
21502         (DataGridPaintRowContents): same type of changes here.
21503         (SetDataSource): move back to always calling
21504         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
21505         navigating back through relations.
21506         (HitTest): handle the case where we have no cells but have
21507         relations.  Right now we generate a hit in cell 0 of whatever the
21508         row is, not sure if this is strictly correct, but it works for our
21509         purposes.
21510         
21511         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
21512         bother doing anything.
21513
21514 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
21515
21516         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
21517         early version of StatusStrip.  Not responsible for eaten
21518         application or firstborn children.
21519
21520 2006-11-06  Chris Toshok  <toshok@ximian.com>
21521
21522         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
21523         call GetTabRect with a -1 index.  Fixes #79847.
21524
21525 2006-11-06  Jackson Harper  <jackson@ximian.com>
21526
21527         * TreeNodeCollection.cs: Update scrollbars after clearing.
21528
21529 2006-11-06  Chris Toshok  <toshok@ximian.com>
21530
21531         * NumericUpDown.cs: fix the ToString method for some unit test
21532         love.
21533
21534 2006-11-06  Chris Toshok  <toshok@ximian.com>
21535
21536         * PropertyGrid.cs:
21537         - set the initial SelectedGridItem if we can.
21538
21539         - Exclude non-mergable properties only if we're merging > 1
21540         object.  Merging 1 object isn't really merging, obviously.
21541
21542         - Handle PropertySort.NoSort just like Alphabetical, which is
21543         wrong of course, but at least gets things on the screen.
21544         
21545         * PropertyGridView.cs:
21546         - Add method "FindFirstItem" which finds the first property grid
21547         item, so we can select it by default.
21548
21549         - make use of GridEntry.CanResetValue.
21550
21551         - Don't call RedrawBelowItemOnExpansion here anymore, the
21552         individual GridEntry's will do that.
21553
21554         - Remove the ITypeDescriptorContextImpl internal class.
21555         
21556         * GridEntry.cs:
21557         - this class needs to implement ITypeDescriptorContext, as it's
21558         what MS's PropertyDescriptorGridEntry does, which means we can
21559         remove the ITypeDescriptorContextImpl internal class from
21560         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
21561
21562         - keep a reference to our PropertyGridView, and move the call to
21563         RedrawBelowItemOnExpansion here from PGV.  This means
21564         programmaticly setting Expanded actually does something visible.
21565
21566         - add a CanResetValue() function which takes into account our
21567         possibly multiple "selected_objects" in the merged case.  Shifting
21568         PropertyGridView to use this method fixes another unreported
21569         crasher found running the test for #79829.
21570
21571         - when Top or Bounds is updated, make sure the PropertyGridTextBox
21572         is updated to reflect this.
21573
21574         * CategoryGridEntry.cs: the ctor takes the PGV now.
21575         
21576 2006-11-06  Jackson Harper  <jackson@ximian.com>
21577
21578         * TextControl.cs: These are 1 based.
21579         * TextBoxBase.cs: When setting the selected text, don't change the
21580         selected text tags, this is done by ReplaceText, just position the
21581         cursor at the end of the new text.
21582
21583 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21584
21585         * ListView.cs: Allow label edit only when, when LabelEdit is
21586           set to true.
21587
21588 2006-11-06  Jackson Harper  <jackson@ximian.com>
21589
21590         * TextControl.cs: If a suitable wrapping position isn't found,
21591         just wrap right in the middle of a word.
21592
21593 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
21594
21595         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
21596           bug #79820.
21597
21598 2006-11-06  Jackson Harper  <jackson@ximian.com>
21599
21600         * TreeView.cs: Can't use the VisibleCount property when setting
21601         scrollbar heights, because this doesn't take into account whether
21602         or not the horz scrollbar just came visible.
21603
21604 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
21605
21606         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
21607         activated.  Fixes #79369, #79832.
21608
21609 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
21610
21611         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
21612           had to remove support for links that point to a directory. FileInfo
21613           returns no usefull information (means, the directory they point to)
21614           for such links. Replaced some empty string ("") with String.Empty.
21615
21616 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21617
21618         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
21619         NullReferenceException when attempting to remove node that is not in
21620         collection. Throw NullReferenceException when null is passed to 
21621         Remove. Allow first element of the collection to be removed. Fixes
21622         bug #79831.  In GetEnumerator ().Current return null if positioned 
21623         before the first element of the collection. In GetEnumerator ().Reset,
21624         position before first element of the collection.
21625
21626 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
21627
21628         * PropertyGrid.cs: To match MS, remove default title and description
21629         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
21630         buttons.
21631
21632 2006-11-04  Chris Toshok  <toshok@ximian.com>
21633
21634         * Theme.cs: add a Clamp method, just for kicks.
21635
21636         * ThemeWin32Classic.cs: clamp all color components to [0..255].
21637
21638 2006-11-04  Chris Toshok  <toshok@ximian.com>
21639
21640         * Form.cs: if the form isn't visible, Close() does nothing.
21641
21642 2006-11-03  Chris Toshok  <toshok@ximian.com>
21643
21644         * Form.cs (Close): if the form is modal, don't Dispose of it, only
21645         Hide it.
21646         (WndProc): don't Dispose after handling the WM_CLOSE message.
21647
21648         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
21649         them as such, instead of using casts from Control to Form.  Also,
21650         don't Dispose of the modal dialog when we fall out of the loop -
21651         Close() it instead.
21652
21653         fixes bug #79813.
21654
21655 2006-11-03  Chris Toshok  <toshok@ximian.com>
21656
21657         * Control.cs (Dispose): only go through the dispose thing if we're
21658         @disposing, and we haven't already been disposed.  Fixes bug
21659         #79814.
21660
21661         * Form.cs: no reason to call "base.Dispose()" here instead of
21662         "Dispose()".
21663
21664 2006-11-03  Mike Kestner  <mkestner@novell.com>
21665
21666         * ComboBox.cs : use ToString instead of casts in AddItem for
21667         sorting functionality.  Fixes #79812.
21668
21669 2006-11-03  Chris Toshok  <toshok@ximian.com>
21670
21671         * Application.cs: pave the way for actually using the thread
21672         exception dialog.  it's ifdefed out at the moment.
21673
21674 2006-11-03  Chris Toshok  <toshok@ximian.com>
21675
21676         * ThreadExceptionDialog.cs: until we get a better layout, actually
21677         hide the details textbox and label when we shouldn't see them.
21678
21679 2006-11-03  Jackson Harper  <jackson@ximian.com>
21680
21681         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
21682         multiline textboxes anymore.  This method also determines the
21683         width/height of a textboxes canvas area.
21684         - Sorta a revert of the last patch.  For multiline just position
21685         the controls, then bail.  This way the scrollbar width won't be
21686         altered.
21687
21688 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
21689
21690         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
21691         it dont need.  Fixes #79537.
21692
21693 2006-11-02  Jackson Harper  <jackson@ximian.com>
21694
21695         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
21696         send the status after firing the DndOver event.
21697
21698 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21699
21700         * TrackBar.cs: Now orientation only switches height / width if
21701         the control's handle is created (Win32 does it like this). Also 
21702         fixed a typo in ToString() for a test to pass, changed the 
21703         exception thrown in set_LargeChange and set_SmallChange to 
21704         match Win32 behaviour, and added TrackBar tests to the unit 
21705         tests.
21706
21707 2006-11-02  Chris Toshok  <toshok@ximian.com>
21708
21709         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
21710         not _NET_WM_STATE_NO_TASKBAR.
21711
21712 2006-11-02  Jackson Harper  <jackson@ximian.com>
21713
21714         * TextControl.cs: Increment count by one, since in the update view
21715         count - 1 is used.
21716
21717 2006-11-02  Jackson Harper  <jackson@ximian.com>
21718
21719         * TextBoxBase.cs: Use client rectangle not bounds for checking if
21720         the mouse is in the client rectangle (duh).
21721
21722 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
21723         
21724         * TrackBar.cs: Fixed trackbar jumping around when clicking
21725         on it - the trackbar was not detecting correctly at which
21726         side of the thumb the click was done. (fixes #79718)
21727
21728 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
21729
21730         * ListBox.cs: scroll visible area when change SelectedIndex to
21731         a non visible area.  Fixes #79481.
21732
21733 2006-11-01  Jackson Harper  <jackson@ximian.com>
21734
21735         * TextControl.cs: When replacing the selection move the selection
21736         start/end/anchor to the end of the new text.
21737
21738 2006-11-01  Jackson Harper  <jackson@ximian.com>
21739
21740         * XplatUIWin32.cs: When setting the parent change the controls
21741         visibility to it's visibility flag, not to it's old parents
21742         visibility (.Visible walks the parent chain).
21743
21744 2006-11-01  Chris Toshok  <toshok@ximian.com>
21745
21746         * XplatUIX11.cs: revert the #79790 fix, as the simple.
21747         XSetTransientForHint fix breaks paint .net's tool windows.  more
21748         work needed for that one.
21749
21750 2006-11-01  Chris Toshok  <toshok@ximian.com>
21751
21752         * ScrollBar.cs: throw ArgumentException instead of Exception in
21753         LargeChange/SmallChange setters.  fixes unit tests.
21754
21755 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21756
21757         * ContainerControl.cs: reverted rev.67183 (which was itself
21758         a reversion of rev.66853... eh).
21759         
21760         * Control.cs: Fixes Reflector hang by changing Focus() call
21761         to what it was before rev.66643 (calling Select() here sets 
21762         ActiveControl, which in some situations calls back Focus and 
21763         eventually does a stack overflow). Temp fix.    
21764         Changes to GetNextControl() to not look for children to select when
21765         parent cannot be selectable (so it looks for siblings instead)  
21766         
21767 2006-10-31  Mike Kestner  <mkestner@novell.com>
21768
21769         * CheckedListBox.cs : off by one error in returned index from
21770         ObjectCollection.Add.  Fixes #79758.
21771
21772 2006-10-31  Chris Toshok  <toshok@ximian.com>
21773
21774         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
21775         calls for the textbox/spinner, to keep from recursing to the point
21776         where we crash.  Fixes #79760.
21777
21778 2006-10-31  Chris Toshok  <toshok@ximian.com>
21779
21780         * ListControl.cs (set_SelectedValue): don't throw exceptions on
21781         null/"" value, just return.  matches ms's behavior and fixes some
21782         failing tests.
21783
21784 2006-10-31  Chris Toshok  <toshok@ximian.com>
21785
21786         * Control.cs (set_Capture): make a logic a little easier to
21787         follow.
21788
21789         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
21790         if it's being destroyed.  A necessary fix surely, but a bandaid
21791         also, to fix the stuck capture problem in bug #78413.
21792
21793 2006-10-31  Chris Toshok  <toshok@ximian.com>
21794
21795         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
21796         convention of clearing hwnd.ClientRect when we set the
21797         width/height (so it'll be recalculated by Hwnd).
21798
21799 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
21800
21801         * ContainerControl.cs: reversed Contains check from
21802         ActiveControl due to hanging problems. This fix
21803         partly regresses #79667 (button does not have
21804         initial focus), so this might be a symptom for 
21805         a larger parenting problem (set_ActiveControl
21806         is being called but the child control does
21807         not have the parent set yet?)   
21808         
21809 2006-10-31  Mike Kestner  <mkestner@novell.com>
21810
21811         * MenuAPI.cs : fix keynav when menu is click activated.
21812
21813 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
21814
21815         * ToolStrip*: Version 0.2.
21816
21817         * MenuStrip.cs: Version 0.1.
21818
21819         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
21820
21821 2006-10-30  Chris Toshok  <toshok@ximian.com>
21822
21823         [ fixes the oversized notify icon issue in bug #79745 ]
21824         
21825         * NotifyIcon.cs: scale the icon down to the size we're given by
21826         the XplatUI layer (this would be faster if we did it once instead
21827         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
21828         since it's never invoked.
21829
21830         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
21831         pixels high by default, so let's hardcode our systray icon to that
21832         size.  The SYSTEM_TRAY protocol should really have a way for
21833         client apps to query for the correct icon size.. but oh well.  A
21834         couple of patches to deal with the screwy client_window ==
21835         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
21836         instance, and also make sure we don't XSelectInput twice).
21837
21838 2006-10-30  Chris Toshok  <toshok@ximian.com>
21839
21840         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
21841         recreating forms.  Control recreation is the bane of my existence.
21842         Fix it in a way that keeps everyone happy.
21843
21844 2006-10-30  Chris Toshok  <toshok@ximian.com>
21845
21846         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
21847         just non-CHILD ones.  otherwise sometimes scrollbars end up with
21848         client_windows not being resized to the proper size (ReportBuilder
21849         shows this extremely well).
21850
21851 2006-10-30  Chris Toshok  <toshok@ximian.com>
21852
21853         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
21854         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
21855         showing up in the gnome taskbar.  Fixes bug #79790.
21856
21857 2006-10-30  Chris Toshok  <toshok@ximian.com>
21858
21859         * ApplicationContext.cs: guard against a NRE.
21860
21861         * Application.cs: null out the old MainForm for the context, so we
21862         don't try to use it again once it's disposed.  Fixes bug #79783.
21863
21864 2006-10-30  Chris Toshok  <toshok@ximian.com>
21865
21866         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
21867         BindingContext, set the data source directly, otherwise do the
21868         lazy approach - the actual ListManager will be created when we get
21869         a BindingContext. Fixes bug #79700.
21870
21871 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21872
21873         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21874           XplatUIX11.cs: Remove old 2 parameter SetVisible.
21875
21876         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
21877
21878 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
21879
21880         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
21881         of SetVisible that allows a window to be shown, but not activated.
21882         This is needed on Windows for MenuStrip, and can probably be used
21883         with MainMenu and ComboBox to fix the focus stealing issues on
21884         Windows.
21885
21886         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
21887
21888 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
21889
21890         * PictureBox.cs: Fix the output of the ToString method.
21891
21892 2006-10-29  Chris Toshok  <toshok@ximian.com>
21893
21894         * Control.cs (get_TopLevelControl): fix bug #79781.
21895
21896 2006-10-29  Chris Toshok  <toshok@ximian.com>
21897
21898         * ListControl.cs (set_DataSource): throw Exception here, not
21899         ArgumentException, to match MS behavior.
21900
21901 2006-10-29  Chris Toshok  <toshok@ximian.com>
21902
21903         * Form.cs: remove the try-catch's around calls to GetWindowState.
21904         We can just check the return value.
21905
21906         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
21907         Instead return -1.
21908
21909         * XplatUI.cs: Add note about additional return value for
21910         GetWindowState.
21911
21912 2006-10-29  Chris Toshok  <toshok@ximian.com>
21913
21914         * Control.cs (CreateHandle): when we create our handle, we also
21915         create the handles of our child controls.  Fixes one of the
21916         Control unit tests (CH11).
21917
21918 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21919
21920         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
21921
21922 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
21923
21924         * ThemeClearlooks.cs: A little speedup.
21925
21926 2006-10-27  Chris Toshok  <toshok@ximian.com>
21927
21928         * Control.cs: implement Control.FromChildHandle in a way that
21929         matches the docs (and fixes the failed test.)
21930
21931 2006-10-27  Chris Toshok  <toshok@ximian.com>
21932
21933         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
21934         comments).
21935
21936         * DataGrid.cs: implement ResetForeColor such that the tests
21937         succeed.
21938         
21939 2006-10-27  Chris Toshok  <toshok@ximian.com>
21940
21941         * ToolBarButton.cs: setting text/tooltiptext to null results in it
21942         being set to "".  Fixes bug #79759.
21943
21944 2006-10-27  Jackson Harper  <jackson@ximian.com>
21945
21946         * TextControl.cs: We need to clear the entire selection area when
21947         setting the start, otherwise multiline selections are still
21948         visible.
21949
21950 2006-10-26  Chris Toshok  <toshok@ximian.com>
21951
21952         * PropertyGridView.cs: 
21953
21954         - ifdef all the code specific to the double
21955         buffer case, and provide some alternatives in the non-doublebuffer
21956         code, which makes heavy use of XplatUI.ScrollWindow to move things
21957         around without having to invalidate (and cause flicker).  There
21958         are still some drawing problems in the non-doublebuffered case, so
21959         DOUBLEBUFFER is defined by default.
21960
21961         - Fix the way dropdowns are handled.  now we explicitly watch for
21962         the events which might cause the dropdown to close, and break out
21963         of the nested event loop there.  This gets rid of all Capture
21964         code, at the expense of the Msg special casing.  Seems to work,
21965         though, and fixes bug #79743.
21966
21967 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
21968         * Control.cs: SetIsRecreating now recreates implicitly added
21969         child controls as well. Finally fixes #79629. The flag passed to 
21970         SetIsRecreating has also been removed since it wasn't used.
21971         
21972 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21973
21974         * PageSetupDialog.cs: Clean some code, fix some bits, 
21975         add some checks, and add a printer sub-dialog.
21976
21977 2006-10-26  Chris Toshok  <toshok@ximian.com>
21978
21979         * PropertyGrid.cs: make set_SelectedObject call
21980         set_SelectedObjects, and move the duplicate logic to the
21981         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
21982
21983         * PropertyGridView.cs: hide the textbox when we get a
21984         SelectedObjectsChanged event.
21985
21986         Fixes bug #79748.
21987
21988 2006-10-26  Chris Toshok  <toshok@ximian.com>
21989
21990         * PropertyGridView.cs: deal with the type converter not supporting
21991         GetStandardValues() or GetStandardValues() returning null, which
21992         is does in the default case.  Fixes #79742.
21993
21994 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
21995
21996         * CheckedListBox.cs: nunit no longer crashes when selecting 
21997         Project/Edit menu option
21998         
21999 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
22000
22001         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
22002         is no menu selected. fixes #79739
22003
22004 2006-10-25  Chris Toshok  <toshok@ximian.com>
22005
22006         * PropertyGridView.cs: factor out the splitter invalidation code
22007         into the SplitterPercent setter, and for kicks implement the
22008         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
22009         amount in either direction.
22010
22011 2006-10-25  Chris Toshok  <toshok@ximian.com>
22012
22013         * PropertyGridView.cs: do some cleanup of the brush used to draw
22014         text - read only fields should be grayed out.  not sure how to do
22015         this with the textbox, though.  but the textbox's should also be
22016         readonly now at least.  Also, hide/show the textbox when resizing
22017         the control.
22018         
22019         * CursorConverter.cs: use System.Reflection when getting the
22020         properties of Cursors, as TypeDescriptor.GetProperties isn't
22021         returning static properties.
22022
22023 2006-10-25  Chris Toshok  <toshok@ximian.com>
22024
22025         * PropertyGridView.cs: factor out the up/down handling, and reuse
22026         it for page up/down.  also add End/Home support.
22027
22028 2006-10-25  Chris Toshok  <toshok@ximian.com>
22029
22030         * PropertyGridView.cs:
22031
22032         - ensure the selected grid item is visible in the scrolled area,
22033         fixes bug #79572.
22034
22035         - fix Keys.Down handling when you're on the last item in the
22036         propertygrid.
22037
22038 2006-10-25  Mike Kestner  <mkestner@novell.com>
22039
22040         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
22041         clicks too.  Fixes #79725.
22042
22043 2006-10-24  Chris Toshok  <toshok@ximian.com>
22044
22045         * PropertyGrid.cs: use property.Converter instead of
22046         TypeDescriptor.GetConverter(property.PropertyType), so we catch
22047         TypeConverters declared on the property as well as on the
22048         PropertyType.  Fixes bug #79678.
22049
22050 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
22051
22052         * MimeIcon.cs, Mime.cs:
22053           Fallback to the default platform handler if no shared mime info
22054           stuff exists (fixes #79693).
22055
22056 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22057         * ContainerControl.cs: Incorrect contains check in ActiveControl 
22058         from previous fix (duh).
22059
22060 2006-10-20  Chris Toshok  <toshok@ximian.com>
22061
22062         * PropertyGridView.cs: the dropdown should be MIN(number of items
22063         in list, 15).  Fixes #79551.
22064
22065 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
22066         Fixes #79384, #79394, #79652, #79667
22067         * Application.cs: 
22068         
22069         - Modal windows are now destroyed in the proper order for windows
22070         
22071         * ContainerControl.cs:
22072         
22073         - ActiveControl setter has more conditions on when to return:
22074                 - if we're reselecting the active control, but it actually
22075                 didn't have focus (window hidden or some such), it runs
22076                 - if the active control being selected doesn't actually 
22077                 exist in the container, it returns
22078         
22079         * Form.cs
22080         
22081         - The ShowDialog now gets the current form as the owner when
22082         invoking without parameters, and correctly activates the owner 
22083         when returning
22084         
22085         * MessageBox.cs
22086         
22087         - MessageBox now catches the Escape key to exit
22088
22089 2006-10-20  Chris Toshok  <toshok@ximian.com>
22090
22091         * PropertyGridView.cs: fix a number of issues (bug #78565, and
22092         most of bug #79676):
22093
22094         - you can navigate around the property grid with the arrow keys.
22095
22096         - the dropdown is sized properly when the pg has a vertical
22097         scrollbar.
22098
22099         - fix the indentation for subentries, and properly select the
22100         entire label rect.
22101
22102         - fix the gray bar's drawing (only draw it to the last element,
22103         not for the height of the control.  Also make sure we draw that
22104         last horizontal grid line.
22105
22106         - use the same mechanism the datagrid uses wrt the editing textbox
22107         when scrolling/resizing/etc.  Namely, we hide it first, do the
22108         operation, then show it again (if it's still visible).
22109         
22110         - aggressively remove a lot of unnecessary refreshes (and also
22111         calls to Invalidate(). call more limited variants, and only redraw
22112         what we need.)
22113         
22114         * PropertyGrid.cs:
22115
22116         - when we're populating the merged collection, fill in the UI
22117         parent with either the passed in item, or the category item we
22118         create.
22119
22120         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
22121
22122         * GridItem.cs: drop some fully qualified names.
22123         
22124         * GridEntry.cs: add a "UIParent", which is basically the parent
22125         treenode.
22126
22127         * GridItemCollection.cs: add an IndexOf method.
22128
22129 2006-10-20  Mike Kestner  <mkestner@novell.com>
22130
22131         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
22132         a working win32 NC invalidation mechanism, we can't invalidate
22133         menus.  [Fixes #79705]
22134
22135 2006-10-20  Mike Kestner  <mkestner@novell.com>
22136
22137         * ListBox.cs : don't update the VScrollbar if the list is empty,
22138         just hide it.  [Fixes #79692]
22139
22140 2006-10-20  Jackson Harper  <jackson@ximian.com>
22141
22142         * RichTextBox.cs: Handle some special chars better, and don't skip
22143         the entire group when we encounter a special char that we don't
22144         handle correctly.
22145
22146 2006-10-18  Chris Toshok  <toshok@ximian.com>
22147
22148         * PropertyGridView.cs: address a number of issues from bug #79676,
22149         mostly of the cosmetic variety.
22150
22151         - The highlight rectangle for indented items not extends all the
22152         way to the left.
22153
22154         - Indented items aren't indented so much.
22155
22156         - the dropdown is properly sized width-wise if the pg has a
22157         vertical scrollbar.
22158
22159 2006-10-18  Chris Toshok  <toshok@ximian.com>
22160
22161         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
22162         systray stuff is rather convoluted to begin with.
22163
22164         systray icons are a single window for some reason (that I haven't
22165         figured out yet), and for them, client_window == whole_window.
22166         Given the way the tests are structured elsewhere to determine
22167         which paints are pending (client vs. nc), that situation will
22168         always yield PAINT, not NCPAINT.  So, if we have a pending
22169         nc_expose and no pending expose, remove the hwnd from the paint
22170         queue, and also set nc_expose_pending to false, to keep us from
22171         blocking further expose's adding the hwnd to the paint queue.
22172
22173         phew.  like i said, a rather convoluted change.  Fixes the
22174         notifyicon repaint issues in bug #79645.
22175
22176 2006-10-18  Chris Toshok  <toshok@ximian.com>
22177
22178         * Form.cs: when getting the backcolor of the form, don't get
22179         base.BackColor, as this allows parents to influence the background
22180         color.  This breaks mdi forms.  Instead, if the background_color
22181         is empty, return the default.
22182
22183 2006-10-18  Chris Toshok  <toshok@ximian.com>
22184
22185         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
22186         to being private instead of internal static.
22187
22188         * Control.cs: remove all the stupid ParentWaitingOnRecreation
22189         crap, it wasn't working for more deeply nested controls anyway,
22190         and we already have the is_recreating flag - use that instead.
22191         Before calling DestroyHandle in RecreateHandle, recurse through
22192         the control tree setting it to true.  this returns the recreate
22193         code to much of its original simplicity, while now guaranteeing we
22194         actually recreate everything we're supposed to.  This change gets
22195         fyireporting actually showing mdi children.
22196
22197 2006-10-17  Chris Toshok  <toshok@ximian.com>
22198
22199         * Form.cs: remove some debug spew, and collapse some duplicate
22200         code at the end of SetClientSizeCore.
22201
22202         * XplatUIX11.cs: 
22203         - add some more debug spew here too wrt Destroy handling.
22204         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
22205         in Control's handling of WM_DESTROY.
22206         - Remove the handling of zombie window DestroyNotifies from the
22207         event loop - we don't need it.  Now the only DestroyNotifies we
22208         actually handle are ones generated by X.
22209         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
22210         match gtk's (functioning) handling of this. This keep metacity
22211         from leaving droppings in the form of wm borders with no window
22212         contents all over the place.
22213
22214         * Control.cs:
22215         - add a bunch of debug spew wrt control recreation.
22216         - fix a bug where we weren't tracking Visible properly on
22217         recreated hwnds.
22218         - fixed the WM_PAINT double buffer handling to support re-entrant
22219         calls (yes, i know it's gross, but it's happening to us).
22220
22221 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22222         * ThemeWin32Classic.cs: changed drawing of selected days
22223         to make them look better.
22224
22225 2006-10-16  Chris Toshok  <toshok@ximian.com>
22226
22227         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
22228         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
22229
22230         * XplatUIX11.cs: move away from using hwnd.client_dc and
22231         hwnd.non_client_dc and on to a stack of dc's (and in window's
22232         case, PAINTSTRUCT's), so we can deal with nested Paint calls
22233         without puking or not disposing of Graphics objects.
22234
22235         * XplatUIOSX.cs: same.
22236
22237         * XplatUIWin32.cs: same.
22238
22239 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22240
22241         * FileDialog.cs: Don't call on_directory_changed inside
22242           OnSelectedIndexChanged (it changes the SelectedIndex too).
22243           Instead move it to OnSelectionChangeCommitted.
22244
22245 2006-10-13  Chris Toshok  <toshok@ximian.com>
22246
22247         * XplatUIX11.cs: more Destroy work.  the current code does the
22248         following things, in order:
22249
22250         1. Enumerates all handles of all controls at or below the one
22251         being destroyed, in pre-order.  As it is doing this, it marks the
22252         handles as zombie and clears all references to them.
22253         
22254         2. calls XDestroyWindow on the window passed in.
22255
22256         3. SendMessage's WM_DESTROY to all he handles in the accumulated
22257         list.
22258
22259 2006-10-13  Chris Toshok  <toshok@ximian.com>
22260
22261         * XplatUIX11.cs: set hwnd.zombie to true before calling
22262         SendMessage (WM_DESTROY).  this keeps us from marking the new
22263         window a zombie, and also keeps us from calling sendmessage at
22264         all.
22265
22266 2006-10-13  Jackson Harper  <jackson@ximian.com>
22267
22268         * TextControl.cs: Do not show the caret and selection at the same
22269         time.  Reduces ugliness by 35%.
22270
22271 2006-10-13  Chris Toshok  <toshok@ximian.com>
22272
22273         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
22274         zombie after we do the recursive call, so we actually do call
22275         SendMessage on the children controls.
22276         (GetMessage): if we find a pending paint event for a zombie hwnd,
22277         remove the hwnd from the paint queue, or else it will always be
22278         there (and we'll effectively loop infinitely)
22279
22280 2006-10-13  Mike Kestner  <mkestner@novell.com>
22281
22282         * MenuItem.cs : add Selected format under keynav too.
22283         Fixes #79528.
22284
22285 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
22286
22287         * PropertyGrid.cs: Fixed some NRE's and small difference between our
22288         implementation and that of MS.
22289
22290 2006-10-13  Chris Toshok  <toshok@ximian.com>
22291
22292         * Control.cs (OnInvalidated) only futz with the invalid_region if
22293         the control is double buffered.  this fixes the apparent hang in
22294         the ListView unit tests.  Someone needs to make the
22295         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
22296
22297 2006-10-13  Chris Toshok  <toshok@ximian.com>
22298
22299         * PropertyGridView.cs:
22300
22301         - do a little refactoring so that only one place calls
22302         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
22303         else call that.  Also make it Refresh, since there are redraw bugs
22304         otherwise (we should take a look at that...)
22305
22306         - do a little more refactoring work to share the body of code
22307         involved with the drop down.  it was duplicated in the code
22308         dealing with the listbox handling and in the code dealing with the
22309         UITypeEditors.
22310
22311         - add a Capture to the dropdown form's control once it's
22312         displayed, and add a MouseDown handler that checks to make sure
22313         the position is inside the control.  If it's not, close the
22314         dropdown.  This fixes #78190.
22315
22316         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
22317         if the value is different than the initial value.
22318         
22319 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
22320
22321         * Control.cs: see #78650
22322         - Fixed GetNextControl for several cases:
22323                 - Changed FindFlatForward to return 
22324                 correct sibling control when more than one
22325                 control has same TabIndex as the currently 
22326                 focused one.
22327                 - Changed FindFlatBackward to loop children
22328                 from last to first and apply same logic as in
22329                 FindFlatForward
22330                 - Changed FindControlForward to search for
22331                 children when control is not a container
22332                 but has children, or search for siblings if
22333                 control is a container...
22334                 - Changed FindControlBackward   to continue
22335                 searching for child controls when hitting 
22336                 Panel-like parents
22337                 
22338         - Fixed Focus method to update ActiveControl
22339         (FocusTest.FocusSetsActive failure)
22340         
22341         * TabControl.cs:
22342         - Focus rectangle now refreshes when gaining
22343         or losing focus
22344         - Removed grab for Tab key on IsInputKey that 
22345         was keeping tab navigation from working (#78650)
22346
22347 2006-10-13  Chris Toshok  <toshok@ximian.com>
22348
22349         * PropertyGridView.cs:
22350         - Rewrite SetPropertyValue to loop over SelectedGridItem's
22351         SelectedObjects.
22352
22353         - Deal with GridItem.Value == null a few places.
22354
22355         * PropertyGrid.cs: 
22356         - replace the PopulateGridItemCollection with a pair of methods
22357         which compute the intersection of all the properties in the
22358         SelectedObjects array.  Fixes #79615.
22359
22360         - Throw ArgumentException from set_SelectedObjects if there's a
22361         null in the array.
22362
22363         - Add GetTarget method which can be used to traverse up the
22364         GridItem.Parent chain.  It depends on the assumption that
22365         selected_objects for different GridEntries are always in the same
22366         order (a safe assumption).  Use this method and loop over all the
22367         selected objects in the entry when calling RemoveValueChanged and
22368         AddValueChanged.
22369         
22370         * GridEntry.cs: Make this handle multiple selected objects.
22371         .Value returns null if not all the selected objects share the same
22372         value.
22373
22374 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
22375         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
22376           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
22377           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
22378           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
22379           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
22380         add additional functionality.
22381
22382 2006-10-12  Mike Kestner  <mkestner@novell.com>
22383
22384         * ErrorProvider.cs : new ToolTipWindow ctor sig.
22385         * HelpProvider.cs : new ToolTipWindow ctor sig.
22386         * ToolTip.cs : remove ToolTip param from Window sig since it is
22387         not used.
22388         * ToolBar.cs : add tooltip support.  Fixes #79565.
22389
22390 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22391
22392         * ComboBox.cs: move the events in set_SelectedIndex to 
22393         after the call to HighlightIndex in order to avoid 
22394         possible recursion and subsequent problems with the call
22395         to HighlightIndex and include a range check in 
22396         set_HighlightIndex. Fixes #79588
22397         
22398 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22399
22400         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
22401         to ui thread's settings instead of sunday. 
22402         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
22403
22404 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
22405
22406         * DateTimePicker.cs
22407         * MonthCalendar.cs
22408         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
22409         and implement missing functionality (selecting different parts 
22410         of the date and edit them individually with the keyboard).
22411         
22412 2006-10-11  Chris Toshok  <toshok@ximian.com>
22413
22414         * Control.cs (OnInvalidated): fix NRE relating to last change.
22415
22416 2006-10-11  Chris Toshok  <toshok@ximian.com>
22417
22418         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
22419         atoms in _NET_WM_STATE here if the window is maximized.  We need
22420         to do this because we're *replacing* the existing _NET_WM_STATE
22421         property, so those atoms will be lost otherwise, and any further
22422         call to GetWindowState will return Normal for a window which is
22423         actually maximized.  Fixes #79338.
22424
22425 2006-10-11  Jackson Harper  <jackson@ximian.com>
22426
22427         * TextControl.cs: Special case for setting selection end to
22428         selection start, we basically kill the anchor.
22429         - some todo comments.
22430
22431 2006-10-11  Chris Toshok  <toshok@ximian.com>
22432
22433         * Control.cs: switch to using an "invalid_region" to track which
22434         parts of the image buffer need updating.  This is more code than
22435         the simple fix from r66532.  That version just attempted to always
22436         fill the entire buffer on redraw, which turns out to be
22437         inefficient when invalidating small rectangles.  This version
22438         simply adds the invalid rectangle to the invalid region.  When we
22439         get any WM_PAINT message we see if it can be filled using the
22440         image buffer, and if it can't (if the paint event's clip rectangle
22441         is visible in the invalid region) we first fill the image buffer.
22442         So, the image buffer is still a cache, we just fill it lazily.
22443
22444         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
22445         need it any longer.
22446
22447 2006-10-11  Chris Toshok  <toshok@ximian.com>
22448
22449         * XplatUIX11.cs (SetWindowPos): we need to update both position as
22450         well as size after calling XMoveResizeWindow.  This keeps us from
22451         ignoring future SetWindowPos calls.  Fixes the disappearing
22452         DateTimePicker in the ToolBarDockExample from bug #72499.
22453
22454 2006-10-11  Chris Toshok  <toshok@ximian.com>
22455
22456         * TextBoxBase.cs: reorder things a bit when it comes to
22457         resizing-causing-recalculation.  we were recalculating the
22458         document when our position was changed, which shouldn't happen.
22459         We only care about size changes.  Clear up some more redundant
22460         recalculation calls while I'm at it.  This makes the toolbar dock
22461         example snappy when you're just dragging toolbars around (since it
22462         causes a relayout whenever you move one.)
22463
22464 2006-10-11  Chris Toshok  <toshok@ximian.com>
22465
22466         * ToolBarButton.cs (get_Rectangle): this only returns
22467         Rectangle.Empty if Visible == false, or Parent == null.
22468         Parent.Visible doesn't matter.
22469
22470 2006-10-10  Chris Toshok  <toshok@ximian.com>
22471
22472         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
22473         by .net 1.1, so switch to an internal method instead.
22474
22475 2006-10-10  Chris Toshok  <toshok@ximian.com>
22476
22477         * Control.cs (WM_PAINT): when a control is double buffered we draw
22478         initially to the ImageBuffer and then copy from there.  But when a
22479         parent control which has child controls is double buffered, the
22480         initial drawing doesn't encompass the entire ClientRectangle of
22481         the parent control, so we end up with uninitialized bits (this is
22482         easily seen by dragging the top toolbar in
22483         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
22484         manually set the ClipRectangle of the paint_event (only the one we
22485         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
22486         of the nastiness in bug #72499.
22487
22488         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
22489         which we use in Control.cs's WM_PAINT handling.
22490
22491 2006-10-10  Jackson Harper  <jackson@ximian.com>
22492
22493         * TextBoxBase.cs: Finish off the autoscrolling stuff.
22494
22495 2006-10-10  Chris Toshok  <toshok@ximian.com>
22496
22497         * Cursor.cs: Apply a slightly different patch to the one suggested
22498         in #79609.
22499
22500 2006-10-10  Jackson Harper  <jackson@ximian.com>
22501
22502         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
22503         not the parent form.
22504         * TextControl.cs: use difference in old line count vs new count to
22505         calculate how many lines were added, this takes into account soft
22506         line breaks properly.
22507
22508 2006-10-10  Chris Toshok  <toshok@ximian.com>
22509
22510         * LinkLabel.cs: don't call MeasureCharacterRanges against a
22511         rectangle located at 0,0 and the size of the text.  Use
22512         ClientRectangle instead.  This fixes rendering of non-left aligned
22513         link labels.
22514
22515 2006-10-10  Jackson Harper  <jackson@ximian.com>
22516
22517         * TextBoxBase.cs: When we set the selection start position the
22518         caret.
22519         * TextControl.cs: Need to update the caret when we decrement it to
22520         zero.
22521         - Make sure that the selection_visible flag gets reset to false if
22522         the selection isn't visible.  Before this you could get it set to
22523         visible by changing the selection start, then changing the end to
22524         equal the start.
22525
22526 2006-10-09  Jackson Harper  <jackson@ximian.com>
22527
22528         * TreeView.cs: Don't update scrollbars when we aren't visible.
22529         * TreeNodeCollection.cs: Only need to update scrollbars if being
22530         added to an expanded visible node or the root node.
22531
22532 2006-10-09  Chris Toshok  <toshok@ximian.com>
22533
22534         * XplatUIX11.cs (SendMessage): fix NRE.
22535
22536 2006-10-09  Jackson Harper  <jackson@ximian.com>
22537
22538         * TextBoxBase.cs: Implement horizontal autoscrolling.
22539         * TextControl.cs: Add a movement types that allows moving forward
22540         and backwards without wrapping.
22541
22542 2006-10-09  Mike Kestner  <mkestner@novell.com>
22543
22544         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
22545         with focus "expansion" of labels.  Fixes #79532 and then some.
22546         * ThemeWin32Classic.cs : add LineLimit to ListView label format
22547         when wrapping.
22548
22549 2006-10-09  Jackson Harper  <jackson@ximian.com>
22550
22551         * TextBoxBase.cs: Set the default max values to MaxValue since
22552         we use the scrollbar for autoscrolling and the default value is
22553         100.  If we don't do this the caret won't keep up with typing
22554         after about 18 characters.
22555         * TextControl.cs: Make sure the selection is offset by the
22556         viewport x.  This fixes selection when using auto scrolling.
22557
22558 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
22559         
22560         * Form.cs: The active control should be selected after the 
22561         OnLoad so that any child control initialization that affects
22562         the selection is done. Fixes #79406
22563
22564 2006-10-06  Chris Toshok  <toshok@ximian.com>
22565
22566         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
22567         to have no evil effects.
22568
22569         - Stop selecting StructureNotifyMask on non-toplevel windows.
22570
22571           The only way children should be resized is by using the SWF api,
22572           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22573           Toplevel windows can be interacted with via the window manager,
22574           and so we keep the input mask there.
22575
22576           The other event StructureNotifyMask gives us (that we care
22577           about) is DestroyNotify.  The code is already structured such
22578           that it assumes we won't be getting a DestroyNotify event for
22579           the window we pass to XDestroyWindow (which is what
22580           StructureNotifyMask is supposed to guarantee.)  So, that code
22581           shouldn't be affected by this either.
22582
22583         - Stop selecting VisibilityChangeMask altogether.
22584
22585           We weren't doing anything with the resulting events anyway.
22586         
22587         This vastly reduces the number of X requests and events we see
22588         when resizing/laying out a large ui.
22589
22590 2006-10-06  Chris Toshok  <toshok@ximian.com>
22591
22592         * ScrollableControl.cs (DisplayRectangle): we need to take into
22593         account the DockPadding regardless of whether or not auto_scroll
22594         == true.  rework this slightly to this effect, and fix bug #79606,
22595         and part of #72499 (you can now see the drag handles and drag
22596         toolbars around).
22597
22598 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
22599
22600         * ListViewItem.cs: Collections of selected and checked items are now
22601         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
22602         we mark the collection "dirty".
22603         * ListView.cs: Marked collections readonly. Modified UpdateSelection
22604         to only clear SelectedItems when a new item is selected and MultiSelect
22605         is enabled. CheckedItems and SelectedItems now subscribe to Changed
22606         event of ListViewItemCollection, and mark its list dirty whenever
22607         that event is fire. This allows us to return selected/checked items 
22608         in the same order as they are in the Items collection. This matches
22609         the MS behavior.
22610
22611 2006-10-06  Chris Toshok  <toshok@ximian.com>
22612
22613         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
22614         right mouse clicks.  Fixes bug #79593.
22615
22616 2006-10-06  Chris Toshok  <toshok@ximian.com>
22617
22618         * Splitter.cs: doh, fix splitters that don't want to cancel the
22619         movement when you drag them.  Also, impose the limits on the
22620         values we send to the SplitterMovingEvent.  Fixes #79598.
22621
22622 2006-10-06  Jackson Harper  <jackson@ximian.com>
22623
22624         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
22625         since we use this for auto scrolling also.
22626
22627 2006-10-05  Chris Toshok  <toshok@ximian.com>
22628
22629         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
22630         beginning to think that most datagrid column types don't need this
22631         method.  Fixes bug #79392.
22632
22633 2006-10-05  Chris Toshok  <toshok@ximian.com>
22634
22635         * DataGrid.cs: move back to a more lazy scheme for creating the
22636         CurrencyManager, so we aren't updating it every time you set
22637         either DataSource or DataMember.  Also, don't call
22638         RecreateDataGridRows if the currency manager hasn't changed.
22639
22640 2006-10-05  Chris Toshok  <toshok@ximian.com>
22641
22642         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
22643         emitted, SelectedIndex should already be updated.  Fixes bug
22644         #78929.
22645
22646 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
22647
22648         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
22649           ToolStripTextBox.cs: Initial commit.
22650         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
22651
22652 2006-10-05  Jackson Harper  <jackson@ximian.com>
22653
22654         * TabControl.cs: We need to invalidate the tab control area when
22655         new ones are added (duh).
22656
22657 2006-10-03  Chris Toshok  <toshok@ximian.com>
22658
22659         * Form.cs (ProcessDialogKey): if the focused control is in this
22660         form and is a button, call its PerformClick method here.  Fixes
22661         #79534.
22662
22663 2006-10-04  Jackson Harper  <jackson@ximian.com>
22664
22665         * TabPage.cs: Ignore setting of Visible, and add an internal
22666         method for setting the controls visibility.  TabPage's Visible
22667         property is a little strange on MS, this seems to make us
22668         compatible, and fixes cases where people set all the tab pages to
22669         visible.
22670         * TabControl.cs: Use the new internal setting on tab pages
22671         visibility.
22672
22673 2006-10-03  Mike Kestner  <mkestner@novell.com>
22674
22675         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
22676
22677 2006-10-03  Mike Kestner  <mkestner@novell.com>
22678
22679         * ListView.cs : use is_visible instead of Visible to check if 
22680         scrollbars should be placed/sized.  Also some max_wrap_width
22681         love for LargeIcon view.  [Fixes #79533]
22682
22683 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
22684
22685         * TextControl.cs :
22686           Make set_TextAlign() do actually update the align. Fixed #78403.
22687
22688 2006-10-03  Chris Toshok  <toshok@ximian.com>
22689
22690         * DataGrid.cs: fix a crash when switching datasources if the
22691         vertical scrollbar is at someplace other than Value = 0.  Also,
22692         reduce the number of recalculation passes we do in SetDataSource
22693         from 2 to 1.
22694
22695 2006-10-03  Jackson Harper  <jackson@ximian.com>
22696
22697         * TextBoxBase.cs: Move the if value the same bail check up, we
22698         don't want to empty the document if it is already empty, this
22699         seems to severly mess up the caret.  TODO: I should probably fix
22700         the empty statement to update teh caret somehow.
22701
22702 2006-10-03  Chris Toshok  <toshok@ximian.com>
22703
22704         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
22705         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
22706         reflection, an internal row type, properties on said type, etc.)
22707         will work with our datagrid.  Fixes #79531.
22708
22709 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
22710
22711         * FileDialog.cs: Don't crash if a path is not accessible
22712           (System.UnauthorizedAccessException). Fixes #79569.
22713         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
22714           a ':' too. Return unknown icon for those paths/files.
22715
22716 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
22717
22718         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
22719         GetContainerControl returns null.
22720
22721 2006-10-02  Chris Toshok  <toshok@ximian.com>
22722
22723         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
22724         call to XGetWindowAttributes instead of "handle".  fixes an X
22725         error using notifyicon after the NotifyIconWindow to Form base
22726         class switch.
22727
22728 2006-10-02  Chris Toshok  <toshok@ximian.com>
22729
22730         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
22731         server grab and looping we need to do to get down to the most
22732         deeply nested child window.
22733         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
22734         QueryPointer again after the WarpPointer so we can generate a
22735         proper (fake) MotionNotify event to be enqueued in the destination
22736         window's queue.
22737         (GetCursorPos): call QueryPointer.
22738
22739         Fixes #79556.
22740
22741 2006-10-02  Jackson Harper  <jackson@ximian.com>
22742
22743         * NotifyIcon.cs: Derive the notify icon from a form, so things
22744         like FindForm work on it.
22745         - Swallow the WM_CONTEXTMENU message, since that is generated on
22746         mouse down, and context menu is a mouse up kinda guy.  I believe
22747         the correct fix here is probably to make the notify icon entirely
22748         NC area, but this seems to work fine for anyone not manipulating
22749         WndProc.
22750
22751 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
22752
22753         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
22754           ToolStripItemCollection.cs, ToolStripLabel.cs,
22755           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
22756           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
22757           Initial implementation.
22758         * TextRenderer.cs: Provide padding to MeasureText.
22759
22760 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
22761
22762         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
22763         of ButtonBaseAccessibleObject. Fix bug #79552.
22764
22765 2006-10-02  Jackson Harper  <jackson@ximian.com>
22766
22767         * MdiWindowManager.cs: When maximizing use the containers client
22768         rect, not it's bounds, so nc area is accounted correctly.
22769         - Use the parent form's size for the menu position, since the
22770         client isn't always the full form size.
22771
22772 2006-10-01  Chris Toshok  <toshok@ximian.com>
22773
22774         * ScrollableControl.cs: make sure neither right_edge or
22775         bottom_edge are < 0, since they're used as LargeChange for the
22776         horiz/vert scrollbars respectively.  Fixes #79539.
22777
22778 2006-10-01  Chris Toshok  <toshok@ximian.com>
22779
22780         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
22781         the xplatuix11 code can cause us to destroy/recreate our handle.
22782
22783         * XplatUIX11.cs
22784         (SystrayAdd):
22785         - this code can be invoked many times for the same Hwnd.  Make
22786           sure we only destroy the client window once (the first time this
22787           method is called).  This fixes bug #79544.
22788         - Remove the call to the improperly bound XSync.  why we had two
22789           bindings to this, I will never know, but this call resulted in
22790           events being discarded from the queue(!).
22791         - correct a misunderstanding of _XEMBED_INFO - the second atom is
22792           not our current state but the state we wish to be in.  So, 0 if
22793           we don't want to be mapped.  Change it to 1.
22794         (SystrayRemove): The XEMBED spec makes mention of the fact that
22795         gtk doesn't support the reparent of client windows away from the
22796         embedder.  Looking at gtksocket-x11.c seems to agree with this.
22797         The only avenue we have for removing systray icons is to destroy
22798         them.  We don't want the handle to go away for good, though, so
22799         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
22800         #79545.
22801         
22802 2006-10-01  Chris Toshok  <toshok@ximian.com>
22803
22804         * Form.cs (WndProc): inline the native_enabled variable usage into
22805         the cases in which it's used.  Fixes #79536.
22806
22807 2006-09-29  Mike Kestner  <mkestner@novell.com>
22808
22809         * ListView.cs : toggle the selection state for ctrl clicks in 
22810         multiselect mode. [Fixes #79417]
22811
22812 2006-09-29  Mike Kestner  <mkestner@novell.com>
22813
22814         * ListView.cs : kill CanMultiSelect and refactor the selection
22815         code to support multiselection in the absence of mod keys. Steal
22816         arrow/home/end keys by overriding InternalPreProcessMessage to
22817         restore regressed keynav behavior.
22818         [Fixes #79416]
22819
22820 2006-09-29  Jackson Harper  <jackson@ximian.com>
22821
22822         * MdiClient.cs: Repaint the titlebars when the active window is
22823         changed.
22824
22825 2006-09-29  Chris Toshok  <toshok@ximian.com>
22826
22827         * Application.cs: when entering a runloop with a modal, make sure
22828         the hwnd is enabled.  Fixes #79480.
22829
22830 2006-09-29  Chris Toshok  <toshok@ximian.com>
22831
22832         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
22833         when ListManager.CanAddRows == false, bump us back one.
22834
22835         * DataGridColumnStyle.cs (ParentReadOnly): remove the
22836         listmanager.CanAddRows check.  This makes ArrayLists uneditable
22837         using a datagrid, which is not right.
22838         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
22839         is an IEditable, but call property_descriptor.SetValue regardless.
22840         fixes #79435.
22841
22842 2006-09-29  Chris Toshok  <toshok@ximian.com>
22843
22844         * DataGridBoolColumn.cs: we need to test equality in the face of
22845         possible null values (as is the case with the default NullValue).
22846         This patch keeps us from crashing in that case.
22847
22848 2006-09-29  Jackson Harper  <jackson@ximian.com>
22849
22850         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
22851         here, since it will get called for every node collection in the
22852         tree. This is now done in the treeview once the sorting is
22853         finished.
22854         * TreeView.cs: Recalculate the visible order, and update the
22855         scrollbars after sorting, set the top nope to the root so that the
22856         recalc actually works.
22857
22858 2006-09-29  Chris Toshok  <toshok@ximian.com>
22859
22860         * LinkLabel.cs: more handling of the default link collection in
22861         the face of LinkArea manipulation.  The default link collection
22862         contains 1 element (start=0,length=-1).  If the user sets LinkArea
22863         to anything and the links collection is the default, clear it.
22864         Then only add the link if its nonempty.  Fixes #79518.
22865
22866 2006-09-29  Chris Toshok  <toshok@ximian.com>
22867
22868         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
22869         piece correctly when we hit a '\n'.  Fixes #79517.
22870
22871 2006-09-29  Chris Toshok  <toshok@ximian.com>
22872
22873         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
22874         change the binding of gdk_init_check to take two IntPtr's, and
22875         pass IntPtr.Zero for both of them.  Fixes #79520.
22876
22877 2006-09-29  Mike Kestner  <mkestner@novell.com>
22878
22879         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
22880         [Fixes #78779]
22881
22882 2006-09-28  Jackson Harper  <jackson@ximian.com>
22883
22884         * XplatUIX11.cs: When translating NC messages make sure we go from
22885         whole window to screen, not client window to screen.
22886         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
22887         method doesn't exist
22888         - Skip over controls that aren't forms when arranging.
22889
22890 2006-09-28  Jackson Harper  <jackson@ximian.com>
22891
22892         * XplatUIWin32.cs: Clip the rect to the parent window.
22893         * XplatUIStructs.cs: Add clipping modes struct.
22894         * InternalWindowManager.cs: New private method that factors title
22895         bar heights in when calculating the pos of an NC mouse message.
22896         - Use SendMessage to force a paint when the form's size is changed
22897         instead of painting the decorations immediately.
22898         - Don't let the NC button click messages get to DefWndProc,
22899         because they will attempt to handle windowing themself, and this
22900         messes up z-order (it will put them in front of the scrollbars).
22901         * XplatUIX11.cs: Make sure that we don't reset window managers if
22902         we already have one (ie the window is an MDI window).
22903
22904 2006-09-28  Chris Toshok  <toshok@ximian.com>
22905
22906         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
22907         menu code really needs going over.
22908
22909 2006-09-27  Chris Toshok  <toshok@ximian.com>
22910
22911         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
22912         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
22913         window is maximizable.  So, we need to make sure that even if we
22914         clear the border/wm frame of those functions, they're still
22915         available (basically, we remove the decoration without removing
22916         the function).  Half the fix for #79338.
22917
22918 2006-09-27  Chris Toshok  <toshok@ximian.com>
22919
22920         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
22921         Fixes bug #79515.
22922
22923 2006-09-27  Chris Toshok  <toshok@ximian.com>
22924
22925         * Splitter.cs: reorder things a bit so that we don't actually
22926         draw/move the splitter until after calling OnSplitterMoving.  This
22927         lets users cancel/disallow the movement by explicitly setting
22928         event.SplitX/SplitY.  Fixes #79372.
22929
22930 2006-09-27  Jackson Harper  <jackson@ximian.com>
22931
22932         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
22933         because it is most likely on a window being destroyed, and that
22934         will give us an X11 error.
22935
22936 2006-09-27  Chris Toshok  <toshok@ximian.com>
22937
22938         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
22939         the dropdown button now toggles between showing and hiding the
22940         dropdown.  Also, get rid of dropdown_form_showing and just use
22941         dropdown_form.Visible.  We still don't do a grab, but I'll leave
22942         that part to someone who has handled Capture-fu before.
22943
22944 2006-09-27  Chris Toshok  <toshok@ximian.com>
22945
22946         * DataGrid.cs: return false if alt isn't pressed when '0' is
22947         pressed.  this keeps the '0' key from being swallowed, and fixes
22948         bug #79350.
22949
22950 2006-09-27  Chris Toshok  <toshok@ximian.com>
22951
22952         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
22953         Calling Refresh (in response to a scrollbar event) screws up the
22954         scrollbar painting.  Fixes bug #78923.
22955
22956 2006-09-27  Chris Toshok  <toshok@ximian.com>
22957
22958         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
22959         then insert into hashtable" blocks threadsafe.
22960
22961 2006-09-27  Chris Toshok  <toshok@ximian.com>
22962
22963         * MessageBox.cs (CreateParams): the styles should be |'ed with our
22964         baseclass's, since otherwise the
22965         ControlBox/MinimizeBox/MaximizeBox assignments above have no
22966         effect.  This gets the close button back in messageboxes.
22967
22968 2006-09-27  Chris Toshok  <toshok@ximian.com>
22969
22970         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
22971         flag, not just != 0.  this makes flags that are actually multiple
22972         bits (like WS_CAPTION) work.  fixes bug #79508.
22973
22974 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
22975
22976         * PageSetupDialog.cs: add support for getting and settings the 
22977         paper size, source and orientation.
22978
22979 2006-09-26  Chris Toshok  <toshok@ximian.com>
22980
22981         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
22982         and caption == "", we need to remove the resize handles as well as
22983         the title bar.
22984
22985         * Control.cs (set_Text): turns out that setting Text on a form
22986         should change the WM styles on the window, since if ControlBox ==
22987         false, the only way to get a window border is to have a non-""
22988         Text property.  check winforms/forms/text.cs for an example.  so,
22989         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
22990         update both window styles and title.  This fixes a lot of dialogs
22991         (including the preferences dialog in MonoCalendar.)
22992
22993 2006-09-26  Chris Toshok  <toshok@ximian.com>
22994
22995         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
22996         control isn't a Form), call Win32ShowWindow to hide the window,
22997         but don't update the control Visible property.  When we reparent
22998         back to a parent control, call SetVisible in order for the
22999         window's visibility to be reinstated.
23000
23001         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
23002         the FosterParent.
23003
23004         * Control.cs (ControlCollection.Remove): remove that value.Hide()
23005         call for good, since it breaks MonoCalendar (and other things I'm
23006         sure.) Also, set all_controls to null *after* the owner calls,
23007         which end up regenerating it.
23008         (ChangeParent): allow new_parent to be == null, passing
23009         IntPtr.Zero down to XplatUI.
23010
23011         this fixes #79294 the right way.
23012
23013 2006-09-26  Mike Kestner  <mkestner@novell.com>
23014
23015         * GridEntry.cs : internal SetParent method.
23016         * PropertyGrid.cs : attach to property changed on the proper
23017         target if we have a hierarchical grid with subobjects. Setup
23018         GridItem.Parent for hierarchical items.
23019         * PropertyGridView.cs : Set value on the correct target for
23020         hierarchical grids. [Fixes #78903]
23021
23022 2006-09-26  Chris Toshok  <toshok@ximian.com>
23023
23024         * Control.cs (ChildNeedsRecreating): this should return true if
23025         either we're being recreated and the child is in our list, or our
23026         parent is waiting for our recreation.
23027
23028 2006-09-26  Chris Toshok  <toshok@ximian.com>
23029
23030         * Control.cs (ControlCollection.Remove): reinstate the
23031         value.Hide() call as suggested in bug #79294.
23032
23033 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
23034
23035         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
23036         coordinates (versus a relative move).
23037
23038 2006-09-26  Chris Toshok  <toshok@ximian.com>
23039
23040         * Control.cs: rework child recreation a little bit.  It turns out
23041         that we race between the DestroyNotify the WM_DESTROY message.  If
23042         the parent gets its DestroyNotify before the child gets the
23043         WM_DESTROY message, the child ends up not recreating (since the
23044         parent finishes its recreation on DestroyNotify, and the child
23045         checks ParentIsRecreating.)
23046
23047         So, instead we store off a list of all the child controls which
23048         need to be recreated when the parent control starts to recreate
23049         itself.  Then, when child controls get their WM_DESTROY message we
23050         check to see if they're in the parent's pending recreation list,
23051         and if so, we recreate.  This removes all dependency on ordering
23052         from the code and fixes the initial MonoCalendar upgrade dialog.
23053         
23054 2006-09-26  Jackson Harper  <jackson@ximian.com>
23055
23056         * TextControl.cs: Use the Line to get the length of the line,
23057         since soft line breaks can change the end line.
23058
23059 2006-09-26  Chris Toshok  <toshok@ximian.com>
23060
23061         * Control.cs (ControlCollection.AddImplicit): don't add the
23062         control again if it's already in one of our lists.  This keeps us
23063         from adding controls over and over again for comboboxes when their
23064         handle gets recreated (as the combobox adds implicit controls in
23065         OnHandleCreated).  Fixes the X11 errors in bug #79480.
23066
23067 2006-09-26  Jackson Harper  <jackson@ximian.com>
23068
23069         * TextControl.cs: When deleting characters make sure that any
23070         orphaned zero lengthed tags get deleted.
23071         - Fix ToString for zero lengthed tags.
23072
23073 2006-09-25  Jackson Harper  <jackson@ximian.com>
23074
23075         * TextControl.cs: When getting a tag at the location there can be
23076         multiple tags at the same spot, these are 0-lengthed tags that
23077         appear when extra formatting has been stuck in a location.  We
23078         need to pull out the last of these 0 lengthed tags.
23079
23080 2006-09-25  Jackson Harper  <jackson@ximian.com>
23081
23082         * TextControl.cs: Fix print out in debug method.
23083         * TextBoxBase.cs: When text is set bail if we are setting to the
23084         previous value.
23085         
23086 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
23087
23088         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
23089           It is now possible to change the selected index in a FontXXXListBox
23090           with the up and down arrow keys from the FontXXXTextBoxes.
23091           Also, send the FontXXXTextBox mouse wheel event to the corresponding
23092           FontXXXListBoxes to match ms.
23093
23094 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
23095
23096         * SystemInformation.cs: Return a clone of the theme's MenuFont because
23097         anyone can dispose it, anytime. All other properties returns enums, 
23098         structs or basic types so they don't need such tricks.
23099
23100 2006-09-22  Jackson Harper  <jackson@ximian.com>
23101
23102         * XplatUI.cs:
23103         * XplatUIWin32.cs:
23104         * Clipboard.cs:
23105         * DataFormats.cs:
23106         * XplatUIOSX.cs:
23107         * XplatUIDriver.cs: Update interface to add a primary selection
23108         flag, so the driver can use the primary selection buffer if
23109         needed.
23110         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
23111
23112         * RichTextBox.cs: We need to supply the data object to paste now
23113         (so we can choose to supply CLIPBOARD or PRIMARY).
23114         * TextBoxBase.cs: Supply data object to paste (see above).
23115         - Middle click uses the primary selection data object.
23116         
23117 2006-09-21  Chris Toshok  <toshok@ximian.com>
23118
23119         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
23120         of SetWMStyles.  It's still a rat's nest and is largely
23121         order-dependent which I dislike immensely.  This also fixes the X
23122         button disappearing from toplevel forms.
23123
23124 2006-09-21  Mike Kestner <mkestner@novell.com>
23125
23126         * ListBox.cs: move Jordi's click/dblclick raising code to the
23127         mouse up handler.
23128
23129 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23130
23131         * ListBox.cs: Fixes 79450
23132
23133 2006-09-21  Mike Kestner <mkestner@novell.com>
23134
23135         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
23136         to deal with people updating the TreeNodeCollection after the tree
23137         is disposed.  "Fixes" 79330.
23138
23139 2006-09-20  Jackson Harper <jackson@ximian.com>
23140
23141         * TextControl.cs: Push the cursor record onto the undo stack
23142         before the delete action. This fixes 78651.
23143
23144 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
23145
23146         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
23147         CreateParams. Fixes 79329.
23148
23149 2006-09-19  Chris Toshok  <toshok@ximian.com>
23150
23151         * XplatUIX11.cs: a couple of blanket code massage passes to clean
23152         things up a bit.  First, get rid of the NetAtoms array (and the NA
23153         enum), and just embed the atoms as static fields.  Also, add a
23154         couple of functions (StyleSet and ExStyleSet) to clean up all the
23155         bitmask testing of styles.
23156
23157         * X11Structs.cs: remove the NA enum, not needed anymore.
23158         
23159 2006-09-19  Chris Toshok  <toshok@ximian.com>
23160
23161         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
23162         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
23163         added cleanup to get MessageBox titles appearing again, which were
23164         broken by my earlier fix for caption-less/ControlBox-less windows.
23165
23166 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
23167
23168         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
23169           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
23170           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
23171           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
23172           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
23173           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
23174           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
23175           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
23176           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
23177           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
23178           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
23179             Inital import.
23180         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
23181           ToolStripButton.cs: Stubs needed for above.
23182         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
23183
23184 2006-09-15  Chris Toshok  <toshok@ximian.com>
23185
23186         * XplatUIX11.cs:
23187         - make the MessageQueues hashtable Synchronized.
23188         
23189         - SendMessage: if the Hwnd is owned by a different thread, use the
23190         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
23191         thread.  Fixes bug #79201.
23192
23193 2006-09-15  Chris Toshok  <toshok@ximian.com>
23194
23195         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
23196         ControlBox == false, we disallow maximize/minimize/close.  If the
23197         form Caption is "" we also disallow move (and get rid of the Title
23198         decoration).  Unfortunately, regardless of how things are set,
23199         we're stuck with the Title and WM menu.
23200
23201 2006-09-15  Chris Toshok  <toshok@ximian.com>
23202
23203         * Application.cs: add locking around the static message_filters
23204         ArrayList, part of #79196.
23205
23206 2006-09-15  Chris Toshok  <toshok@ximian.com>
23207
23208         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
23209         Form.ControlBox == false, the window has no titlebar nor resize
23210         handles.  fixes bug #79368.
23211
23212 2006-09-15  Chris Toshok  <toshok@ximian.com>
23213
23214         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
23215         >= 0.  Fixes bug #79370.
23216
23217 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
23218         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
23219         * Control.cs:
23220             Add properties: LayoutEngine, Margin, DefaultMargin.
23221             Add method: GetPreferredSize.
23222             Move layout logic from PerformLayout to layout engines. 
23223
23224 2006-09-13  Chris Toshok  <toshok@ximian.com>
23225
23226         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
23227         fix for #79326 broke #78718, so this change addresses that.
23228
23229         - in SendWMDestroyMessages remove the call to
23230         CleanupCachedWindows, since we might be recreating the control and
23231         need to maintain the references to right Hwnd handles.  Also, set
23232         the zombie flag to true for each of the children in the hierarchy
23233         instead of calling hwnd.Dispose.  This will cause GetMessage to
23234         ignore all events for the window except for DestroyNotify.
23235
23236         - In GetMessage, ignore messages except for DestroyNotify for
23237         zombie hwnds.
23238         
23239         * Control.cs: revert the is_recreating fix from the last
23240         ChangeLog.  It's definitely "right", but it breaks switching from
23241         an MDI form to a non-MDI form.  Will need to revisit that.
23242
23243         * Hwnd.cs: add a zombie flag, which means "the
23244         client_window/whole_window handles are invalid, but we're waiting
23245         for the DestroyNotify event to come in for them".  Set the flag to
23246         false explicitly if setting WholeWindow/ClientWindow, and also
23247         when Disposing.
23248         
23249 2006-09-13  Chris Toshok  <toshok@ximian.com>
23250
23251         * XplatUIX11.cs: rework window destruction slightly.
23252
23253         - when destroying the windows associated with a control, we don't
23254         need 2 separate XDestroyWindow calls.  Just the one for the
23255         whole_window (or for client_window if whole_window is somehow
23256         IntPtr.Zero -- can this happen?) is enough.
23257
23258         - reworked SendWMDestroyMessages slightly, so we always dispose
23259         the child control hwnd's after sending the messages.
23260         
23261         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
23262         the two places it was used (one was even using hwnd.Handle and the
23263         other hwnd.client_window.  ugh), adding another call in
23264         SendWMDestroyMessages.  We need this new call because now the
23265         DestroyNotify events in the queue will be ignored for the child
23266         controls (as their hwnd's were disposed, and the window id's
23267         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
23268
23269         - this fixes bug #79326.
23270
23271 2006-09-13  Chris Toshok  <toshok@ximian.com>
23272
23273         * Control.cs: don't always set is_recreating to false at the end
23274         of RecreateHandle, since sometimes we're not done (and won't be
23275         until WndProc handles the WM_DESTROY message).  Also, set
23276         is_recreating to false in the WM_DESTROY handling code.  Part of
23277         the fix for bug #79326.
23278
23279 2006-09-13  Miguel de Icaza  <miguel@novell.com>
23280
23281         * X11DesktopColors.cs: Start the droppage of debugging messages.
23282
23283         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
23284
23285 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
23286
23287         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
23288
23289 2006-09-12  Chris Toshok  <toshok@ximian.com>
23290
23291         * DataGrid.cs (get_ListManager): if the list_manager is null, try
23292         to create it using SetDataSource.  Fixes bug #79151.
23293
23294 2006-09-11  Chris Toshok  <toshok@ximian.com>
23295
23296         * XEventQueue.cs: add a DispatchIdle property.
23297
23298         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
23299         either the queue is null, or the queue has DispatchIdle set to
23300         true.
23301         (DoEvents): set queue.DispatchIdle to false around the
23302         peek/translate/dispatch message loop in this method.  This keeps
23303         Application.Doevents from emitting idle events.  Part of the fix
23304         for #78823.
23305
23306 2006-09-11  Chris Toshok  <toshok@ximian.com>
23307
23308         * DataGrid.cs (set_DataSource): make this work for both the
23309         winforms/datagrid test and ReportBuilder.  It seems as though when
23310         we've created a ListManager (or maybe it's if we have a
23311         BindingContext?), when we set the DataSource it clears the
23312         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
23313         #79333.
23314
23315 2006-09-11  Chris Toshok  <toshok@ximian.com>
23316
23317         * XplatUIX11.cs: deal with queue being null, which happens in all
23318         the Clipboard functions.  Fixes one of the two problems mentioned
23319         in #78612.
23320
23321 2006-09-11  Chris Toshok  <toshok@ximian.com>
23322
23323         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
23324         button on various spots (including outside the menu) works closer
23325         to MS, and doesn't crash.  Fixes #79343.
23326
23327 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
23328
23329         * ListView.cs: Do not initialize item_sorter in init. To match MS,
23330         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
23331         and the internal comparer is set. When a new ListViewItemSorter is set,
23332         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
23333         was specified. No further processing is necessary if SortOrder is set
23334         to it's current value. If Sorting is modified to None, and View is
23335         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
23336         (either custom or our internal ItemComparer) to null, on 1.0 profile
23337         only set item_sorter to null if its our internal IComparer. If Sorting
23338         is modified to Ascending or Descending, then use our internal IComparer
23339         if none is set, and if the current IComparer is our internal one then:
23340         on 2.0 profile always replace it with one for new Sorting, and on 1.0
23341         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
23342         Enum.IsDefined to verify whether a valid View value is specified in
23343         its setter. Automatically sort listview items when listview is
23344         created. In Sort, do nothing if ListView is not yet created, or if
23345         no item_sorter is set (no Sorting was set, Sorting was explicitly set
23346         to None or ListViewItemSorter was set to null). Added Sort overload
23347         taking a bool to indicate whether the ListView should be redrawn when
23348         items are sorted (we use this in ListViewItemCollection to avoid double
23349         redraws). Modified our internal IComparer to take the sort order into
23350         account. In Add and AddRange methods of ListViewItemCollection, also
23351         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
23352         view), but use overload with noredraw option to avoid double redraw.
23353         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
23354         true when View is Tile, and do the same when attempting to set View to
23355         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
23356         for selected/checked indices, as it involves overhead when sorting is
23357         done while these collections are not used all that often. Instead
23358         we'll build the indices on demand. Modified IList implementation of
23359         CheckedIndexCollection to use public methods if object is int.
23360         Modified CheckedListViewItemCollection to hide checked items if
23361         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
23362         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
23363         IList implementation in SelectedIndexCollection to use public methods
23364         if object is int. Modified SelectedListViewItemCollection to hide
23365         selected items if listview is not yet created.
23366         * ListViewItem.cs: CheckedIndices list no longer needs to be
23367         maintained separately (see ListView changes). Also clone font, fixes
23368         test failure.
23369
23370 2006-09-11  Mike Kestner  <mkestner@novell.com>
23371
23372         * ComboBox.cs: if we are updating the contents of the currently
23373         selected index, refresh the control or the textbox selection.
23374         [Fixes #79066]
23375
23376 2006-09-11  Mike Kestner  <mkestner@novell.com>
23377
23378         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
23379         the 'specified' logic has been moved there.  This seems like a bug 
23380         in Control.cs, since our current SetBoundsCore completely ignores 
23381         the specified parameter.  Peter's commit seems to indicate that is 
23382         the way the MS control implementation works.  [Fixes #79325]
23383
23384 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
23385
23386         * XplatUI.cs: Set default_class_name to be composed
23387         of current domain id. This allows MWF to be loaded in multiple
23388         domains on Win32.
23389
23390 2006-09-09  Miguel de Icaza  <miguel@novell.com>
23391
23392         * X11Keyboard.cs: If we are unable to obtain the input method, do
23393         not call CreateXic to create the input context.   Should fix
23394         #78944/79276.
23395
23396 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
23397
23398         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
23399           Simplified gnome support by adding more pinvokes to get the
23400           icon for a file or mime type.
23401
23402 2006-09-08  Jackson Harper  <jackson@ximian.com>
23403
23404         * MenuAPI.cs: Deslect popup context menu items before closing the
23405         window, so that you don't see the previously selected item
23406         selected when you reopen the menu.
23407         * TextControl.cs: Update the cursor position even if we don't have
23408         focus.  This fixes typing in things like the ComboBox.  I'm not
23409         totally sure we should always set the visibility if we don't have
23410         focus, but couldn't find any corner cases where the cursor showed
23411         up when it shouldn't.
23412
23413 2006-09-08  Chris Toshok  <toshok@ximian.com>
23414
23415         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
23416         our arrays are length 256.  & 0xff before indexing.  Fixes the
23417         crash in bug #78077.
23418         
23419 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23420
23421         * ThemeWin32Classic.cs: 
23422         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
23423         is true. Handle that check box too.
23424
23425 2006-09-07  Chris Toshok  <toshok@ximian.com>
23426
23427         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
23428         79244.
23429
23430 2006-09-07  Chris Toshok  <toshok@ximian.com>
23431
23432         * Control.cs: in set_BackColor only do the work if
23433         background_color != value.
23434
23435         * XplatUIX11.cs: move the clearing of invalid areas (both client
23436         and nc) to the same block of code where we set (nc_)expose_pending
23437         to false.  That is, move it from PaintEventEnd to PaintEventStart,
23438         so things that cause invalidates from within OnPaint will trigger
23439         another call to OnPaint.  Fixes bug #79262.
23440
23441 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
23442
23443         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
23444         * FileDialog.cs: Fix typo
23445
23446 2006-09-07  Jackson Harper  <jackson@ximian.com>
23447
23448         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
23449         for tab pages if they have any.
23450
23451 2006-09-06  Mike Kestner  <mkestner@novell.com>
23452
23453         * Splitter.cs: use the "current" rect when finishing drag handle
23454         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
23455
23456 2006-09-06  Mike Kestner  <mkestner@novell.com>
23457
23458         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
23459         support offset splitters. [Fixes #79298]
23460
23461 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
23462
23463         * Mime.cs: Fixed a bug that could override the global mime type
23464           result.
23465
23466 2006-09-05  Jackson Harper  <jackson@ximian.com>
23467
23468         * TabControl.cs: Better calculation method for setting the slider
23469         pos. Prevents crashes on really wide tabs.
23470         - Draw Image on tab pages if an image list is used.
23471
23472 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23473
23474         * MonthCalendar.cs: When Font changes, the Size should be
23475         updated to fit the new font's space requirements.
23476
23477 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
23478
23479         * ListBox.cs: If the items are cleared with Items.Clear set
23480           top_index to 0.
23481
23482 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23483
23484         * MonthCalendar.cs: Handle arrow keys as input keys. Also
23485         fire DateChanged event instead of DateSelected event when
23486         the date was changed by keyboard interaction.
23487
23488 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23489
23490         * DateTimePicker.cs: Handle DateChanged for the associated
23491         month_calendar control, and set month_calendar.Font from 
23492         OnFontChanged method, as well as resize the height of the
23493         control when needed. Make PreferredHeight proportional.
23494
23495 2006-09-01  Chris Toshok  <toshok@ximian.com>
23496
23497         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
23498         properties.
23499
23500         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
23501
23502 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
23503
23504         * FileDialog.cs: Set ClientSize instead of window size, to allow space
23505           for decorations (Fixes #79219)
23506
23507 2006-09-01  Mike Kestner  <mkestner@novell.com>
23508
23509         * ComboBox.cs: first stab at sorting plus some selection handling
23510         fixes to bring us more in line with MS behavior.  Also switches back
23511         to index based selection.  Alternative patches for index-based 
23512         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
23513         and latency@gmx.de on bug 78848.  I assume they were similar to this
23514         code I've had simmering in my tree forever.
23515         [Fixes #78848]
23516
23517 2006-09-01  Chris Toshok  <toshok@ximian.com>
23518
23519         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
23520         when setting list position guard against ending up with a -1 index
23521         (the other part of the fix for #78812).  Should probably make sure
23522         we don't need the analogous fix in the ItemDeleted case.
23523
23524         * DataGrid.cs:
23525         - in SetDataSource, work around the fact that the way
23526         OnBindingContextChanged is invoked will cause us to re-enter this
23527         method.  I'll remove the hack once I investigate
23528         OnBindingContextChanged.
23529
23530         - fix the logic in set_DataSource and set_DataMember (basically
23531         what to do if the other of the two is null.)
23532         
23533         - in OnListManagerItemChanged, we need to take into account the
23534         edit row when deciding whether or not to call RecreateDataGridRows
23535         (part of the fix for #78812).
23536
23537 2006-09-01  Jackson Harper  <jackson@ximian.com>
23538
23539         * Splitter.cs: Don't do anything if there is no control to affect
23540         (prevents us from crashing in weird tet cases).
23541         * TreeView.cs: Bounding box for the mouse movement reverting
23542         focus/selection back to previously selected node.  This matches
23543         MS, and makes the tree a lot more useable.
23544         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
23545         use clipping so they are not drawn.  This fixes when the control
23546         is set to have a transparent background, or if it was over an
23547         image.
23548
23549 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
23550
23551         * MimeIcon.cs: Improved handling for reading default icons when
23552           using gnome (2.16 made it necessary). Check and read svg icons
23553           first, then 48x48 and then 32x32 icons.
23554
23555 2006-08-31  Chris Toshok  <toshok@ximian.com>
23556
23557         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
23558         visible.
23559
23560         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
23561         ProcessKeyPreview.  Fixes part of #77806.
23562
23563         * DataGrid.cs: big patch.
23564
23565         - revert the queueing up of DataSource/DataMember if inside
23566         BeginInit/EndInit calls.  That's not the way the datagrid achieves
23567         its delayed databinding.  Instead, call SetDataSource in
23568         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
23569         #78811.
23570
23571         - Also, it wasn't mentioned in #78811, but the test case exhibits
23572         behavior that was lacking in our datagrid implementation - Columns
23573         that have mapping names that don't exist in the datasource's
23574         properties aren't shown.  Yuck.  To fix this I added the bound
23575         field to the column style, and basically any calculation to figure
23576         out anything about columns uses a loop to find the bound columns.
23577         still need to investigate if I can cache an array of the bound
23578         columns or if the indices must be the same.
23579
23580         - When setting CurrentCell, we no longer abort if the cell being
23581         edited was in the add row.  This fixes the other part of #77806.
23582
23583         - The new code also fixes #78807.
23584         
23585         * ThemeWin32Classic.cs: perpetrate the same disgusting
23586         column.bound field hack, and only render bound fields.
23587
23588 2006-08-31  Chris Toshok  <toshok@ximian.com>
23589
23590         * DataGridColumnStyle.cs: add bound field.  this field is true if
23591         the datasource has a property corresponding to the mapping name.
23592
23593         * DataGridTableStyle.cs: set the bound field on the column styles
23594         depending on whether or not we have a column for that property.
23595
23596 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
23597
23598         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
23599           splitter control (fixes #79228)
23600
23601 2006-08-31  Chris Toshok  <toshok@ximian.com>
23602
23603         * DataGridColumnStyle.cs: we need to delay the assignment of
23604         property descriptor until the last possible moment due to the lazy
23605         databinding stuff in the datagrid.  Also, fix the exceptions
23606         thrown by CheckValidDataSource to match MS.
23607
23608 2006-08-31  Jackson Harper  <jackson@ximian.com>
23609
23610         * Form.cs: When activated select the active control, if there is
23611         no active control, we select the first control.
23612         * XplatUIX11.cs: If there is no focus control when we get a
23613         FocusIn event, find the toplevel form and activate it.  This
23614         occurs when you popup a window, it becomes the focus window, then
23615         you close that window, giving focus back to the main window.
23616
23617 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23618
23619         * MonthCalendar.cs: 
23620         * ThemeWin32Classic.cs: Cache Font in bold style, as well
23621         as StringFormat with Center alignments in MonthCalendar,
23622         instead of creating new ones when drawing the control. 
23623         Also, draw the month name in bold style.
23624
23625 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
23626
23627         * Control.cs:
23628           - PerformLayout(): It would seem MS performs the fill even if the 
23629             control is not visible (part of #79218 fix)
23630           - ResetBackColor(): Use the setter to reset the color, to allow
23631             overriders to catch the change.
23632         * Form.cs:
23633           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
23634           - CreateHandle(): dito (part of $79218 fix)
23635           - Don't set an icon if we have a dialog
23636         * ScrollableControl.cs:
23637           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
23638           - ScrollIntoView(): No need to scroll if control is already visible
23639             (resolves fixme and fixes #79218)
23640
23641 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23642
23643         * MonthCalendar.cs: Change proportions in SingleMonthSize
23644         to match the aspect of the original control.
23645
23646 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
23647
23648         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
23649           get updated when they get maximized.
23650
23651 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
23652
23653         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
23654
23655 2006-08-29  Chris Toshok  <toshok@ximian.com>
23656
23657         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
23658
23659 2006-08-29  Jackson Harper  <jackson@ximian.com>
23660
23661         * TreeView.cs: Need to track selected node and highlighted node,
23662         they aren't always the same thing, when the mouse is down on a
23663         node it is hilighted, but not selected yet.
23664         - Do the HideSelection stuff right
23665         - Need to focus on rbutton mouse down. And redraw selection when
23666         right click is mouse upped.
23667
23668 2006-08-29  Mike Kestner  <mkestner@novell.com>
23669
23670         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
23671         when SubItems.Count < Columns.Count.  [Fixes #79167]
23672
23673 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
23674
23675         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
23676
23677 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
23678
23679         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
23680           from X. Only send based on ConfigureNotify if we don't have the
23681           correct location in hwnd (if the window manager moved us)
23682
23683 2006-08-28  Mike Kestner  <mkestner@novell.com>
23684
23685         * ListView.cs: remove a TODO. 
23686         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
23687         [Fixes ListView part of #79166]
23688
23689 2006-08-28  Mike Kestner  <mkestner@novell.com>
23690
23691         * ListView.cs: move wheel handler to parent since it is focused
23692         instead of the item_control now.  [Fixes #79177]
23693
23694 2006-08-28  Mike Kestner  <mkestner@novell.com>
23695
23696         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
23697         when the control is focused. [Fixes #79171]
23698
23699 2006-08-28  Mike Kestner  <mkestner@novell.com>
23700
23701         * ListView.cs: size the item and header controls for empty and
23702         unscrollable views.
23703         * ThemeWin32Classic.cs: draw disabled backgrounds.
23704         [Fixes #79187]
23705
23706 2006-08-28  Chris Toshok  <toshok@ximian.com>
23707
23708         * Form.cs: remove unused "active_form" static field.
23709
23710         * Hwnd.cs: lock around accesses to static windows collection.
23711
23712         * Application.cs: lock threads in Exit ().
23713
23714 2006-08-28  Chris Toshok  <toshok@ximian.com>
23715
23716         * NativeWindow.cs: lock around accesses to window_collection.
23717         
23718 2006-08-28  Chris Toshok  <toshok@ximian.com>
23719
23720         * Control.cs: err, fix this the right way, by locking on controls
23721         when using it.  not by making it synchronized.
23722
23723 2006-08-28  Chris Toshok  <toshok@ximian.com>
23724
23725         * Control.cs: make the static "controls" field synchronized, as it
23726         gets updated from multiple threads.
23727
23728 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23729
23730         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
23731           Prevent other threads from exiting when calling thread sets quit state.
23732         * XEventQueue.cs: Added PostQuitState property
23733
23734 2006-08-27  Chris Toshok  <toshok@ximian.com>
23735
23736         * AsyncMethodData.cs: add a slot for the window handle.
23737
23738         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
23739         window (the destination control's window, not the foster window).
23740
23741         * Control.cs (BeginInvokeInternal): store the window's handle in
23742         the AsyncMethodData.
23743         
23744
23745 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
23746
23747         * XplatUIX11.cs:
23748           - PostQuitMessage: Removed resetting S.D display handle, we might have
23749             another loop started after calling PostQuitMessage (Fixes #79119)
23750           - Created destructor to reset S.D handle
23751
23752 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
23753
23754         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
23755
23756 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23757
23758         * TextControl.cs (Insert): Update the caret position even if we don't
23759           have a handle yet, just don't call the driver in that case.
23760         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
23761           to the end of the new selection text (Fixes #79184)
23762
23763 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23764
23765         * Form.cs (Activate): Only activate if the handle is created)
23766         * Control.c:
23767           - Mark window as invisible when it's disposed
23768           - Check if window handle is created when setting window visible, 
23769             instead of relying just on the is_created variable
23770           - Check if object is disposed when creating the control (Fixes #79155)
23771
23772 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23773
23774         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
23775           when allowing layout again. Otherwise we re-generate the anchoring 
23776           distance to the border again and actually alter what the user wanted
23777           This is ugly, it'd be better if we used DisplayRectangle instead of
23778           ClientRectangle for Control.UpdateDistances, but that causes us to
23779           have other problems (initial anchoring positons would be wrong)
23780           (Fixes #78835)
23781
23782 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23783
23784         * Control.cs:
23785           - The size and location setters shouldn't go directly to 
23786             SetBoundsCore, but to SetBounds, which triggers layout on the
23787             parent, then calls SetBoundsCore. (Related to fix for #78835)
23788           - SetBounds: Moved actual location update code into this function
23789             from SetBoundsCore, to match MS. Added call to PerformLayout if
23790             we have a parent (to trigger resizing of anchored parents if the 
23791             child size has changed (see testcase for #78835) 
23792         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
23793           new control code
23794         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
23795
23796 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23797
23798         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
23799           System.Drawing when a toplevel window gets closed; there might
23800           be other toplevel windows belonging to the same app (Fixes #78052)
23801
23802 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
23803
23804         * FileDialog.cs: After reading FileDialog settings from mwf_config
23805           use Desktop prefix only if a real folder doesn't exist anymore.
23806         * FontDialog.cs: Added char sets.
23807           It is now possible to select the font, size or style with the
23808           textboxes.
23809
23810 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
23811
23812         * PrintPreviewDialog.cs: Use assembly name constants.
23813
23814 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23815
23816         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
23817           scrollbar from whacking it's buttons)
23818
23819 2006-08-24  Chris Toshok  <toshok@ximian.com>
23820
23821         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
23822         in this patch (aggregating setting Left/Top/Width/Height to
23823         setting Bounds on the scrollbars), but the crux of the fix is in
23824         Recalculate, where we scroll by the remaining scroll_position if
23825         we're hiding a scrollbar.  The 2*$5 reward in the comment is
23826         serious.
23827
23828 2006-08-24  Jackson Harper  <jackson@ximian.com>
23829
23830         * MdiClient.cs:
23831         * MdiWindowManager.cs: If the form is made a non-mdi window we
23832         need to remove the form closed event so that closing forms works
23833         correctly.
23834
23835 2006-08-24  Jackson Harper  <jackson@ximian.com>
23836
23837         * Control.cs: Make IsRecreating internal so that the driver can
23838         check it
23839         - Temporarily remove the Hide when controls are removed, its
23840         making a whole bunch of things not work because visibility isn't
23841         getting reset elsewhere correctly
23842         * Form.cs: Need to do a full handle recreation when the mdi parent
23843         is set.
23844         * XplatUIX11.cs: If we are recreating handles don't dispose the
23845         HWNDs.  What was happening is the handles were being recreated in
23846         SendWMDestroyMessages, but then flow continued on in that method
23847         and destroyed the new handles.
23848
23849 2006-08-23  Jackson Harper  <jackson@ximian.com>
23850
23851         * Form.cs: MdiClient is always at the back of the bus
23852         * Control.cs: When the order of items in the collection is changed
23853         we need to reset the all_controls array
23854         - do the same sorta setup thats done when adding a control when a
23855         control is set on the collection.
23856
23857 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
23858
23859         * TextBoxBase.cs (get_Text): Return an empty array if our document
23860           is empty (fixes #79052)
23861
23862 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23863
23864         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
23865           on WM_SYSCHAR messages (fixes #79053)
23866
23867 2006-08-23  Chris Toshok  <toshok@ximian.com>
23868
23869         * DataGrid.cs: fix flickering when scrolling vertically.
23870
23871 2006-08-23  Chris Toshok  <toshok@ximian.com>
23872
23873         * DataGrid.cs (EndEdit): only invalidate the row header when we
23874         need to.
23875
23876 2006-08-23  Chris Toshok  <toshok@ximian.com>
23877
23878         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
23879         methods.  fixes the flicker when scrolling around.
23880
23881 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23882
23883         * FileDialog.cs: Making sure the control is created before we get a 
23884           chance to use it with BeginInvoke (Fixes #79096)
23885
23886 2006-08-23  Chris Toshok  <toshok@ximian.com>
23887
23888         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
23889         width to use when painting the rows.
23890
23891 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
23892
23893         * TextBoxBase.cs:
23894           - Throw ArgumentException if a negative value is passed to SelectionLength
23895           - Update the selection end if start is moved. end needs to be always
23896             after start. (Fixes #79095)
23897           - Track selection length; MS keeps the selection length even if start
23898             is changed; reset on all other operations affection selection
23899
23900 2006-08-22  Jackson Harper  <jackson@ximian.com>
23901
23902         * TreeView.cs: Make sure both scrollbars get displayed and sized
23903         correctly when the other bar is visible.
23904         - Use the original clip rectangle for checking if the area between
23905         the two scrollbars is visible, not the viewport adjusted clipping
23906         rectangle.
23907
23908 2006-08-22  Jackson Harper  <jackson@ximian.com>
23909
23910         * Binding.cs: We don't use IsBinding because it requires the
23911         control to be created, which really shouldn't be necessary just to
23912         set a property on the control.
23913
23914 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23915
23916         * ComboBox.cs: Some CB.ObjectCollection methods must throw
23917         ArgumentNullReferenceException when the argument is null.
23918
23919 2006-08-21  Jackson Harper  <jackson@ximian.com>
23920
23921         * Timer.cs: Track the thread that the timer is started in (NOT
23922         CREATED), this way messages for it will only be triggered on its
23923         queue.
23924         * XEventQueue.cs: Track the timers here, this makes timers per
23925         thread, like MS.
23926         * XplatUIX11.cs: The timers are moved to the XEventQueue.
23927
23928 2006-08-19  Chris Toshok  <toshok@ximian.com>
23929
23930         * XplatUIX11.cs: after further communication with pdb, we get the
23931         best of both worlds.  SetZOrder working for un-Mapped windows, and
23932         no X errors for un-mapped windows.
23933
23934 2006-08-19  Chris Toshok  <toshok@ximian.com>
23935
23936         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
23937         as it was causing pdn toolbars to not have the correct stacking.
23938
23939 2006-08-18  Mike Kestner  <mkestner@novell.com> 
23940
23941         * ListView.cs : guard against negative ClientArea.Width in scrollbar
23942         calculation.  Not sure why control should ever be setting a negative
23943         width though.  Fixes #78931.
23944
23945 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23946
23947         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
23948         null items in ObjectCollection class.
23949         * ListBox.cs.: Likewise.
23950
23951 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
23952
23953         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
23954           as the base method in ThemeWin32Classic should work fine.
23955           Fixed bug #78607.
23956
23957 2006-08-18  Jackson Harper  <jackson@ximian.com>
23958
23959         * Binding.cs: When validating if the value entered doesn't convert
23960         properly reset to the old value.
23961         * RadioButton.cs: Don't fire click when we get focus.
23962
23963 2006-08-18  Jackson Harper  <jackson@ximian.com>
23964
23965         * FileDialog.cs: Paint the selection on the directory combobox the
23966         same way as on MS. 
23967
23968 2006-08-17  Jackson Harper  <jackson@ximian.com>
23969
23970         * ErrorProvider.cs: Don't allow the error control to be selected.
23971         * Control.cs: Don't send the SetFocus messages, the control
23972         activation will do this, and if we do it blindly here validation
23973         does not work.
23974
23975 2006-08-17  Jackson Harper  <jackson@ximian.com>
23976
23977         * Control.cs:
23978         * ContainerControl.cs: Make validation events fire in the correct
23979         order.  TODO: For some reason the first validation event is not
23980         getting fired.
23981
23982 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23983
23984         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
23985
23986 2006-08-17  Mike Kestner  <mkestner@novell.com> 
23987
23988         * ComboBox.cs : implement scroll wheel support for popped-down
23989         state. Fixes #78945. 
23990
23991 2006-08-17  Jackson Harper  <jackson@ximian.com>
23992
23993         * TreeView.cs: Specify treeview actions (old patch that didn't get
23994         committed for some reason).
23995         - Don't let the mouse wheel scroll us too far.  Just want to make
23996         the bottom node visible, not scroll it all the ways to the top.
23997
23998 2006-08-17  Jackson Harper  <jackson@ximian.com>
23999
24000         * XplatUIX11.cs: Mouse wheel events go to the focused window.
24001
24002 2006-08-17  Mike Kestner  <mkestner@novell.com> 
24003
24004         * ComboBox.cs : don't do mouseover selection in simple mode.
24005
24006 2006-08-16  Jackson Harper  <jackson@ximian.com>
24007
24008         * Form.cs: Fire the closing events for all the mdi child windows
24009         when a window is closed.  If the cancel args are set to true, the
24010         main window still gets the event fired, but it doesn't not close.
24011         * MdiWindowManager.cs: Do this closing cleanup in a Closed
24012         handler, instead of when the button is clicked, so cancelling the
24013         close works correctly.
24014         * ComboBox.cs: Send the mouse down to the scrollbar.
24015
24016 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24017
24018         * ListBox.cs: When passing 'null' to SelectedItem,
24019         set SelectedIndex to -1, to unselect items. This is the
24020         observed behaviour in .Net.
24021
24022 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
24023
24024         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
24025           MS flags saying there won't be any. (fixes #78800)
24026         * Control.cs (HandleClick): Made virtual
24027
24028 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
24029
24030         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
24031           cultures. Fixed bug #78399.
24032
24033 2006-08-16  Jackson Harper  <jackson@ximian.com>
24034
24035         * Form.cs: Use the MdiClients MdiChildren property to access
24036         MdiChildren instead of creating the array from the child controls.
24037         * MdiClient.cs: Maintain a separate array of the mdi children, so
24038         that insertion order is maintained when the Z-order is changed.
24039
24040 2006-08-16  Mike Kestner  <mkestner@novell.com> 
24041
24042         * ListView.cs : add an ItemComparer and default to it for sorting.
24043         Fixes #79076, but sorting needs a complete overhaul to be compat with
24044         MS.
24045
24046 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24047
24048         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
24049
24050 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24051
24052         * Hwnd.cs (Mapped): Properly traverse the tree
24053
24054 2006-08-15  Chris Toshok  <toshok@ximian.com>
24055
24056         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
24057         pass manager.Current.GetType() to ParseData.  It has to be the
24058         property type.  So, hold off doing the ParseData until we're in
24059         SetPropertyValue where we know the type.  This fixes the crash in
24060         #78821 but the textbox is still empty.
24061
24062 2006-08-15  Chris Toshok  <toshok@ximian.com>
24063
24064         * DataGrid.cs:
24065         - when we're scrolling, only call Edit() again if the
24066         current cell is still unobscured. Fixes bug #78927.
24067         - when handling mousedown on a cell, ensure the cell is visible
24068         before calling Edit.
24069         - remove the properties from DataGridRow, and remove the
24070         DataGridParentRow class altogether.
24071         
24072
24073 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24074
24075         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
24076           fire OnTextChanged by ourselves. There's no point calling base,
24077           we don't set the base value anywhere else. Fixes #78773.
24078
24079 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24080
24081         * ListBox.cs: Call CollectionChanged when modifying
24082         an item from Items indexer, to update the actual items
24083         in the list box.
24084
24085 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24086
24087         * PrintDialog.cs: Small fixes for focus and a pair of checks,
24088         to match .Net behaviour.
24089
24090 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24091
24092         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
24093
24094 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
24095
24096         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
24097
24098 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
24099
24100         * MessageBox.cs: Prevent potential NRE exception.
24101         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
24102
24103 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24104
24105         * MessageBox.cs: Calculate the owner of a messagebox, also make
24106           it topmost. Fixes #78753
24107
24108 2006-08-14  Chris Toshok  <toshok@ximian.com>
24109
24110         * XplatUIX11.cs: A couple of fixes so that metacity will let us
24111         programmatically move windows.  first, set the PPosition hint as
24112         well as the USPosition hint.  Second include some code from pdb
24113         that sets the window type to NORMAL when we set the transient for
24114         hint.  This is because, in the absence of a window type, metacity
24115         thinks any window with TransientFor set is a dialog, and refuses
24116         to let us move it programmatically.  fascists.
24117
24118 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
24119
24120         * XplatUIX11.cs: When setting normal hints, take into consideration
24121           an different hints previously set so we don't delete them (fixes #78866)
24122
24123 2006-08-12  Chris Toshok  <toshok@ximian.com>
24124
24125         * ToolBarButton.cs: make Layout return a boolean, if something to
24126         do with the button's layout changed.
24127
24128         * ToolBar.cs:
24129         - add another parameter to Redraw, @force, which all existing
24130           calls set to true.
24131         - make the Layout function return a boolean which is true if the
24132           layout has actually changed.  Redraw now uses this (and @force)
24133           to determine when to invalidate.  At present the only place
24134           where @force can be false is the call from OnResize, when
24135           background_image == null.  So, resizing a toolbar when the
24136           layout doesn't change results in no drawing.
24137
24138 2006-08-12  Chris Toshok  <toshok@ximian.com>
24139
24140         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
24141         the VScrollBar and HScrollbar reversed.  oops.
24142
24143         * DataGrid.cs: fix the logic that assigns sizes to the implicit
24144         scrollbars.  we were assigning them twice (once in
24145         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
24146         therefore causing two scrollbar resizes (and redraws?) to happen
24147         per grid resize.
24148
24149 2006-08-12  Chris Toshok  <toshok@ximian.com>
24150
24151         * ToolBarButton.cs: redraw the entire button if the theme tells us
24152         to.
24153
24154         * Theme.cs: add ToolBarInvalidateEntireButton.
24155
24156         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
24157         buttons, just the border.
24158
24159         * ThemeNice.cs: redraw the entire toolbar button since we need to
24160         draw the highlight image.
24161
24162         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
24163         we need to redraw the entire button (not just the border).
24164
24165 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24166
24167         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
24168           for vertical bars. Fixes the mismatches shown by #78513
24169
24170 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
24171
24172         * FileDialog.cs: If a saved/remembered path doesn't exist
24173           anymore, fall back to "Desktop".
24174
24175 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
24176
24177         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
24178           parent. It's apparently legal to not have one
24179         * XplatUIX11.cs:
24180           - SetZOrder: Don't try to set Z-Order on an unmapped window
24181           - CreateWindow: 0,0 are legal coordinates for a window. don't move
24182             it unless the coordinates are negative
24183
24184 2006-08-10  Mike Kestner  <mkestner@novell.com>
24185
24186         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
24187         when setting to null per msdn docs.  Fixes #78854.
24188
24189 2006-08-10  Chris Toshok  <toshok@ximian.com>
24190
24191         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
24192         flickering by setting a clip rectangle on the Graphics when we
24193         need to redraw just a particular menuitem.  Also, rename "OnClick"
24194         to "OnMouseDown" to reflect what it actually is.
24195         
24196         * Form.cs: track the OnMouseDown change.
24197
24198 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
24199
24200         * CommonDialog.cs: Properly inherit the CreateParams from the form
24201           and only change what we need. Fixes #78865
24202
24203 2006-08-10  Chris Toshok  <toshok@ximian.com>
24204
24205         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
24206         flickering in flat mode (and most of the flickering in general) by
24207         only invalidating the button border (and not the entire rectangle)
24208         when the state changes.  A couple of cases still flicker:
24209         ToggleButtons, and the dropdown arrow case when the user mouse
24210         ups.
24211
24212 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
24213
24214         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
24215           for german keyboards. Numlock state shouldn't affect the behaviour
24216           of the Del key. Fixes bug #78291.
24217
24218 2006-08-10  Chris Toshok  <toshok@ximian.com>
24219
24220         * ListControl.cs: remove the items.Clear line from BindDataItems,
24221         as this is the first thing done by both subclasses in their
24222         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
24223         passed -1, refresh the list.  This gets databinding working when
24224         the datasource is set on the list before the datasource is
24225         populated (as in wf-apps/ReportBuilder.)
24226
24227         * ComboBox.cs: remove the argument to BindDataItems.  This call
24228         should really go away, and be initiated by the ListControl code.
24229
24230         * ListBox.cs: same.
24231
24232 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24233
24234         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
24235           if no data is in the document when the control is displayed
24236
24237 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
24238
24239         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
24240           yes (fixes #78806)
24241         * TextControl.cs: 
24242           - PositionCaret: Allow positioning of caret but don't call methods 
24243             requiring a handle if the window isn't created yet
24244           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
24245           - owner_HandleCreated: Don't position the caret, just update it's 
24246             location. User might have already set a different position
24247
24248 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
24249
24250         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
24251           windows. Screws up the returned coordinates for child windows. 
24252           Fixes #78825. I'm hoping this doesn't break something, since the
24253           code was explicitly put in 8 months ago, but no bug was attached.
24254           Menus still seem to work properly.
24255
24256 2006-08-08  Chris Toshok  <toshok@ximian.com>
24257
24258         * DataGrid.cs: make BeginInit/EndInit actually do what they're
24259         supposed to do - delay data binding until the EndInit call.  Also,
24260         make the table style collection's CollectionChangeAction.Refresh
24261         work properly.
24262
24263         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
24264         (with action = Refresh) when a consituent table's MappingName is
24265         changed.
24266
24267 2006-08-08  Chris Toshok  <toshok@ximian.com>
24268
24269         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
24270         Invalidate, since changing the text can change the size of the all
24271         toolbar buttons.
24272
24273 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24274
24275         * Form.cs (AddOwnedForm): Still need to add the form to our listif
24276           we don't have it yet
24277
24278 2006-08-08  Chris Toshok  <toshok@ximian.com>
24279
24280         * PrintControllerWithStatusDialog.cs: don't .Close() the status
24281         dialog, as this causes X errors later on, since we actually
24282         destroy the window.  Instead, .Hide() it.
24283
24284 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
24285
24286         * ComboBox.cs: Added focus reflection for popup window
24287         * XplatUIX11.cs: 
24288           - Removed transient setting for non-app windows for now, not sure it
24289             was needed
24290           - Fixed logic checking if we have captions when deciding 
24291             override_redirect, WS_CAPTION is two bits and a 0 check was not
24292             sufficient
24293           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
24294             complicated
24295         * Form.cs: 
24296           - AddOwnedForm: Don't just add the form to the list, call the property
24297             to ensure the driver is informed about the ownership as well
24298           - CreateHandle: Set the TopMost status in the driver if we have an owner
24299         * XplatUI.cs: Fixed debug statement
24300
24301 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
24302         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24303           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
24304           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
24305           TrackBarRenderer.cs: Make constructor private.
24306         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
24307         * ProfessionalColorTable.cs: Make properties virtual.
24308
24309 2006-08-06  Duncan Mak  <duncan@novell.com>
24310
24311         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
24312         is not changing.
24313
24314 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24315         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
24316           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
24317           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
24318           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
24319           Initial import of new 2.0 classes.
24320
24321 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24322         * Application.cs: Add 2.0 VisualStyles properties.
24323
24324 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
24325         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24326           XplatUIX11.cs: Create property to allow access to existing private
24327           variable "themes_enabled"
24328
24329 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24330
24331         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
24332         file size, as otherwise our class libraries fail using windows. Fixes
24333         bug #78759.
24334
24335 2006-08-04  Jackson Harper  <jackson@ximian.com>
24336
24337         * Form.cs:
24338         * XplatUIX11.cs: Move the toolwindow window manager creation into
24339         the X11 driver, this way on win32 we can let windows create/handle
24340         the toolwindows.
24341
24342 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24343
24344         * PrintDialog.cs: Remove some redundant checks, add some others,
24345         clean some code, and move the focus to the text boxes when the
24346         values are incorrect.
24347
24348 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
24349
24350         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
24351
24352 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24353
24354         * NumericUpDown.cs: Setting the Minimum and Maximum is now
24355           handled correctly. Fixes bug #79001.
24356
24357 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24358
24359         * PrintDialog.cs: The "Copies" numeric up down must have
24360         set the Minimum property to 1; only if the value is bigger
24361         than 1, activate "Collate" check box. This is the behaviour of .Net.
24362         Also modify the Document elements only if it is not null.
24363
24364 2006-08-03  Jackson Harper  <jackson@ximian.com>
24365
24366         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
24367         length. (We have a larger array then actual node count).
24368                 
24369 2006-08-03  Jackson Harper  <jackson@ximian.com>
24370
24371         * ComboBox.cs: Don't show selection by default.
24372         - The SelectAll isn't needed here, since the focus code should do
24373         that
24374         - DDL style lists to manual selection drawing, so when they
24375         get/lose focus they have to invalidate.
24376
24377 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
24378
24379         * TextBoxBase.cs: Don't always show all selections by default.
24380
24381 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
24382         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
24383           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
24384           Fixed various typos.
24385
24386 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
24387
24388         * Control.cs: Removing the controls in a ControlCollection with
24389           Clear now hides the controls as expected. Fixes bug #78804. 
24390
24391 2006-08-03  Jackson Harper  <jackson@ximian.com>
24392
24393         * Control.cs: Revert previous focus patch, it breaks reflector.
24394
24395 2006-08-03  Jackson Harper  <jackson@ximian.com>
24396
24397         * ComboBox.cs: Cleanup selection and focus with the combobox.
24398         This also eliminates some duplicated keyboard code, since now
24399         everything is handled by the main class.
24400         - Make list selection work on mouse up instead of down, to match
24401         MS.
24402
24403 2006-08-02  Jackson Harper  <jackson@ximian.com>
24404
24405         * Control.cs: Setting focus needs to go through the whole
24406         selection mechanism.
24407
24408 2006-08-02  Chris Toshok  <toshok@ximian.com>
24409
24410         * PrintPreviewDialog.cs: change MinimumSize to use
24411         base.MinimumSize so it works.
24412
24413 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
24414
24415         * TextControl.cs:
24416           - UpdateCaret: Added sanity check in case caret isn't defined yet
24417           - Line.Delete: Now updating selection and caret markers if we're
24418             transfering a node (Properly fixes #78323)
24419           - SetSelectionEnd: Added sanity check
24420         * TextBoxBase.cs: Removed broken attempt to fix #78323
24421
24422 2006-08-01  Chris Toshok  <toshok@ximian.com>
24423
24424         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
24425         Close() call is handled in Form, not here.
24426
24427 2006-08-01  Chris Toshok  <toshok@ximian.com>
24428
24429         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
24430         layout/rendering.
24431
24432         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
24433         for sizes < 100% zoom.  The code now aggressively attempts to keep
24434         from calling document.Print (), and tries not to use the scaling
24435         g.DrawImage whenever possible (it still does if you scale to >
24436         100%, since usually that involves huge images).
24437
24438         * PrintPreviewControl.cs: hook up the close button.
24439
24440 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
24441         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
24442           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
24443           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
24444           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
24445           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
24446           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
24447           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
24448           Removed [Serializable] for 2.0 Event Handlers.
24449
24450 2006-07-31  Jackson Harper  <jackson@ximian.com>
24451
24452         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
24453         * TextControl.cs: Uncomment out the body of this method.
24454
24455 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
24456
24457         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
24458           standard cursors.
24459
24460 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24461
24462         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
24463           that embed TextBox and need selections visible even if textbox is not
24464           focused to enforce that behaviour.
24465         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
24466           selection drawing
24467
24468 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24469
24470         * TextControl.cs:
24471           - Added new SetSelectionStart/SetSelectionEnd overloads
24472           - Fixed viewport width assignment to be accurate
24473           - Adjusted alignment line shift calculations to allow cursor on right
24474             aligned lines to be always visible at the right border (like MS)
24475         * TextBoxBase.cs:
24476           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
24477           - TextBoxBase_SizeChanged: recalculating canvas on size changes
24478           - CalculateScrollBars: Use ViewPort size instead of window size, to
24479             properly consider space occupied by the border and scrollbars 
24480             (Fixes #78661)
24481           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
24482             calculations; no longer leaves artifacts
24483           - CaretMoved: Adjusted window scrolling to match MS and fixed several
24484             calculation bugs (Still missing right/center align calculations)
24485
24486 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
24487
24488         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
24489           use of both scroll rect and clip rect, as they do the same.
24490
24491 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
24492
24493         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
24494           in the event handler (fixes #78912)
24495
24496 2006-07-31  Chris Toshok  <toshok@ximian.com>
24497
24498         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
24499         grid.ListManager.Count, since grid.ListManager might be null.
24500         This of course begs the question "why are we drawing rows for a
24501         grid with no list manager (and therefor no rows)?"  Fixes the
24502         crash in bug #78929.
24503
24504 2006-07-31  Chris Toshok  <toshok@ximian.com>
24505
24506         * RelatedPropertyManager.cs: Don't always chain up to the parent
24507         ctor.  instead, call SetDataSource if the parent's position is !=
24508         -1.  Fixes the crash in #78822.
24509
24510 2006-07-31  Chris Toshok  <toshok@ximian.com>
24511
24512         * DataGrid.cs (get_ListManager): use field instead of property
24513         accessors for datasource and datamember.
24514         (RowsCount): make internal again.
24515         (OnMouseDown): end edits before resizing columns/rows.
24516         (OnMouseUp): restart edits after resizing columns/rows.
24517
24518 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
24519
24520         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
24521           This fixes the situation where the last set cursor is displayed
24522           whenever the mouse is over scrollbars.
24523
24524 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24525
24526         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
24527         Document properties, as well as initial values.
24528
24529 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
24530
24531         * XplatUIWin32.cs (SetBorderStyle): Setting both border
24532           and ClientEdge results in a 3-pixel border, which is
24533           wrong.
24534
24535 2006-07-28  Jackson Harper  <jackson@ximian.com>
24536
24537         * TreeNodeCollection.cs: Fix the clear method.
24538         - Fix the Shrink also
24539
24540 2006-07-27  Jackson Harper  <jackson@ximian.com>
24541
24542         * TreeView.cs: Make sure the visible order is computed when we
24543         attempt to size the scrollbars (for trees that mess with the
24544         scrolling when they shouldn't.
24545         - Make sure to give the scrollbars valid values.
24546
24547 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24548
24549         * XplatUIX11.cs: Move motion compression code to where it
24550           has less performance impact
24551
24552 2006-07-26  Jackson Harper  <jackson@ximian.com>
24553
24554         * UpDownBase.cs: When the control is selected make the child
24555         controls non selectable, so that a click on them won't do a
24556         focus/unfocus cycle.
24557         - Don't give focus to the text box when the spinner is selected.
24558         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
24559
24560 2006-07-26  Chris Toshok  <toshok@ximian.com>
24561
24562         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
24563         satisfied with this solution.  If the bitmaps are small, we should
24564         just cache them in the PrintPreviewDialog and draw them here.
24565         Also, the layout is broken for the 2-up and 3-up cases.
24566
24567         * Theme.cs: add PrintPReviewControlPaint.
24568
24569         * PrintPreviewDialog.cs: first pass implementation.
24570
24571         * PrintPreviewControl.cs: first pass implementation.  No
24572         scrollbars yet.
24573
24574         * PrintDialog.cs: only validate fields if that particular portion
24575         of the UI is enabled.  Also, set the document's controller to a
24576         PrintControllerWithStatusDialog wrapping the document's print
24577         controller.
24578
24579         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
24580         bring up a SaveFileDialog (i hope we don't want to match the
24581         behavior of the crappy windows file entry) and set the
24582         PrinterSettings.PrintFileName accordingly.
24583
24584 2006-07-26  Jackson Harper  <jackson@ximian.com>
24585
24586         * ContainerControl.cs: Add a field that disables auto selecting
24587         the next control in a container when the container is activated.
24588         * UpDownBase.cs: Don't select the text box when the up down is
24589         selected.
24590
24591 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
24592
24593         * XEventQueue.cs: Added methods for peeking (used for compression
24594           of successive events)
24595         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
24596           mouse move events (fixes #78732)
24597
24598 2006-07-25  Jackson Harper  <jackson@ximian.com>
24599
24600         * UpDownBase.cs: Use an internal class for the textbox so that we
24601         can control focus.  the updown control should always have focus,
24602         if either the text area or the buttons are clicked.
24603         - Send the key messages to the textbox, since it never actually
24604         has focus
24605         - Activate and decativate the textbox caret.
24606
24607 2006-07-24  Jackson Harper  <jackson@ximian.com>
24608
24609         * Control.cs: Use the directed select when selecting a control,
24610         this way the container controls override will get called and the
24611         whole ActiveControl chain will get triggered.  TODO: probably need
24612         to make sure this gets done everywhere instead of the old
24613         Select(Control).
24614         * ContainerControl.cs: Implement the directed Select method to
24615         find and activate the correct child control.    
24616         
24617 2006-07-22  Mike Kestner  <mkestner@novell.com>
24618
24619         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
24620         menu handling code so that clicks without a grab work too.
24621         [Fixes #78914]
24622
24623 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
24624
24625         * FileDialog.cs: Enable the BackButton when dirstack has one element.
24626           Added some small optimizations.
24627
24628 2006-07-21  Matt Hargett  <matt@use.net>
24629
24630         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
24631
24632 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
24633
24634         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
24635           tests pass and match MS in some strange border cases.
24636
24637 2006-07-21  Chris Toshok  <toshok@ximian.com>
24638
24639         * ThemeWin32Classic.cs: handle drawing of the relation links and
24640         parent row buttons.
24641
24642         * Theme.cs: change args to DataGridPaintParentRow.
24643
24644         * DataGrid.cs: Don't use controls for the relation links and
24645         parent buttons, so we have to handle all their interactions in
24646         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
24647         when we're navigating through child tables, so we can reinstate
24648         selection, expanded state, current cell, etc.
24649
24650 2006-07-20  Chris Toshok  <toshok@ximian.com>
24651
24652         * ToolBar.cs: When we redraw a button, for whatever reason,
24653         there's no reason to redraw the entire toolbar.  Also, don't call
24654         Control.Refresh from within Redraw, as it's much heavier than
24655         Invalidate (which is really what we want).
24656
24657 2006-07-20  Chris Toshok  <toshok@ximian.com>
24658
24659         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
24660         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
24661         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
24662         traces from within a debug IBindingList datasource
24663         (in mono/winforms/datagrid) for *days*, I've finally gotten things
24664         to work in a similar fashion.
24665
24666 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24667
24668         * ListBox.cs: Don't call Sort () when setting 
24669         the Sorted property to false (avoid an unnecessary sort).
24670
24671 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24672
24673         * ListControl.cs: DataSource should throw an ArgumentException
24674         instead of a normal exception when the argument is not of the 
24675         correct type.
24676
24677 2006-07-20  Mike Kestner  <mkestner@novell.com>
24678
24679         * Control.cs: add InternalPreProcessMessage to allow us to steal
24680         key events before MWF gets its paws on them.  Adapted from a
24681         suggestion by eno.
24682         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
24683         up/down/left/right navigation. Override the new internal control
24684         method to steal the events since they never make it to WndProc.
24685         * ToolBarButton.cs: don't worry about pushed when setting hilight
24686         since the drawing code prefers pushed to hilight. Invalidate on 
24687         Hilight changes. Fixes #78547 and #78525.
24688
24689 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24690
24691         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
24692           the canvas size. Fixes #78868
24693
24694 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
24695
24696         * Splitter.cs: Track requested split position until first layout
24697           is performed. Fixes #78871
24698
24699 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
24700
24701         * Application.cs: Removed code that forces 1.x for the version
24702           number if the version started with 0. Not sure why that code was
24703           there and I couldn't find any bugs that indicated we needed it.
24704           Fixes #78869
24705
24706 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
24707
24708         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
24709           ResetDefaults(), just write some output to the console until it's
24710           implemented. Fixes bug #78907 for now. Eliminated two warnings.
24711
24712 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
24713
24714         * PropertyGridView.cs: set StartPosition of drop down forms
24715         so they appear in correct initial spot.  Fixes #78190.
24716
24717 2006-07-19  Mike Kestner  <mkestner@novell.com>
24718
24719         * ThemeWin32Classic.cs: use parent background color when drawing
24720         flat toolbars.  Restructure the conditionals to make sure non-flat
24721         non-Divider toolbars are filled too.  Fixes #78837.
24722
24723 2006-07-19  Mike Kestner  <mkestner@novell.com>
24724
24725         * ListBox.cs: Sort on collection changes even if the handle
24726         isn't created yet.  Fixes #78813.
24727
24728 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
24729
24730         * ListControl.cs: DisplayMember should never be null,
24731         and now we assign String.Empty when null is passed to it (this
24732         is the .Net way).
24733
24734 2006-07-17  Mike Kestner  <mkestner@novell.com>
24735
24736         * ListViewItem.cs: restructure Font and subitem Font handling 
24737         to hold a specific font and refer back to owner on null.
24738         Fixes #78761.
24739
24740 2006-07-17  Mike Kestner  <mkestner@novell.com>
24741
24742         * ToolBar.cs: bandaid for side-effect of previous patch which was
24743         discarding explicit heights for non-AutoSize toolbars.  Need to
24744         extend my format tester to deal with AutoSize=false. Fixes #78864.
24745
24746 2006-07-15  Jackson Harper  <jackson@ximian.com>
24747
24748         * LabelEditTextBox.cs:
24749         * TreeView.cs: Use a new LabelEdit class for node editing, this
24750         class automatically 'closes' itself when it gets the enter key or
24751         loses focus.
24752         - Use the client rectangle when setting the trees scrollbars, so
24753         border style is taken into account.
24754         
24755 2006-07-14  Jackson Harper  <jackson@ximian.com>
24756
24757         * TreeNode.cs:
24758         * TreeView.cs: Make the editing work similar to MSs, firing the
24759         events correctly and ending edits correctly.
24760
24761 2006-07-14  Mike Kestner  <mkestner@novell.com>
24762
24763         * ToolBarButton.cs:
24764         * ToolBar.cs: layout restructuring and redraw enhancements to support
24765         formatting changes gracefully, like setting TextAlign, ImageList, 
24766         ButtonSize, and Appearance.  Handles explicit button sizing quirks
24767         of the MS controls.  Things like flat toolbars ignoring button size
24768         but becoming constant sized at the largest button's size.  Normal
24769         toolbars with an image set cannot be shrunk smaller than the image,
24770         but text can be clipped/ignored.
24771         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
24772         is zero.  Seems like DrawString should be smart enough to not put
24773         anything on screen though. Also trim labels and ellipsize at the char
24774         boundary, not word.
24775         Fixes #78711 and #78483.
24776
24777 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24778
24779         * FolderBrowserDialog.cs: Disable "New Folder" button and
24780           "New Folder" contextmenu menuitem if a folder like "My Computer"
24781           is selected.
24782
24783 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24784
24785         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
24786         * FolderBrowserDialog.cs:
24787           - Use MWFConfig to store and read size and position settings
24788           - Added code to create a new folder (button or context menu).
24789             Use TreeView labeledit to change the name of the new folder.
24790
24791 2006-07-14  Jackson Harper  <jackson@ximian.com>
24792
24793         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
24794         when the tree is scrolled we end editing.
24795
24796 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
24797
24798         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
24799           Down arrows
24800
24801 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
24802
24803         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
24804         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
24805         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
24806         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
24807         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
24808         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
24809         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
24810         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
24811         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
24812         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
24813         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
24814         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
24815         ListViewItemSelectionChangedEventHandler.cs,
24816         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
24817         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
24818         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24819         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
24820         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
24821         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
24822         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
24823         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
24824         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
24825         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
24826         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
24827         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
24828         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
24829         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
24830         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
24831         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
24832         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
24833         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
24834         WebBrowserNavigatingEventHandler.cs, 
24835         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
24836
24837 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
24838
24839         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
24840         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
24841         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
24842         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
24843         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
24844         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
24845         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
24846         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
24847         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
24848         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
24849         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
24850         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
24851         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
24852         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
24853         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
24854         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
24855         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
24856         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
24857         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
24858         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
24859         ListViewItemStates.cs, MaskFormat.cs: Added
24860
24861 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
24862
24863         * PropertyGridView.cs: Fix keyboard navigation of drop down.
24864         Patch from eno for bug 78558.
24865         
24866 2006-07-13  Jackson Harper  <jackson@ximian.com>
24867
24868         * TreeView.cs: When an edit is finished make sure that the
24869         selected node is visible.
24870         - When setting the top/bottom use the scrollbars is_visible, so
24871         everything will be set correctly even if the tree isn't visible
24872         yet.
24873
24874 2006-07-13  Jackson Harper  <jackson@ximian.com>
24875
24876         * ComboBox.cs: Revert the item->index part of my previous patch.
24877         * TreeView.cs: Use LostFocus instead of Leave for detecting when
24878         the edit box has lost focus (duh).
24879         - Just make the edit box not visible when we get return, that will
24880         take the focus, which will call EndEdit
24881         * TreeNode.cs When we start editing, notify the treeview.
24882
24883 2006-07-12  Jackson Harper  <jackson@ximian.com>
24884
24885         * ComboBox.cs: Clear out old items before setting the item list.
24886         This prevents databound controls from having their items added
24887         twice.
24888         - Switch the combobox to use indices whereever possible instead of
24889         using Item's.  This allows usto navigate through lists that have
24890         more then one item with the same string value (ie a, b, b, a).
24891         - Scroll the listboxes scrollbar when a non visible item is
24892         highlighted
24893         - Allow keypress to cycle through all the possible values. For
24894         example if you have b1, b2, b3 and hold down the B key all the
24895         values will be cycled through.
24896         
24897 2006-07-12  Jackson Harper  <jackson@ximian.com>
24898
24899         * TextBoxBase.cs:
24900         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
24901         this using the internal methods.
24902         * Control.cs: Add OnGotFocusInternal.  A new method that allows
24903         controls to "override" OnGotFocus and change focus behavior if
24904         needed.
24905         - Same thing for LostFocus
24906         * ComboBox.cs: Pass off focus to the text control properly.
24907
24908 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
24909
24910         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
24911         * FolderBrowserDialog.cs: Almost a complete rewrite.
24912           - Better support for Environment.Specialfolders
24913           - Added support for MWFVFS
24914           - Made setting SelectedPath work
24915
24916 2006-07-12  Jackson Harper  <jackson@ximian.com>
24917
24918         * Control.cs: Optimze getting all the controls.
24919
24920 2006-07-11  Jackson Harper  <jackson@ximian.com>
24921
24922         * ContainerControl.cs: Override SETFOCUS in the container control,
24923         so that it is not selected on mouse click.
24924
24925 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
24926
24927         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
24928           Hopefully we will have a better way once all of focus is complete.
24929
24930 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
24931
24932         * ThemeWin32Classic.cs: Commented out some debug code and fixed
24933           a compile error with csc.
24934
24935 2006-07-11  Jackson Harper  <jackson@ximian.com>
24936
24937         * Control.cs: When hiding a control only select the next control
24938         if the current control was focused.
24939         - Don't handle enter/leave when setting/killing focus, this is
24940         done by the container control.
24941         - Remove is_selected, it's not needed anymore.
24942         - Add utility methods for selecting a child control, and for
24943         firing the Enter/Leave events.
24944         * ContainerControl.cs: When a control is activated fire the
24945         enter/leave events.
24946         - Don't wrap when processing the tab key, so that focus can be
24947         moved outside of the container.
24948         - Use the correct active control
24949
24950 2006-07-11  Jackson Harper  <jackson@ximian.com>
24951
24952         * ComboBox.cs: Remove some debug code that was blinding me.
24953         * UpDownBase.cs: These controls actually aren't implicit, they are
24954         visible to the user.
24955
24956 2006-07-10  Chris Toshok  <toshok@ximian.com>
24957
24958         * DataGrid.cs: move back to the is_adding boolean field.  god i
24959         hate this is_editing/is_adding/is_changing stuff.
24960
24961 2006-07-10  Chris Toshok  <toshok@ximian.com>
24962
24963         * DataGridTableStyle.cs: just check if the property type is bool.
24964         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
24965         Don't use CanRenderType.
24966
24967         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
24968         if our text == NullText.  Remove CanRenderType.
24969
24970         * DataGridBoolColumn.cs: nuke CanRenderType.
24971
24972         * DataGrid.cs: reenable some code to end the current edit inside
24973         of set_CurrentCell.  This fixes the other 1.1.16 regression.
24974         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
24975         Also, remove the visible_row_count arg from CalcRowHeaders, since
24976         we don't need to worry about the actual height of the area.
24977
24978 2006-07-10  Chris Toshok  <toshok@ximian.com>
24979
24980         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
24981         mode, just return.
24982
24983         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
24984         the real sense of the IsInEditOrNavigateMode property (true =
24985         navigate, false = edit).  Also, update OnKeyPress to reflect this.
24986
24987         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
24988         column style exists, we still need to set its property descriptor
24989         to match up with our list manager.
24990
24991 2006-07-10  Chris Toshok  <toshok@ximian.com>
24992
24993         * ThemeWin32Classic.cs: implement the new row/header painting
24994         approach.  The parent row painting will likely go away and
24995         replaced with label controls, but the rest seems to work ok (and
24996         efficiently).
24997
24998         * Theme.cs: change the way we draw datagrid rows.  we don't draw
24999         the row headers as a block now.  Instead we draw them in the
25000         normal draw-row loop.  Add some calls for drawing parent rows and
25001         relation rows.
25002
25003         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
25004         a default table style.  Set the defaults from ThemeEngine.Current,
25005         not SystemColors.  Fix lots of misc issues with property setters.
25006
25007         * DataGrid.cs: move loads of style information out of this class
25008         as it's being duplicated with DataGridTableStyle.  keep track of a
25009         special DataGridTableStyle for the properties we used to mirror
25010         here.  Switch all the style properties to access this table style
25011         instead of instance fields of this class.  Also add a internal
25012         class to represent parent rows (more needs to be stored here, like
25013         the selection state from the parent table, as well as the
25014         expansion state.)  Also, for datasources with relations, do the
25015         right thing for collapse/expand, and add support for the
25016         navigation/parent row buttons.
25017
25018         Lastly, fix the crash in the 1.1.16 build.
25019
25020         * GridTableStylesCollection.cs: make the explicit interface
25021         implementations call the class's methods as opposed to duplicating
25022         them.
25023
25024         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
25025         0 so the text doesn't jump around when we move the cursor.
25026
25027 2006-07-10  Jackson Harper  <jackson@ximian.com>
25028
25029         * TextBoxBase.cs:
25030         * ListBox.cs: Match MS's ToString (this makes debugging focus
25031         stuff infinitely easier).
25032
25033 2006-07-10  Jackson Harper  <jackson@ximian.com>
25034
25035         * Control.cs (SelectNextControl): When checking the control's
25036         parent use this instead of ctrl.parent so that null can be passed
25037         to SelectNextControl. (I have unit tests for this).
25038         - Remove unused var.
25039
25040 2006-07-10  Chris Toshok  <toshok@ximian.com>
25041
25042         * CurrencyManager.cs: correct one regression, the removal of the
25043         finalType field.  Also, add a MonoTODO on CanAddRows, implement
25044         Refresh() correctly, and fix some event emission in
25045         ListChangedHandler.
25046
25047 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25048
25049         * FileDialog.cs: Don't use brackets for new folders if they exist
25050           under *nix. Instead use -(number of existing folders +1).
25051
25052 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
25053
25054         * FileDialog.cs:
25055           - Fixed really nasty bug #78771
25056           - Don't block the whole GUI when reading directories with a lot of
25057             entries. Use an other thread instead and call BeginInvoke to
25058             update the ListView in MWFFileView
25059
25060 2006-07-07  Chris Toshok  <toshok@ximian.com>
25061
25062         * Control.cs (Dispose): release any Capture when disposing.
25063
25064 2006-07-07  Chris Toshok  <toshok@ximian.com>
25065
25066         * LinkLabel.cs (Select): if we chain up to the parent, set
25067         focused_index to -1 so we'll search for the first available link
25068         the next time the user tabs into us.  Also, if the direction is
25069         backward and focused_index == -1, start the search from the last
25070         element.
25071
25072 2006-07-07  Chris Toshok  <toshok@ximian.com>
25073
25074         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
25075         is beyond the end of the text, don't do anything.
25076         (CreateLinkPieces): set our ControlStyles.Selectable based on
25077         whether or not we have any links.
25078         (Link.Invalidate): use a loop instead of foreach.
25079         (Link.set_Start): null out owner.sorted_links so it'll be
25080         recreated by CreateLinkPieces.
25081
25082 2006-07-06  Chris Toshok  <toshok@ximian.com>
25083
25084         * LinkLabel.cs: revert the SetStyle change.
25085
25086 2006-07-06  Chris Toshok  <toshok@ximian.com>
25087
25088         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
25089         (OnEnableChanged): s/Refresh/Invalidate
25090         (OnGotFocus): if we have a focused index already, refocus it (so
25091         if we mouse out/in to the window it'll focus the right link).
25092         (OnKeyDown): move the tab handling out of here.
25093         (OnLostFocus): don't set focused_index to -1, so we can refocus it
25094         when we lose focus.
25095         (OnMouseDown): don't Capture here - Control handles it.  Also,
25096         focus the active link.
25097         (OnMouseUp): don't deal with Capture.
25098         (OnPaintBackgroundInternal): remove.
25099         (OnTextAlignChanged): CreateLinkPieces before calling the
25100         superclass's method.
25101         (OnTextChanged): call CreateLinkPieces before calling superclass's
25102         method.
25103         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
25104         move around.
25105         (Select): implement this, moving the selection between different
25106         links, and call parent.SelectNextControl if we don't have another
25107         link to focus in the given direction.
25108         (CreateLinkPieces): call Invalidate instead of Refresh.
25109         
25110 2006-07-06  Chris Toshok  <toshok@ximian.com>
25111
25112         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
25113         new LinkLabel internals.
25114
25115         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
25116         over pieces looking for active/focused/etc links.  also, deal with
25117         runs of text (and links) with embedded \n's in them, and use
25118         MeasureCharacterRanges instead of MeasureString to figure out the
25119         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
25120         two-step.
25121
25122 2006-07-04  Jackson Harper  <jackson@ximian.com>
25123
25124         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
25125         XKB or key auto repeat, do it manually.  Without key auto repeat,
25126         when a key is held down we get key press, key release, key press,
25127         key release, ... with auto repeat we get key press, key press, key
25128         press ..., and then a release when the key is actually released.
25129
25130 2006-07-03  Jackson Harper  <jackson@ximian.com>
25131
25132         * TabControl.cs:
25133         * ThemeWin32Classic.cs: Tabs do not obey normal background color
25134         rules, they are always control color regardless of the background
25135         color.
25136
25137 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
25138
25139         * FileDialog.cs: Added internal class MWFConfig.
25140           Removed Registry support and replaced it with support for the new
25141           MWFConfig class. See MWFConfig comments for more information.
25142
25143 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
25144
25145         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
25146           rectangle. Added some patches from eno from bug #78490 and fixed
25147           the arrow position for small up and down CPDrawScrollButtons.
25148
25149 2006-06-30  Jackson Harper  <jackson@ximian.com>
25150
25151         * InternalWindowManager.cs: Remove some debug code.
25152         * Form.cs: When an MdiParent is set to null, the window is
25153         "detatched" and becomes a normal window.
25154         * MdiClient.cs: Don't bring the new child form to the front until
25155         it is activated (setting it as active does this), this makes the
25156         previously active forms titlebar get redrawn as inactive.
25157
25158 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
25159
25160         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
25161           with later controls
25162
25163 2006-06-29  Mike Kestner  <mkestner@novell.com>
25164
25165         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
25166         arrow in keynav state.  Fixes #78682.
25167
25168 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25169
25170         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
25171           order (fixes #78393)
25172
25173 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
25174
25175         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
25176           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
25177           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
25178           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
25179           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
25180           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
25181           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
25182           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
25183           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
25184           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
25185           enumerations (FlagsAttribute, SerializableAttribute, added/removed
25186           values)
25187
25188 2006-06-28  Mike Kestner  <mkestner@novell.com>
25189
25190         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
25191
25192 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
25193
25194         * PropertyGrid.cs,
25195           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
25196           item lines from other area (It also makes BackColor consistent and
25197           compatible with .NET). Fixed bug #78564.
25198
25199 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
25200
25201         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
25202         Patch from Eno for #78555.
25203
25204 2006-06-27  Chris Toshok  <toshok@ximian.com>
25205
25206         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
25207
25208         * DataGridColumnStyle.cs: same.
25209
25210         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
25211         
25212         * DataGridDrawingLogic.cs: nuke.
25213
25214 2006-06-27  Chris Toshok  <toshok@ximian.com>
25215
25216         * DataGridTableStyle.cs: clean up the constructors, and build the
25217         list of child relations for this table.  I have no idea if this is
25218         where we should be doing it (it probably isn't), but since we're
25219         already iterating over the properties..
25220
25221         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
25222         struct and array for keeping track of row information, similar to
25223         what's shown in a hack on
25224         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
25225
25226         * Theme.cs: be consistent about the naming of DataGrid methods,
25227         prefering ColumnWidths and RowHeights over columnsWidths and
25228         RowsHeights.
25229
25230         * ThemeWin32Classic.cs: same, and also add support for variable
25231         sized rows (and the +/- expansion icons for related rows).
25232
25233 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25234
25235         * TextBoxBase.cs: Applied Eno's patch from #78660
25236
25237 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25238
25239         * Form.cs (ScaleCore): We don't want to scale our form if it's
25240           state is minimized or maximized, but we still need to scale our
25241           child windows. Also, added try/finally block to ensure layout
25242           gets reset (Fixes #78697)
25243
25244 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
25245
25246         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
25247
25248 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
25249
25250         * Form.cs: Fixed c+p error and added check to resize form if minimum
25251           size is bigger than current size (Fixes #78709)
25252
25253 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
25254
25255         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
25256
25257 2006-06-26  Mike Kestner  <mkestner@novell.com>
25258
25259         * ComboBox.cs: only do Keypress handling in the combo when there  
25260         are items in the collection. Fixes #78710.
25261
25262 2006-06-26  Chris Toshok  <toshok@ximian.com>
25263
25264         * Binding.cs: make this work bi-directionally.  also, clear up
25265         other mixups between Push/Pull Data (e.g. we're supposed to pull
25266         data when validating).
25267
25268         * BindingManagerBase.cs: trim some fully qualified collection
25269         types.
25270
25271         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
25272
25273 2006-06-23  Chris Toshok  <toshok@ximian.com>
25274
25275         * PropertyManager.cs: It appears (according to the unit tests)
25276         that PropertyManager doesn't use
25277         PropertyDescriptor.AddValueChanged to track propery value changes
25278         in its datasource, but uses the same scheme as Binding, where it
25279         looks for a <Property>Changed event and binds to it.
25280
25281         Also, according to the docs, IsSuspended always returns false for
25282         a property manager with a non-null datasource.
25283
25284 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
25285
25286         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
25287           need to update the actual DialogResult. (Fixes #78613)
25288
25289 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
25290
25291         * Form.cs (ShowDialog): Release any captures before running the
25292           new message pump (fixes #78680)
25293
25294 2006-06-22  Mike Kestner  <mkestner@novell.com>
25295
25296         * ListView.cs: Layout column widths properly in details mode even 
25297         if HeaderStyle.None is set.  Fixes #78691.
25298
25299 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
25300
25301         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
25302
25303 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
25304
25305         * Control.cs (ContainsFocus): Using new driver method to get focused
25306           window, instead of trying to use internal tracking var, which can
25307           recursion issues (Fixes #78685)
25308         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25309           XplatUIWin32.cs: Added GetFocus method to return focused window
25310
25311 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25312
25313         * ColorDialog.cs: when the mouse button is pressed inside the color
25314         matrix, don't let the cursor move out of it until the button is
25315         released, which is the behavior on windows. Changed 'colours' by
25316         'colors' to use the same word consistently.
25317
25318 2006-06-21  Chris Toshok  <toshok@ximian.com>
25319
25320         * DataGrid.cs: add in some basic navigation stuff (navigating to a
25321         child relation and back, using a stack).  Also, remove
25322         GetDataSource and the code that calls it - it's not needed.  Also,
25323         track CurrencyManager.ListName's removal.
25324
25325 2006-06-21  Chris Toshok  <toshok@ximian.com>
25326
25327         * CurrencyManager.cs: push some of the original type checking from
25328         BindingContext.CreateBindingManager to here, and remove some of
25329         the finalType stuff.  Need more tests to make sure I've got the
25330         ListName part right, and we might need more in SetDataSource.
25331
25332         * PropertyManager.cs: add a ctor that takes just the datasource,
25333         and no property name.  Make SetDataSource work with a null
25334         property_name, and make Current return the data_source if the
25335         property descriptor is null.  this makes 'string foo = "hi";
25336         BindingContext[foo].Current' return "hi" as it should.
25337
25338         * RelatedCurrencyManager.cs: make this code more generic - there's
25339         no reason the parent manager has to be CurrencyManager, and
25340         there's no reason to pass the DataRelation.  It suffices to use a
25341         BindingManagerBase and PropetyDescriptor.
25342
25343         * RelatedPropertyManager.cs: make a similar change here.
25344         
25345         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
25346         flower I knew it could be.
25347
25348 2006-06-20  Chris Toshok  <toshok@ximian.com>
25349
25350         * PropertyManager.cs: the PropertyChangedHandler is invoked when
25351         data in the source has changed and we need to update the control,
25352         so s/PullData/PushData.
25353
25354         * CurrencyManager.cs: Refresh is meant to update the control from
25355         data in the datasource.  So, s/PullData/PushData.
25356
25357         * BindingContext.cs: add more ugliness (we weren't handling the
25358         case where data_source = DataTable and data_member = column_name).
25359
25360         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
25361         from the perspective of the datasource.  PullData pulls from the
25362         control, PushData pushes to the control.
25363
25364 2006-06-20  Chris Toshok  <toshok@ximian.com>
25365
25366         * BindingContext.cs: rewrite the CreateBindingManager code to
25367         handle navigation paths more or less properly.  This could
25368         definitely stand some more work, in particular to push the
25369         recursion up to the toplevel.  But that relies on fixes in other
25370         places (System.Data comes to mind).
25371
25372         Also, move to a flat hashtable (and encode the twolevel nature of
25373         the dictionary into the hash key).  This lets us implement the
25374         IEnumerable.GetEnumerator method.
25375
25376         * RelatedCurrencyManager.cs: new class.  Update our view based on
25377         our relation and our parent CurrencyManager's position.
25378
25379         * CurrencyManager.cs: split out some logic from the ctor into
25380         SetView, so it can be called from the new RelatedCurrencyManager
25381         subclass.
25382
25383         * RelatedPropertyManager.cs: new class.  Update our datasource
25384         based on the position of our parent CurrencyManager.
25385
25386         * PropertyManager.cs: split out some logic from the ctor into
25387         SetDataSource, so it can be called from the new RelatedDataSource
25388         subclass.  Also, make the Current getter return the value
25389         of the PropertyDescriptor, not the data_source.
25390
25391         * Binding.cs: no need to duplicate the string splitting code here.
25392
25393 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25394
25395         * Control.cs:
25396           - set_Enabled: OnEnabledChanged is not called if the inherited state 
25397             of the control is not altered, even though  we might be changing the
25398             internal state of the control (#78458)
25399           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
25400             OnEnabledChanged, to allow easy altering of any child window state
25401           - OnEnabledChanged: Added code to enable/disable driver window state
25402           - OnParentEnabledChanged: Instead of firing the event, call 
25403             OnEnabledChanged, which will fire the event and also a) set driver
25404             window state and pass the enabled state to any grandchildren (#78458)
25405
25406 2006-06-19  Jackson Harper  <jackson@ximian.com>
25407
25408         * InternalWindowManager.cs: We don't set the cursor explicitly
25409         thats done via the response to NCHITTESTs.
25410         - Don't need to adjust for titlebar heights anymore, the
25411         coordinates are coming in the correct coordinates now (see peters
25412         last patch).
25413
25414
25415 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
25416
25417         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
25418           being translated relative to whole window, instead of client window.
25419           That caused broken offsets on mouseclick (and caused gas for our
25420           InternalWindowManager)
25421
25422 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25423
25424         * TextControl.cs:
25425           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
25426           - Undo(): Added replay of cursor move on DeleteChars action; added
25427             calling Undo() again if a recorded cursor move is invalid (to
25428             ensure that some action is performed on Undo)
25429         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
25430
25431 2006-06-16  Jackson Harper  <jackson@ximian.com>
25432
25433         * MdiClient.cs: Instead of just sizing maximized windows when
25434         there is a resize we also have to adjust the Y of minimized
25435         windows, so they stay pinned to the bottom of the mdi container.
25436         - Eliminate separate tracking of the active control, we can just
25437         get this from the controls collection.
25438         - Paint the decorations for the newly activated titlebar so we get
25439         a pretty blue bar.
25440         * InternalWindowManager.cs:
25441         * ThemeWin32Classic.cs: Minimized windows get all three buttons
25442         even if they are a tool window.
25443         
25444 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
25445
25446         * TextControl.cs (Undo): Handle non-existent cursor locations in the
25447           undo buffer, these can happen when text was deleted and the cursor
25448           was recorded first. Since we will also have a recorded cursor
25449           after the delete this is not an issue. (Fixes #78651)
25450
25451 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
25452
25453         * AccessibleObject.cs: Remove dependence on Control.is_selected;
25454           instead properly track control states internally (allows us to
25455           remove is_selected from Control)
25456
25457 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25458
25459         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
25460         whose width is not a multiple of 8.
25461
25462 2006-06-13  Jackson Harper  <jackson@ximian.com>
25463
25464         * MdiClient.cs:  Only maximize the next child if the current one
25465         is maximized.
25466
25467 2006-06-13  Chris Toshok  <toshok@ximian.com>
25468
25469         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
25470         modified.  Also, guard against grid or grid_drawing being null in
25471         Invalidate.
25472
25473         * DataGrid.cs: Reformat tons of getters/setters.  In the
25474         DataMember setter, just call SetNewDataSource instead of
25475         duplicating some of its functionality.  In SetNewDataSource, don't
25476         check ListManager for null, since the property getter creates the
25477         object if needed.
25478
25479         * DataGridTableStyle.cs: don't set TableStyle or call
25480         SetDataGridInternal on the column here, it's done in
25481         GridColumnStylesCollection.Add.
25482
25483         * GridColumnStylesCollection.cs: fix all the explicit interface
25484         implementations to just call our methods.  Nuke AddInternal() and
25485         move the body of it to Add().  Also, add a call to
25486         column.SetDataGridInternal to Add().
25487
25488         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
25489         base()+duplicate code.  Also, use the Format property instead of
25490         format to generate an Invalidate ala MS.  Lastly, create the
25491         textbox here, unconditionally.
25492         (set_Format): call Invalidate.
25493         (get_TextBox): no need to call EnsureTextBox.
25494         (Commit): remove the message box.
25495         (Edit) remove the call to EnsureTextBox.
25496         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
25497         (EnterNullValue): no need to check textbox for null.
25498         (HideEditBox): no need to check textbox for null.
25499         (SetDataGridInColumn): add the textbox to the grid's controls.
25500         (EnsureTextBox): nuke.
25501         
25502 2006-06-13  Jackson Harper  <jackson@ximian.com>
25503
25504         * MdiWindowManager.cs: Hook up to the maximized menus paint event
25505         and redraw the buttons when needed. Unhook when the window is
25506         unmaximized.
25507         * MainMenu.cs: Add an internal Paint event, the mdi window manager
25508         needs this so that it can redraw its buttons when the menu is
25509         repainted.
25510         * InternalWindowManager.cs:
25511         * Form.cs: The method order has changed for DrawMaximizedButtons,
25512         so that it can be a PaintEventHandler.
25513         
25514 2006-06-13  Jackson Harper  <jackson@ximian.com>
25515
25516         * MdiClient.cs: When we close a maximized mdi window, the next mdi
25517         window is activated and maximized, even if it wasn't before.
25518         - When  a new window is activated repaint the decorations of the
25519         old one, so that it no longer has the Active "look" (the blue
25520         titlebar).
25521         * InternalWindowManager.cs: Open up CreateButtons to base classes
25522         so they can recreate the buttons on state changes.
25523         - If a window is maximized give it all three buttons
25524         * MdiWindowManager.cs: Create the titlebar buttons when the state
25525         is changed, this is needed because a toolwindow will not have all
25526         three buttons until it is maximized.
25527
25528 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
25529
25530         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
25531           Fixed bug #78609.
25532
25533 2006-06-12  Jackson Harper  <jackson@ximian.com>
25534
25535         * KeysConverter.cs: Make sure we handle the Ctrl special case
25536         if its the only key.
25537         
25538 2006-06-12  Jackson Harper  <jackson@ximian.com>
25539
25540         * Theme.cs: Add a method to get the size of a managed window
25541         toolbar button.
25542         * InternalWindowManager.cs: Remove the ButtonSize property, this
25543         should be retrieved from the theme.
25544         * MdiWindowManager.cs: Get the button size from the theme
25545         * ThemeWin32Classic.cs: Make the method to get the managed window
25546         titlebar button size public.
25547         - Handle the different button sizes of maximized toolwindows
25548         (should match any maximized window).
25549         - Get the titlebar height from the theme, not the WM (which gets
25550         it from the theme).
25551
25552 2006-06-12  Jackson Harper  <jackson@ximian.com>
25553
25554         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
25555         event down to the mdi window manager.
25556         - Expose some extra stuff to base classes
25557         - Make sure to end the Capture on an NC Mouse up, so that we can
25558         get double clicks properly, and the sizing doens't stick.
25559         - When doing PointToClient contain it in the workable desktop
25560         area, this prevents windows from changing size when the cursor is
25561         pulled outside of the working area while sizing.
25562         * MdiWindowManager.cs: When we get a double click maximize the
25563         window.
25564         - Reset the cursor after handling mode changes.
25565
25566 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
25567
25568         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
25569           current desktop, instead of just assuming a 0, 0 origin. This
25570           is needed for our internal window manager, to know the top
25571           margin of the desktop
25572
25573 2006-06-12  Chris Toshok  <toshok@ximian.com>
25574
25575         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
25576         we need this to get rid of the selected background in the bool
25577         column.
25578         (CancelEditing): move the ConcedeFocus call to above the Abort
25579         call.  Also, set is_changing to false and invalidate the row
25580         header if we were changing before.
25581         (ProcessKeyPreviewInternal): remove, since noone outside this
25582         class calls it anymore.  Roll the code into ProcessKeyPreview.
25583         (EndEdit): remove the internal version.
25584         (InvalidateCurrentRowHeader): make private.
25585
25586         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
25587         Keys.Escape handling (and with it the last call to
25588         DataGrid.EndEdit from outside the class.)
25589
25590
25591 2006-06-12  Chris Toshok  <toshok@ximian.com>
25592
25593         * DataGridTextBox.cs (.ctor): isedit defaults to false.
25594         (OnKeyPress): set isedit to true.
25595         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
25596         already handled by the grid.
25597
25598         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
25599         right.  ugh.
25600         (set_DataSource): SetDataSource always returns true, so stop
25601         putting it in an if statement.
25602         (EndEdit): get rid of some {}'s
25603         (ProcessGridKey): return true in case Keys.Escape.
25604         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
25605         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
25606         PositionChanged, stopped connecting to CurrentChanged.
25607         (GetDataSource): simplify this a bunch.
25608         (SetDataSource): change return type from bool to void.
25609         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
25610         to this, and make sure we don't set ListManager.Position inside
25611         set_CurrentCell.
25612         (OnListManagerItemChanged): if we're passed an actual index,
25613         redraw that row.
25614
25615         * CurrencyManager.cs (set_Position): don't call PullData here.
25616
25617 2006-06-09  Jackson Harper  <jackson@ximian.com>
25618
25619         * TreeNode.cs:  Recalculate the visible order before doing the
25620         Expand/Collapse Below calls, because those calls generate an
25621         expose.
25622         - Reduce calls to the TreeView property, which is mildly expensive
25623         by using a local var.
25624         * Form.cs: Layout the MDI child windows when creating the parent
25625         form.
25626         - Don't use the internal constructor anymore
25627         * MdiClient.cs: use the parent form width/height (if available)
25628         when laying out the child windows, we do this because the
25629         mdiclient isn't docked yet when the initial layout is done.
25630         - Don't need an internal constructor anymore.
25631
25632 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25633
25634         * FileDialog.cs: handle access errors when trying to create a folder
25635         or changing to a directory. No need to initialize out parameters.
25636
25637 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25638
25639         * FileDialog.cs: Append a number when creating a new folder if the
25640           folder already exists (use parenthesis instead of square brackets)
25641
25642 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25643
25644         * FileDialog.cs:
25645           - Disabled registry support for windows and added better registry
25646             error checking for other systems (need to investigate why it
25647             works perfectly on my system)
25648           - If a folder already exist show an error MessageBox instead of
25649             trying to create an indexed name.
25650           - Fixed a non intentional typo.
25651
25652 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25653
25654         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
25655
25656 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25657
25658         * FileDialog.cs: When creating a new folder don't crash if the
25659           folder already exists.
25660
25661 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25662
25663         * FileDialog.cs: Allmost a complete rewrite.
25664           - added a "virtual" file system that handles the differences
25665             between unix and windows file systems (especially the directory
25666             structure). Moved most of the directory and file handling code
25667             into the vfs.
25668             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
25669             UnixFileSystem and FSEntry.
25670           - Recently used folder/directory, size, location and used file names
25671             (file name ComboBox) are now stored in the registry and get read
25672             before the dialog shows up (fixes part 6 of bug #78446).
25673           - Creation of new folders/directories is now possible (context menu
25674             or ToolBar). Added TextEntryDialog for this that fills in the gap
25675             until ListView.LabelEdit works.
25676           - Fixed cursor handling (bug #78527) and focus handling for
25677             PopupButtonPanel
25678           - Various "Search in" ComboBox enhancements. The content of the
25679             dropdown listbox now almost matches ms.
25680           - Changed the behaviour when the user switches to SpecialFolder
25681             Recent to show the ListView in View.Details.
25682           - Beside using the ToolBar to change the View property of the
25683             file ListView it is now possible to use the context menu too.
25684
25685 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
25686
25687         * ComboBox.cs: Don't create a new ObjectCollection when an item
25688           gets inserted. Just insert the item in the existing object_items
25689           ArrayList.
25690
25691 2006-06-08  Jackson Harper  <jackson@ximian.com>
25692
25693         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
25694         that the treeview and root node checks are done also, this fixes a
25695         regression i caused in the unit tests.
25696
25697 2006-06-07  Wade Berrier <wberrier@novell.com> 
25698
25699         * RichTextBox.cs: More ISO8859-1 -> unicode
25700
25701 2006-06-07  Mike Kestner  <mkestner@novell.com>
25702
25703         * ComboBox.cs : use items to hold highlight/selection so that
25704         collection insertions don't require synchronization.
25705
25706 2006-06-07  Jackson Harper  <jackson@ximian.com>
25707
25708         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
25709         routine.  We now always keep the sized edge at the cursor instead
25710         of computing movement and adjusting rects.  There is one buglet
25711         with this method though when the cursor is moved over area that
25712         the window can not expand too (such as the toolbars on the desktop).
25713
25714 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25715
25716         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
25717         here. Fixes crash on startup in AlbumSurfer.
25718
25719 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
25720
25721         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
25722           values
25723
25724 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25725
25726         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
25727         statement to avoid calling XNextEvent which will block if another thread
25728         took the event that we were expecting. Fixes bug #78605.
25729
25730 2006-06-07  Mike Kestner  <mkestner@novell.com>
25731
25732         * ListView.cs : isolated checkbox clicking from the selection logic.
25733         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
25734
25735 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
25736
25737         * Form.cs: Check that the value passed to Form.DialogResult
25738         is a valid enum value.
25739
25740 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25741
25742         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
25743         Computer'. Clicking it in the network view goes to 'My Computer'.
25744         Added CIFS filesystem type. Display the mount point of filesystems.
25745         Avoid duplicate mount points (happens for me with CIFS);
25746
25747 2006-06-06  Jackson Harper  <jackson@ximian.com>
25748
25749         * InternalWindowManager.cs: Draw the maximized windows buttons
25750         when resizing.
25751
25752 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25753
25754         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
25755         all other dialogs. Fixes bug #78585.
25756
25757 2006-06-06  Mike Kestner  <mkestner@novell.com>
25758
25759         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
25760         Only invalidate checkbox on checkstate changes to avoid flicker.
25761         * ListBox.cs : avoid unselect/select when clicking selected item.
25762         avoid reselection flicker for already multiselected items.
25763         Fixes #78382.
25764
25765 2006-06-06  Jackson Harper  <jackson@ximian.com>
25766
25767         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
25768         the parent form so that the menu is removed if needed.
25769
25770 2006-06-06  Mike Kestner  <mkestner@novell.com>
25771
25772         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
25773         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
25774
25775 2006-06-06  Mike Kestner  <mkestner@novell.com>
25776
25777         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
25778
25779
25780 2006-06-06  Jackson Harper  <jackson@ximian.com>
25781
25782         * Control.cs: Use the property (instead of the field) to get the
25783         default cursor so it is instantiated correctly.
25784         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
25785         resizes so we need to manually repaint the window decorations here.
25786         - Set the titlebar button locations as soon as they are created,
25787         otherwise they are not set correctly on win32.
25788         
25789 2006-06-06  Chris Toshok  <toshok@ximian.com>
25790
25791         * CurrencyManager.cs (set_Position): call PullData before
25792         OnCurrentChanged.
25793         (AddNew): after calling IBindingList.AddNew, update our
25794         listposition, and call OnCurrentChanged/OnPositionChanged (without
25795         calling PullData).
25796         (OnCurrentChanged): remove the call to PullData from here.
25797         (OnItemChanged): remove the call to PushData from here.
25798         (OnPositionChanged): change the test from == null to != null to
25799         match the other methods.
25800         (ListChangedHandler): the grossest part of the patch.  Implement
25801         this such that it passes the unit tests in CurrencyManagerTest and
25802         the output more or less matches that of MS's implementation.
25803  
25804 2006-06-06  Mike Kestner  <mkestner@novell.com>
25805
25806         * ListView.cs : only update check state on single click.
25807         * ThemeWin32Classic.cs : fix focus drawing for details view without
25808         fullrowselect.  Fixes #78454.
25809         * XplatUIX11.cs : fix for double click emission.
25810
25811 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
25812
25813         * PropertyGridView.cs : Applied Atsushi's patch to fix
25814         font dialog bug  (#78197).
25815
25816 2006-06-05  Jackson Harper  <jackson@ximian.com>
25817
25818         * TreeNode.cs: Compute the next node for expanding/collapsing
25819         correctly. We now factor in nodes without a NextNode
25820         correctly. (Fixes somes cases in nunit-gui).
25821         * InternalWindowManager.cs: Set the bounds when updating the
25822         virtual position of a tool window.
25823         
25824 2006-06-05  Chris Toshok  <toshok@ximian.com>
25825
25826         * DataGrid.cs: rename cached_currencymgr to list_manager.
25827         (set_CurrentCell): move SetCurrentCell code here, and clean it up
25828         some.
25829         (CurrentRow, CurrentColumn): single accessors so we can make the
25830         cursor movement code a lot easier to understand.
25831         (CurrentRowIndex): implement this in terms of CurrentRow.
25832         (BeginEdit): clean this up a bit.
25833         (CancelEditing): sort out the is_editing/is_changing/is_adding
25834         stuff a little.
25835         (EndEdit): minor changes.
25836         (OnKeyDown): add a comment about a (most likely) unnecessary
25837         check.
25838         (OnMouseDown): cancel editing when we click on a row header.  And
25839         use the CurrentRow setter, not CurrentCell.
25840         (ProcessDialogKey): directly call ProcessGridKey.
25841         (UpdateSelectionAfterCursorMove): factor out this common block of
25842         code (it's used everywhere that we move the cursor by updating row
25843         or column).
25844         (ProcessGridKey): pretty substantial overhaul.  Use the
25845         CurrentRow/CurrentColumn properties to make the code a lot more
25846         readable.  Only use the CurrentCell property when we have to
25847         modify both row and column at once.  Tab behavior is still broken,
25848         and Delete is untested.
25849         (Select): if we have no selected rows, set selection_start to
25850         @row.
25851         (EditCurrentCell): rename EditCell this.  It was only ever invoked
25852         with CurrentCell as the arg, so drop the arg and rename it.
25853
25854         * DataGridColumnStyle.cs: clean up the constructors a little, and
25855         drop CommonConstructor().
25856
25857         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
25858         actually get notified when the user hits it.
25859         (ProcessKeyMessage): *substantially* simplify this method.
25860         There's no reason (that I can see) for the textbox to be making
25861         calls into the datagrid at all.  Remove all of them but the ones
25862         for Enter handling.  those will take some more work.
25863
25864         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
25865         calling HideEditBox.
25866         (HideEditBox): if we have an active textbox, render it invisible
25867         without causing a re-layout of the datagrid.
25868
25869 2006-06-05  Mike Kestner  <mkestner@novell.com>
25870
25871         * ListView.cs : fix NRE crasher when focuseditem is cleared by
25872         collection changes by resetting it to Items[0].  Fixes #78587.
25873
25874 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25875
25876         * MessageBox.cs: if the height of the text is larger than the icon_size,
25877         use that. Fixes bug #78575.
25878
25879 2006-06-05  Jackson Harper  <jackson@ximian.com>
25880
25881         * TreeView.cs: Fix line drawing when scrolling.  To do this each
25882         node is basically responsible for drawing its entire horizontal
25883         area.  When drawing a node it draws its parent node lines if
25884         needed.
25885         - Adjust the clip area to the viewport rectangle
25886         - Fix Left/Right key handling to match MS. (It expand/collapses
25887         and moves to parents/first child but does not move selection to
25888         sibling nodes).
25889         - Fix SetTop to work with new bound calculation code
25890         - When scrollbars are no longer needed we need to reset scrolling
25891         vars and recalculate the visible order so the redraw is correct
25892         * TreeNode.cs: We can't expand/collapse nodes with no children.
25893
25894 2006-06-03  John Luke  <john.luke@gmail.com> 
25895
25896         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
25897         so the colors work without dev packages
25898         
25899 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
25900
25901         * Control.cs 
25902           - Select: Implemented to just use activate. Seems to match MS 
25903             behaviour closest. Documented to only do actual control walking 
25904             based on it's parameters if in a container control so I moved 
25905             the code there.
25906           - Removed selection check logic from our internal Select() method
25907         * ContainerControl.cs:
25908           - Select: Moved selection logic from Control here, since MS documents
25909             that containers obey the bool arguments. No longer calling base
25910
25911 2006-06-02  Jackson Harper  <jackson@ximian.com>
25912
25913         * TreeView.cs: If the selected node isn't changed when we get
25914         focus update the previously selected node so that we see the
25915         selection box.
25916
25917 2006-06-02  Mike Kestner  <mkestner@novell.com>
25918
25919         * ComboBox.cs: restructure grab and general mouse event handling.
25920         Make the composite control raise mouse events like it was a single
25921         control for leaves/enters/motion/up/down events.  fix dropdown list
25922         coordinate mangling and refactor it into the scrollbar subclass to
25923         reduce code duplication.  Fixes #78282 #78361 and #78457.
25924
25925 2006-06-02  Mike Kestner  <mkestner@novell.com>
25926
25927         * ScrollBar.cs: remove Capture setting/clearing, as it happens
25928         automatically in the Control.WndProc.
25929
25930 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25931
25932         * FileDialog.cs: fix crash when running SharpChess, which sets the
25933         FilterIndex to 2 with only one Filter.
25934
25935 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25936
25937         * ToolBar.cs: add SizeSpecified property.
25938         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
25939         try to figure out our real size, otherwise fallback to what the
25940         container says.
25941
25942 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25943
25944         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
25945         * Control.cs (WndProc): MS always calls the DefWndProc to pass
25946           up the event
25947
25948 2006-06-01  Mike Kestner  <mkestner@novell.com>
25949
25950         * ListView.cs: revamp the focus management in ListView.  It still
25951         causes churn of LostFocus/GotFocus emissions on clicks, but it's
25952         better than not handling focus at all.  Will revisit when pdb feels
25953         the general focus handling is solid.  Fixes #78526.
25954
25955 2006-06-01  Jackson Harper  <jackson@ximian.com>
25956
25957         * TreeView.cs: Set the default border style in the constructor.
25958         - Move painting to use OnPaintInternal instead of capturing
25959         WM_PAINT, this is the correct way of doing things
25960         - UpdateBelow shouldn't invalidate the scrollbar area
25961         - Cap the top on update below in case the node was above the top
25962         of the viewport rectangle.
25963         - ExpandBelow and Collapse below need to obey Begin/End Update.
25964         * TreeNode.cs: Make is_expanded internal so the treenode
25965         collection can change it without firing the whole event chain.
25966         * TreeNodeCollection.cs: When clearing all the child nodes make
25967         sure to recalc the visible order.
25968         - Improve algo for remove the top node
25969
25970 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
25971
25972         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
25973           SendMessage directly calling window procedures, which in turn might
25974           call SetFocus()
25975
25976 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
25977
25978         * Control.cs: Don't handle WM_SETFOCUS if the same window already
25979           has focus (works around X11 sending a FocusIn after our SetFocus)
25980         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
25981
25982 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
25983
25984         * Mime.cs: Fix for the NET_2_0 build.
25985           NameValueCollection needs StringComparer now.
25986
25987 2006-05-31  Chris Toshok  <toshok@ximian.com>
25988
25989         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
25990         return (via an out parameter) the starting X of the column.
25991         (UpdateVisibleColumn): track change to FromPixelToColumn.
25992         (HitTest): add a ColumnResize case here.
25993         (DrawResizeLine): new function, probably poorly named.
25994
25995         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
25996         only need to keep one reference.
25997         (set_ListManager): same.
25998         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
25999         Also, add support for HitTestType.ColumnResize.
26000         (OnMouseMove): add column resize behavior here, and change the
26001         cursor to the correct one as we move around the datagrid.
26002         (OnMouseUp): terminate the column resize if we're resizing.
26003         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
26004         for the current cell.
26005         (ConnectListManagerEvents): use cached_currencymgr.
26006         (DisconnectListManagerEvents): fill this in, using
26007         cached_currencymgr.
26008         (SetCurrentCell): remove cached_currencymgr_events handling.
26009         (SetDataMember): only call DisconnectListManagerEvents if
26010         cached_currencymgr is != null.
26011         (SetDataSource): same.
26012         (OnListManagerCurrentChanged): cached_currencymgr_events ->
26013         cached_currencymgr.
26014
26015 2006-05-31  Jackson Harper  <jackson@ximian.com>
26016
26017         * BindingManagerBase.cs: Remove somedebug code that creeped into
26018         SVN.
26019         * TreeNode.cs: We get the indent level dynamically right now, so
26020         don't track it as a member.
26021         * TreeNodeCollection.cs: Make sure all nodes added to the list
26022         have parents, treeviews/topnodes setup properly.
26023         - Don't attempt to track indent level.
26024
26025 2006-05-30  Jackson Harper  <jackson@ximian.com>
26026
26027         * BindingContext.cs: Create the currency manager tables here.
26028         This allows us to more easily create null tables (when bad data
26029         members are used), and more easily create related currency
26030         managers.
26031         * CurrencyManager.cs: All the table creation stuff is done by the
26032         binding context now.
26033         - Current should throw an exception if listposition is -1.
26034         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
26035         been bound yet.
26036
26037 2006-05-30  Mike Kestner  <mkestner@novell.com>
26038
26039         * ListView.cs: allow reexpansion of zero-width column headers.
26040         Fixes #78528.
26041
26042 2006-05-28  Chris Toshok  <toshok@ximian.com>
26043
26044         * CurrencyManager.cs (get_Current): after the late binding
26045         listposition = -1 fix, we need to guard against it here and return
26046         null, otherwise we raise an exception (which is swallowed
26047         elsewhere, and breaks datagrid databinding.)
26048
26049 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26050
26051         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
26052           than WM_SYSKEY, don't throw if get something unexpected (#78507)
26053
26054 2006-05-26  Jackson Harper  <jackson@ximian.com>
26055
26056         * ControlPaint.cs:
26057         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
26058         values, it's faster and it's all we care about (we don't care if
26059         the names aren't equal).
26060         * KeyboardLayouts.cs: Eliminate some dead code.
26061         - Lazy init things
26062         * X11Keyboard.cs: Lazy init keyboard detection.
26063         - Cleanup access modifiers a little.
26064
26065 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
26066
26067         * XplatUIX11.cs: Once again, attempting to get layout just right.
26068
26069 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
26070
26071         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
26072           the sizes of each link section, that will result in sizes that
26073           match DrawString's layout (Fixes #78391)
26074
26075 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
26076
26077         * FileDialog.cs: If AddExtension property is true autocomplete the
26078           extensions in SaveFileDialog correctly. Fixes bug #78453.
26079           Set MyNetwork and MyComputer to "C:\" for windows. This should
26080           fix part 8 of bug #78446 for now.
26081
26082 2006-05-26  Chris Toshok  <toshok@ximian.com>
26083
26084         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
26085         invalidate the current row header if we need to, but presumably
26086         we'll invalidate the row corrsponding to the bounds or
26087         editingControl.
26088         (GridHScrolled): switch back to this method, as it's part of the
26089         public api.  *sigh*.
26090         (GridVScrolled): same.
26091         (OnMouseWheel): hack up something that more or less works.  Call
26092         GridHScrolled/GridVScrolled directly, instead of duplicating much
26093         of their code here.
26094         (EnsureCellVisibility): reinstate a bunch of this code, since we
26095         can't just set the scrollbar Value and expect to do all the work
26096         in the ValueChanged handler.  Also, Call Update() after scrolling
26097         in one direction so the other XplatX11.ScrollWindow call has the
26098         proper stuff in the proper places.
26099         (EditCell): set is_editing to true before calling .Edit.
26100
26101         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
26102         don't bother comparing first.
26103         (OnKeyPress): call grid.ColumnStartedEditing before calling
26104         base.OnKeyPress.  this will set is_changing and invalidate the row
26105         header if necessary.
26106         (ProcessKeyMessage): for WM_CHAR messages, call
26107         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
26108         and WM_KEYDOWN.
26109         
26110         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
26111         it's done in the DataGrid.
26112         (NextState): call grid.ColumnStartedEditing, which takes care of
26113         invalidating the row header (and setting is_changing).
26114
26115         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
26116         here.  it's done in the DataGrid.
26117
26118 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26119
26120         * Control.cs: allow changing the cursor when the mouse position is
26121         out of bounds but Capture is set.
26122         * LinkLabel.cs: handle the case when the mouse button is pressed on the
26123         linklabel but released somewhere else.
26124
26125 2006-05-25  Jackson Harper  <jackson@ximian.com>
26126
26127         * TreeView.cs: When we get focus if there is no selected node make
26128         it the top node
26129         - Remove some uneeded setup code from Draw.
26130         * TreeNodeCollection.cs: If the tree doesn't have a top node when
26131         a new node is inserted make the new node the top.
26132         * XplatUIX11.cs:
26133         * Timer.cs: Use Utc time so that no local time zone stuff needs to
26134         be used (should be faster).
26135         
26136 2006-05-25  Chris Toshok  <toshok@ximian.com>
26137
26138         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
26139         problem with the last commit.
26140
26141 2006-05-25  Chris Toshok  <toshok@ximian.com>
26142
26143         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
26144         need the invalidate call here, while scrolling right-to-left via
26145         the left arrow key (i.e. moving the editing cell while scrolling).
26146
26147         * DataGrid.cs (.ctor): remove the initialization of
26148         ctrl_pressed/shift_pressed.  We no longer track them using key
26149         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26150         to using ValueChanged handlers on the scrollbars instead of
26151         Scrolled event handlers.  This simplifies a bunch of the scrolling
26152         code.
26153         (GridHValueChanged): rename from GridHScrolled, and change it to
26154         work with the new event args.
26155         (GridVValueChanged): same.
26156         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
26157         (OnMouseWheel): actually scroll the datagrid.  Don't change the
26158         selected cell.
26159         (ProcessGridKey): correct all the keyboard navigation stuff I
26160         could find.  Ctrl up/down/left/right/home/end work now.
26161         (EnsureCellVisibility): correct method name spelling.  Also,
26162         simplify this a touch by not explicitly calling the
26163         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
26164         scrollbar value.
26165         (OnKeyUpDG): no need for this method now.
26166         
26167 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26168
26169         * LinkLabel.cs: display the OverrideCursor when hovering the label.
26170         Fixes bug #78392.
26171
26172 2006-05-25  Chris Toshok  <toshok@ximian.com>
26173
26174         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
26175         r61019.
26176
26177 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26178
26179         * Application.cs: Moved setting of is_modal and closing to before
26180           we create the control, to allow the event handlers called as a
26181           result of creation affect closing. Also removed Gonzalo's previous
26182           change to setting DialogResult, the behaviour has been moved to 
26183           Form.ShowDialog()
26184         * Form.cs: 
26185           - ShowDialog(): Removed explicit creation of the form, let RunLoop
26186             handle it instead
26187           - ShowDialog(): If no dialog result is set, we need to return Cancel
26188           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
26189             the close is cancelled
26190
26191 2006-05-25  Jackson Harper  <jackson@ximian.com>
26192
26193         * StatusBar.cs: We only need to update the sizes of the other
26194         panels when we have auto size contents.  Also we are only updating
26195         the contents of the panel, not the borders, so compensate for the
26196         border width (TODO: get this width from the theme somehow).
26197         * TreeView.cs: Scrollable is true by default
26198         - Use invalidate instead of refresh where needed
26199         - Factor the scrollable value into scrollbar updating
26200         - Update the scrollbars if the Scrollable property is altered
26201         - Update the selected node if its ImageIndex is changed
26202         - Handle null nodes in UpdateNode (mainly so we don't have to
26203         check if selected is null when updating it
26204         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
26205         are factored into the visible count
26206         - Use VisibleCount for clarity in the code
26207         - When the font is changed we need to recurse through all the
26208         nodes and invalidate their sizes
26209         
26210 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
26211
26212         * Application.cs: set the DialogResult to fixed when the main form is
26213         hidden or destroyed while being modal.
26214
26215 2006-05-25  Miguel de Icaza  <miguel@novell.com>
26216
26217         * Theme.cs: Use Tangoified messagebox icons. 
26218
26219         (GetSizedResourceImage): Also cope with width = 0 and do not
26220         trigger a warning in that case (0 means "give me your icon from
26221         the resouce, no special size needed).
26222
26223 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
26224
26225         * Application.cs: Leave runloop if the the main modal form is 
26226           hidden (fixes #78484)
26227
26228 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
26229
26230         * BindingContext.cs : reject null datasource in Contains() and
26231           Item[].
26232         * CurrencyManager.cs : check data_member validity when data_source
26233           is dataset. When it is late binding, the initial position is -1.
26234
26235 2006-05-24  Jackson Harper  <jackson@ximian.com>
26236
26237         * TreeNodeCollection.cs: Dont't recalculate the visible order on
26238         inserted nodes that aren't visible.  This changes the
26239         max_visible_order which confuses scrollbar settings.
26240         - Use the enumerator to get the prev node instead of duplicating
26241         code.
26242         * TreeView.cs: Use new method for setting scrollbar values
26243         - Don't set the bounds every time the scrollbar is updated
26244         - When updating below the root node use an invalidate instead of a
26245         refresh to prevent the child controls (scrollbars) from being
26246         refreshed. (UpdateBelow still needs to be reworked anyways).
26247         - Reenable SetBottom now that visible orders are set correctly,
26248         added some debug code incase we ever get bad values there again.
26249         - Set the scrollbar max to 2 less then the max value, this
26250         compensates for the max value being one above the node count, and
26251         for scrollbars adding one extra "notch".
26252         - When drawing image nodes if there is an imagelist we draw the
26253         first image in the list if the supplied image index is out of the
26254         image list's bounds.
26255         
26256 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26257
26258         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
26259           we receive a size change from the WM (Fixes #78503)
26260
26261 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
26262
26263         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
26264           rectangle (Fixes #78501)
26265
26266 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
26267
26268         * ButtonBase.cs: 
26269           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
26270             as a bitfield.
26271           - Fixed MouseMove to no longer switch pressed state unless the left
26272             mouse button is pressed. Atsushi provided the original patch (#78485)
26273           
26274 2006-05-24  Jackson Harper  <jackson@ximian.com>
26275
26276         * ScrollBar.cs: New internal methods that allow us to change a
26277         couple values on the scrollbar (the most common case is maximum
26278         and large change) without getting multiple invalidates.
26279
26280 2006-05-24  Chris Toshok  <toshok@ximian.com>
26281
26282         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
26283         (Edit): save off the original state in oldState, and set
26284         grid.is_editing to true.
26285         (OnKeyDown): abort editing if escape is pressed.  also, call
26286         NextState if space is pressed.
26287         (OnMouseDown): call NextState.
26288         (NextState): factor out shared code from OnKeyDown and OnMouseDown
26289         here.  Also, only invalidate the row header once (on the initial
26290         is_changing switch) to save on redraws.
26291
26292 2006-05-24  Chris Toshok  <toshok@ximian.com>
26293
26294         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
26295         if the value in the cell is different than it was before.  This
26296         keeps us from triggering a layout when we move around a datarid
26297         with a highlighted cell.
26298         (Edit): suspend layout when creating/positining the text box, and
26299         resume passing false so we don't ever actually re-layout.
26300         (ReleaseHostedControl): same.
26301         (EnsureTextBox): reformat slightly, and set WordWrap to false.
26302
26303         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
26304         control-key sequences should go to the datagrid - remove that
26305         lock.  Also, modify the conditions under which we move between
26306         cells when moving the cursor within a cell, and remove the "this"
26307         and "base" from field accesses.  We weren't even consistent, given
26308         they all were in the base class.
26309
26310 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
26311
26312         * Binding.cs : (.ctor)
26313           An obvious NRE fix for BindingTest.CtorNullTest().
26314
26315 2006-05-23  Chris Toshok  <toshok@ximian.com>
26316
26317         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
26318         them between lines.  This fixes some quirks editing cells in the
26319         datagrid.
26320
26321 2006-05-23  Jackson Harper  <jackson@ximian.com>
26322
26323         * TreeView.cs: Use begin/end update when doing expand/collapse all
26324         so that we don't get flicker on the scrollbar.
26325
26326 2006-05-23  Jackson Harper  <jackson@ximian.com>
26327
26328         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
26329         treenode calculations to be independant of the painting code. To
26330         do this nodes track a visible order which is calculated by the
26331         treeview.
26332         - Call new methods for expanding/collapsing nodes.  These methods
26333         use scrollwindow so we don't have to update everything below the
26334         node.
26335         * TreeView.cs: Refactored drawing and scrolling code.  We don't
26336         need to update nodes when drawing anymore or calculate scrollbar
26337         stuff.
26338         - Added new methods for expanding/collapsing nodes. These methods
26339         use ScrollWindow so as to not have to redraw all the nodes below.
26340         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
26341         we add/remove nodes or sort.
26342         - Handle removing the selected and the top node properly.
26343
26344 2006-05-23  Chris Toshok  <toshok@ximian.com>
26345
26346         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
26347         maybe this should actually happen in the datagrid code?
26348         (EndEdit): no need to invalidate anything, given that
26349         ReleaseHostedControl causes the datagrid to relayout, which
26350         invalidates everything anyway.
26351
26352         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
26353         in SetCurrentCell).
26354         (set_SelectionBackColor): call InvalidateSelection instead of
26355         Refresh.
26356         (set_SelectionForeColor): same.
26357         (BeginEdit): Flesh this out a bit.
26358         (CancelEditing): only do any of this if we're editing/adding.
26359         (EndEdit): same.
26360         (OnMouseDown): there's no need to cancel editing here, it's done
26361         in SetCurrentCell.
26362         (SetCurrentCell): only invalidate the current row header if it's a
26363         different row than the new one.
26364         (ShiftSelection): fix this to work like MS does.
26365         (ResetSelection): factor out the invalidation of selected_rows to
26366         InvalidateSelection.
26367         (SetDataSource): cancel any editing that's going on.
26368
26369         * DataGridColumnStyle.cs
26370         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
26371         call the non-interface version.
26372
26373         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
26374         header rectangle with the clip rectangle so we don't redraw the
26375         entire header for just a small area.  Gets rid of the last flicker
26376         when horizontally scrolling.
26377         (DataGridPaintRow): same.
26378
26379 2006-05-23  Mike Kestner  <mkestner@novell.com>
26380
26381         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
26382         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
26383         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
26384         Critical bug report.
26385
26386 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26387
26388         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
26389           and this fixes #78493
26390
26391 2006-05-23  Miguel de Icaza  <miguel@novell.com>
26392
26393         * Theme.cs (GetSizedResourceImage): Scale images if the proper
26394         size is not found.  
26395         
26396         * FileDialog.cs: Do not change the background for the side bar as
26397         it wont work nicely with the theme, and also reduces the artifacts
26398         in rendering the icons (which I want to fix too).
26399
26400         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
26401         resources, not resgen resources. 
26402
26403         (PlatformDefaultHandler): Pull images using the new API.
26404
26405 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
26406
26407         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
26408           a reference to the hwnd and will not remove it unless there are
26409           no pending exposures (fixes #78341)
26410         * XplatUI.cs: Improved debug
26411
26412 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
26413
26414         * MenuAPI.cs : don't handle OnClick event when it was not the left
26415           button. Fixed bug #78487.
26416
26417 2006-05-23  Mike Kestner  <mkestner@novell.com>
26418
26419         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
26420         prefer submenus to the top menu for item lookup, to avoid popping down
26421         top-row items.
26422
26423 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
26424
26425         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
26426           Graphics.FillRectangle as the visual results are really bad (even
26427           on win). We now draw perfect arrows (and perfect shadows when the
26428           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
26429           Pen.DashPattern to draw the dots of each line.
26430
26431 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
26432
26433         * FileDialog.cs: Update the filename combobox when navigating through
26434           the ListView with the cursor keys. Fixes part 7 of bug #78446.
26435
26436 2006-05-22  Mike Kestner  <mkestner@novell.com>
26437
26438         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
26439         Fixes #78463.
26440
26441 2006-05-22  Mike Kestner  <mkestner@novell.com>
26442
26443         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
26444         requests. Fix a misspelled parameter and a copy paste exception error
26445         in Select.
26446
26447 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
26448
26449         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
26450           to get the same width/height (5/13) on X11 as the default font has on
26451           win32. This means that our DefaultFont emSize is smaller than the 
26452           the MS SWF equivalent (even thought the width/height stays the same)
26453
26454 2006-05-20  Jackson Harper  <jackson@ximian.com>
26455
26456         * MdiClient.cs:
26457         * MdiWindowManager.cs:
26458         * InternalWindowManager.cs: Make sure to use the border width from
26459         the theme.
26460
26461 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
26462
26463         * PrintDialog.cs: Implements printer details
26464
26465 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
26466
26467         * FileDialog.cs: Added focus handling for PopupButtonPanel.
26468           Fixes part 1 and 2 of bug #78446
26469
26470 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
26471
26472         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
26473           instead of sticking to the first ever calculated value
26474
26475 2006-05-19  Mike Kestner  <mkestner@novell.com>
26476
26477         * ComboBox.cs: fix mouse motion selection to use MousePosition and
26478         PointToClient, since Capture is set. Fixes #78344.
26479
26480 2006-05-19  Mike Kestner  <mkestner@novell.com>
26481
26482         * ListView.cs: match MS behavior in Details view where items are not
26483         drawn if Columns.Count == 0. 
26484         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
26485         Use a separate pen to draw the check, since changing the width affects
26486         the box as well.  Fixes #78454.
26487
26488 2006-05-18  Miguel de Icaza  <miguel@novell.com>
26489
26490         * ListView.cs: ArgumentOutOfRangeException, single versions of the
26491         exception should throw the name of the invalid argument.
26492
26493         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
26494         there are no files listed. 
26495
26496 2006-05-18  Jackson Harper  <jackson@ximian.com>
26497
26498         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
26499         up.
26500
26501 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26502
26503         * Control.cs: Brought back our old UpdateZOrder method as a private
26504           function and switched our calls from UpdateZOrder to the new one.
26505           This fixes the Paint.Net canvas disappearing bug.
26506
26507 2006-05-18  Jackson Harper  <jackson@ximian.com>
26508
26509         * Theme.cs:
26510         * ThemeWin32Classic.cs:
26511         * InternalWindowManager.cs: Move the drawing into the theme,
26512         expose everything the theme should need from the window manager.
26513
26514 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26515
26516         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
26517           from the call to NativeWindow to avoid walking up the parent chain
26518           further than needed (speeds up setting cursors and avoids setting
26519           the wrong cursor if a parent has another cursor defined)
26520         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26521           the icon as hotspot, not what's contained as hotspot in the icon
26522           file. This fixes the perceived drawing offset seen with Paint.Net
26523         
26524 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
26525
26526         * XplatUIX11.cs: 
26527           - Store the calculated rectangle in Hwnd object and use it when 
26528             setting the client size
26529           - Force Toolwindows to always be type Dock, to ensure they're on top
26530
26531 2006-05-18  Mike Kestner  <mkestner@novell.com>
26532
26533         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
26534         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
26535         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
26536         Substantial refactoring to remove confusing nested classes. Coding
26537         standard and Get+Set->property refactorings.  Shift to index based
26538         highlighting in ComboListBox instead of constantly using IndexOf and
26539         Items[]. Add invalidations on resize for DropDownList to fix ugliness
26540         in FileDialog growth.  Draw borders manually since Simple mode needs
26541         to look like two independent controls.  Make listbox border
26542         conditional to DropDownStyle.  Improved OwnerDraw support.
26543
26544 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
26545
26546         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
26547         Don't set the disposed graphics to null, so we can throw the "right"
26548         exception if the graphics is reused later (added a flag to avoid 
26549         double disposing). Some behaviours are different under 2.0 and are
26550         filled under bug #78448.
26551
26552 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
26553
26554         * Control.cs: When double-buffering is enabled, we need to reset
26555           our graphics context between paint calls. Otherwise, any 
26556           transformations and other alterations on the context will 
26557           become cumulative (#77734)
26558
26559 2006-05-18  Mike Kestner  <mkestner@novell.com>
26560
26561         * ListView.cs: do focused item selection like MS on clicks. 
26562         Rework focus handling for ItemControl so LostFocus invalidates as
26563         well.
26564         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
26565         the ListView ItemControl has focus.
26566
26567 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
26568
26569         * XplatUIX11.cs: If client_window ends up being width or height zero
26570           due to border settings, move it off window inside whole_window (#78433)
26571
26572 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26573
26574         * Mime.cs: Shrink the mime file cache correctly.
26575
26576 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
26577
26578         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
26579
26580 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26581
26582         * XplatUIX11.cs (AddExpose): More sanity checks
26583
26584 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26585
26586         * XplatUIX11.cs:
26587           - AddExpose: Don't add expose ranges outside the size of our
26588             window
26589           - Cast opacity values to Int32 to avoid crashes with certain
26590             values
26591           - Added disabled code paths that protect against illegal cross-
26592             thread painting (Developers.exe)
26593
26594 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26595
26596         * ProgressBar.cs: Invalidate the control when it's resized
26597           since block size is based on control size. (#78388)
26598
26599 2006-05-16  Miguel de Icaza  <miguel@novell.com>
26600
26601         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
26602         of setting the incoming argument to the "reset" value, we set the
26603         this.datamember to string.empty (before we were invalidating the
26604         incoming data).   
26605
26606         Fixes 78420
26607
26608 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26609
26610         * Form.cs: Only apply transparency settings after the form
26611           is created. (Fixes #77800)
26612
26613 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
26614
26615         * ApplicationContext.cs: Grab the HandleDestroyed event so
26616           we know when to fire OnMainFormClosed 
26617
26618 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26619
26620         * Application.cs: Introduced sub-class to allow tracking of
26621           threads and centralized triggering of the event mess for
26622           ThreadExit, AppExit, etc..  (#76156)
26623
26624 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
26625
26626         * MimeIcon.cs:
26627           - Do not return a null icon index value for a mime subclass.
26628             Instead try the main mime type class too.
26629           - Seems that some newer distributions don't have a link to some
26630             gnome default icons anymore. So check the default gnome dir too.
26631           
26632
26633 2006-05-16  Jackson Harper  <jackson@ximian.com>
26634
26635         * MdiClient.cs: Don't paint the parent background image if we have
26636         our own background image.
26637
26638 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
26639
26640         * Control.cs:
26641           - PerformLayout: Do not shrink space filled by DockStyle.Fill
26642             controls, all filled controls are supposed to overlap (#78080)
26643           - UpdateZOrder is supposed to update the control's z-order in the
26644             parent's z-order chain. Fixed to behave like that
26645           - BringToFront: Removed obsolete code
26646           - SendToBack: Simplyfied
26647           - SetChildIndex: Trigger layout calculations when Z-order changes
26648             since layout is done by z-order
26649
26650 2006-05-16  Chris Toshok  <toshok@ximian.com>
26651
26652         [ fixes bug #78410 ]
26653         * DataGrid.cs (set_AlternatingBackColor): use
26654         grid_drawing.InvalidateCells instead of Refresh().
26655         (set_BackColor): call grid_drawing.InvalidateCells.
26656         (set_BackgroundColor): use Invalidate instead of Refresh.
26657
26658         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
26659         invalidate the cell area.
26660
26661 2006-05-15  Chris Toshok  <toshok@ximian.com>
26662
26663         [ fixes bug #78011 ]
26664         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
26665         on to DataGridPaintRow.
26666         (DataGridPaintRow): take a clip argument, and only draw the cells
26667         which intersect it.  same with the not_usedarea.
26668
26669         * Theme.cs (DataGridPaintRow) add @clip parameter.
26670
26671         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
26672         XplatUI.ScrollWindow.
26673         (ScrollToRow): same.
26674
26675         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
26676         with last column which was causing a gray swath to appear with the
26677         XplatUI.ScrollWindow code.
26678
26679 2006-05-15  Chris Toshok  <toshok@ximian.com>
26680
26681         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
26682         use XplatUI.ScrollWindow.
26683         (VerticalScrollEvent): use XplatUI.ScrollWindow.
26684
26685 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
26686
26687         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
26688
26689 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26690
26691         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
26692           file since there are no equivalent X11 cursors
26693
26694 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26695
26696         * MonthCalendar.cs : DateTimePicker should reflect selected date
26697           on mouse*up*, not mouse*down*. Fixed originally reported part of
26698           bug #76474.
26699
26700 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
26701
26702         * TabControl.cs : When argument index is equal or more than tab
26703           count, just ignore. Fixed bug #78395.
26704
26705 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
26706
26707         * Control.cs: Dispose all child controls when control is diposed (#78394)
26708
26709 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26710
26711         * ColorDialog.cs: Finally it is possible to select the color with
26712           the text boxes
26713
26714 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26715
26716         * PrintDialog.cs: Fix typo
26717
26718 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
26719
26720         * PrintDialog.cs: PrintDialog is not resizable
26721         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
26722           color. Made some ToolBar drawing methods protected virtual.
26723
26724 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
26725
26726         * PrintDialog.cs: Implementation of the PrintDialog
26727
26728 2006-05-12  Chris Toshok  <toshok@ximian.com>
26729
26730         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
26731         thumb, instead use MoveThumb.  This has the side effect of making
26732         most of the other thumb moving machinery use MoveThumb as well.
26733         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
26734         need to actually invalidate the rectangle where the new thumb will
26735         go.
26736         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
26737         We force an Update() after, so it's not as fast as it could be,
26738         but at least there's zero flicker and no droppings.
26739         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
26740         (UpdateThumbPos): add another argument (dirty), which says whether
26741         or not to calculate/add dirty regions which we later invalidate.
26742         For cases where we know we're going to use MoveThumb, we pass
26743         false for this.  Otherwise, pass true.
26744
26745 2006-05-12  Jackson Harper  <jackson@ximian.com>
26746
26747         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
26748         the status bar.
26749         
26750 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
26751
26752         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
26753           and GetClipRegion methods and UserClipWontExposeParent property.
26754         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
26755           overriding UserClipWontExposeParent property, setting to false, since
26756           Win32 handles the required expose messages to draw our clipped parent
26757           areas internally
26758         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
26759           PaintEventStart to set the user clip region if set.
26760         * Control.cs: 
26761           - Now internally tracking the Region for the control since we need to
26762             store it if the handle is not yet created and only set it when it
26763             becomes created. Before setting the region forced handle creation
26764           - Added code to draw the parents underneath a user-clipped region
26765         * Hwnd.cs: Added UserClip property
26766
26767 2006-05-12  Chris Toshok  <toshok@ximian.com>
26768
26769         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
26770         (set_Maximum): same.
26771         (set_Minimum): same.
26772         (set_SmallChange): same.
26773         (OnMouseUpSB): remove the call to refresh when releasing the
26774         thumb.  We shouldn't need it.
26775         
26776 2006-05-12  Miguel de Icaza  <miguel@novell.com>
26777
26778         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
26779         AutoSize set to None, we do not need to relayout everything, we
26780         just need to invalidate the current region.
26781
26782         (Draw): Do not draw the entire ClientArea, just redraw the
26783         clip area being passed.
26784
26785         * MdiClient.cs: Make MdiClient constructor with the Form argument
26786         internal. 
26787
26788 2006-05-12  Jackson Harper  <jackson@ximian.com>
26789
26790         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
26791         parents background image,  but strangely not their own.
26792         - (DrawStatusBarPanel): Take into account horizontal alignment
26793         when drawing the strings and icons.
26794
26795 2006-05-12  Mike Kestner  <mkestner@novell.com>
26796
26797         * ListBox.cs: avoid invalidations for focus when the collection is
26798         empty. 
26799
26800 2006-05-12  Chris Toshok  <toshok@ximian.com>
26801
26802         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
26803         invalidate the entire thumb area.  Call InvalidateDirty which
26804         limits the redraw to the thumb itself and surrounding pixels.
26805
26806         * XplatUIX11.cs (ScrollWindow): optimize copying.
26807         
26808 2006-05-12  Chris Toshok  <toshok@ximian.com>
26809
26810         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
26811         Figure out the positioning/layout in a single pass instead of
26812         multiple recursive invocations.  Speeds up the initial display of
26813         the data grid.  Also, make many things private that were
26814         originally public but unused outside this class.
26815
26816 2006-05-11  Jackson Harper  <jackson@ximian.com>
26817
26818         * MdiClient.cs: Improved layout code.
26819
26820 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
26821
26822         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
26823           not SelectedObject.
26824
26825 2006-05-11  Chris Toshok  <toshok@ximian.com>
26826
26827         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
26828         union of that will always be {0,0,width,height}.
26829
26830 2006-05-11  Jackson Harper  <jackson@ximian.com>
26831
26832         * Form.cs: Match MS's DefaultSize for forms (they must have
26833         changed the size in sp2).
26834
26835 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26836
26837         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
26838
26839 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
26840
26841         * TextControl.cs : Fixed bug #78109. This incorrect position
26842           comparison caused crash on automatic line split.
26843         * TextBoxBase.cs : reduce duplicate code.
26844
26845 2006-05-10  Jackson Harper  <jackson@ximian.com>
26846
26847         * MdiClient.cs: Active form is only sent to the back when using
26848         the Next form functionality, when a form is clicked the current
26849         active shouldn't be sent to the back.
26850         - Layout the mdi windows when the container is first made visible.
26851         * Form.cs: Give the MdiClient a ref to the containing form when we
26852         create it.
26853         
26854 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26855
26856         * LinkLabel.cs : link_font could be uninitialized, so populate one
26857           before actual use. Fixed bug #78340.
26858
26859 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
26860
26861         * XplatUIX11.cs : clipboard format native value is IntPtr.
26862           Fixed bug #78283.
26863
26864 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26865
26866         * Control.cs: 
26867           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
26868             which is passed up the parent chain by DefWndProc
26869           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
26870             to DefWndProc (#77956)
26871         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
26872
26873 2006-05-10  Jackson Harper  <jackson@ximian.com>
26874
26875         * MdiClient.cs: We need to remove the controls from the mdi
26876         collection, when we close the window.
26877         * MdiWindowManager.cs: Special handling of closing mdi windows.
26878         * InternalWindowManager.cs: Make the close method virtual so the
26879         mdi window manager can handle it specially.
26880
26881 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
26882
26883         * DataGrid.cs:
26884           - Recalculate grid when the data source has changed
26885           - Matches styles provided by user from all data sources types
26886         * DataGridTableStyle.cs: For columns that provided by the user set the
26887         with the preferred value is there was unassigned.
26888         * CurrencyManager.cs: throw OnItemChanged event
26889
26890 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
26891
26892         * PictureBox.cs: Don't animate until handle is created. Start animation
26893           when handle is created.
26894
26895 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26896
26897         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
26898           current codebase.
26899         * XEventQueue.cs: We don't need to provide the extra info
26900
26901 2006-05-10  Jackson Harper  <jackson@ximian.com>
26902
26903         * MdiClient.cs: If the mdi clients parent form has a background
26904         image set, we draw that background image for the mdi area's
26905         background.
26906
26907 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
26908
26909         * TextBoxBase.cs: Set IBeam cursor (#78347)
26910
26911 2006-05-10  Mike Kestner  <mkestner@novell.com>
26912
26913         * ToolBar.cs: fix some text padding issues with ButtonSize
26914         calculation. Update the default size to match MS documentation.
26915         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
26916         button size. Fixes #78296.
26917
26918 2006-05-10  Mike Kestner  <mkestner@novell.com>
26919
26920         * ListBox.cs: use is_visible for scrollbar positioning in case the
26921         control isn't on screen yet.  Fix off by one with Right vs Width
26922         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
26923         
26924 2006-05-10  Jackson Harper  <jackson@ximian.com>
26925
26926         * X11Dnd.cs: Drop to a control with another control on top of it.
26927         * ToolBar.cs: Work on a copy of the buttons list, so that it can
26928         be modified in click handlers. TODO: Look for similar problems in
26929         other controls.
26930
26931 2006-05-09  Jackson Harper  <jackson@ximian.com>
26932
26933         * Form.cs: Window managers need the old window state when setting
26934         window state now.
26935         * InternalWindowManager.cs: Allow the base mdi window manager to
26936         handle more of the MDI only stuff (like maximize buttons).
26937         * MdiWindowManager.cs: Fix some snafus in changing the window
26938         state.  Add all the menu functionality, for both popup and
26939         maximized menus.
26940         * MdiClient.cs: When a new form is selected the currently
26941         activated form is sent to the back, this matches MS.
26942         - Implement a new method to activate the next mdi child window.
26943
26944 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
26945
26946         * Control.cs: 
26947           - Added new InternalCapture method to allow controls to prevent
26948             the capture behaviour on the click handlers
26949           - Switched to use InternalCapture
26950         * ComboBox.cs:
26951           - Using InternalCapture to prevent mouse captures from being released
26952             on mouse button release (Fixes #78100)
26953         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
26954           returns Form borders if a caption is present. (Fixes #78310)
26955
26956 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
26957
26958         * TreeNode.cs: Changed serialization .ctor to not require every field
26959           to be present. (#78265)
26960         * OwnerDrawPropertyBag.cs: Added serialization .ctor
26961
26962 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
26963
26964         * MimeIcon.cs: for is faster than foreach for strings.
26965
26966 2006-05-05  Mike Kestner  <mkestner@novell.com>
26967
26968         * CheckedListBox.cs: update check handling code to not use selected.
26969         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
26970         behavior for visual feedback, motion response, shift/ctrl handling,
26971         and properly deal with all 4 selection modes. Updates to bounds
26972         handling logic.  Add scroll wheel support. [Fixes #77842]
26973
26974 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26975
26976         * ListView.cs:
26977           - Moved adding of Implicit controls into .ctor. That way, subsequent
26978             creation of the controls will not cause them to think they are 
26979             toplevel windows (fixes #78200 header problem)
26980           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
26981           - Switched visibility setting of header control to use internal field
26982             to avoid triggering handle creation
26983           - Now checking if handle is created before causing a refresh when items
26984             are added (This makes us now match handle creation time with MS)
26985         * Splitter.cs: Removed loading of private splitter cursor, switched to
26986           Cursors version now that that is loading the right ones
26987         * Cursors.cs: Load proper splitter cursors from resources
26988         * Cursor.cs: Added second method of loading resource cursors for the 
26989           VS.Net users amongst us
26990
26991 2006-05-05  Mike Kestner  <mkestner@novell.com>
26992
26993         * ListView.cs: give header_control a minimum size based on the
26994         ListView size.
26995
26996 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
26997
26998         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
26999           window seems to do that with metacity, so set that type. (#78120)
27000
27001 2006-05-05  Mike Kestner  <mkestner@novell.com>
27002
27003         * ListViewItem.cs: fix Details mode checkbox layout bug.
27004         * ThemeWin32Classic.cs: draw a ListView column header for unused space
27005         at the end of the header, if it exists. [Fixes for #78200]
27006
27007 2006-05-04  Jackson Harper  <jackson@ximian.com>
27008
27009         * MdiClient.cs: Add a helper property to get the container form.
27010         * MdiWindowManager.cs: We have to make sure to use the menu origin
27011         when drawing the icons and buttons, this fixes maximized window
27012         icons/buttons on win32.
27013         * InternalWindowManager.cs: Reset the restore captions when a
27014         window goes from Maximized to Minimized and vice versa. Move the
27015         DrawMaximizedButtons into the MdiWindowManager source, tool
27016         windows can't be maximized. NOTE: This could use a little
27017         refactoring if time ever permits.
27018         
27019 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27020
27021         * TextBox.cs: Add MWFCategoryAttributes
27022         * TextBoxBase.cs: Add MWFCategoryAttributes
27023         * Form.cs: Add MWFCategoryAttributes
27024
27025 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27026
27027         * Control.cs: Add MWFCategoryAttributes
27028         * ScrollableControl.cs: Add MWFCategoryAttributes
27029
27030 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
27031
27032         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
27033           Divider is true. Fix a little glitch in PropertyToolBar
27034           drawing code
27035
27036 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
27037
27038         * Control.cs:
27039           - Dispose: Call base.Dispose, this causes the disposed event
27040             to be fired (and probably other, more important stuff)
27041           - SetVisibleCore: Set is_visible to true after creating the
27042             window so that the window still gets created invisible (if
27043             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
27044             to generate a WM_ACTIVE message
27045         * Form.cs: Call Dispose when we want to destroy the window, instead of
27046           just destroying the handle (Dispose will do that for us)
27047         * XplatUIX11.cs:
27048           - RootWindow also needs a queue, so we can properly process the
27049             property change events from RootWindow (like Activate)
27050           - Generatic synthetic WM_ACTIVE message when the active window is
27051             being destroyed
27052
27053 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27054
27055         * LinkLabel.cs: Trigger a recalc of our label dimensions when
27056           bounds are changed
27057
27058 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
27059
27060         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
27061           for determining width and height (image might not be assigned if
27062           we're drawing an imagelist)
27063
27064 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
27065
27066         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
27067         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
27068           height from system
27069         * Theme.cs: No longer returns hardcoded menu height, instead calls
27070           new driver method
27071         * Form.cs (OnLoad): Scaling happens before triggering Load events 
27072           on MS (# 78257)
27073
27074 2006-05-01  Mike Kestner  <mkestner@novell.com>
27075
27076         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
27077
27078 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
27079
27080         * TextBoxBase.cs: Removed Fixme
27081         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
27082
27083 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
27084
27085         * XplatUIX11.cs:
27086           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
27087             the rectangle relative to the parent, considering borders. We
27088             don't really want that.
27089           - ScrollWindow: Fixed warning to be more understandable
27090         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
27091           scrollbars and scroll only the visible area
27092         * RichTextBox.cs: Removed debug output
27093
27094 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27095
27096         * NumericUpDown.cs (Text): Just use base
27097         * UpDownBase.cs: Ensure txtView is created before using it
27098
27099 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27100
27101         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
27102           casting to IntPtr to avoid 64bit overflow errors
27103
27104 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27105
27106         * Control.cs:
27107           - AllowDrop: Don't force handle creation.
27108           - CreateHandle: Added call to tell driver if we're allowed to drop
27109
27110 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27111
27112         * FileDialog.cs: Remember the last directory not only for the
27113           current instance but also for new FileDialog instances.
27114
27115 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
27116         
27117         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
27118           broke sending async messages
27119
27120 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
27121
27122         * XplatUIX11.cs:
27123           - ScrollWindow: Fixed method. We finally generate expose events again
27124             for scrolled areas. This was causing 'garbage' when scrolling
27125             textbox and other controls that used ScrollWindow
27126           - Switched from using the regular queue for paint events to the MS 
27127             model of 'generating' paint events when the queue is empty.
27128             We use the new XQueueEvent.Paint subclass to store which windows
27129             need painting.
27130           - AddExpose now takes the x/y/width/height of the exposed area
27131             and inserts the window into the paint queue if not already there
27132           - InvalidateWholeWindow: Switched to use new AddExpose method
27133           - UpdateMessageQueue: Added which queue to monitor for paint events
27134           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
27135             the unlikely case nothing above handles it. We reset the expose
27136             pending states to get them off the queue.
27137           - GetMessage: Now pulls a paint event if no other events are in the
27138             queue
27139           - Invalidate: Switched to new AddExpose method
27140           - PeekMessage: Updated to understand pending paint events
27141           - UpdateWindow: Fixed logic bug. We were only updating if the window
27142             didn't need updating. Also switched to sending WM_PAINT directly,
27143             like MS does.
27144         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
27145           and random access Remove(). The random access is needed to handle
27146           UpdateWindow() where a WM_PAINT is sent directly without accessing
27147           the queue.
27148         * ScrollBar.cs: Added Update() calls to cause immediate updates to
27149           allow for better feedback when scrolling. Scrollbars are small and
27150           the immediate update should make it 'feel' more responsive without
27151           slowing things down. ScrollBar still needs it's invaliate logic
27152           updated to not always invalidate the whole bar on certain changes.
27153
27154 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27155
27156         * Control.cs:
27157         (BackColor): if the control does not support a transparent background,
27158         return the default backcolor when the parent backcolor is transparent.
27159
27160 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
27161
27162         * Application.cs: Updated to new StartLoop/GetMessage API
27163         * RichTextBox.cs: Provide some output on RTF parsing errors
27164         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
27165           new queue_id argument to GetMessage and PeekMessage to allow faster
27166           handling of per-thread queues in drivers.
27167         * Hwnd.cs: Added Queue tracking and property
27168         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
27169         * XEventQueue.cs: Added thread trackingA
27170         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
27171         * XplatUIX11.cs:
27172           - Implemented new per-thread queue
27173           - GetMessage: Fixed return/break behaviour on several cases. We were
27174             returning stale messages in some cases, instead of just processing
27175             the next message
27176
27177 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27178
27179         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
27180
27181 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
27182
27183         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
27184           fixed off-by-one comparisons between Width/Height and Right/Bottom.
27185
27186 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
27187
27188         * PropertyGridView.cs: Fix drop down width.
27189
27190 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27191
27192         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
27193           a mess in DrawToolBar, so I removed one of them.
27194
27195 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
27196
27197         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
27198           needed (clip). Otherwise we get artifacts.
27199
27200 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27201
27202         * FixedSizeTextBox.cs: Added constructor to allow specifying which
27203           dimension is fixed
27204         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
27205           and switched FixedSizeTextBox to only be fixed vertical (#78116)
27206         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
27207           if it matches the scale base font (avoids unneeded scaling)
27208
27209 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27210
27211         * X11DesktopColors.cs: One gtk_init_check should be enough
27212
27213 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
27214
27215         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
27216           match MS behaviour
27217
27218 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
27219
27220         * TextBoxBase.cs: 
27221           - Generate OnTextChanged for Backspace even if we're only deleting
27222             the current selection
27223           - When setting the Text property, only select all text if the
27224             control does not have focus when it is being set. Otherwise
27225             just place the cursor at the beginning of the control
27226
27227 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
27228
27229         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
27230           Added a little helper to draw PropertyGrid ToolBar with a different
27231           border and a different BackColor.
27232         * PropertyGrid.cs: Some background parts didn't get painted with the
27233           correct background color. Added a class that helps us to draw the
27234           correct border for PropertyGridView and a class that helps us to
27235           draw ToolBars with a different backcolor
27236         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
27237
27238 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
27239
27240         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
27241         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
27242
27243 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27244
27245         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
27246           into the palette entries. Also, since we're working on a copy
27247           we needed to copy the palette back onto the bitmap.
27248         * Cursor.cs: Same fix as XplatUIWin32.cs.
27249
27250 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
27251
27252         * ImageListStreamer.cs: Need to read the var (or we're off)
27253
27254 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
27255
27256         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
27257           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
27258           TextBoxBase.cs: Unused var fixes
27259         * AxHost.cs: Small 2.0 fix
27260         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
27261           as it seems that is what at least Metacity expects. This will make
27262           icons show up on 64bit platforms. We still have some 64bit size
27263           issues, though, since the startup app window size still won't match.
27264
27265 2006-04-25  Mike Kestner  <mkestner@novell.com>
27266
27267         * *.cs: cleanup newly reported exception var unused warnings.
27268
27269 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27270
27271         * ThemeWin32Classic.cs: Button image alignment now matches exactly
27272           ms
27273
27274 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27275
27276         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
27277           image. The image position is always the same, no matter if the
27278           button is pressed or not.
27279
27280 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
27281
27282         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
27283           selection and set the correct filename for SaveFileDialog.
27284           Patch by Emery Conrad.
27285
27286 2006-04-24  Mike Kestner  <mkestner@novell.com>
27287
27288         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
27289         check for item.X outside the ClientRect instead of item.Y. Fixes
27290         #78151.
27291
27292 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27293
27294         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
27295         trust that value blindly and do some sanity check. Fixes bug #77814.
27296
27297 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27298
27299         * ImageListStreamer.cs: save the mask as a 1bpp image.
27300
27301 2006-04-21  Mike Kestner  <mkestner@novell.com>
27302
27303         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
27304         pass Checked and Indeterminate to the Theme Engine. Improve
27305         encapsulation with ListBox.
27306         * ListBox.cs: Keep a StringFormat instead of calculating it every item
27307         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
27308         nested types.  Move all CheckState functionality to CheckedListBox.
27309         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
27310         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
27311         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
27312         single base list. Fix scrollbar sizing and placement to mirror MS.
27313         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
27314         used.
27315         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
27316         for CheckedListBox by using new DrawItemState info.  Center the
27317         checkboxes on the items. Use new StringFormat property.
27318
27319 2006-04-18  Jackson Harper  <jackson@ximian.com>
27320
27321         * Form.cs: MdiChildren don't do default locations the same way as
27322         regular forms.  This prevents a crash when trying to position the
27323         mdi windows.
27324
27325 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
27326
27327         * PropertyGridTextBox.cs: Formatting, copyright
27328         * PropertiesTab.cs: Formatting
27329         * PropertyGrid.cs: Formatting
27330         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
27331           click toggling of values
27332           
27333 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
27334
27335         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
27336         * Control.cs (.ctor): verify_thread_handle is static, don't reset
27337           every time a control is created
27338         * Application.cs: Removed obsolete EnableRTLMirroring method
27339
27340 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
27341
27342         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
27343         SelectedIndex to -1. Fixes bug #78121.
27344
27345 2006-04-17  Jackson Harper  <jackson@ximian.com>
27346
27347         * Binding.cs: Handle null values for Current and BindingContext.
27348         This occurs when binding is a little delayed.
27349         * CurrencyManager.cs: return null for Current when there are no
27350         items in the list.
27351         - Hookup to the listchanged event on the DataView and update
27352         bindings when the list is changed.  This fixes late binding of
27353         controls.
27354
27355 2006-04-17  Jackson Harper  <jackson@ximian.com>
27356
27357         * X11Dnd.cs:
27358         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
27359         Ringenbach.
27360
27361 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
27362
27363         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
27364           place
27365         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
27366           with the correct ButtonState
27367
27368 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
27369
27370         * XplatUIX11.cs: Improved distinguishing between window types to
27371           tell the WM a type closer to what the app wants (Fixes #78107)
27372
27373 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27374
27375         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
27376           GrabHandle
27377
27378 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
27379
27380         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
27381           drawing code to reflect the size grip changes
27382
27383 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27384
27385         * ImageListStreamer.cs: fix handling of the mask that follows the main
27386         bitmap when deserializing and serialize it properly. The generated mask
27387         should better be a 1bpp image, but I'll do that later.
27388
27389 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27390
27391         * FileDialog.cs: Show something in the DirComboBox on *nix if the
27392           path doesn't fit into some of our Current.Places
27393
27394 2006-04-13  Jackson Harper  <jackson@ximian.com>
27395
27396         * ComboBox.cs: Use borders instead of drawing our own decorations,
27397         try to obey correct rules for heights.
27398         * Theme.cs:
27399         * ThemeNice.cs:
27400         * ThemeClearLooks.cs:
27401         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
27402         this is now handled by borders.
27403         - Remove unused DrawListBoxDecorationSize method.
27404         
27405 2006-04-13  Mike Kestner  <mkestner@novell.com>
27406
27407         * MenuAPI.cs: null guarding for the disbled click check fixes crash
27408         reported by Alex.
27409
27410 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
27411
27412         * ThemeWin32Classic.cs: 
27413           - Fixed CPDrawStringDisabled
27414           - Corrected drawing of disabled menu items
27415           - Fixed drawing of disabled radio buttons (bug #78095)
27416           - Draw check in a disabled CheckBox with color ControlDark 
27417
27418 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27419
27420         * Form.cs: Use the provided width when calculating the menu size;
27421           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
27422           and ClientSize.Width won't be updated yet
27423         * Application.cs: Use Visible instead of Show() to make form visible,
27424           this way we create the handle later and menusize is considered
27425
27426 2006-04-12  Mike Kestner  <mkestner@novell.com>
27427
27428         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
27429         reporting.
27430
27431 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27432
27433         * TextBox.cs: Implemented context menu
27434
27435 2006-04-12  Mike Kestner  <mkestner@novell.com>
27436
27437         * ListView.cs: implement box selection. fixes #77838.
27438         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
27439
27440 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27441
27442         * XplatUIX11.cs: Added setting of window type when transient window
27443           is created (metacity would move it otherwise)
27444         * X11Structs.cs: Added WINDOW_TYPE atoms
27445         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
27446           background (the control is Opaque but still wants transparent
27447           backgrounds)
27448
27449 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27450
27451         * Control.cs: Added OnPaintBackgroundInternal to allow controls
27452           that set Opaque but don't mean it (like all ButtonBase-derived
27453           controls) to still draw their background
27454         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
27455           the background
27456
27457 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
27458
27459         * Control.cs (PaintControlBackground): Set the graphics object
27460           on our PaintEvent to null to prevent it from being disposed
27461           when the PaintEvent gets disposed
27462
27463 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
27464
27465         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
27466         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
27467
27468 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
27469
27470         * Control.cs: 
27471           - Added transparency check to BackColor property. Transparent
27472             backgrounds are only allowed if the control styles permit it
27473           - Added recursive painting of parent control background and
27474             foreground if a control with a transparent backcolor is drawn
27475             (Thanks to Tim Ringenback for providing his 'hack' as a base
27476              for this patch) Fixes #77985 and #78026.
27477           - Added Opaque style check before calling OnPaintBackground, no
27478             need to draw the background if the control is opaque
27479           - Removed ControlAccessibleObject owner variable (inherited from
27480             base, no need to define again)
27481           - Added some documentation links explaining the drawing events
27482             and styles
27483
27484 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27485
27486         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
27487           that the affected control is the located at the left border of our
27488           parent (Fixes #77936)
27489
27490 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27491
27492         * TextBoxBase.cs: When rendering disabled or readonly controls,
27493           draw the background with 'Control' instead of 'Window' color as
27494           long as the user hasn't specifically set a color
27495
27496 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
27497
27498         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
27499           since that won't be updated if the user types text (only if it's
27500           programatically set)
27501
27502 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27503
27504         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
27505           layout changes do to app-triggered resizes will have the proper
27506           display rectangle for layout
27507
27508 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
27509
27510         * ThemeWin32Classic.cs:
27511           - Make use of the SystemBrushes and SystemPens wherever possible
27512           - Corrected some highlight colors
27513           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
27514             drawing
27515         * Theme.cs: Added Empty field to CPColor struct
27516
27517 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
27518
27519         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
27520           is displayed when calculating the display rectangle. Thanks to Mike
27521           for teaching me the err of my ways.
27522
27523 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
27524
27525         * ScrollableControl.cs:
27526           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
27527             (instead of 0,0) and we now return the real width/height instead of
27528             just the clientrectangle, adjusted for padding. The rectangle is
27529             now cached and created by the new CalculateDisplayRectangle method.
27530           - Created new CalculateDisplayRectange method, which basically does
27531             what get_DisplayRectangle() did originally, but now using the 
27532             right edge instead of DisplayRectangle to determine the size of
27533             our scrollbars
27534           - get_Canvas(): Fixed it to properly calculate canvas for 
27535             right/bottom controls which seem to be placed to the right/bottom
27536             of any controls that have a fixed location
27537           - Removed TODO that's taken care of
27538           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
27539             and SetDisplayRectLocation according to new MSDN2 docs
27540           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
27541             event when that is called, this is added for compatibility
27542           - ScrollControlIntoView(): Implemented.
27543           - Switched scrollbars to be implicit, they shouldn't be selectable
27544         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
27545           call it when the active control is set/changed
27546         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
27547         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
27548           implicit_control variable (used for native Win32 message generation)
27549         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
27550           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
27551         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
27552         * XplatUIStructs.cs: Added ScrollBarCommands enum
27553
27554 2006-04-10  Jackson Harper  <jackson@ximian.com>
27555
27556         * ButtonBase.cs:
27557         * CheckedListBox.cs:
27558         * ComboBox.cs:
27559         * DataGrid.cs:
27560         * DataGridView.cs:
27561         * Form.cs:
27562         * GroupBox.cs:
27563         * ListBox.cs:
27564         * PrintPreviewControl.cs:
27565         * ProgressBar.cs:
27566         * PropertyGrid.cs:
27567         * Splitter.cs:
27568         * StatusBar.cs:
27569         * TrackBar.cs:
27570         * UpDownBase.cs: Fixup base event overrides.
27571         
27572 2006-04-06  Mike Kestner  <mkestner@novell.com>
27573
27574         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
27575         all user-initiated value changes to min <= value <= max-thumbsz+1.
27576         (set_Value): check for vert/horiz when calculating new thumb position.
27577         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
27578         like MS does.
27579         (OnMouseMoveSB): refactor the thumb dragging code and refine
27580         invalidation logic to reduce flicker.
27581         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
27582         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
27583         (UpdateThumbPosition): small code readability cleanup
27584
27585 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
27586
27587         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
27588           different
27589
27590 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27591
27592         * ThemeNice.cs: Use a better graphics effect when a button is pressed
27593
27594 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
27595
27596         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
27597         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
27598           This dramatically reduces the number of Pen.Dispose calls. 
27599           Where possible call ResPool methods only once instead of calling it
27600           over and over again (for example for the same color).
27601
27602 2006-04-06  Mike Kestner  <mkestner@novell.com>
27603
27604         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
27605         Also remove an unused private field on the collection. Fixes #77972.
27606
27607 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27608
27609         * ThemeNice.cs: Added ToolBar drawing code
27610
27611 2006-04-06  Mike Kestner  <mkestner@novell.com>
27612
27613         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
27614         I'm assuming that means we need to look up the toplevel for the
27615         provided control. Fixes the crash trace in #77911 but exposes another
27616         crash in some strange reflection usage in NDocGui.
27617
27618 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
27619
27620         * ThemeNice.cs: Gave it a little silver touch and added Images
27621           method
27622         * FontDialog.cs: FontDialog is not resizable
27623         * FileDialg.cs: Added SizeGripStyle.Show
27624
27625 2006-04-05  Jackson Harper  <jackson@ximian.com>
27626
27627         * KeyboardLayouts.cs: Remove warning.
27628
27629 2006-04-05  Jackson Harper  <jackson@ximian.com>
27630
27631         * Control.cs: Enable OnPaintInternal so we can use it for drawing
27632         all of our controls instead of Paint +=.
27633         * ListBox.cs:
27634         * ListView.cs:
27635         * MenuAPI.cs:
27636         * MessageBox.cs:
27637         * NotifyIcon.cs:
27638         * ProgressBar.cs:
27639         * ScrollBar.cs:
27640         * Splitter.cs:
27641         * StatusBar.cs:
27642         * TabControl.cs:
27643         * TextBoxBase.cs:
27644         * ToolBar.cs:
27645         * TrackBar.cs:
27646         * UpDownBase.cs:
27647         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
27648         use OnPaintInternal. Remove Width/Height and Visible checks in
27649         paint handler, this is done at a higher level now.
27650         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
27651         * PaintEventArgs.cs: Add a handled flag so controls that don't
27652         want anymore painting after OnPaintInternal can make sure OnPaint
27653         isn't called.
27654
27655 2006-04-05  Mike Kestner  <mkestner@novell.com>
27656
27657         * Form.cs: fix the menu WndProc hacks to respect the native enabled
27658         state of the form, so that we don't process events when Modal dialogs
27659         are up. Fixes #77922.
27660
27661 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
27662
27663         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
27664           checking is done.
27665
27666 2006-04-05  Mike Kestner  <mkestner@novell.com>
27667
27668         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
27669
27670 2006-04-05  Mike Kestner  <mkestner@novell.com>
27671
27672         * ListView.cs (HeaderMouseMove): null guarding for the over column
27673         when setting up the drag_to_index.  Fixes #78015.
27674
27675 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
27676
27677         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
27678           in the taskbar. Transient windows seem to accomplish that.
27679
27680 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
27681
27682         * Form.cs:
27683           - Re-enabled CreateParams.X/Y code for FormStartPosition
27684           - Added code for manual placement when creating the Control
27685           - Incomplete patch to treat MDI forms differently when
27686             setting the ClientSizeCore. (Still need to figure out handling
27687             x/y coords there)
27688         * XplatUIX11.cs:
27689           - When we're explicitly setting the X/Y position of a non-Child
27690             window, let the WM know. Metacity really wants this.
27691
27692 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27693
27694         * ThemeNice.cs: Added CPDrawButton
27695
27696 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27697
27698         * ThemeNice.cs: Changed the color for focused buttons and activated
27699           the arrows for small scroll buttons.
27700
27701 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
27702
27703         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
27704           anymore. Changed some method modifiers to protected (virtual)
27705         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
27706           changes
27707         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
27708           Updated drawing of menus, buttons and progressbars; added
27709           CPDrawBorder3D 
27710
27711 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27712
27713         * ImageListStreamer.cs: implemented serialization/deserialization
27714         of the images.
27715
27716 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
27717
27718         * ThemeWin32Classic.cs:
27719           - Removed all the DrawFrameControl stuff; CPDrawButton,
27720             CPDrawCheckBox and CPDrawRadioButton are now handled directly
27721             inside the methods
27722           - Updated and corrected the drawing code of CPDrawButton,
27723             CPDrawCheckBox and CPDrawRadioButton to better match ms
27724           - Updated theme checkbox and radiobutton code to use the CP*
27725             methods
27726
27727 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27728
27729         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
27730           bug is fixed
27731
27732 2006-03-31  Jackson Harper  <jackson@ximian.com>
27733
27734         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
27735         sometimes.
27736         * UpDownBase.cs: Don't CreateGraphics manually, use a
27737         Refresh. Ideally we would invalidate the correct areas here.
27738
27739 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
27740
27741         * XplatUIX11.cs: 
27742           - We now track the mapping state of windows. If a window (or 
27743             one of it's parents) is not mapped we no longer permit
27744             WM_PAINT messages to be generated since we'd otherwise get 
27745             lots of BadMatch X errors. Jackson did all the work figuring
27746             out the problem.
27747           - Destroying the caret if the window it's contained in is 
27748             destroyed. Can't use regular DestroyCaret method since it
27749             might fall into a drawing function (trying to remove the
27750             caret) and with that generate new BadMatch errors. Again,
27751             Jackson tracked this down.
27752           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
27753             make sure we send the messages to all windows. (The old code
27754             would send the WM_DESTROY to the window, and then all child
27755             windows would be 'gone' because the WM_DESTROY handle lookup
27756             would no longer find the destroyed window)
27757         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
27758         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
27759
27760 2006-03-31  Jackson Harper  <jackson@ximian.com>
27761
27762         * ScrollableControl.cs: Dont recalc if we are not visible.
27763
27764 2006-03-31  Mike Kestner  <mkestner@novell.com>
27765
27766         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
27767         the visibility branch.
27768
27769 2006-03-31  Jackson Harper  <jackson@ximian.com>
27770
27771         * ScrollBar.cs: Cap values when incrementing/decrementing.
27772
27773 2006-03-31  Mike Kestner  <mkestner@novell.com>
27774
27775         * MenuAPI.cs: setup menu.tracker for popup/context menus.
27776         * ToolTip.cs: guard against timer expirations with no active control.
27777         Not sure why it happened.
27778
27779 2006-03-31  Mike Kestner  <mkestner@novell.com>
27780
27781         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
27782         text.
27783         * ToolTip.cs: Position the tooltip based on where the cursor is at
27784         popup time, not at MouseEnter time.  Add a Down state so that we don't
27785         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
27786         positioning offset. Lookup DisplaySize at positioning time, since it
27787         can theoretically change during invocation.
27788         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
27789         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
27790
27791 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27792
27793         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
27794           Fixes behaviour when the Text property of the box is String.Empty
27795
27796 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
27797
27798         * XplatUIX11.cs: Only send mouseleave for our client windows, not
27799           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
27800           a window)
27801
27802 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27803
27804         * FileDialog.cs: Visual enhancement for the popup buttons in 
27805           PopupButtonPanel
27806
27807 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
27808
27809         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
27810           code
27811
27812 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
27813
27814         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
27815           highlighted menu items to match ms
27816
27817 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
27818
27819         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
27820
27821 2006-03-30  Mike Kestner  <mkestner@novell.com>
27822
27823         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
27824         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
27825         go active to account for HotLight to Selected transition.
27826         * MenuItem.cs: add internal Selected prop. Fill out the Status
27827         property by calculating it from item info. Add HotLight,
27828         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
27829
27830 2006-03-30  Mike Kestner  <mkestner@novell.com>
27831
27832         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
27833
27834 2006-03-29  Jackson Harper  <jackson@ximian.com>
27835
27836         * Form.cs: Implement TODO.
27837
27838 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
27839
27840         * PrintPreviewDialog.cs: Implemented missing methods and events; still
27841           missing proper dialog setup in the constructor
27842
27843 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
27844
27845         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
27846         * Control.cs:
27847           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
27848           - Fixed ResetBindings and removed TODO
27849           - Added check for cross-thread calls to get_Handle()
27850           - Added Marshaller attribute for set_Font to satisfy class status
27851         * FontDialog.cs: Removed TODOs that seemed implemented
27852         * UpDownBase.cs: Removed unneeded TODO and Fixme
27853         * MessageBox.cs: Implemented support for Default button and removed TODO
27854         * FileDialog.cs: Removed obsolete TODO
27855         * DomainUpDown.cs: Removed obsolete TODO
27856         * ButtonBase.cs: Removed obsolete TODO
27857         * XplatUIWin32.cs: Removed obsolete TODO
27858         * Form.cs:
27859           - Removed obsolete TODO
27860           - Calling CheckAcceptButton when the acceptbutton is changed to allow
27861             internal status updates
27862           - Making sure the active control is selected when the control is created
27863         * CurrencyManager.cs: Removed obsolete TODO
27864
27865 2006-03-29  Mike Kestner  <mkestner@novell.com>
27866
27867         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
27868         of PrintPreviewDialog and RichTextBox.
27869
27870 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27871
27872         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
27873           DarkDark, Light and LightLight colors for a specific color
27874         * ThemeWin32Classic.cs:
27875           - Use Button drawing code to draw RadioButtons and CheckBoxes with
27876             Appearance = Button 
27877           - Make use of the new ResPool helper CPColor
27878           - Draw ProgressBar and StatusBar with correct 3D borders
27879
27880 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
27881
27882         * ColorDialog.cs: Return selected color. Fixes bug #77940.
27883
27884 2006-03-28  Mike Kestner  <mkestner@novell.com>
27885
27886         * ListView.cs: fix Icon layout to plan for scrollbar widths when
27887         calculating col/row counts.
27888
27889 2006-03-28  Mike Kestner  <mkestner@novell.com>
27890
27891         * ColumnHeader.cs:
27892         * ListView.cs:
27893         * ListViewItem.cs:
27894         * Menu.cs: 
27895         switch to explicit interface method implementation for some methods
27896         corcompare identifies as inconsistent with MS.
27897
27898 2006-03-28  Mike Kestner  <mkestner@novell.com>
27899
27900         * MainMenu.cs: 
27901         * Menu.cs:
27902         add a few missing methods from the class status output.
27903
27904 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
27905
27906         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
27907           correct.
27908
27909 2006-03-28  Mike Kestner  <mkestner@novell.com>
27910
27911         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
27912
27913 2006-03-27  Mike Kestner  <mkestner@novell.com>
27914
27915         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
27916         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
27917
27918 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
27919
27920         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
27921
27922 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27923
27924         * ThemeWin32Classic.cs:
27925           - GroupBox: Inserted a little gap between the text and the lines
27926             on the right side
27927           - Made the code in CPDrawBorder3D more readable
27928           - Corrected the drawing location of the up and down arrows in 
27929             CPDrawScrollButton
27930
27931 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27932
27933         * ControlPaint.cs: Corrected line widths in DrawBorder for
27934           ButtonBorderStyle Inset and Outset
27935
27936 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27937
27938         * ThemeWin32Classic.cs:
27939           - Rewrote the totally broken CPDrawBorder3D method. That was
27940             one of the main problems for the terrific ThemeWin32Classic
27941             look
27942           - Updated and corrected Button drawing
27943           - Correct the dimensions of the SizeGrip to match ms ones
27944           - Removed a small drawing glitch in DrawComboBoxEditDecorations
27945         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
27946           Border3DStyle.Sunken to match ms.
27947
27948 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
27949
27950         * ThemeWin32Classic.cs: First small part of the "de-uglify
27951           ThemeWin32Classic" effort, SizeGrip
27952
27953 2006-03-24  Jackson Harper  <jackson@ximian.com>
27954
27955         * XplatUIX11.cs: Give a max idle time of one second, this matches
27956         MS and forces an Idle event every second when there are no other
27957         events in the queue.
27958
27959 2006-03-24  Mike Kestner  <mkestner@novell.com>
27960
27961         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
27962         * ListView.Item.cs: fix layout issues with null image lists and images
27963         smaller than checkbox size.
27964         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
27965         mode like MS does.  It's weird, but consistent.  ;-)
27966         Fixes #77890.
27967
27968 2006-03-24  Mike Kestner  <mkestner@novell.com>
27969
27970         * ListView.cs: Scroll wheel support for the item control.  Fixes
27971         #77839.
27972
27973 2006-03-23  Jackson Harper  <jackson@ximian.com>
27974
27975         * ScrollableControl.cs: Special case negative sized areas, not
27976         zero.
27977         * MonthCalendar.cs: Save the rect of the clicked date so we can
27978         use it for invalidation.
27979         - Try to cut down on the number of invalidates
27980         - Invalidate the rect the mouse is over and was over when moving
27981         the mouse, so we get the focus box following the cursor.
27982
27983 2006-03-23  Mike Kestner  <mkestner@novell.com>
27984
27985         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
27986         focus rectangle drawing. Fixes #77835.
27987
27988 2006-03-23  Mike Kestner  <mkestner@novell.com>
27989
27990         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
27991         the if and else if and reverting back to the original == check on the
27992         None conditional.
27993
27994 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
27995
27996         * FontDialog.cs: Update the example panel if the selected index of
27997           the fontListBox changes.
27998
27999 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
28000
28001         * FileDialog.cs: Make FileDialog remember which directory it was in
28002           last in the same execution.
28003
28004 2006-03-22  Mike Kestner  <mkestner@novell.com>
28005
28006         * FileDialog.cs: make the DropDownMenu on the toolbar display
28007         RadioChecks since they are mutually exclusive and that's what MS does.
28008
28009 2006-03-22  Mike Kestner  <mkestner@novell.com>
28010
28011         * Theme.cs: add Color param to CPDrawMenuGlyph.
28012         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
28013         checks and radio marks and arrows are visible on highlighted items.
28014         * ControlPaint.cs: update to use new Theme signature.
28015
28016 2006-03-22  Mike Kestner  <mkestner@novell.com>
28017
28018         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
28019         is active. Fixes #77870.
28020
28021 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28022
28023         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
28024           to be focused/selected after startup
28025
28026 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
28027
28028         * ColorDialog.cs: 
28029           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
28030             CustomColors and ShowHelp properties
28031           - Some internal rewrites to get better results when using the
28032             ColorMatrix
28033
28034 2006-03-22  Mike Kestner  <mkestner@novell.com>
28035
28036         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
28037         HoverSelection.  Fixes #77836.
28038
28039 2006-03-22  Mike Kestner  <mkestner@novell.com>
28040
28041         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
28042         ToggleButtons.  (De)Sensitize the Back button around a stack count of
28043         1, not 0.  Update ButtonSize based on a pixel count of the win32
28044         control.  Adjust the toolbar size/location for new button size.
28045
28046 2006-03-22  Jackson Harper  <jackson@ximian.com>
28047
28048         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
28049         true.
28050         * ScrollBar.cs: When doing increments and decrements we need to
28051         set the Value property so that ValueChanged gets raised. A
28052         possible optimization here would be to make an internal SetValue
28053         that doesn't invalidate immediately.
28054         * ToolTip.cs: Tooltips get added to their container (when
28055         supplied) so they get disposed when the container is disposed.
28056         - Don't create tooltips for String.Empty. This prevents all these
28057         little 2-3 pixel windows from showing up when running nunit-gui
28058         and driving me mad.
28059         * Form.cs: Don't set topmost when setting the owner if the handles
28060         haven't been created yet.  The topmost set will happen when the
28061         handles are created.
28062
28063 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
28064
28065         * XplatUIX11.cs:
28066           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
28067           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
28068             visible (to allow them to recalculate their sizes)
28069
28070 2006-03-21  Mike Kestner  <mkestner@novell.com>
28071
28072         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
28073         methods. Removed a ton of redundant code.  Still not really happy with
28074         the border rendering, but I think that's mainly because of the
28075         ControlDarkDark being black instead of a dark grey. Depending on how 
28076         close we want to be, we might want to revisit those color choices.
28077         Among the new features added during the refactor were DropDownArrow
28078         pressed rendering, Disabled image rendering.  Proper flat appearance
28079         boundary rendering.  Removed the Divider and Wrapping dividers since I
28080         can't figure out any combination of themes and conditions to make the
28081         MS control draw a horizontal line on a toolbar despite what the
28082         Divider property docs indicate.
28083         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
28084         conditions and incorrect layout.  Updated to coding standard.
28085         * ToolBarButton.cs: refactored layout and positioning code from
28086         ToolBar to here.  Invalidate wherever possible instead of forcing
28087         redraws of the whole toolbar. 
28088         (Known remaining issues: explicit ButtonSize smaller than provided
28089         images.)
28090
28091 2006-03-21  Mike Kestner  <mkestner@novell.com>
28092
28093         * ContextMenu.cs (Show): use the position parameter instead of just
28094         showing at the MousePosition.
28095
28096 2006-03-21  Jackson Harper  <jackson@ximian.com>
28097
28098         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
28099         control handle this.
28100         * TreeNodeCollection.cs: If we are clearing the root node we need
28101         to reset top_node so calcs can still happen.
28102         * ThemeWin32Classic.cs: This is a Flags so we need to check
28103         properly.
28104         
28105 2006-03-21  Jackson Harper  <jackson@ximian.com>
28106
28107         * DataGrid.cs: Create columns when the binding context has been
28108         changed.
28109         * X11Structs.cs: Keysyms are uints.
28110         - Add size to fix build.
28111
28112 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
28113
28114         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28115           XplatUIOSX.cs: 
28116           - Added ResetMouseHover method to allow controls to retrigger
28117             hovering if they need it more than once
28118           - Implemented MouseHoverTime and MouseHoverSize properties
28119         * Timer.cs: Start() must reset the interval
28120         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
28121           properties
28122
28123 2006-03-21  Jackson Harper  <jackson@ximian.com>
28124
28125         * X11Keyboard.cs: improved layout detection. Move the nonchar
28126         tables into this file.
28127         * KeyboardLayouts.cs: Move the tables into resource files.
28128
28129 2006-03-21  Mike Kestner  <mkestner@novell.com>
28130
28131         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
28132
28133 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
28134
28135         * Mime.cs: Various speed optimizations. Looking up mime types
28136           is now 2 times faster than before
28137
28138 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
28139
28140         * CreateParams.cs: Added internal menu field
28141         * Control.cs: 
28142           - Switched call order for UpdateBounds; now we always call
28143             the one that also takes ClientSize, and we're calculating the 
28144             client size via driver method in the others. The previous
28145             method of tracking client size by difference wasn't working
28146             for forms where even the starting client size wouldn't match
28147             the overall form size (due to borders) (Part of fix for #77729)
28148           - CreateParams(): Do not use parent.Handle unless the handle is
28149             already created. Causes havoc with Nexxia and throws off our
28150             creation of controls
28151         * XplatUIX11.cs:
28152           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
28153           - Switched handling of ConfigureNotify over to new PerformNCCalc 
28154             method (consolidates code)
28155           - Changed RequestNCRecalc to use new PerformNCCalc method
28156           - Added calls to RequestNCRecalc when menus and borders are changed
28157             to allow app to set NC size. (Part of fix for #77729) This matches
28158             when MS send a WM_NCRECALC on Win32 windows.
28159           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
28160             (Part of fix for #77729). This matches what MS does, they also
28161             send that message when the form is made visible.
28162           - XException.GetMessage: Improved usability of X errors by including
28163             a translation of the window into Hwnd and Control class
28164           - Improved debug info for window creation, reparenting and destruction
28165           - Created helper method WindowIsMapped() [Currently not used]
28166         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
28167         * Form.cs:
28168           - CreateParams: Now setting our menu on the new internal menu field
28169           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
28170             avoid calculating the same property twice
28171         * Hwnd.cs:
28172           - Improved usability of ToString() for debugging purposes
28173           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
28174             determine the height of the menu, instead of just the font. This
28175             required to also create a graphics context and to keep a bmp 
28176             around (for performance reasons)
28177
28178 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
28179
28180         * MenuAPI.cs: Added OnMouseUp method
28181         * Form.cs:
28182           - Now remembering the requested client size, avoids size errors
28183           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
28184             instead of base if the menu is active. This is required due to
28185             control now capturing and releasing on down/up and it would
28186             prematurely release our menu capture
28187
28188 2006-03-17  Jackson Harper  <jackson@ximian.com>
28189
28190         * KeyboardLayouts.cs: Add the czech layouts.
28191
28192 2006-03-16  Jackson Harper  <jackson@ximian.com>
28193
28194         * Control.cs: Use the viewport space when sizing not the controls
28195         client size, so things like ScrollableControl that effect the
28196         viewport size (when scrollbars are added) are computed correctly.
28197         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
28198         of ManagerEntrys.
28199         - Handle creating BindingManagers for null data sources.
28200         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
28201         source, otherwise when rows are added they are added to the 'fake'
28202         datasource and we will crash when trying to set the position in
28203         those rows.
28204         - Use Implicit scrollbars on the datagrid so they arent
28205         selectable.
28206         
28207 2006-03-16  Jackson Harper  <jackson@ximian.com>
28208
28209         * Binding.cs:
28210         * InternalWindowManager.cs:
28211         * MdiWindowManager.cs:
28212         * X11Keyboard.cs: I really want Mike to love me again (fix
28213         compiler warnings).
28214
28215 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
28216
28217         * DataGrid.cs:
28218           - OnMouseDown: Switch to editing mode when clicking on the cell
28219                          even if we're clicking on the cell that's currently 
28220                          selected
28221           - ProcessGridKey: Left/Right now wrap like MS.Net does
28222           - ProcessGridKey: Tab now knows to add a new row when tab is
28223                             pressed in the cell of the last column of the 
28224                             last row
28225           - ProcessGridKey: Enter now adds another row  if pressed in the last
28226                             row and selectes the new row, same column cell
28227           - ProcessGridKey: Home/End navigate columns, not rows, like 
28228                             originally implemented
28229           - Broke ProcessKeyPreview code out into an extra Internal method
28230             so it can be called from the edit code
28231         * DataGridTextBox.cs (ProcessKeyMessage):
28232           - Switched to accept Tab keypresses
28233           - Added F2 handling to allow jumping to the end of the edited cell
28234           - Added logic to allow moving caret left/right inside edited cell
28235             and making the edited cell jump when the caret hits cell borders
28236           - Tab and Enter are now passed to the datagrid after being handled
28237         * TextBoxBase.cs:
28238           - Removed capture code now that Control handles it
28239           - set_SelectionStart now ensures caret is visible
28240
28241 2006-03-16  Jackson Harper  <jackson@ximian.com>
28242
28243         * TrackBar.cs: Debackwards the increment/decrement for handling
28244         mouse clicks on the bar with vertical trackbars.
28245         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
28246         bottom to match MS.
28247
28248 2006-03-16  Mike Kestner  <mkestner@novell.com>
28249
28250         * ListView.cs: make shift/ctrl keyboard and mouse selection 
28251         consistent with the MS control. Fix a bug in
28252         SelectedListViewItemCollection.Clear that was pissing me off for the
28253         better part of a day because the collection was being altered
28254         underneath us as we walked the list.
28255
28256 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
28257
28258         * Control.cs: Not sure how we could miss this so long, but it seems
28259           that MS.Net has Capture set all the way from before calling 
28260           OnMouseDown through sending the mouse events until after
28261           OnMouseUp. This will fix DataGrid's selection being set to end
28262           at the location of the MouseUp.
28263
28264 2006-03-15  Jackson Harper  <jackson@ximian.com>
28265
28266         * BindingContext.cs: Check the binding after its added so that it
28267           can initialize the binding managers and hookup to events.
28268         * Binding.cs: Data members seem to sometimes include rows/cols in
28269           the format Row.Column we now take this into account.
28270           - Hookup to the position changed event so we can update the
28271           control when the position has changed in the data set.
28272         * CurrencyManager.cs: Take into account the row/col naming
28273           convention when creating dataset tables.
28274         * BindingContext.cs: Using a newer better way of storing
28275           datasource/datamember pairs.  Hopefully this better matches MS for
28276           looking up binding managers.
28277
28278
28279 2006-03-15  Jackson Harper  <jackson@ximian.com>
28280
28281         * BindingContext.cs: The currency manager needs the data member
28282         name, if the member is a data set we use the name to find the
28283         correct table.
28284         * CurrencyManager.cs: When creating the list prefer an IList over
28285         an IListSource.
28286         - Attempt to create a DataTable from a DataSet (TODO: might need
28287         some better error checking here, although MS doesn't seem to have much)
28288         - If we have a DataTable create a view and use it as our list.
28289
28290 2006-03-15  Mike Kestner  <mkestner@novell.com>
28291
28292         * ListView.cs: keep a matrix of the icon mode layout to facilitate
28293         keyboard navigation. Support Up/Down/Left/Right selection correctly
28294         for all 4 View modes.
28295         * ListViewItem.cs: add internal row/col fields for icon layouts.
28296
28297 2006-03-15  Jackson Harper  <jackson@ximian.com>
28298
28299         * TabControl.cs: Redraw the tabs when we resize so their newly
28300         calculated sizes are drawn on screen.
28301         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
28302         composite characters.
28303         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
28304         - filter events so that composite characters can be created
28305         patches by peter
28306         * X11Structs.cs: Add XIMProperties enum.
28307
28308 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28309
28310         * Control.cs (BringToFront, SendToBack): Don't use window or handle
28311           unless it's created
28312
28313 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28314
28315         * Control.cs (PerformLayout): We don't need to consider visiblity
28316           for anchoring, only for docking. This fixes 'whacky' alignment
28317           in listbox and other controls that use implicit scrollbars after
28318           the previous PerformLayout patch
28319         * ListBox.cs: Switched to use implicit scrollbars
28320           
28321 2006-03-14  Mike Kestner  <mkestner@novell.com>
28322
28323         * ToolBar.cs: 
28324         * VScrollBar.cs:
28325         - chain up the "new event" overrides to base and use
28326         OnEvent to raise them.  Part of fix for bug #76509.
28327
28328 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
28329
28330         * FileDialog.cs: Do not select an item in the parent directory
28331           on backspace
28332
28333 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
28334
28335         * Control.cs (PerformLayout): It would seem that we considered
28336           invisible windows for our layout. Not quite the right thing
28337           to do. Now we don't any longer, thereby fixing bug #76889.
28338
28339 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
28340
28341         * Control.cs (CanFocus): I goofed. A control can have focus 
28342           even though it's not selectable. Made it match MS docs.
28343
28344 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28345
28346         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
28347           center by default (fixes #76895)
28348         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
28349           all uses of Border3DSides.All with the explicit ORd together
28350           Left|Right|Top|Bottom because I assume that nobody was aware 
28351           that All also implies a center fill. Most places I checked had
28352           a fill right above.
28353         * ProgressBarStyle.cs: Added
28354
28355 2006-03-13  Mike Kestner  <mkestner@novell.com>
28356
28357         * ListView.cs: fix breakage in drag shadow header positioning 
28358         from Peter's csc compilation fix.
28359
28360 2006-03-13  Mike Kestner  <mkestner@novell.com>
28361
28362         * ListView.cs: fix NRE produced by backspacing twice in a focused
28363         FileDialog.
28364
28365 2006-03-13  Mike Kestner  <mkestner@novell.com>
28366
28367         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
28368
28369 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28370
28371         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
28372           be changed
28373         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
28374           the allowed size before making programmatic size changes
28375
28376 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
28377
28378         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
28379           set, metacity is broken and will still use the emty sizes in 
28380           the struct. (Fix for #77089)
28381
28382 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
28383
28384         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
28385           WindowExStyles and marked both enums as Flags
28386         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
28387           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
28388           to match WindowStyles split
28389         * XplatUIX11.cs:
28390           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
28391           - Updated to match WindowStyles split
28392         * XplatUIWin32.cs:
28393           - Fixed FosterParent creation, was using ExStyle on the Style field
28394             (This should help with Popup focus issues)
28395           - Updated to match WindowStyles split
28396
28397 2006-03-13  Jackson Harper  <jackson@ximian.com>
28398
28399         * MdiWindowManager.cs: Use the system menu height. Fixes some
28400         strange sizing issues.
28401
28402 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28403
28404         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
28405         * TextBoxBase.cs:
28406           - Scroll to caret after inserting text (#77672)
28407           - Make scroll range one pixel higher, fixes off-by-one error (and
28408             makes underlines visible on the last line)
28409
28410 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
28411
28412         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
28413           the keyboard state from being stuck with keys in 'pressed' state when
28414           focus is switched away via keyboard
28415         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
28416           reset the keyboard if no X11 KeyUp events are expected to come
28417         * X11Structs.cs: Switched type of Visible to bool to match driver
28418
28419 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
28420
28421         * TextControl.cs:
28422           - Switched caret to be just 1 pixel wide, matches MS and looks less
28423             clunky
28424           - Moved caret display 1 pixel down from the top of the control
28425             to improve view
28426           - InsertCharAtCharet: Update the selection start if moving the caret
28427             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
28428           - No longer always creating the caret when the caret methods are
28429             called. Only the actual ShowCaret/HideCaret will do that now
28430           - Only setting caret visible if the owner control has focus
28431           - UpdateView: Added invalidation-shortcut logic for center and right 
28432             aligned text. Previously we'd update all according to the left
28433             logic which caused drawing errors. Also fixed height of invalidated
28434             areas, now properly invalidating the whole area (was off-by-one)
28435           - owner_HandleCreated: Always generate the document when the
28436             handle is created; this ensures that 
28437         * TextBoxBase.cs:
28438           - Fixed situation where caret would disappear under the right
28439             window border, also improved scrolling behaviour on left-
28440             aligned textboxes
28441           - Fixed right-aligned textboxes to have a border to the
28442             right instead of the caret being under the right border
28443         * XplatUIX11.cs:
28444           - Switched from 'nested' to simple visible/not visible tracking 
28445             for caret (part of fix for #77671)
28446           - No longer passing through translated FocusIn/FocusOut messages
28447             since we were notifying too often and the wrong windows. Instead
28448             we just notify our focussed window of receiving or loosing focus
28449         * XplatUIWin32.cs: Switched from 'nested' show/hide 
28450           counting for caret to simple visible yes/no behaviour (part of 
28451           fix for #77671)
28452
28453 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28454
28455         * Mime.cs: Remove debug code...
28456
28457 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
28458
28459         * MimeGenerated.cs: Removed
28460         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
28461           and subclasses) from /usr/(local/)share/mime and
28462           $HOME/.local/share/mime.
28463
28464 2006-03-10  Jackson Harper  <jackson@ximian.com>
28465
28466         * MdiWindowManager.cs: Recalc the NC area when a window is
28467         maximized/restored so that the menu area is drawn on forms that
28468         don't have a menu.
28469
28470 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28471
28472         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
28473           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
28474           us to force a WM_NCCALCRESIZE message being sent. This is needed
28475           for MDI maximizing.
28476
28477 2006-03-10  Jackson Harper  <jackson@ximian.com>
28478
28479         * Form.cs: We need to use the ActiveMenu when calculating menu
28480         height.
28481         - Fix nullref when the window manager hasn't been created yet.
28482         * Control.cs: Fix nullref when we try to bring a control to the
28483         front that has no parent.
28484         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
28485         height.
28486         - Add a dummy item to the maximized menu so it always has the
28487         correct height. Otherwise when there are no menus we don't get our
28488         icon and buttons.
28489         
28490
28491 2006-03-10  Jackson Harper  <jackson@ximian.com>
28492
28493         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
28494         stuff.
28495         * Form.cs: Make the window_state internal so the window managers
28496         can track it.
28497         - When an MDI child is maximized let its window manager create the
28498         main menu (so it can add its icon).
28499         - Notify the window managers of state changes
28500         - Let the window manager paint its buttons and handle button
28501         clicks on the menu when it is maximized.
28502         * InternalWindowManager.cs: Move the prev_bounds into the mdi
28503         window manager, since tool windows don't use it, only mdi windows.
28504         - Tell the main form that we don't want it to handle NCPAINT
28505         itself to avoid extra painting.
28506         - Handle clicks on a maximized windows menu.
28507         - Handle window state changes
28508         - Handle minimize/maximize clicks correctly by setting the window state.
28509         * MdiWindowManager.cs: Add an icon menu that (the menu you get
28510         when clicking on the forms icon).
28511         - New method to create a forms maximized menu. This is its normal
28512         menu + an icon.
28513         - Handle window state changes.
28514         - Handle sizing of maximized windows.  Maximized windows are just
28515         drawn bigger then the parent visible area. All controls are still
28516         there, they are just outside the visible area (this matches windows).
28517         * MdiClient.cs: No scrollbars when a child window is maximized.
28518         - Let the children windows figure out how big they should be when
28519         sizing maximized windows.
28520         - Implement a version of ArrangeIconicWindows somewhat similar to
28521         Windows version.  There are some little differences, but I don't
28522         think any app will rely on the layout of minimized mdi windows.
28523
28524 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28525
28526         * Padding.cs: Several fixes to allow compiling with csc 2.0
28527
28528 2006-03-09  Jackson Harper  <jackson@ximian.com>
28529
28530         * Menu.cs:
28531         * MenuItem.cs: Cheap hack so we can add items to the list without
28532         the events being raised.  This allows adding mdi items during
28533         drawing. TODO: Should probably find a better time to add the items.
28534
28535 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28536
28537         * ThemeWin32Classic.cs:
28538           - CheckBox_DrawText: Added logic to not wrap if not enough space
28539             is available (Fix for bug #77727)
28540           - RadioButton_DrawText: Added logic not to wrap if not enough
28541             space is available (Fix for bug #77727). Also removed some
28542             duplicate code, DrawString always drawing the regular text
28543             before hitting the if statement.
28544
28545 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
28546
28547         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
28548
28549 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
28550
28551         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
28552         * ContainerControl.cs: Partial implementation of some 2.0 scaling
28553           methods. Moved the new 2.0 properties into alphabetical order with
28554           other properties and added MonoTODO tags
28555
28556 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28557
28558         * AutoScaleMode.cs: Added. Fix build.
28559
28560 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28561
28562         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
28563           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
28564           and was requiring premature handle creation for calls from above
28565         * Form.cs, Control.cs: Removed handle arguments from calls to
28566           CalculateClientRect()
28567
28568 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28569
28570         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
28571           drag_column.column_rect is MarshalByRef and can't be used that way
28572
28573 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28574
28575         * AxHost.cs: Added deserialization constructor for 
28576           AxHost+State (fixes 77743)
28577
28578 2006-03-09  Mike Kestner  <mkestner@novell.com>
28579
28580         * ListView.cs: 
28581         - Added column drag reordering for details view.
28582         - fixed behavior when mouse is dragged off column and
28583         AllowColumnReorder is false.
28584         * ColumnHeader.cs: clone the format too in Clone.
28585         * Theme.cs: add DrawListViewHeaderDragDetails method.
28586         * ThemeWin32Classic.cs:
28587         - impl new method for drawing drag column shadows and targets.
28588         - support column offset for details mode in DrawListViewItem.
28589
28590 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28591
28592         * TextControl.cs: Reset the char_count when the document is cleared
28593           (Fixes bug reported on mono-winforms mailing list)
28594
28595 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
28596
28597         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
28598           of calling base we simply process the key ourselves, since both
28599           DefWindowProc and the handled method would set m.Result. 
28600           (Fixes #77732)
28601
28602 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
28603
28604         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
28605           method also moves the window; instead implemented a copy of
28606           Control.ScaleCore (Part of fix for #77456)
28607         * TextBoxBase.cs: 
28608           - Created new CreateGraphicsInternal method to allow providing
28609             a graphics context when no handle is created without triggering
28610             handle creation. (Part of fix for #77456)
28611           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28612         * TextControl.cs: 
28613           - Switched Constructor to require TextBoxBase instead of Control (to
28614             allow uncast access to CreateGraphicsInternal)
28615           - Safeguarded use of owner.Handle property. No longer accessing it
28616             unless the handle is already created.
28617           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
28618           - Now triggering a recalc when owning control becomes visible
28619         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
28620           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
28621           premature handle creation (Part of fix for #77456)
28622         * Control.cs:
28623           - We now only destroy our double-buffering buffers when the
28624             control is resized or disposed, but not when visibility
28625             changes. (The code even re-created them twice every time)
28626           - Now requiring a redraw of the buffer on visibility changes
28627             (fixes bug 77654 part 2)
28628           - Not passing OnParentVisibleChanged up unless the control
28629             is visible
28630           - CanFocus: Fixed to match MS documentation
28631           - Focus: Fixed to return actual focus state and to check if
28632             setting focus is legal before setting it
28633
28634 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
28635
28636         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
28637           when to draw focus rectangle by looking at parent focus and
28638           selected state instead. This fixes TabPages on Linux sometimes
28639           having none or multiple focus rectangles.
28640         * XplatUIX11.cs (SetFocus): 
28641           - Don't set the focus if the same window already has focus
28642           - Use SendMessage instead of PostMessage (like it's Win32
28643             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
28644             to match MS behaviour
28645         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
28646           are not selectable.
28647
28648 2006-03-07  Jackson Harper  <jackson@ximian.com>
28649
28650         * PictureBox.cs: Revert line I accidently committed last week.
28651
28652 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
28653
28654         * Control.cs: 
28655           - Added new IsRecreating and ParentIsRecreating properties to
28656             allow testing if RecreateHandle has been called on ourselves
28657             or one of our parents
28658           - WndProc(WM_DESTROY): If our control handle is being recreated
28659             we immediately need to create the handle when receiving the
28660             destroy, that way our child windows find a valid parent handle
28661             when they themselves are being recreated upon WM_DESTROY receipt
28662             (fix for bug #77654 part 1)
28663         * XplatUIX11.cs:
28664           - DestroyWindow: WM_DESTROY must be sent to our own window before
28665             notifying any child windows. MS documents that child windows
28666             are still valid when WM_DESTROY is received. (Control now relies on
28667             this behaviour)
28668           - Added some fine-grain debug options
28669
28670 2006-03-06  Jackson Harper  <jackson@ximian.com>
28671
28672         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
28673         box and base calculations off this.
28674         * MdiChildContext.cs:
28675         * MdiWindowManager.cs: Don't need to ensure scrollbars here
28676         anymore.
28677         
28678 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
28679
28680         * Splitter.cs: In situations where the affected control is added
28681           to the parent's control list after the splitter, we would not
28682           populate affected. Now we try populating it on mousedown, if
28683           it's not already set, and force it to be re-set whenever our
28684           parent changes.
28685
28686 2006-03-03  Matt Hargett  <matt@use.net>
28687
28688         * Control.cs: implement Control.Padding
28689         * Padding.cs: -Padding.All returns -1 when constructing with the
28690         implicit default ctor
28691         -Padding.ToString() matches MS.NET
28692         * ContainerControl.cs: implement
28693         ContainerControl.AutoScaleDimensions
28694         * ListControl.cs: implement ListControl.FormattingEnabled
28695         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
28696         * ButtonBase.cs:
28697         * TabPage.cs: Implement UseVisualStyleBackColor.
28698         * PictureBox.cs: Implement PictureBox.InitialImage.
28699
28700 2006-03-03  Mike Kestner  <mkestner@novell.com>
28701
28702         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
28703         event declarations to proxy to base event.
28704         * ListViewItem.cs: update to use ItemControl.
28705         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
28706         * ThemeWin32Classic.cs: update to new ListView theme API and fix
28707         column header label rendering for 0 width columns.
28708
28709 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
28710
28711         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
28712           that causes the control to be created. Fixes #77476.
28713
28714 2006-03-02  Jackson Harper  <jackson@ximian.com>
28715
28716         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
28717         expose_pending.
28718
28719 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
28720
28721         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
28722           passed in for the EventArgs (fixes #77690)
28723
28724 2006-03-01  Jackson Harper  <jackson@ximian.com>
28725
28726         * ScrollBar.cs: Refresh afterbeing resized.
28727
28728 2006-02-28  Mike Kestner  <mkestner@novell.com>
28729
28730         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
28731         Clean up a tracker compile warning.
28732         * MenuItem.cs: add internal PerformPopup method.
28733         [Fixes #77457]
28734
28735 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28736
28737         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
28738           implicit expose) when the text is set to null
28739
28740 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
28741
28742         * RichTextBox.cs (FlushText): When newline is true, we always
28743           need to split the line, even if no text is on it and we may
28744           never eat newlines. (Fixes #77669)
28745
28746 2006-02-28  Mike Kestner  <mkestner@novell.com>
28747
28748         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
28749         and set Selected instead.
28750         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
28751         collections.
28752
28753 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
28754
28755         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
28756
28757 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
28758
28759         * FontDialog.cs:
28760           - Got rid of the panel. All controls are now directly added to
28761             the dialog form
28762           - It is now possible to set a font with the Font property
28763           - MinSize and MaxSize property do now what they should
28764           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
28765           - Searching and selecting a font with the font textbox works now,
28766             the same applies to the style and size textbox
28767           - Draw the correct 3D border in the example panel
28768           - Fixed a little mem leak (unused fonts didn't get disposed)
28769           - Many other internal updates/rewrites...
28770           - Fix typo
28771
28772 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28773
28774         * TextControl.cs: 
28775           - InsertRTFFromStream: Added 'number of characters inserted' argument
28776           - set_SelectedRTF: Now using the number of characters to calculate
28777             the new location for the selection and cursor (x/y cannot be used
28778             due to potentially already wrapped text)
28779
28780 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
28781
28782         * TextControl.cs: Added property and implemented means to allow 
28783           disabling recalculation of a document (can be used to speed up
28784           multiple inserts and is needed to make RTF inserts predictable, see
28785           bug #77659)
28786         * RichTextBox.cs: Using the new NoRecalc property of Document to
28787           keep x/y insert locations predictable. Also makes it faster inserting
28788           large chunks of RTF
28789
28790 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
28791
28792         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
28793           it's easier for a child control to handle the other messages without
28794           having to duplicate the special functionality
28795         * TextBoxBase.cs
28796           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
28797             code to handle processing the key ourselves, in order to get 
28798             access to the result of KeyEventArgs.Handled. We now only call 
28799             ProcessKey if they key hasn't been handled already. Fixes #77526.
28800           - set_Text: If null or empty string is given, just clear the 
28801             document. Fixes part of #77526
28802
28803 2006-02-27  Jackson Harper  <jackson@ximian.com>
28804
28805         * SizeGrip.cs: Paint the background color before painting the grip
28806         so things look right.
28807         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
28808
28809 2006-02-27  Mike Kestner  <mkestner@novell.com>
28810
28811         * ListView.cs:
28812           - Restructure layout and invalidation model to remove a ton of
28813           flicker from the control and speed up performance in general.
28814           - Add manual column resize, flickers like crazy, but I already have
28815           some ideas on how I'll fix that. (#76822)
28816           - Merge the three Icon-based views into a single layout method.
28817           - Move item selection interaction logic from the item since 
28818           interaction with the collections is more appropriate to the view.
28819           - Deselection on non-item clicks.
28820         * ListViewItem.cs:
28821           - Encapsulate most of the layout. Add some internal props to trigger
28822           layout.  Move to a model where Items invalidate themselves instead
28823           of just invalidating the whole control every time something changes.
28824           - Invalidate on Text/Caption changes.
28825           - switch to an offset based layout model to avoid having to absolute
28826           position every element on item moves.
28827           - correct checkbox layout to conform to MS layout.
28828         * ThemeWin32Classic.cs:
28829           - refactor some column header drawing code.
28830           - fix string justification for column headers (#76821)
28831           - make SmallIcon labels top justified for compat with MS impl.
28832         * ThemeClearlooks.cs:
28833           - adjust to new ListViewItem internal checkbox bounds api.
28834
28835 2006-02-27  Jackson Harper  <jackson@ximian.com>
28836
28837         * Control.cs:  Change where implicit controls fall in the zorder.
28838         They are now on top of all children.
28839         - Synced AddImplicit code with Add
28840         - Removed unused enumerator.
28841         * SizeGrip.cs: Remove the TODO as its been TODONE.
28842
28843 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
28844
28845         * TextControl.cs(Insert): Combine the last lines unless the insertion
28846           string ends with \n\n, otherwise we leave one line too many (Fixes
28847           something I noticed with the testapp for #77526; the bug itself was
28848           already fixed in the previous checkin)
28849
28850 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
28851
28852         * RichTextBox.cs:
28853           - SelectionColor and SelectionFont methods no longer set absolute
28854             styles. Instead, the keep font or color respectively (This 
28855             resolves a long-standing FIXME in the code)
28856           - When flushing RTF text, the insert code now considers text trailing
28857             behind the insertion point (Fixes the bug where when replacing
28858             the selected text via SelectedRTF the remainder of the line behind 
28859             the selection would stay on the first insertion line)
28860         * TextBoxBase.cs:
28861           - AppendText now updates the selection points after inserting text
28862           - AppendText now ensures that the last tag (sometimes 0-length) of
28863             the document is used for the style information (Fixes part of 
28864             bug #77220)
28865         * TextControl.cs:
28866           - Created new FontDefiniton class to allow describing partial style
28867             changes
28868           - StreamLine() now takes a lines argument, to allow it to decide
28869             whether an encountered zero-length tag is the last in the document
28870             (which must be kept to not loose the font/color contained in it,
28871             for later appends)
28872           - Created Combine() and Split() methods for Marker structs, to 
28873             support marker updates due to reformatted documents (soft line
28874             wraps)
28875           - Implemented Document.CaretTag setter
28876           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
28877             of the last line (Not the cause, but also exposed by bug #77220)
28878           - Added LineTag argument to InsertString method, to allow callers
28879             to force a certain tag to be used (required to force use of the
28880             trailing zero-length tag of a document)
28881           - Now updating markers in Combine(), to avoid stale tag markers
28882           - Added some method descriptions to aid maintenance
28883           - Implemented new FormatText concept, allowing additive/subtractive
28884             formatting by only specifying the components that are to be 
28885             changed. This was needed for resolving the RTB.SelectedColor/
28886             RTB.SelectedFont fixmes
28887           - Added Break() support method to allow breaking up linetags (used
28888             for partial formatting)
28889           - Added GenerateTextFormat() method. It is used for partial 
28890             formatting and allows to generate a full font/color from given
28891             attributes and an existing tag.
28892
28893 2006-02-26  Jackson Harper  <jackson@ximian.com>
28894
28895         * XplatUIX11.cs:  Use the correct caption height.
28896         - Translate hittest coordinates to screen coords to match MS.
28897         * XplatUIWin32.cs: When we create MDI windows we need to reset
28898         some of the style flags, so we get a nice blank window, and can
28899         draw all the decorations ourselves.
28900         - Set a clipping rectangle on the non client paint event, the
28901         window manager drawing code needs one.
28902         * Form.cs: The window manager needs to know when the window state
28903         has been updated.
28904         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
28905         don't need to factor in border and title sizes in these
28906         methods. TODO: Remove the args and fix the call points.
28907         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
28908         properly.
28909         - Let the driver set the cursors.
28910         - Improve active window handling
28911         - Correct sizes for title bars and buttons.
28912         - Match MS drawing better
28913         * MdiWindowManager.cs: We don't need to handle border style
28914         updates specially anymore.
28915         - Check for scrollbars when windows are done moving
28916         - Handle Active properly.
28917         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
28918         correctly. I am spewing the exception though, so we don't hide the
28919         bugs.
28920         
28921 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
28922
28923         * DataGridViewRowPostPaintEventArgs.cs,
28924           DataGridViewCellPaintingEventArgs.cs,
28925           DataGridViewRowCollection.cs,
28926           DataGridViewRowPrePaintEventArgs.cs,
28927           DataGridViewCell.cs: Clear a few warnings and implement a few
28928           exceptions that should be thrown.
28929
28930 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28931
28932         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
28933           'inheriting' our parent's (non-default) cursor. (Part of
28934            the fix for #77479)
28935
28936 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
28937
28938         * XplatUIX11.cs: Fixed cast to make csc happy
28939
28940 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
28941
28942         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
28943           it's for the client area (part of fix for #77479 and needed
28944           for MDI window cursor handling)
28945         * XplatUIX11.cs
28946           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
28947             the appropriate default cursors and also passing the message
28948             up the parent chain 
28949           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
28950             for non-client areas
28951
28952 2006-02-15  Jackson Harper  <jackson@ximian.com>
28953
28954         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
28955         is a real MDI window
28956
28957 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
28958
28959         * X11DesktopColors.cs: Instead of checking the desktop session
28960           string for "KDE" check if it starts with "KDE"
28961
28962 2006-02-10  Jackson Harper  <jackson@ximian.com>
28963
28964         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
28965         systems).
28966
28967 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28968
28969         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
28970           errors
28971         * ColorDialog.cs:
28972           - Got rid of the panel. All controls are now directly added to
28973             the dialog form
28974           - Changed to mono coding style
28975
28976 2006-02-10  Jackson Harper  <jackson@ximian.com>
28977
28978         * InternalWindowManager.cs: We don't need the set visibility to
28979         false hack anymore now that peter has written beautiful shutdown
28980         code.
28981
28982 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
28983
28984         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
28985           where already explicitly destroyed
28986
28987 2006-02-10  Jackson Harper  <jackson@ximian.com>
28988
28989         * MdiClient.cs: Handle the case where windows are too high or to
28990         the left and we need scrollbars.
28991
28992 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
28993
28994         * MimeIcon.cs: Added some icons
28995         * FileDialog.cs:
28996           - Fixed bug #77477
28997           - Got rid of the panel. All controls are now directly added to
28998             the dialog form
28999           - Changed to mono coding style
29000           - On Linux "My Computer" and "My Network" will now show some
29001             more usefull information. A new class, MasterMount, gathers
29002             this information from /proc/mount. Updated MWFFileView to make
29003             use of this information
29004           - Fixed a bug that caused FileDialog to crash when
29005             ".recently_used" file had a zero size
29006           - FilterIndex does now what it should
29007           - Some Refactoring
29008         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
29009             FileDialog changes
29010
29011 2006-02-09  Jackson Harper  <jackson@ximian.com>
29012
29013         * ComboBox.cs: Don't touch if null.
29014
29015 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
29016
29017         * Cursor.cs: 64bit safeness fix
29018         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
29019
29020 2006-02-09  Jackson Harper  <jackson@ximian.com>
29021
29022         * Form.cs: If a form is made into an MDI form update the styles so
29023         all the props can get set correctly.
29024         - Kill the mdi_container when we dont need it anymore.
29025         * InternalWindowManager.cs: Add missing NOT
29026
29027 2006-02-08  Jackson Harper  <jackson@ximian.com>
29028
29029         * InternalWindowManager.cs: Respek clipping when drawing MDi
29030         decorations.
29031
29032 2006-02-08  Jackson Harper  <jackson@ximian.com>
29033
29034         * Hwnd.cs: Add bits to track non client expose events.
29035         * XplatUIX11.cs: Track non client expose events on the hwnd. This
29036         gives us a proper invalid rect and will allow for some nice
29037         optimizations with NC client drawing
29038         - MDI windows are children windows, so move their style handling
29039         into the child window block.
29040         * InternalWindowManager.cs: Remove a state reset that was
29041         getting invoked at the wrong time. Fixes managed windows getting
29042         into a 'stuck' captured state.
29043
29044 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29045
29046         * TextControl.cs (Document.ctor): Now initializing 
29047           selection_anchor. Fixes #77493
29048
29049 2006-02-07  Jackson Harper  <jackson@ximian.com>
29050
29051         * TrackBar.cs: The increment/decrements were backwards.
29052
29053 2006-02-07  Mike Kestner  <mkestner@novell.com>
29054
29055         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
29056         to the instance itself.
29057
29058 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
29059
29060         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
29061           on ulongs and pointers, the size differs between 32bit and 64bit
29062           systems. 
29063
29064 2006-02-07  Mike Kestner  <mkestner@novell.com>
29065
29066         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
29067         for 64 bit platforms to work around a metacity bug. 
29068
29069 2006-02-07  Jackson Harper  <jackson@ximian.com>
29070
29071         * TrackBar.cs: Process the input keys we need, and hookup to
29072         KeyDown instead of using WndProc, so we get key messages.
29073
29074 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
29075
29076         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
29077           machine we're on. 
29078         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
29079           we need to translate the XdndVersion atoms array before sending it
29080
29081 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
29082
29083         * XplatUIX11.cs: 
29084           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
29085             number of bits for the property, not the number of bytes. The
29086             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
29087             but would not crash since it specified 8 bits instead of 4 bits)
29088           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
29089             defined as XID -> long in the C headers)
29090           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
29091             references since those are now IntPtr to begin with
29092           - Switched all Atom.XXX 'int' casts to IntPtr casts
29093           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
29094           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
29095           - Added XChangeActivePointerGrab DllImport (for X11DnD)
29096         * X11Structs.cs:
29097           - Changed 'int' type for Atoms in XEvent structures to IntPtr
29098           - Changed atom in HoverStruct to be IntPtr
29099         * X11DnD.cs:
29100           - Removed local DllImports, switched code to use those from XplatUIX11
29101           - Removed/fixed casts related to the switch of Atom to be a IntPtr
29102
29103 2006-02-06  Mike Kestner  <mkestner@novell.com>
29104
29105         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
29106         method signatures in the import region.  There may still be some
29107         lingering struct marshaling issues, as I didn't drill down into those.
29108         Yet.
29109
29110 2006-02-06  Jackson Harper  <jackson@ximian.com>
29111
29112         * ComboBox.cs: Dont manually set the top_item, this is computed
29113         when the scrollbar position is set.
29114
29115 2006-02-06  Mike Kestner  <mkestner@novell.com>
29116
29117         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
29118         startup crashes on amd64.  There's other fixes needed.  All pinvoke
29119         usage of Atom needs to be mapped to IntPtr for example.  And there are
29120         likely other int/long issues to be addressed.
29121
29122 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
29123
29124         * FileDialog.cs: One more...
29125
29126 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29127
29128         * FileDialog.cs: Next try
29129
29130 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29131
29132         * FileDialog.cs: First part of fix for #77464
29133
29134 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
29135
29136         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
29137           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
29138           AcceptButton border drawing.
29139
29140 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
29141
29142         * Form.cs: Moved positioning of form after auto scaling is applied,
29143           otherwise it would possibly use wrong form size.
29144
29145 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
29146
29147         * Control.cs (RecreateHandle): No need to re-create any child
29148           controls, the child windows will get destroyed automatically by
29149           the windowing system or driver, and re-created when the handle
29150           is being accessed the first time. Fixes #77456
29151         * Form.cs: No longer setting the form to closing if the handle is 
29152           being recreated. This seems like the right thing to do, don't
29153           have a bug or testcase for this, though.
29154
29155 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29156
29157         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
29158           controls to avoid unwanted side effects
29159
29160 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
29161
29162         * Control.cs: 
29163           - ScaleCore needs to scale the bounds, not the ClientSize of the 
29164             control. Fixes #77416.
29165           - DefaultSize is 0,0 for control
29166         * TextBoxBase.cs: 
29167           - DefaultSize is 100, 20
29168           - SetBoundsCore: Now enforcing the height, no matter if the provided
29169             height is more or less than the preferred one, as long as AutoSize
29170             is on
29171         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
29172
29173 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
29174
29175         * Control.cs:
29176           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
29177             call unless both performLayout is true *and* we have a pending
29178             layout change
29179           - ResumeLayout: MS does not completely nest Suspend and Resume,
29180             they bottom out at 0, fixed our code to match that.
29181           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
29182             SetBoundsCore, we were updating even when we shouldn't. This fixes
29183             swf-anchors mis-anchoring when resizing the app fast and lots.
29184           - UpdateDistances: Now only setting the left and top distance if 
29185             we have a parent and are not suspended, this is based on
29186             a suggestion by Don Edvaldson in bug #77355.
29187           - OnVisibleChanged: Fixed logic when to create the control. We may
29188             not create the control if we have no parent or if it's not visible;
29189             switched to using Visible property instead of is_visible field 
29190             since the property also considers parent states. This fixes a bug
29191             when starting Paint.Net
29192
29193 2006-02-02  Jackson Harper  <jackson@ximian.com>
29194
29195         * Form.cs: If the forms handle hasn't been created yet don't call
29196         into xplatui to make it top most, just set the topmost flag on the
29197         form in CreateParams
29198         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
29199
29200 2006-02-01  Jackson Harper  <jackson@ximian.com>
29201
29202         * ScrollableControl.cs: Refactored the Recalculate method a
29203         little, this wasn't handling all the variants of bottom and right
29204         bars needed to be added and added/removed based on their
29205         counterparts being added/removed (which changes the drawable
29206         size). Also we special case client widths and heights of 0 and
29207         don't add the scrollbar for those.
29208
29209 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
29210
29211         * XplatUIX11.cs: 
29212           - Added method to get AbsoluteGeometry(); currently unused, but might
29213             be used in the future, if we try again to figure out toplevel
29214             coordinates with some more crappy window managers
29215           - Added FrameExtents() method to retrieve the WM set decoration size
29216           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
29217             to deal with at least KDE, FVWM and metacity (Fixes #77092)
29218         * Hwnd.cs: 
29219           - Added whacky_wm tracking var for metacity
29220           - Added logic to have default menu height if the actual menu height
29221             has not yet been calculated (part of fix for #77426)
29222         * Form.cs: Keep track whether client size has been set and re-set 
29223           it if a menu is added/removed afterwards (Fixes #77426)
29224
29225 2006-01-31  Jackson Harper  <jackson@ximian.com>
29226
29227         * Control.cs: When a new Site is set on the component attempt to
29228         pull the AmbientProperties from it.
29229
29230 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
29231
29232         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
29233           in the background of the owning form. Fixes #77332
29234
29235 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29236
29237         * MimeIcon.cs: Fix for #77409
29238
29239 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
29240
29241         * XplatUIX11GTK.cs: Initial import
29242
29243 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
29244
29245         * FixedSizeTextBox: fixes class signature
29246
29247 2006-01-30  Jackson Harper  <jackson@ximian.com>
29248
29249         * FixedSizeTextBox.cs: New internal class that represents a
29250         textBox that will not be scaled.
29251         * TreeView.cs:
29252         * ComboBox.cs:
29253         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
29254         standard TextBox.
29255                 
29256 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
29257
29258         * XplatUIX11.cs: Retrieve default screen number instead of
29259           assuming 0. Attempted fix for #77318
29260
29261 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
29262
29263         * XplatUIWin32.cs: 
29264           - GetWindowPos: When a window is parented by FosterParent, use 
29265             the desktop instead of FosterParent as the base to get coordinates
29266           - CreateWindow: Don't make FosterParent the parent window for Popups
29267             if we don't want a taskbar entry, Popups automatically don't get one
29268         * Hwnd.cs: Need to call remove to actually remove the key from the
29269           hash table
29270
29271 2006-01-30  Mike Kestner  <mkestner@novell.com>
29272
29273         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
29274
29275 2006-01-30  Jackson Harper  <jackson@ximian.com>
29276
29277         * TreeView.cs:
29278         * TreeNode.cs: Raise events no matter how the treenode is
29279         checked. Patch by Don Edvalson.
29280
29281 2006-01-30  Jackson Harper  <jackson@ximian.com>
29282
29283         * TreeNode.cs: Signature fix.
29284
29285 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
29286
29287         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
29288
29289 2006-01-20  Mike Kestner  <mkestner@novell.com>
29290
29291         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
29292         event forwarding when menus are active.
29293         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
29294         Most of the patch is pdb's with a little rework.
29295
29296 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29297
29298         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
29299           Removed GetMenuDC and ReleaseMenuDC methods; replaced
29300           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
29301         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
29302         * InternalWindowManager.cs: Added use of PaintEventStart/End to
29303           handling of WM_NCPAINT message, now passing the PaintEventArgs to
29304           the PaintWindowDecorations method
29305         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
29306         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
29307         * MenuAPI.cs: Made tracker window invisible
29308         * XplatUIWin32.cs:
29309           - Removed GetMenuDC and ReleaseMenuDC methods
29310           - Implemented the client=false path for PaintEventStart and
29311             PaintEventEnd
29312
29313 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29314
29315         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
29316         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
29317           styles
29318         * Form.cs: 
29319           - MaximizeBox, MinimizeBox: Recreate the handle when setting
29320             the style
29321           - CreateParams: Reworked the styles to match MS look'n'feel,
29322             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
29323             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
29324
29325 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
29326
29327         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
29328           window is not mapped, since otherwise every form that's being 
29329           created is considered minimized, which is wrong.
29330         * Form.cs: Catching the exception and returning our internal value
29331           instead
29332
29333 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
29334
29335         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
29336           SetWindowMinMax() to have means to tell the driver about the minimum,
29337           maximum and maximized state window sizes. (Part of the fix for #76485)
29338         * Form.cs:
29339           - Implemented tracking of minimum and maximum window size, now calling
29340             new SetWindowMinMax() driver method to tell the driver (Part of the
29341             fix for #76485)
29342           - Finished handling of WM_GETMINMAXINFO method, now setting all values
29343             (Completes fix for #76485)
29344           - Calling new SetWindowMinMax driver method when the handle for a 
29345             form is created, to make sure the driver knows about it even if
29346             the values have been set before the window was created
29347           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
29348             to avoid messing up our anchoring calculations (partial fix
29349             for #77355)
29350         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
29351         * XplatUIX11.cs:
29352           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
29353           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
29354             (and presumably other freedesktop.org compliant WMs). Left the
29355             assumption unmapped=minimized, needed for SetVisible to work.
29356           - Now setting the window state when creating windows
29357           - Fixed SetVisible to consider/set the window state when mapping
29358             a Form. We cannot set the state before it's mapped, and we cannot
29359             use Form.WindowState once it's mapped (since it would ask the
29360             driver and get 'normal'. Therefore, we grab the state before
29361             mapping, map, and then set state.
29362           - Implmemented SetWindowMinMax method; Metacity does not seem to
29363             honor the ZoomHints, though.
29364         * XplatUIWin32.cs:
29365           - Removed MINMAXINFO (moved to XplatUIStructs)
29366           - Added SetWindowMinMax stub (on Win32 the only way to set that
29367             information is in response to the WM_GETMINMAXINFO message, which
29368             is handled in Form.cs)
29369           - Added logic to SetVisible to set the proper window state when a 
29370             form is made visible (fixes #75720)
29371
29372 2006-01-26  Jackson Harper  <jackson@ximian.com>
29373
29374         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
29375         same way we handle them with Invoke.
29376
29377 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
29378
29379         * Form.cs:
29380           - Added tracking of window state so CreateParams can return
29381             the appropriate style
29382           - Moved setting of WS_CAPTION style in CreateParams to allow
29383             styles without caption
29384         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
29385           control if the TextBox property is accessed. Fixes #77345
29386         * Control.cs:
29387           - get_Created: now uses is_disposed and is_created to determine
29388             return value (suggested by Jackson)
29389           - CreateHandle: No longer exits if the handle is being recreated
29390           - RecreateHandle: If the handle is not yet created call the 
29391             appropriate method to create either control or handle. If the
29392             control is already created CreateHandle will simply exit instead
29393             of just creating the handle
29394         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
29395           now SendMessage WM_DESTROY directly to the control when DestroyWindow
29396           is called.
29397         * XplatUIX11.cs: 
29398           - When DestroyWindow is called, instead of waiting for the 
29399             DestroyNotification from X11, we directly post it to the WndProc
29400             and immediately dispose the hwnd object.
29401             Same applies to DestroyChildWindows, and this obsoletes the
29402             expose_pending tracking. Contrary to Win32 behaviour we destroy our
29403             child windows before our own, to avoid X11 errors.
29404           - Removed the direct sending of WM_PAINT on UpdateWindow
29405         * XplatUIWin32.cs:
29406           - Reworked DoEvents and GetMessage to allow access to internal queue
29407             even when trying non-blocking access to the queue.  Fixes #77335. 
29408             Based on a patch suggestion by Don Edvalson. The new private
29409             GetMessage can now also be used as a backend for a PeekMessage
29410             frontend version.
29411         * XplatUI.cs: Improved debug output for CreateWindow
29412
29413 2006-01-25  Jackson Harper  <jackson@ximian.com>
29414
29415         * Help.cs: Allow param to be null. Patch by Don Edvalson.
29416
29417 2006-01-24  Jackson Harper  <jackson@ximian.com>
29418
29419         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
29420         when we have a MaxDropItems lower then the selected index.
29421
29422 2006-01-24  Jackson Harper  <jackson@ximian.com>
29423
29424         * Control.cs: Don't allow selection of non visible controls, allow
29425         selection of controls without parents.
29426
29427 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29428
29429         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
29430         * DataGridDrawingLogic.cs: Add editing row only when is necessary
29431
29432 2006-01-23  Jackson Harper  <jackson@ximian.com>
29433
29434         * UpDownBase.cs: Make the textbox handle all the selection and
29435         tabbing. This fixes tabing to updown controls.
29436
29437 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
29438
29439         * TextBoxBase.cs: fixes exception thown the object was null
29440
29441 2006-01-23  Jackson Harper  <jackson@ximian.com>
29442
29443         * ButtonBase.cs: Just use the base CreateParams. They set
29444         visibility and enabled correctly.
29445         * ComboBox.cs:
29446         * TrackBar.cs:
29447         * MonthCalendar.cs: Lets let the base set as much of the
29448         createparams as possible so we don't have duplicate code all over
29449         the place.
29450
29451 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
29452
29453         * ThemeGtk.cs: Added TrackBar and some experimental code to
29454           get double buffering back
29455
29456 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
29457
29458         * DataGrid.cs: Allows row number set internally higher than the last
29459         when creating a new row. Restores the editing functionality.
29460
29461 2006-01-20  Mike Kestner  <mkestner@novell.com>
29462
29463         * MimeIcon.cs: delay Image creation until the icons are accessed
29464         instead of creating 190 scaled images on GnomeHandler startup.
29465
29466 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
29467
29468         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
29469           first call base before processing the event. Fixes #77279
29470
29471 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
29472
29473         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
29474           that the stride for the GDI bitmap would match the stride of
29475           a DIB or a Cursor.
29476
29477 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
29478
29479         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
29480
29481 2006-01-19  Jackson Harper  <jackson@ximian.com>
29482
29483         * ComboBox.cs: Hookup the text controls keydown event so we get
29484         those when the text control has the focus.
29485
29486 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29487
29488         * Label.cs: Now using the base events instead of defining new ones;
29489           this allows us to just call the base properties without having to
29490           duplicate all base property logic 
29491
29492 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29493
29494         * Label.cs: A label by default is not a tabstop (Fixes one of our
29495           failing nunit tests)
29496
29497 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
29498
29499         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
29500         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
29501
29502 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
29503
29504         * Cursor.cs: Reimplemented creating cursor bitmaps without using
29505           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
29506           This fixes #77218
29507         * XplatUIWin32.cs: 
29508           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
29509             constructor creates images that can't be saved. Part of the fix
29510             for #76103
29511           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
29512           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
29513             bug fix for handling window state in forms properly)
29514
29515 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29516
29517         * ThemeGtk.cs: Simplify ScrollBar drawing
29518
29519 2006-01-18  Jackson Harper  <jackson@ximian.com>
29520
29521         * Splitter.cs: Set the default dock style for the splitter control
29522         in the constructor.
29523
29524 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29525
29526         * ThemeGtk.cs: Corrected StateType and ShadowType for
29527           gtk_paint_box
29528
29529 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29530
29531         * Control.cs: Make use of Theme.DoubleBufferingSupported
29532         * ThemeGtk.cs:
29533           - Added drawing for flat style buttons
29534           - Added ScrollBar drawing
29535
29536 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
29537
29538         * ThemeClearlooks.cs: Removed some unneeded code.
29539         * ThemeGtk.cs: First part of ThemeGtk enhancements.
29540
29541 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29542
29543         * LinkLabel.cs: We need to update the hover drawing when
29544           leaving the control as well.
29545
29546 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
29547
29548         * DataGrid.cs: Clicking on non empty areas in the columns
29549            area was giving an exception
29550
29551 2006-01-17  Jackson Harper  <jackson@ximian.com>
29552
29553         * ThemeWin32Classic.cs:
29554         * ListView.cs: Do not draw/clip the headers when the header style
29555         is None.
29556
29557 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29558
29559         * DataGrid.cs: Fixes 77260
29560         
29561 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
29562
29563         * DataGrid.cs: Clicking on a column on a empty grid was giving
29564           an exception
29565
29566 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
29567
29568         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
29569           or any keypress will crash the grid.
29570
29571 2006-01-17  Mike Kestner  <mkestner@novell.com>
29572
29573         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
29574         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
29575         invisible/previously-visible items.
29576         [Fixes #76909]
29577
29578 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
29579
29580         * ThemeClearlooks.cs:
29581         - Added CL_Draw_Button method; now other theme controls that are 
29582           not derived from button or do not have a button can draw buttons
29583           too
29584         - Updated ComboBox drawing
29585         - Beautified RadioButton drawing
29586         - Corrected drawing of bottom and left tabs
29587         - Beautified DateTimePicker and MonthCalendar
29588         - Added CPDrawButton and CPDrawRadioButton
29589
29590 2006-01-16  Jackson Harper  <jackson@ximian.com>
29591
29592         * ComboBox.cs: Set the initial value of the scrollbar to the
29593         current index. Reduce the numbers of refreshs and IndexOfs called.
29594
29595 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
29596
29597         * FileDialog.cs: When the file listview is focused hitting the
29598           backspace key moves the fileview to the parent directory
29599
29600 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29601
29602         * Form.cs: 
29603           - Added RecreateHandle call when changing taskbar visibility to 
29604             trigger reparenting in Win32 driver (Fixes #75719)
29605           - If a window has minimize or maximize buttons, it cannot have
29606             a help button
29607         * XplatUIWin32.cs:
29608           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
29609             the toplevel form with FosterParent (A toolwindow not on the
29610             taskbar) (Fixes #75719)
29611           - Made FosterParent a toolwindow
29612
29613 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29614
29615         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
29616
29617 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29618
29619         * ToolTip.cs: If SetToolTip is called from a control and the mouse
29620           is currently over that control, make sure that tooltip_window.Text
29621           gets updated
29622
29623 2006-01-13  Mike Kestner  <mkestner@novell.com>
29624
29625         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
29626
29627 2006-01-13  Jackson Harper  <jackson@ximian.com>
29628
29629         * TreeView.cs: On MS GetNodeAt never actually factors in the X
29630         value passed.  Also redraw the selected node when we recieve
29631         focus, so tabbing between trees works correctly.
29632
29633 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
29634
29635         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
29636           ~/.gconf/%gconf-tree.xml, so use
29637           .gconf/desktop/gnome/interface/%gconf.xml
29638
29639 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29640
29641         * TextControl.cs: Draw text in gray if control is disabled
29642
29643 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
29644
29645         * TreeView.cs: Draw the focus rectangle outside the highlight, to
29646           make sure it's always visible. Fixes #76680.
29647
29648 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
29649
29650         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
29651
29652 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
29653
29654         * PageSetupDialog.cs: Added.
29655         * PrintDialog.cs: Attributes.
29656         * PrintPreviewControl.cs: Updates.
29657         * PrintPreviewDialog.cs: Updates.
29658         
29659 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29660
29661         * Control.cs: Undid my selection check fix, since it's not needed
29662         * TextBoxBase.cs:
29663           - Now considering the presence of hscroll/vscroll when sizing
29664             vscroll/hscroll respectively. Fixed bug #77077
29665           - Added Left/Up/Down/Right to IsInputKey list to prevent
29666             ContainerControl from stealing them. This fixes what I broke
29667             with my last checkin.
29668
29669 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
29670
29671         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
29672           I finally understand how the property can be set without a setter :-)
29673
29674 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29675
29676         * Application.cs:
29677           - Switched RunLoop to use static Message.Create to create a 
29678             Message object
29679           - Added PreProcessMessage call in runloop for keyboard events; this
29680             is part of the fix for #77219, I overlooked this originally in the
29681             MSDN doc for PreProcessMessage
29682         * Control.cs:
29683           - Removed call to PreProcessMessage from handling of keyboard 
29684             messages; it's supposed to be done in the message pump
29685           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
29686             per MSDN documentation.
29687           - IsInputChar: All chars are input chars by default; removed the 
29688             parent calling chain, MS does not document that
29689           - PreProcessMessage: If IsInputChar is true, we want to return false
29690             to allow dispatching of the message
29691           - When selecting the next control, now also check that we're not
29692             selecting ourselves again and therefore return a false positive.
29693         * TextBoxBase.cs:
29694           - Tried to match return values for IsInputKey and ProcessDialogKey
29695             to what MS returns; moved processing of our special keys outside
29696             ProcessDialogKey since MS does not seem to return true on those.
29697           - Moved code that previously was in ProcessDialogKey into new private
29698             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
29699           - Reworked handling of WM_CHAR to not have to duplicate code from
29700             Control.cs anymore, instead we simply call down to base.
29701            
29702 2006-01-12  Jackson Harper  <jackson@ximian.com>
29703
29704         * ComboBox.cs: We always need to refresh the text area when
29705         EndUpdate is called. Fixes the combobox in the file dialog.
29706         * Control.cs: Don't create the creator_thread until the controls
29707         handle is created.  Also in InvokeRequired we check if the
29708         creator_thread is null. This gives the effect of InvokeRequired
29709         returning true if the controls handle is not created yet, and
29710         matches MS.
29711
29712 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29713
29714         * XplatUI.cs:
29715           - Added StartLoop() driver method. This is used to allow drivers to
29716             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
29717             loop for a particular thread
29718           - Added EndLoop() driver method. This is called once the message
29719             pump for the thread is shut down
29720           - Added SupportsTransparency method to allow the driver to indicate
29721             opacity support for windows
29722         * Form.cs:
29723           - Removed TODO attribute, completed AllowTransparency property
29724           - Added documented logic to Opacity
29725         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
29726           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
29727           versions of CompatibleTextRendering
29728         * X11Structs.cs: Added opacity atom to our atom enumeration
29729         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
29730           of a form might be set before it's reparented by the WM, and we need
29731           the opacity value without calling up to Form)
29732         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
29733           SupportsTransparency() driver methods
29734         * Application.cs: Now calling StartLoop and EndLoop driver methods
29735         * XplatUIX11.cs:
29736           - Added opacity atom registration
29737           - Added StartLoop()/EndLoop() methods. They're empty right now but
29738             will need to get implemented when we switch to a per-thread queue
29739           - Implemented SupportsTransparency() method
29740           - Implemented SetWindowTransparency() method
29741           - Added support for setting the opacity value when a window is
29742             reparented (since the opacity needs to be set on the WM frame)
29743         * XplatUIOSX.cs, XplatUIWin32.cs:
29744           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
29745
29746 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29747
29748         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
29749
29750 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
29751
29752         * FileDialog.cs: Added ToolTip for MWFFileView
29753         * MimeIcon.cs: Rewrote GnomeHandler.
29754           - Get currently used gnome icon theme from
29755             ($HOME)/.gconf/%gconf-tree.xml
29756           - Make use of inherited icon themes
29757           - Support SVG icon themes like Tango via librsvg
29758
29759 2006-01-12  Miguel de Icaza  <miguel@novell.com>
29760
29761         Revert's Jackson's revert which broke 2.0 builds.   Fix both
29762         builds. 
29763         
29764         * Application.cs: Move the use_compatible_text_rendering outside
29765         the NET_2_0 define.  If we ever need to use the
29766         use_compatible_text_rendering on the individual controls they will
29767         access the variable from the common shared code paths.
29768
29769 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
29770
29771         * XplatUI.cs:
29772           - Added more granular debug options
29773           - Added method to print both window text and id
29774           - Switched debug output to use new Window() debug method
29775           - Added IsEnabled() driver method
29776           - Added EnableWindow() driver method
29777         * Form.cs:
29778           - Removed end_modal; no longer needed, new loop handles termination
29779             via 'closing' variable
29780           - If form is modal, setting DialogResult will now initiate loop
29781             termination via 'closing' variable
29782           - Added support for is_enabled/WS_DISABLED to CreateParams
29783           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
29784             does all the work
29785           - Removed code that's now in RunLoop from ShowDialog()
29786           - Added various documented sanity checks to ShowDialog()
29787           - Added handling of WM_DESTROY message; we set 'closing' on getting
29788             the message to indicate the message pump to terminate
29789           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
29790             send by the Application.ExitThread method. (We send the message
29791             to destroy the window after all other events have been
29792             processed through the queue, instead of destroying the handle 
29793             directly)
29794           - Moved code from Close() method to WM_CLOSE handler; added logic
29795             to only send close-related events if the form is not displayed
29796             modal
29797         * Splitter.cs (..ctor): Fixed typo in resource name
29798         * Control.cs:
29799           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
29800             brush now
29801           - set_Cursor: Now only setting calling into XplatUI if the handle for
29802             the control is already created; this avoids implict handle creation
29803             or crashes if it's not created
29804           - set_Enabled: Now setting the enabled state via the new driver method
29805             instead of just tracking it
29806           - CreateParams: Added logic to set WS_DISABLED based on enabled state
29807           - CreateControl: Reordered event firing and method calls to more
29808             closely fire events in the order MS does. Now setting the
29809             enabled state in the driver when creating the control.
29810           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
29811             match MS order
29812         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
29813           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
29814         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
29815         * Hwnd.cs:
29816           - Added tracking of window enabled state (get_Enabled/set_Enabled)
29817           - Added EnabledHwnd property to easily allow a driver to find the
29818             handle of the first enabled window in the parent chain (this is
29819             used by drivers to pass up input events of disabled windows)
29820         * XplatUIDriver.cs: Added IsEnabled() method
29821         * Application.cs:
29822           - Removed crude and obsolete exiting tracking variable
29823           - Removed internal ModalRun(); replaced by RunLoop()
29824           - Implemented private CloseForms() method to allow closing all 
29825             windows owned by a particular (or all) threads
29826           - Exit() now properly closes all windows without forcing the message
29827             pump to quit
29828           - Removed obsolete InternalExit() method
29829           - Changed Run() methods to use new RunLoop() message pump
29830           - Implemented new RunLoop() method for both modal and non-modal forms
29831         * CommonDialog.cs:
29832           - get_CreateParams: Added setting of WS_DISABLED
29833           - Simplified ShowDialog(); now all the work is done in RunLoop(),
29834             invoked via Form.ShowDialog()
29835         * NativeWindow.cs: We don't remove the window from the collection when
29836           the handle is destroyed; there might still be messages for it in the
29837           queue (mainly the resulting WM_DESTROY); instead it will be removed
29838           when Control calls InvalidateHandle in the WM_DESTROY handler
29839         * XplatUIX11.cs:
29840           - CreateWindow: Added logic to handle the WS_DISABLED window style
29841           - EnableWindow: Implemented based on Hwnd.Enabled
29842           - GetMessage: Reset PostQuitState so the method can be called again
29843           - Implemented support for disabled windows (passing messages to the
29844             first enabled parent) in handling all input messages
29845           - Added optimizations for handling Expose events
29846           - Implemeted new driver method IsEnabled()
29847           - Now always resetting paint pending tracking vars when we start paint
29848           - Re-implemented UpdateWindow via just sending a WM_PAINT message
29849         * XplatUIOSX.cs: Added IsEnabled method stub
29850         * XplatUIWin32.cs: Implemented new IsEnabled() method
29851
29852 2006-01-11  Jackson Harper  <jackson@ximian.com>
29853
29854         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29855         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
29856         variables a little.
29857         * ColorDialog.cs: Clear out the old form before adding the new
29858         panel.  
29859
29860 2006-01-11  Jackson Harper  <jackson@ximian.com>
29861
29862         * X11Dnd.cs: Make sure to add all the text formats when adding
29863         strings to the data object.
29864         * TreeNodeCollection.cs: When adding to a sorted tree we need to
29865         do some redrawing too.  Also change the UpdateNode to an
29866         UpdateBelow so the newly added node gets painted.
29867         
29868 2006-01-11  Miguel de Icaza  <miguel@novell.com>
29869
29870         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
29871         LinkLabel.cs, PropertyGrid.cs: Implement the
29872         UseCompatibleTextRendering property for 2.x
29873
29874         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
29875
29876 2006-01-11  Jackson Harper  <jackson@ximian.com>
29877
29878         * TreeView.cs: Use the property for setting the selected node so
29879         the correct events get raised.
29880         * TreeNode.cs: Update the tree when the fore/back colours of a
29881         node are set.
29882
29883 2006-01-10  Jackson Harper  <jackson@ximian.com>
29884
29885         * TreeView.cs: Allow setting SelectedNode to null.
29886
29887 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29888
29889         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
29890
29891 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29892
29893         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
29894
29895 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29896
29897         * PrintDialog.cs: Added attributes and set default property values.
29898
29899 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29900
29901         * PrintControllerWithStatusDialog.cs: 
29902         Added PrintControllerWithStatusDialog.
29903
29904 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29905
29906         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
29907         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
29908
29909 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
29910
29911         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
29912
29913 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
29914
29915         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
29916         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
29917
29918 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29919
29920         * MimeIcon.cs: Added internal class SVGUtil.
29921
29922 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
29923
29924         * FileDialog.cs: Don't crash if there are two files with the
29925           same name but different locations.
29926
29927 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
29928
29929         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
29930         dates across multiple month grids. Used to not highlight entire 
29931         month, but does now.
29932         
29933 2006-01-06  Jackson Harper  <jackson@ximian.com>
29934
29935         * MonthCalendar.cs: Removed DoEvents call to prevent a running
29936         message loop. Change timer intervals to numbers that seem more
29937         natural.
29938
29939 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
29940
29941         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
29942           object for location info since screen object is now implemented.
29943
29944 2006-01-05  Jackson Harper  <jackson@ximian.com>
29945
29946         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
29947         * AsyncMethodResult.cs: We no longer use a WeakReference for the
29948         AsyncMethodResult, this is because we ALWAYS want the
29949         ManualResetEvent to get set.
29950         * Control.cs: When disposing use an async invoke to call shutdown
29951         code, so that thigns don't block on the finalizer thread.  Also
29952         check if we even have a message loop before trying to send
29953         messages, if we don't then don't bother sending messages.
29954         - No more weak references for async methods
29955         * XplatUIDriver.cs: No more weak references for async methods.
29956
29957 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29958
29959         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
29960           returns two FontFamily with the same name
29961
29962 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29963
29964         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
29965           drawing disabled text. Instead using the ColorGrayText color
29966
29967 2006-01-04  Jackson Harper  <jackson@ximian.com>
29968
29969         * TreeNode.cs: redraw the node when its image index is changed.
29970
29971 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
29972
29973         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
29974           time I checked there are no others like it.
29975
29976 2006-01-04  Jackson Harper  <jackson@ximian.com>
29977
29978         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
29979         this gives the behavoir I was looking for.
29980         * Control.cs: Special case Invoking EventHandlers, this matches MS
29981         and fixes part of bug #76326.
29982
29983 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29984
29985         * ThemeClearlooks.cs, FileDialog.cs:
29986           - Reflect the latest Theme class changes
29987           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
29988             with DateTime
29989             
29990 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
29991
29992         * Theme.cs: Cache UI resource images and resize them if needed
29993
29994 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
29995
29996         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
29997           is called. This fixes the crash in Nexxia when setting the font
29998           attributes in the chat. [However, RTF needs a look-over to make sure
29999           that all SelectionXXX methods handle the special case that selection
30000           is empty and therefore the change must be applied to all text starting
30001           at the cursor/selection start]
30002
30003 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
30004
30005         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30006           XplatUIOSX.cs: Added SendMessage and PostMessage methods
30007         * X11Keyboard.cs: Switched to new way of calling PostMessage
30008
30009 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
30010
30011         * Theme.cs: Added theme interface for images to allow the theme to
30012           control what images are used for things like FileDialog, MessageBox
30013           icons, etc.
30014         * MessageBox.cs: Now uses the new Theme icon/image interfaces
30015
30016 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
30017
30018         * FileDialog.cs:
30019           - Removed some dead code
30020           - Opening a recently used file does work now
30021           - Small UI enhancements
30022           - Refactoring
30023
30024 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30025
30026         * FileDialog.cs: Forgot too add __MonoCS__
30027
30028 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
30029
30030         * FileDialog.cs: We are able to read recently used files now let's
30031           go on and write them.
30032
30033 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
30034
30035         * FileDialog.cs: Breathe some life into "last open"/"recently used"
30036           button
30037         * MimeIcon.cs: Do a check for the top level media type also
30038
30039 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30040
30041         * ThemeClearlooks.cs:
30042           - Added CPDrawStringDisabled
30043           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
30044             some chars if the text doesn't fit into text_rect
30045           - DrawListViewItem: If View = View.LargeIcon center the image;
30046             rewrote the drawing of ListViewItem.Text if View = 
30047             View.LargeIcon
30048
30049 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
30050
30051         * MimeIcon.cs: Use default KDE icon theme if there is no
30052           "48x48" directory for the current icon theme, fixes #77114
30053         * Mime.cs: Disable not working and actually not used code. 
30054         * ThemeWin32Classic.cs:
30055           - Replace "new SolidBrush" in GetControlBackBrush and
30056             GetControlForeBrush with ResPool.GetSolidBrush
30057           - Changed DrawListViewItem from private to protected virtual
30058         * FileDialog.cs:
30059           - Added form.MaximizeBox = true
30060           - Don't throw an exception if there is a broken symbolic link
30061
30062 2005-12-23  Jackson Harper  <jackson@ximian.com>
30063
30064         * TabControl.cs: Give the panels focus, keyboard navigation is
30065         fixed so this works correctly now.
30066         - We need these key events also.
30067         * ToolBar.cs: Remove some of the poor mans double buffering.
30068         
30069 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
30070
30071         * ComboBox.cs: The internal TextBox now returns the focus.
30072
30073 2005-12-23  Jackson Harper  <jackson@ximian.com>
30074
30075         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
30076
30077 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30078
30079         * Control.cs: Removed debug code
30080         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
30081           implicit children
30082
30083 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
30084
30085         * Control.cs: When creating the control, update the Z-order after
30086           all it's children are created, too. (Fixes nexxia not showing
30087           picturebox bug)
30088
30089 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
30090
30091         * Control.cs: Do not update the anchoring distances if layout is
30092           suspended, instead do it once layout is resumed
30093
30094 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
30095
30096         * Control.cs: 
30097           - After many hours of debugging, for both Jackson and
30098             myself, it turns out that it helps to set the parent of a control
30099             if you want to actually see it onscreen. In the spirit of that
30100             discovery, we're now setting the parent of the control and
30101             it's children when the control's handle is created. This fix
30102             will make Lutz Roeder's Reflector run happily. 
30103           - now just creating the handle instead of the whole control when
30104             getting a graphics context for the control.
30105
30106 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30107
30108         * ScrollableControl.cs: When calculating the canvas, don't consider
30109           the scrollbar widths. Instead, predict if horizontal scrollbar
30110           will affect canvas when deciding on vertical display and vice versa.
30111
30112 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
30113
30114         * RichTextBox.cs: Set default RTF font for documents that don't
30115           have a font table (Fixes #77076)
30116
30117 2005-12-22  Jackson Harper  <jackson@ximian.com>
30118
30119         * TextBoxBase.cs: It's difficult to do, but you can have an empty
30120         clipboard. This prevents a NullRef in that case.
30121         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
30122         clipboard. PRIMARY is for the currently selected text only. (We
30123         should implement PRIMARY at some point.
30124
30125 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30126
30127         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
30128           a Unicode function with a structure that was defined in Ansi way.
30129           This fixes #76942.
30130
30131 2005-12-21  Jackson Harper  <jackson@ximian.com>
30132
30133         * StatusBar.cs: Statusbar handles its fore/back colours on it's
30134         on. Because thats how it rolls. (and this avoids it using ambient
30135         colours).
30136         * ThemeWin32Classic.cs: Use the proper back color for filling.
30137         * Menu.cs: Use the system menu bar color for drawing menu
30138         bars. Using the window back color will bring ambient colours into
30139         the picture.
30140
30141 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
30142
30143         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
30144           Bitmaps were created and not disposed.
30145
30146 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30147
30148         * Control.cs (CreateControl): Don't do anything if the control is
30149           already created, otherwise we'd fire the OnCreated event more than
30150           once
30151
30152 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30153
30154         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
30155           will always match. Instead return -1. Fixes #76464.
30156
30157 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
30158
30159         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
30160           neither the beginning nor the end of the line (Fixes bug #76479)
30161
30162 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
30163
30164         * Control.cs:
30165           - ControlNativeWindow.ControlFromHandle(): Now handling situation
30166             where handle is invalid
30167           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
30168             instead of slower linear search
30169         * NativeWindow.cs: Don't remove the window from the hashtable until
30170           after the driver has destroyed it (since the driver might use
30171           Control.FromHandle to lookup the control object
30172         * Hwnd.cs: Added DestroyPending property to track if a window is 
30173           already destroyed as far as the driver is concerned and only hasn't
30174           yet notified the control
30175         * XplatUIX11.cs:
30176           - Activate(): Check if the window is still valid before using the 
30177             handle
30178           - Implemented DestroyChildWindow() method to mark child windows as
30179             destroyed when a window is destroyed. This prevents situations 
30180             where we might call an X method based on queued events for a
30181             window that already has been destroyed but we haven't yet pulled
30182             the destroy method from the queue.
30183           - Added a call to the new DestroyChildWindow() method to the drivers
30184             DestroyWindow code. Also now marking the destroyed window itself
30185             as pending
30186
30187 2005-12-20  Jackson Harper  <jackson@ximian.com>
30188
30189         * StatusBar.cs:
30190         * StatusBarPanel.cs: Don't calculate panel sizes on draw
30191         anymore. Just do them when needed, also track the rects of panels
30192         so that we can optimize refreshing more in the future.
30193
30194 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
30195
30196         * ColorDialog.cs: Fixed focus drawing in small color controls
30197
30198 2005-12-19  Jackson Harper  <jackson@ximian.com>
30199
30200         * InternalWindowManager.cs:
30201         * MdiWindowManager.cs: Cleanup some coordinate system changes so
30202         moving windows works properly.
30203
30204 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
30205
30206         * Control.cs: 
30207           - Removed call to InitLayout() from SetBoundsCore(); doc says
30208             it's only called when a control is added to a container
30209           - Split InitLayout logic, moved to separate UpdateDistances() method
30210             since we need to perform those calculations more often than just
30211             when adding the control to a container. (Needed to fix #77022)
30212           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
30213           - Reduced the OnBindingContextChanged events count, don't send them
30214             unless the control is created, we still aren't totally matching
30215             MS, but I can't quite figure out some of their rules
30216
30217 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30218
30219         * ThemeClearlooks.cs: Corrected distance between ProgressBar
30220           stripes
30221
30222 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30223
30224         * ThemeClearlooks.cs:
30225           - Updated ProgressBar drawing
30226           - Corrected drawing of ScrollBars and scroll buttons
30227           - Some temporary fixes for minor pixel artefacts
30228
30229 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
30230
30231         * Control.cs:
30232           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
30233             cause events to be sent in the same order as MS does.
30234           - Added ChangeParent() method to trigger various OnXXXChanged events
30235             that need to be fired when a parent changes (This is a reworking
30236             of the patch from r54254, with the X11 errors fixed)
30237           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
30238             since on MS we get OnLayoutChanged events when calling Clear()
30239           - Changed Enabled property to consider parent state as well, if a
30240             parent is not enabled, the control will not be either
30241           - Changed Parent property to simply call Controls.Add() since that
30242             now does all the work required, this way we avoid code duplication
30243           - Threw in a few OnBindingsContextChanged calls to try and match
30244             when MS sends them. We seem to send a few too many, though.
30245           - Added call to CreateControl when adding the control to a parent.
30246             We were never calling CreateControl. Still needs some work, in
30247             some places we treat HandleCreated and ControlCreated as equal, 
30248             which is wrong
30249           - Removed obsolete commented out code from UpdateZOrder()
30250
30251 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
30252
30253         * ThemeClearlooks.cs: Updated TrackBar drawing.
30254
30255 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30256
30257         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
30258
30259 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
30260
30261         * FileDialog.cs: Add the Help button and the open readonly
30262           checkbox only if needed
30263
30264 2005-12-16  Jackson Harper  <jackson@ximian.com>
30265
30266         * Control.cs: Make sure we have an active menu before trying to
30267         process commands on it. Prevents menu-less forms from crashing
30268         when Alt is pressed.
30269         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
30270         Dieter Bremes.
30271         * RichTextBox.cs: Expand statement to help out gmcs and fix the
30272         2.0 build.
30273
30274 2005-12-16  Jackson Harper  <jackson@ximian.com>
30275
30276         * InternalWindowManager.cs: Don't translate tool windows screen
30277         coordinates. This fixes windows 'bouncing' around when being moved.
30278
30279 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30280
30281         * TextBoxBase.cs:
30282           - MaxLength now treats 2^31-1 equal to unlimited length (this is
30283             not quite MS compatible, MS uses that number only for single line
30284             and 2^32-1 for multi-line, but I figure it won't hurt keeping
30285             the limit at 2GB)
30286           - Now enforcing the MaxLength limit when entering characters
30287           - Added argument to internal Paste() method to track if it's called
30288             from programatically or via keyboard, since keyboard driven pastes
30289             need to enforce max-length
30290           - Added logic to Paste to only paste as many chars as MaxLength 
30291             allows
30292         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
30293         * TextControl.cs:
30294           - Added Length property to return number of characters in document
30295           - Added private CharCount property which only tracks actual chars
30296             in the document (no linefeeds) and fires event when CharCount
30297             changes
30298           - Added tracking of character count to all methods that alter it
30299           - Added LengthChanged event to allow applications to subscribe
30300             to any changes to the document
30301
30302 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
30303
30304         * TextBox.cs: 
30305           - Removed local password_char field (moved to TextBoxBase)
30306           - Now setting the document's password var when password is
30307             set
30308         * TextBoxBase.cs:
30309           - Added password_char field (needed here so MultiLine can
30310             access it)
30311           - Added logic to MultiLine property setter to set the document's
30312             variable when password display is allowed
30313           - Removed debug code and made some debug code conditional
30314         * TextControl.cs:
30315           - Added RecalculatePasswordLine() method to handle special password
30316             char only lines
30317           - Added PasswordChar property, also added related tracking vars
30318           - Draw() method now uses local text var for grabbing text to draw,
30319             this var is set to line.text unless we're doing password display,
30320             then it is set to the pre-generated all-password-chars line
30321           - Added calling RecalculatePasswordLine() method for password lines
30322
30323 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30324
30325         * Hwnd.cs: 
30326           - Added Reparented property to allow tracking of Window Manager
30327             reparenting actions (which affect X/Y calculations of toplevel 
30328             windows)
30329           - Made ToString() print window handles in hex
30330         * XplatUIX11.cs:
30331           - AddConfigureNotify(): Now uses reparented state off Hwnd to
30332             determine if X/Y needs offsetting
30333           - AddConfigureNotify(): Fixed offset calculations
30334           - Now adds ReparentNotify messages into the queue
30335           - Now processes ReparentNotify messages and causes a 
30336             WM_WINDOWPOSCHANGED message to be sent upstream if a window
30337             is reparented (as most likely it's X/Y coordinates are changed
30338             due to that)
30339
30340 2005-12-14  Jackson Harper  <jackson@ximian.com>
30341
30342         * XplatUIX11.cs: Tool windows still need to respek focus.
30343
30344 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
30345
30346         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
30347           have a working release
30348
30349 2005-12-13  Jackson Harper  <jackson@ximian.com>
30350
30351         * Form.cs: Update styles after setting the border style regardless
30352         of whether or not the window is using a window manager.
30353
30354 2005-12-13  Jackson Harper  <jackson@ximian.com>
30355
30356         * Form.cs: We now hook into an internal window manager instead of just an
30357         MDI subsystem, this is so we can have properly behaving tool windows.
30358         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
30359         * InternalWindowManager.cs: New internal class that acts as a
30360         window manager for tool windows and as a base for mdi windows.
30361         * MdiWindowManager.cs: New class that acts as a window manager for
30362         mdi windows.
30363
30364 2005-12-12  Jackson Harper  <jackson@ximian.com>
30365
30366         * Control.cs: Updates so we match behavoir for for implicit
30367         controls. Fixes explosions in MDI.
30368
30369 2005-12-12  Jackson Harper  <jackson@ximian.com>
30370
30371         * Control.cs: Implement Invalidate (Region).
30372
30373 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
30374
30375         * Control.cs: 
30376           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
30377             the same events as MS does. MS fires events for each property 
30378             except, for unknown reasons, Cursor, when the control is reparented. 
30379             I can't seem to totally match add/remove since MS also fires some 
30380             VisibleChanged events, which makes no sense. Consolidated the
30381             parenting code into a separate method so it can be called from
30382             both Add and Remove. set_Parent no longer needs any special logic
30383             as it calls the parent's add method which implicitly fires
30384             all events
30385           - Removed some obsolete code and debug output
30386           - Enabled state is inherited from parents, if this is enabled
30387
30388 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
30389
30390         * Form.cs: Removed commented out code
30391
30392 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
30393
30394         * Control.cs:
30395           - Added internal version of Invoke, with additional argument 
30396             indicating if we're calling it from a Dispose() handler. That
30397             way we can avoid BeginInvoke throwing an exception if we're
30398             calling for an already destroyed window.
30399           - Added a dispose argument to BeginInvokeInternal, and made the
30400             check if a valid window handle chain exists conditional on
30401             it not being a dispose call
30402           - Removed code in DestroyHandle to destroy our children. Since we
30403             now handle the WM_DESTROY message we will catch all our children
30404             being destroyed.
30405           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
30406         * Form.cs:
30407           - Added a field to track the application context of the form.
30408           - No need to set closing variable as response to WM_CLOSE, instead
30409             we destroy the window. We also call PostQuitMessage if the form
30410             has an application context (which makes it the main app form,
30411             which, when closed terminates the app)
30412         * XplatUI.cs:
30413           - Dropped Exit() method, it's naming was confusing
30414           - Added PostQuitMessage() which causes GetMessage to return false
30415             once the message queue is empty
30416         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
30417           PostQuitMessage()
30418         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
30419           no longer a valid XplatUI method, but left it in since it's used
30420           internally. Added empty PostQuitMessage() method.
30421         * MenuAPI.cs: Replaced call to Exit() with call to
30422           PostQuitMessage, even though this is probably no longer needed.
30423         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
30424         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
30425         * Application.cs:
30426           - Replaced call to XplatUI.Exit() with PostQuitMessage()
30427           - Removed old debug code that would call XplatUI for exception
30428             display, enabled standard exception handling (Still not enabled
30429             though, until NativeWindow's ExternalExceptionHandler define
30430             is removed
30431         * NativeWindow.cs:
30432           - Added internal method to allow control to update NativeWindow
30433             after a window has been destroyed
30434           - Added handling of already destroyed windows when calling i
30435             DestroyWindow
30436           - Added removal of handle from list on ReleaseHandle
30437         * XplatUIX11.cs:
30438           - Dropped GetMessageResult var and related code
30439           - Added PostQuitState to field to track if PostQuitMessage has been
30440             called
30441           - Dropped Exit() method
30442           - Added PostQuitMessage() method
30443           - GetMessage now will return false if PostQuitState is set and no
30444             more messages are in the queue.
30445           - Expose handler will no longer generate WM_PAINT messages if we are
30446             in PostQuitState since it's very likely any windows have already
30447             been destroyed, and since Hwnd won't get updated until we have
30448             processed the DestroyNotify we'd be causing X errors.
30449         
30450 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30451
30452         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
30453           Thanks to Mike for pointing out the err of my ways.
30454
30455 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30456
30457         * Control.cs(PreProcessMessage): Moved menu handling back, but
30458           after all other key handling, to match MS (who handles Menu in
30459           DefWndProc)
30460         * Menu.cs (WndProc): Removed my brainfart
30461
30462 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30463
30464         * Control.cs(PreProcessMessage): Removed special menu handling 
30465         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
30466
30467 2005-12-07  Mike Kestner  <mkestner@novell.com>
30468
30469         * Control.cs : special case SYSKEYUP so that we can adjust keynav
30470         state according in tracker.
30471         * Menu.cs : promote tracker field to base class and provide a tracker
30472         lookup capability.  Add/Remove shortcuts dynamically if the top menu
30473         has a tracker. Unparent items that are removed from the collection.
30474         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
30475         * Theme*.cs: add always_show_hotkeys field to support configurability
30476         of mnemonic display.  win32 doesn't show mnemonics until Alt is
30477         pressed.
30478
30479 2005-12-07  Jackson Harper  <jackson@ximian.com>
30480
30481         * MdiChildContext.cs: Use Control.ResetCursor.
30482         * Control.cs: ResetCursor needs to set the property so that the
30483         correct XplatUI call gets made.
30484
30485 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30486
30487         * Control.cs: More fixes to make our key events match MS. We
30488           were not setting the modifier state on KeyData, and we were
30489           not generating any events when Alt was pressed with a key
30490           since handling of WM_SYSxxx was missing for the OnKey methods.
30491
30492 2005-12-07  Jackson Harper  <jackson@ximian.com>
30493
30494         * MdiChildContext.cs: reenable the sizing code.
30495         - When the mouse leaves a window reset its cursor.
30496
30497 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30498
30499         * ThemeClearlooks.cs: Reflect latest Hwnd changes
30500
30501 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
30502
30503         * Hwnd.cs: Now using the theme 3d bordersize to calculate
30504           widths of Fixed3D borders
30505
30506 2005-12-07  Jackson Harper  <jackson@ximian.com>
30507
30508         * MdiClient.cs: Fix warnings. Earn Mike's love.
30509
30510 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
30511
30512         * ThemeClearlooks.cs:
30513           - Adjusted mouse over button color
30514           - Added first parts of CheckBox drawing
30515           - Added correct color for selected text background
30516           - Fixed ComboBox drawing
30517           - Added CPDrawBorder3D and CPDrawBorder
30518
30519 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30520
30521         * XplatUIX11.cs: Added call to XBell for AudibleAlert
30522
30523 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
30524
30525         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
30526           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
30527           alert users via sound. We could add an enum arg with different
30528           types of alerts in the future
30529
30530 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
30531
30532         * Control.cs: Fix behaviour problems pointed out by Mike
30533
30534 2005-12-05  Mike Kestner  <mkestner@novell.com>
30535
30536         * StatusBarPanel.cs: add Invalidate method and hook it into all the
30537         prop setters.  Calls parent.Refresh for now, but could be maybe be
30538         optimized with an internal method on StatusBar at some point.
30539         [Fixes #76513]
30540
30541 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
30542
30543         * RichTextBox.cs: Implemented get_SelectionColor
30544
30545 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
30546
30547         * ThemeClearlooks.cs:
30548           - Removed dead code
30549           - Draw black button border only if button is Form.AcceptButton
30550           - Draw correct button color for pressed RadioButton if the mouse 
30551             has entered the button
30552           - Updated ProgressBar drawing!
30553           - Updated CPDrawSizeGrip drawing
30554           - Updated StatusBarPanel drawing
30555
30556 2005-12-05  Mike Kestner  <mkestner@novell.com>
30557
30558         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
30559         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
30560
30561 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
30562
30563         * ThemeClearlooks.cs: Initial check-in, activate with
30564           export MONO_THEME=clearlooks
30565         * ThemeEngine.cs: Added ThemeClearlooks
30566
30567 2005-12-03  Mike Kestner  <mkestner@novell.com>
30568
30569         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
30570         [Fixes #76897]
30571
30572 2005-12-02  Jackson Harper  <jackson@ximian.com>
30573
30574         * Form.cs: If the child form has no menu the default main menu is
30575         used as the active menu.
30576
30577 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
30578
30579         * ListBox.cs: Check if any items exist before trying to resolve 
30580           coordinates into items
30581
30582 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30583
30584         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
30585           as the second color for the background hatch
30586
30587 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
30588
30589         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
30590         * RichTextBox.cs: FormatText position arguments are 1-based, now making
30591           sure that what we pass to FormatText is always 1-based. Fixes #76885
30592
30593 2005-11-29  Miguel de Icaza  <miguel@novell.com>
30594
30595         * NumericUpDown.cs (EndInit): When we are done initializing,
30596         reflect any updates on the UI.
30597
30598 2005-12-02  Jackson Harper  <jackson@ximian.com>
30599
30600         * ImplicitHScrollBar.cs:
30601         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
30602         their container controls.
30603         * TreeView.cs: Use the new implicit scrollbars.
30604
30605 2005-12-02  Jackson Harper  <jackson@ximian.com>
30606
30607         * TreeView.cs: Make top_node internal so the TreeNodeCollections
30608         can play with it.
30609         * TreeNodeCollection.cs: If we remove the topnode we need to
30610         update topnode to the next node in line.
30611         - When clearing nodes go through the same process as removing
30612         them, so they get depareneted and checked if they are top node.
30613
30614 2005-12-01  Jackson Harper  <jackson@ximian.com>
30615
30616         * TreeView.cs: When imagelists are used the image area is
30617         selectable as well as the text.
30618         - If there are no selected nodes select the first one.
30619         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
30620         so don't do it more then we need to.
30621
30622 2005-12-01  Jackson Harper  <jackson@ximian.com>
30623
30624         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
30625         that arrows can be scaled.
30626
30627 2005-12-01  Jackson Harper  <jackson@ximian.com>
30628
30629         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
30630         fail. Patch by Dieter Bremes
30631
30632 2005-11-30  Jackson Harper  <jackson@ximian.com>
30633
30634         * Form.cs: Property is 2.0 only
30635         * PrintDialog.cs: Signature fix.
30636
30637 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30638
30639         * TextControl.cs: 
30640           - No longer artificially moves text 2 pixels down (now that we have
30641             borders this is no longer needed)
30642           - Added calcs for left, hanging and right indent
30643
30644 2005-11-23  Mike Kestner  <mkestner@novell.com>
30645
30646         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
30647
30648 2005-11-30  Jackson Harper  <jackson@ximian.com>
30649
30650         * MdiChildContext.cs: Set the cloned menus forms, as these don't
30651         get cloned as part of CloneMenu ().
30652         * Menu.cs: Make sure the parent of the items get set correctly
30653         when they are added.  And the owners are notified of the changes.
30654         * Form.cs: Create an ActiveMenu property, so that when MDI is used
30655         we can change the menu being displayed/handled by the form without
30656         changing the menu assosciated with the form.
30657         - Don't let Mdi children draw/handle menus.
30658         
30659 2005-11-30  Jackson Harper  <jackson@ximian.com>
30660
30661         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
30662         a MenuChanged event. Just to make the API a little more
30663         consistent.
30664         * MainMenu.cs:
30665         * MenuItem.cs: Use the new OnMenuChanged
30666         * MdiChildContext.cs: Handle menu merging.
30667         * Form.cs: Implement MergedMenu.
30668         
30669 2005-11-30  Jackson Harper  <jackson@ximian.com>
30670
30671         * Menu.cs: We were misusing Add. Add goes behind the specified
30672         index according to the docs, and does not replace the specified
30673         index. So I added an Insert method.
30674
30675 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
30676
30677         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
30678           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
30679           is for Jackson
30680         * RichTextBox.cs: Added calls to base for DnD events
30681
30682 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
30683
30684         * TextControl.cs:
30685           - Fixed drag-selection related crash; style fixes
30686           - Implemented undo class
30687             o Implemented method to capture document state for specified
30688               range in document tree
30689             o Implemented method to restore captured document state
30690             o Implemented cursor tracking
30691             o Implemented basic undo stack
30692           - Added undo cursor tracking to methods altering cursor location
30693           - Added undo tracking to selection deletion (still missing
30694             other text-altering hookups)
30695         * RichTextBox.cs:
30696           - Added SelectionLength property
30697           - Implemented CanPaste()
30698           - Implemented Paste()
30699           - Added missing protected methods
30700           - Fixed RTF->Document conversion; now uses font index 0 and color 
30701             index 0 as the default font for the parsed text
30702           - Fixed RTF<->Document font size translation
30703           - Fixed RTF generation, now properly handles cross-tag boundaries
30704             for single line selection
30705           - No longer always appends blank line to generated RTF
30706           - Removed TODOs
30707           - Added missing attributes
30708           - Hooked up undo-related methods
30709         * TextBoxBase.cs:
30710           - Implemented Copy()
30711           - Implemented Paste()
30712           - Implemented Cut()
30713           - Fixed caret mis-behaviour on backspace across line-boundaries
30714
30715 2005-11-29  Jackson Harper  <jackson@ximian.com>
30716
30717         * MdiClient.cs: Add a method for activating mdi children. Very
30718         basic right now. I imagine someday it might need more girth.
30719         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
30720         children windows names are added to the menu item.
30721         * ThemeWin32Classic.cs: Draw the arrow if the item is an
30722         mdilist. This happens regardless of whether or not there are any
30723         mdi windows to see in the list, and according to my tests happens
30724         before the items are even added. Also happens if there isn't even
30725         an mdi client to get windows from.
30726
30727 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
30728
30729         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
30730         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
30731
30732 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
30733
30734         * DataGridTableStyle.cs:
30735           - Create always the styles for the missing columns even if they are
30736             provided by the user (not default table style)
30737         * DataGrid.cs:
30738           - Fixes bug 76770
30739           - Fixes SetDataBinding (always re-attach source)
30740           - Fixes SetNewDataSource (only clear styles if they are not for 
30741             this source)
30742          -  Expands OnTableStylesCollectionChanged to handle style refresh 
30743             and remove properly
30744
30745 2005-11-29  Jackson Harper  <jackson@ximian.com>
30746
30747         * FileDialog.cs: Implement missing bits, remove some dead
30748         code.
30749         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
30750         creation of the panel so that the options set on the dialog are
30751         seen when the panel is created.
30752         * TreeView.cs: raise a click when items are clicked.
30753         
30754 2005-11-29  Jackson Harper  <jackson@ximian.com>
30755
30756         * MdiClient.cs: Pass some signature methods through to base.
30757
30758 2005-11-28  Jackson Harper  <jackson@ximian.com>
30759
30760         * ListView.cs: Raise the click event when items are clicked.
30761
30762 2005-11-28  Jackson Harper  <jackson@ximian.com>
30763
30764         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
30765         a nullref.
30766
30767 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
30768
30769         * ThemeNice.cs: - Removed 1 pixel bitmaps
30770           - Use SmoothingMode.AntiAlias where it makes sense
30771             (ScrollButton arrow for example)
30772           - Enhanced Button focus drawing
30773           - Fixed ComboBox drawing (no artefacts anymore, focus
30774             rectangle is back again, reduced size of ComboButton, etc.)
30775           - Fixed RadioButton focus drawing for Appearence.Button
30776           - Slight ScrollButton redesign
30777           - Some LinearGradientBrush size fixes
30778           - GroupBoxes have now rounded edges
30779           - Fixed StatusBar drawing
30780
30781 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
30782
30783         * ThemeNice.cs: - Remove dead code
30784           - use correct background colors for menus, etc.
30785           - Fake pixel drawing with 1 pixel bitmaps
30786
30787 2005-11-24  Jackson Harper  <jackson@ximian.com>
30788
30789         * MdiClient.cs: Size the scrollbars when resizing the window.
30790         - Resize the maximized windows when the client is resized
30791         * Form.cs: Make the child context available
30792         
30793 2005-11-23  Jackson Harper  <jackson@ximian.com>
30794
30795         * MdiChildContext.cs: Don't size windows if they are maximized.
30796
30797 2005-11-23  Mike Kestner  <mkestner@novell.com>
30798
30799         * ContextMenu.cs: use MenuTracker.
30800         * Control.cs: remove menu handle usage.
30801         * Form.cs: remove menu handle usage.
30802         * Hwnd.cs: remove menu handle usage.
30803         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
30804         motion and clicks to the new Tracker handlers.
30805         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
30806         and handle usage.
30807         * MenuAPI.cs: refactored to combine popup and menubar event handling.
30808         Killed the MENU and MENUITEM data types and associated collections
30809         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
30810         MenuTracker class that exposes the leftovers from the old MenuAPI
30811         static methods. Restructured Capture handling so that only one grab is
30812         done for the entire menu hierarchy instead of handing off grabs to
30813         submenus. Tracker now has an invisible control to Capture when active.
30814         * MenuItem.cs: add sizing accessors, kill Create
30815         and handle usage.
30816         * Theme.cs: remove menu handle and MENU(ITEM) usage.
30817         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
30818         MENU(ITEM). remove menu handle usage, use Menu directly.
30819         * XplatUIDriver.cs: remove menu handle usage.
30820         * XplatUIOSX.cs: remove menu handle usage.
30821         * XplatUIWin32.cs: remove menu handle usage.
30822         * XplatUIX11.cs: remove menu handle usage.
30823
30824 2005-11-22  Jackson Harper  <jackson@ximian.com>
30825
30826         * Hwnd.cs: Don't compute the menu size for
30827         DefaultClientRectangle.
30828         - Reenable menu sizes being computed for GetClienRectangle.
30829         * Form.cs: Remove comment of trechery
30830         
30831 2005-11-22  Jackson Harper  <jackson@ximian.com>
30832
30833         * Hwnd.cs: The adjustments for the menu bar are made when it is
30834         attached to the form.
30835
30836 2005-11-19  Jackson Harper  <jackson@ximian.com>
30837
30838         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
30839         (just like on windows).
30840
30841 2005-11-19  Jackson Harper  <jackson@ximian.com>
30842
30843         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
30844         use real buttons anymore because they are in non client area. The
30845         one TODO here is that I need to somehow invalidate a section of
30846         the non client area.
30847
30848 2005-11-18  Jackson Harper  <jackson@ximian.com>
30849
30850         * Control.cs: Put the enum check back in now that MDI doesnt have
30851         to use this to set border styles.
30852         * Form.cs: Only set mdi child windows borders if the handle has
30853         been created.
30854         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
30855         this directly on to the driver.
30856         - Get the move start position before adjusting for the titlebar
30857         height, this fixes the windows "skipping" when they are first
30858         moved.
30859
30860 2005-11-18  Jackson Harper  <jackson@ximian.com>
30861
30862         * XplatUIX11.cs: Just compute the mdi borders separately as they
30863         don't totally match up with normal form borders.
30864
30865 2005-11-18  Jackson Harper  <jackson@ximian.com>
30866
30867         * Control.cs: Set WS_ styles for borders, so that the driver does
30868         not have to retrieve the control instance to figure out what kind
30869         of borders it should have.
30870         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
30871         driver can know its an mdi child easily.
30872         * XplatUIX11.cs: Get the border styles and whether the window is
30873         MDI from the Styles and ExStyles params instead of having to get a
30874         control. This prevents a chicken and egg problem.       
30875
30876 2005-11-18  Jackson Harper  <jackson@ximian.com>
30877
30878         * MdiClient.cs: Fix typo so scrollbars show up correctly.
30879
30880 2005-11-18  Jackson Harper  <jackson@ximian.com>
30881
30882         * MdiClient.cs: Calculate when to add and remove scrollbars
30883         correctly.
30884         * MdiChildContext.cs: Adjust the y position to take the titlebar
30885         into account.
30886         - No height for FormBorderStyle.None
30887
30888 2005-11-18  Jackson Harper  <jackson@ximian.com>
30889
30890         * Control.cs: Allow non enum values to be used for
30891         InternalBorderStyle.  MDI does this to set a special border style.
30892         - New utility methods for converting points to/from client coords
30893         - Add the newly created control to the Controls collection before
30894         updating its style. This way UpdateStyle can walk the control
30895         heirarchy to find the control if needed.
30896         so I don't need to create a new Point object all the time.
30897         * Form.cs: Let MDI windows handle their border styles.
30898         - Set styles on MDI windows so the correct title style is derived.
30899         * MdiChildContext.cs: Move all the painting and window handling
30900         into the non client area.
30901         - Use correct sizing and put correct buttons on frames based on
30902         the FormBorderStyle.
30903         - Notify the mdi client about scrolling
30904         - Need to handle the buttons ourselves now, because they are all
30905         in non client areas and we can't add controls there.
30906         * MdiClient.cs: Halfway to scrolling, this implementation is
30907         somewhat broken though, we need to check to make sure other
30908         windows aren't causing scrolling before removing the bars. Also
30909         the bars need to be drawn on top, maybe I can switch implicit
30910         controls to be on top.
30911         * Hwnd.cs: caption_height and tool_caption_height are now
30912         properties of an hwnd, this way they can be set by the driver
30913         based on the type of window they are.  In X11 the window manager
30914         handles the decorations so caption_height is zero unless its an
30915         MDI window.
30916         - Add 3 pixel borders for MDI windows (0xFFFF).
30917         - Get rid of some code duplication, have DefaultClientRectanle
30918         just call GetClientRectangle.
30919         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
30920         Hwnd now.
30921         - Set border styles differently for mdi windows.
30922         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
30923         Hwnd now.
30924         
30925 2005-11-15  Mike Kestner  <mkestner@novell.com>
30926
30927         * Menu.cs: when adding an item to the collection, if item is already 
30928         parented, remove it from the parent.
30929
30930 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
30931
30932         * X11DesktopColors.cs: Added KDE support
30933
30934 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
30935
30936         * XplatUIWin32.cs: 
30937           - Clipboard methods now can translate Rtf format
30938           - No longer removes clipboard contents whenever a new format is added
30939             to allow placing multiple formats on the clipboard
30940         * Clipboard.cs: Clipboard now supports getting a IDataObject and
30941           will place all formats contained in it onto the clipboard. Also
30942           now cleans the clipboard before placing a new object onto it
30943         * RichTextBox.cs:
30944           - Implemented set_Rtf
30945           - Implemented set_SelectedRtf
30946           - Created InsertRTFFromStream() method to allow single code base
30947             for all properties and methods that insert RTF into document
30948           - Removed debug output
30949         * TextControl.cs:
30950           - Fixed Delete(int) to fix up line numbers
30951           - Fixed ReplaceSelection to combine start and end line
30952           - Fixed serious DeleteChars bug that would leave the document tree
30953             broken
30954           - Improved DumpTree with several logic checks to detect broken
30955             document trees
30956           - Removed debug lines
30957           - Fixed Caret.WordForward/WordBack moving code, now always also 
30958             updates caret.tag (fixes crash when word-selecting across tag
30959             boundaries via keyboard)
30960           - Added Insert() method for inserting multiline text into documents
30961           - Fixed DeleteChars() calculation errors that would cause a broken
30962             tag chain with multiple tag lines
30963           - DeleteChars() no longer crashes on multi-tag lines if not all tags
30964           - Split() no longer moves caret if split is at caret location
30965           - ReplaceSelection() now updates the cursor and re-displays it
30966           - ReplaceSelection() now uses new Insert() method to avoid code
30967             duplication
30968           - FormatText() can now handle formatting partial lines
30969         * TextBoxBase.cs:
30970           - Append now uses new TextControl.Insert() method (this avoids 
30971             duplicate code)
30972           - Implemented Ctrl-X (Cut) (
30973           - Implemented Ctrl-C (Copy)
30974           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
30975             regeneration when pasting text; roundtripping Copy&Paste within
30976             edit control still fails due to some calculation bugs in GenerateRTF)
30977           - The Delete key will now remove the current selection if it is visible
30978         * TextBox.cs: Removed debug lines
30979         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
30980           driver to be initialized and can't therefore be done via a static ctor)
30981
30982 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
30983
30984         * TextControl.cs: Added backend code for finding char arrays and strings
30985         * TextBoxBase.cs:
30986           - Added mouse wheel scroll support
30987           - Added support for VScroll and HScroll events
30988         * RichTextBox.cs:
30989           - Implemented all seven Find() variants
30990           - Implemented GetCharFromPosition()
30991           - Implemented GetCharIndexFromPosition()
30992           - Implemented GetLineFromIndex()
30993           - Implemented GetPositionFromCharIndex();
30994           - Implemented SaveFile for PlainText and UnicodeText
30995           - Fixed set_Font, now setting a new font applies that font to
30996             the whole document
30997           - Implemented generic Document to RTF converter
30998           - Implemented SaveFile for RichText format (still missing unicode
30999             conversion for non-ansi chars)
31000           - Implemented get_Rtf
31001           - Implemented get_SelectedRtf
31002
31003 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
31004
31005         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
31006           to allow any captures to be released before triggering OnClick. This
31007           way a click handler may capture the mouse without interference.
31008         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
31009           This way we send them even though X may not allow a grab (if the window
31010           isn't visible, for example)
31011
31012 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
31013
31014         * DataGridViewRowEventArgs.cs: DataGridView implementation
31015         * DataGridViewElement.cs: DataGridView implementation
31016         * DataGridViewComboBoxCell.cs: DataGridView implementation
31017         * DataGridViewDataErrorContexts.cs: DataGridView implementation
31018         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
31019         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
31020         * ImageLayout.cs: DataGridView implementation
31021         * DataGridViewComboBoxColumn.cs: DataGridView implementation
31022         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
31023         * DataGridViewSelectionMode.cs: DataGridView implementation
31024         * IDataGridViewEditingControl.cs: DataGridView implementation
31025         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
31026         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
31027         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
31028         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
31029         * DataGridViewColumnSortMode.cs: DataGridView implementation
31030         * DataGridView.cs: DataGridView implementation
31031         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
31032         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
31033         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
31034         * Padding.cs: DataGridView implementation
31035         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
31036         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
31037         * DataGridViewRowEventHandler.cs: DataGridView implementation
31038         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
31039         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
31040         * DataGridViewButtonCell.cs: DataGridView implementation
31041         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
31042         * DataGridViewEditMode.cs: DataGridView implementation
31043         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
31044         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
31045         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
31046         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
31047         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
31048         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
31049         * DataGridViewCellEventHandler.cs: DataGridView implementation
31050         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
31051         * DataGridViewCellStyleConverter.cs: DataGridView implementation
31052         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
31053         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
31054         * DataGridViewColumnEventArgs.cs: DataGridView implementation
31055         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
31056         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
31057         * QuestionEventArgs.cs: DataGridView implementation
31058         * IDataGridViewEditingCell.cs: DataGridView implementation
31059         * DataGridViewTriState.cs: DataGridView implementation
31060         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
31061         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
31062         * DataGridViewColumnCollection.cs: DataGridView implementation
31063         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
31064         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
31065         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
31066         * DataGridViewColumn.cs: DataGridView implementation
31067         * DataGridViewCellBorderStyle.cs: DataGridView implementation
31068         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
31069         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
31070         * DataGridViewRow.cs: DataGridView implementation
31071         * DataGridViewImageCellLayout.cs: DataGridView implementation
31072         * DataGridViewImageCell.cs: DataGridView implementation
31073         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
31074         * DataGridViewCheckBoxCell.cs: DataGridView implementation
31075         * DataGridViewHeaderCell.cs: DataGridView implementation
31076         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
31077         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
31078         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
31079         * DataGridViewTextBoxColumn.cs: DataGridView implementation
31080         * QuestionEventHandler.cs: DataGridView implementation
31081         * DataGridViewCellStyleScopes.cs: DataGridView implementation
31082         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
31083         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
31084         * DataGridViewCell.cs: DataGridView implementation
31085         * DataGridViewCellEventArgs.cs: DataGridView implementation
31086         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
31087         * DataGridViewCellStyle.cs: DataGridView implementation
31088         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
31089         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
31090         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
31091         * TextFormatFlags.cs: DataGridView implementation
31092         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
31093         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
31094         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
31095         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
31096         * DataGridViewButtonColumn.cs: DataGridView implementation
31097         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
31098         * HandledMouseEventArgs.cs: DataGridView implementation
31099         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
31100         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
31101         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
31102         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
31103         * DataGridViewRowCollection.cs: DataGridView implementation
31104         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
31105         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
31106         * DataGridViewHitTestType.cs: DataGridView implementation
31107         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
31108         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
31109         * DataGridViewColumnEventHandler.cs: DataGridView implementation
31110         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
31111         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
31112         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
31113         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
31114         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
31115         * DataGridViewContentAlignment.cs: DataGridView implementation
31116         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
31117         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
31118         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
31119         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
31120         * DataGridViewPaintParts.cs: DataGridView implementation
31121         * DataGridViewCellCollection.cs: DataGridView implementation
31122         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
31123         * DataGridViewImageColumn.cs: DataGridView implementation
31124         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
31125         * DataGridViewElementStates.cs: DataGridView implementation
31126         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
31127         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
31128         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
31129         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
31130         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
31131         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
31132         * DataGridViewRowHeaderCell.cs: DataGridView implementation
31133         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
31134         * DataGridViewTextBoxCell.cs: DataGridView implementation
31135         * DataGridViewBand.cs: DataGridView implementation
31136         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
31137         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
31138         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
31139         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
31140         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
31141         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
31142         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
31143         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
31144         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
31145         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
31146         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
31147
31148 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
31149
31150         * ThemeWin32Classic.cs: 
31151           - Draw the outside focus rectangle around buttons
31152           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
31153             doesn't use end caps for every dash of a line anymore. This
31154             workaround ignores the forecolor.
31155
31156 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
31157
31158         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
31159           endian safe.
31160
31161 2005-11-07  Jackson Harper  <jackson@ximian.com>
31162
31163         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
31164
31165 2005-11-07  Jackson Harper  <jackson@ximian.com>
31166
31167         * ScrollableControl.cs: Calculate the maximum and change vars
31168         (more) correctly so that scrollbars appear as a sensible size.
31169
31170 2005-11-04  Jackson Harper  <jackson@ximian.com>
31171
31172         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
31173         collection.
31174         * TreeView.cs: When the tree is sorted null out the top_node so
31175         that it is recalculated.
31176         - Use dotted lines instead of dashed lines to match MS better.
31177
31178 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
31179
31180         * ListView.cs: 
31181           - Implements key search for items. Useful when browsing files with FileDialog
31182           - When changing view mode or when clear the items reset scrollbar positions
31183
31184 2005-11-04  Jackson Harper  <jackson@ximian.com>
31185
31186         * CurrencyManager.cs: Implement the MetaDataChanged event, the
31187         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
31188         as to what the method may do as there is no real way of creating a
31189         derived CurrencyManager and calling the method. 
31190
31191 2005-11-03  Jackson Harper  <jackson@ximian.com>
31192
31193         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
31194         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
31195         method which seems to just be used internally to refresh the tabs.
31196
31197 2005-11-03  Jackson Harper  <jackson@ximian.com>
31198
31199         * TabControl.cs: Implement the remove method. Fix some broken
31200         comments.
31201
31202 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31203
31204         * DateTimePicker.cs:
31205           - Added missing DateTimePickerAccessibleObject class
31206           - Added missing events
31207           - Added OnFontChanged method
31208         * Form.cs: Added missing attributes
31209         * TreeView.cs: Added missing attributes
31210
31211 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
31212
31213         * GridItemCollection.cs: Fix signatures
31214
31215 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31216
31217         * XplatUI.cs: Updated build rev/date
31218         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
31219           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
31220         * Application.cs: Trigger context-specific ExitThread events
31221
31222 2005-11-03  Jackson Harper  <jackson@ximian.com>
31223
31224         * Menu.cs:
31225         * MainMenu.cs:
31226         * GridTableStylesCollection.cs:
31227         * Timer.cs:
31228         * TabPage.cs:
31229         * HelpProvider.cs:
31230         * StatusBar.cs:
31231         * MonthCalendar.cs: Signature fixes
31232
31233 2005-11-03  Jackson Harper  <jackson@ximian.com>
31234
31235         * TreeNodeCollection.cs: Remove should not be virtual.
31236         * TreeView.cs: Implement the last of the missing methods.
31237
31238 2005-11-03  Jackson Harper  <jackson@ximian.com>
31239
31240         * TreeNodeConverter.cs: Implement to get off my class-status back.
31241
31242 2005-11-03  Jackson Harper  <jackson@ximian.com>
31243
31244         * TreeView.cs: Hookup the bits for drag and drop.
31245         * TreeNode.cs: Don't cache the tree_view or index anymore, now
31246         that nodes can be moved from tree to tree easily this just causes
31247         all sorts of problems.
31248         * TreeNodeCollection: Don't need to give treenodes an index and
31249         treeview anymore when they are added, these are computed on the
31250         fly. Also make sure to remove a node before its added.
31251
31252 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
31253
31254         * TextControl.cs:
31255           - Added CaretSelection enum
31256           - Added comparison methods to Marker struct, makes selection code
31257             more readable
31258           - Added SelectionStart and SelectionEnd as 'moveable' location for
31259             the CaretDirection enum and handler
31260           - Added selection_prev variable to track optimized invalidation for
31261             word and line selection
31262           - Added SelectionVisible property (returns true if there is a valid 
31263             selection)
31264           - Switched CaretHasFocus to only display the caret if there is no
31265             visible selection
31266           - Avoiding StringBuilder.ToString to retrieve a single char, instead
31267             using the direct character index; should be much faster
31268           - Added various conditional debug statements
31269           - Fixed invalidation calculation for selection ranges
31270           - Added ExpandSelection() method to support word and line selection
31271           - Switched SetSelectionToCaret to use new Marker compare overloads
31272           - Added central IsWordSeparator() method to determine word 
31273             separators/whitespace and FindWordSeparator() to streamline common
31274             usage of IsWordSeparator()
31275         * TextBoxBase.cs:
31276           - Removed unneeded grabbed variable, it was just mirroring
31277             Control.Capture
31278           - No longer firing OnTextChanged event when Text setter is called,
31279             since the base will fire the event for us
31280           - Added handling of Ctrl-Up/Down selection
31281           - Added handling of Shift-Cursorkey selection
31282           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
31283             words
31284           - Added handling of Shift and Ctrl-Shift-Home/End selection
31285           - Removed some debug output
31286           - Added handling for single/double/tripple-click to place caret/
31287             select word/select line respectively (Fixes bug #76031)
31288           - Added support for drag expansion of word/line selection
31289         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
31290           current selection
31291
31292 2005-11-02  Jackson Harper  <jackson@ximian.com>
31293
31294         * X11Dnd.cs: If the drag is going to and from a MWF window just
31295         copy the data instead of sending it out through the X Selection
31296         mechanism.
31297
31298 2005-11-02  Jackson Harper  <jackson@ximian.com>
31299
31300         * X11Dnd.cs:
31301         * XplatUIX11.cs: When in a drag we don't want motion notify
31302         messages to get passed on to the other controls. This prevents
31303         mouse move messages from showing up in the drag source.
31304
31305 2005-11-02  Jackson Harper  <jackson@ximian.com>
31306
31307         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
31308         the correct button is release to end a drag.
31309         * XplatUIX11.cs: Make the button state internal so the drag system
31310         can access it.  Dragging needs to know about all button releases,
31311         not just left button.
31312
31313 2005-11-02  Miguel de Icaza  <miguel@novell.com>
31314
31315         * Form.cs (Icon): If the icon is null, reset the icon to the
31316         default value. 
31317
31318         * Cursor.cs: When writing the AND-mask bitmap do not include the
31319         number of colors, but hardcode those to two (black and white),
31320         fixes the loading of color cursors (Paint Dot Net).
31321
31322         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
31323         turn off autoscaling.
31324
31325         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
31326
31327 2005-11-02  Jackson Harper  <jackson@ximian.com>
31328
31329         * X11Dnd.cs: Make sure to send a status message if the pointer
31330         enters a control that can not accept a drop, otherwise the cursor
31331         isn't updated correctly. Also tried to compress the lines of code
31332         a bit.
31333
31334 2005-11-02  Jackson Harper  <jackson@ximian.com>
31335
31336         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
31337         set actions correctly.  This isn't perfect as XDND and win32 have
31338         some differences on how you allow actions. I'll clear this up by
31339         adding a path for drag from MWF to MWF windows.
31340         * XplatUIX11.cs: Hook into the dnd system.
31341
31342 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
31343
31344         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
31345         previously shown but they are no longer need it. Very obvious when 
31346         browsing files with FileDialog.
31347
31348 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
31349
31350         * Control.cs: We always need to call OnPaintBackground. We pretty much
31351           ignore AllPaintingInWmPaint and always do the painting there, whether 
31352           it's set or not, since we always ignore the WM_ERASEBKGND message 
31353           (which we don't generate on X11). This fixes #76616.
31354         * Panel.cs: Removed unneeded background painting. This happens properly
31355           in Control.cs already
31356
31357 2005-10-31  Mike Kestner  <mkestner@novell.com>
31358
31359         * Menu.cs: Add items to collection before setting their index.
31360         * MenuItem.cs : add range checking with ArgumentException like MS.
31361         [Fixes #76510]
31362
31363 2005-10-31  Jackson Harper  <jackson@ximian.com>
31364
31365         * ListBox.cs: Invalidate if the area is visible at all not just
31366         contained in the visible rect. Fixes unselection of semi visible
31367         items.
31368
31369 2005-10-31  Jackson Harper  <jackson@ximian.com>
31370
31371         * Control.cs: Consistently name the dnd methods. Make them
31372         internal so we can override them to match some MS behavoir
31373         internally.
31374         * Win32DnD.cs: Use the new consistent names.
31375
31376 2005-10-31  Jackson Harper  <jackson@ximian.com>
31377
31378         * TreeView.cs: Don't draw the selected node when we lose focus.
31379
31380 2005-10-31  Jackson Harper  <jackson@ximian.com>
31381
31382         * X11Dnd.cs: We still need to reset the state even though a full
31383         reset isn't being done, otherwise status's still get sent all over
31384         the place.
31385
31386 2005-10-31  Jackson Harper  <jackson@ximian.com>
31387
31388         * Control.cs: Make the dnd_aware flag internal so the dnd
31389         subsystem can check it. Catch exceptions thrown in dnd handlers to
31390         match MS behavoir.
31391         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
31392         * X11Dnd.cs: Handle null data in the converters. Set the XDND
31393         version when sending a XdndEnter. Use the control/hwnd dnd_aware
31394         flags to reduce the number of dnd enters/status's sent.
31395
31396 2005-10-31  Jackson Harper  <jackson@ximian.com>
31397
31398         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
31399
31400 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
31401
31402         * PictureBox.cs: Fixes 76512
31403
31404 2005-10-28  Jackson Harper  <jackson@ximian.com>
31405
31406         * X11Dnd.cs: Early implementation to support winforms being a drag
31407         source for data on X11. Also restructured the converters so they
31408         can go both ways now.
31409         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
31410         
31411 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
31412
31413         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
31414           clipboard requests
31415
31416 2005-10-27  Jackson Harper  <jackson@ximian.com>
31417
31418         * TreeNode.cs: Implement serialization so my DnD examples will work.
31419
31420 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
31421
31422         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
31423           TreeView.cs: Don't dispose objects that are not owned.
31424           
31425 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
31426
31427         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
31428           should retrieve the current cursor and report that, but XplatUI
31429           doesn't (yet) have an interface for that (and I'm not sure I even
31430           can, on X11)
31431         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
31432           until any message loop processing is done (and the WM_SETCURSOR
31433           replaces the cursor to the proper one)
31434         * XplatUIX11.cs: 
31435           - Fixed override behaviour, we can't set the cursor globally on X11, 
31436             just for our windows.
31437           - Invalidating the System.Drawing X11 display handle when we are
31438             shutting down
31439         * Control.cs: Fix to make csc happy
31440
31441 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
31442
31443         * TextBoxBase.cs: 
31444           - get_Text: Add last line (without trailing newline) to returned
31445             value (Fixes 76212)
31446           - get_TextLength: Count last line in returned length
31447           - ToString: Call Text property instead of duplicating code
31448
31449 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
31450
31451         * ImageList.cs: Dispose ImageAttributes objects.
31452
31453 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31454
31455         * ImageList.cs: Use attribute constructors with less arguments where
31456           possible.
31457
31458 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
31459
31460         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
31461           Use typeof instead of strings when assembly is referenced. Added
31462           some more comments.
31463
31464 2005-10-21  Jackson Harper  <jackson@ximian.com>
31465
31466         * ListView.cs: Raise a double click event. Also tried to somewhat
31467         fix when the selectedindexchanged event is raised. Its still
31468         broken though.
31469
31470 2005-10-21  Jackson Harper  <jackson@ximian.com>
31471
31472         * TreeView.cs: New method to invalidate the plus minus area of a
31473         node without invalidating the whole node (maybe this can be used
31474         in some more places).
31475         * TreeNodeCollection.cs: When adding to an empty node we need to
31476         invalidate its plus minus area so the little block shows up.
31477         
31478 2005-10-21  Jackson Harper  <jackson@ximian.com>
31479
31480         * TreeView.cs: Make sure that when we invalidate a node the bounds
31481         are big enough to cover the selected box and the focus
31482         rectangle. Use a different colour for the lines connecting nodes
31483         so they show up with all themes.
31484
31485 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31486
31487         * NativeWindow.cs: Don't call anything that could call into the driver,
31488           we might be on a different thread.
31489
31490 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
31491
31492         * Control.cs(Dispose): Since Dispose might run on a different thread,
31493           make sure that we call methods that could call into the driver via
31494           invoke, to avoid thread issues
31495
31496 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
31497
31498         * XplatUI.cs: Removed finalizer
31499         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
31500           not allowing to be called on the finalizer thread.
31501
31502 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
31503
31504         * ImageList.cs:
31505           - Reverted r51889 and r51891.
31506           - Added ImageListItem class that stores unmodified image items and image
31507             properties required to create list images until handle is created.
31508           - Added AddItem and moved image creation logic to AddItemInternal.
31509           - Added CreateHandle method that creates images based on unmodified items.
31510           - Added DestroyHandle that changes state to store unmodified items.
31511           - Add and AddStrip methods no more create handle.
31512           - ReduceColorDepth has no return value.
31513           - Dispose destroys handle.
31514           - Modified other methods to reflect the above changes.
31515           - Implemented key support.
31516           - Added profile 2.0 members and attributes.
31517           - Added private Reset and ShouldSerialize methods that provide the same
31518             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
31519             them as they are private.
31520           - Added some more comments about implementation details.
31521
31522 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31523
31524         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
31525
31526 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31527
31528         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
31529
31530 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
31531
31532         * DataGridDrawingLogic.cs: Fixes column hit calcultation
31533         * DataGridColumnStyle.cs: Remove debug message
31534
31535 2005-10-20  Jackson Harper  <jackson@ximian.com>
31536
31537         * TreeView.cs: We can always get input keys regardless of whether
31538         or not editing is enabled. They are used for navigation.
31539
31540 2005-10-20  Jackson Harper  <jackson@ximian.com>
31541
31542         * TreeNode.cs: Use the viewport rect for determining if a node
31543         needs to be moved for visibility. Don't use Begin/End edit. This
31544         calls a full refresh when its done.
31545         * TreeView.cs: New SetBottom works correctly.  Make the viewport
31546         rect property internal so the treenodes can see it. When clicking
31547         on a node we need to ensure that its visible because it might just
31548         be partly visible when clicked.
31549
31550 2005-10-20  Jackson Harper  <jackson@ximian.com>
31551
31552         * TreeNodeCollection.cs: Remove debug code.
31553
31554 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31555
31556         * Datagrid.cs: Implements column sorting in Datagrid
31557         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
31558
31559 2005-10-20  Jackson Harper  <jackson@ximian.com>
31560
31561         * TreeNodeCollection.cs: Remove items properly. Update the correct
31562         area after removing them.
31563
31564 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
31565
31566         * Datagrid.cs: Should not call base.OnPaintBackground
31567
31568 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31569
31570         * XplatUIX11.cs (GetMessage):
31571           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
31572             window instead of client window
31573           - Now properly calculates NC_xBUTTONUP message coordinates
31574           - ScreenToMenu now properly calculates it's coordinates of whole 
31575             window, since menus are in the whole window, not in the client
31576             window
31577           - Added WholeToScreen coordinate translation method
31578
31579 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
31580
31581         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
31582           want to return a message, loop back to the beginning of the function
31583           and grab the next real message to process instead.
31584
31585 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
31586
31587         * Splitter.cs: Properly set limits if no filler control is used
31588
31589 2005-10-19  Jackson Harper  <jackson@ximian.com>
31590
31591         * ColorDialog.cs: Don't show the help button if it is not enabled
31592         instead of disabling it (this is what MS does). Don't create the
31593         panel until the dialog is run, otherwise the vars (such as
31594         ShowHelp) are not set yet.
31595
31596 2005-10-19  Jackson Harper  <jackson@ximian.com>
31597
31598         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
31599         are reduced when adding nodes.
31600         * TreeNode.cs:
31601         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
31602         tree.
31603         
31604 2005-10-19  Jackson Harper  <jackson@ximian.com>
31605
31606         * FolderBrowserDialog.cs: End editing our treeview so the window
31607         actually gets refreshed.
31608
31609 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31610
31611         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
31612           Obsoleted handling of WM_ERASEBKGND, now always draws our background
31613           inside of WM_PAINT
31614
31615 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31616
31617         * MenuAPI.cs: Returns after Hidding window
31618         * XplatUIX11.cs: Added TODO found while debugging menu issues
31619
31620 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
31621
31622         * XplatUIX11.cs: Do not re-map the whole window when it's size
31623           becomes non-zero unless it's supposed to be actually visible
31624
31625 2005-10-18  Jackson Harper  <jackson@ximian.com>
31626
31627         * TreeView.cs: We don't need to keep a count anymore.
31628         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
31629         use the Grow method.
31630
31631 2005-10-18  Jackson Harper  <jackson@ximian.com>
31632
31633         * TreeNodeCollection.cs: Insert is not supported on arrays, so
31634         implement it manually here.
31635
31636 2005-10-18  Jackson Harper  <jackson@ximian.com>
31637
31638         * ImageList.cs: Dont kill the list when the colour depth is
31639         changed, just change the colour depth of all the images.
31640         - Same goes for setting the image size. Just resize them all
31641         instead of killing the list softly.
31642
31643 2005-10-18  Jackson Harper  <jackson@ximian.com>
31644
31645         * Control.cs: Don't invalidate empty rectangles.
31646
31647 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31648
31649         * ListViewItem.cs:
31650           - Adds checked item to the Checked/Item lists (where empty before)
31651           - Do not add items to the Selected lists if they are already present
31652         * ListView.cs:
31653           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
31654           - When deleting items make sure that we delete them for the Selected
31655           and Checked list also.
31656
31657 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
31658
31659         * Label.cs: Dispose objects no longer used
31660         * ThemeWin32Classic.cs: Dispose objects no longer used
31661
31662 2005-10-18  Jackson Harper  <jackson@ximian.com>
31663
31664         * TabControl.cs: Don't refresh the whole control when the tabs are
31665         scrolled, we just need to refresh the tab area.
31666
31667 2005-10-17  Jackson Harper  <jackson@ximian.com>
31668
31669         * XplatUIX11.cs: Compress code a little bit. Only calculate the
31670         after handle when we need it.
31671
31672 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31673
31674         * Control.cs: When the parent size changes, recalculate anchor 
31675           positions. Partial fix for #76462
31676
31677 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
31678
31679         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
31680           drawn. Fixes #76462
31681
31682 2005-10-17  Jackson Harper  <jackson@ximian.com>
31683
31684         * MonthCalendar.cs: Don't create the numeric up down until our
31685         handle is created. Otherwise our handle is created in the
31686         constructor and we don't know if we are a WS_CHILD or WS_POPUP
31687         yet.
31688
31689 2005-10-17  Jackson Harper  <jackson@ximian.com>
31690
31691         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
31692         correctly.
31693
31694 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
31695         * TreeNode.cs : small logical fix (was using local var instead of field)
31696         
31697 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31698
31699         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
31700
31701 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
31702
31703         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
31704
31705 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
31706
31707         * Control.cs: 
31708           - Re-implemented anchoring code. My first version was really broken.
31709             This fixes bug #76033. Unlike the previous implementation we will
31710             no longer have round errors since all numbers are calculated from
31711             scratch every time. Removed various anchor-related obsolete vars.
31712           - InitLayout no longer causes layout event firing and layout to be 
31713             performed
31714
31715 2005-10-16  Jackson Harper  <jackson@ximian.com>
31716
31717         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
31718         which was broken).
31719
31720 2005-10-16  Jackson Harper  <jackson@ximian.com>
31721
31722         * TabControl.cs: Remove debug code.
31723
31724 2005-10-16  Jackson Harper  <jackson@ximian.com>
31725
31726         * XEventQueue.cs: Increase the default queue size (very simple
31727         apps needed to grow the queue).
31728         * Hwnd.cs: No finalizer so we don't need to suppress
31729         finalization. Compute the invalid area manually so a new rectangle
31730         does not newto be created.
31731         * ScrollableControl.cs: Don't set any params (otherwise visibility
31732         isn't set correctly).
31733         * MdiChildContext.cs: New constructor takes the mdi parent so it
31734         doesn't have to be computed and avoids a crash on windows. Draw
31735         the window icon properly, and allow the text to be seen.
31736         * Form.cs: Use new MdiChildContext constructor. Make sure the
31737         child context isn't null in wndproc.
31738         * TabControl.cs: Don't set focus, this is muddling keyboard
31739         behavoir. Expand the tab rows when a window size increase will
31740         allow extra tabs to be seen. Don't allow tabs smaller than the
31741         width of a window to be scrolled out of view.
31742         * TreeNode.cs:
31743         * TreeView.cs: Use measure string to calculate a nodes width, the
31744         width is cached and only updated when the text or the font is
31745         changed. Don't check for expand/collapse clicks on the first level
31746         nodes if root lines are disabled.
31747         
31748 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
31749
31750         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
31751
31752 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31753
31754         * DataGridBoolColumn.cs: fixes warning
31755
31756 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
31757
31758         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
31759         to match more to match more precisely the MS Net behavior
31760
31761 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31762
31763         * Hwnd.cs: Added field to track if window is mapped
31764         * XplatUIX11.cs: 
31765           - Unmap windows if they become 0-size, re-map when 
31766             they are >0 again; fixes #76035
31767           - Re-set our error handler after initializing X11Desktop
31768             to override any error handlers Gtk or whatever was called
31769             may have set.
31770
31771 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
31772
31773         * CheckedListBox.cs: Removed unused vars
31774         * ListView.cs: Fixed signatures
31775         * RichTextBox.cs: Removed unused vars
31776         * TextBoxBase.cs: Removed unused vars
31777         * XplatUIWin32.cs: Removed unused vars
31778         * XplatUIX11.cs: Removed unused vars
31779         * XplatUI.cs: Updated version and date to latest published
31780
31781 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31782
31783         * Cursor.cs: Added private .ctor to work around a bug in
31784           resourceset (Thanks to Geoff Norton for the help on this)
31785         * SplitterEventArgs.cs: Made fields accessible so we don't
31786           waste boatloads of objects and can reuse the same one
31787           in Splitter
31788         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
31789           any captions and borders when generating screen coordinates
31790         * Splitter.cs: Reimplemented control, now fully complete, uses
31791           rubberband drawing, supports and obeys all properties, has
31792           proper cursors
31793
31794 2005-10-13  Miguel de Icaza  <miguel@novell.com>
31795
31796         * Form.cs (Form): Setup default values for autoscale and
31797         autoscale_base_size;  Make these instance variables, not static
31798         variables. 
31799
31800         (OnLoad): on the first load, adjust the size of the form.
31801
31802 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
31803
31804         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
31805           width argument to DrawReversibleRectangle()
31806         * XplatUIWin32.cs, XplatUIX11.cs: 
31807           - Implemented width for DrawReversibleRectangle()
31808           - Added logic to DrawReversibleRectangle that recognizes a zero
31809             width or height and only draws a line in that situation
31810         
31811 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
31812
31813         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
31814         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
31815         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
31816           method (it uses our FosterParent window to get a graphics context)
31817
31818 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
31819
31820         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
31821           and SetWindowBackground methods
31822         * Control.cs:
31823           - Setting proper ControlStyles
31824           - We no longer call XplatUI.SetWindowBackground and XplatUI.
31825             EraseWindowBackground, instead we draw the window background
31826             ourselves in PaintControlBackground. This behaviour is
31827             required to match MS, where, when OnPaintBackground is not
31828             called, the background is not drawn.
31829           - Removed unneeded Refresh() in set_Text
31830         * Hwnd.cs: Dropped the ErasePending support. No longer needed
31831         * XplatUIX11.cs:
31832           - Created DeriveStyles method to translate from CreateParams to
31833             FormBorderStyle and TitleStyle, also handles BorderStyle (which
31834             matches FormBorderStyle enum values)
31835           - Consolidated SetHwndStyles and CalculateWindowRect border/title
31836             style calculations into single DeriveStyles method
31837           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
31838             from redrawing the whole window on any resize or expose.
31839           - Fixed CreateWindow usage of SetWindowValuemask. Before not
31840             all styles were applied to our whole/client window appropriately
31841           - Removed EraseWindowBackground() and SetWindowBackground() methods
31842           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
31843             no longer clear/redraw the background through X
31844           - Removed handling of erase_pending bit, we have no use for it (or
31845             so it seems)
31846         * XplatUIOSX.cs:
31847           - Removed generation and handling of WM_ERASEBKGND message
31848           - Removed EraseWindowBackground() and SetWindowBackground() methods
31849           - Removed handling of hwnd.ErasePending flag
31850         * XplatUIWin32.cs:
31851           - Removed EraseWindowBackground() and SetWindowBackground() methods
31852           - We no longer call EraseWindowBackground on PaintEventStart, we 
31853             ignore the fErase flag, erasing is handled in Control in the
31854             background handler
31855         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
31856           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
31857           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
31858           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
31859           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
31860           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
31861           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
31862
31863 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
31864
31865         * PropertyGrids.cs: Get sub properties
31866         * PropertyGridView.cs: Fix drawing code
31867
31868 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31869
31870         * ListBox.cs: Fixes 76383
31871
31872 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31873
31874         * DataGridTextBoxColumn.cs: Sets location and size before attachment
31875         * ThemeWin32Classic.cs: Fixes border drawing and calculations
31876         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
31877
31878
31879 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31880
31881         * ComboBox.cs: Fixes border drawing
31882
31883 2005-10-10  Miguel de Icaza  <miguel@novell.com>
31884
31885         * MimeIcon.cs: Ignore errors if the file can not be read.
31886
31887 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
31888
31889         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
31890          - Fixed border calculations
31891          - Fixed horizontal scrolling in single column listboxes
31892          - Fixed drawing issues
31893
31894 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
31895
31896         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
31897           FormBorderStyle enum
31898         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
31899           code to determine FormBorderStyles from CreateParams
31900         * Form.cs:
31901           - Fixed bug where we'd set the wrong window styles if we were
31902             not creating an MDI window
31903           - Added call to XplatUI.SetBorderStyle when form borders are set
31904         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
31905         * Hwnd.cs:
31906           - Removed obsolete edge style
31907           - Switched from BorderStyle to FormBorderStyle
31908         
31909 2005-10-10  Jackson Harper  <jackson@ximian.com>
31910
31911         * Form.cs: Use the property to get the window handle instead of
31912         accessing it directly. Prevents a null reference exception.
31913
31914 2005-10-10  Jackson Harper  <jackson@ximian.com>
31915
31916         * TreeView.cs: Don't adjust the rect given to DrawString now that
31917         our libgdiplus draws correctly.
31918
31919 2005-10-08  Jackson Harper  <jackson@ximian.com>
31920
31921         * TreeView.cs: Don't try to find the clicked on node if there are
31922         no nodes in the tree.
31923
31924 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31925
31926         * RichTextBox.cs:
31927
31928           restore
31929
31930 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
31931
31932         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
31933           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
31934           ErrorProvider.cs:
31935           Use ResPool for brushes and dispose System.Drawing objects that
31936           are not used anymore.
31937
31938 2005-10-07  Jackson Harper  <jackson@ximian.com>
31939
31940         * MdiChildContext.cs: Use the new borders instead of drawing them
31941         ourselves.
31942
31943 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31944
31945         * Calling UpdateBounds after changing the window's BorderStyle 
31946         since the style can change the ClientSize
31947
31948 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31949
31950         * Control.cs: Made PaintControlBackground virtual
31951         * Panel.cs: Overriding PaintControlBackground instead of using paint
31952           event; paint event method was interfering with 'real' users of the
31953           event.
31954
31955 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
31956
31957         * ThemeWin32Classic.cs: remove border drawing since it is handled
31958         by the base control class now and was causing double border drawing.
31959
31960 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31961
31962         * Panel.cs: Redraw our background on paint. Not a pretty solution,
31963           but it does seem to match MS behaviour. This fixes bug #75324
31964
31965 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31966
31967         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
31968           somewhat hackish looking
31969
31970 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
31971
31972         * TextBoxBase.cs:
31973           - We now accept Enter even if AcceptEnter is false, if the containing
31974             form does not have an AcceptButton configured (fixes bug #76355)
31975           - Calculations are now fixed to no longer use Width/Height, but
31976             ClientSize.Width/Height, since we now support borders (this was
31977             a result of fixing borders and therefore bug #76166)
31978           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
31979             true (fixes bug #76354)
31980         
31981 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
31982
31983         * Control.cs: 
31984           - Defaulting BorderStyle and setting it in XplatUI when our window 
31985             is created
31986           - Added enum check to InternalBorderStyle setter
31987         * XplatUIX11.cs: 
31988           - Added drawing of window borders
31989           - Now properly calculates WM decorations offset for toplevel 
31990             windows (fixes bug #74763)
31991         * XplatUIWin32.cs: 
31992           - Implemented BorderStyles for windows (we're letting win32 draw 
31993             the border for us)
31994           - Fixed the signature for SetWindowLong
31995         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
31996           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
31997           setting borders
31998         * UpDownBase.cs: Remove drawing of borders, this is handled by
31999           the driver, outside the client area
32000         * ListView.cs: Removed bogus border calculations. The control should
32001           be oblivious to borders, since those are not part of the client
32002           area. 
32003         * X11DesktopColors.cs: Commented out (currently) unneeded variables
32004         * ThemeWin32Classic.cs: Removed border calculations from ListView 
32005           drawing code
32006
32007 2005-10-06  Jackson Harper  <jackson@ximian.com>
32008
32009         * MdiChildContext.cs: Clear out the old virtual position remove
32010         all the unneeded calls to CreateGraphics.
32011
32012 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32013
32014         * TextControl.cs: Use proper color for highlighted text; fixes #76350
32015
32016 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
32017
32018         * Form.cs: 
32019           - Added loading and setting of our new default icon
32020           - Only set icon if window is already created
32021
32022 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
32023
32024         * Label.cs:
32025           - Do not explicitly set the foreground and background colors, to
32026             allow inheriting from parents (fixes #76302)
32027           - Use Control's InternalBorderStyle property to deal with borders
32028
32029 2005-10-06  Jackson Harper  <jackson@ximian.com>
32030
32031         * MdiChildContext.cs: Use the new xplatui function to draw a
32032         reversible rect.
32033
32034 2005-10-06  Jackson Harper  <jackson@ximian.com>
32035
32036         * Form.cs: Add the parent before creating the child context cause
32037         we need the parent when setting up the child.
32038
32039 2005-10-06  Jackson Harper  <jackson@ximian.com>
32040
32041         * FolderBrowserDialog.cs: redo the tree population code so a
32042         second thread isn't used. Should be a lot faster and more stable
32043         now.
32044
32045 2005-10-05  Jackson Harper  <jackson@ximian.com>
32046
32047         * TreeView.cs: There are no expand/collapse boxes if the node has
32048         no children.
32049
32050 2005-10-05  Jackson Harper  <jackson@ximian.com>
32051
32052         * X11DesktopColors.cs: Get menu colours for the gtk theme.
32053
32054 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
32055
32056         * FileDialog.cs: Fix InitialDirectory
32057
32058 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32059
32060         * ComboBox.cs:
32061                 - Fixes changing between styles
32062                 - Fixes simple mode
32063                 - Fixes last item crashing when navigating with keyboard
32064
32065 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
32066
32067         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
32068
32069 2005-10-05  Jackson Harper  <jackson@ximian.com>
32070
32071         * TreeView.cs: If updating the root node do a full refresh.
32072         * TreeNode.cs: The root node should be expanded by default. Also
32073         added a utility prop to tell if we are the root node.
32074         * TreeNodeCollection.cs: Only refresh if the node we are being
32075         added to is expanded. Also added a comment on a potential
32076         optimization.
32077         
32078 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
32079
32080         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
32081           in dispose method. Fixes #76330
32082
32083 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
32084
32085         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
32086
32087                 - Implements vertical and horizontal scrolling using XplatUI
32088                 - Fixes keyboard navagation
32089                 - Fixes EnsureVisible
32090                 - Drawing fixes
32091                 - Handles and draws focus properly
32092
32093
32094 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
32095
32096         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
32097           Create handle. NET_2_0: Destroy handle when value is null.
32098
32099 2005-10-03  Jackson Harper  <jackson@ximian.com>
32100
32101         * ScrollBar.cs: My last scrollbar patch was broken. This is a
32102         revert and a new patch to prevent the thumb from refreshing so
32103         much.
32104
32105 2005-10-02  Jackson Harper  <jackson@ximian.com>
32106
32107         * ScrollBar.cs: Don't update position if it hasn't actually
32108         changed. This occurs when you hold down the increment/decrement
32109         buttons and the thumb gets to the max/min.
32110
32111 2005-10-01  Jackson Harper  <jackson@ximian.com>
32112
32113         * Form.cs:
32114         * MdiChildContext.cs:
32115         * MdiClient.cs: Implement ActiveMdiChild in Form.
32116
32117 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
32118
32119         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
32120
32121 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
32122
32123         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
32124           be found
32125
32126 2005-09-30  Jackson Harper  <jackson@ximian.com>
32127
32128         * ListBox.cs: Don't do a full refresh unless some data has
32129         actually changed.
32130
32131 2005-09-30  Jackson Harper  <jackson@ximian.com>
32132
32133         * TreeView.cs: Make sure that the checkboxes size is factored in
32134         even when not visible.
32135
32136 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32137
32138         * FileDialog.cs: Fix Jordi's build break
32139
32140 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32141
32142         * FileDialog.cs: 
32143                 - Use standard the Windows colours for the combobox as espected
32144                 - Dispose objects that use resouces when no longer need them
32145
32146 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
32147
32148         * X11DesktopColors.cs: Initial incomplete implementation
32149         * XplatUIX11.cs: Added call to initialize X11DesktopColors
32150
32151 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
32152
32153         * Theme.cs: 
32154           - Switched Theme color names to match the names defined in 
32155             System.Drawing.KnownColors. Life's hard enough, no need to make 
32156             it harder.
32157           - Added setters to all theme color properties so themes can set
32158             their color schemes. The setters also propagate the color changes
32159             to System.Drawing.KnownColors via reflection
32160         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
32161           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
32162           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
32163           use the new, more logical theme color names
32164         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
32165           post-NT colors
32166         * ThemeWin32Classic.cs:
32167           - Removed code to set the old classic Windows colors. Instead it
32168             now relies on the colors returned by System.Drawing.KnownColors
32169             which will be either modern static colors (Unix) or colors
32170             read from the user's configuration (Win32)
32171           - Updated to use the new, more logical theme color names
32172           - Switched DataGrid drawing code to use only Theme colors instead of
32173             a mix of System.Drawing.KnownColors and Theme colors
32174           - DrawFrameControl(): Removed code that fills the button area, the
32175             fill would overwrite any previous fill done by a control. This
32176             fixes bug #75338 
32177           - Added DrawReversibleRectangle() stub
32178         * ScrollableControl.cs: Set visible state to false when scrollbars
32179           are removed (pdn fix)
32180         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
32181           DrawReversibleRectangle() method to allow drawing primitive 
32182           'rubber bands'
32183         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
32184
32185 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32186
32187         * ImageList.cs: Add(Icon): Create handle.
32188
32189 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
32190
32191         * ListView.cs:
32192         * ThemeWin32Classic.cs:
32193                 - Fixes detail mode
32194                 - Sets clippings
32195                 - Issues with drawing
32196
32197 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32198
32199         * ImageList.cs: Moved RecreateHandle back to ImageList as event
32200           source has to be the ImageList.
32201
32202 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32203
32204         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
32205
32206 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32207
32208         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
32209
32210 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32211
32212         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
32213
32214 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
32215         * GridItem.cs: Fixed TODOs
32216         * GridItemCollection.cs: Added ICollection interface
32217
32218 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
32219
32220         * ImageList.cs: Resize icons when needed.
32221
32222 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
32223
32224         * ListViewItem.cs
32225                 - Fixes GetBounds and returns on screen rects
32226         * ListView.cs:
32227                 - Fixes vertical and horzintal scrolling of items
32228         * ThemeWin32Classic.cs:
32229                 - Fixes drawing
32230                 
32231 2005-09-29  Raja R Harinath  <harinath@gmail.com>
32232
32233         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
32234
32235 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
32236
32237         * ImageList.cs: Added comments about handle creation. Moved Handle,
32238           HandleCreated and OnRecreateHandle implementations to ImageCollection.
32239           Handle is created in Add methods.
32240
32241 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32242          
32243         * DataGridDrawingLogic.cs: 
32244                 - Takes rows into account on Colum calculations
32245                 - Returns the column when clickig
32246         * DataGrid.cs:
32247                 - Fixes default HitTestInfo values
32248                 - Fixes HitTestInfo.ToString
32249                 - Fixes ResetBackColor          
32250         
32251 2005-09-28  Jackson Harper  <jackson@ximian.com>
32252
32253         * MdiChildContext.cs: Obey rules for fixed sized windows (no
32254         sizing or cursor changes). Also added some temp code to draw the
32255         titlebars text (Makes dev a little easier).
32256
32257 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32258
32259         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
32260
32261 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
32262          
32263         * ListBox.cs: Fixes bug 76253
32264
32265 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
32266
32267         * ImageList.cs: Added comments about the current implementation. Added
32268           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
32269           Format32bppArgb to preserve transparency and can use Graphics.FromImage
32270           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
32271           with Bitmap.LockBits for better performance. Revised the whole file to
32272           match MS.NET behaviour and provide better performance. Non-public
32273           interface members are calling public members even when they throw
32274           NotSupportedException for better maintainability. Moved ColorDepth,
32275           ImageSize, ImageStream and TransparentColor implementations to
32276           ImageCollection for better performance as these properties are not used
32277           by ImageList.
32278         * ImageListStreamer.cs: Added a new internal constructor that takes an
32279           ImageList.ImageCollection and serializes Images based on
32280           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
32281           match ImageList property name.
32282
32283 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
32284
32285         * ListBox.cs: Fixes IndexFromPoint for last item
32286
32287 2005-09-27  Jackson Harper  <jackson@ximian.com>
32288
32289         * Form.cs: Set the position of new mdi children correctly.
32290
32291 2005-09-27  Jackson Harper  <jackson@ximian.com>
32292
32293         * MdiClient.cs: New mdi children need to be added to the back of
32294         the controls collection so the zorder is set correctly. Also add a
32295         count of all the child windows that have been created.
32296
32297 2005-09-27  Jackson Harper  <jackson@ximian.com>
32298
32299         * Form.cs (CreateParams): Setup MDI forms correctly.
32300
32301 2005-09-27  Jackson Harper  <jackson@ximian.com>
32302
32303         * MdiChildContext.cs:
32304         * MonthCalendar.cs:
32305         * UpDownBase.cs:
32306         * ListBox.cs:
32307         * ListView.cs:
32308         * TextBoxBase.cs:
32309         * TreeView.cs:
32310         * ScrollableControl.cs:
32311         * ComboBox.cs: Add implicit controls using the new implict control
32312         functionality in ControlCollection. Also try to block multiple
32313         control add in a suspend/resume layout to save some cycles.
32314         
32315 2005-09-27  Jackson Harper  <jackson@ximian.com>
32316
32317         * Control.cs: Add functionality to the controls collection to add
32318         'implicit controls' these are controls that are created by the
32319         containing control but should not be exposed to the user. Such as
32320         scrollbars in the treeview.
32321         * Form.cs: The list var of the ControlsCollection is no longer
32322         available because of the potential of implicit controls getting
32323         ignored by someone accessing the list directly.
32324
32325 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
32326
32327         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
32328           loose it's parent. (Fixed bug introduced in r49103 when we added
32329           setting the child parent to null on Remove)
32330
32331 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
32332
32333         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
32334         * Splitter.cs: Added missing attributes for BorderStyle property.
32335         * TextBoxBase.cs: Marked Calculate* methods internal.
32336         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
32337         MS.NET.
32338
32339 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
32340          
32341         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
32342
32343 2005-09-25  Jackson Harper  <jackson@ximian.com>
32344
32345         * TreeView.cs: Update the node bounds correctly regardless of
32346         whether the node is visible.
32347
32348 2005-09-25  Jackson Harper  <jackson@ximian.com>
32349
32350         * ImageList.cs: Don't dispose the image after it is added to the
32351         image list. Only reformat images that need to be resized.
32352
32353 2005-09-25  Jackson Harper  <jackson@ximian.com>
32354
32355         * ImageList.cs: Don't set the format when changing the image.
32356
32357 2005-09-25  Jackson Harper  <jackson@ximian.com>
32358
32359         * TreeView.cs: We can't just assume the node has a font. Use the
32360         treeviews font if no node font is available.
32361
32362 2005-09-25  Jackson Harper  <jackson@ximian.com>
32363
32364         * TreeView.cs: Allow the scrollbars to be reset with negative
32365         values.
32366         - Don't add scrollbars to negative sized windows.
32367
32368 2005-09-23  Jackson Harper  <jackson@ximian.com>
32369
32370         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
32371         old Mono.Posix. Also remove some stray code that shouldn't have
32372         been committed.
32373
32374 2005-09-23  Jackson Harper  <jackson@ximian.com>
32375
32376         * TreeView.cs: Attempt at proper sizing of the horizontal
32377         scrollbar. Also don't resize the scrollbars unless they are
32378         visible.
32379
32380 2005-09-23  Jackson Harper  <jackson@ximian.com>
32381
32382         * TreeView.cs: We don't need to expand the invalid area when the
32383         selection changes, as this is all drawn in the node's bounding
32384         box. The area needs to be expanded (previous typo was contracting
32385         it) when the focus rect moves.
32386
32387 2005-09-23  Jackson Harper  <jackson@ximian.com>
32388
32389         * TreeView.cs: Display the selection box under the correct
32390         circumstances. We were rendering white text with no selection box
32391         before.
32392
32393 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
32394
32395         * TextControl.cs(Split): Now updates selection start/end if it points 
32396           into a line that's being split. Fixes a FIXME and bug #75258
32397
32398 2005-09-23  Jackson Harper  <jackson@ximian.com>
32399
32400         * Binding.cs:
32401         * ListControl.cs: Don't use the path when retrieving binding
32402         managers from the binding context. My bat sense tells me that the
32403         path is only used on insertion.
32404
32405 2005-09-22  Jackson Harper  <jackson@ximian.com>
32406
32407         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
32408
32409 2005-09-22  Jackson Harper  <jackson@ximian.com>
32410
32411         * Splitter.cs: There are special cursors used for splitting.
32412         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
32413
32414 2005-09-22  Jackson Harper  <jackson@ximian.com>
32415
32416         * Splitter.cs: Change the cursor appropriately when the splitter
32417         is moused over, so the user actually knows there is a splitter
32418         there.
32419
32420 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32421
32422        * Label.cs : Fix ToString method to give same output as MS.NET
32423
32424 2005-09-22  Jackson Harper  <jackson@ximian.com>
32425
32426         * TreeView.cs: Create the scrollbars when the handle is created
32427         and add them right away, just make them invisble. Also account for
32428         the window being shrunk vertically to the point that the vert
32429         scrollbar needs to be added.
32430         - Remove some 0.5 adjustments to get around anti aliasing issues.
32431         
32432 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
32433          
32434         * MainMenu.cs: Fixes default value
32435         * MenuItem.cs: Fixes default value
32436
32437 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
32438
32439         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
32440
32441 2005-09-21  Jackson Harper  <jackson@ximian.com>
32442
32443         * Control.cs: Don't try to set the border style on the window if
32444         it hasn't been created. When the window is created the border
32445         style will be used.
32446
32447 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32448
32449         * Control.cs (Update): Don't call XplatUI if we don't have a
32450           window handle yet
32451
32452 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32453
32454         * ContainerControl.cs: Instead of throwing an exception, print
32455           a one-time warning about Validate not being implemented
32456         * XplatUIWin32.cs: Removed debug output
32457
32458 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
32459
32460         * Control.cs: Only set XplatUI background if we expect the windowing
32461           system to handle the background. This stops controls that draw their
32462           own background from flickering
32463
32464         * XplatUIX11.cs: Support custom visuals and colormaps for window 
32465           creation. This allows, amongst other things, using MWF X11 windows 
32466           with OpenGL.
32467
32468 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
32469
32470         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
32471           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
32472           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
32473           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
32474           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
32475           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
32476           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
32477           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
32478           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
32479           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
32480           GridColumnStylesCollection.cs, 
32481           IDataGridColumnStyleEditingNotificationService.cs,
32482           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
32483           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
32484           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
32485           TreeNodeCollection.cs, AmbientProperties.cs, 
32486           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
32487           DataObject.cs, ErrorProvider.cs, Splitter.cs,
32488           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
32489           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
32490           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
32491           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
32492           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
32493           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
32494           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
32495           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
32496           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
32497           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
32498           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
32499           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
32500           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
32501           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
32502           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
32503           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
32504           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
32505           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
32506           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
32507           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
32508           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
32509           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
32510           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
32511           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
32512           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
32513           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
32514           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
32515           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
32516           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
32517           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
32518           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
32519           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
32520           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
32521           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
32522           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
32523
32524 2005-09-21  Jackson Harper  <jackson@ximian.com>
32525
32526         * TreeNode.cs: Call Before/After Expand not Collapse when
32527         expanding.
32528
32529 2005-09-20  Jackson Harper  <jackson@ximian.com>
32530         
32531         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
32532
32533 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32534          
32535         * ListViewItem.cs:
32536                 - Fixes bug 76120
32537                 - Fixes proper storing of subitems
32538                 - Fixes not updated items
32539
32540 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
32541
32542         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
32543           things if our window handle isn't created yet. Also disabled 
32544           debug for TextBoxBase
32545
32546 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
32547
32548         * MenuAPI.cs: Remove filtering of events to allow menu usage
32549
32550 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32551
32552         * Cursor.cs: Allow null to be passed to Cursor.Current.
32553
32554 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
32555
32556         * ThemeWin32Classic.cs:
32557           - Change some private methods/fields to protected virtual so that 
32558             they can be accessed and overriden in derived classes
32559           - First refactoring of some methods. Derived themes now don't 
32560             need to duplicate the complete code from ThemeWin32Classic
32561         * ThemeNice.cs:
32562           - Added nice StatusBar
32563           - Derive from ThemeWin32Classic and not Theme
32564           - Removed duplicate ThemeWin32Classic code
32565
32566 2005-09-20  Miguel de Icaza  <miguel@novell.com>
32567
32568         * Control.cs (ControlCollection.Add): If the value null is passed
32569         the control is ignored. 
32570
32571         Optimize this loop.
32572
32573 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
32574
32575         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
32576           PostQuitMessage state.
32577         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
32578
32579 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
32580
32581         * Application.cs: Our constructor will never get called, move 
32582           initialization to fields; fixes bug #75933
32583
32584 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
32585
32586         * FileDialog.cs :
32587                 - Allow files to be selected properly using file name
32588                 combo box.
32589                 - Add ability to change diretory (absolute / relative)
32590                 using file name combo box.
32591
32592 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
32593          
32594         * ListBox.cs: 
32595                 - Fixes Multicolumn listboxes item wrong calculations
32596                 - Allows to click when only one item is in the listbox
32597                 - Fixes crash when no items using keyboard navigation
32598
32599 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
32600
32601         * ComboBox.cs: Reverted almost everything from the latest patch which
32602           broke ComboBox
32603
32604 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
32605         
32606         * ToolTip.cs:
32607                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
32608         * ComboBox.cs:
32609                 - When DropDownStyle is Simple, it does not show scrollbar 
32610                 to the last item of the list.
32611                 - When DropDownStyle is Simple, it crashed when the list was 
32612                 scrolled down with the down cursor key.
32613                 - Fixed a bug that when DropDownStyle is DropDownList, the 
32614                 selected item was not shown.
32615                 - The position of the selected item was not preserved when 
32616                 the next dropdown happened.
32617         * ThemeWin32Classic.cs:
32618                 - Items were wrapped at the right end.
32619         * CheckedListBox.cs:
32620                 - Fixed Add method
32621         * ListBox.cs:
32622                 - Items should be fully shown.
32623                 - When resizing and vertical scrollbar disappeared, the item 
32624                 of index 0 should be on the top of the list.
32625                 - GetItemRectangle should consider the size of ver. scrollbar
32626         * StatusBar.cs:
32627                 - SizingGrip area should not be allocated when it is not 
32628                 displayed.
32629                 - Now it reflects MinWidth of the containing panel and 
32630                 fixed a crash that happens when its width becomes so small.
32631
32632 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32633
32634         * CheckedListBox.cs: Fixes bug 76028
32635         * ListBox.cs: Fixes bug 76028
32636
32637 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
32638
32639         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
32640         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
32641
32642 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
32643
32644         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
32645
32646 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32647
32648         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
32649
32650 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
32651
32652         * IRootGridEntry.cs: Added
32653         * PropertyGridCommands.cs: Added
32654         * PropertiesTab.cs: Added missing methods and property
32655         * PropertyGridView.cs: Made class internal
32656         * PropertyGridTextBox.cs: Made class internal
32657
32658 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32659
32660         * MimeIcon.cs: Try to check some other environment variables
32661           if "DESKTOP_SESSION" returns "default"
32662
32663 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32664
32665         * ThemeNice.cs: Corrected background colors (e.g. menus)
32666         * ColorDialog.cs: Use correct background colors for controls
32667
32668 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
32669
32670         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
32671
32672 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
32673
32674         * RichTextBox.cs: Added initial implementation
32675         * lang.cs: Removed. Was accidentally checked in long time ago
32676         * TODO: Removed. Contents were obsolete
32677
32678 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32679                                                                                 
32680         * PropertiesTab.cs : Added
32681
32682 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
32683                                                                                 
32684         * PropertyGrid.cs : Update
32685         * PropertyGridView.cs : Update
32686         * System.Windows.Forms.resx : Added images and strings
32687
32688 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
32689
32690         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
32691  
32692 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
32693
32694         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
32695           a busy loop right after the Ungrab the X11 display is otherwise 
32696           blocked
32697
32698 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
32699
32700         * ThemeWin32Classic.cs: Optimise the use of clipping
32701
32702 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
32703
32704         * DataGrid.cs: fixes recursion bug
32705
32706 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
32707
32708         * ThemeNice.cs: 
32709           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
32710           - Cleanup
32711
32712 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
32713
32714         * ThemeNice.cs: Draw nice ProgressBars
32715
32716 2005-09-01  Miguel de Icaza  <miguel@novell.com>
32717
32718         * VScrollBar.cs: Another buglet found by Aaron's tool. 
32719
32720         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
32721         bug finder.
32722
32723 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
32724
32725         * ThemeNice.cs:
32726           - Added nicer menu drawing
32727           - Updated DrawTab
32728           - some refactoring
32729
32730 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32731
32732         * CreateParams.cs (ToString): Made output match MS
32733         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
32734             handle is already created (to avoid forcing window creation)
32735         * XplatUIX11.cs: Set window text to caption after creating window,
32736           in case Text was set before window was created
32737         * Form.cs: Use this.Text instead of a static string as caption
32738
32739 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32740
32741         * NotifyIcon.cs: Don't set the window to visible; this screws
32742           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
32743           OnPaint without a bitmap)
32744         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
32745           happen very often anyway; we could add the check to the WM_PAINT 
32746           event generation code
32747
32748 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
32749
32750         * NotifyIcon.cs: Fill the icon area with a background color, to 
32751           avoid 'residue' when transparent icons are drawn
32752         * XplatUIX11.cs:
32753           - Handle whole_window == client_window when destroying windows
32754           - SystrayAdd(): Set client_window to whole_window value to
32755             get mouse and other events passed to NotifyIcon
32756
32757 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
32758
32759         * Form.cs: Set proper default for Opacity property
32760         * NotifyIcon.cs:
32761           - ShowSystray(): Don't bother creating telling the OS
32762             about the systray item if no icon is provided
32763           - Now handles WM_NCPAINT message to deal with whole/client window
32764             split
32765           - Create window as visible to not get caught by Expose optimization
32766         * Hwnd.cs: Removed debug message
32767         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
32768           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
32769             PaintEventStart/End to use new client argument
32770         * TextBoxBase.cs:
32771           - Commented out debug messages
32772           - Switched PaintEventStart/End to use new client argument
32773         * XplatUI.cs: Added client window bool to PaintEventStart()/
32774           PaintEventEnd() calls, to support drawing in non-client areas
32775         * XplatUIDriver.cs: 
32776           - Added client window bool to PaintEventStart()/PaintEventEnd() 
32777             calls, to support drawing in non-client areas
32778           - Added conditional compile to allow using MWF BeginInvoke 
32779             on MS runtime
32780         * XplatUIX11.cs:
32781           - Added some conditional debug output
32782           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
32783             whole/client window split
32784           - Implemented handling of client argument to PaintEventStart()/End()
32785         * Control.cs:
32786           - Throw exception if BeginInvoke() is called and the window handle
32787             or one of the window's parent handles is not created
32788           - Added conditional compile to allow using MWF BeginInvoke on
32789             MS runtime
32790           - get_Parent(): Only sets parent if handle is created. This avoids
32791             forcing window handle creation when parent is set.
32792           - Now fires Layout and Parent changed events in proper order
32793           - Switched to use Handle instead of window.Handle for Z-Order setting,
32794             the get_Parent() patch above causes us to possibly get null for 'window'
32795           - Implemented handling of client argument to PaintEventStart()/End()
32796           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
32797             default handling)
32798           - Now sends a Refresh() to all child windows when Refresh() is called
32799
32800 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
32801
32802         * Form.cs: Added (non-functional) Opacity property
32803         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
32804
32805 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
32806         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
32807           use export MONO_THEME=nice to activate it.
32808           Currently supported controls:
32809           - Button
32810           - ComboBox
32811           - ScrollBar
32812           - TabControl (TabAlignment.Top only, other will follow)
32813         * ThemeEngine.cs: Add theme nice
32814         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
32815           if enabled
32816
32817 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
32818
32819         * Splitter.cs: Resize docked control and its neighbor.
32820
32821 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32822         -- Making Windows with Menus layout correctly --
32823         * Form.cs : The first leg of the fix
32824                 Menu setter - adjust Client Size as needed to make space for the menu
32825                 SetClientSizeCore - doesn't call base version to be able to pass the 
32826                         menu handle to XplatUI.CalculateWindowRect
32827         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
32828         * XplatUIX11.cs: The critical second leg of the fix
32829                 GetWindowPos needs to use a recalculated client_rect
32830                 so that resizing the window doesn't break layout of child controls. 
32831                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
32832                 Lots of \t\n killed
32833
32834 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
32835
32836         * Label.cs: Now properly recalculates width and height on Font and Text
32837           changes if AutoSize is set
32838
32839 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
32840         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
32841
32842 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
32843
32844         * ImageList.cs: Makes ToString method compatible with MS
32845
32846 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
32847
32848         * MenuAPI.cs: fixes bug 75716
32849
32850 2005-08-11 Umadevi S <sumadevi@novell.com>
32851         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
32852
32853 2005-08-11 Umadevi S <sumadevi@novell.com>
32854         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
32855
32856 2005-08-10  Umadevi S <sumadevi@novell.com>
32857         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
32858
32859 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
32860
32861         * Menu.cs: fixes bug 75700
32862         * MenuAPI.cs: fixes navigation issues
32863
32864 2005-08-09  Umadevi S <sumadevi@novell.com>
32865         * CheckedListBox.cs - simple fix for GetItemChecked.
32866
32867 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
32868
32869         * ComboBox.cs: Serveral fixes
32870         * ListBox.cs: Serveral fixes
32871
32872 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32873
32874         * ComboBox.cs: Fixes FindString methods and GetItemHeight
32875         * ListBox.cs: Fixes FindString methods
32876
32877 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
32878
32879         * DataGrid.cs: fixes bugs exposed by new tests
32880
32881 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
32882
32883         * Mime.cs: Compile Mono assembly references only if compiling
32884           with Mono (Allows to build with VS.Net again)
32885
32886 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
32887
32888         * Control.cs (PaintControlBackground): Draw background image
32889         corrrectly.
32890         (CheckForIllegalCrossThreadCalls): Stubbed.
32891         
32892         * Form.cs (OnCreateControl): Center when should be centered.
32893         
32894         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
32895
32896 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
32897
32898         * Binding.cs: Binding to properties should be case unsensitive
32899
32900 2005-07-18 vlindos@nucleusys.com
32901
32902         * DataGrid.cs: fixes setmember order
32903
32904 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
32905
32906         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
32907         * FileDialog.cs: FileDialog is now resizable and uses the new
32908           MimeIconEngine
32909
32910 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
32911
32912         * DataGridTextBoxColumn.cs: default value
32913         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
32914         * GridTableStylesCollection.cs: fixes checking MappingName
32915         * DataGridDrawingLogic.cs: fixes drawing logic issues
32916         * DataSourceHelper.cs: rewritten to make compatible with more data sources
32917         * DataGrid.cs: fixes    
32918
32919 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
32920
32921         * MimeGenerated.cs: Use case sensitive comparer for
32922           NameValueCollections
32923
32924 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
32925
32926         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
32927         * ThemeWin32Classic.cs: bug fixes, code refactoring
32928         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
32929         * DataGrid.cs: bug fixes, code refactoring
32930         * DataGridTextBox.cs: bug fixes, code refactoring
32931         * DataGridColumnStyle.cs:  bug fixes, code refactoring
32932         * Theme.cs:  bug fixes, code refactoring
32933
32934 2005-07-01  Peter Bartok  <pbartok@novell.com> 
32935
32936         * TextControl.cs: Quick fix for the reported crash on ColorDialog
32937           and other text box usage
32938
32939 2005-07-01  Jackson Harper  <jackson@ximian.com>
32940
32941         * TabControl.cs: Make sure the bottom of the tab covers the pages
32942         border.
32943
32944 2005-06-30  Peter Bartok  <pbartok@novell.com> 
32945
32946         * Form.cs (ShowDialog): Assign owner of the dialog
32947         * TextBoxBase.cs: Always refresh caret size when deleting, caret
32948           might have been moved to a tag with different height
32949
32950 2005-06-30  Jackson Harper  <jackson@ximian.com>
32951
32952         * Form.cs: Don't create an infinite loop when setting focus
32953         * MenuItem.cs: Don't dirty the parents if we don't have any
32954
32955 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
32956
32957         * LibSupport.cs: Rename
32958
32959 2005-06-29  Peter Bartok  <pbartok@novell.com>
32960
32961         * TextBoxBase.cs: Re-align caret after deleting a character
32962         * TextControl.cs:
32963           - DeleteChars(): Ensure that tag covers the provided position
32964           - StreamLine(): Drop reference for dropped tag
32965
32966 2005-06-29  Peter Bartok  <pbartok@novell.com> 
32967
32968         * TextControl.cs: 
32969           - Selections now work properly, anchoring at the initial location
32970             and properly extending in either direction (SetSelectionToCaret(),
32971             SetSelectionStart() and SetSelectionEnd())
32972           - No longer redraws the whole control on selection change, now
32973             calculates delta between previous and new selection and only
32974             invalidates/redraws that area
32975           - Fixed FindPos() math off-by-one errors
32976           - Changed DeleteChars() to verify the provided tag covers the
32977             provided position, selections may have a tag that doesn't cover
32978             the position if the selection is at a tag border
32979           - Fixed off-by-one errors in DeleteChars()
32980           - Added missing streamlining check in DeleteChars() to remove
32981             zero-length tags
32982           - Implemented Invalidate() method, now properly calculates exposures
32983             between two given lines/positions
32984           - Implemented SetSelection()
32985           - Obsoleted and removed FixupSelection()
32986           - Improved RecalculateDocument() logic, removing code duplication
32987
32988 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32989
32990         * LibSupport.cs: changes to match different input/output arguments.
32991
32992 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
32993
32994         * LibSupport.cs: added libsupport.so init routine.
32995
32996 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
32997         
32998         * ControlBindingsCollection.cs
32999                 - Throws an exception on null datasource when adding
33000                 - Checks for duplicated bindings when adding
33001
33002 2005-06-28  Jackson Harper  <jackson@ximian.com>
33003
33004         * TreeView.cs (OnKeyDown): Support left and right properly
33005         (navigates as well as expanding and collapsing.
33006         - Add support for Multiply, this expands all the selected nodes
33007         children.
33008         - Fix some tabbing.
33009
33010 2005-06-28  Jackson Harper  <jackson@ximian.com>
33011
33012         * TreeView.cs: Implement keyboard navigation, currently supports,
33013         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
33014         support for toggling checkboxes with the space bar.
33015
33016 2005-06-28  Jackson Harper  <jackson@ximian.com>
33017
33018         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
33019         tree.
33020
33021 2005-06-28  Jackson Harper  <jackson@ximian.com>
33022
33023         * TreeView.cs: Add missing event.
33024
33025 2005-06-27  Peter Bartok  <pbartok@novell.com> 
33026
33027         * TextControl.cs:
33028           - Made line ending size configurable (now allows for counting 
33029             lineendings as \n or \r\n)
33030           - Added margin to viewport to keep caret visible on right side
33031           - Fixed translation routines for line/pos to documentpos to consider
33032             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
33033           - Fixed some line-endings to be unix style
33034           - Fixed Document.FormatText to perform it's calculations 1-based
33035           - Added descriptions for a few methods that might otherwise get 
33036             used wrong
33037           - Added NOTE section with some basic conventions to remember at 
33038             the top of the file
33039           - Major fixup for RichTextBox selection drawing:
33040             * Fixed crashes when multiple tags on a single line were selected
33041             * fixed selection box drawing not overlaying text
33042             * fixed bogus offset calculation for tags not starting at index 1
33043             * Switched behaviour from using multiple Substrings of a 
33044               StringBuilder.ToString() to using multiple 
33045               StringBuilder.ToString(start, length) statements, hoping this is
33046               faster (kept original version commented out in the code, in case
33047               original version was faster)
33048         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
33049           alignment != Left
33050         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
33051           call it as well
33052
33053 2005-06-27  Jackson Harper  <jackson@ximian.com>
33054
33055         * TabControl.cs: Move to the left and right with the arrow
33056         keys. These keys don't cycle beyond first and last like
33057         tab. Refresh all the tabs when scrolling them to the left or
33058         right.
33059
33060 2005-06-27  Jackson Harper  <jackson@ximian.com>
33061
33062         * TabControl.cs:
33063           - ToString: Added method
33064           - CreateParams: Remove TODO and comment
33065           - OnKeyDown: Cycle through bounds properly.
33066           - SelectedIndex: Scroll to the right or left if we need to
33067           display the newly selected tab.
33068
33069 2005-06-23  Jackson Harper  <jackson@ximian.com>
33070
33071         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
33072         set.
33073
33074 2005-06-23  Jackson Harper  <jackson@ximian.com>
33075
33076         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
33077         CTRL-SHIFT-TAB, and HOME, END are there any others?
33078
33079 2005-06-23  Jackson Harper  <jackson@ximian.com>
33080
33081         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
33082
33083 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33084         
33085         * DataGridTextBoxColumn.cs: fixes and enhancements
33086         * ThemeWin32Classic.cs: fixes and enhancements
33087         * DataGridBoolColumn.cs:  fixes and enhancements
33088         * DataGridDrawingLogic.cs:  fixes and enhancements
33089         * CurrencyManager.cs: fixes and enhancements
33090         * DataGrid.cs: fixes and enhancements
33091         * DataGridColumnStyle.cs:  fixes and enhancements
33092
33093 2005-06-22  Jackson Harper  <jackson@ximian.com>
33094
33095         * TabControl.cs: Add some missing methods that just call into the
33096         base. Make the TabPageCollection's IList interface behave in the
33097         same manner as the MS implementation.
33098
33099 2005-06-22  Peter Bartok  <pbartok@novell.com> 
33100
33101         * TextControl.cs: Added sanity check
33102         * TextBoxBase.cs: 
33103           - Fixed wrapping behaviour, don't set wrap on single line controls
33104             (this fixes the breakage of colordialog introduced in an earlier
33105              checkin)
33106           - Added rudimentary support for autoscrolling right-aligned controls
33107             (still needs fixing, also, center alignment scroll is missing)
33108
33109 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
33110         
33111         * ScrollBar.cs: Fixes thumbpos on Maximum values
33112
33113 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
33114         
33115         * PropertyGridView.cs: Pass context information to UITypeEditors 
33116
33117 2005-06-21  Peter Bartok  <pbartok@novell.com> 
33118
33119         * TextBoxBase.cs:
33120           - Now calling PositionCaret with absolute space coordinates
33121           - Enabled vertical scrolling
33122           - Better tracking of scrollbar changes, tied into WidthChange
33123             event
33124           - Improved cursor tracking
33125           - Removed debug output
33126         * TextControl.cs:
33127           - PositionCaret coordinates are now works in absolute space, not 
33128             the canvas
33129           - Improved tracking of document size
33130           - Added events for width and height changes
33131
33132 2005-06-21  Peter Bartok  <pbartok@novell.com>
33133
33134         * Form.cs: Set focus to active control when form is activated
33135         * TextControl.cs: 
33136           - Added word-wrap functionality to RecalculateLine() 
33137           - Added some short function descriptions for VS.Net to aid in
33138             writing dependent controls
33139           - Added Caret property, returning the current coords of the caret
33140           - Added ViewPortWidth and ViewPortHeight properties
33141           - Added Wrap property
33142           - Added CaretMoved event
33143           - Removed some old debug code
33144           - Split() can now create soft splits
33145           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
33146           - Added method to format existing text
33147           - Fixed size/alignment calculations to use viewport
33148           - RecalculateDocument now can handle changing line-numbers while
33149             calculating lines
33150
33151         * TextBox.cs:
33152           - Added some wrap logic, we don't wrap if alignment is not left
33153           - Added casts for scrollbar var, base class switched types to
33154             also support RichTextBoxA
33155           - Implemented handling of scrollbar visibility flags
33156
33157         * TextBoxBase.cs:
33158           - Switched scrollbars type to RichTextBoxScrollBars to support
33159             RichTextBox
33160           - Added tracking of canvas width/height
33161           - Switched scrollbars to be not selectable (to keep focus on text)
33162           - Added central CalculateDocument() method to handle all redraw
33163             requirements
33164           - Added ReadOnly support
33165           - Added WordWrap support
33166           - Fixed handling of Enter key (we now treat it as a DialogKey)
33167           - Fixed caret positioning when h or v scroll is not zero
33168           - Fixed placing/generation of vertical scrollbar
33169           - Added CalculateScrollBars() method to allow updating scrollbar
33170             limits and visibility
33171           - Fixed handling of horizontal scroll
33172           - Added handling of vertical scroll
33173           - Implemented auto-'jump' when caret moves to close to a left or
33174             right border and there is text to be scrolled into view (currently
33175             there's the potential for a stack overflow, until a bug in
33176             scrollbar is fixed)
33177
33178 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
33179         
33180         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
33181
33182 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
33183
33184         * Mime.cs:
33185         - added inodes.
33186         - return application/x-zerosize for files with size zero
33187           (if no extension pattern matches).
33188         - check matches collection for strings too.
33189         - return only the first mime type if the name value
33190           collection has more than one mime type.
33191
33192 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
33193         
33194         * PropertyGrid.cs: Cleaned up some TODOs
33195         * PropertyGridView.cs: Added support for UITypeEditors
33196
33197 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33198         
33199         * DataGrid.cs: clears cached value
33200
33201 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
33202
33203         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
33204         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
33205         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
33206         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
33207         
33208 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
33209
33210         * ThemeWin32Classic.cs: fixes colour
33211
33212 2005-06-15  Peter Bartok  <pbartok@novell.com>
33213
33214         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
33215         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
33216         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
33217         * Control.cs: Added some MWFCategory and MWFDescription attributes
33218         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
33219
33220 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
33221
33222         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
33223         usage
33224
33225 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
33226
33227         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
33228         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
33229         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
33230         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
33231         * DataGrid.cs: default datagrid settings for Default Styles, fixes
33232         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
33233
33234 2005-06-13  Jackson Harper  <jackson@ximian.com>
33235
33236         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
33237         isn't printed when the user enables dropping. (X11 does accept
33238         drops).
33239         
33240 2005-06-13  Jackson Harper  <jackson@ximian.com>
33241
33242         * TreeView.cs: Remove some TODOS.
33243
33244 2005-06-13  Jackson Harper  <jackson@ximian.com>
33245
33246         * Form.cs: Hook into the mdi framework.
33247         * MdiClient.cs: Use the base control collections add method so
33248         parents get setup correctly. Set the default back colour and dock
33249         style.
33250         * MdiChildContext.cs: New class, this bad actor handles an
33251         instance of an MDI window. Right now there is only basic
33252         support. You can drag, close, and resize windows. Minimize and
33253         Maximize are partially implemented.
33254
33255 2005-06-13  Jackson Harper  <jackson@ximian.com>
33256
33257         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
33258         freaky when both vals are negative. NOTE: There are probably other
33259         places in XplatUIX11 that this needs to be done.
33260
33261 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
33262
33263         * DataGrid.cs: implement missing methods, move KeyboardNavigation
33264         * DataGridColumnStyle.cs: fixes signature
33265
33266 2005-06-12  Jackson Harper  <jackson@ximian.com>
33267
33268         * XplatUIX11.cs: Use sizing cursors similar to the ones on
33269         windows.
33270
33271 2005-06-11  Jackson Harper  <jackson@ximian.com>
33272
33273         * StatusBarPanel.cs: Signature cleanups. Implement
33274         BeginInit/EndInit.
33275
33276 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
33277
33278         * DataGridTextBoxColumn.cs: Honors aligment
33279         * GridColumnStylesCollection.cs: Contains is case unsensitive
33280         * GridTableStylesCollection.cs: several fixes
33281         * DataGridTableStyle.cs: default column creation
33282         * DataGridDrawingLogic.cs: fixes
33283         * CurrencyManager.cs: ListName property
33284         * DataGrid.cs: multiple styles support
33285         * DataGridColumnStyle.cs: fixes
33286         
33287
33288 2005-06-10  Peter Bartok  <pbartok@novell.com>
33289
33290         * Control.cs(Select): Moved SetFocus call to avoid potential
33291           loops if controls change the active control when getting focus
33292         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
33293           the up/down buttons
33294
33295 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
33296
33297         * ImageListConverter.cs: Implemented
33298
33299 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33300
33301         * MonthCalendar.cs: Wired in NumericUpDown control for year
33302
33303 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
33304
33305         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
33306           DoubleClick events, since they are not meant to be fired.
33307
33308 2005-06-09  Peter Bartok  <pbartok@novell.com>
33309
33310         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
33311           Jonathan's standalone controls into MWF, implemented missing
33312           events, attributes and methods; added xxxAccessible classes
33313         * AccessibleObject.cs: Made fields internal so other classes
33314           can change them if needed
33315
33316 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
33317
33318         * UpDownBase.cs: Complete implementation
33319         * NumericUpDown.cs: Complete implementation
33320         * DomainUpDown.cs: Complete implementation
33321
33322 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
33323
33324         * DataGridTextBoxColumn.cs: drawing fixes
33325         * DataGridCell.cs: fixes ToString method to match MSNet
33326         * DataGridTableStyle.cs: fixes
33327         * DataGridBoolColumn.cs: fixes, drawing
33328         * DataGridDrawingLogic.cs: fixes, new methods
33329         * DataGridTextBox.cs: Keyboard and fixes
33330         * DataGrid.cs:
33331                 - Keyboard navigation
33332                 - Scrolling fixes
33333                 - Row selection (single, multiple, deletion, etc)
33334                 - Lots of fixes
33335         
33336 2005-06-07  Jackson Harper  <jackson@ximian.com>
33337
33338         * ThemeWin32Classic.cs: Clear the background area when drawing
33339         buttons.
33340
33341 2005-06-06  Peter Bartok  <pbartok@novell.com>
33342
33343         * ImageListStreamer.cs: Fixed signature for GetData
33344         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
33345         * ComboBox.cs:
33346           - Added missing ChildAccessibleObject class
33347           - Added missing OnXXXFocus overrides, switched to using those
33348             instead of the event handler
33349         * Control.cs:
33350           - Added Parent property for ControlAccessibleObject
33351           - Fixed signatures
33352           - Fixed attributes
33353           - Added ResetBindings()
33354         * ListBindingConverter.cs: Implemented some methods
33355         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
33356         * ImageList.cs: Implemented basic handle scheme, removed TODOs
33357         * ContainerControl.cs: Fixed signature, now subscribing to the
33358           ControlRemoved event instead of overriding the handler, LAMESPEC
33359         * CurrencyManager.cs: Added missing attribute
33360         * MonthCalendar.cs: Added missing properties
33361
33362 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33363
33364         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
33365         
33366 2005-06-06  Gaurav Vaish and Ankit Jain
33367
33368         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
33369         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
33370         
33371 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
33372
33373         * Control.cs: fixes CreateParams Width / Height.
33374
33375 2005-06-05  Peter Bartok  <pbartok@novell.com>
33376
33377         * Win32DnD.cs: Removed compilation warnings
33378
33379 2005-06-05  Peter Bartok  <pbartok@novell.com>
33380
33381         * Control.cs (CreateParams): Since we don't know if one of the
33382           properties we use is overridden, lets make sure if we fail accessing
33383           we continue with a backup plan
33384
33385 2005-06-05  Peter Bartok  <pbartok@novell.com>
33386
33387         * Win32DnD.cs:
33388           - Removed debug output
33389           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
33390             struct
33391           - Plugged resource leak
33392         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
33393           MS size
33394
33395 2005-06-05  Peter Bartok  <pbartok@novell.com>
33396
33397         * XplatUIWin32.cs: Removed DnD code
33398         * Win32DnD.cs: Implemented drop source and drop target functionality
33399
33400 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
33401
33402         * UpDownBase.cs: remove duplicate addition of event, enable some code
33403         that was commented out.
33404         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
33405         Validate input when a key is pressed. It works fine now for every
33406         combination of Hexadecimal. Only missing some drawing love when sharing
33407         space with other controls.
33408
33409 2005-06-04  Peter Bartok  <pbartok@novell.com>
33410
33411         * Control.cs:
33412           - We need to pass a window for DragDrop, so enable callback events
33413           - Added DnD callback events when being a DragSource
33414         * XplatUI.cs (StartDrag): Added window handle argument
33415         * XplatUIDriver.cs (StartDrag): Added window handle argument
33416         * QueryContinueDragEventArgs: Made fields internally accessible so
33417           drivers can set them
33418         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
33419           can set them
33420
33421 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
33422
33423         * DataGridTextBoxColumn.cs: column text editing
33424         * DataGridTableStyle.cs: Respect columns styles created by the user
33425         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
33426         * DataGridBoolColumn.cs: bool column editing
33427         * DataGrid.cs: fixes to scrolling, properties, etc
33428         * DataGridTextBox.cs: handle keyboard
33429         * DataGridColumnStyle.cs: fixes
33430
33431 2005-06-02  Jackson Harper  <jackson@ximian.com>
33432
33433         * ImageListStreamer.cs: Somewhat broken implementation of
33434         GetObjectData. The RLE needs some work to match MS properly.
33435
33436 2005-06-02  Jackson Harper  <jackson@ximian.com>
33437
33438         * X11Dnd.cs: Attempting to keep at least one file in MWF
33439         monostyled.
33440
33441 2005-06-02  Peter Bartok  <pbartok@novell.com>
33442
33443         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
33444           that way
33445
33446 2005-06-02  Peter Bartok  <pbartok@novell.com>
33447
33448         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
33449         * XplatUI.cs: Added DoDragDrop() method
33450         * XplatUIDriver.cs: Added DoDragDrop() method
33451
33452 2005-06-02  Jackson Harper  <jackson@ximian.com>
33453
33454         * Splitter.cs: Implement BorderStyle.
33455
33456 2005-06-02  Jackson Harper  <jackson@ximian.com>
33457
33458         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
33459         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
33460         X11 using XDND.
33461
33462 2005-06-02  Peter Bartok  <pbartok@novell.com>
33463
33464         * DataObject.cs:
33465           - Added Data setter
33466           - Fixed broken insertion code for SetData, now also
33467             overwrites any existing entry of the same format name
33468         * Hwnd.cs: Added list of pointers that automatically gets
33469           freed when the window is disposed
33470         * XplatUI.cs: Call driver initialization method when loading
33471           a driver
33472         * Control.cs:
33473           - OnDragLeave takes EventArgs, not DragEventArgs
33474           - Added setting of WS_EX_ACCEPTFILES style when dropping is
33475             supported
33476           - Forces style update when drop state changes
33477         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
33478           not perfect since we cannot (yet) call the IDataObject.GetData()
33479           method, we keep getting 0x80004005 error, dunno why)
33480
33481 2005-06-02  Peter Bartok  <pbartok@novell.com>
33482
33483         * DragEventArgs.cs: Make fields internal so we can cache the
33484           object and re-set the fields from XplatUI
33485
33486 2005-06-02  Jackson Harper  <jackson@ximian.com>
33487
33488         * Control.cs: Add some internal methods so the DnD subsystem can
33489         raise DnD events. Also call into the driver when AllowDrop is set.
33490         * XplatUI.cs:
33491         * XplatUIDriver.cs: New method for setting whether or not a window
33492         is allowed to accept drag and drop messages.
33493                 
33494 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
33495         
33496         * ScrollBar.cs: Make sure that values sent in Scroll events
33497         are always between Maximum and Minimum.
33498
33499 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
33500
33501         * Menu.cs: Call MenuChanged when menuitem visibility has been
33502         changed.
33503         * MenuItem.cs: Rebuild menu when item is (not) visible.
33504         * MainMenu.cs: MainMenu has special MenuChanged.
33505         * Theme.cs: Caption and FrameBorderSize are not fixed.
33506         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
33507         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
33508         * XplatUIX11.cs,
33509         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
33510         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
33511
33512 2005-05-30  Jackson Harper  <jackson@ximian.com>
33513
33514         * DataFormat.cs: We can't statically initialize this stuff because
33515         it calls into the xplatui and could create a loop. So we lazy init
33516         it.
33517
33518 2005-05-28  Jackson Harper  <jackson@ximian.com>
33519
33520         * Control.cs: Proper implementation of Product(Name/Version).
33521
33522 2005-05-27  Jackson Harper  <jackson@ximian.com>
33523
33524         * DataObject.cs: Dont crash if no data is found.
33525
33526 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
33527         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
33528                 as per status page, guessing it should be set to true
33529
33530 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
33531
33532         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
33533         * DataGridTableStyle.cs: set proper formatting text, def header text
33534         * ThemeWin32Classic.cs: new themable paramaters
33535         * DataGridBoolColumn.cs: paint check box, get data, fixes
33536         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
33537         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
33538         * DataGridColumnStyle.cs: fixes
33539         * Theme.cs: new themable paramaters
33540                 
33541 2005-05-26  Peter Bartok  <pbartok@novell.com>
33542
33543         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
33544
33545 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33546         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
33547
33548 2005-05-24  Peter Bartok  <pbartok@novell.com>
33549
33550         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
33551           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
33552           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
33553           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
33554           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
33555           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
33556           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
33557           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
33558           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
33559           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
33560           missing attributes, etc
33561         * DataGridPreferredColumnWidthTypeConverter.cs: Added
33562
33563 2005-05-24  Peter Bartok  <pbartok@novell.com>
33564
33565         * Help.cs: Added, implemented trivial functions, throws up MessageBox
33566           when user tries to get help
33567         * DataObject.cs, DataFormats.cs, LinkArea.cs,
33568           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
33569           to suppress warnings
33570         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
33571           avoid unreachable code warning
33572
33573 2005-05-20  Peter Bartok  <pbartok@novell.com>
33574
33575         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
33576
33577 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33578
33579         * DataGridTextBoxColumn.cs: Basic painting methods
33580         * DataGridTableStyle.cs: Set table style in the column
33581         * ThemeWin32Classic.cs: Use Theme for colors
33582         * DataGridDrawingLogic.cs: Implement more drawing
33583         * DataGrid.cs: drawing, theming, enhacements, fixes
33584         * DataGridColumnStyle.cs: fixes, drawing
33585         * Theme.cs: theming for Datagrid
33586
33587 2005-05-20  Peter Bartok  <pbartok@novell.com>
33588
33589         * Cursor.cs: Implemented GetObjectData() method
33590
33591 2005-05-20  Peter Bartok  <pbartok@novell.com>
33592
33593         * Cursors.cs: Added setting of cursor name
33594         * Cursor.cs:
33595           - Implemented constructors
33596           - Implemented Draw and DrawStretched
33597           - Implemented Current property
33598           - Implemented == and != operators
33599           - Implemented Dispose()
33600           - Implemented ToString
33601           - Added missing attributes
33602         * XplatUIX11.cs:
33603           - Added missing reset for OverrideCursor when DoEvents is called
33604           - Fixed creation of cursor, logic was wrong
33605         * XplatUIWin32.cs:
33606           - Added missing reset for OverrideCursor when DoEvents is called
33607           - Fixed creation of cursor, bit arrays were swapped
33608         * Clipboard.cs: Removed obsolete MonoTODO attribute
33609
33610 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33611
33612         * ComboBox.cs: fixes OnSelectedItemChanged
33613         * ControlBindingsCollection.cs: fixes item range check
33614
33615 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
33616
33617         * UpDownBase.cs:
33618                 - Calc preferred height properly
33619                 - Implement missing properties
33620                 
33621         * NumericUpDown.cs: Implement missing events
33622
33623 2005-05-19  Jackson Harper  <jackson@ximian.com>
33624
33625         * TabControl.cs: New method that resizes the tab pages before
33626         redrawing them. This as needed as the control is double buffered
33627         and sizing will not be recalculated unless ResizeTabPages is
33628         called.
33629         * TabPage.cs: Set base.Text instead of Text in the constructor so
33630         that UpdateOwner does not get called. Use the new Redraw method of
33631         TabControl instead of Refresh so the sizing is recalculated.
33632         * ThemeWin32Classic.cs: Draw the text for button tabs.
33633
33634 2005-05-19  Jackson Harper  <jackson@ximian.com>
33635
33636         * Control.cs: Paint control background images. Fix typo where
33637         PaintControlBackground was not getting called correctly.
33638
33639 2005-05-19  Peter Bartok  <pbartok@novell.com>
33640
33641         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
33642           I can investigate, apparently I broke FileDialog
33643
33644 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
33645
33646         * AxHost.cs: Some simple properties.
33647         * Control.cs: window must be accessible after ctor.
33648         * Form.cs: Added TransparencyKey property.
33649         * TextBoxBase.cs: Implemented Clear. Text property can be null.
33650         * XplatUIWin32.cs: SetBorderStyle implemented.
33651
33652 2005-05-18  Peter Bartok  <pbartok@novell.com>
33653
33654         * DataObject.cs: Entries are not global but particular to the
33655           DataObject, now it behaves that way
33656         * XplatUIWin32.cs: Implemented Clipboard methods
33657         * Clipboard.cs: Implemented
33658         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
33659         * XplatUIOSX.cs: Updated to final clipboard prototypes
33660         * XplatUIX11.cs: Implemented Clipboard methods
33661         * XplatUIDriver.cs: Updated to final clipboard prototypes
33662         * XplatUIStructs.cs:
33663           - Added BITMAPINFOHEADER struct
33664           - Added ClipboardFormats enum
33665         * X11Structs.cs:
33666           - Added ClipboardStruct
33667           - Added Atom enum items for clipboard types
33668           - Fixed atom types for Selection event structures
33669         * DataFormats.cs:
33670           - Added internal properties and methods for drivers to enumerate
33671             all known formats
33672           - Switched initialization method to allow drivers to assign their
33673             own IDs even for the MS predefined clipboard IDs
33674         * XplatUI.cs: Updated to final clipboard interface
33675
33676 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33677         * PropertyGridView.cs: Fixed compiler warnings.
33678
33679 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
33680         * PropertyGrid.cs: Added some event calls
33681         * PropertyGridView.cs: Change drawing code to use double buffering
33682         * PropertyGridTextBox.cs: Changed Text property name
33683         * GridItem.cs: Added Bounds property.
33684         * GridEntry.cs: Added Bounds property.
33685
33686 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
33687
33688         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
33689         since GetType() may not return the correct type if the object is
33690         a remoting proxy.
33691
33692 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
33693
33694         * TreeNodeCollection.cs: fixes get/set item ranges
33695         
33696 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33697
33698         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
33699                 
33700 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
33701
33702         * ComboBox.cs: Fix item range comparation
33703         * ListView.cs: Fix item range comparation
33704
33705 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33706
33707         * FontDialog.cs:
33708           - Clear example panel when OnPaint is called
33709           - Better solution for displaying the example panel text
33710           - Select default indexes in the ListBoxes
33711
33712 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33713
33714         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
33715
33716 2005-05-11  Peter Bartok  <pbartok@novell.com>
33717
33718         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
33719         * SelectionRangeConverter.cs: Implemented
33720         * PropertyGrid.cs: Fixed attribute value
33721         * Control.cs:
33722           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
33723           - Added Sebastien Pouliot's CAS Stack Propagation fixes
33724         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
33725           that's common to all drivers. First methods to go there are
33726           Sebastien Pouliot's CAS Stack Propagation helper methods
33727         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
33728           Sebastien Pouliot for CAS Stack Propagation
33729
33730 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
33731
33732         * OSXStructs.cs:
33733           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
33734
33735 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
33736
33737         * DataGridTextBoxColumn.cs: fixed some members
33738         * GridColumnStylesCollection.cs: indexed column is case insensitive
33739         * DataGridTableStyle.cs: fixes
33740         * ThemeWin32Classic.cs: add new theme parameter
33741         * Theme.cs: add new theme parameter
33742         * DataGridDrawingLogic.cs: Datagrid's drawing logic
33743         * DataGrid.cs: fixes, new internal properties, etc.
33744         * DataGridColumnStyle.cs: allows to set grid value
33745         *
33746
33747 2005-05-10  Peter Bartok  <pbartok@novell.com>
33748
33749         * AccessibleObject.cs:
33750           - Removed MonoTODO attribute on help, method is correct
33751           - Fixed Bounds property
33752         * AxHost.cs: Moved MonoTODO
33753         * ButtonBase.cs: Now setting AccessibleObject properties
33754         * RadioButton.cs: Setting proper AccessibleObject role
33755         * CheckBox.cs: Setting proper AccessibleObject role
33756         * ControlBindingsCollection.cs: Added properties, methods and attributes
33757         * DataFormats.cs: Fixed awkward internal API, and changed to enable
33758           userdefined DataFormats.Format items as well
33759         * ListControl.cs: Removed data_member from the public eye
33760         * OpenFileDialog.cs:
33761           - Made class sealed
33762           - Added missing attributes
33763         * SaveFileDialog.cs: Added missing attributes
33764         * ImageListStreamer.cs: Fixed code that caused warnings
33765         * LinkLabel.cs: Removed unreachable code
33766         * TreeView.cs: Fixed code that caused warnings
33767         * PropertyGridView.cs: Fixed code that caused warnings
33768         * GridColumnStylesCollection.cs: Added missing attributes
33769         * GridTableStylesCollection: Added missing attribute
33770         * PropertyManager: Added .ctor
33771         * SecurityIDType: Added
33772         * DataObject.cs: Implemented class
33773         * LinkArea.cs: Added missing attribute
33774
33775 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
33776
33777         * RadioButton.cs: call base method to allow to fire OnClick event
33778         * UpDownBase.cs: OnMouseUp call base method
33779         * CheckedListBox.cs: call base method before returning
33780         * TrackBar.cs: call base method before returning
33781         
33782
33783 2005-05-10  Peter Bartok  <pbartok@novell.com>
33784
33785         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
33786           for messages
33787
33788 2005-05-10  Peter Bartok  <pbartok@novell.com>
33789
33790         * DataFormats.cs: Implemented
33791         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
33792           XplatUIX11.cs: Added Clipboard APIs
33793         * XplatUIWin32.cs: Implemented Clipboard APIs
33794         * FolderBrowserDialog.cs: Added missing event, attributes
33795
33796 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
33797
33798         * CheckBox.cs: call base method to allow to fire OnClick event
33799
33800 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
33801
33802         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
33803
33804 2005-05-06  Peter Bartok  <pbartok@novell.com>
33805
33806         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
33807         * Screen.cs: Implemented
33808         * HelpNavigator.cs: Added
33809         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
33810           property
33811         * HelpProvider.cs: Implemented all we can do until we have a CHM
33812           help library (which means that "What's This" does work now)
33813
33814 2005-05-06  Jackson Harper  <jackson@ximian.com>
33815
33816         * XplatUIX11.cs: Fix waking up the main loop.
33817                 
33818 2005-05-05  Peter Bartok  <pbartok@novell.com>
33819
33820         * XplatUI.cs: Updated revision
33821         * Form.cs: Removed enless loop
33822         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
33823         * Label.cs (OnPaint): Added call to base.OnPaint()
33824         * ToolTip.cs: Made ToolTipWindow reusable for other controls
33825         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
33826         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
33827         * AxHost.cs: Added
33828         * ButtonBase.cs: Moved base.OnPaint() call to end of method
33829         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
33830           to ToolTip.ToolTipWindow for drawing and size methods; this allows
33831           reuse of ToolTipWindow by other controls
33832         * SizeGrip.cs: Moved base.OnPaint() call to end of method
33833         * XplatUIX11.cs: Now clipping drawing area (experimental)
33834         * PictureBox.cs: Moved base.OnPaint() call to end of method
33835         * Theme.cs: Fixed ToolTip abstracts to match new format
33836         * ErrorProvider.cs: Implemented
33837
33838 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
33839
33840         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
33841         * LinkLabel.cs:
33842                 - Adds cursors
33843                 - Handles focus
33844                 - Implements LinkBehavior
33845                 - Fixes many issues
33846
33847 2005-05-03  Jackson Harper  <jackson@ximian.com>
33848
33849         * ListView.cs: Calculate the scrollbar positioning on resize and
33850         paint, so they get put in the correct place.
33851
33852 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
33853
33854         * ColorDialogs.cs: The small color panels are now handled by
33855           SmallColorControl. This fixes drawing of the focus rectangle
33856           and adds a 3D border.
33857
33858 2005-05-03  Peter Bartok  <pbartok@novell.com>
33859
33860         * Control.cs: Modified version of Jonathan Chamber's fix for
33861           double-buffering
33862
33863 2005-05-03  Jackson Harper  <jackson@ximian.com>
33864
33865         * ListView.cs: Remove redraw variable. Control now handles whether
33866         or not a redraw needs to be done, and will only raise the paint
33867         event if redrawing is needed.
33868
33869 2005-05-03  Jackson Harper  <jackson@ximian.com>
33870
33871         * Splitter.cs: No decorations for the splitter form. Cache the
33872         hatch brush.
33873
33874 2005-05-03  Jackson Harper  <jackson@ximian.com>
33875
33876         * TreeView.cs: Use dashed lines to connect nodes. Use the
33877         ControlPaint method for drawing the focus rect instead of doing
33878         that in treeview.
33879
33880 2005-05-02  Peter Bartok  <pbartok@novell.com>
33881
33882         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
33883
33884 2005-04-29  Jackson Harper  <jackson@ximian.com>
33885
33886         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
33887         entire image buffer. Just clear the clipping rectangle.
33888
33889 2005-04-29  Jackson Harper  <jackson@ximian.com>
33890
33891         * ThemeWin32Classic.cs: Don't draw list view items that are
33892         outside the clipping rectangle.
33893
33894 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
33895
33896         * ListBox.cs: added horizontal item scroll
33897
33898 2005-04-29  Jackson Harper  <jackson@ximian.com>
33899
33900         * ThemeWin32Classic.cs: Remove some old debug code that was
33901         causing flicker with the new double buffering code.
33902
33903 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
33904
33905         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
33906         behave like combobox and comboboxlist (still not sure if this is
33907         correct though).
33908
33909 2005-04-28  Jackson Harper  <jackson@ximian.com>
33910
33911         * ThemeWin32Classic.cs: Don't fill the middle of progress
33912         bars. This fills areas outside of the clip bounds that don't need
33913         to be filled.
33914
33915 2005-04-28  Jackson Harper  <jackson@ximian.com>
33916
33917         * Control.cs: Don't expose functionality to touch the image buffers.
33918         * ProgressBar.cs:
33919         * ListView.cs: We do not need to (and no longer can) manipulate
33920         the image buffers directly. All of this is handled by Control.
33921
33922 2005-04-28  Peter Bartok  <pbartok@novell.com>
33923
33924         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
33925           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
33926           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
33927
33928 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33929
33930         * Combobox:
33931                 - Adjust control's height for non-simple comboboxes (bug fix)
33932                 - Remove dead code
33933         * MenuAPI.cs: remove unused var
33934         * ScrollBar.cs: remove unsed var
33935                  
33936         * ListBox.cs: unselect items when clearing
33937
33938 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
33939
33940         * ListControl.cs: honors OnPositionChanged and default Selected Item
33941         * ListBox.cs: unselect items when clearing
33942
33943 2005-04-27  Jackson Harper  <jackson@ximian.com>
33944
33945         * X11Keyboard.cs: Initialize a default keyboard and give a warning
33946         if a "correct" keyboard is not found. This will make us not crash,
33947         but might give some users bad keyboard layouts...seems to be the
33948         same thing rewind does.
33949
33950 2005-04-27  Jackson Harper  <jackson@ximian.com>
33951
33952         * BindingManagerBase.cs: Attach the current/position changed
33953         handlers to their respective events.
33954
33955 2005-04-27  Jackson Harper  <jackson@ximian.com>
33956
33957         * Control.cs: Make sure that the first WM_PAINT does a full draw,
33958         not just a blit.
33959         * ThemeWin32Classic.cs: Don't fill the background for picture
33960         boxes. This could overright user drawing.
33961         * ComboBox.cs: Just fill the clipping rect not the entire client
33962         rect when drawing the background. This prevents pieces of the
33963         image buffer from getting overwritten and is theoretically faster.
33964
33965 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
33966
33967         * ComboBox.cs: Databinding support fixes, fire missing events
33968         * ListControl.cs: implement missing methods and properties, fixes
33969         * ThemeWin32Classic.cs: Databiding support on Drawing
33970         * CheckedListBox.cs: Databinding support fixes, fire missing events
33971         * ListBox.cs: Databinding support fixes, fire missing events
33972         
33973 2005-04-25  Peter Bartok  <pbartok@novell.com>
33974
33975         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
33976
33977 2005-04-25  Jackson Harper  <jackson@ximian.com>
33978
33979         * TreeView.cs: Use the horizontal scrollbars height not width when
33980         determining how much of the client area is available.
33981
33982 2005-04-25  Jackson Harper  <jackson@ximian.com>
33983
33984         * Control.cs: Double buffering is handled differently now. As per
33985         the spec, the extra buffer is created in the WM_PAINT message and
33986         passed down to the control's drawing code.
33987         * GroupBox.cs:
33988         * Label.cs:
33989         * CheckBox.cs:
33990         * ProgressBar.cs:
33991         * RadioButton.cs:
33992         * ColorDialog.cs:
33993         * ComboBox.cs:
33994         * PropertyGridView.cs:
33995         * UpDownBase.cs:
33996         * MessageBox.cs:
33997         * MenuAPI.cs:
33998         * ListView.cs:
33999         * ButtonBase.cs:
34000         * SizeGrip.cs:
34001         * ScrollBar.cs:
34002         * ListBox.cs:
34003         * TrackBar.cs:
34004         * ToolBar.cs:
34005         * PictureBox.cs:
34006         * DateTimePicker.cs:
34007         * StatusBar.cs:
34008         * TreeView.cs: Update to new double buffering system.
34009         * MonthCalendar.cs: Uncomment block, as Capture is now
34010         working. Update to new double buffering
34011         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
34012         * PaintEventArgs.cs: New internal method allows us to set the
34013         graphics object. This is used for double buffering.
34014         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
34015         rectangle. The internal paint_area var has been removed from
34016         StatusBar. The clipping rect should be used instead.
34017         * Theme.cs: Give the PictureBox drawing method a clipping rect.
34018         * TabPage.cs: The RefreshTabs method was removed, so just call the
34019         tab controls Refresh method now.
34020         * TabControl.cs: Update to new double buffering. Make sure the
34021         handle is created before sizing the tab pages, otherwise we will
34022         get stuck in a loop.
34023
34024 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
34025
34026         * LinkLabel.cs: Fix typo, bug #74719; patch
34027           from Borja Sanchez Zamorano
34028
34029 2005-04-22  Jackson Harper  <jackson@ximian.com>
34030
34031         * TreeNode.cs: Implement Handle stuff.
34032         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
34033
34034 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
34035
34036         * DataGridTextBoxColumn.cs: call base constructors, fixes
34037         * GridColumnStylesCollection.cs: missing events, methods, and functionality
34038         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
34039         * DataGridTableStyle.cs: implements create default column styles
34040         * DataGridBoolColumn.cs: which types can handle
34041         * DataGrid.cs: missing methods, fixes, new functionality
34042         * DataGridColumnStyle.cs: fixes
34043
34044 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
34045         * FolderBrowserDialog.cs:
34046         - Use a thread to fill the TreeView
34047         - Adjusted some sizes
34048
34049 2005-04-19  Peter Bartok  <pbartok@novell.com>
34050
34051         * LinkLabel.cs: (Re-)create the pieces when setting the Text
34052           property. Fixes #74360.
34053
34054 2005-04-19  Jackson Harper  <jackson@ximian.com>
34055
34056         * XEventQueue.cs: Lock when getting the lockqueue size.
34057         * PictureBox.cs: Call base OnPaint
34058         
34059 2005-04-19  Peter Bartok  <pbartok@novell.com>
34060
34061         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
34062           messages were no longer being processed (this broke BeginInvoke)
34063
34064           
34065 2005-04-18  Jackson Harper  <jackson@ximian.com>
34066
34067         * TreeView.cs: buglet that caused node images to get drawn
34068         regardless of whether or not they were in the clipping rectangle.
34069
34070 2005-04-18  Jackson Harper  <jackson@ximian.com>
34071
34072         * CurrencyManager.cs: There are four rules for GetItemProperties:
34073         - If the type is an array use the element type of the array
34074         - If the type is a typed list, use the type
34075         - If the list contains an Item property that is not an object, use
34076         that property
34077         - use the first element of the list if there are any elements in
34078         the list.
34079         
34080 2005-04-17  Jackson Harper  <jackson@ximian.oom>
34081
34082         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
34083         click. This handles offsets for scrolling properly and reduces
34084         memory. Also fixed GetNode to not offset now that TopNode works
34085         properly.
34086         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
34087         
34088 2005-04-17  Jackson Harper  <jackson@ximian.com>
34089
34090         * CursorConverter.cs: Initial implementation.
34091
34092 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34093
34094         * ListControl.cs: work towards complex data binding support on ListControl
34095         * CurrencyManager.cs: work towards complex data binding support on ListControl
34096         * ListBox.cs: work towards complex data binding support on ListControl
34097
34098
34099 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
34100
34101         * GridTableStylesCollection.cs: fixes name and constructor
34102         * DataGridTableStyle.cs: fixes
34103         * DataGridBoolColumn.cs: fixes names and constructors
34104         * DataGrid.cs: define methods and properties. Some init implementations
34105         * DataGridCell.cs: define methods and properties. Some init implementations
34106         * GridTablesFactory.cs: Define methods and properties
34107
34108 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
34109
34110         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
34111         graphics port changes.  We still want the coordinates in global screen
34112         coordinates.
34113
34114 2005-04-14  Jackson Harper  <jackson@ximian.com>
34115
34116         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
34117         check plus minus or checkbox clicks unless those features are enabled.
34118
34119 2005-04-14  Jackson Harper  <jackson@ximian.com>
34120
34121         * TreeView.cs: Add methods for setting the top and bottom visible
34122         nodes. TreeNode::EnsureVisible uses these methods.
34123         * TreeNode.cs: Implement EnsureVisible
34124
34125 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
34126
34127         * Form.cs: Pospone menu assignation if the window has not been created yet
34128         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
34129         size and position
34130
34131 2005-04-12  Jackson Harper  <jackson@ximian.com>
34132
34133         * TreeView.cs: Set the TopNode properly when scrolling
34134         occurs. This has the added benifit of reducing the amount of
34135         walking that needs to be done when drawing. Also removed an old
34136         misleading TODO.
34137         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
34138         
34139 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
34140
34141         * Timer.cs: fixes interval setting when the timer is already enabled
34142         
34143 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
34144
34145         * FolderBrowserDialog.cs: First approach
34146
34147 2005-04-09  Peter Bartok  <pbartok@novell.com>
34148
34149         * FolderBrowserDialog: Added
34150
34151 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
34152
34153         * LinkLabel.cs: move drawing code into the theme
34154         * ThemeWin32Classic.cs: drawing code and painting background bugfix
34155         * Theme.cs: define DrawLinkLabel method
34156
34157 2005-04-05  Jackson Harper  <jackson@ximian.com>
34158
34159         * BindingContext.cs: Use weak references so these bad actors don't
34160         stay alive longer then they need to.
34161
34162 2005-04-05  Jackson Harper  <jackson@ximian.com>
34163
34164         * ListControl.cs: Basic implementation of complex databinding.
34165         * ComboBox.cs:
34166         * ListBox.cs: Add calls to ListControl databinding methods.
34167
34168 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
34169
34170         * FileDialog.cs:
34171           - Don't change PopupButtonState to Normal when the
34172             PopupButton gets pressed several times.
34173           - Renamed ButtonPanel to PopupButtonPanel
34174
34175 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
34176
34177         * ColorDialog.cs: Use cached objects instead of creating them
34178         * LinkLabel.cs: Use cached objects instead of creating them
34179         * Splitter.cs: Use cached objects instead of creating them
34180         * FontDialog.cs: Use cached objects instead of creating them
34181         * PropertyGridView.cs: Use cached objects instead of creating them
34182         * MessageBox.cs: Use cached objects instead of creating them
34183         * FileDialog.cs: Use cached objects instead of creating them
34184         * ThemeWin32Classic.cs: Use cached objects instead of creating them
34185         * TreeView.cs: Use cached objects instead of creating them
34186         
34187 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
34188
34189         * Control.cs: use Equals to compare the font since no == op
34190         * ScrollBar.cs: use Equals to compare the font since no == op
34191
34192 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
34193
34194         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
34195
34196 2005-04-01  Jackson Harper  <jackson@ximian.com>
34197
34198         * Binding.cs: Implement IsBinding.
34199         * BindingManagerBase.cs:
34200         * PropertyManager.cs:
34201         * CurrencyManager.cs: Add IsSuspended property.
34202
34203 2005-04-01  Jackson Harper  <jackson@ximian.com>
34204
34205         * Binding.cs: Had some IsAssignableFrom calls backwards.
34206
34207 2005-04-01  Jackson Harper  <jackson@ximian.com>
34208
34209         * Binding.cs: Handle null data members when pulling data.
34210         * PropertyManager.cs: Handle the data member being a property that
34211         does not exist.
34212
34213 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34214
34215         * DataGridTextBoxColumn.cs: fixes signature
34216         * DataGrid.cs: calls right constructor
34217
34218 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
34219
34220         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
34221         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
34222         * GridTableStylesCollection.cs: implements GridTableStylesCollection
34223         * DataGridTableStyle.cs: implements DataGridTableStyle
34224         * DataGridBoolColumn.cs: implements DataGridBoolColumn
34225         * DataGridTextBox.cs: implements DataGridTextBox
34226         * DataGridColumnStyle.cs: implements DataGridColumnStyle
34227
34228 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
34229
34230         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
34231
34232 2005-03-29  Peter Bartok  <pbartok@novell.com>
34233
34234         * Application.cs:
34235           - Properly implemented CompanyName property
34236           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
34237             returns a path that includes CompanyName, ProductName and
34238             Version (fixes bug #70330)
34239
34240 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
34241
34242         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
34243           fixes bug #72588.
34244
34245 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34246
34247         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
34248         
34249           - Added ReadOnly CheckBox
34250           - Further refactoring: moved some code from Open-/SaveFileDialog
34251             to FileDialog
34252
34253 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
34254
34255         * OpenFileDialog.cs: Fixed CheckFileExists
34256         * FileDialog.cs:
34257           Moved FileView and DirComboBox outside FileDialog class.
34258           They can now be used outside FileDialog
34259
34260 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34261
34262         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
34263         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
34264
34265 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
34266
34267         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34268           - Added missing CreatePrompt property in SaveDialog
34269           - Overall SaveDialog handling should be better now
34270           - Added non standard ShowHiddenFiles property
34271           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
34272           - Added InitialDirectory and RestoreDirectory support
34273
34274 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
34275
34276         * FileDialog.cs: Made dirComboBox usable
34277
34278 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
34279
34280         * FileDialog.cs: Added Filter support (case sensitiv)
34281
34282 2005-03-24  Jackson Harper  <jackson@ximian.com>
34283
34284         * TabControl.cs: Need a couple more pixels for the lines.
34285
34286 2005-03-23  Jackson Harper  <jackson@ximian.com>
34287
34288         * TabControl.cs: Give the tab page focus when it is selected.
34289
34290 2005-03-23  Jackson Harper  <jackson@ximian.com>
34291
34292         * TabControl.cs: Account for the drawing of tabs borders when
34293         invalidating. If the slider was clicked dont do click detection on
34294         the tabs.
34295
34296 2005-03-23  Jackson Harper  <jackson@ximian.com>
34297
34298         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
34299
34300 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
34301
34302         * CategoryGridEntry.cs: Added
34303         * GridItem.cs: Added helper properties
34304         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
34305         * GridEntry.cs: Updated code for collection
34306         * PropertyGrid.cs: Cleaned up some formatting
34307         * PropertyGridView.cs: Added drop down functionality for enums.
34308         * GridItemCollection.cs: Added enumerator logic
34309         * PropertyGridEntry.cs: Added
34310
34311 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34312
34313         * FileDialog.cs:
34314           - Removed unnecessary commented code
34315           - Fixed handling for entering the filename manually in the combobox
34316
34317 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
34318
34319         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
34320
34321 2005-03-18  Peter Bartok  <pbartok@novell.com>
34322
34323         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
34324           them being touching the border
34325
34326 2005-03-18  Peter Bartok  <pbartok@novell.com>
34327
34328         * TextControl.cs: Quick hack to center text better
34329
34330 2005-03-18  Peter Bartok  <pbartok@novell.com>
34331
34332         * ControlPaint.cs:
34333           - Don't throw NotImplemented exceptions, just print a notice once
34334             instead (requested by Miguel). This makes running existing SWF
34335             apps a bit easier
34336         * Control.cs:
34337           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
34338           - Added context menu trigger on right click
34339         * Panel.cs: Trigger invalidate on resize
34340         * StatusBar.cs:
34341           - Removed old double-buffer drawing
34342           - Added ResizeRedraw style to force proper update of statusbar
34343         * ListView.cs:
34344           - Removed debug output
34345         * ThemeWin32Classic.cs:
34346           - Fixed drawing of status bar, now draws Text property if there
34347             are no defined panels
34348
34349 2005-03-18  Jackson Harper  <jackson@ximian.com>
34350
34351         * ImageList.cs: When the image stream is set pull all the images
34352         from it.
34353         * ImageListStreamer.cs: Implement reading image list streams.
34354
34355 2005-03-18  Peter Bartok  <pbartok@novell.com>
34356
34357         * ThemeWin32Classic.cs (DrawPictureBox):
34358           - Fixed calculations for centered drawing
34359           - Fixed drawing for normal mode, not scaling the image on normal
34360
34361 2005-03-18  Peter Bartok  <pbartok@novell.com>
34362
34363         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
34364           textbox
34365         * FileDialog.cs:
34366           - Made Open/Save button the accept button for FileDialog
34367           - Tied the cancel button to the IButtonControl cancel button
34368           - Save/Open now properly builds the pathname
34369           - Now handles user-entered text
34370           - Preventing crash on right-click if no item is selected
34371           - Fixed Text property, now uses contents of textbox
34372           - Fixed SelectedText property, now just returns the text part that
34373             is selected in the text box
34374
34375 2005-03-18  Jackson Harper  <jackson@ximian.com>
34376
34377         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
34378         rect, make sure to de-adjust the interior rect after drawing the
34379         tab text.
34380
34381 2005-03-18  Peter Bartok  <pbartok@novell.com>
34382
34383         * MenuAPI.cs: Remove menu *before* executing selected action to
34384           prevent the menu from 'hanging around'
34385           
34386 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
34387
34388         * XplatUIOSX.cs: Implemented WorkingArea property
34389
34390 2005-03-17  Peter Bartok  <pbartok@novell.com>
34391
34392         * XplatUIX11.cs: Fixed menu coord calculations
34393         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
34394           for calculating offsets
34395
34396 2005-03-17  Peter Bartok  <pbartok@novell.com>
34397
34398         * Hwnd.cs: Do not consider menu presence for default client
34399           rectangle location/size
34400         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
34401           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
34402           translation functions
34403         * FileDialog.cs: Fixed (what I presume is a) typo
34404
34405 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
34406
34407         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
34408           X access (avoids X-Async errors)
34409
34410 2005-03-16  Jackson Harper  <jackson@ximian.com>
34411
34412         * TabControl.cs: Raise the SelectedIndexChanged event.
34413
34414 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
34415
34416         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
34417           - Removed vertical ToolBar and replaced it with a custom panel
34418             (desktop and home button already work)
34419           - Added Help button (some controls get resized or relocated then)
34420           - Draw correct text depending on Open or Save.
34421           - Fixed some typos...
34422
34423 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
34424
34425         * ScrollBar.cs:
34426           - Only change Maximum and Minimum when need it (bug fix)
34427
34428 2005-03-15  Peter Bartok  <pbartok@novell.com>
34429
34430         * Form.cs: Use Handle for icon, to trigger creation if
34431           the window does not yet exist
34432         * Control.cs:
34433           - CanSelect: Slight performance improvement
34434           - Focus(): Preventing possible recursion
34435           - Invalidate(): Removed ControlStyle based clear flag setting
34436           - WM_PAINT: fixed logic for calling OnPaintBackground
34437           - WM_ERASEBKGND: Fixed logic, added call to new driver method
34438             EraseWindowBackground if the control doesn't paint background
34439         * XplatUIWin32.cs:
34440           - Moved EraseWindowBackground() method to internal methods
34441           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
34442             is sent via SendMessage on BeginPaint call on Win32
34443         * XplatUIX11.cs:
34444           - Added EraseWindowBackground() method
34445           - No longer sends WM_ERASEBKGND on .Expose, but on call to
34446             PaintEventStart, which more closely matches Win32 behaviour
34447           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
34448           - Fixed SetFocus() to properly deal with client and whole windows
34449         * Hwnd.cs: Added ErasePending property
34450         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
34451         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
34452
34453 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
34454
34455         * XplatUIOSX.cs:
34456           - Fix hard loop when timers exist.
34457           - Fix bugs with middle and right click for 3 button mice.
34458
34459 2005-03-11  Peter Bartok  <pbartok@novell.com>
34460
34461         * XplatUIX11.cs:
34462           - get_WorkingArea: Need to call X directly, GetWindowPos only
34463             returns cached data now
34464           - Added sanity check to GetWindowPos hwnd usage
34465
34466 2005-03-11  Jackson Harper  <jackson@ximian.com>
34467
34468         * BindingManagerBase.cs: This method isn't used anymore as
34469         PullData now updates the data in the control.
34470
34471 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
34472
34473         * Form.cs: fixes menu drawing on X11
34474         * MenuAPI.cs:  fixes menu drawing on X11
34475
34476 2005-03-11  Peter Bartok  <pbartok@novell.com>
34477
34478         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
34479           from Jonathan Gilbert; should fix bug #73606
34480         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
34481           in Screen coordinates. Thanks, Jordi.
34482         * Form.cs: Added missing attribute
34483
34484 2005-03-11  Peter Bartok  <pbartok@novell.com>
34485
34486         * Form.cs:
34487           - Rudimentary Mdi support
34488           - Removed outdated FormParent code
34489           - Implemented lots of missing properties and methods, still missing
34490             transparency support
34491           - Added missing attributes
34492           - Implemented support for MaximumBounds
34493           - Added firing of various events
34494         * XplatUI.cs: Added SetIcon() method
34495         * XplatUIDriver.cs: Added SetIcon() abstract
34496         * XplatUIOSX.cs: Stubbed out SetIcon() method
34497         * XplatUIX11.cs:
34498           - Implemented SetIcon() support
34499           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
34500           - Switched to unix line endings
34501         * XplatUIWin32.cs:
34502           - Made POINT internal so for can access it as part of MINMAX
34503           - Implemented SetIcon() support
34504           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
34505             native Mdi support again, might have to go managed)
34506         * Control.cs: Now fires the StyleChanged event
34507         * MdiClient.cs: Added; still mostly empty
34508
34509 2005-03-10  Peter Bartok  <pbartok@novell.com>
34510
34511         * SaveFileDialog.cs: Added emtpy file
34512
34513 2005-03-08  Peter Bartok  <pbartok@novell.com>
34514
34515         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
34516           in turn triggers OnCreateContro) when creating a handle for the
34517           first time.
34518         * TextControl.cs: Fixed endless loop in certain cases when
34519           replacing the current selection
34520
34521 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
34522
34523         * ScrollBar.cs:
34524           - Honors NewValue changes in Scroll events allowing apps to change it
34525           - Adds First and Last Scroll events
34526           - Fixes Thumb events
34527
34528 2005-03-07  Peter Bartok  <pbartok@novell.com>
34529
34530         * Hwnd.cs: Added DefaultClientRectangle property
34531         * XplatUI.cs: Now using the X11 driver Where() method, which provides
34532           more detailed debug information
34533         * XplatUIX11.cs:
34534           - Fixed size-change feedback loop, where we would pull an old size
34535             off the queue and mistakenly change our window's size to an
34536             earlier value
34537           - Now compressing ConfigureNotify events, to reduce looping and
34538             redraw issues
34539         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
34540           is called
34541
34542 2005-03-07  Jackson Harper  <jackson@ximian.com>
34543
34544         * Binding.cs: Push data pushes from data -> property. Check if the
34545         property is readonly when attempting to set it.
34546
34547 2005-03-07  Jackson Harper  <jackson@ximian.com>
34548
34549         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
34550         instead of IsSubclassOf. Pulling data now sets the value on the
34551         control.
34552         * PropertyManager.cs:
34553         * CurrencyManager.cs: Just need to pull data when updating now,
34554         because PullData will set the value on the control.
34555
34556 2005-03-04  Jackson Harper  <jackson@ximian.com>
34557
34558         * Binding.cs: Implement data type parsing and converting on pulled
34559         data. TODO: Are there more ways the data can be converted?
34560
34561 2005-03-04  Jackson Harper  <jackson@ximian.com>
34562
34563         * Binding.cs: Support <Property>IsNull checks. Also bind to the
34564         controls Validating method so we can repull the data when the
34565         control loses focus.
34566
34567 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
34568
34569         * ColumnHeader.cs:
34570           - Fixes null string format
34571           
34572         * ListView.cs:
34573           - Adds enum type checks
34574           - Fixes redrawing and recalc need after changing some properties
34575           - Fixes on focus_item set after the event
34576           - Fixes adding columns after the control has been created
34577           
34578         * ThemeWin32Classic.cs:
34579           - Fixes CheckBox focus rectangle
34580           - Fixes ColumnHeader drawing
34581
34582
34583 2005-03-03  Jackson Harper  <jackson@ximian.com>
34584
34585         * Binding.cs: Bind to <Property>Changed events so we can detect
34586         when properties are changed and update the data.
34587
34588 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
34589
34590         * ImageList.cs:
34591           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
34592           - Fixes ImageList constructor with ImageList container
34593           - Fixes image scaling (wrong parameters at DrawImage)
34594
34595 2005-02-02  Jackson Harper  <jackson@ximian.com>
34596
34597         * Binding.cs: Make property searches case-insensitive. Eliminate
34598         some duplicated code.
34599
34600 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
34601
34602         * ComboBox.cs:
34603                 - Handle focus event
34604                 - Fix scrollbar events
34605                 - Discard highlighted item if remove it
34606                 - Fixes SelectedItem with strings
34607
34608 2005-03-01  Peter Bartok  <pbartok@novell.com>
34609
34610         * Control.cs:
34611           - Fixed Visible property, now follows (once again) parent chain
34612             to return false if any control in the chain is visible=false
34613           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
34614           - Fixed several places where is_visible instead of Visible was used
34615           - Implemented FIXME related to focus selection when setting focused
34616             control to be invisible
34617
34618         * XplatUIWin32.cs: Now using proper method to find out if window is
34619           visible. Thanks to Jordi for pointing it out
34620
34621 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
34622
34623         * ComboBox.cs: show/hide scrollbar instead of creating it
34624
34625 2005-02-27  Jackson Harper  <jackson@ximian.com>
34626
34627         * CurrencyManager.cs: Add PositionChanged stuff.
34628
34629 2005-02-27  Peter Bartok  <pbartok@novell.com>
34630
34631         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
34632         * XplatUIOSX.cs: Added GetMenuOrigin() stub
34633         * XplatUIWin32.cs: Implemented GetMenuOrigin()
34634         * XplatUIX11.cs:
34635           - Implemented GetMenuDC()
34636           - Implemented GetMenuOrigin()
34637           - Implemented ReleaseMenuDC()
34638           - Implemented generation of WM_NCPAINT message
34639           - Implemented generation and handling of WM_NCCALCSIZE message
34640         * Form.cs: Added debug helper message for Jordi's menu work
34641         * Hwnd.cs:
34642           - Modified ClientRect property; added setter, fixed getter to handle
34643             setting of ClientRect
34644           - Added MenuOrigin property
34645
34646 2005-02-26  Peter Bartok  <pbartok@novell.com>
34647
34648         * XplatUIX11.cs:
34649           - Destroys the caret if a window that's being destroyed contains it
34650           - Ignores expose events coming from the X11 queue for windows that
34651             already are destroyed
34652           - Now uses the proper variable for handling DestroyNotify, before we
34653             marked the wrong window as destroyed
34654           - Improved/added some debug output
34655
34656 2005-02-26  Peter Bartok  <pbartok@novell.com>
34657
34658         * X11Keyboard.cs: Fixes to work on 64bit systems
34659
34660 2005-02-26  Peter Bartok  <pbartok@novell.com>
34661
34662         * Control.cs:
34663           - Now calling OnHandleDestroyed from DestroyHandle()
34664             instead of Dispose()
34665           - Removed bogus call to controls.Remove() from DestroyHandle()
34666
34667 2005-02-26  Peter Bartok  <pbartok@novell.com>
34668
34669         * Control.cs: Properly destroy child windows when our handle is
34670           destroyed
34671
34672 2005-02-25  Peter Bartok  <pbartok@novell.com>
34673
34674         * XplatUI.cs:
34675           - Added 'DriverDebug' define to allow tracing XplatUI API calls
34676           - Alphabetized Static Methods and Subclasses
34677
34678         * XplatUIX11.cs:
34679           - Added XException class to allow custom handling of X11 exceptions
34680           - Created custom X11 error handler, tied into XException class
34681           - Added support for MONO_XEXCEPTIONS env var to allow the user
34682             to either throw an exception on X errors or continue running
34683             after displaying the error
34684           - Added handling of DestroyNotify message
34685           - Added handler for CreateNotify message (still disabled)
34686           - Improved (tried to at least) Where method to provide file and lineno
34687         * X11Structs.cs:
34688           - Added XErrorHandler delegate
34689           - Added XRequest enumeration (to suppor translation of errors)
34690
34691 2005-02-25  Jackson Harper  <jackson@ximian.com>
34692
34693         * PropertyManager.cs: Implement editing features
34694         * CurrencyManager.cs:
34695         * Binding.cs: First attempt at UpdateIsBinding
34696         * BindingManagerBase.cs: Call UpdateIsBinding before
34697         pushing/pulling data.
34698
34699 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
34700
34701         * MenuAPI.cs: Respect disabled items
34702         * ThemeWin32Classic.cs
34703                 - Caches ImageAttributes creation for DrawImageDisabled
34704                 - Fixes vertical menu line drawing
34705                 - Draws disabled arrows in disable menu items
34706
34707 2005-02-24  Peter Bartok  <pbartok@novell.com>
34708
34709         * Hwnd.cs:
34710           - Added UserData property to allow associating arbitrary objects
34711             with the handle
34712           - Fixed leak; now removing Hwnd references from static windows array
34713         * XplatUIWin32.cs:
34714           - Fixed Graphics leak in PaintEventEnd
34715           - Removed usage of HandleData, switched over to Hwnd class
34716         * HandleData.cs: Removed, obsoleted by Hwnd.cs
34717
34718 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34719
34720         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
34721         * ScrollBar.cs: Fixes bug
34722         * TrackBar.cs: removes death code, clipping, mimize refreshes,
34723          keyboard navigation enhancements
34724
34725 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
34726
34727         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
34728         * GroupBox.cs: Add control styles
34729         * Label.cs: Add control styles
34730         * UpDownBase.cs: Add control styles
34731         * ListBox.cs: Add control styles
34732         * XplatUIWin32.cs: Fixes wrong parameter order
34733
34734
34735 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
34736
34737         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
34738
34739 2005-02-23  Jackson Harper  <jackson@ximian.com>
34740
34741         * PropertyManager.cs: Implement property binding. This doesn't
34742         seem to work yet though as (I think) there are some bugs in
34743         System.ComponentModel.PropertyDescriptor.
34744         * BindingContext.cs: Use new PropertyManager constructor.
34745
34746 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
34747
34748         * ProgressBar.cs: use clip region in ProgressBar
34749         * ThemeWin32Classic.cs: use clip region in ProgressBar
34750
34751 2004-02-22  Jackson Harper  <jackson@ximian.com>
34752
34753         * BindingsCollection.cs: Remove some debug code.
34754
34755 2005-02-22  Jackson Harper  <jackson@ximian.com>
34756
34757         * BindingContext.cs:
34758         * ControlBindingsCollection.cs:
34759         * CurrencyManager.cs:
34760         * Binding.cs:
34761         * BindingManagerBase.cs: Initial implementation
34762         * BindingsCollection.cs: Add an internal contains method that the
34763         BindingManagerBase uses to ensure bindings aren't added twice to
34764         the collection.
34765         * PropertyManager.cs: Stubbed out.
34766         * Control.cs:
34767         * ContainerControl.cs: Hook up databinding
34768         
34769 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
34770
34771         * XplatUIOSX.cs:
34772           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
34773           Fixed Invalidate/Update chain.
34774           Fixed tons of other minor bugs (this is almost a complete rewrite).
34775
34776 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
34777
34778         * ComboBox.cs: do subcontrol creation when the control is created
34779
34780 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34781
34782         * Label.cs: fixes image drawing (image and imagelist)
34783         * ThemeWin32Classic.cs: cache brushes
34784         
34785 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34786
34787         * Form.cs: Move menu drawing code to Theme class
34788         * ComboBox.cs: Move ComboBox drawing code to Theme class
34789         * MenuItem.cs: Move menu drawing code to Theme class
34790         * MenuAPI.cs: Move menu drawing code to Theme class
34791         * ThemeWin32Classic.cs: New methods
34792         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
34793         * ListBox.cs: Move Listbox drawing code to Theme class
34794         * Theme.cs: New methods
34795
34796 2005-02-20  Peter Bartok  <pbartok@novell.com>
34797
34798         * Control.cs:
34799           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
34800             only process mnemonics on those)
34801           - Fixed event sequence for key handling; first calling
34802             ProcessKeyEventArgs now
34803         * TextBoxBase.cs:
34804           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
34805             for processing non-character keys
34806           - Fixed WM_CHAR to generate proper event sequence before processing
34807         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
34808           generation
34809
34810 2005-02-19  Peter Bartok  <pbartok@novell.com>
34811
34812         * UserControl.cs: Added TextChanged event; added attributes
34813         * SizeGrip.cs: Implemented resizing and optional display of grip
34814         * Form.cs: Fixed attribute
34815         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34816           Changed meaning of ScrollWindow bool argument; instead of the
34817           clear attribute (which will be true usually anyway), it gives the
34818           option of moving child controls as well.
34819         * XplatUIX11.cs:
34820           - Changed to match new ScrollWindow argument
34821           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
34822             now handles the implicit parent window a WM puts around us
34823         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
34824           to work)
34825         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
34826         * TreeView.cs: Adjusted to new ScrollWindow arguments
34827
34828 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
34829
34830         * Form.cs: Menu integration with non-client area
34831         * MenuItem.cs: Menu integration with non-client area
34832         * MenuAPI.cs: Menu integration with non-client area
34833
34834 2005-02-18  Peter Bartok  <pbartok@novell.com>
34835
34836         * MethodInvoker.cs: Added
34837         * MdiLayout.cs: Added
34838         * SendKeys.cs: Started implementation
34839         * ErrorIconAlignment.cs: Added
34840
34841 2005-02-18  Peter Bartok  <pbartok@novell.com>
34842
34843         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
34844         * Form.cs: Added handling for Menu-related Non-client messages
34845
34846 2005-02-17  Peter Bartok  <pbartok@novell.com>
34847
34848         * UpDownBase.cs: Fixed typo, compilation errors
34849         * DomainUpDown.cs: Fixed attribute value
34850
34851 2005-02-16  Miguel de Icaza  <miguel@novell.com>
34852
34853         * UpDownBase.cs: Attach entry events.
34854         Propagate events.
34855         Add ForeColor property, Focused, InterceptArrowKeys (interception
34856         does not work yet).
34857
34858 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
34859
34860         * Form.cs:
34861                 - Redraw non client are on Setmenu
34862                 - Calc proper menu starting point
34863
34864 2005-02-17  Peter Bartok  <pbartok@novell.com>
34865
34866         * Application.cs: Fixed message_filter check
34867
34868 2005-02-17  Peter Bartok  <pbartok@novell.com>
34869
34870         * Application.cs: Now calls registered message filters
34871         * DockStyle.cs: Fixed attribute
34872         * Form.cs: Fixed attribute
34873         * Menu.cs: Fixed attribute
34874         * ToolTip.cs: Fixed attribute
34875         * TreeNode.cs: Added missing attributes and arranged in regions
34876         * PropertyGrid.cs: Fixed signatures
34877         * TreeNodeCollection.cs: Added attributes
34878         * Splitter.cs: Added missing attributes; arranged into regions
34879         * TabPage.cs: Added missing attributes; arranged into regions
34880         * TextBoxBase.cs: Added missing attributes
34881         * TextBox.cs: Added missing attributes
34882         * ArrangeDirection.cs: Added missing attributes
34883         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
34884         * ToolBarButton.cs: Fixed attributes
34885         * AnchorStyles.cs: Fixed attribute
34886         * TrackBar.cs: Fixed attributes
34887         * TabControl.cs: Added missing attributes and arranged into regions
34888         * ToolBar.cs: Fixed attribute
34889         * StatusBar.cs: Fixed signature, organized into regions and added
34890           attributes
34891         * StatusBarPanel.cs: Fixed attributes
34892         * ContentsResizedEventArgs.cs: Implemented
34893         * ContentsResizedEventHandler.cs: Implemented
34894         * DateBoldEventArgs.cs: Implemented
34895         * DateBoldEventHandler.cs: Implemented
34896         * UpDownEventArgs.cs: Implemented
34897         * UpDownEventHandler.cs: Implemented
34898         
34899 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
34900
34901         * Form.cs: first Menu NC refactoring
34902         * MenuAPI.cs: first Menu NC refactoring
34903         
34904 2005-02-16  Peter Bartok  <pbartok@novell.com>
34905
34906         * ImeMode.cs: Added missing attributes
34907         * Menu.cs: Fixed attribute
34908         * GroupBox.cs: Fixed attribute
34909         * Label.cs: Fixed attribute
34910         * ColorDialog.cs (RunDialog): Removed TODO attribute
34911         * ComboBox.cs: Fixed attributes
34912         * ListControl.cs: Added missing attributes
34913         * PropertyGrid.cs: Fixed attributes
34914         * Control.cs: Fixed attributes
34915         * ListViewItem.cs: Added TypeConverter attribute
34916         * NotifyIcon.cs: Fixed attributes
34917         * ListView.cs: Fixed attributes
34918         * ButtonBase.cs: Fixed attribute
34919         * ImageList.cs: Added missing attributes
34920         * ContainerControl.cs: Fixed signature
34921         * CheckedListBox.cs: Fixed attribute; added missing attributes
34922         * Panel.cs: Fixed attributes
34923         * PropertyTabChangedEventArgs.cs: Added missing attribute
34924         * PropertyValueChangedEventArgs.cs: Added missing attribute
34925         * Binding.cs: Fixed attribute
34926         * ListViewItemConverter: Implemented ListViewSubItemConverter class
34927         * ListBox.cs: Fixed attribute; added missing attributes;
34928         * ScrollableControl.cs: Added missing attributes
34929         * PictureBox.cs: Added missing attributes; implemented missing property
34930         * DateTimePicker.cs: Added missing attributes
34931         * Theme.cs (ToolWindowCaptionHeight): Fixed type
34932         * MonthCalendar.cs: Fixed attributes
34933         * StatusBarPanel.cs: Added missing attributes
34934         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
34935
34936 2005-02-16  Peter Bartok  <pbartok@novell.com>
34937
34938         * TextBoxBase.cs: The previous method to enforce height yet remember
34939           the requested high was less than ideal, this is an attempt to do
34940           it better.
34941         * Control.cs: Added comment about possible problem
34942         * Copyright: Updated format
34943         * GridItemType.cs: Fixed swapped values
34944
34945 2005-02-15  Jackson Harper  <jackson@ximian.com>
34946
34947         * BaseCollection.cs: Use property so we never access an
34948         uninitialized list. Also initialize the list in the property.
34949
34950 2005-02-15  Peter Bartok  <pbartok@novell.com>
34951
34952         * GroupBox.cs (ProcessMnemonic): Implemented
34953         * Label.cs (ProcessMnemonic): Implemented
34954         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
34955           hotkeys
34956
34957 2005-02-15  Peter Bartok  <pbartok@novell.com>
34958
34959         * RadioButton.cs (ProcessMnemonic): Implemented
34960         * CheckBox.cs (ProcessMnemonic): Implemented
34961         * Control.cs:
34962           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
34963             handling
34964           - Added internal method to allow calling ProcessMnemonic from other
34965             controls
34966         * ContainerControl.cs:
34967           - Started support for handling validation chain handling
34968           - Implemented ProcessMnemonic support
34969           - Added Select() call to Active, to make sure the active control
34970             receives focus
34971         * Form.cs: Setting toplevel flag for Forms (this was lost in the
34972           FormParent rewrite)
34973         * ThemeWin32Classic.cs:
34974           - DrawCheckBox(): Fixed stringformat to show hotkeys
34975           - DrawRadioButton(): Fixed stringformat to show hotkeys
34976         * CommonDialog.cs: Removed WndProc override, not needed
34977
34978 2005-02-14  Peter Bartok  <pbartok@novell.com>
34979
34980         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
34981           missed those in the rewrite
34982
34983 2005-02-14  Miguel de Icaza  <miguel@novell.com>
34984
34985         * NumericUpDown.cs (Increment, ToString): Add.
34986         (DecimalPlaces): implement.
34987         
34988         Add attributes.
34989         
34990         * UpDownBase.cs: Add the designer attributes.
34991
34992 2005-02-13  Peter Bartok  <pbartok@novell.com>
34993
34994         * Panel.cs: Removed border_style, now in Control
34995         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
34996           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
34997
34998 2005-02-13  Peter Bartok  <pbartok@novell.com>
34999
35000         * MouseButtons.cs: Added missing attributes
35001         * XplatUIStructs.cs: Added enumeration for title styles
35002         * LeftRightAlignment.cs: Added missing attributes
35003         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
35004           it compatible with Graphics.FromHwnd()
35005         * SelectedGridItemChangedEventArgs.cs: Fixed property type
35006         * Keys.cs: Added missing attributes
35007         * SelectionRange.cs: Added missing attributes
35008         * SelectionRangeConverter.cs: Added
35009         * XplatUI.cs:
35010           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
35011             ReleaseMenuDC methods
35012           - Renamed ReleaseWindow to UngrabWindow
35013           - Added proper startup notice to allow version identification
35014         * Form.cs:
35015           - Added missing attributes
35016           - Removed FormParent concept
35017         * Label.cs: Removed border_style field, now in Control
35018         * RadioButton.cs: Now properly selects RadioButton when focus is
35019           received
35020         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
35021         * Control.cs:
35022           - Added missing attributes
35023           - Added borderstyle handling
35024           - Removed FormParent concept support
35025           - Fixed calls to XplatUI to match changed APIs
35026           - Fixed bug that would case us to use disposed Graphics objects
35027           - Removed unneeded internal methods
35028           - PerformLayout(): Fixed to handle DockStyle.Fill properly
35029           - SelectNextControl(): Fixed to properly check common parents
35030         * TextBoxBase.cs: Removed border_style field (now in Control)
35031         * MessageBox.cs:
35032           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
35033             fixed calculations for form size
35034           - Added support for localized strings and icons
35035           - Improved form size calculations, added border
35036         * ListView.cs: Removed border_style field (now in Control)
35037         * X11Structs.cs: Moved several structs from X11 driver here
35038         * X11Keyboard.cs: Changed debug message
35039         * Application.cs: Removed FormParent concept support
35040         * CommonDialog.cs:
35041           - Resetting end_modal flag
35042           - Removed FormParent concept support
35043         * NativeWindow.cs: Removed FormParent concept support
35044         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
35045           Client area and Non-Client whole window to allow support for WM_NC
35046           messages
35047         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
35048           prevent using it until it supports Hwnd as per Geoff Norton's request
35049         * ToolBar.cs: Fixed drawing, was not doing proper drawing
35050         * PictureBox.cs: Removed border_style field, now in Control
35051         * XplatUIWin32.cs: Added new driver methods
35052
35053 2005-02-12  Peter Bartok  <pbartok@novell.com>
35054
35055         * OpacityConverter.cs: Implemented
35056         * Hwnd.cs: Internal class to support drivers that need to emulate
35057           client area/non-client area window behaviour
35058
35059 2005-02-11  Peter Bartok  <pbartok@novell.com>
35060
35061         * KeysConverter.cs: Implemented
35062
35063 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
35064
35065         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
35066         * LinkLabel: Added missing attributes
35067         * MainMenu.cs: fixes ToString
35068         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
35069         * ListBox.cs: fixes event position
35070         * TrackBar.cs: adds missing attributes and events
35071         
35072 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
35073
35074         * MenuItem.cs: Use SystemInformation and bug fixes
35075         * MenuAPI.cs: Use SystemInformation and bug fixes
35076
35077 2005-02-09  Jackson Harper  <jackson@ximian.com>
35078
35079         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
35080         their keystate otherwise things like VK_MENU get stuck "on".
35081
35082 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
35083
35084         * ListBox.cs: Fixes AddRange bug
35085         
35086 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
35087
35088         * ProgressBar.cs
35089                 - Add missing attributes
35090                 - Add missing method
35091                 
35092         * CheckedListBox.cs: Added missing attributes
35093                 - Add missing attributes
35094                 - Remove extra method
35095         
35096         * ComboBox.cs: Added missing attributes
35097         * VScrollBar.cs: Added missing attributes
35098         * ScrollBar.cs:  Added missing attributes
35099         * ListBox.cs: Fixes signature, add missing consts
35100         * LinkArea.cs:   Added missing attributes
35101         
35102
35103 2005-02-08  Peter Bartok  <pbartok@novell.com>
35104
35105         * Menu.cs: Added missing attributes
35106         * MainMenu.cs: Added missing attributes
35107         * GroupBox.cs: Added missing attributes
35108         * Label.cs: Added missing attributes
35109         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
35110         * ColorDialog.cs:
35111           - Added Instance and Options properties
35112           - Added missing attributes
35113         * Cursor.cs: Made Serializable
35114         * NotifyIcon: Added missing attributes
35115         * MenuItem.cs: Added missing attributes
35116         * TextBoxBase.cs: Implemented AppendText() and Select() methods
35117         * Panel.cs: Added Missing attributes
35118         * MonthCalendar.cs: Fixed CreateParams
35119
35120 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35121         
35122         * LinkLabel.cs:
35123                 - Fixes signature
35124                 - Fixes issues with links
35125                 - Adds the class attributes
35126
35127 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
35128         
35129         * ComboBox.cs:
35130                 - Fixes button when no items available in dropdown
35131                 - Fixes repainting problems
35132                 - Adds the class attributes
35133                 
35134 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35135
35136         * XplatUIOSX.cs: Detect the menu bar and title bar height from
35137         the current theme.  Cache these on startup.
35138
35139 2005-02-07  Jackson Harper  <jackson@ximian.com>
35140
35141         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
35142         the scrollbar buttons when they are depressed.
35143
35144 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35145
35146         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
35147         Get the display size from the main displayid.  We currently dont
35148         support multiple display configurations.
35149
35150 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
35151
35152         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
35153
35154 2005-02-07  Miguel de Icaza  <miguel@novell.com>
35155
35156         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
35157
35158 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
35159
35160         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
35161
35162 2005-02-04  Jackson Harper  <jackson@ximian.com>
35163
35164         * ThemeWin32Classic.cs: Respect the clipping rect when
35165         drawing. Only fill the intersection of clips and rects so there
35166         isn't a lot of large fills.
35167         * ScrollBar.cs: Pass the correct clipping rect to the theme
35168         engine. Remove some debug code.
35169
35170 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
35171         
35172         * DateTimePicker.cs:
35173                 - Fixed crash on DateTime.Parse, use Constructor instead
35174
35175 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35176         
35177         * MenuItem.cs:
35178         * MenuAPI.cs:
35179                 - Owner draw support (MeasureItem and DrawItem)
35180
35181 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
35182         
35183         *  Menu.cs:
35184                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
35185                 - Fixes MenuItems.Add range
35186         * MenuItem.cs:
35187                 - MergeMenu and Clone and CloneMenu functions
35188
35189 2005-02-03  Jackson Harper  <jackson@ximian.com>
35190
35191         * ScrollBar.cs: Make abstract
35192         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
35193         is abstract.
35194
35195 2005-02-03  Jackson Harper  <jackson@ximian.com>
35196
35197         * ScrollBar.cs: First part of my scrollbar fixups. This removes
35198         all the unneeded refreshes and uses invalidates with properly
35199         computed rects.
35200
35201 2005-02-03  Peter Bartok  <pbartok@novell.com>
35202
35203         * ComponentModel.cs: Added
35204         * IDataGridEditingService.cs: Added
35205         * Timer.cs: Added missing attributes
35206         * ToolTip.cs: Added missing attributes
35207
35208 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
35209
35210         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
35211
35212 2005-02-03  Peter Bartok  <pbartok@novell.com>
35213
35214         * ListBox.cs: Added missing attributes
35215
35216 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
35217         
35218         * ListBox.cs:
35219                 - Fixes font height after font change
35220                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
35221                 
35222 2005-02-02  Peter Bartok  <pbartok@novell.com>
35223
35224         * HandleData.cs: Introduced static methods to allow class
35225           to be more self-contained and track it's own HandleData objects
35226         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
35227           HandleData to use new static methods
35228
35229 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
35230
35231         * Combobox.cs:
35232                 - Fixes default size and PreferredHeight
35233                 - Missing events
35234                 - ObjectCollection.Insert implementation
35235                 
35236         * ListControl.cs
35237                 - Fixes signature
35238         * ListBox.cs:
35239                 - Several fixes
35240                 - ObjectCollection.Insert implementation
35241                 - No selection after clean
35242                 - Small fixes
35243
35244 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35245
35246         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
35247
35248 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
35249
35250         * Combobox.cs:
35251                 - Caches ItemHeight calculation for OwnerDrawVariable
35252                 - Handles dropdown properly
35253                 - Fixes several minor bugs
35254
35255 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35256
35257         * ListBox.cs:
35258                 - Fixes 71946 and 71950
35259                 - Fixes changing Multicolumn on the fly
35260                 - Fixes keyboard navigation on Multicolumn listboxes
35261
35262 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35263         
35264         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
35265         crash reporter log.
35266
35267 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35268
35269         * XplatUIOSX.cs: Allow applications to actually exit.
35270
35271 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
35272
35273         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
35274         their parent at creation time rather than lazily later.  Fixes a major
35275         regression we were experiencing.
35276
35277 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
35278
35279         * ThemeWin32Classic.cs: more date time picker painting fixes
35280         * DateTimePicker.cs: more monthcalendar drop down fixes
35281         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
35282
35283 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
35284
35285         * ScrollBar.cs:
35286                 - When moving the thumb going outside the control should stop the moving
35287                 - Adds the firing of missing events
35288                 - Fixes no button show if Size is not specified
35289                 - End / Home keys for keyboard navigation
35290
35291 2005-01-30  Peter Bartok  <pbartok@novell.com>
35292
35293         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
35294           sanity check to prevent theoretical loop
35295         * XplatUIWin32.cs (SetVisible): Removed debug output
35296         * XplatUIX11.cs (SystrayChange): Added sanity check
35297         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
35298         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
35299           behaviour, valid until the X11 client window rewrite is done
35300         * TextBox.cs (ctor): Setting proper default foreground and background
35301           colors
35302
35303 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
35304
35305         * Theme: Added DrawDateTimePicker to interface
35306         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
35307         * DateTimePicker.cs: Created (still needs keys and painting code)
35308         * DateTimePickerFormat.cs: added
35309         * MonthCalendar.cs: fixed CreateParams for popup window mode
35310           
35311 2005-01-29  Peter Bartok  <pbartok@novell.com>
35312
35313         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
35314           this should also the calculations for ligher/darker
35315         * Theme.cs: Fixed defaults for ScrollBar widths/heights
35316
35317 2005-01-29  Peter Bartok  <pbartok@novell.com>
35318
35319         * ArrangeDirection.cs: Added
35320         * ArrangeStartingPositon.cs: Added
35321         * SystemInformation.cs: Implemented
35322         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35323           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
35324           used by SystemInformation class
35325         * X11Strucs.cs: Added XSizeHints structure
35326         * MenuAPI.cs:
35327           - Fixed CreateParams to make sure the menu window is always visible
35328           - TrackPopupMenu: Added check to make sure we don't draw the
35329             menu offscreen
35330
35331 2005-01-29  Peter Bartok  <pbartok@novell.com>
35332
35333         * HandleData.cs: Added method for altering invalid area
35334         * TextBoxBase.cs: Implemented TextLength
35335
35336 2005-01-28  Peter Bartok  <pbartok@novell.com>
35337
35338         * XplatUIX11.cs: Improvement over last patch, not sending
35339           the WM_PAINT directly anymore, instead we scroll any pending
35340           exposed areas and let the system pick out the WM_PAINT later
35341
35342 2005-01-28  Peter Bartok  <pbartok@novell.com>
35343
35344         * SWF.csproj: Deleted, no longer used. Instead,
35345           Managed.Windows.Forms/SWF.csproj should be used
35346         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
35347           directly, to avoid a potential race condition with the next
35348           scroll
35349
35350 2005-01-28  Peter Bartok  <pbartok@novell.com>
35351
35352         * XplatUI.cs: Made class internal
35353
35354 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
35355
35356         * CheckedListBox.cs:
35357                 - Draw focus
35358                 - Fixed Drawing
35359                 - Missing methods and events
35360
35361 2005-01-27  Peter Bartok  <pbartok@novell.com>
35362
35363         * Application.cs (Run): Don't use form if we don't have one
35364
35365 2005-01-27  Peter Bartok  <pbartok@novell.com>
35366
35367         * TextBoxBase.cs (get_Lines): Fixed index off by one error
35368
35369 2005-01-27  Peter Bartok  <pbartok@novell.com>
35370
35371         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
35372         * GridItem.cs: Added; Patch by Jonathan S. Chambers
35373         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
35374         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
35375         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
35376         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
35377         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35378         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35379         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35380         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35381         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
35382         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
35383
35384 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35385
35386         * Combobox.cs:
35387                 - Draw focus on Simple Combobox
35388                 - Fixes drawing issues
35389                 - fixes 71834
35390
35391 2005-01-27  Peter Bartok  <pbartok@novell.com>
35392
35393         * Form.cs:
35394           - Place window in default location, instead of hardcoded 0/0
35395           - Send initial LocationChanged event
35396         * Control.cs:
35397           - UpdateBounds after creation to find out where the WM placed us
35398           - Make sure that if the ParentForm changes location the Form
35399             is notified
35400         * XplatUIX11.cs: XGetGeometry will not return the coords relative
35401             to the root, but to whatever the WM placed around us.
35402             Translate to root coordinates before returning toplevel
35403             coordinates
35404         * XplatUIWin32.cs: Removed debug output
35405         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
35406           flag to GetWindowPos, to allow translation of coordinates on X11
35407
35408 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
35409
35410         * ListBox.cs: connect LostFocus Event
35411
35412 2005-01-27  Peter Bartok  <pbartok@novell.com>
35413
35414         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
35415           XplatUIX11.cs: Extended the Systray API
35416         * Form.cs: Removed debug output
35417         * Application.cs: Fixed focus assignment, always need to call
35418           XplatUI.Activate() since Form.Activate() has rules that may
35419           prevent activation
35420         * NotifyIcon.cs: Should be complete now
35421         * ToolTip.cs: Worked around possible timer bug
35422
35423 2005-01-27  Jackson Harper  <jackson@ximian.com>
35424
35425         * TabControl.cs:
35426         - Only invalidate the effected tabs when the
35427         selected index changes. This reduces drawing and gets rid of some
35428         flicker.
35429         - Only refresh if the tabs need to be shifted, otherwise only
35430         invalidate the slider button.
35431         - On windows the tabs are not filled to right if the slider is
35432         visible.
35433         
35434 2005-01-27  Jackson Harper  <jackson@ximian.com>
35435
35436         * TabControl.cs: Only refresh on mouseup if we are showing the
35437         slider. Also only invalidate the button whose state has changed.
35438
35439 2005-01-26  Peter Bartok  <pbartok@novell.com>
35440
35441         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
35442         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
35443           and SystrayRemove() methods
35444         * XplatUIOSX.cs: Stubbed Systray methods
35445         * XplatUIX11.cs:
35446           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
35447             methods
35448           - Fixed broken XChangeProperty calls (marshalling messed up things)
35449         * X11Structs.cs: Added enums and structs required for Size hinting
35450         * NotifyIcon.cs: Added & implemented
35451
35452 2005-01-26  Jackson Harper  <jackson@ximian.com>
35453
35454         * TabControl.cs: Space vertically layed out tabs properly.
35455
35456 2005-01-26  Peter Bartok  <pbartok@novell.com>
35457
35458         * Form.cs (CreateClientParams): Always set the location to 0,0
35459           since we're a child window.
35460
35461         * Control.cs (SetVisibleCore): Always explicitly setting the location
35462           of a toplevel window, apparently X11 doesn't like to move windows
35463           while they're not mapped.
35464
35465 2005-01-26  Jackson Harper  <jackson@ximian.com>
35466
35467         * TabControl.cs: Implement FillToRight size mode with vertically
35468         rendered tabs.
35469
35470 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35471
35472         * ControlPaint.cs, ThemeWin32Classic.cs
35473                 - Fixes DrawFocusRectangle
35474
35475 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
35476
35477         * MenuAPI.cs:
35478                 - MenuBar tracking only starts when item is first clicked
35479                 - Fixes menu hidding for multiple subitems
35480                 - Unselect item in MenuBar when item Executed
35481                 - Fixes bug 71495
35482
35483 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
35484
35485         * ListControl.cs:
35486                 - IsInputKey for ListBox
35487         * ListBox.cs:
35488                 - Focus item
35489                 - Shift and Control item selection
35490                 - Implement SelectionMode.MultiExtended
35491                 - Fixes RightToLeft
35492         * ComboBox.cs:
35493                 - IsInputKey implemented
35494                 - Do not generate OnTextChangedEdit on internal txt changes
35495                 
35496 2005-01-23  Peter Bartok  <pbartok@novell.com>
35497
35498         * AccessibleObject.cs: Partially implemented Select()
35499         * MonthCalendar.cs: Added missing attributes and events
35500         * Form.cs: Fixed CreateParams behaviour, now controls derived from
35501           form can properly override CreateParams.
35502         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
35503           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
35504           Control performs Invalidate & Update
35505         * NativeWindow (CreateHandle): Added special handling for Form
35506           and Form.FormParent classes to allow overriding of From.CreateParams
35507         * Control.cs:
35508           - ControlNativeWindow: Renamed 'control' variable to more intuitive
35509             name 'owner'
35510           - ControlNativeWindow: Added Owner property
35511           - Removed usage of Refresh() on property changes, changed into
35512             Invalidate(), we need to wait until the queue is processed for
35513             updates, direct calls might cause problems if not all vars for
35514             Paint are initialized
35515           - Added call to UpdateStyles() when creating the window, to set any
35516             styles that CreateWindow might have ignored.
35517           - Added support for Form CreateParent overrides to UpdateStyles()
35518         * MessageBox.cs: Removed no longer needed FormParent override stuff,
35519           CreateParams are now properly overridable
35520         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
35521           CreateParams are now properly overridable
35522
35523 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
35524
35525         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
35526         OnTextBoxChanged.
35527
35528         Capture LostFocus and OnTextBoxChanged.  The later introduces a
35529         recursive invocation that I have not figured out yet.
35530
35531         Reset the timer when not using (it was accumulating).
35532
35533
35534         (OnTextBoxChanged): Set UserEdit to true here to track whether the
35535         user has made changes that require validation.
35536
35537         Reset changing to avoid loops.
35538
35539 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
35540
35541         * NumericUpDown.cs: Display value at startup.
35542
35543         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
35544         ValidateEditText.
35545
35546         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
35547         filled in.  Added some basic parsing of text.
35548
35549         Still missing the OnXXX method overrides, and figuring out the
35550         events that must be emitted.
35551
35552         * UpDownBase.cs: Handle UserEdit on the Text property.
35553         
35554 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
35555
35556         * ComboBox.cs:
35557           - Fixes IntegralHeight
35558           - ToString method
35559
35560 2005-01-21  Jackson Harper  <jackson@ximian.com>
35561
35562         * TabControl.cs: Set the SelectedIndex property when SelectedTab
35563         is set so that the page visibility is updated and the tabs are
35564         sized correctly.
35565
35566 2005-01-21  Jackson Harper  <jackson@ximian.com>
35567
35568         * TabControl.cs: Use cliping rectangle for blitting. Give the
35569         theme the clipping rect so we can do clipping while
35570         drawing. Remove some debug code.
35571
35572 2005-01-21  Jackson Harper  <jackson@ximian.com>
35573
35574         * TabPage.cs: Add a new method so tab pages can force the tab
35575         control to recalculate the tab page sizes.
35576         * TabControl.cs: UpdateOwner needs to make the tab control recalc
35577         sizes.
35578
35579 2005-01-20  Jackson Harper  <jackson@ximian.com>
35580
35581         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
35582
35583 2005-01-20  Jackson Harper  <jackson@ximian.com>
35584
35585         * TreeView.cs: Set the bounds for nodes properly. They were
35586         getting screwed up when checkboxes were not enabled, but images
35587         were.
35588
35589 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
35590
35591         * ListBox.cs:
35592                 - Owner draw support
35593                 - Fixes
35594                 
35595 2005-01-20  Jackson Harper  <jackson@ximian.com>
35596
35597         * XplatUIStructs.cs: More misc keys
35598         * X11Keyboard.cs: Ignore some control keys.
35599
35600 2005-01-20  Jackson Harper  <jackson@ximian.com>
35601
35602         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
35603         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
35604
35605 2005-01-19  Peter Bartok  <pbartok@novell.com>
35606
35607         * Control.cs: Un-selecting the control when it is loosing focus
35608
35609 2005-01-19  Jackson Harper  <jackson@ximian.com>
35610
35611         * TreeView.cs: Hook up to the text controls leave event so we can
35612         end editing when the users clicks outside the text box.
35613         
35614 2005-01-19  Jackson Harper  <jackson@ximian.com>
35615
35616         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
35617         get set in the conversion array.
35618
35619 2005-01-19  Peter Bartok  <pbartok@novell.com>
35620
35621         * Application.cs (ModalRun): Added a call to CreateControl to ensure
35622           focus is properly set
35623         * Button.cs:
35624           - Added missing attributes
35625           - removed styles, those are already set in the base class
35626         * ButtonBase.cs:
35627           - Added missing attributes
35628           - Added clip window styles
35629         * CheckBox.cs: Added missing attributes
35630         * CommonDialog.cs:
35631           - FormParentWindow.CreateParams: Added required clip styles
35632         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
35633           also filters modifier keys
35634         * MessageBox.cs:
35635           - Added assignment of Accept and Cancel button to enable Enter
35636             and Esc keys in MessageBox dialogs
35637           - FormParentWindow.CreateParams: Added required clip styles
35638         * RadioButton.cs: Added missing attributes
35639         * TextControl.cs: No longer draws selection if control does not
35640           have focus
35641         * TextBoxBase.cs:
35642           - Now draws simple rectangle around test area to make it obvious
35643             there's a control. This is a hack until we properly support borders
35644           - A few simple fixes to support selections better, now erases selected
35645             text when typing, and resets selection when using movement keys
35646
35647 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
35648
35649         * UpDownBase.cs: Added some new properties.
35650
35651         * DomainUpDown.cs: Implement a lot to get my test working.
35652
35653 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35654
35655         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
35656
35657 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35658
35659         * OSXStructs (WindowAttributes): Fixed csc complaints
35660
35661 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35662
35663         * XplayUIOSX.cs:
35664           OSXStructs.cs: Initial refactor to move enums and consts into
35665           OSXStructs and use them in the driver for greater readability.
35666
35667 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
35668
35669         * XplatUIOSX.cs: Initial support for Standard Cursors.
35670         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
35671
35672 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
35673
35674         * ComboBox.cs: ability to change style when the ctrl is already
35675         created, missing methods and events, bug fixes, signature fixes
35676
35677 2005-01-19  Peter Bartok  <pbartok@novell.com>
35678
35679         * Cursors.cs (ctor): Added ctor to fix signature
35680
35681 2005-01-18  Peter Bartok  <pbartok@novell.com>
35682
35683         * Button.cs: Implemented DoubleClick event
35684         * ButtonBase.cs:
35685           - Fixed keyboard handling to behave like MS, where the press of
35686             Spacebar is equivalent to a mousedown, and the key release is
35687             equivalent to mouseup. Now a spacebar push will give the same
35688             visual feedback like a mouse click.
35689           - Added missing attributes
35690           - Added ImeModeChanged event
35691           - Added support for generating DoubleClick event for derived classes
35692         * CheckBox.cs:
35693           - Implemented DoubleClick event
35694           - Added missing attributes
35695         * CommonDialog.cs: Added missing attribute
35696         * ContextMenu.cs: Added missing attributes
35697         * RadioButton.cs:
35698           - AutoChecked buttons do not allow to be unselected when clicked
35699             (otherwise we might end up with no selected buttons in a group)
35700           - Added missing attributes
35701           - Implemented DoubleClickEvent
35702         * ThreadExceptionDialog.cs: Enabled TextBox code
35703
35704 2005-01-18  Peter Bartok  <pbartok@novell.com>
35705
35706         * Form.cs: Removed debug output
35707         * Button.cs: Added support for DoubleClick method
35708
35709 2005-01-18  Peter Bartok  <pbartok@novell.com>
35710
35711         * Form.cs:
35712           - Added method to parent window that allows triggering size
35713             calculations when a menu is added/removed
35714           - set_Menu: Cleaned up mess from early days of Form and Control,
35715             now properly triggers a recalc when a menu is added/removed
35716           - Added case to select form itself as focused form if no child
35717             controls exist
35718           - Added PerformLayout call when showing dialog, to ensure properly
35719             placed controls
35720         * Control.cs:
35721           - Select(): Made internal so Form can access it
35722           - Focus(): Only call Xplat layer if required (avoids loop), and sets
35723             status
35724         * Application.cs (Run): Removed hack and calls PerformLayout instead
35725           to trigger calculation when Form becomes visible
35726
35727 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
35728
35729         * ComboBox.cs: fixes for ownerdraw
35730
35731 2005-01-18  Peter Bartok  <pbartok@novell.com>
35732
35733         * TextControl.cs:
35734           - Sentinel is no longer static, each Document gets it's own, this
35735             avoids locking or alternatively overwrite problems when more
35736             than one text control is used simultaneously.
35737           - Switched to use Hilight and HilightText brushes for text selection
35738
35739         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
35740
35741 2005-01-18  Peter Bartok  <pbartok@novell.com>
35742
35743         * Control.cs:
35744           - Hooked up the following events:
35745                 o ControlAdded
35746                 o ControlRemoved
35747                 o HandleDestroyed
35748                 o ImeModeChanged
35749                 o ParentChanged
35750                 o TabStopChanged
35751                 o Invalidated
35752                 o SystemColorsChanged
35753                 o ParentFontChanged
35754                 o Move
35755           - Removed debug output
35756           - Added a call to the current theme's ResetDefaults when a color change
35757             is detected
35758         * Form.cs: Now setting the proper ImeMode
35759         * Theme.cs: Defined a method to force recreation of cached resources
35760           and rereading of system defaults (ResetDefaults())
35761         * ThemeWin32Classic.cs: Added ResetDefaults() stub
35762
35763 2005-01-17  Peter Bartok  <pbartok@novell.com>
35764
35765         * Control.cs: Added missing attributes
35766
35767 2005-01-17  Jackson Harper  <jackson@ximian.com>
35768
35769         * TreeNode.cs: Implement editing. Add missing properties selected
35770         and visible.
35771         * TreeView.cs: Implement node editing. Also some fixes to use
35772         Invalidate (invalid area) instead of Refresh when selecting.
35773
35774 2005-01-17  Peter Bartok  <pbartok@novell.com>
35775
35776         * Control.cs:
35777           - Implemented InvokeGotFocus() method
35778           - Implemented InvokeLostFocus() method
35779           - Implemented InvokePaint() method
35780           - Implemented InvokePaintBackground() method
35781           - Implemented InvokeClick() method
35782           - Implemented FindForm() method
35783           - Implemented RectangleToClient() method
35784           - Implemented ClientToRectangle() method
35785           - Implemented ResetBackColor() method
35786           - Implemented ResetCursor() method
35787           - Implemented ResetFont() method
35788           - Implemented ResteForeColor() method
35789           - Implemented ResetImeMode() method
35790           - Implemented ResetLeftToRight() method
35791           - Implemented ResetText() method
35792           - Implemented Scale() methods
35793           - Implemented ScaleCore() method
35794           - Implemented Update() method
35795           - Removed unused variables
35796           - Stubbed AccessibilityNotifyClients and
35797             ControlAccessibleObject.NotifyClients() methods (dunno what to do
35798             with those yet)
35799           - Now setting proper default for RightToLeft property
35800           - Fixed bug in SetClientSizeCore that would cause windows to get
35801             really big
35802           - Now sending Click/DoubleClick events
35803           - Now selecting controls when left mouse button is clicked on
35804             selectable control
35805         * AccessibleEvents.cs: Added
35806         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
35807         * XplatUIOSX.cs: Stubbed UpdateWindow() method
35808         * XplatUIWin32.cs: Implemented UpdateWindow() method
35809         * XplatUIX11.cs: Implemented UpdateWindow() method
35810         * Form.cs: Removed stray semicolon causing CS0162 warning
35811         * ThemeWin32Classic.cs: Fixed unused variable warnings
35812         * ScrollableControl.cs: Now calls base method for ScaleCore
35813         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
35814           style to avoid interference with internal click handler (which is
35815           different than standard Control click handling)
35816         * RadioButton.cs:
35817           - Now unchecks all sibling radio buttons when control is
35818             selected (Fixes #68756)
35819           - Removed internal tabstop variable, using the one inherited from
35820             Control
35821
35822 2005-01-17  Jackson Harper  <jackson@ximian.com>
35823
35824         * NavigateEventArgs.cs: Fix base type.
35825         * LinkLabel.cs: Sig fix
35826         
35827 2005-01-17  Jackson Harper  <jackson@ximian.com>
35828
35829         * TreeView.cs: Only invalidate the effected nodes bounds when
35830         selecting nodes.
35831
35832 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35833
35834         * XplatUIWin32.cs: fixes Win32 marshaling
35835         * XplatUIX11.cs: fixes method signature
35836
35837 2005-01-17  Peter Bartok  <pbartok@novell.com>
35838
35839         * XplatUIX11.cs: Clean up resources when we no longer need them
35840
35841 2005-01-17  Peter Bartok  <pbartok@novell.com>
35842
35843         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
35844           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
35845           and DestroyCursor() methods.
35846         * Cursor.cs: Partially implemented, now supports standard cursors;
35847           still contains some debug code
35848         * Cursors.cs: Implemented class
35849         * Control.cs:
35850           - WndProc(): Added handling of WM_SETCURSOR message, setting the
35851             appropriate cursor
35852           - Implemented Cursor property
35853           - Replaced break; with return; more straightforwar and possibly
35854             faster
35855           - Now properly setting the result for WM_HELP
35856         * X11Structs.cs: Added CursorFontShape enum
35857         * XplatUIStructs.cs:
35858           - Added StdCursor enum (to support DefineStdCursor() method)
35859           - Added HitTest enum (to support sending WM_SETCURSOR message)
35860         * XplatUIX11.cs:
35861           - Now sends the WM_SETCURSOR message
35862           - Implemented new cursor methods
35863         * XplatUIOSX.cs: Stubbed new cursor methods
35864         * XplatUIWin32.cs:
35865           - Implemented new cursor methods
35866           - Added GetSystemMetrics function and associated enumeration
35867
35868 2005-01-15  Peter Bartok  <pbartok@novell.com>
35869
35870         * Control.cs:
35871           - WndProc(): Now handles EnableNotifyMessage
35872           - SelectNextControl(): Fixed bug where if no child or sibling
35873             controls exist we looped endlessly
35874
35875 2005-01-14  Jackson Harper  <jackson@ximian.com>
35876
35877         * TreeView.cs: Recalculate the tab pages when a new one is added
35878         so that the proper bounding rects are created.
35879
35880 2005-01-14  Jackson Harper  <jackson@ximian.com>
35881
35882         * TreeView.cs: Draw a gray box instead of a grip in the lower
35883         right hand corner when there are both horizontal and vertical
35884         scroll bars.
35885
35886 2005-01-14  Jackson Harper  <jackson@ximian.com>
35887
35888         * Control.cs: When erasing backgrounds use FromHwnd instead of
35889         FromHdc when there is a NULL wparam. This occurs on the X driver.
35890         * XplatUIX11.cs: Set the wparam to NULL.
35891
35892 2005-01-13  Jackson Harper  <jackson@ximian.com>
35893
35894         * PictureBox.cs: Implement missing methods (except ToString, need
35895         to test that on windows) and events. When visibility is changed we
35896         need to redraw the image because the buffers are killed. When size
35897         is changed refresh if the sizemode needs it.
35898
35899 2005-01-13  Peter Bartok  <pbartok@novell.com>
35900
35901         * Control.cs (SelectNextControl): Was using wrong method to select
35902           a control
35903
35904 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35905
35906         * ComboBox.cs: fixes dropstyle
35907
35908 2005-01-13  Peter Bartok  <pbartok@novell.com>
35909
35910         * Form.cs:
35911           - Implemented Select() override
35912           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
35913           - Now sets keyboard focus on startup
35914         * Control.cs (SelectNextControl): Now properly handles directed=true
35915         * TextBoxBase.cs:
35916           - WndProc: Now passes tab key on to base if AcceptTabChar=false
35917           - Added (really bad) focus rectangle (mostly for testing)
35918         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
35919           to enforce redraw on focus changes
35920         * ContainerControl.cs:
35921           - Fixed detection of Shift-Tab key presses
35922           - Fixed traversal with arrow keys
35923         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
35924           gonna keep this or if it's complete yet
35925         
35926 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
35927
35928         * ComboBox.cs: missing properties, fixes
35929
35930 2005-01-13  Peter Bartok  <pbartok@novell.com>
35931
35932         * Panel.cs (ctor): Setting Selectable window style to off
35933         * Splitter.cs (ctor): Setting Selectable window style to off
35934         * GroupBox.cs (ctor): Setting Selectable window style to off
35935         * Label.cs (ctor): Setting Selectable window style to off
35936
35937 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
35938
35939         * UpDownBase.cs (InitTimer): If the timer has been already
35940         created, enable it.
35941
35942         Use a TextBox instead of a Label.
35943
35944 2005-01-12  Jackson Harper  <jackson@ximian.com>
35945
35946         * TreeView.cs: Refresh the tree after sorting the nodes. Always
35947         draw the connecting node lines (when ShowLines is true).
35948         * TreeNode.cs: The nodes index can now be updated. This is used
35949         when a node collection is sorted.
35950         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
35951         insert or an existing unsorted node collection can be sorted.
35952         
35953 2005-01-12  Peter Bartok  <pbartok@novell.com>
35954
35955         * ContainerControl.cs: Implemented ProcessDialogKeys()
35956
35957 2005-01-12  Peter Bartok  <pbartok@novell.com>
35958
35959         * Control.cs:
35960           - Implemented SelectNextControl() method
35961           - Several focus related bug fixes
35962           - Fixed Docking calculations to match MS documentation and
35963             behaviour
35964
35965 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
35966
35967         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
35968         bug fixes
35969
35970 2005-01-12  Peter Bartok  <pbartok@novell.com>
35971
35972         * Control.cs:
35973           - Fixed broken Contains() method
35974           - Implemented GetNextControl() method. Finally. This is the pre-
35975             requisite for focus handling.
35976
35977 2005-01-12  Peter Bartok  <pbartok@novell.com>
35978
35979         * OSXStrucs.cs: Added
35980
35981 2005-01-12  Peter Bartok  <pbartok@novell.com>
35982
35983         * XplatUIWin32.cs:
35984           - Removed PeekMessageFlags
35985           - Implemented SetWindowStyle() method
35986         * XplatUIStructs.cs: Added PeekMessageFlags
35987         * X11Structs: Added missing border_width field to XWindowChanges struct
35988         * XplatUIX11.cs:
35989           - PeekMessage: Now throws exception if flags which are not yet
35990             supported are passed
35991           - Implemented SetWindowStyle() method
35992           - Fixed SetZOrder to handle AfterHwnd properly
35993         * XplatUI.cs: Added SetWindowStyle() method
35994         * XplatUIDriver.cs: Added SetWindowStyle() abstract
35995         * Control.cs:
35996           - Implemented UpdateStyles() method
35997           - Implemented UpdateZOrder() method
35998         * XplatUIOSX.cs: Added SetWindowStyle() stub
35999
36000 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
36001
36002         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
36003         button mouse).
36004
36005
36006 2005-01-11  Jackson Harper  <jackson@ximian.com>
36007
36008         * TreeView.cs: Still need to draw lines to siblings even if out of
36009         the current node is out of the clip.
36010
36011 2005-01-11  Jackson Harper  <jackson@ximian.com>
36012
36013         * TreeView.cs: When setting the hbar/vbar/grip position use
36014         SetBounds so that perform layout is only called once. Also suspend
36015         and resume layout so layout is only done once for all controls.
36016         - Removed some debug fluff
36017         * SizeGrip.cs: Call base implmentation in overriding methods.
36018         - When visibility is changed the drawing buffers are killed so we
36019         need to redraw.
36020
36021 2005-01-11  Jackson Harper  <jackson@ximian.com>
36022
36023         * TreeView.cs: Calculate the open node count while drawing. This
36024         saves us an entire tree traversal for every paint operation. Use
36025         a member var for the open node count so less vars are passed around.
36026
36027 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
36028
36029         * MonthCalendar.cs:
36030         - fixed selection to use mousemove, not mouse polling on timer
36031         * ThemeWin32Classic.cs
36032         - removed redundant unused variable "no_more_content"
36033         
36034 2005-01-11  Peter Bartok  <pbartok@novell.com>
36035
36036         * XplatUIX11.cs (DoEvents): Needs to return when no more events
36037           are pending, so it now calls PeekMessage instead of GetMessage;
36038           implemented a incomplete version of PeekMessage
36039         
36040 2005-01-11  Peter Bartok  <pbartok@novell.com>
36041
36042         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
36043           I18n issues
36044         * TextBoxBase.cs: Added sending of TextChanged event
36045
36046 2005-01-10  Jackson Harper  <jackson@ximian.com>
36047
36048         * TreeView.cs: Try not to draw outside the clipping rectangle on
36049         each node element.
36050
36051 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
36052
36053         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
36054
36055 2005-01-10  Jackson Harper  <jackson@ximian.com>
36056
36057         * TreeView.cs:
36058         - Implement fast scrolling. Now only the newly
36059         exposed nodes are drawn and the old image is moved using the
36060         XplatUI::ScrollWindow method.
36061         - Factor in height of nodes when calculating whether or not the
36062         node is in the clipping rect.
36063
36064 2005-01-10  Jackson Harper  <jackson@ximian.com>
36065
36066         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
36067
36068 2005-01-10  Peter Bartok  <pbartok@novell.com>
36069
36070         * Application.cs: Added temporary hack to resolve all our resize
36071           required issues on startup. This will get fixed properly at
36072           some point in the future
36073
36074 2005-01-10  Jackson Harper  <jackson@ximian.com>
36075
36076         * SizeGrip.cs: New internal class that is used as a sizing
36077         grip control...hence the name.
36078
36079 2005-01-10  Peter Bartok  <pbartok@novell.com>
36080
36081         * Control.cs: Implemented proper TabIndex handling, now assigning
36082           a tabindex when a control is added to a container
36083         * GroupBox.cs (ctor): Now sets the Container style bit, required
36084           for Control.GetNextControl()
36085
36086 2005-01-09  Jackson Harper  <jackson@ximian.com>
36087
36088         * TextBoxBase.cs: Clear window when scrolling (fixes build).
36089
36090 2005-01-09  Peter Bartok <pbartok@novell.com>
36091
36092         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
36093           XplatUIX11.cs: Added ability to control ScrollWindow expose and
36094           an overload for ScrollWindow to allow only scrolling a rectangle
36095
36096 2005-01-09  Peter Bartok <pbartok@novell.com>
36097
36098         * Form.cs:
36099           - Implemented SetDesktopBounds method
36100           - Implemented SetDesktopLocation method
36101
36102 2005-01-08  Jackson Harper  <jackson@ximian.com>
36103
36104         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
36105         the node count has changed, this removes to VScroll::Refresh calls
36106         when drawing.
36107
36108 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
36109
36110         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
36111
36112 2005-01-07  Jackson Harper  <jackson@ximian.com>
36113
36114         * TreeNode.cs: Just update the single node when it is
36115         checked. Don't refresh after toggling, the Expand/Collapse already
36116         handles this.
36117         * TreeView.cs: Respect clipping a little more when drawing. Try
36118         not to redraw things that don't need to be redrawn. Just hide the
36119         scrollbars when they are no longer needed instead of removing
36120         them, so they don't have to be created again and again.
36121         
36122 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
36123
36124         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
36125         coordinates to window space to place the caret properly, FIXED.
36126         Implement GetWindowState & SetWindowState
36127
36128 2005-01-06  Peter Bartok <pbartok@novell.com>
36129
36130         * Form.cs:
36131           - Implemented ClientSize property
36132           - Implemented DesktopBounds property
36133           - Implemented DesktopLocation property
36134           - Implemented IsRestrictedWindow property
36135           - Implemented Size property
36136           - Implemented TopLevel property
36137           - Implemented FormWindowState property
36138         * Control.cs:
36139           - Implemented GetTopLevel() method
36140           - Implemented SetTopLevel() method
36141         * X11Structs.cs (Atom):
36142           - Added AnyPropertyType definition
36143           - Added MapState definiton and updated XWindowAttribute struct
36144         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
36145         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
36146         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
36147         * XplatUIWin32.cs:
36148           - Implemented GetWindowState() and SetWindowState() methods
36149           - Fixed Win32GetWindowLong return type
36150         * XplatUIX11.cs:
36151           - Introduced central function for sending NET_WM messages
36152           - Implemented GetWindowState() and SetWindowState() methods
36153         * TextBoxBase.cs (set_Lines):
36154           - Now uses Foreground color for text added via Text property (Duh!)
36155           - Added code to remember programmatically requested size (fixes
36156             behaviour when Multiline is set after Size)
36157           - Added AutoSize logic
36158
36159 2005-01-06  Jackson Harper  <jackson@ximian.com>
36160
36161         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
36162
36163 2005-01-06  Jackson Harper  <jackson@ximian.com>
36164
36165         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
36166         set to less then 0.
36167
36168 2005-01-06  Jackson Harper  <jackson@ximian.com>
36169
36170         * ScrollableControl.cs: Lazy init the scrollbars.
36171         
36172 2005-01-06  Jackson Harper  <jackson@ximian.com>
36173
36174         * Theme.cs: Speed up getting pens and solid brushes, by using
36175         their ARGB as a hash instead of tostring and not calling Contains.
36176
36177 2005-01-06  Peter Bartok <pbartok@novell.com>
36178
36179         * Form.cs:
36180           - Implemented OnActivated and OnDeactivate event trigger
36181           - Implemented Activate() method
36182           - Fixed ShowDialog() to activate the form that was active before
36183             the dialog was shown
36184         * XplatUIX11.cs:
36185           - Added global active_window var that tracks the currently active
36186             X11 window
36187           - Now always grabs Property changes from the root window to always
36188             catch changes on the active window property
36189           - Added code to PropertyNotify handler to send Active/Inactive
36190             messages when state changes. This puts X11 and Win32 en par on
36191             WM_ACTIVATE notifications (except for double notifications when
36192             the user clicks away from our modal window to another one of our
36193             windows)
36194
36195 2005-01-05  Jackson Harper  <jackson@ximian.com>
36196
36197         * ImageList.cs: Implment ctor
36198
36199 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36200
36201         * XplatUIOSX.cs: Implement Activate/SetTopmost
36202
36203 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36204
36205         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
36206
36207 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
36208
36209         * XplatUIOSX.cs: Implement GetActive/SetFocus.
36210
36211 2005-01-05  Peter Bartok <pbartok@novell.com>
36212
36213         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
36214           XplatUIOSX.cs: Added GetActive method to return the currently
36215           active window for the application (or null, if none is active)
36216         * Form.cs:
36217           - Implemented ActiveForm
36218           - Commented out owner assignment for modal dialogs (causes problems
36219             on Win32, since the owner will be disabled)
36220           - Reworked some Active/Focus handling (still incomplete)
36221         * CommonDialog.cs: Commented out owner assignment for modal dialogs
36222           (causes problems on Win32, since the owner will be disabled)
36223         * IWin32Window: Added ComVisible attribute
36224
36225 2005-01-05  Peter Bartok <pbartok@novell.com>
36226
36227         * ToolTip.cs (WndProc): Enable setting focus now that we have the
36228           required XplatUI functions.
36229
36230 2005-01-05  Peter Bartok <pbartok@novell.com>
36231
36232         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
36233           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
36234           to implement focus and activation handling; still incomplete and
36235           with debug output
36236
36237 2005-01-04  Peter Bartok <pbartok@novell.com>
36238
36239         * TextBoxBase.cs: Changed access level for Document property to
36240           match switch to internal for TextControl
36241
36242 2005-01-04  Peter Bartok <pbartok@novell.com>
36243
36244         * AccessibleObject: Added ComVisible attribute
36245
36246 2005-01-04  Jackson Harper  <jackson@ximian.com>
36247
36248         * X11Keyboard.cs: Remove unneeded var.
36249
36250 2005-01-04  Jackson Harper  <jackson@ximian.com>
36251
36252         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
36253         but PAINT.
36254         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
36255         ClientMessage. This makes apps exit cleanly (more often).
36256         
36257 2005-01-04  Jackson Harper  <jackson@ximian.com>
36258
36259         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
36260         handling focus, return correct colors and fonts,
36261         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
36262         handle selection, horizontal scrolling, and mouse interaction.
36263
36264 2005-01-04  Peter Bartok <pbartok@novell.com>
36265
36266         * ICommandExecutor.cs: Added
36267         * IDataGridColumnStyleEditingNotificationService.cs: Added
36268         * IFeatureSupport.cs: Added
36269         * IFileReaderService.cs: Added
36270         * IDataObject.cs: Added ComVisible attribute
36271         * AmbientProperties.cs: Added
36272         * BaseCollection.cs: Added missing attributes
36273         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
36274         * BaseCollection.cs: Added missing attributes
36275         * Binding.cs: Added TypeConverter attribute
36276         * BindingContext.cs: Added DefaultEvent attribute
36277         * BindingsCollection.cs: Added DefaultEvent attribute
36278         * Button.cs: Added DefaultValue attribute
36279         * DragEventArgs.cs: Added ComVisible attribute
36280         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
36281         * KeyEventArgs.cs: Added ComVisible attribute
36282         * KeyPressEventArgs.cs: Added ComVisible attribute
36283         * MouseEventArgs.cs: Added ComVisible attribute
36284         * NavigateEventArgs.cs: Added
36285         * NavigateEventHandler.cs: Added
36286         * FeatureSupport.cs: Added
36287         * OSFeature.cs: Added
36288         * Theme.cs: Added abstract Version property to support OSFeature
36289         * ThemeWin32Classic.cs: Added Version property to
36290           support OSFeature.Themes
36291         * ProgressBar.cs: Removed OnPaintBackground override, not required since
36292           the proper styles to avoid background drawing are set, also doesn't
36293           match MS signature
36294         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
36295         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
36296         * ScrollEventArgs.cs: Added ComVisible attribute
36297         * SplitterEventArgs.cs: Added ComVisible attribute
36298         * AccessibleSelection.cs: Added Flags attribute
36299         * Appearance.cs: Added ComVisible attribute
36300         * Border3DSide.cs: Added ComVisible attribute
36301         * Border3DStyle.cs: Added ComVisible attribute
36302         * BorderStyle.cs: Added ComVisible attribute
36303         * DragAction.cs: Added ComVisible attribute
36304         * ErrorBlinkStyle.cs: Added
36305         * ScrollEventType.cs: Added ComVisible attribute
36306         * AnchorStyles.cs: Added Editor attribute
36307         * DockStyle.cs: Added Editor attribute
36308         * HorizontalAlignment.cs: Added ComVisible attribute
36309         * HelpEventArgs.cs: Added ComVisible attribute
36310         * PaintEventArgs.cs: Added IDisposable
36311
36312 2005-01-04  Peter Bartok <pbartok@novell.com>
36313
36314         * TextControl.cs: Switched Line, LineTag and Document classes to
36315           internal
36316
36317 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36318
36319         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
36320         Simple mode, fixes, IntegralHeight, etc.
36321
36322 2005-01-04  Peter Bartok <pbartok@novell.com>
36323
36324         * TextBoxBase.cs: Using proper font variable now
36325
36326 2005-01-04  Peter Bartok <pbartok@novell.com>
36327
36328         * Form.cs (ShowDialog): Set parent to owner, if provided
36329         * GroupBox.cs: Removed unused vars
36330         * TextControl.cs:
36331           - Added GetHashCode() for Document and LineTag classes
36332           - Removed unused variables
36333           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
36334             to allow translation between continuous char position and line/pos
36335         * CheckBox.cs: Removed vars that are provided by base class
36336         * RadioButton.cs: Removed vars that are provided by base class, added
36337           new keyword where required
36338         * LinkLabel.cs: Added new keyword where required
36339         * Control.cs (WndProc): Removed unused variable
36340         * TextBoxBase.cs:
36341           - Finished SelectionLength property
36342           - Implemented SelectionStart property
36343           - Implemented Text property
36344           - Removed unused vars
36345         * MessageBox.cs: Added new keyword where required
36346         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
36347           WndProc signature
36348         * MenuAPI.cs: Added new keyword where required
36349         * ButtonBase.cs: Removed vars that are provided by base class, added
36350           new keyword where required
36351         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
36352           argument to double, to allow compiling with csc 2.0 (Atsushi ran
36353           into this)
36354         * Application.cs (Run): Now triggers the ThreadExit event
36355         * CommonDialog.cs: Added new keyword where required; now properly sets
36356           parent (owner) for dialog
36357         * XplatUIX11.cs: Commented out unused vars
36358         * StatusBar.cs: Fixed signature for Text property
36359         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
36360
36361 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
36362
36363         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
36364         TrackBar.cs, MonthCalendar.cs: remove unused vars
36365
36366 2005-01-03  Jackson Harper  <jackson@ximian.com>
36367
36368         * ThemeWin32Classic.cs:
36369         * X11Keyboard.cs: Remove unused vars.
36370
36371 2005-01-03  Peter Bartok  <pbartok@novell.com>
36372
36373         * TextBox.cs:
36374           - set_Text: Tied into TextControl
36375           - set_TextAlignment: Tied into TextControl
36376         * TextControl.cs:
36377           - Added alignment properties and implemented alignment handling
36378             and drawing (still has a bug, not generating proper expose events)
36379           - Added new Line() constructor to allow passing the line alignment
36380           - Fixed selection setting, properly handling end<start now
36381           - Added aligment considerations to RecalculateDocument()
36382         * TextBoxBase.cs:
36383           - Now properly enforces control height for single line controls
36384           - Added support for CharacterCasing
36385           - Added IsInputKey override
36386           - Fixed Keys.Enter logic
36387           - Added SetBoundsCore override
36388           - Fixed mouse selection handling
36389
36390 2005-01-03  Jackson Harper  <jackson@ximian.com>
36391
36392         * TreeView.cs:
36393           - Collapse and uncheck all nodes when CheckBoxes is disabled.
36394           - Checkboxes are always aligned to the bottom of the node,
36395           regardless of item height.
36396           - Use the node bounds to draw the text so we can center it when
36397           the item height is greater then the font height.
36398           - Node::Bounds are only the text part of the node.
36399         * TreeNode.cs: New method to combine collapsing and unchecking all
36400           nodes recursively.
36401
36402 2005-01-02  Jackson Harper  <jackson@ximian.com>
36403
36404         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
36405         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
36406         tree when a check is changed. TODO: Only refresh the checked node.
36407
36408 2004-12-30  Jackson Harper  <jackson@ximian.com>
36409
36410         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
36411         * TreeNode.cs: When collapsing make sure to never collapse the
36412         root node.
36413
36414 2004-12-29  Jackson Harper  <jackson@ximian.com>
36415
36416         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
36417         
36418 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
36419
36420         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
36421
36422 2004-12-28  Peter Bartok  <pbartok@novell.com>
36423
36424         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
36425           not yet assigned
36426
36427 2004-12-28  Peter Bartok  <pbartok@novell.com>
36428
36429         * Control.cs (WndProc): Added WM_HELP handler, now generates
36430           HelpRequested event
36431         * Form.cs: Added HelpButton property and required support code
36432         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
36433
36434 2004-12-28  Peter Bartok  <pbartok@novell.com>
36435
36436         * CommonDialog.cs:
36437           - Made DialogForm.owner variable internal
36438           - Added check to ensure owner form is set before setting
36439             owner properties in CreateParams
36440
36441 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
36442
36443         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
36444           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
36445           GetCursorPos.  Fix major visibility issues.  Rework the windowing
36446           system to support borderless/titleless windows (implements menus).
36447           Fix GetWindowPos.  Implement initial background color support for
36448           views.
36449
36450 2004-12-28  Peter Bartok  <pbartok@novell.com>
36451
36452         * Form.cs (get_CreateParams): Make sure we have an owner before using
36453           the owner variable. Implement proper default if no owner exists
36454
36455 2004-12-28  Peter Bartok  <pbartok@novell.com>
36456
36457         * In preparation for making Managed.Windows.Forms the default build target
36458           for System.Windows.Forms, the following stubbed files were added.
36459           Dialogs are currently being implemented by contributors and are only
36460           short-term place holders.
36461         * ColorDialog.cs: Initial check-in (minmal stub)
36462         * DataGrid.cs: Initial check-in (minimal stub)
36463         * DataGridLineStyle.cs: Initial check-in (minimal stub)
36464         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
36465         * DataGridTableStyle.cs: Initial check-in (minimal stub)
36466         * FontDialog.cs: Initial check-in (minimal stub)
36467         * FileDialog.cs: Initial check-in (minimal stub)
36468         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
36469         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
36470         * OpenFileDialog: Initial check-in (minimal stub)
36471         * IComponentEditorPageSite.cs: Initial check-in
36472         * Splitter.cs: Initial check-in (for Jackson)
36473         * SplitterEventArgs.cs: Initial check-in (for Jackson)
36474         * SplitterEventHandler.cs: Initial check-in (for Jackson)
36475         * TextBox.cs: Initial check-in; still needs some wiring to
36476           TextControl backend
36477         * Form.cs: Implemented ControlBox property
36478         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
36479         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
36480         * TextControl.cs: Added selection functionality; added todo header
36481         * TextBoxBase.cs:
36482           - Implemented Lines property
36483           - Implemented TextHeight property
36484           - Implemented SelectedText property
36485           - Implemented SelectionLength property
36486           - Implemented SelectAll method
36487           - Implemented ToString method
36488           - Removed and cleaned up some debug code
36489           - Implemented (still buggy) mouse text selection
36490
36491 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
36492
36493         * ComboBox.cs: Complete DropDownList implementation, fixes.
36494
36495 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
36496
36497         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
36498         * ComboBoxStyle.cs: ComboBoxStyle enum
36499         * ComboBox.cs: Initial work on ComboBox control
36500
36501 2004-12-21  Peter Bartok  <pbartok@novell.com>
36502
36503         * Control.cs (ctor, CreateParams): Moved setting of is_visible
36504           forward so that anything that creates a window gets the default,
36505           also no longer uses Visible property in CreateParams to avoid
36506           walking up the parent chain and possibly get the wrong visible
36507           status. Fixed IsVisible to no longer walk up to the parent.
36508
36509 2004-12-21  Peter Bartok  <pbartok@novell.com>
36510
36511         * Form.cs (ShowDialog): Unset modality for the proper window
36512  
36513 2004-12-20  Peter Bartok  <pbartok@novell.com>
36514
36515         * CommonDialog.cs: Initial check-in
36516
36517 2004-12-20  Peter Bartok  <pbartok@novell.com>
36518
36519         * Control.cs (Visible): Now uses the parent window instead of the
36520           client area window for the property
36521
36522         * Form.cs
36523           - ShowDialog(): Now uses the proper window for modality
36524           - The default visibility state for the form parent is now false. This
36525             will prevent the user from seeing all the changes to the form and
36526             its controls before the application hits Application.Run()
36527           - Removed some stale commented out code
36528
36529         * NativeWindow.cs:
36530           - Added FindWindow() method to have a method to check for existence
36531             of a window handle
36532           - Added ability to override default exception handling (for example
36533             when debugging with VS.Net; to do this the ExternalExceptionHandler
36534             define must be set
36535           - Removed some useless debug output
36536
36537         * XplatUIX11.cs:
36538           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
36539             not working as expected
36540           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
36541             property to allow switching back to the modal window if focus is
36542             given to another one of our windows (Application Modal)
36543           - Now only sets override_redirect if we create a window
36544             without WS_CAPTION
36545           - Moved EventMask selection before mapping of newly created window
36546             so we can catch the map event as well
36547           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
36548           - Added various Atom related DllImports
36549           - Implemented Exit() method
36550           - .ctor() : No longer shows window if WS_VISIBLE is not defined
36551             in the CreateParams
36552
36553         * MessageBox.cs: Now properly deals with the FormParent window by
36554           providing an override the FormParent CreateParams property to
36555           set as POPUP instead of OVERLAPPED window.
36556
36557 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36558
36559         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
36560         Minor code cleanup.
36561
36562 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
36563         
36564         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
36565
36566 2004-12-18  Peter Bartok  <pbartok@novell.com>
36567
36568         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
36569           implementing SetModal() method
36570
36571 2004-12-18  Peter Bartok  <pbartok@novell.com>
36572
36573         * X11Structs.cs (XGCValues): Fixed type of function element
36574         * XplatUI.cs: Added ScrollWindow() method
36575         * XplatUIDriver.cs: Added ScrollWindow() abstract
36576         * XplatUIWin32.cs: Implemented ScrollWindow() method
36577         * XplatUIX11.cs: Implemented ScrollWindow() method
36578         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
36579
36580 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36581
36582         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
36583         Some more keyboard support (INCOMPLETE)
36584
36585 2004-12-17  Peter Bartok  <pbartok@novell.com>
36586
36587         * TextControl.cs:
36588         - Added color attribute to line tags.
36589         - Added color argument to all functions dealing with tags
36590         - Added color argument support to various functions
36591         - Fixed miss-calculation of baseline/shift in certain circumstances
36592
36593         * TextBoxBase.cs: Added new color option to test code
36594
36595 2004-12-17  Jackson Harper  <jackson@ximian.com>
36596
36597         * TreeNode.cs:
36598         * MonthCalendar.cs: Signature fixes
36599
36600 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36601
36602         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
36603         keyboard event moved it.  Create a new graphics context for each paint resolves this
36604
36605 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
36606
36607         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
36608         Make caret exist and go blink blink.  Initial keyboard support.
36609         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
36610         works.
36611
36612 2004-12-17  Jackson Harper  <jackson@ximian.com>
36613
36614         * XplatUIStructs.cs: Updated set of virtual keycodes.
36615         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
36616
36617 2004-12-17  Jackson Harper  <jackson@ximian.com>
36618
36619         * XplatUIX11.cs: Prune old keyboard code.
36620
36621 2004-12-17  Jackson Harper  <jackson@ximian.com>
36622
36623         * XplatUIX11.cs: When generating mouse wparams get the modifier
36624         keys from the ModifierKeys property.
36625
36626 2004-12-17  Jackson Harper  <jackson@ximian.com>
36627
36628         * X11Keyboard.cs: Send up/down input when generating
36629         messages. Remove some unused vars.
36630
36631 2004-12-17  Jackson Harper  <jackson@ximian.com>
36632
36633         * TabControl.cs:
36634         * TreeView.cs: get rid of warnings.
36635
36636 2004-12-17  Jackson Harper  <jackson@ximian.com>
36637
36638         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
36639
36640 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
36641
36642         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
36643           CheckedListBox.cs: Implementation
36644
36645 2004-12-17  Peter Bartok  <pbartok@novell.com>
36646
36647         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
36648
36649 2004-12-16  Peter Bartok  <pbartok@novell.com>
36650
36651         * TextControl.cs:
36652           - InsertCharAtCaret(): Fixed start pos fixup
36653           - CaretLine_get: No longer derives the line from the tag, the tag
36654             could be stale if lines in the document have been added or deleted
36655           - RebalanceAfterDelete(): Fixed bug in balancing code
36656           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
36657           - Line.Streamline(): Now can also elminate leading empty tags
36658           - DumpTree(): Added a few more tests and prevented exception on
36659             uninitialized data
36660           - Added Debug section for Combining lines
36661           - Delete(): Now copies all remaining properties of a line
36662           
36663         * TextBoxBase.cs:
36664           - Left mousebutton now sets the caret (and middle button still acts
36665             as formatting tester, which must go away soon)
36666           - Added Debug section for Deleting/Combining lines
36667           - Fixed calculations for UpdateView after Combining lines
36668
36669 2004-12-16  Peter Bartok  <pbartok@novell.com>
36670
36671         * TextControl.cs: Now properly aligns text on a baseline, using the
36672           new XplatUI.GetFontMetrics() method. Simplified several calculations
36673         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
36674           defined
36675
36676 2004-12-16  Peter Bartok  <pbartok@novell.com>
36677
36678         * XplatUI.cs: Added GetFontMetrics() method
36679         * XplatUIDriver.cs: Added GetFontMetrics() abstract
36680         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
36681           into libgdiplus, our private GetFontMetrics function
36682         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
36683         * XplatUIWin32.cs: Implemented GetFontMetrics() method
36684
36685 2004-12-16  Jackson Harper  <jackson@ximain.com>
36686
36687         * XplatUIStruct.cs: Add enum for dead keys
36688         * X11Keyboard.cs: Map and unmap dead keys.
36689
36690 2004-12-16  Jackson Harper  <jackson@ximian.com>
36691
36692         * X11Keyboard.cs: Detect and use the num lock mask.
36693
36694 2004-12-16  Peter Bartok  <pbartok@novell.com>
36695
36696         * Control.cs (CreateGraphics): Added check to make sure the
36697           handle of the window exists before calling Graphics.FromHwnd()
36698
36699 2004-12-16  Peter Bartok  <pbartok@novell.com>
36700
36701         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
36702           contains a lot of code that's not supposed to be there for the
36703           real thing, but required for developing/testing the textbox
36704           backend.
36705
36706 2004-12-16  Peter Bartok  <pbartok@novell.com>
36707
36708         * TextControl.cs:
36709         - Fixed Streamline method
36710         - Added FindTag method to Line
36711         - Added DumpTree method for debugging
36712         - Added DecrementLines() method for deleting lines
36713         - Fixed UpdateView to update the cursor to end-of-line on single-line
36714           updates
36715         - Added PositionCaret() method
36716         - Fixed MoveCaret(LineDown) to move into the last line, too
36717         - Added InsertChar overload
36718         - Fixed InsertChar tag offset calculations
36719         - Added DeleteChar() method
36720         - Added Combine() method for folding lines
36721         - Fixed Delete() method, no longer allocates wasted Line object and
36722           now copies all properties when swapping nodes
36723         - Delete() method now updates document line counter
36724
36725 2004-12-15  Jackson Harper  <jackson@ximian.com>
36726
36727         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
36728         * X11Keyboard.cs: Expose the currently selected modifier keys
36729         through a property.
36730
36731 2004-12-15  Peter Bartok  <pbartok@novell.com>
36732
36733         * TextControl.cs: Initial check-in. Still incomplete
36734
36735 2004-12-15  Jackson Harper  <jackson@ximian.com>
36736
36737         * TreeNode.cs:
36738         * TreeView.cs: Fix build on csc (second time today ;-))
36739
36740 2004-12-15  Jackson Harper  <jackson@ximian.com>
36741
36742         * TreeView.cs: Store the treenodes plus/minus box bounds when it
36743         is calculated and use this for click testing.
36744         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
36745
36746 2004-12-15  Jackson Harper  <jackson@ximian.com>
36747
36748         * TreeView.cs: Pass the nodes image index to the image list when
36749         drawing that image.
36750
36751 2004-12-15  Jackson Harper  <jackson@ximian.com>
36752
36753         * X11Keyboard.cs: Set messages hwnd.
36754         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
36755         post_message calls.
36756
36757 2004-12-15  Jackson Harper  <jackson@ximian.com>
36758
36759         * X11Keyboard.cs: Fix to compile with csc.
36760         
36761 2004-12-15  Jackson Harper  <jackson@ximian.com>
36762
36763         * X11Structs.cs: Add key mask values
36764         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
36765         * X11Keyboard.cs: New file - Extrapolates and interpolates key
36766         down/up foo into WM_CHAR foo
36767         * KeyboardLayouts.cs: Common keyboard layouts
36768         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
36769         post messages into the main queue.
36770
36771 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
36772
36773         * Button.cs: implement ProcessMnemonic
36774         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
36775           brushes everytime
36776         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
36777         * ButtonBase.cs: Show HotkeyPrefix (not the &)
36778
36779 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
36780         
36781         * MonthCalendar.cs: Implemented click-hold for next/previous month
36782           and date selection
36783           
36784 2004-12-11  Peter Bartok  <pbartok@novell.com>
36785
36786         * X11Structs.cs:
36787           - Added XKeyboardState (moved from XplatUIX11.cs)
36788           - Added XCreateGC related enums and structures
36789           - Added GXFunction for XSetFunction
36790
36791         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
36792
36793         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
36794           CaretVisible() calls
36795
36796         * ToolTip.cs: Added code to prevent stealing focus from app windows
36797
36798         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
36799           DestroyCaret, SetCaretPos and CaretVisible)
36800
36801         * XplatUIX11.cs:
36802           - Added implementation for caret functions
36803           - Moved hover variables into a struct, to make it a bit easier
36804             on the eyes and to debug
36805           - Removed XKeyboardState (moved to XplatUIX11.cs)
36806           - Moved Keyboard properties into the properties region
36807
36808         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
36809           call to get a graphics context for our control
36810
36811         * XplatUIOSX.cs: Added empty overrides for the new caret functions
36812
36813         * TreeView.cs: Fixed bug. No matter what color was set it would always
36814           return SystemColors.Window
36815
36816         * XplatUIWin32.cs: Implemented caret overrides
36817
36818 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
36819
36820         * ListBox.cs: fire events, implement missing methods and properties,
36821         sorting.
36822
36823 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
36824
36825         * MonthCalendar.cs: invalidation bug fixing
36826         * ThemeWin32Classic.cs: paint fixing
36827
36828 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
36829
36830         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
36831         prepare the CGContextRef there now.
36832
36833 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
36834
36835         * MonthCalendar.cs:
36836           - optimisationL only invalidate areas that have changed
36837         * ThemeWin32Classic.cs:
36838           - only paint parts that intersect with clip_area
36839
36840 2004-12-09  Peter Bartok  <pbartok@novell.com>
36841
36842         * Application.cs: Undid changes from r37004 which cause problems
36843         on X11
36844
36845 2004-12-09  Ravindra  <rkumar@novell.com>
36846
36847         * ToolBar.cs: Added support for displaying ContextMenu
36848         attached to a button on ToolBar.
36849         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
36850         property.
36851
36852 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36853
36854         * Label.cs: autosize works in text change and removes unnecessary
36855         invalidate
36856
36857 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
36858
36859         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
36860         remove warnings
36861
36862 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
36863
36864         * XplatUIOSX.cs: Added mouse move/click/grab support
36865         Remove some debugging WriteLines not needed anymore.
36866         Add window resizing/positioning.
36867         Fix visibility on reparenting.
36868
36869 2004-12-08  Peter Bartok  <pbartok@novell.com>
36870
36871         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
36872
36873 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
36874
36875         * XplatUIOSX.cs: Initial checkin
36876         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
36877
36878 2004-12-03  Ravindra <rkumar@novell.com>
36879
36880         * ListView.cs: Added some keybindings and fixed scrolling.
36881         ScrollBars listen to ValueChanged event instead of Scroll
36882         Event. This would let us take care of all changes being
36883         done in the scrollbars' values programmatically or manually.
36884         * ListView.cs (CanMultiselect): Added a check for shift key.
36885         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
36886         * ListViewItem.cs (Clone): Fixed. We need to make a copy
36887         of ListViewSubItemCollection as well.
36888
36889 2004-12-06  Peter Bartok <pbartok@novell.com>
36890
36891         * Control.cs (Parent): Added check and exception to prevent
36892         circular parenting
36893
36894 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
36895
36896         * ListBox.cs: implemented clipping, selection single and multiple,
36897         bug fixing
36898
36899 2004-12-03  Ravindra <rkumar@novell.com>
36900
36901         * ListView.cs (ListView_KeyDown):
36902         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
36903         when CTRL key is pressed.
36904         * ListViewItem.cs (Selected): Fixed setting the property.
36905
36906 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36907
36908         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
36909
36910         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
36911         MinimizeBox, ShowInTaskbar, TopMost properties.
36912
36913         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
36914         will be implemented).
36915
36916 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
36917
36918         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
36919
36920         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
36921         tests.
36922         
36923         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
36924         
36925         * TreeView.cs: BackColor is Colors.Window.
36926
36927 2004-12-01  Jackson Harper  <jackson@ximian.com>
36928
36929         * TreeView.cs: When resizing the tree if the user is making it
36930         smaller we don't get expose events, so we need to handle adding
36931         the horizontal scrollbar in the size changed handler as well as
36932         the expose handler.
36933
36934 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
36935
36936         * DrawItemState.cs: fixes wrong enum values
36937
36938 2004-12-01  Jackson Harper  <jackson@ximian.com>
36939
36940         * TreeView.cs: Resize the hbar as well as the vbar on resize.
36941
36942 2004-12-01  Jackson Harper  <jackson@ximian.com>
36943
36944         * NodeLabelEditEventArgs.cs:
36945         * NodeLabelEditEventHandler.cs:
36946         * OpenTreeNodeEnumerator.cs:
36947         * TreeNode.cs:
36948         * TreeNodeCollection.cs:
36949         * TreeView.cs:
36950         * TreeViewAction.cs:
36951         * TreeViewCancelEventArgs.cs:
36952         * TreeViewCancelEventHandler.cs:
36953         * TreeViewEventArgs.cs:
36954         * TreeViewEventHandler.cs: Initial implementation.
36955
36956 2004-12-01  Ravindra <rkumar@novell.com>
36957
36958         * ListView.cs (CalculateListView): Fixed scrolling related
36959         calculations. Also, removed some debug statements from other
36960         places.
36961         * ListViewItem.cs: Changed access to 'selected' instance variable
36962         from private to internal.
36963         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
36964
36965 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
36966
36967         * ThemeWin32Classic.cs: remove cache of brush and pens for
36968         specific controls and use the global system, fixes scrollbutton
36969         bugs (for small sizes, disabled, etc)
36970         
36971         * ScrollBar.cs: does not show the thumb for very small controls
36972         (as MS) and allow smaller buttons that the regular size
36973
36974 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
36975
36976         * UpDownBase.cs: Add abstract methods for the interface.
36977         Add new virtual methods (need to be hooked up to TextEntry when it
36978         exists).
36979         Add override methods for most features.
36980         Computes the size, forces the height of the text entry.
36981
36982         * NumericUpDown.cs: Put here the current testing code.
36983
36984         * Set eol-style property on all files that do not have mixed line
36985         endings, to minimize the future problems.  There are still a few
36986         files with mixed endings, and someone should choose whether they
36987         want to move it or not.
36988
36989 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
36990
36991         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
36992         System.Colors
36993         
36994 2004-11-30  Ravindra <rkumar@novell.com>
36995
36996         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
36997         drawing and replaced use of SystemColors by theme colors.
36998         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
36999         * ListView.cs (ListViewItemCollection.Add): Throw exception when
37000         same ListViewItem is being added more than once.
37001
37002 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
37003
37004         * MonthCalendar.cs:
37005           - ControlStyles love to make the control not flicker
37006           
37007 2004-11-30  Peter Bartok  <pbartok@novell.com>
37008
37009         * CharacterCasing.cs: Added
37010
37011 2004-11-29  Peter Bartok  <pbartok@novell.com>
37012
37013         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37014           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
37015           I am removing these files as they conflict with already completed
37016           work. While it is fantastic to get contributions to MWF, I
37017           respectfully ask that everyone please coordinate their contributions
37018           through mono-winforms-list or #mono-winforms at this time. We're
37019           explicitly avoiding stubbing and don't want controls that don't have
37020           their basic functionality implemented in svn. Please also see
37021           http://www.mono-project.com/contributing/winforms.html
37022
37023
37024 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
37025
37026         * Application.cs (ModalRun): Don't hang after exit.
37027
37028         * Theme.cs: New TreeViewDefaultSize property.
37029
37030         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
37031         with less hardcoded SystemColors constant.
37032         Implemented TreeViewDefaultSize.
37033
37034         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
37035         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
37036
37037
37038 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
37039
37040         * MonthCalendar.cs:
37041           - Fix NextMonthDate and PrevMonthDate click moving calendar
37042
37043 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37044
37045         * MonthCalendar.cs:
37046           - Fix usage of ScrollChange Property when scrolling months
37047
37048 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
37049
37050         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
37051          - Fixes menu destroying
37052          - Support adding and removing items on already created menus
37053
37054 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
37055
37056         * MonthCalendar.cs:
37057           - Re-worked all bolded dates handling to match win32
37058         * ThemeWin32Classic.cs:
37059           - Fixed rendering with bolded dates
37060
37061 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
37062
37063         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
37064         - Horizontal scroolbar
37065         - Multicolumn
37066         - Fixes
37067
37068
37069 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
37070
37071         * MonthCalendar.cs:
37072           - Fix Usage of MaxSelectionCount from SelectionRange
37073           - Fixed Shift + Cursor Selection
37074           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
37075           - Fixed normal cursor selection to be compat with win32
37076           - Fixed Shift + Mouse Click selection
37077
37078 2004-11-24  Peter Bartok <pbartok@novell.com>
37079
37080         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
37081         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
37082         * XplatUIX11.cs:
37083           - CreatedKeyBoardMsg now updates keystate with Alt key
37084           - Added workaround for timer crash to CheckTimers, Jackson will
37085             develop a proper fix and check in later
37086           - Implemented DispatchMessage
37087           - Removed calling the native window proc from GetMessage (call
37088             now moved to DispatchMessage)
37089
37090         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
37091           the keydata (Fixes bug #69831)
37092
37093         * XplatUIWin32.cs:
37094           - (DispatchMessage): Switched to return IntPtr
37095           - Added DllImport for SetFocus
37096
37097 2004-11-24  Ravindra <rkumar@novell.com>
37098
37099         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
37100         background drawing.
37101         * ListViewItem.cs: Fixed various properties, calculations
37102         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
37103         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
37104         and some internal properties. Fixed MouseDown handler and Paint
37105         method.
37106
37107 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37108
37109         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
37110
37111 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37112
37113         * ContainerControl.cs: correct accidental check in of local changes
37114
37115 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
37116
37117         * ThemeWin32Classic.cs:
37118                 - Fixed Drawing Last month in grid (sometimes not showing)
37119         * MonthCalendar.cs:
37120                 - Fixed title width calculation bug (makeing title small)
37121
37122 2004-11-23  Peter Bartok <pbartok@novell.com>
37123
37124         * XplatUIX11.cs:
37125           - Added generation of WM_MOUSEHOVER event
37126           - Added missing assignment of async_method atom
37127           - Fixed WM_ERASEBKGND; now only redraws the exposed area
37128
37129 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37130
37131         * ThemeWin32Classic.cs:
37132                 - Fixed Drawing of today circle when showtodaycircle not set
37133                 - fixed drawing of first and last month in the grid (gay dates)
37134         * MonthCalendar.cs:
37135                 - Fixed Drawing of today circle
37136                 - Fixed drawing of grady dates
37137                 - Fixed HitTest for today link when ShowToday set to false
37138                 - Fixed DefaultSize to obey ShowToday
37139
37140 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
37141
37142         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
37143         * System.Windows.Forms/Theme.cs
37144         * MonthCalendar.cs: added for MonthCalendar
37145         * SelectionRange.cs: added for MonthCalendar
37146         * Day.cs: added for MonthCalendar: added for MonthCalendar
37147         * DateRangeEventArgs.cs: added for MonthCalendar
37148         * DateRangeEventHandler.cs: added for MonthCalendar
37149
37150 2004-11-22  Ravindra <rkumar@novell.com>
37151
37152         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
37153         property.
37154
37155 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
37156
37157         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
37158         event handler.
37159         
37160         * NumericUpDown.cs: Added new implementation.
37161         * UpDownBase.cs: Added new implementation.
37162
37163         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
37164         implementations.
37165         
37166         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
37167         implementations.
37168
37169         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
37170         methods.
37171
37172 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
37173
37174         * Timer.cs  (Dispose): Should call the base dispose when
37175         overriding.
37176
37177 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37178
37179         * ScrollBar.cs: updates thumb position when max, min or increment
37180         is changed
37181
37182 2004-11-21  Ravindra <rkumar@novell.com>
37183
37184         * ListView.cs: Implemented item selection, activation and
37185         column header style. Fixed properties to do a redraw, if
37186         required. Added support for MouseHover, DoubleClick, KeyDown
37187         and KeyUp event handling and some minor fixes.
37188         * ListViewItem.cs: Fixed constructor.
37189         * ThemeWin32Classic.cs: Improved drawing for ListView.
37190
37191 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
37192
37193         * ThemeWin32Classic.cs: initial listbox drawing code
37194         * DrawMode.cs: new enumerator
37195         * ListControl.cs: stubbed class
37196         * ListBox.cs: initial implementation
37197         * Theme.cs: new methods definitions
37198         * SelectionMode.cs: new enumerator
37199
37200 2004-11-17  Peter Bartok  <pbartok@novell.com>
37201
37202         * XplatUIWin32.cs: Added double-click events to the class style
37203         * Control.cs (WndProc):
37204           - Added handling of click-count to MouseDown/ MouseUp events.
37205           - Added handling of middle and right mouse buttons
37206           - Removed old debug code
37207
37208 2004-11-17  Jackson Harper  <jackson@ximian.com>
37209
37210         * XplatUIX11.cs: Use the new Mono.Unix namespace.
37211
37212 2004-11-17  Ravindra <rkumar@novell.com>
37213
37214         * ListView.cs: Added event handling for MouseMove/Up/Down.
37215         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
37216         * ThemeWin32Classic.cs: We need to clear the graphics context and
37217         draw column header in a proper state.
37218
37219
37220 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
37221
37222         *  Menu.cs: fixes signature
37223
37224 2004-11-16  Peter Bartok  <pbartok@novell.com>
37225
37226         * XplatUIX11.cs (GetMessage): Implemented generation of
37227           double click mouse messages
37228
37229 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
37230
37231         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
37232         not by menu
37233
37234 2004-11-11  Peter Bartok  <pbartok@novell.com>
37235
37236         * HandleData.cs: Added Visible property
37237         * XplatUIX11.cs (IsVisible): Now uses Visible property from
37238           HandleData
37239         * XplatUIX11.cs: Removed old debug leftovers
37240         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
37241         * Control.cs (WndProc): Removed old debug leftovers,
37242           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
37243           needed WM_SIZE handling
37244
37245 2004-11-11  Jackson Harper  <jackson@ximian.com>
37246
37247         * OwnerDrawPropertyBag.cs:
37248         * TreeViewImageIndexConverter.cs: Initial implementation
37249
37250 2004-11-10  Jackson Harper  <jackson@ximian.com>
37251
37252         * ThemeWin32Classic.cs:
37253         * TabControl.cs: instead of moving tabs by the slider pos just
37254         start drawing at the tab that is offset by the slider. This way
37255         scrolling always moves by exactly one tab.
37256
37257 2004-11-10  Jackson Harper  <jackson@ximian.com>
37258
37259         * TabControl.cs: You can only scroll left when the slider has
37260         already ben moved right.
37261         
37262 2004-11-10  Jackson Harper  <jackson@ximian.com>
37263
37264         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
37265         the clip area.
37266         
37267 2004-11-10  Jackson Harper  <jackson@ximian.com>
37268
37269         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
37270         clip area.
37271         
37272 2004-11-09  Jackson Harper  <jackson@ximian.com>
37273
37274         * TabControl.cs (CalcXPos): New helper method so we can determine
37275         the proper place to start drawing vertical tabs.
37276         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
37277         
37278 2004-11-09  Jackson Harper  <jackson@ximian.com>
37279
37280         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
37281         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
37282         and Bottom, left and right are illegal values for this and
37283         multiline is enabled when the alignment is set to left or right.
37284         (DrawTab): Each alignment block should draw the text itself now
37285         because Left requires special love. Also add rendering for Left
37286         aligned tabs.
37287         
37288 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
37289
37290         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
37291         does not destroy the windows, removes debugging messages
37292
37293 2004-11-09  jba  <jba-mono@optusnet.com.au>
37294
37295         * ThemeWin32Classic.cs
37296         (DrawButtonBase): Fix verticle text rect clipping in windows
37297         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37298         rendering and incorrect text rect clipping
37299         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
37300         rendering and incorrect text rect clipping
37301         
37302 2004-11-08  Jackson Harper  <jackson@ximian.com>
37303
37304         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
37305         bottom when they are bottom aligned so the bottoms of the tabs get
37306         displayed.
37307         * TabControl.cs (DropRow): Move rows up instead of down when the
37308         tab control is bottom aligned.
37309
37310 2004-11-08 13:59  pbartok
37311
37312         * XplatUIX11.cs:
37313           - Added handling for various window styles
37314           - Added handling for popup windows
37315           - Added SetTopmost handling
37316
37317 2004-11-08 13:55  pbartok
37318
37319         * XplatUIWin32.cs:
37320           - Added argument to SetTopmost method
37321           - Fixed broken ClientToScreen function
37322
37323 2004-11-08 13:53  pbartok
37324
37325         * XplatUIStructs.cs:
37326           - Added missing WS_EX styles
37327
37328 2004-11-08 13:53  pbartok
37329
37330         * XplatUI.cs, XplatUIDriver.cs:
37331           - Added argument to SetTopmost
37332
37333 2004-11-08 13:52  pbartok
37334
37335         * X11Structs.cs:
37336           - Added XSetWindowAttributes structure
37337           - Improved XWindowAttributes structure
37338           - Added SetWindowValuemask enum
37339           - Added window creation arguments enum
37340           - Added gravity enum
37341           - Added Motif hints structure
37342           - Added various Motif flags and enums
37343           - Added PropertyMode enum for property functions
37344
37345 2004-11-08 13:50  pbartok
37346
37347         * Form.cs:
37348           - Fixed arguments for updated SetTopmost method
37349
37350 2004-11-08 13:49  pbartok
37351
37352         * ToolTip.cs:
37353           - Fixed arguments for updated SetTopmost function
37354           - Fixed usage of PointToClient
37355
37356 2004-11-08 13:44  pbartok
37357
37358         * MenuAPI.cs:
37359           - Added Clipping of children and siblings
37360
37361 2004-11-08 13:41  pbartok
37362
37363         * MainMenu.cs:
37364           - Removed SetMenuBarWindow call. We do this in Form.cs
37365
37366 2004-11-08 13:40  jackson
37367
37368         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
37369           scrolling jimmi in the correct location with bottom aligned tabs
37370
37371 2004-11-08 13:36  pbartok
37372
37373         * ContainerControl.cs:
37374           - Implemented BindingContext
37375           - Implemented ParentForm
37376
37377 2004-11-08 12:46  jackson
37378
37379         * TabControl.cs: Put bottom rendered tabs in the right location
37380
37381 2004-11-08 07:15  jordi
37382
37383         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
37384           removes dead code
37385
37386 2004-11-05 17:30  jackson
37387
37388         * TabControl.cs: When selected tabs are expanded make sure they
37389           don't go beyond the edges of the tab control
37390
37391 2004-11-05 14:57  jackson
37392
37393         * TabControl.cs: Reset show_slider so if the control is resized to
37394           a size where it is no longer needed it's not displayed anymore
37395
37396 2004-11-05 13:16  jackson
37397
37398         * TabControl.cs: Make tab pages non visible when added to the
37399           control
37400
37401 2004-11-05 12:42  jackson
37402
37403         * TabControl.cs: Implement SizeMode.FillToRight
37404
37405 2004-11-05 12:16  jackson
37406
37407         * Control.cs: Do not call CreateHandle if the handle is already
37408           created
37409
37410 2004-11-05 11:46  jackson
37411
37412         * TabControl.cs: Remove superflous call to CalcTabRows
37413
37414 2004-11-05 09:07  jackson
37415
37416         * XplatUIX11.cs: Update for Mono.Posix changes
37417
37418 2004-11-05 07:00  ravindra
37419
37420         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
37421           scrolling.
37422
37423 2004-11-04 22:47  jba
37424
37425         * ThemeWin32Classic.cs:
37426           - Fix Button rendering for FlatStyle = Flat or Popup
37427           - Fix RadioButton and CheckBox rendering when Appearance = Button
37428             (normal and flatstyle).
37429           - Correct outer rectangle color when drawing focus rectangle
37430           - Adjust button bounds to be 1 px smaller when focused
37431           - Make button not draw sunken 3d border when pushed (windows compat)
37432           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
37433           - Offset the text in RadioButton and Checkbox when being rendered as
37434           a button.
37435           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
37436           radiobuttons
37437           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
37438           - Fixed disabled text rendering for normally rendered radiobuttons
37439
37440 2004-11-04 10:26  jackson
37441
37442         * TabControl.cs: Recalculate tab rows when resizing
37443
37444 2004-11-04 07:47  jordi
37445
37446         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
37447           collection completion, drawing issues, missing features
37448
37449 2004-11-04 05:03  ravindra
37450
37451         * ScrollBar.cs:
37452                 - We need to recalculate the Thumb area when
37453                 LargeChange/maximum/minimum values are changed.
37454           - We set the 'pos' in UpdatePos() method to minimum, if it's less
37455                 than minimum. This is required to handle the case if large_change is
37456                 more than max, and use LargeChange property instead of large_change
37457                 variable.
37458           - We return max+1 when large_change is more than max, like MS does.
37459
37460 2004-11-04 04:29  ravindra
37461
37462         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
37463                 - Changed default value signatures (prefixed all with ListView).
37464                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
37465                 ListView.
37466           - Fixed calculations for ListViewItem and implemented Clone()
37467           method.
37468
37469 2004-11-04 04:26  ravindra
37470
37471         * Theme.cs, ThemeWin32Classic.cs:
37472                 - Changed default ListView values signatures (prefixed all with
37473                 ListView).
37474           - Fixed default size values for VScrollBar and HScrollBar.
37475                 - Fixed DrawListViewItem method.
37476
37477 2004-11-04 04:05  ravindra
37478
37479         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
37480
37481 2004-11-04 04:04  ravindra
37482
37483         * ImageList.cs: Implemented the missing overload for Draw method.
37484
37485 2004-11-03 19:29  jackson
37486
37487         * TabControl.cs: Handle dropping rows on selection properly
37488
37489 2004-11-03 11:59  jackson
37490
37491         * TabControl.cs: remove debug code
37492
37493 2004-11-03 11:52  jackson
37494
37495         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
37496           the scrolly widgerywoo
37497
37498 2004-11-02 13:52  jackson
37499
37500         * TabControl.cs: Resize the tab pages and tabs when the tab control
37501           is resized
37502
37503 2004-11-02 13:40  jackson
37504
37505         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
37506           selected tab to the bottom
37507
37508 2004-11-02 13:39  jackson
37509
37510         * TabPage.cs: Store the tab pages row
37511
37512 2004-11-02 12:33  jordi
37513
37514         * MenuItem.cs: fixes handle creation
37515
37516 2004-11-02 11:42  jackson
37517
37518         * TabControl.cs: signature fix
37519
37520 2004-11-02 08:56  jackson
37521
37522         * TabControl.cs: Calculate whether the tab is on an edge properly.
37523           Remove top secret debugging code
37524
37525 2004-11-01 19:57  jackson
37526
37527         * TabControl.cs: Add click handling, and proper sizing
37528
37529 2004-11-01 19:47  jackson
37530
37531         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
37532           tab controls
37533
37534 2004-11-01 19:39  jackson
37535
37536         * TabPage.cs: add internal property to store the bounds of a tab
37537           page
37538
37539 2004-10-30 04:23  ravindra
37540
37541         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
37542           values.
37543
37544 2004-10-30 04:21  ravindra
37545
37546         * ListView.cs, ListViewItem.cs: Added support for scrolling and
37547           fixed calculations.
37548
37549 2004-10-30 03:06  pbartok
37550
37551         * XplatUIX11.cs:
37552           - Removed extension of DllImported libs
37553
37554 2004-10-29 09:55  jordi
37555
37556         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
37557           navigation, itemcollection completion, menu fixes
37558
37559 2004-10-27 22:58  pbartok
37560
37561         * XplatUIX11.cs:
37562           - Now throws a nice error message when no X display could be opened
37563
37564 2004-10-26 13:51  jordi
37565
37566         * ListView.cs: removes warning
37567
37568 2004-10-26 03:55  ravindra
37569
37570         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
37571           ThemeWin32Classic.cs: Some formatting for my last checkins.
37572
37573 2004-10-26 03:36  ravindra
37574
37575         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
37576           control and default values.
37577
37578 2004-10-26 03:35  ravindra
37579
37580         * Theme.cs: Added some default values for ListView control.
37581
37582 2004-10-26 03:33  ravindra
37583
37584         * ToolBar.cs: ToolBar should use the user specified button size, if
37585           there is any. Added a size_specified flag for the same.
37586
37587 2004-10-26 03:33  ravindra
37588
37589         * ColumnHeader.cs: Added some internal members and calculations for
37590           ColumnHeader.
37591
37592 2004-10-26 03:32  ravindra
37593
37594         * ListViewItem.cs: Calculations for ListViewItem.
37595
37596 2004-10-26 03:31  ravindra
37597
37598         * ListView.cs: Added some internal members and calculations for
37599           ListView.
37600
37601 2004-10-22 13:31  jordi
37602
37603         * MenuAPI.cs: speedup menus drawing
37604
37605 2004-10-22 13:16  jackson
37606
37607         * XplatUIX11.cs: Make sure to update exposed regions when adding an
37608           expose event
37609
37610 2004-10-22 11:49  jackson
37611
37612         * Control.cs: oops
37613
37614 2004-10-22 11:41  jackson
37615
37616         * Control.cs: Check to see if the window should have its background
37617           repainted by X when drawing.
37618
37619 2004-10-22 11:31  jackson
37620
37621         * XplatUIX11.cs: When invalidating areas only use XClearArea if
37622           clear is true, this way we do not get flicker from X repainting the
37623           background
37624
37625 2004-10-22 11:28  jackson
37626
37627         * XEventQueue.cs: Queue properly
37628
37629 2004-10-21 09:38  jackson
37630
37631         * XEventQueue.cs: Fix access modifier
37632
37633 2004-10-21 09:36  jackson
37634
37635         * XEventQueue.cs: Don't loose messages
37636
37637 2004-10-21 09:22  jackson
37638
37639         * XEventQueue.cs: Don't loose messages
37640
37641 2004-10-20 04:15  jordi
37642
37643         * BootMode.cs: enum need it by SystemInfo
37644
37645 2004-10-19 21:58  pbartok
37646
37647         * XplatUIWin32.cs:
37648           - Small sanity check
37649
37650 2004-10-19 21:56  pbartok
37651
37652         * Form.cs:
37653           - Added private FormParentWindow class which acts as the container
37654             for our form and as the non-client area where menus are drawn
37655           - Added/Moved required tie-ins to Jordi's menus
37656           - Fixed/Implemented the FormStartPosition functionality
37657
37658 2004-10-19 21:52  pbartok
37659
37660         * Control.cs:
37661           - Removed unneeded locals
37662           - Added code to all size and location properties to understand and
37663             deal with the parent container of Form
37664
37665 2004-10-19 21:33  pbartok
37666
37667         * Application.cs:
37668           - Fixed to deal with new Form subclasses for menus
37669
37670 2004-10-19 17:48  jackson
37671
37672         * XEventQueue.cs: commit correct version of file
37673
37674 2004-10-19 16:50  jackson
37675
37676         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
37677
37678 2004-10-19 16:15  jordi
37679
37680         * MenuAPI.cs: MenuBarCalcSize returns the height
37681
37682 2004-10-19 08:31  pbartok
37683
37684         * Control.cs:
37685           - Added missing call to PreProcessMessage before calling OnXXXKey
37686           methods
37687
37688 2004-10-19 00:04  ravindra
37689
37690         * ToolTip.cs: Fixed constructor.
37691
37692 2004-10-18 09:31  jordi
37693
37694         * MenuAPI.cs: menuitems in menubars do not have shortcuts
37695
37696 2004-10-18 09:26  jordi
37697
37698         * MenuItem.cs: fixes MenuItem class signature
37699
37700 2004-10-18 08:56  jordi
37701
37702         * MenuAPI.cs: prevents windows from showing in the taskbar
37703
37704 2004-10-18 00:28  ravindra
37705
37706         * ToolTip.cs: Suppressed a warning message.
37707
37708 2004-10-18 00:27  ravindra
37709
37710         * Control.cs: Default value of visible property must be true.
37711
37712 2004-10-17 23:19  pbartok
37713
37714         * ToolTip.cs:
37715           - Complete implementation
37716
37717 2004-10-17 23:19  pbartok
37718
37719         * XplatUIX11.cs:
37720           - Added EnableWindow method
37721           - Added SetModal stub
37722           - Added generation of WM_ACTIVATE message (still needs testing)
37723           - Added SetTopMost stub
37724           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
37725
37726 2004-10-17 23:17  pbartok
37727
37728         * XplatUIWin32.cs:
37729           - Removed VirtualKeys to XplatUIStructs
37730           - Implemented SetTopMost method
37731           - Implemented EnableWindow method
37732           - Bugfix in ScreenToClient()
37733           - Bugfixes in ClientToScreen()
37734
37735 2004-10-17 22:51  pbartok
37736
37737         * XplatUIStructs.cs:
37738           - Added WS_EX styles to WindowStyles enumeration
37739
37740 2004-10-17 22:50  pbartok
37741
37742         * XplatUI.cs, XplatUIDriver.cs:
37743           - Added method for enabling/disabling windows
37744           - Added method for setting window modality
37745           - Added method for setting topmost window
37746
37747 2004-10-17 22:49  pbartok
37748
37749         * ThemeWin32Classic.cs:
37750           - Added ToolTip drawing code
37751
37752 2004-10-17 22:49  pbartok
37753
37754         * Theme.cs:
37755           - Added ToolTip abstracts
37756
37757 2004-10-17 22:47  pbartok
37758
37759         * Form.cs:
37760           - Fixed Form.ControlCollection to handle owner relations
37761           - Added Owner/OwnedForms handling
37762           - Implemented Z-Ordering for owned forms
37763           - Removed unneeded private overload of ShowDialog
37764           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
37765             so I hope)
37766           - Fixed Close(), had wrong default
37767           - Added firing of OnLoad event
37768           - Added some commented out debug code for Ownership handling
37769
37770 2004-10-17 22:16  pbartok
37771
37772         * Control.cs:
37773           - Fixed/implemented flat list of controls
37774
37775 2004-10-17 22:14  pbartok
37776
37777         * Application.cs:
37778           - Added code to simulate modal dialogs on Win32
37779
37780 2004-10-17 16:11  jordi
37781
37782         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
37783           mouse event
37784
37785 2004-10-17 13:39  jordi
37786
37787         * MenuAPI.cs: menu drawing fixes
37788
37789 2004-10-15 09:10  ravindra
37790
37791         * StructFormat.cs: General Enum.
37792
37793 2004-10-15 09:09  ravindra
37794
37795         * SizeGripStyle.cs: Enum for Form.
37796
37797 2004-10-15 09:08  ravindra
37798
37799         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
37800           in Theme for ListView.
37801
37802 2004-10-15 09:06  ravindra
37803
37804         * ColumnHeader.cs: Flushing some formatting changes.
37805
37806 2004-10-15 09:05  ravindra
37807
37808         * ListViewItem.cs: Implemented GetBounds method and fixed coding
37809           style.
37810
37811 2004-10-15 09:03  ravindra
37812
37813         * ListView.cs: Implemented Paint method and fixed coding style.
37814
37815 2004-10-15 07:34  jordi
37816
37817         * MenuAPI.cs: fix for X11
37818
37819 2004-10-15 07:32  ravindra
37820
37821         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
37822                 - Renamed Paint() method to Draw() for clarity. Also, moved
37823                 DrawImage() to OnPaint().
37824
37825 2004-10-15 07:25  ravindra
37826
37827         * CheckBox.cs, RadioButton.cs:
37828                 - Removed Redraw (), we get it from ButtonBase.
37829                 - Implemented Paint (), to do class specific painting.
37830
37831 2004-10-15 07:16  ravindra
37832
37833         * ButtonBase.cs:
37834                 - Redraw () is not virtual now.
37835                 - Added an internal virtual method Paint (), so that
37836                 derived classes can do their painting on their own.
37837                 - Modified OnPaint () to call Paint ().
37838
37839 2004-10-15 06:43  jordi
37840
37841         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
37842           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
37843
37844 2004-10-15 00:30  ravindra
37845
37846         * MessageBox.cs:
37847                 - MessageBox on windows does not have min/max buttons.
37848                 This change in CreateParams fixes this on Windows. We
37849                 still need to implement this windowstyle behavior in
37850                 our X11 driver.
37851
37852 2004-10-14 05:14  ravindra
37853
37854         * ToolBar.cs:
37855                 - Changed Redraw () to do a Refresh () always.
37856                 - Fixed the MouseMove event handling when mouse is pressed,
37857                 ie drag event handling.
37858                 - Replaced the usage of ToolBarButton.Pressed property to
37859                 ToolBarButton.pressed internal variable.
37860
37861 2004-10-14 05:10  ravindra
37862
37863         * ToolBarButton.cs:
37864                 - Added an internal member 'inside' to handle mouse move
37865                 with mouse pressed ie mouse drag event.
37866                 - Changed 'Pressed' property to return true only when
37867                 'inside' and 'pressed' are both true.
37868                 - Some coding style love.
37869
37870 2004-10-14 00:17  ravindra
37871
37872         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
37873           public method.
37874
37875 2004-10-14 00:15  ravindra
37876
37877         * ButtonBase.cs: Redraw () related improvements.
37878
37879 2004-10-14 00:14  ravindra
37880
37881         * MessageBox.cs: Moved InitFormSize () out of Paint method and
37882           removed unnecessary calls to Button.Show () method.
37883
37884 2004-10-13 17:50  pbartok
37885
37886         * XplatUIX11.cs:
37887           - Formatting fix
37888           - Removed destroying of window until we solve the problem of X
37889             destroying the window before us on shutdown
37890
37891 2004-10-13 16:32  pbartok
37892
37893         * ButtonBase.cs:
37894           - Now Redraws on MouseUp for FlatStyle Flat and Popup
37895
37896 2004-10-13 14:18  pbartok
37897
37898         * XplatUIX11.cs:
37899           - Added code to destroy the X window
37900
37901 2004-10-13 14:18  pbartok
37902
37903         * XplatUIWin32.cs:
37904           - Added code to destroy a window
37905
37906 2004-10-13 14:12  pbartok
37907
37908         * ButtonBase.cs:
37909           - Added the Redraw on Resize that got dropped in the last rev
37910
37911 2004-10-13 09:06  pbartok
37912
37913         * ThemeWin32Classic.cs:
37914           - Path from John BouAntoun:
37915             * Fix check rendering (centre correctly for normal style, offset
37916               correctly for FlatStyle).
37917             * Fix border color usage (use backcolor) for FlatStyle.Popup
37918             * Use checkbox.Capture instead of checkbox.is_pressed when
37919               rendering flatstyle states.
37920
37921 2004-10-12 21:48  pbartok
37922
37923         * ThemeWin32Classic.cs:
37924           - Removed all occurences of SystemColors and replaced them with the
37925             matching theme color
37926
37927 2004-10-12 21:41  pbartok
37928
37929         * ThemeWin32Classic.cs:
37930           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
37931             him using the function for flatstyle drawing
37932           - Changed functions to use the new version of CPDrawBorder3D
37933
37934 2004-10-12 21:15  pbartok
37935
37936         * ControlPaint.cs:
37937           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
37938             match MS documentation. They need to return defined colors if the
37939             passed color matches the configured control color. Thanks to John
37940             BouAntoun for pointing this out.
37941
37942 2004-10-12 20:57  pbartok
37943
37944         * Control.cs:
37945           - Fix from John BouAntoun: Raise ForeColorChanged event when text
37946             color is changed
37947
37948 2004-10-12 20:46  pbartok
37949
37950         * CheckBox.cs:
37951           - Fix from John BouAntoun: Now properly sets the Appearance property
37952
37953 2004-10-12 20:45  pbartok
37954
37955         * ThemeWin32Classic.cs:
37956           - Fixes from John BouAntoun: now handles forecolors and backcolors
37957             for flatstyle rendered controls much better; It also fixes normal
37958             checkbox rendering when pushed or disabled.
37959
37960 2004-10-08 02:50  jordi
37961
37962         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
37963           work
37964
37965 2004-10-07 08:56  jordi
37966
37967         * ThemeWin32Classic.cs: Removes deletion of cached brushes
37968
37969 2004-10-06 03:59  jordi
37970
37971         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
37972           XplatUIWin32.cs: removes warnings from compilation
37973
37974 2004-10-05 12:23  jackson
37975
37976         * RadioButton.cs: Fix ctor
37977
37978 2004-10-05 11:10  pbartok
37979
37980         * MessageBox.cs:
37981           - Partial implementation by Benjamin Dasnois
37982
37983 2004-10-05 10:15  jackson
37984
37985         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
37986           by John BouAntoun
37987
37988 2004-10-05 03:07  ravindra
37989
37990         * ToolBar.cs:
37991                 - Removed a private method, Draw ().
37992                 - Fixed the ButtonDropDown event handling.
37993                 - Fixed MouseMove event handling.
37994
37995 2004-10-05 03:04  ravindra
37996
37997         * ThemeWin32Classic.cs:
37998                 - Added DrawListView method and ListViewDefaultSize property.
37999                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
38000                 - Changed DOS style CRLF to Unix format (dos2unix).
38001
38002 2004-10-05 03:03  ravindra
38003
38004         * Theme.cs:
38005                 - Added DrawListView method and ListViewDefaultSize property.
38006
38007 2004-10-05 02:42  ravindra
38008
38009         * ToolBarButton.cs: Added an internal member dd_pressed to handle
38010           clicks on DropDown arrow.
38011
38012 2004-10-04 22:56  jackson
38013
38014         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
38015           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
38016           Control handle the buffers, derived classes should not have to
38017           CreateBuffers themselves.
38018
38019 2004-10-04 21:20  jackson
38020
38021         * StatusBar.cs: The control handles resizing the buffers now.
38022
38023 2004-10-04 21:18  jackson
38024
38025         * Control.cs: When resizing the buffers should be invalidated. This
38026           should be handled in Control not in derived classes.
38027
38028 2004-10-04 14:45  jackson
38029
38030         * TabPage.cs: oops
38031
38032 2004-10-04 02:14  pbartok
38033
38034         * LeftRightAlignment.cs:
38035           - Initial check-in
38036
38037 2004-10-04 01:09  jordi
38038
38039         * ThemeWin32Classic.cs: fixes right button position causing right
38040           button not showing on horizontal scrollbars
38041
38042 2004-10-02 13:12  pbartok
38043
38044         * XplatUIX11.cs:
38045           - Simplified the Invalidate method by using an X call instead of
38046             generating the expose ourselves
38047           - Added an expose when the window background is changed
38048           - Implemented ClientToScreen method
38049
38050 2004-10-02 13:08  pbartok
38051
38052         * XplatUIWin32.cs:
38053           - Added Win32EnableWindow method (test for implementing modal
38054           dialogs)
38055           - Added ClientToScreen method and imports
38056
38057 2004-10-02 13:07  pbartok
38058
38059         * XplatUI.cs, XplatUIDriver.cs:
38060           - Added ClientToScreen coordinate translation method
38061
38062 2004-10-02 13:06  pbartok
38063
38064         * KeyPressEventArgs.cs:
38065           - Fixed access level for constructor
38066
38067 2004-10-02 13:06  pbartok
38068
38069         * NativeWindow.cs:
38070           - Changed access level for the window_collection hash table
38071
38072 2004-10-02 13:05  pbartok
38073
38074         * Form.cs:
38075           - Added KeyPreview property
38076           - Added Menu property (still incomplete, pending Jordi's menu work)
38077           - Implemented ProcessCmdKey
38078           - Implemented ProcessDialogKey
38079           - Implemented ProcessKeyPreview
38080
38081 2004-10-02 13:02  pbartok
38082
38083         * Control.cs:
38084           - Added private method to get the Control object from the window
38085           handle
38086           - Implemented ContextMenu property
38087           - Implemented PointToScreen
38088           - Implemented PreProcessMessage
38089           - Implemented IsInputChar
38090           - Implemented IsInputKey
38091           - Implemented ProcessCmdKey
38092           - Completed ProcessKeyEventArgs
38093           - Fixed message loop to call the proper chain of functions on key
38094           events
38095           - Implemented ProcessDialogChar
38096           - Implemented ProcessDialogKey
38097           - Implemented ProcessKeyMessage
38098           - Implemented ProcessKeyPreview
38099           - Added RaiseDragEvent stub (MS internal method)
38100           - Added RaiseKeyEvent stub (MS internal method)
38101           - Added RaiseMouseEvent stub (MS Internal method)
38102           - Added RaisePaintEvent stub (MS Internal method)
38103           - Added ResetMouseEventArgs stub (MS Internal method)
38104           - Implemented RtlTranslateAlignment
38105           - Implemented RtlTranslateContent
38106           - Implemented RtlTranslateHorizontal
38107           - Implemented RtlTranslateLeftRight
38108           - Added generation of KeyPress event
38109
38110 2004-10-02 05:57  ravindra
38111
38112         * ListViewItem.cs: Added attributes.
38113
38114 2004-10-02 05:32  ravindra
38115
38116         * ListView.cs: Added attributes.
38117
38118 2004-10-01 11:53  jackson
38119
38120         * Form.cs: Implement the Close method so work on MessageBox can
38121           continue.
38122
38123 2004-09-30 14:06  pbartok
38124
38125         * XplatUIX11.cs:
38126           - Bug fixes
38127
38128 2004-09-30 11:34  jackson
38129
38130         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
38131
38132 2004-09-30 07:26  ravindra
38133
38134         * ListViewItemConverter.cs: Converter for ListViewItem.
38135
38136 2004-09-30 07:26  ravindra
38137
38138         * SortOrder.cs: Enum for ListView control.
38139
38140 2004-09-30 07:25  ravindra
38141
38142         * ColumnHeader.cs: Supporting class for ListView control.
38143
38144 2004-09-30 07:24  ravindra
38145
38146         * ListView.cs, ListViewItem.cs: Initial implementation.
38147
38148 2004-09-30 07:20  ravindra
38149
38150         * ItemActivation.cs: Enum for ListView Control.
38151
38152 2004-09-29 20:29  pbartok
38153
38154         * XplatUIX11.cs:
38155           - Added lookup of pixel value for background color; tries to get a
38156             color 'close' to the requested color, it avoids having to create a
38157             colormap.  Depending on the display this could mean the used color
38158             is slightly off the desired color. Might have to change it to a more
38159             resource intensive colormap approach, but it will work as a
38160           workaround to avoid red screens.
38161
38162 2004-09-29 14:27  jackson
38163
38164         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
38165
38166 2004-09-28 12:44  pbartok
38167
38168         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
38169           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
38170           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
38171           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
38172           TrackBar.cs, VScrollBar.cs:
38173           - Streamlined Theme interfaces:
38174             * Each DrawXXX method for a control now is passed the object for
38175               the control to be drawn in order to allow accessing any state the
38176               theme might require
38177
38178             * ControlPaint methods for the theme now have a CP prefix to avoid
38179               name clashes with the Draw methods for controls
38180
38181             * Every control now retrieves it's DefaultSize from the current
38182             theme
38183
38184 2004-09-28 12:17  jackson
38185
38186         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
38187           drawing
38188
38189 2004-09-24 14:57  jackson
38190
38191         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
38192           Gives us a nice little performance boost.
38193
38194 2004-09-24 12:02  jackson
38195
38196         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
38197           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
38198           Control and supporting classes. Initial checkin
38199
38200 2004-09-23 13:08  jackson
38201
38202         * Form.cs: Temp build fixage
38203
38204 2004-09-23 01:39  ravindra
38205
38206         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
38207           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
38208           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
38209           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
38210           EventHandlers needed by ListView Control.
38211
38212 2004-09-22 14:12  pbartok
38213
38214         * ScrollableControl.cs:
38215           - Implemented DockPadding property
38216           - Implemented AutoScroll property
38217           - Implemented AutoScrollMargin property
38218           - Implemented AutoScrollMinSize property
38219           - Implemented AutoScrollPosition property
38220           - Implemented DisplayRectangle property (still incomplete)
38221           - Implemented CreateParams property
38222           - Implemented HScroll property
38223           - Implemented VScroll property
38224           - Implemented OnVisibleChanged property
38225
38226 2004-09-22 14:09  pbartok
38227
38228         * Form.cs:
38229           - Added Form.ControllCollection class
38230           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
38231             RemoveOwnedForm (still incomplete, missing on-top and common
38232             minimize/maximize behaviour)
38233           - Added StartPosition property (still incomplete, does not use when
38234             creating the form)
38235           - Added ShowDialog() methods (still incomplete, missing forcing the
38236             dialog modal)
38237
38238 2004-09-22 14:05  pbartok
38239
38240         * Application.cs:
38241           - Added message loop for modal dialogs
38242
38243 2004-09-22 14:02  pbartok
38244
38245         * GroupBox.cs:
38246           - Fixed wrong types for events
38247
38248 2004-09-22 14:00  pbartok
38249
38250         * Shortcut.cs, FormWindowState.cs:
38251           - Fixed wrong values
38252
38253 2004-09-22 12:01  jackson
38254
38255         * Control.cs: Text is never null
38256
38257 2004-09-20 22:14  pbartok
38258
38259         * XplatUIWin32.cs:
38260           - Fixed accessibility level for Idle handler
38261
38262 2004-09-20 18:54  jackson
38263
38264         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38265           XplatUIX11.cs: New message loop that uses poll so we don't get a
38266           busy loop
38267
38268 2004-09-17 10:43  pbartok
38269
38270         * ScrollBar.cs:
38271           - Fixed behaviour of arrow buttons. Now properly behaves like
38272             Buttons (and like Microsoft's scrollbar arrow buttons)
38273
38274 2004-09-17 10:14  pbartok
38275
38276         * ScrollBar.cs:
38277           - Added missing release of keyboard/mouse capture
38278
38279 2004-09-17 06:18  jordi
38280
38281         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
38282           Theme.cs: Very early menu support
38283
38284 2004-09-16 17:45  pbartok
38285
38286         * XplatUIWin32.cs:
38287           - Fixed sending a window to the front
38288           - Added overload for SetWindowPos to avoid casting
38289
38290 2004-09-16 17:44  pbartok
38291
38292         * Control.cs:
38293           - Added SendToBack and BringToFront methods
38294
38295 2004-09-16 07:00  ravindra
38296
38297         * Copyright: Added Novell URL.
38298
38299 2004-09-16 07:00  ravindra
38300
38301         * ToolBar.cs: Invalidate should be done before redrawing.
38302
38303 2004-09-15 21:19  ravindra
38304
38305         * ColumnHeaderStyle.cs: Enum for ListView Control.
38306
38307 2004-09-15 21:18  ravindra
38308
38309         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
38310           ListView Control.
38311
38312 2004-09-13 18:26  jackson
38313
38314         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
38315           properly
38316
38317 2004-09-13 18:13  jackson
38318
38319         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
38320           a second thread and post messages into the main threads message
38321           queue. This makes timing much more consistent. Both win2K and XP
38322           have a minimum timer value of 15 milliseconds, so we now do this
38323           too.
38324
38325 2004-09-13 15:18  pbartok
38326
38327         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38328           XplatUIX11.cs:
38329           - Added Z-Ordering methods
38330
38331 2004-09-13 10:56  pbartok
38332
38333         * Form.cs:
38334           - Fixed #region names
38335           - Moved properties and methods into their proper #regions
38336
38337 2004-09-13 10:51  pbartok
38338
38339         * Form.cs:
38340           - Added Accept and CancelButton properties
38341           - Added ProcessDialogKey() method
38342
38343 2004-09-13 08:18  pbartok
38344
38345         * IWindowTarget.cs:
38346           - Initial check-in
38347
38348 2004-09-10 21:50  pbartok
38349
38350         * Control.cs:
38351           - Added DoDragDrop() [incomplete]
38352           - Properly implemented 'Visible' handling
38353           - Added SetVisibleCore()
38354           - Implemented FindChildAtPoint()
38355           - Implemented GetContainerControl()
38356           - Implemented Hide()
38357
38358 2004-09-10 19:28  pbartok
38359
38360         * Control.cs:
38361           - Moved methods into their appropriate #regions
38362           - Reordered methods within regions alphabetically
38363
38364 2004-09-10 18:57  pbartok
38365
38366         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38367           - Added method to retrieve text from window
38368
38369 2004-09-10 18:56  pbartok
38370
38371         * Control.cs:
38372           - Moved some internal functions into the internal region
38373           - Implemented FontHeight
38374           - Implemented RenderRightToLeft
38375           - Implemented ResizeRedraw
38376           - Implemented ShowFocusCues
38377           - Implemented ShowKeyboardCues
38378           - Implemented FromChildHandle
38379           - Implemented FromHandle
38380           - Implemented IsMnemonic
38381           - Implemented ReflectMessage
38382           - All public and protected Static Methods are now complete
38383
38384 2004-09-10 16:54  pbartok
38385
38386         * Control.cs:
38387           - Implemented remaining missing public instance properties
38388           - Alphabetized some out of order properties
38389
38390 2004-09-10 05:51  ravindra
38391
38392         * PictureBox.cs: Added a check for null image.
38393
38394 2004-09-10 00:59  jordi
38395
38396         * GroupBox.cs: remove cvs tag
38397
38398 2004-09-09 05:25  ravindra
38399
38400         * ToolBar.cs: Make redraw accessible from ToolBarButton.
38401
38402 2004-09-09 05:23  ravindra
38403
38404         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
38405           parent redraw.
38406
38407 2004-09-09 02:28  pbartok
38408
38409         * ThemeWin32Classic.cs:
38410           - Improve disabled string look
38411
38412 2004-09-09 01:15  jordi
38413
38414         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
38415           args and handler
38416
38417 2004-09-08 23:56  ravindra
38418
38419         * ItemBoundsPortion.cs: It's enum, not a class!
38420
38421 2004-09-08 23:47  ravindra
38422
38423         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
38424           Enums for Form.
38425
38426 2004-09-08 21:13  ravindra
38427
38428         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
38429           ListView control.
38430
38431 2004-09-08 21:03  ravindra
38432
38433         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
38434           avoid crash.
38435
38436 2004-09-08 21:01  ravindra
38437
38438         * ScrollableControl.cs: Removed unreachable code.
38439
38440 2004-09-08 06:45  jordi
38441
38442         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
38443
38444 2004-09-08 01:00  jackson
38445
38446         * XplatUIX11.cs: Only run the timers when updating the message
38447           queue. This effectively gives X messages a higher priority then
38448           timer messages. Timers still need love though
38449
38450 2004-09-07 14:01  jackson
38451
38452         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
38453           this for us and the handle is no longer valid.
38454
38455 2004-09-07 13:59  jackson
38456
38457         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
38458           loop that manages to not crash. TODO: Add poll and cleanup timers
38459
38460 2004-09-07 11:12  jordi
38461
38462         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
38463
38464 2004-09-07 03:40  jordi
38465
38466         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
38467           fixes, methods, multiple links
38468
38469 2004-09-06 06:55  jordi
38470
38471         * Control.cs: Caches ClientRectangle rectangle value
38472
38473 2004-09-05 02:03  jordi
38474
38475         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
38476           certain situations
38477
38478 2004-09-04 11:10  jordi
38479
38480         * Label.cs: Refresh when font changed
38481
38482 2004-09-02 16:24  pbartok
38483
38484         * Control.cs:
38485           - Added sanity check to creation of double buffer bitmap
38486
38487 2004-09-02 16:24  pbartok
38488
38489         * ButtonBase.cs:
38490           - Fixed selection of text color
38491           - Fixed handling of resize event; now properly recreates double
38492             buffering bitmap
38493           - Added missing assignment of TextAlignment
38494           - Added proper default for TextAlignment
38495
38496 2004-09-02 14:26  pbartok
38497
38498         * RadioButton.cs:
38499           - Added missing RadioButton.RadioButtonAccessibleObject class
38500
38501 2004-09-02 14:26  pbartok
38502
38503         * Control.cs:
38504           - Added missing Control.ControlAccessibleObject class
38505           - Started to implement Select()ion mechanisms, still very incomplete
38506
38507 2004-09-02 14:25  pbartok
38508
38509         * AccessibleObject.cs:
38510           - Added missing methods
38511
38512 2004-09-02 14:23  pbartok
38513
38514         * AccessibleNavigation.cs, AccessibleSelection.cs:
38515           - Initial check-in
38516
38517 2004-09-02 10:32  jordi
38518
38519         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
38520           pool for pens, brushes, and hatchbruses
38521
38522 2004-09-01 15:30  jackson
38523
38524         * StatusBar.cs: Fix typo
38525
38526 2004-09-01 14:44  pbartok
38527
38528         * RadioButton.cs:
38529           - Fixed state
38530
38531 2004-09-01 14:39  pbartok
38532
38533         * Button.cs, RadioButton.cs:
38534           - Functional initial check-in
38535
38536 2004-09-01 14:01  pbartok
38537
38538         * CheckBox.cs:
38539           - Added missing default
38540           - Added missing region mark
38541
38542 2004-09-01 09:10  jordi
38543
38544         * Label.cs: fixes method signatures, new methods, events, fixes
38545           autosize
38546
38547 2004-09-01 07:19  jordi
38548
38549         * Control.cs: Init string variables with an empty object
38550
38551 2004-09-01 04:20  jordi
38552
38553         * Control.cs: fires OnFontChanged event
38554
38555 2004-08-31 20:07  pbartok
38556
38557         * ButtonBase.cs:
38558           - Enabled display of strings
38559
38560 2004-08-31 20:05  pbartok
38561
38562         * Form.cs:
38563           - Added (partial) implementation of DialogResult; rest needs to be
38564             implemented when the modal loop code is done
38565
38566 2004-08-31 19:55  pbartok
38567
38568         * CheckBox.cs:
38569           - Fixed to match the removal of the needs_redraw concept
38570
38571 2004-08-31 19:55  pbartok
38572
38573         * ButtonBase.cs:
38574           - Removed the rather odd split between 'needs redraw' and redrawing
38575           - Now handles the events that require regeneration (ambient
38576             properties and size)
38577
38578 2004-08-31 19:41  pbartok
38579
38580         * Control.cs:
38581           - Added firing of BackColorChanged event
38582           - Added TopLevelControl property
38583           - Fixed handling of WM_ERASEBKGRND message
38584
38585 2004-08-31 12:49  pbartok
38586
38587         * ButtonBase.cs:
38588           - Removed debug
38589           - Minor fixes
38590
38591 2004-08-31 12:48  pbartok
38592
38593         * CheckBox.cs:
38594           - Finished (famous last words)
38595
38596 2004-08-31 04:35  jordi
38597
38598         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
38599           scrolling bugs, adds new methods
38600
38601 2004-08-30 14:42  pbartok
38602
38603         * CheckBox.cs:
38604           - Implemented CheckBox drawing code
38605
38606 2004-08-30 14:42  pbartok
38607
38608         * ButtonBase.cs:
38609           - Made Redraw() and CheckRedraw() virtual
38610           - Improved mouse up/down/move logic to properly track buttons
38611
38612 2004-08-30 09:44  pbartok
38613
38614         * CheckBox.cs:
38615           - Updated to fix broken build. Not complete yet.
38616
38617 2004-08-30 09:28  pbartok
38618
38619         * CheckState.cs:
38620           - Initial checkin
38621
38622 2004-08-30 09:17  pbartok
38623
38624         * Appearance.cs:
38625           - Initial check-in
38626
38627 2004-08-27 16:12  ravindra
38628
38629         * ToolBarButton.cs: Added TypeConverter attribute.
38630
38631 2004-08-27 16:07  ravindra
38632
38633         * ImageIndexConverter.cs: Implemented.
38634
38635 2004-08-27 14:17  pbartok
38636
38637         * Control.cs:
38638           - Removed unneeded stack vars
38639           - First attempt to fix sizing issues when layout is suspended
38640
38641 2004-08-25 15:35  jordi
38642
38643         * ScrollBar.cs: more fixes to scrollbar
38644
38645 2004-08-25 14:04  ravindra
38646
38647         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
38648           Added the missing divider code and grip for ToolBar Control.
38649
38650 2004-08-25 13:20  pbartok
38651
38652         * Control.cs:
38653           - Control now properly passes the ambient background color to child
38654             controls
38655
38656 2004-08-25 13:20  jordi
38657
38658         * ScrollBar.cs: small bug fix regarding bar position
38659
38660 2004-08-25 12:33  pbartok
38661
38662         * Timer.cs:
38663           - Now only calls SetTimer or KillTimer if the enabled state has
38664           changed
38665
38666 2004-08-25 12:33  pbartok
38667
38668         * XplatUIWin32.cs:
38669           - Fixed timer handling, now seems to work
38670           - Improved error message for window creation
38671
38672 2004-08-25 12:32  pbartok
38673
38674         * Control.cs:
38675           - Fixed generation of MouseUp message
38676
38677 2004-08-25 12:29  jordi
38678
38679         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
38680           and fixes for progressbar
38681
38682 2004-08-24 18:43  ravindra
38683
38684         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
38685           in ToolBar control.
38686
38687 2004-08-24 17:15  pbartok
38688
38689         * Panel.cs:
38690           - Added #region
38691           - Added missing events
38692           - Alphabetized
38693
38694 2004-08-24 17:14  pbartok
38695
38696         * StatusBar.cs, PictureBox.cs:
38697           - Now uses Control's CreateParams
38698
38699 2004-08-24 16:36  pbartok
38700
38701         * XplatUIX11.cs:
38702           - Fixed background color handling
38703           - Fixed sending of enter/leave events on a grab
38704
38705 2004-08-24 16:35  pbartok
38706
38707         * X11Structs.cs:
38708           - Refined definitions for CrossingEvent
38709
38710 2004-08-24 12:37  jordi
38711
38712         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
38713           formmating, methods signature, and adds missing events
38714
38715 2004-08-24 12:24  jordi
38716
38717         * Control.cs: fire OnEnabledChanged event
38718
38719 2004-08-24 11:17  pbartok
38720
38721         * XplatUIWin32.cs:
38722           - Implemented SetTimer() and KillTimer()
38723
38724 2004-08-24 11:16  pbartok
38725
38726         * XplatUIX11.cs:
38727           - Now uses Remove instead of Add to kill the timer
38728
38729 2004-08-24 10:16  jackson
38730
38731         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
38732           picture boxes in the theme now. Draw picture box borders and obey
38733           sizing modes
38734
38735 2004-08-24 05:49  jackson
38736
38737         * Timer.cs: Remove top secret debugging code
38738
38739 2004-08-24 05:34  jackson
38740
38741         * PictureBox.cs: Temp hack to make picture boxes draw their full
38742           image
38743
38744 2004-08-24 05:29  jackson
38745
38746         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
38747           XplatUIX11.cs: Move timers to the driver level. On X they are
38748           queued by the driver and checked on idle.
38749
38750 2004-08-24 01:07  jackson
38751
38752         * XplatUIX11.cs: Use a queue for async messages instead of passing
38753           them as ClientMessages since that was totally broken. Also simply
38754           check for events and return an idle message if none are found. This
38755           gives us an idle handler, and prevents deadlocking when no messages
38756           are in the queue.
38757
38758 2004-08-23 18:19  ravindra
38759
38760         * XplatUIWin32.cs: Removed the unwanted destructor.
38761
38762 2004-08-23 17:27  pbartok
38763
38764         * ButtonBase.cs:
38765           - Finishing touches. Works now, just needs some optimizations.
38766
38767 2004-08-23 16:53  jordi
38768
38769         * ScrollBar.cs: small fix
38770
38771 2004-08-23 16:45  pbartok
38772
38773         * Application.cs:
38774           - Removed debug output
38775           - Simplifications
38776
38777 2004-08-23 16:43  jordi
38778
38779         * ScrollBar.cs: [no log message]
38780
38781 2004-08-23 16:10  pbartok
38782
38783         * Form.cs:
38784           - Fixed handling of WM_CLOSE message
38785           - Removed debug output
38786
38787 2004-08-23 16:09  pbartok
38788
38789         * Application.cs:
38790           - Added handling of Idle event
38791           - Added handling of form closing
38792           - Fixed reporting of MessageLoop property
38793           - Removed some unneeded code, should provide a bit of a speedup
38794
38795 2004-08-23 15:22  pbartok
38796
38797         * Control.cs:
38798           - Added InitLayout() method
38799           - Added code to properly perform layout when Anchor or Dock property
38800             is changed
38801           - Changed 'interpretation' of ResumeLayout. MS seems to have a
38802             LAMESPEC, tried to do it in a way that makes sense
38803
38804 2004-08-23 14:10  jordi
38805
38806         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
38807           properties and methods
38808
38809 2004-08-23 13:55  pbartok
38810
38811         * Control.cs:
38812           - Properly fixed Jordi's last fix
38813           - Now uses Cursor's Position property instead of calling XplatUI
38814           directly
38815
38816 2004-08-23 13:44  jordi
38817
38818         * PaintEventHandler.cs: Adding missing attribute
38819
38820 2004-08-23 13:39  pbartok
38821
38822         * Cursor.cs:
38823           - Implemented Position property
38824
38825 2004-08-23 13:39  pbartok
38826
38827         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
38828           - Added method to move mouse cursor
38829
38830 2004-08-23 13:39  pbartok
38831
38832         * XplatUIX11.cs:
38833           - Fixed setting of background color
38834           - Added method to move mouse cursor
38835
38836 2004-08-23 13:16  jordi
38837
38838         * Control.cs: avoids null exception
38839
38840 2004-08-22 17:46  jackson
38841
38842         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
38843           PictureBox
38844
38845 2004-08-22 17:40  jackson
38846
38847         * XplatUIX11.cs: Add some missing locks
38848
38849 2004-08-22 15:10  pbartok
38850
38851         * Control.cs, Form.cs:
38852           - Removed OverlappedWindow style from Control, instead it's default
38853             now is child
38854           - Made form windows OverlappedWindow by default
38855
38856 2004-08-22 13:34  jackson
38857
38858         * ScrollBar.cs: Update the position through the Value property so
38859           the OnValueChanged event is raised.
38860
38861 2004-08-22 12:04  pbartok
38862
38863         * SWF.csproj:
38864           - Added Cursor.cs and UserControl.cs
38865
38866 2004-08-22 12:03  pbartok
38867
38868         * Cursor.cs:
38869           - Started implementation, not usable yet
38870
38871 2004-08-22 12:00  pbartok
38872
38873         * UserControl.cs:
38874           - Implemented UserControl (complete)
38875
38876 2004-08-21 19:20  ravindra
38877
38878         * ToolBar.cs: Correcting the formatting mess of VS.NET.
38879
38880 2004-08-21 18:49  ravindra
38881
38882         * ToolBar.cs: Probably this completes the missing attributes in
38883           toolbar control.
38884
38885 2004-08-21 18:03  ravindra
38886
38887         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
38888           Fixed toolbar control signatures.
38889
38890 2004-08-21 16:32  pbartok
38891
38892         * LinkLabel.cs:
38893           - Signature Fixes
38894
38895 2004-08-21 16:30  pbartok
38896
38897         * Label.cs:
38898           - Signature fixes
38899
38900 2004-08-21 16:19  pbartok
38901
38902         * Control.cs, Label.cs:
38903           - Signature fixes
38904
38905 2004-08-21 15:57  pbartok
38906
38907         * ButtonBase.cs:
38908           - Added loads of debug output for development
38909           - Fixed typo in method name
38910
38911 2004-08-21 15:52  pbartok
38912
38913         * ToolBarButtonClickEventArgs.cs:
38914           - Added missing base class
38915
38916 2004-08-21 14:53  pbartok
38917
38918         * Control.cs:
38919           - Updated to match new GrabWindow signature
38920
38921 2004-08-21 14:51  pbartok
38922
38923         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38924           - Added method to get default display size
38925
38926 2004-08-21 14:23  pbartok
38927
38928         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
38929           - Added method to query current grab state
38930           - Added argument to allow confining a grab to a window
38931
38932 2004-08-21 14:22  pbartok
38933
38934         * Keys.cs:
38935           - Added [Flags] attribute so that modifiers can be used in bitwise
38936           ops
38937
38938 2004-08-21 14:21  pbartok
38939
38940         * TrackBar.cs, ScrollBar.cs:
38941           - Replaced direct XplatUI calls with their Control counterpart
38942
38943 2004-08-21 13:32  pbartok
38944
38945         * Control.cs:
38946           - Implemented Created property
38947
38948 2004-08-21 13:28  pbartok
38949
38950         * Control.cs:
38951           - Implemented ContainsFocus
38952
38953 2004-08-21 13:26  pbartok
38954
38955         * Control.cs:
38956           - Implemented CausesValidation
38957
38958 2004-08-21 13:21  pbartok
38959
38960         * Control.cs:
38961           - Implemented CanFocus
38962           - Implemented CanSelect
38963           - Implemented Capture
38964
38965 2004-08-21 12:35  pbartok
38966
38967         * XplatUIWin32.cs:
38968           - Fixed bug with Async message handling
38969           - Implemented getting the ModifierKeys
38970
38971 2004-08-21 12:32  jackson
38972
38973         * AsyncMethodResult.cs: Make sure we have the mutex before we
38974           release it. Fixes BeginInvoke on windows
38975
38976 2004-08-21 11:31  pbartok
38977
38978         * XplatUIWin32.cs, XplatUIX11.cs:
38979           - Drivers now return proper mouse state
38980
38981 2004-08-21 10:54  jackson
38982
38983         * Control.cs: Implement EndInvoke
38984
38985 2004-08-21 10:48  jackson
38986
38987         * Timer.cs: Remove unneeded finalizer
38988
38989 2004-08-20 19:52  ravindra
38990
38991         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
38992           in mouse event handling in the ToolBar control.
38993
38994 2004-08-20 19:50  ravindra
38995
38996         * ImageList.cs: Changed draw method to use the arguments passed in
38997           to draw the image.
38998
38999 2004-08-20 18:58  pbartok
39000
39001         * XplatUIStructs.cs:
39002           - Added private message for async communication
39003
39004 2004-08-20 17:38  ravindra
39005
39006         * Control.cs: Made RightToLeft property virtual and removed a
39007           Console.WriteLine.
39008
39009 2004-08-20 14:39  jordi
39010
39011         * ThemeGtk.cs: use style_attach
39012
39013 2004-08-20 14:39  pbartok
39014
39015         * XplatUIWin32.cs:
39016           - Added jackson's Async code from X11 to Win32
39017
39018 2004-08-20 14:09  pbartok
39019
39020         * SWF.csproj:
39021           - Added all new files
39022
39023 2004-08-20 14:09  pbartok
39024
39025         * Control.cs:
39026           - Added call to set window background color
39027
39028 2004-08-20 14:03  pbartok
39029
39030         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39031           - Added method for setting the window background
39032
39033 2004-08-20 14:02  pbartok
39034
39035         * XplatUIWin32.cs:
39036           - Added method for setting the background color
39037           - Added handling for erasing the window background
39038
39039 2004-08-20 13:45  jordi
39040
39041         * TrackBar.cs: fixes timer, new properties and methods
39042
39043 2004-08-20 13:34  jackson
39044
39045         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
39046           correct thread
39047
39048 2004-08-20 13:22  jackson
39049
39050         * Timer.cs: Timer Tick events are now handed through Controls Async
39051           mechanism so the callbacks are executed in the same thread as X
39052
39053 2004-08-20 13:19  jackson
39054
39055         * XplatUIDriver.cs: Expose functionality to send async messages
39056           through the driver
39057
39058 2004-08-20 13:18  jackson
39059
39060         * Control.cs: Implement Begininvoke
39061
39062 2004-08-20 13:14  jackson
39063
39064         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
39065           messages through the driver
39066
39067 2004-08-20 13:12  jackson
39068
39069         * XplatUIX11.cs: Lock before all X operations. Also added Async
39070           method functionality through XSendEvent
39071
39072 2004-08-20 13:11  jackson
39073
39074         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
39075           This will screw up on 64 bit systems)
39076
39077 2004-08-20 13:10  jackson
39078
39079         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
39080           Async messages through X/Win32
39081
39082 2004-08-19 19:39  pbartok
39083
39084         * XplatUIX11.cs:
39085           - Updated code to match new HandleData.DeviceContext type
39086
39087 2004-08-19 19:38  pbartok
39088
39089         * HandleData.cs:
39090           - Made DeviceContext a generic object to allow usage from various
39091           drivers
39092           - Added support for queueing Windows messages
39093
39094 2004-08-19 19:37  pbartok
39095
39096         * XplatUIWin32.cs:
39097           - Added generation of MouseEnter, MouseLeave and MouseHover events
39098           - Added cleanup on EndPaint
39099
39100 2004-08-19 19:17  pbartok
39101
39102         * Control.cs:
39103           - Added handling of WM_MOUSEHOVER
39104           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
39105           code
39106
39107 2004-08-19 18:55  jordi
39108
39109         * ThemeGtk.cs: fixes button order
39110
39111 2004-08-19 18:12  jordi
39112
39113         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
39114
39115 2004-08-19 17:09  pbartok
39116
39117         * Control.cs:
39118           - Added Right property
39119           - Added RightToLeft property
39120
39121 2004-08-19 16:27  jordi
39122
39123         * ThemeGtk.cs: experimental GTK theme support
39124
39125 2004-08-19 16:26  jordi
39126
39127         * ITheme.cs, Theme.cs: move themes from an interface to a class
39128
39129 2004-08-19 16:25  jordi
39130
39131         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
39132           theme enhancaments
39133
39134 2004-08-19 16:04  pbartok
39135
39136         * XplatUIX11.cs:
39137           - Added colormap basics
39138           - Added a way to re-initialize with a different display handle
39139           - Fixed setting of the window background color
39140           - Added various X11 imports related to colors and colormaps
39141
39142 2004-08-19 15:51  pbartok
39143
39144         * X11Structs.cs:
39145           - Removed packing hints (Paolo suggested this a while back)
39146           - fixed colormap type
39147           - Added default Atom types
39148           - Added Screen and color structs and enums
39149
39150 2004-08-19 15:39  pbartok
39151
39152         * ImageList.cs:
39153           - Added missing Draw() method
39154           - Added missing RecreateHandle event
39155
39156 2004-08-19 15:30  pbartok
39157
39158         * Form.cs:
39159           - Added handling of WM_CLOSE
39160
39161 2004-08-18 13:16  jordi
39162
39163         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
39164           a table
39165
39166 2004-08-18 09:56  jordi
39167
39168         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
39169
39170 2004-08-17 15:31  ravindra
39171
39172         * SWF.csproj: Updated project.
39173
39174 2004-08-17 15:25  pbartok
39175
39176         * Control.cs:
39177           - Drawing improvement; don't call UpdateBounds if we are not visible
39178             (or have been minimized)
39179
39180 2004-08-17 15:24  pbartok
39181
39182         * XplatUIWin32.cs:
39183           - Finished IsVisible
39184           - Added Win32GetWindowPlacement
39185
39186 2004-08-17 15:08  jackson
39187
39188         * Panel.cs: Initial checkin of the Panel
39189
39190 2004-08-17 14:25  pbartok
39191
39192         * Control.cs:
39193           - Fixed broken handling of default window sizes
39194
39195 2004-08-17 13:29  jackson
39196
39197         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
39198           has a large startup time.
39199
39200 2004-08-17 10:25  jackson
39201
39202         * HandleData.cs: union areas properly
39203
39204 2004-08-17 10:12  jackson
39205
39206         * HandleData.cs: union areas properly
39207
39208 2004-08-16 20:00  ravindra
39209
39210         * ToolBar.cs, ToolBarButton.cs: Added attributes.
39211
39212 2004-08-16 18:48  ravindra
39213
39214         * ToolBar.cs: Added attributes.
39215
39216 2004-08-16 17:17  ravindra
39217
39218         * SWF.csproj: Updated project.
39219
39220 2004-08-16 17:16  jackson
39221
39222         * XplatUIX11.cs: Check for more expose events before sending a
39223           WM_PAINT so they can all be grouped together. This makes dragging a
39224           window across another window redraw in a sane way.
39225
39226 2004-08-16 15:47  pbartok
39227
39228         * Control.cs:
39229           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
39230             support OnMouseEnter/Leave()
39231           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
39232             exposure handling
39233
39234 2004-08-16 15:46  pbartok
39235
39236         * XplatUIStructs.cs, XplatUIX11.cs:
39237           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
39238           OnMouseEnter/Leave()
39239
39240 2004-08-16 15:34  jackson
39241
39242         * XplatUIX11.cs: Group multiple expose events in HandleData, make
39243           sure messages get the message field set to WM_NULL if they are not
39244           handled.
39245
39246 2004-08-16 15:24  jackson
39247
39248         * HandleData.cs: HandleData is used for storing message information
39249           for window handles
39250
39251 2004-08-15 17:23  ravindra
39252
39253         * ColorDepth.cs: Added attribute.
39254
39255 2004-08-15 17:23  ravindra
39256
39257         * SWF.csproj: Updated project for ToolBar Control.
39258
39259 2004-08-15 17:20  ravindra
39260
39261         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
39262           control and also dos2unix format.
39263
39264 2004-08-15 17:13  ravindra
39265
39266         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
39267           ToolBarButtonClickEventArgs.cs,
39268           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
39269           ToolBarTextAlign.cs: First Implementation of ToolBar control.
39270
39271 2004-08-15 15:31  pbartok
39272
39273         * ButtonBase.cs:
39274           - First (mostly) working version
39275
39276 2004-08-13 16:15  pbartok
39277
39278         * Control.cs:
39279           - Fixed Anchor default
39280
39281 2004-08-13 15:43  pbartok
39282
39283         * Control.cs:
39284           - Changed GetCursorPos signature
39285
39286 2004-08-13 15:42  pbartok
39287
39288         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
39289           - Changed signature for GetCursorPos
39290
39291 2004-08-13 15:25  pbartok
39292
39293         * XplatUIX11.cs:
39294           - Cleanup
39295           - Fixed resizing/exposure handling
39296
39297 2004-08-13 15:22  jordi
39298
39299         * ThemeWin32Classic.cs: removes redundant code and fixes issues
39300           with tickposition
39301
39302 2004-08-13 14:55  jordi
39303
39304         * TrackBar.cs: change from wndproc to events
39305
39306 2004-08-13 13:00  jordi
39307
39308         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39309           XplatUIX11.cs: implements PointToClient (ScreenToClient)
39310
39311 2004-08-13 12:53  pbartok
39312
39313         * XplatUIWin32.cs:
39314           - Changed GetWindowPos to also provide client area size
39315           - Fixed broken prototypes for several win32 functions
39316
39317 2004-08-13 12:53  pbartok
39318
39319         * XplatUI.cs, XplatUIDriver.cs:
39320           - Changed GetWindowPos to also provide client area size
39321
39322 2004-08-13 12:52  pbartok
39323
39324         * XplatUIX11.cs:
39325           - Added generation of WM_POSCHANGED
39326           - Changed GetWindowPos to also provide client area size
39327
39328 2004-08-13 12:52  pbartok
39329
39330         * Control.cs:
39331           - Added Dispose() and destructor
39332           - Fixed resizing and bounds calculation
39333           - Fixed Layout
39334           - Added memory savings for invisible windows
39335
39336 2004-08-13 12:46  jordi
39337
39338         * TrackBar.cs: adds timer and grap window
39339
39340 2004-08-13 10:25  jackson
39341
39342         * Timer.cs: SWF Timer
39343
39344 2004-08-12 16:59  pbartok
39345
39346         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39347           - Implemented method to get current mouse position
39348
39349 2004-08-12 14:29  jordi
39350
39351         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
39352           enhancement, fix mouse problems, highli thumb, etc
39353
39354 2004-08-12 13:31  pbartok
39355
39356         * Control.cs:
39357           - Fixed Anchoring bugs
39358
39359 2004-08-12 13:01  jackson
39360
39361         * StatusBar.cs: Don't forget things
39362
39363 2004-08-12 12:54  jackson
39364
39365         * ThemeWin32Classic.cs: Handle owner draw status bars
39366
39367 2004-08-12 12:54  jackson
39368
39369         * StatusBar.cs: Implement missing properties, events, and methods.
39370           Handle mouse clicking
39371
39372 2004-08-12 10:19  jackson
39373
39374         * StatusBarPanelClickEventArgs.cs,
39375           StatusBarPanelClickEventHandler.cs: Classes for handling status
39376           bar panel click events
39377
39378 2004-08-12 10:10  jackson
39379
39380         * Control.cs: Add missing properties
39381
39382 2004-08-12 09:46  pbartok
39383
39384         * BindingsManagerBase.cs:
39385           - Name changed to BindingManagerBase.cs
39386
39387 2004-08-12 09:25  jordi
39388
39389         * ScrollableControl.cs: calls ctrlbase instead of exeception
39390
39391 2004-08-11 16:28  pbartok
39392
39393         * InputLanguageChangingEventArgs.cs:
39394           - Never check in before compiling. Fixes the last check-in
39395
39396 2004-08-11 16:26  pbartok
39397
39398         * InputLanguageChangingEventArgs.cs:
39399           - More signature fixes
39400
39401 2004-08-11 16:20  pbartok
39402
39403         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
39404           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
39405           ImageListStreamer.cs, InputLanguage.cs,
39406           InputLanguageChangedEventArgs.cs,
39407           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
39408           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
39409           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
39410           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39411           - Signature fixes
39412
39413 2004-08-11 16:16  pbartok
39414
39415         * Application.cs:
39416           - Fixed Signature
39417           - Added .Net 1.1 method
39418
39419 2004-08-11 15:25  pbartok
39420
39421         * SWF.csproj:
39422           - Fixed BindingManagerBase.cs filename
39423
39424 2004-08-11 15:22  pbartok
39425
39426         * BindingManagerBase.cs:
39427           - Was checked in with wrong filename
39428
39429 2004-08-11 14:50  pbartok
39430
39431         * SWF.csproj:
39432           - Updated
39433
39434 2004-08-11 13:41  jordi
39435
39436         * XplatUIWin32.cs: Fixes ClientRect
39437
39438 2004-08-11 13:19  pbartok
39439
39440         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39441           XplatUIX11.cs:
39442           - We had SetWindowPos and MoveWindow to set window positions and
39443             size, removed MoveWindow. We have GetWindowPos, so it made sense to
39444             keep SetWindowPos as matching counterpart
39445           - Added some X11 sanity checking
39446
39447 2004-08-11 12:59  pbartok
39448
39449         * Control.cs:
39450           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
39451             (It seems that SetBounds is just a front for SetBoundsCore and
39452              SetBoundsCore updates the underlying window system and
39453              UpdateBounds is responsible for updating the variables associated
39454              with the Control and sending the events)
39455           - Major cleanup of Size handling; we now have two sizes, client_size
39456             and bounds. Bounds defines the window with decorations, client_size
39457             without them.
39458
39459 2004-08-11 12:55  pbartok
39460
39461         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39462           - Added method to calculate difference between decorated window and
39463             raw client area
39464
39465 2004-08-11 12:54  pbartok
39466
39467         * Label.cs:
39468           - Forcing redraw on resize
39469
39470 2004-08-11 11:43  pbartok
39471
39472         * ImageList.cs:
39473           - Removed disposing of the actual images when the list is disposed
39474
39475 2004-08-11 09:13  pbartok
39476
39477         * Control.cs:
39478           - Now properly reparents windows
39479
39480 2004-08-11 08:37  pbartok
39481
39482         * Control.cs:
39483           - Duh!
39484
39485 2004-08-11 07:47  pbartok
39486
39487         * Control.cs:
39488           - Rewrote the collection stuff. Might not be as fast now, not
39489             keeping the number of children around and accessible directly, but
39490             it's more straightforward
39491
39492 2004-08-11 07:44  pbartok
39493
39494         * AccessibleObject.cs:
39495           - Fixed to match ControlCollection rewrite
39496
39497 2004-08-11 07:43  pbartok
39498
39499         * ImageList.cs:
39500           - Added missing creation of the collection list
39501
39502 2004-08-10 20:08  jackson
39503
39504         * StatusBar.cs: Get the paint message from WndProc
39505
39506 2004-08-10 19:31  jackson
39507
39508         * ThemeWin32Classic.cs: Create Brushes as little as possible
39509
39510 2004-08-10 19:20  jackson
39511
39512         * UICues.cs: Add Flags attribute
39513
39514 2004-08-10 19:19  jackson
39515
39516         * StatusBarPanel.cs: Signature cleanup
39517
39518 2004-08-10 19:10  jackson
39519
39520         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
39521           Initial implementation of status bar item drawing
39522
39523 2004-08-10 17:27  jordi
39524
39525         * TrackBar.cs: add missing methods, properties, and restructure to
39526           hide extra ones
39527
39528 2004-08-10 16:24  jackson
39529
39530         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
39531           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
39532           attribute
39533
39534 2004-08-10 13:21  jordi
39535
39536         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
39537           enhancements and standarize on win colors defaults
39538
39539 2004-08-10 12:52  jackson
39540
39541         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
39542           ThemeWin32Classic.cs: Implement DrawItem functionality
39543
39544 2004-08-10 12:47  jordi
39545
39546         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
39547
39548 2004-08-10 12:32  jordi
39549
39550         * Control.cs: throw ontextchange event
39551
39552 2004-08-10 11:43  pbartok
39553
39554         * Control.cs:
39555           - Added more to the still unfinished Dock/Anchor layout code
39556
39557 2004-08-10 11:39  pbartok
39558
39559         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
39560           - Added GetWindowPos method
39561
39562 2004-08-10 11:36  pbartok
39563
39564         * XplatUIWin32.cs:
39565           - Implemented several methods
39566
39567 2004-08-10 09:47  jackson
39568
39569         * TrackBar.cs: Allow control to handle buffering
39570
39571 2004-08-10 09:41  jackson
39572
39573         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
39574
39575 2004-08-10 09:24  jackson
39576
39577         * Label.cs, LinkLabel.cs: Let Control handle buffering.
39578
39579 2004-08-10 09:09  jackson
39580
39581         * StatusBar.cs: Let Control handle all the buffering.
39582
39583 2004-08-10 09:08  jackson
39584
39585         * Control.cs: Control will now handle the buffering code, so each
39586           control does not have to implement this.
39587
39588 2004-08-10 08:34  jackson
39589
39590         * XplatUIDriver.cs: Use default colors from the theme
39591
39592 2004-08-09 17:12  pbartok
39593
39594         * ImageList.cs:
39595           - Fixed several bugs Ravindra pointed out
39596
39597 2004-08-09 16:11  pbartok
39598
39599         * Control.cs:
39600           - Added incomplete dock layout code
39601           - Added support for mouse wheel
39602
39603 2004-08-09 16:09  pbartok
39604
39605         * XplatUIX11.cs:
39606           - Added handling for middle and right mousebutton
39607           - Added handling for mouse wheel
39608           - Added handling for key state and mouse state and position
39609           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
39610           messages
39611
39612 2004-08-09 15:40  jackson
39613
39614         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
39615           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
39616           checkin
39617
39618 2004-08-09 15:37  jackson
39619
39620         * StatusBar.cs: Initial implementation of StatusBar
39621
39622 2004-08-09 15:36  jackson
39623
39624         * ITheme.cs: Add support for drawing status bar and getting status
39625           bar item sizes
39626
39627 2004-08-09 15:35  pbartok
39628
39629         * MouseButtons.cs:
39630           - Fixed values
39631
39632 2004-08-09 15:34  jackson
39633
39634         * ThemeWin32Classic.cs: Add support for drawing status bar and get
39635           status bar item sizes
39636
39637 2004-08-09 15:21  jackson
39638
39639         * ThemeWin32Classic.cs: Use known colors for default control
39640           colours
39641
39642 2004-08-09 15:12  jackson
39643
39644         * ThemeWin32Classic.cs: Make the default font static, it is static
39645           in control so this doesn't change functionality and creating fonts
39646           is sloooooow.
39647
39648 2004-08-09 14:56  pbartok
39649
39650         * X11Structs.cs:
39651           - Added GrabMode enum
39652
39653 2004-08-09 14:55  pbartok
39654
39655         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39656           - Removed Run method, was only required for initial development
39657
39658 2004-08-09 14:51  pbartok
39659
39660         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
39661           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
39662           capture
39663
39664 2004-08-09 13:48  pbartok
39665
39666         * XplatUIX11.cs:
39667           - Fixed default sizing for child windows
39668
39669 2004-08-09 12:56  pbartok
39670
39671         * XplatUIX11.cs:
39672           - Added generation of WM_DESTROY message
39673           - Added handling of window manager induced shutdown
39674
39675 2004-08-09 11:31  jackson
39676
39677         * ThemeWin32Classic.cs: New names for control properties
39678
39679 2004-08-09 11:25  jackson
39680
39681         * Control.cs: Use new color names
39682
39683 2004-08-09 11:02  jackson
39684
39685         * XplatUI.cs: Get default window properties from the theme
39686
39687 2004-08-09 11:01  jackson
39688
39689         * ITheme.cs: The theme engine now controls default window
39690           properties
39691
39692 2004-08-09 11:00  jackson
39693
39694         * ThemeWin32Classic.cs: Add default window color properties
39695
39696 2004-08-09 10:17  jackson
39697
39698         * ThemeWin32Classic.cs: Use correct default back color
39699
39700 2004-08-09 10:05  jackson
39701
39702         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
39703           the theme now.
39704
39705 2004-08-09 09:56  jackson
39706
39707         * XplatUI.cs: Remove defaults, these are handled by the theme now.
39708
39709 2004-08-09 09:54  jackson
39710
39711         * Control.cs: Get default properties from the theme.
39712
39713 2004-08-09 09:53  jackson
39714
39715         * ITheme.cs: Themes now handle default control properties
39716
39717 2004-08-09 09:53  jackson
39718
39719         * ThemeWin32Classic.cs: Themes now handle default control
39720           properties so coloring will be consistent
39721
39722 2004-08-08 16:54  jordi
39723
39724         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
39725
39726 2004-08-08 15:08  jordi
39727
39728         * XplatUIX11.cs: fixes keyboard crash
39729
39730 2004-08-08 13:47  jordi
39731
39732         * Label.cs: add cvs header info
39733
39734 2004-08-08 12:09  jackson
39735
39736         * ThemeWin32Classic.cs: Add pen_buttonface
39737
39738 2004-08-08 11:52  jordi
39739
39740         * Label.cs, LinkLabel.cs: [no log message]
39741
39742 2004-08-08 11:34  jordi
39743
39744         * ThemeWin32Classic.cs: Use Windows Standard Colours
39745
39746 2004-08-07 17:32  jordi
39747
39748         * TrackBar.cs: throw exceptions of invalid enums values
39749
39750 2004-08-07 17:31  jordi
39751
39752         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
39753           draw method name
39754
39755 2004-08-07 16:56  jackson
39756
39757         * HorizontalAlignment.cs: Initial checkin
39758
39759 2004-08-07 13:16  jordi
39760
39761         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
39762           methods
39763
39764 2004-08-07 13:05  jordi
39765
39766         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
39767           GetSysColor defines
39768
39769 2004-08-06 18:01  pbartok
39770
39771         * ThemeWin32Classic.cs:
39772           - Fixed some rounding issues with float/int
39773
39774 2004-08-06 18:00  jackson
39775
39776         * DockStyle.cs, AnchorStyles.cs:
39777
39778                   Add flags and serializable attributes.
39779
39780 2004-08-06 17:46  pbartok
39781
39782         * XplatUIX11.cs:
39783           - Implemented GetParent
39784
39785 2004-08-06 17:18  pbartok
39786
39787         * TrackBar.cs:
39788           - Fixed some rounding issues with float/int
39789
39790 2004-08-06 17:17  pbartok
39791
39792         * X11Structs.cs, XplatUIX11.cs:
39793           - Fixed Refresh and Invalidate
39794
39795 2004-08-06 15:30  pbartok
39796
39797         * Control.cs, X11Structs.cs, XplatUIX11.cs:
39798           - Fixed recursive loop when resizing
39799           - Improved/fixed redrawing on expose messages
39800
39801 2004-08-06 09:53  jordi
39802
39803         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
39804           keyboard navigation
39805
39806 2004-08-06 08:02  pbartok
39807
39808         * X11Structs.cs, XplatUIX11.cs:
39809           - Fixed reparenting
39810           - Fixed window border creation
39811
39812 2004-08-05 15:38  pbartok
39813
39814         * XplatUIX11.cs:
39815           - Attempted fix for reparenting problems
39816
39817 2004-08-04 15:14  pbartok
39818
39819         * Control.cs:
39820           - Fixed Invalidation bug (calculated wrong client area)
39821           - Added ClientSize setter
39822
39823 2004-08-04 15:13  pbartok
39824
39825         * Form.cs:
39826           - Added AutoScale properties
39827
39828 2004-08-04 15:13  pbartok
39829
39830         * SWF.csproj:
39831           - Added latest files
39832
39833 2004-08-04 14:11  pbartok
39834
39835         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
39836           XplatUIX11.cs:
39837           - Added Invalidate handling
39838
39839 2004-08-03 17:09  jordi
39840
39841         * XplatUIDriver.cs: fixes spelling mistake
39842
39843 2004-07-27 09:53  jordi
39844
39845         * TrackBar.cs: fixes trackbar events, def classname, methods
39846           signature
39847
39848 2004-07-27 09:29  jordi
39849
39850         * ScrollBar.cs: fixes scrollbar events
39851
39852 2004-07-27 04:38  jordi
39853
39854         * Control.cs: changes to be able to run winforms samples
39855
39856 2004-07-26 11:42  jordi
39857
39858         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
39859           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
39860
39861 2004-07-26 05:41  jordi
39862
39863         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
39864           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
39865           implementation
39866
39867 2004-07-22 09:22  jordi
39868
39869         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
39870           check link overlapping, implement events, and fixes
39871
39872 2004-07-21 10:28  jordi
39873
39874         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
39875
39876 2004-07-21 10:19  jordi
39877
39878         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
39879           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
39880           LinkLabelLinkClickedEventArgs.cs,
39881           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
39882           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
39883           implementation
39884
39885 2004-07-19 13:09  jordi
39886
39887         * Control.cs, Label.cs: label control re-written: added missing
39888           functionlity, events, and properties
39889
39890 2004-07-19 10:49  jordi
39891
39892         * Control.cs: fixes SetBounds logic
39893
39894 2004-07-19 01:29  jordi
39895
39896         * Control.cs: Call RefreshWindow only if the window has created
39897
39898 2004-07-15 14:05  pbartok
39899
39900         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
39901           - Implemented ImageList and ImageList.ImageCollection classes
39902           - Added ColorDepth enumeration
39903           - Updated SWF VS.Net project
39904
39905 2004-07-15 11:06  jordi
39906
39907         * XplatUIStructs.cs: added MsgButons enum
39908
39909 2004-07-15 11:03  jordi
39910
39911         * Control.cs: added basic mouse handeling events
39912
39913 2004-07-15 03:38  jordi
39914
39915         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
39916           Vertical TrackBar control implementation
39917
39918 2004-07-13 09:33  jordi
39919
39920         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
39921
39922 2004-07-13 09:31  jordi
39923
39924         * Control.cs, Form.cs: commit: new properties and fixes form size
39925           problems
39926
39927 2004-07-09 14:13  miguel
39928
39929         * ProgressBar.cs: Spelling
39930
39931 2004-07-09 11:25  pbartok
39932
39933         * ProgressBar.cs:
39934           - Removed usage of Rectangle for drawing. Miguel pointed out it's
39935           faster
39936
39937 2004-07-09 11:17  miguel
39938
39939         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
39940
39941                 * ProgressBar.cs: Fixed spelling for `block'
39942
39943                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
39944                 style guidelines.
39945
39946                 Avoid using the += on rect.X, that exposed a bug in the compiler.
39947
39948 2004-07-08 23:21  pbartok
39949
39950         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
39951           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
39952           BaseCollection.cs, Binding.cs, BindingContext.cs,
39953           BindingMemberInfo.cs, BindingsCollection.cs,
39954           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
39955           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
39956           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
39957           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
39958           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
39959           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
39960           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
39961           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
39962           FrameStyle.cs, GiveFeedbackEventArgs.cs,
39963           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
39964           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
39965           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
39966           InputLanguageChangedEventArgs.cs,
39967           InputLanguageChangedEventHandler.cs,
39968           InputLanguageChangingEventArgs.cs,
39969           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
39970           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
39971           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
39972           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
39973           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
39974           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
39975           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
39976           QueryAccessibilityHelpEventArgs.cs,
39977           QueryAccessibilityHelpEventHandler.cs,
39978           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
39979           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
39980           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
39981           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
39982           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
39983           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
39984           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
39985           XplatUIX11.cs, lang.cs:
39986           - Initial check-in
39987